:root {
    --light-green: #d4edda;
    --light-yellow: #fff3cd;
    --light-orange: #ffdbae;
    --light-red: #f8d7da;
    --accent-red: #ff5867;
    --light-blue: #cbebff;
    --dark-border-color: #2c3e50;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;
    padding-top: 72px;
    padding-bottom: 72px;
}

.region {
    font-size: 1.3em;
    margin: 0;
}

.nowrap {
    white-space: nowrap !important;
}

.scrol-x {
    overflow-x: auto;
}

.table-recap td {
    white-space: nowrap;
}

.bg-green {
    background-color: var(--light-green) !important;
}

.bg-yellow {
    background-color: var(--light-yellow) !important;
}

.bg-orange {
    background-color: var(--light-orange) !important;
}

.bg-red {
    background-color: var(--light-red) !important;
}

.bg-red-accent {
    background-color: var(--accent-red) !important;
}

.bg-blue {
    background-color: var(--light-blue) !important;
}

.bg-grey {
    background-color: #e9ecef !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.bg-yellow-normal {
    background-color: yellow !important;
}

.bg-cornflowerblue {
    background-color: cornflowerblue !important;
}

.table-details {
    font-size: 0.7em;
    border-collapse: collapse;
}

.table-details thead th {
    vertical-align: middle;
    border: 1px solid var(--dark-border-color);
}

.table-details tbody td {
    vertical-align: middle;
}

.table-details td {
    white-space: nowrap;
    border: 1px solid var(--dark-border-color);
}

.table-details .plateformeVersionProduitCell {
    white-space: pre;
}

.detail-page-shell {
    margin-left: -0.75rem;
    margin-top: 3.5rem;
    padding-left: 0.1rem;
    padding-right: 0.75rem;
    width: calc(100% + 0.75rem);
}

.detail-page-offset {
    margin-left: 0.075rem !important;
}

.detail-toolbar,
.detail-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
}

.detail-toolbar {
    justify-content: space-between;
}

#supervisorTable {
    margin-bottom: 3.5rem;
}

.affaire {
    background-color: var(--light-blue);
}

.border-left-heavy {
    border-left: 2px solid var(--dark-border-color) !important;
}

.clickable {
    cursor: pointer;
}

.modal-content {
    overflow: hidden;
}

.modal-header {
    background-color: #343a40;
    color: #fff;
}

.modal-body {
    padding: 20px;
    background-color: #f8f9fa;
}

.modal-footer {
    background-color: #f1f3f5;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.table-modal-full {
    width: 100%;
    border-collapse: collapse;
}

.table-modal-full td {
    padding: 6px 4px;
    vertical-align: middle;
}

.col-50 {
    width: 50%;
}

.modal-body .ModalInfo_data {
    font-style: italic;
    padding-left: 0.5rem;
}

.CelluleCommentaire {
    border: 1px solid black;
    padding: 0;
    vertical-align: top;
}

.CommentaireZone {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100px;
    overflow: auto;
    box-sizing: border-box;
    border: none;
    resize: none;
    font-size: inherit;
    font-family: inherit;
    background-color: inherit;
}

.itable {
    display: inline-table;
}

.app-sticky-navbar {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.app-navbar-shell {
    position: relative;
}

.main-content {
    min-height: calc(100vh - 136px);
}

.app-last-load-navbar-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-last-load-navbar {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--kone-white);
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
}

.app-navbar-icon-link {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
}

.app-navbar-icon-link.active {
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.app-sticky-footer {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1030;
    background: var(--kone-blue);
    color: var(--kone-white);
    border-top: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.app-sticky-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
}

.admin-logs-page .bootstrap-table .fixed-table-toolbar {
    margin-bottom: 1rem;
}

.admin-logs-page .fixed-table-toolbar .search input {
    border-radius: 999px;
}

.admin-logs-page .log-entry-details {
    max-width: min(70vw, 900px);
    max-height: 18rem;
    overflow: auto;
    padding: 0.75rem;
    margin: 0.5rem 0 0;
    color: #f8f9fa;
    background: #1f2933;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    white-space: pre-wrap;
}

.error-page {
    text-align: center;
}

.error-page .subhead {
    font-size: 1.75rem;
}

.hall {
    width: 100%;
    height: 260px;
    position: relative;
    margin-top: 30px;
}

.hall .level {
    position: relative;
    margin: auto;
    width: 60px;
    height: 25px;
    background-color: #333;
    color: #ff4e4e;
    text-align: center;
    font-size: 14px;
    line-height: 25px;
    border: 2px solid lightgray;
}

.hall .cage .elevator {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 170px;
    height: 200px;
    background-color: lightgray;
}

.caret-rotate {
    transition: transform 0.25s ease-in-out;
    display: inline-block;
}

.caret-rotate.rotated {
    transform: rotate(-90deg);
}

body.hyper-contrast {
    background: #000;
    color: #fff;
}

body.hyper-contrast .main-content,
body.hyper-contrast .container,
body.hyper-contrast .container-fluid,
body.hyper-contrast .modal-body,
body.hyper-contrast .modal-footer,
body.hyper-contrast .card,
body.hyper-contrast .dropdown-menu {
    background-color: #000;
    color: #fff;
}

body.hyper-contrast a,
body.hyper-contrast .nav-link,
body.hyper-contrast .navbar-brand,
body.hyper-contrast .btn-link {
    color: #ffeb3b !important;
}

body.hyper-contrast .navbar,
body.hyper-contrast .modal-header,
body.hyper-contrast .app-sticky-footer {
    background: #000 !important;
    color: #fff !important;
    border-color: #ffeb3b !important;
    box-shadow: none;
}

body.hyper-contrast .app-last-load-navbar,
body.hyper-contrast .navbar-text,
body.hyper-contrast .page-title,
body.hyper-contrast label,
body.hyper-contrast p,
body.hyper-contrast span,
body.hyper-contrast div,
body.hyper-contrast td,
body.hyper-contrast th,
body.hyper-contrast li,
body.hyper-contrast strong,
body.hyper-contrast small,
body.hyper-contrast h1,
body.hyper-contrast h2,
body.hyper-contrast h3,
body.hyper-contrast h4,
body.hyper-contrast h5 {
    color: #fff;
}

body.hyper-contrast .table,
body.hyper-contrast .table td,
body.hyper-contrast .table th,
body.hyper-contrast .table-details td,
body.hyper-contrast .table-details th,
body.hyper-contrast .table-modal-full td,
body.hyper-contrast .CelluleCommentaire,
body.hyper-contrast .form-control,
body.hyper-contrast .form-select,
body.hyper-contrast .form-check-input {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #ffeb3b !important;
}

body.hyper-contrast .btn,
body.hyper-contrast .badge,
body.hyper-contrast .alert {
    border: 2px solid #ffeb3b !important;
    box-shadow: none !important;
}

body.hyper-contrast .bg-green,
body.hyper-contrast .bg-yellow,
body.hyper-contrast .bg-orange,
body.hyper-contrast .bg-red,
body.hyper-contrast .bg-red-accent,
body.hyper-contrast .bg-blue,
body.hyper-contrast .bg-grey,
body.hyper-contrast .bg-transparent,
body.hyper-contrast .bg-yellow-normal,
body.hyper-contrast .bg-cornflowerblue,
body.hyper-contrast .affaire {
    background-color: #111 !important;
    color: #fff !important;
}

.identity-message-error {
    color: #b94a48;
}

.identity-inline-form {
    display: inline-block;
}

.app-test-banner {
    background-color: red;
    color: white;
}

@media (max-width: 991.98px) {
    .detail-page-shell {
        margin-left: -0.75rem;
        margin-top: 3.5rem;
        padding-left: 0.08rem;
        padding-right: 0.5rem;
        width: calc(100% + 0.75rem);
    }

    .detail-page-offset {
        margin-left: 0.05rem !important;
    }

    .app-last-load-navbar-wrapper {
        position: static;
        transform: none;
    }

    body {
        padding-top: 72px;
        padding-bottom: 108px;
    }

    .main-content {
        min-height: calc(100vh - 172px);
    }
}

/* Infobulle du tableau : collée au curseur (cf. initCursorTooltips dans site.js) */
.ktb-tooltip {
    position: fixed;
    z-index: 2000;
    display: none;
    max-width: 320px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.ktb-tooltip.show {
    display: block;
}
