.bureau, .stage-login {
    --stage-ink: #26324b;
    --stage-muted: #66748e;
    --stage-purple: #7744bc;
    --stage-edge: #e9e6f2;
    --stage-gradient: linear-gradient(105deg, #7b41c7 0%, #a54ec9 100%);
    color: var(--stage-ink);
    font-family: Poppins, Arial, sans-serif;
}
.bureau { background: #f5f4fb; }
.bureau .main-wrapper { display: flex; min-height: 100vh; }
.bureau #sidebar.stage-sidebar {
    width: 255px; flex: 0 0 255px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: #fff; box-shadow: 0 3px 26px rgba(39, 23, 75, .08); z-index: 5; padding: 22px 14px;
}
.stage-brand { display: flex; align-items: center; gap: 12px; color: var(--stage-ink); padding: 0 10px 24px; }
.stage-brand:hover { text-decoration: none; color: var(--stage-ink); }
.stage-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--stage-gradient); font-size: 19px; }
.stage-brand strong, .stage-brand small { display: block; }
.stage-brand strong { font-size: 17px; letter-spacing: .06em; }
.stage-brand small { color: var(--stage-muted); }
.stage-nav-label { margin: 18px 12px 7px; font-size: 12px; font-weight: 600; color: var(--stage-muted); }
.bureau #sidebar .stage-nav { padding: 0; margin: 0; list-style: none; }
.bureau #sidebar .stage-nav li a {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin: 2px 0; border-radius: 7px;
    font-size: 13px; line-height: 1.45; color: var(--stage-ink); text-decoration: none;
}
.bureau #sidebar .stage-nav li a:hover, .bureau #sidebar .stage-nav li a[aria-current="page"] { background: #f0e8fb; color: #63359f; }
.bureau #main-content.stage-main { flex: 1; margin: 0; padding: 0; min-width: 0; max-width: none; width: auto; min-height: 100vh; }
.stage-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 30px; min-height: 65px; background: #fff; border-bottom: 1px solid var(--stage-edge); }
.stage-header-start { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stage-header-brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--stage-ink); }
.stage-header-brand strong { font-size: 14px; font-weight: 600; }
.stage-header-brand span { color: var(--stage-muted); font-size: 11px; }
.stage-account, .stage-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-account a, .stage-panel a { color: #6538a6; }
.stage-account { margin-left: auto; }
.stage-header .stage-menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--stage-edge); border-radius: 8px; background: #fff; color: var(--stage-purple); font-size: 17px; }
.stage-header .stage-menu:hover, .stage-header .stage-menu:focus { background: #f5effb; color: #63359f; }
.stage-profile { position: relative; }
.stage-profile-toggle { display: flex; align-items: center; gap: 10px; padding: 3px 0 3px 8px; border: 0; background: transparent; color: var(--stage-ink); text-align: left; cursor: pointer; }
.stage-profile-toggle:hover .stage-profile-copy strong, .stage-profile-toggle:focus .stage-profile-copy strong { color: #63359f; }
.stage-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #f0e8fb; color: #683aa7; font-size: 16px; }
.stage-profile-copy { display: flex; flex-direction: column; max-width: 190px; line-height: 1.25; }
.stage-profile-copy strong { overflow: hidden; color: var(--stage-ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.stage-profile-copy small { margin-top: 3px; color: var(--stage-muted); font-size: 11px; }
.stage-profile-chevron { margin-left: 2px; color: var(--stage-muted); font-size: 10px; }
.stage-profile-menu { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; width: 215px; padding: 7px; background: #fff; border: 1px solid var(--stage-edge); border-radius: 10px; box-shadow: 0 12px 30px rgba(39, 23, 75, .15); }
.stage-profile-menu[hidden] { display: none; }
.stage-profile-menu a, .stage-profile-menu form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--stage-ink); font-size: 13px; text-align: left; text-decoration: none; }
.stage-profile-menu a:hover, .stage-profile-menu form button:hover { background: #f4eefb; color: #63359f; }
.stage-profile-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--stage-edge); }
.stage-profile-menu form button { cursor: pointer; }
.stage-sidebar-backdrop { display: none; }
.bureau.sidebar-collapsed #sidebar.stage-sidebar { width: 76px; flex-basis: 76px; padding-right: 9px; padding-left: 9px; }
.bureau.sidebar-collapsed .stage-brand { justify-content: center; padding-right: 0; padding-left: 0; }
.bureau.sidebar-collapsed .stage-brand > span:not(.stage-brand-mark), .bureau.sidebar-collapsed .stage-nav-label, .bureau.sidebar-collapsed .stage-nav-link-text { display: none; }
.bureau.sidebar-collapsed #sidebar .stage-nav li a { justify-content: center; padding-right: 8px; padding-left: 8px; }
.bureau.sidebar-collapsed #sidebar .stage-nav li a i { margin: 0; font-size: 16px; }
.stage-body { padding: 26px 30px 40px; }
.stage-page-heading, .stage-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.stage-page-heading h1 { margin: 0; font-size: clamp(23px, 3vw, 31px); font-weight: 600; color: var(--stage-ink); }
.stage-panel h2 { font-size: 18px; margin: 0 0 14px; color: var(--stage-ink); }
.stage-panel-heading h2 { margin: 0; }
.bureau .stage-panel, .stage-login-form { background: #fff; padding: 20px 22px; border: 1px solid var(--stage-edge); border-radius: 12px; margin: 0 0 18px; box-shadow: 0 5px 18px rgba(55, 37, 85, .045); }
.stage-narrow { max-width: 575px; }
.stage-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.bureau .stage-metric { display: flex; gap: 6px; flex-direction: column; min-height: 143px; background-color: #fff; background-image: url('backEnd/assets/img/summery-bg1.png'); background-position: right bottom; background-repeat: no-repeat; background-size: auto 82%; padding: 18px; border-radius: 12px; color: var(--stage-ink); text-decoration: none; text-align: left; margin: 0; }
.bureau .stage-metric:nth-child(2n) { background-image: url('backEnd/assets/img/summery-bg2.png'); }
.bureau .stage-metric:nth-child(3n) { background-image: url('backEnd/assets/img/summery-bg3.png'); }
.stage-metric i { color: var(--stage-purple); }
.stage-metric strong { font-size: 28px; line-height: 1.2; }
.stage-metric span { font-size: 13px; font-weight: 500; }
.stage-primary, .stage-panel a.stage-primary { background: var(--stage-gradient); color: #fff; border: 0; }
.stage-primary:hover, .stage-panel a.stage-primary:hover { color: #fff; filter: brightness(.93); }
.stage-secondary, .stage-panel a.stage-secondary { background: #f0eafa; color: #5f389b; border: 1px solid #e4d8f4; }
.stage-secondary:hover { color: #442678; background: #e8def7; }
.stage-primary, .stage-secondary { padding: 8px 13px; font-size: 13px; min-height: 36px; border-radius: 7px; }
.stage-field { display: flex; flex-direction: column; gap: 5px; color: var(--stage-ink); margin: 0 0 12px; font-size: 13px; }
.stage-field > span, .stage-filter > label { font-weight: 500; }
.stage-field .form-control, .stage-filter .form-control, .stage-table .form-control { font-size: 13px; color: var(--stage-ink); border-color: #ded9ea; }
.stage-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; font-size: 13px; }
.stage-filter label { margin-bottom: 0; }
.stage-filter .form-control { width: auto; max-width: 100%; min-width: 112px; }
.stage-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); align-items: end; }
.stage-table { font-size: 13px; color: var(--stage-ink); }
.stage-table td, .stage-table th { vertical-align: middle; padding: 10px 8px; border-color: var(--stage-edge); }
.stage-table thead th { background: #f8f6fc; white-space: nowrap; border: 0; }
.stage-table p { margin-bottom: 4px; }
.stage-table td:last-child { min-width: 92px; }
.stage-table input[type=number] { min-width: 75px; }
.stage-table select { min-width: 114px; }
.stage-chip { display: inline-block; padding: 3px 9px; background: #eee8f8; color: #5d388c; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.stage-panel details summary { cursor: pointer; color: #63359f; }
.stage-panel details > form { margin-top: 12px; }
.stage-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.stage-map { min-height: 365px; background: #ebe7f4; border-radius: 8px; z-index: 0; }
.stage-login { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: #f4eefa url('backEnd/login/img/login-bg.jpg') center/cover no-repeat; }
.stage-login .stage-login-form { width: min(100%, 440px); min-width: 0; margin: 0; padding: 32px; }
.stage-login-form h1 { font-size: 24px; margin: 0 0 20px; color: var(--stage-ink); }
.stage-login-brand { padding: 0 0 24px; }
.stage-message { padding: 12px 16px; margin-bottom: 10px; background: #f5effb; border-radius: 8px; }
.stage-message p { margin: 5px 0 0; }
.stage-muted { color: var(--stage-muted); }
.stage-account { display:flex; align-items:center; gap:12px; }
.stage-brand-mark img { width:100%; height:100%; display:block; object-fit:contain; border-radius:inherit; }
.stage-avatar img { width:100%; height:100%; display:block; object-fit:cover; border-radius:50%; }
.stage-account-photo-preview { width:112px; height:112px; display:grid; place-items:center; object-fit:cover; border-radius:50%; border:3px solid #ece6f4; }
.stage-avatar-fallback { background:#f2edf8; color:#61389a; font-size:30px; }
.stage-notification-link { position:relative; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; color:var(--stage-ink); background:#f5f1fa; text-decoration:none; }
.stage-notification-link i { font-size:17px; }
.stage-notification-link span { position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border-radius:12px; background:#b42318; color:#fff; font:600 10px Arial,sans-serif; }
.stage-notice-unread td { background:#f7f3fc; }
.stage-evaluation { padding:14px 0; border-top:1px solid #ece8f1; }
.stage-evaluation p { margin:6px 0; }
.stage-qr-panel { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
#lab-session-qr { min-width:176px; min-height:176px; display:grid; place-items:center; padding:8px; border:1px solid #e5e1ec; border-radius:8px; }
.stage-checkin { max-width:720px; margin:auto; }
@media(max-width:790px) { .stage-account { gap:6px; } .stage-notification-link { width:34px; height:34px; } }
@media(max-width: 1100px) { .stage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 790px) {
    .bureau #sidebar.stage-sidebar { position: fixed; left: 0; top: 62px; width: 255px; flex-basis: 255px; height: calc(100dvh - 62px); transform: translateX(-105%); z-index: 8; }
    .bureau #sidebar.stage-sidebar.is-open { transform: translateX(0); }
    .bureau.sidebar-collapsed #sidebar.stage-sidebar { width: 255px; flex-basis: 255px; padding: 22px 14px; }
    .bureau.sidebar-collapsed .stage-brand { justify-content: flex-start; padding-right: 10px; padding-left: 10px; }
    .bureau.sidebar-collapsed .stage-brand > span:not(.stage-brand-mark), .bureau.sidebar-collapsed .stage-nav-label, .bureau.sidebar-collapsed .stage-nav-link-text { display: block; }
    .bureau.sidebar-collapsed #sidebar .stage-nav li a { justify-content: flex-start; padding: 9px 11px; }
    .bureau.sidebar-collapsed #sidebar .stage-nav li a i { font-size: inherit; }
    .stage-header { position: sticky; top: 0; z-index: 7; gap: 8px; padding: 8px 12px; }
    .stage-header-start { gap: 9px; }
    .stage-header .stage-menu { flex: 0 0 38px; width: 38px; height: 38px; }
    .stage-header-brand strong { font-size: 12px; }
    .stage-header-brand span { font-size: 10px; }
    .stage-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .stage-profile-copy { max-width: 120px; }
    .stage-profile-copy strong { font-size: 11px; }
    .stage-profile-copy small { font-size: 10px; }
    .stage-profile-toggle { gap: 7px; padding-left: 2px; }
    .stage-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 62px 0 0; z-index: 6; width: 100%; height: calc(100dvh - 62px); border: 0; background: rgba(29, 23, 42, .34); }
    .stage-body { padding: 20px 12px; }
    .bureau .stage-panel { padding: 15px 12px; }
    .stage-metrics { gap: 10px; }
}
@media(max-width: 430px) {
    .stage-header { padding-right: 8px; padding-left: 8px; }
    .stage-profile-copy { max-width: 90px; }
    .stage-profile-chevron { display: none; }
}
