﻿/*TOP BAR*/

.chambre-main-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.chambre-main-page .chambre-left {
    width: 21.875rem;
    height: calc(100vh - 16.25rem);
    display: flex;
    flex-direction: column;
    align-content: center;
    border-right: 1px solid #DADAE7;
    margin-right: 1.25rem;
    flex-shrink: 0;
    overflow-y: auto;
    gap: 1rem;
    padding-left: 0.5rem;
}

.chambre-main-page .chambre-left .separator {
    height: 2.5rem;
}


.chambre-main-page .chambre-right {
    overflow-x: hidden;
}

.chambre-main-page .group-grid .k-grid-header {
    display: none;
}

.chambre-main-page .group-grid .k-grid .k-table-alt-row {
    background-color: white;
}

.chambre-main-page .group-grid .k-grid .k-table-alt-row:hover {
    background-color: transparent !important;
}

.chambre-section-navigator td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.chambre-section-navigator td div {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.5rem;
}

.chambre-section-navigator .k-table-td.with-wrapping {
    display: flex;
    align-items: center;
}

.chambre-section-navigator .k-table-td.with-wrapping:not(:first-child) {
    text-indent: 1rem;
}

span.k-icon.k-i-none {
    display: none;
}

.chambre-section-display {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.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;
    background-color: #26BAA4;
    border: 1px solid #26BAA4;
    color: white;
}

    .tag-chambre.V1 {
        background-color: #FBEFC6;
        border: 1px solid #F4D35E;
        color: #997A0B;
    }
    
    .tag-chambre.V3 {
        background-color: #DDF8F4;
        border: 1px solid #26BAA4;
        color: #187768;
    }

.chambre-main-page .chambre-grid .tag-chambre.empty {
    background-color: var(--abs-light-purple);
    border: 1px solid var(--abs-light-purple);
}


.chambre-top-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: 10%;
    margin-bottom: 1rem;
    width: 100%;
}

.chambre-top-bar .left-part {
    display: flex;
    flex-direction: column;
    height: inherit;
    gap: 0.25rem;
}


.chambre-top-bar .right-part {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    margin-right: 1.25rem;
    height: inherit;
}


/* MODAL CHAMBRE*/

.modal-chambre-form-item-text {
}

.modal-chambre-form-item-text-note {
}

.modal-chambre-form-item-group {
}

.modal-chambre-form-item-name {
}

.modal-chambre-style {
    background-color: white;
    border-color: grey;
}


/* GRID CSS TO CHECK */
.no-group-header .k-grouping-header {
    display: none;
}

.hide-first-x-button .k-grouping-header .k-indicator-container:first-of-type .k-button.k-button-icon.k-bare {
    display: none;
}


.chambre-edit {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

.chambre-edit .label {
    font-size: 0.75rem;
}

.chambre-edit .ligne-numero {
    height: 3.75rem;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

.chambre-edit .ligne-numero .numero {
    display: flex;
    gap: 0.3125rem;
    flex-direction: column;
}

.chambre-edit .ligne-lit {
    height: 3.75rem;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

.chambre-edit .ligne-lit .lit {
    display: flex;
    gap: 0.3125rem;
    flex-direction: column;
}

.chambre-edit .ligne-section {
    height: 5rem;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

.chambre-edit .ligne-section .section {
    display: flex;
    gap: 0.3125rem;
    flex-direction: column;
}

.chambre-edit .ligne-groupe {
    height: 5rem;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

.chambre-edit .ligne-groupe .groupe {
    display: flex;
    gap: 0.3125rem;
    flex-direction: column;
}

.chambre-edit .ligne-resident {
    height: 5rem;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
}

/*  .chambre-edit .ligne-resident .resident-dropdown-panel .nom-section .display-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width:25rem !important;
}*/

.chambre-edit .ligne-resident .resident {
    display: flex;
    gap: 0.3125rem;
    flex-direction: column;
}

.chambre-edit .ligne-resident .resident .button-group {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.add-chambre {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
    padding: 0 0.5rem;
}

.add-chambre .first-and-last-numero {
    display: flex;
    gap: 1.25rem;
    flex-direction: row;
}

.add-chambre .ajout-lits {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    flex-direction: row;
    padding: 0 0.5rem;
}

.add-section {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
    padding: 0 0.5rem;
}

.add-groupe {
    height: 100%;
    display: flex;
    gap: 1.25rem;
    flex-direction: column;
    padding: 0 0.5rem;
}

.edit-section-bottom {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}


.group-grid .edit-groupe {
    background-color: transparent;
    color: #262B32;
    border: none;
    height: 1.75rem;
    cursor: pointer;
}


/*NAVIGATOR EN TV GENERALISER ?   */

.chambre-section-navigator .k-table-row:not(.section-lvl-1):hover, .chambre-section-navigator .section-lvl-1 .k-table-td:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/*Sidenav Hierarchy*/

.section-lvl-1:not(.closed) > td:after,
.section-lvl-2:not(.closed) > td:after,
.section-lvl-3:not(.closed) > td:after,
.section-lvl-4:not(.closed) > td:after,
.section-lvl-5:not(.closed) > td:after{
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 0.25rem;
    display: block;
    width: 1rem;
    height: 0.75rem;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-left: none;
    border-top: none;
}
.section-lvl-1:not(.closed):hover > td:after,
.section-lvl-2:not(.closed):hover > td:after,
.section-lvl-3:not(.closed):hover > td:after,
.section-lvl-4:not(.closed):hover > td:after,
.section-lvl-5:not(.closed):hover > td:after {
    border-color: var(--scroll);
}

.abs-nav-treeview.wrapping tr{
    position: relative;
}

.abs-nav-treeview.wrapping tr > td > div{
    word-break: break-all;
}

.section-lvl-2 .k-table-td.with-wrapping {
    position: relative;
}

.section-lvl-1:has(.k-i-caret-alt-down) div,
.section-lvl-2:has(.k-i-caret-alt-down) div,
.section-lvl-3:has(.k-i-caret-alt-down) div,
.section-lvl-4:has(.k-i-caret-alt-down) div,
.section-lvl-5:has(.k-i-caret-alt-down) div,
.section-lvl-1:has(.k-i-caret-alt-right) div,
.section-lvl-2:has(.k-i-caret-alt-right) div,
.section-lvl-3:has(.k-i-caret-alt-right) div,
.section-lvl-4:has(.k-i-caret-alt-right) div,
.section-lvl-5:has(.k-i-caret-alt-right) div {
    margin-left: 1rem;
} 
    

.section-lvl-2 .has-next-sibling:before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}
.section-lvl-2:hover .has-next-sibling:before {
    border-color: var(--scroll);
}

.section-lvl-2:not(.closed) > td:after{
    left: 2.5rem;
    height: 100%;
}

.section-lvl-3 .k-table-td.with-wrapping {
    position: relative;
}

.section-lvl-3 .has-next-sibling:before {
    content: "";
    position: absolute;
    top: 0;
    left: 3.5rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}
.section-lvl-3:hover .has-next-sibling:before {
    border-color: var(--scroll);
}

.section-lvl-3 .has-next-parent-sibling:after, .n-parent-sibling-1 td span:nth-child(1) {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}

.section-lvl-3:hover .has-next-parent-sibling:after, .n-parent-sibling-1:hover td span:nth-child(1) {
    border-color: var(--scroll);
}

.section-lvl-3:not(.closed) > td:after{
    left: 4.75rem;
}


.section-lvl-4 .k-table-td.with-wrapping {
    position: relative;
}


.section-lvl-4 .has-next-sibling:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5.75rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}

.section-lvl-4:hover .has-next-sibling:before {
    border-color: var(--scroll);
}

.section-lvl-4 .has-next-parent-sibling:after, .n-parent-sibling-2 td span:nth-child(2) {
    content: "";
    position: absolute;
    top: 0;
    left: 3.5rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}
.section-lvl-4:hover .has-next-parent-sibling:after, .n-parent-sibling-2:hover td span:nth-child(2) {
    border-color: var(--scroll);
}

.section-lvl-4:not(.closed) > td:after{
    left: 7rem;
}


.section-lvl-5 .k-table-td.with-wrapping {
    position: relative;
}


.section-lvl-5 .has-next-sibling:before {
    content: "";
    position: absolute;
    top: 0;
    left: 8rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}
.section-lvl-5:hover .has-next-sibling:before {
    border-color: var(--scroll);
}


.section-lvl-5 .has-next-parent-sibling:after, .n-parent-sibling-3 td span:nth-child(3) {
    content: "";
    position: absolute;
    top: 0;
    left: 5.75rem;
    display: block;
    width: 1rem;
    height: 100%;
    border: var(--tree-line-width) solid var(--tree-line-color);
    border-bottom: none;
    border-right: none;
    border-top: none;
}

.section-lvl-5:hover .has-next-parent-sibling:after, .n-parent-sibling-3:hover td span:nth-child(3) {
    border-color: var(--borders);
}

@media (-webkit-device-pixel-ratio: 1.5), (-webkit-device-pixel-ratio: 1.25), (-webkit-device-pixel-ratio: 1.75), (-webkit-device-pixel-ratio: 2), (max-width: 1366px) {
    .section-lvl-2 .has-next-sibling:before, .section-lvl-3 .has-next-parent-sibling:after, .n-parent-sibling-1 td span:nth-child(1) {
        left: 1.4rem;
    }

    .section-lvl-1:not(.closed) > td:after{
        left: 0.4rem;
    }
}