﻿.etab-main-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    height: calc(100vh - 8.375rem);
}


    .etab-main-page .etab-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .etab-main-page .etab-top-bar .left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: inherit;
    }
    
    .etab-main-page .etab-top-bar .right {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        gap: 1.25rem;
        height: inherit;
    }

.etab-main-page .abs-grid .etab-grid .k-table-td > div {
    font-size: 0.9375rem;
    border: none;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etab-main-page .abs-grid .etab-grid.abena-v2-grid tbody tr {
    height: 4rem;
}

.etab-main-page .abs-grid .fa-button {
    color: var(--abena-v2-primary);
    font-weight: 800;
}


.etab-main-page .etab-grid.etab-selection .k-table-row:hover .k-table-td{
        background-color: var(--primary) !important;
        color: white !important;
        cursor: pointer !important;
    }


        .etab-main-page .etab-grid .tag-chambre {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width:  1.8125rem;
            min-width:  1.8125rem;
            height: 1.5rem;
            border-radius: 0.1875rem;
            font-size: 0.875rem;
        }

            .etab-main-page .etab-grid .tag-chambre.V1 {
                background-color: #FBEFC6;
                border: 1px solid #F4D35E;
                color: #997A0B;
            }

            .etab-main-page .etab-grid .tag-chambre.V3 {
                background-color: #DDF8F4;
                border: 1px solid #26BAA4;
                color: #187768;
            }

.etab-archived td:not(:has(.fa-button)){
    opacity: 0.5;
}
.etab-archived td{
    text-decoration: line-through;
}

.without-shipto {
    text-decoration: line-through;
}

.netsoins-config-modal .inner-content {
    overflow-y: auto;
    max-height: calc(100vh - 10.25rem);
}

.etab-tab-content {
    height: calc(100vh - 16.25rem);
}

.bypass-legend {
    max-width: 100%;
    padding: 0.3rem;
}
.bypass-legend .k-grid-layout > div {
    word-wrap: break-word;
    border: solid 1px var(--borders);
    padding: 0.25rem;
}

.netsoins-config-modal .inner-content .k-grid-layout:first-of-type > div:first-of-type {
    border-top-left-radius: 0.25rem;
}
.netsoins-config-modal .inner-content .k-grid-layout:first-of-type > div:last-of-type {
    border-top-right-radius: 0.25rem;
}

.netsoins-config-modal .inner-content .k-grid-layout:last-of-type > div:first-of-type {
    border-bottom-left-radius: 0.25rem;
}
.netsoins-config-modal .inner-content .k-grid-layout:last-of-type > div:last-of-type {
    border-bottom-right-radius: 0.25rem;
}

.establishment-status-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    &.active {
        background-image: url("/Images/abenamd/state-complete.png");
        width : 1rem;
    }
    &.archived {
        background-image: url("/Images/abenamd/state-incomplete.png");
        width: 1rem;
    }
    &.inactive {
        background-image: url("/Images/abenamd/state-inactive.png");
        width: 1rem;
    }
    &.netsoins-active {
        background-image: url("/Images/Logos/netsoins-logo-icon.png");
        width: 2rem;
    }
}

.establishment-status-badge {
    padding: 0.1875rem 1rem 1px 1rem;
    width: auto;
    border: 1px solid var(--secondary) !important;
    border-radius: 0.625rem;
    background: #EFF2FB;
    color: var(--secondary);
    font-size: 1.5rem !important;
    height: 3rem;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.establishment-status-badge-grid {
    padding: 0.1875rem 0.375rem 1px 0.375rem;
    width: 4.6875rem;
    border: 1px solid var(--secondary) !important;
    border-radius: 0.625rem;
    background: #EFF2FB;
    color: var(--secondary);
    font-size: 0.875rem !important;
    height: 1.5rem;
    align-content: center;
    text-align: center;
}


.establishment-status-badge.active,
.establishment-status-badge-grid.active{
    background: #77B36D;
    border-color: #77B36D !important;
    color: var(--white);
}
.establishment-status-badge.archived,
.establishment-status-badge-grid.archived{
    background: var(--red);
    border-color: var(--red) !important;
    color: var(--white);
}
.establishment-status-badge.inactive,
.establishment-status-badge-grid.inactive{
    background: var(--orange);
    border-color: var(--orange) !important;
    color: var(--white);
}

.establishment-archive-btn{
    position: absolute;
    right: 0;
    top: -2.75rem;
}

.reset-filters {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--abena-v2-primary);
    font-family: Gilroy-Medium;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    
}

.reset-filters .underline{
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.reset-filters:hover {
    opacity: 0.8;
}

.icon-circle {
    color: var(--abena-v2-primary);
    display: inline-flex;
    justify-content: end;
    align-items: center;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.default-badge.central {
    width: auto;
    border-radius: 0.3125rem;
    height: fit-content;
}
.default-badge.central.title{
    background: #52A795;
    border-color: #52A795 !important;
    color: var(--white);
    text-align: center;
}
.default-badge.central.name{
    background: #4678B2;
    border-color: #4678B2 !important;
    color: var(--white);
    text-align: center;
}

.establishment-add-user-modal .abs-text-box-buttons{
    background-color: var(--bgcolor) !important;
}

.etab-grid .k-grid-header-menu {
    width: 0.75rem !important;
}