.morphology-container{
    width: 100%;
    position: relative;
}
.referent-words select{
    font-family: sans-serif;
    font-weight: bold;
    border: 1px solid lightgray;
    padding: 5px;
    margin-bottom: 0;
    width: 100%;
}

#morphology_filter_container .form-check-inline{
    display: inline-block;
    margin: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 0.3em 1em;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

#morphology_header{
    border-bottom: 1px solid lightgray;
    padding: 0.5em 0;
}

#morphology_filter_container{
    
}

#morphology_filter_container div,
#morphology_filter_container i,
#morphology_filter_container label{
    transition: 0.3s ease;
    margin: 0;
}

#morphology_filter_container .filter-title{
    font-weight: bold;
}
#morphology_filter_container .filter-group:not(:last-child){
    border-bottom: 1px dashed lightgray;
}

#morphology_filter_container .filter-group-selected{
    
}
#morphology_filter_container .filter-group-selected .filter-inactive{
    background-color: white !important;
    color: #45b71b !important;
    border: 1px solid #fff !important;
}

#morphology_filter_container .form-check.form-check-inline.filter-inactive{
    background-color: #45b71b;
}

#morphology_filter_container .form-check.form-check-inline.filter-active{
    background-color: #66d92c;
}

#morphology_filter_container .form-check.form-check-inline i{
    margin-left: 5px;
}
#morphology_filter_container .form-check.form-check-inline{
    margin-bottom: 1em;
}

#morphology_filter_container .form-check.form-check-inline:not(.filter-active):hover{
    background-color: #66d92c !important;
    box-shadow: 5px 5px 10px #00000038;
    transform: translate(-3px, -3px);
    color: white !important;
    border: 1px solid lightgray !important;
}

.filter-input-label{
    display: inline-block;
}

.morphology-container h4{
    text-align: center;
    text-transform: capitalize;
}

.morphology-table{
    display: grid;
}

.template-noun-case.morphology-table{
    width: 50%;
    margin: 0 auto;
}

.template-noun-plurality.morphology-table{
    grid-template-columns: auto auto;
    width: 70%;
    margin: 0 auto;
}

.template-noun-cases.morphology-table{
    grid-template-columns: auto;
}

.column-title{
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 0.5em;
    border-right: 1px solid lightgray;
}
.table-title{
    font-size: 18px;
    text-align: center;
    margin: 10px;
}
.morphology-table .morphology-column{
    position: relative;
    display: grid;
    border-bottom: none;
}

.morphology-table .morphology-column label{
    display: inline-block;
    margin: 0px;
}

.morphology-table .morphology-column label ~ i{
    display: none;
    color: #93b56a;
    position: absolute;
    top: 14px;
    margin-left: 5px;
    
}

.morphology-table .morphology-column .morphology-description{
    display: none;
    position: absolute;
    top: 90%;
    left: 5px;
    background-color: white;
    z-index: 100;
    border: 1px solid #5ea1e3;
    border-radius: 6px;
    box-shadow: 2px 2px 5px gray;
    padding: 0.5em;
    font-size: 13px;
}

.morphology-table .morphology-column label:hover{
    text-decoration: 1px underline dashed #5ec63b;
}
.morphology-table .morphology-column label:hover ~ i,
.morphology-table .morphology-column label:hover ~ .morphology-description{
    display: inline-block !important;
}
.wordform-block{
    padding: 0.5em;
    background-color: white;
}


.morphology-table .morphology-table-children{
    display: grid;
    grid-template-columns: auto auto;
}

.morphology-row .row-title{
    display: inline-block;
    padding: 10px;
    font-weight: bold;
    background-color: #f0f0f0;
    border: 1px solid lightgray;
} 
.morphology-table .morphology-row .row-title{
    border-top: none;
    border-bottom: none;
}
.morphology-table .morphology-row-children{
    
}

.morphology-row{
    border: 1px solid lightgray;
    background-color: #eaeaea;
}
.morphology-table .morphology-row{
    border-right: none;
}

.morphology-table  .morphology-row:first-child{
    
}
.morphology-table .morphology-row:not(:first-child){
    border-left: none;
    margin-left: -1px;
}
.morphology-table .morphology-row:first-child .morphology-column{
    border-left: none;
}
.morphology-column{
    display: grid;
    border: 1px solid lightgray;
}
.morphology-row:not(:first-child) .column-title {
    display: none;
}

.morphology-row:first-child .column-title {
}

.morphology-row:not(:first-child) .morphology-column {
   grid-template-columns: 100%;
}

.morphology-row:first-child .morphology-column, 
.template-casualized .morphology-column {
    grid-template-columns: 16% 84%;
    position: relative;
}
.template-casualized{
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}
.template-casualized .morphology-column{
    border-top: none;
}
.morphology-row:not(:first-child) .morphology-row-children {
   
}
.morphology-row:first-child .morphology-row-children {
   
}
.morphology-row:not(:first-child) .row-title {
   width: 100%;
}
.morphology-row:first-child .row-title {
    width: calc(84% + 2px);
    margin-left: calc(16% - 2px);
}
.morphology-referent-wordform{
}
.morphology-query-wordform{
    font-weight: bold;
    color: #315e22;
}
.morphology-row:not(:first-child) .row-title {
   width: 100%;
}
.morphology-row:first-child .wordform-block,
.template-casualized .wordform-block {
    width: 100%;
}
.morphology-row:not(:first-child) .wordform-block {
    
}
.column-title.title-full{
    display: block;
}
.column-title.title-shortand,
.table-title.title-shortand,
.row-title.title-shortand{
    display: none;
}
.template-casualized .column-title.title-shortand{
    display: block;
}
.template-casualized .morphology-column:hover .column-title.title-full{
    display: block;
    z-index: 100;
    background-color: #f0f0f0;
    padding: 0.2em 0.7em;
    box-shadow: 0px 5px 6px #0000005c;
    font-size: 14px;
    border-radius: 0px 0px 5px 5px;
    border: 1px solid lightgray;
    border-top: none;
}
.template-casualized .column-title.title-full{
    display: none;
    position: absolute;
    top: 100%;
}
.template-casualized{
    width: 50%;
}
@media only screen and (max-width: 700px){
    .morphology-row:not(:first-child) .morphology-subrow-body .morphology-subrow .morphology-head-column {
        display: block !important;
    }
    .morphology-table .morphology-table-children{
        grid-template-columns: auto !important;
    }
    .column-title.title-full{
        display: none !important;
    }
    .column-title.title-shortand{
        display: block !important;
    }
    .morphology-row:not(:first-child) .morphology-column{
        grid-template-columns: 16% 84% !important; 
    }
    .morphology-row .column-title{
        max-height: auto;
        overflow: hidden;
    }
    .template-noun-plurality .morphology-row,
    .template-noun-case .morphology-row{
        display: grid;
        grid-template-columns: 30% 70% !important;
    }
    .morphology-table{
        grid-template-columns: auto !important;
        border-left: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
    }
    .morphology-head-column.gap{
        display: none;
    }
    .template-personilized .morphology-subrow.head-subrow{
        grid-template-columns: auto !important;
    }
    .template-personilized .morphology-subrow{
        grid-template-columns: 30% 70% !important;
    }
    .template-noun-case.morphology-table{
        width: 100%;
        margin: 0 auto;
    }

    .template-noun-plurality.morphology-table{
        width: 100%;
        margin: 0 auto;
    }
    .morphology-row .row-title {
        width: calc(84% + 1px) !important;
        margin-left: calc(16% - 1px)!important;
    }
    .morphology-table .morphology-column{
        border-left: none  !important;
    }
    .morphology-table .morphology-row:not(:first-child){
        border-left: 1px solid lightgray;
        margin-left: 0px;
        border-top: none;
    }
    .morphology-row:not(:first-child) .wordform-block{
        width: 100% !important;
    }
    
    .morphology-table .morphology-row{
        border-right: none;
    }
    .template-casualized{
        width: 100%;
    }
}