/* =====================================================================
   Emeco Operations — modern UI
   ===================================================================== */

:root {
    /* Brand */
    --brand-50:  #eef5fb;
    --brand-100: #d3e4f3;
    --brand-200: #a7c9e7;
    --brand-300: #6fa6d4;
    --brand-500: #2c6fb8;
    --brand-600: #245b97;
    --brand-700: #1d4d6a;
    --brand-800: #163a52;
    --accent-500: #c89b7c;

    /* Neutrals */
    --gray-25:  #fafbfc;
    --gray-50:  #f5f7fa;
    --gray-100: #eef2f6;
    --gray-200: #e3e8ee;
    --gray-300: #cfd6df;
    --gray-400: #a3aebd;
    --gray-500: #6c7884;
    --gray-600: #475260;
    --gray-700: #2d3540;
    --gray-900: #0f1419;

    /* Semantic */
    --danger:    #d9362d;
    --danger-bg: #fdecea;
    --success:   #0f8a4d;
    --success-bg:#e6f5ed;
    --warning:   #c97c1a;
    --warning-bg:#fff4e0;
    --info:      #2c6fb8;
    --info-bg:   #e6eef7;

    /* Layout */
    --radius:    8px;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow:    0 4px 12px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14), 0 4px 8px rgba(15, 23, 42, .08);
    --transition: all .15s ease;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-500); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-600); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; color: var(--gray-900); }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
    border: 0 !important;
}

/* =====================================================================
   Login
   ===================================================================== */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at top, rgba(44,111,184,.4), transparent 60%),
        linear-gradient(135deg, var(--brand-700) 0%, var(--brand-800) 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}
.login-card .logo { text-align: center; margin-bottom: 24px; }
.login-card .logo img { max-width: 120px; }
.login-card h1 {
    text-align: center;
    font-size: 20px;
    margin: 0 0 28px;
    color: var(--brand-800);
    font-weight: 600;
}

/* =====================================================================
   App shell
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: var(--brand-800);
    color: rgba(255,255,255,.92);
    flex-shrink: 0;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.sidebar .brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.sidebar .brand img {
    max-width: 88px;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}
.sidebar .brand div {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar nav { padding: 12px 8px; flex: 1; }
.sidebar nav a {
    display: flex; align-items: center;
    padding: 10px 14px;
    margin: 2px 0;
    color: rgba(255,255,255,.78);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}
.sidebar nav a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
}
.sidebar nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent-500);
}
.sidebar nav .group-label {
    padding: 18px 14px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.4);
    font-weight: 600;
}

/* Collapsible nav group (e.g. "Company Settings" submenu). */
.sidebar nav .nav-group { margin: 2px 0; }
.sidebar nav .nav-group-toggle {
    display: flex; align-items: center; width: 100%;
    background: transparent; border: 0; cursor: pointer;
    padding: 10px 14px; margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 13.5px; font-weight: 500;
    border-radius: 6px; transition: var(--transition);
    font-family: inherit; text-align: left;
}
.sidebar nav .nav-group-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav .nav-group-toggle.active { color: #fff; }
.sidebar nav .nav-group-toggle .caret { margin-left: auto; font-size: 10px; transition: transform .18s; opacity: .6; }
.sidebar nav .nav-group.open .nav-group-toggle .caret { transform: rotate(180deg); opacity: 1; }
.sidebar nav .nav-submenu {
    max-height: 0; overflow: hidden;
    transition: max-height .22s ease;
    padding-left: 14px;     /* indent children */
    border-left: 1px solid rgba(255,255,255,.08);
    margin-left: 18px;
}
.sidebar nav .nav-group.open .nav-submenu { max-height: 400px; }
.sidebar nav .nav-submenu a { padding-left: 12px; font-size: 13px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 10;
}
.topbar h1 {
    flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600;
}
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.topbar .user-info {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    color: var(--gray-700);
}

/* Header Notification Center — stays in the shared topbar for every role,
   including logistics-only users. The topbar remains z-index:10 so drawers
   (100+) still cover it correctly. */
.notif-popover { position: relative; flex: 0 0 auto; }
.notif-bell {
    position: relative; width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-100); border-radius: 12px; background: var(--brand-50);
    color: var(--brand-700); text-decoration: none; cursor: pointer;
}
.notif-bell:hover { background: #e4eff8; border-color: var(--brand-300); text-decoration: none; }
.notif-bell:focus-visible { outline: 3px solid rgba(44,111,184,.28); outline-offset: 2px; }
.notif-bell-icon {
    width: 23px; height: 23px; display: block; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.notif-bell-accent { stroke: var(--accent-500); stroke-width: 2.25; }
.notif-bell-count {
    position: absolute; top: -3px; right: -5px; min-width: 19px; height: 19px;
    padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; border-radius: 999px; background: var(--danger);
    color: #fff; font-size: 9px; line-height: 1; font-weight: 700;
}
.notif-bell-unread {
    position: absolute; right: -1px; bottom: 0; width: 10px; height: 10px;
    border: 2px solid #fff; border-radius: 50%; background: #2563eb;
}
.notif-popover-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
    width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 84px);
    overflow-y: auto; background: #fff; border: 1px solid var(--gray-200);
    border-radius: 10px; box-shadow: 0 14px 36px rgba(15,23,42,.18);
}
.notif-popover-panel[hidden] { display: none; }
.notif-popover-sticky { position: sticky; top: 0; z-index: 2; background: #fff; }
.notif-popover-head {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px; padding: 13px 15px;
    background: #fff; border-bottom: 1px solid var(--gray-200);
}
.notif-popover-head > div { display: grid; gap: 2px; }
.notif-popover-head h2 { margin: 0; font-size: 14px; }
.notif-popover-head > div > span {
    color: var(--gray-500); font-size: 11px; line-height: 1.35;
    white-space: normal;
}
.notif-grouped-label {
    padding: 3px 8px; border-radius: 999px; background: var(--brand-50);
    color: var(--brand-700); font-size: 10px; font-weight: 600; white-space: nowrap;
}
.notif-popover-views {
    display: flex; gap: 5px; padding: 9px 14px;
    background: #fff; border-bottom: 1px solid var(--gray-200);
}
.notif-popover-views a {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
    border-radius: 999px; color: var(--gray-600); font-size: 11.5px;
    font-weight: 600; text-decoration: none;
}
.notif-popover-views a:hover, .notif-popover-views a:focus-visible { background: var(--gray-50); }
.notif-popover-views a.active { background: var(--brand-700); color: #fff; }
.notif-popover-views a span { font-size: 10px; opacity: .85; }
.notif-popover-empty { padding: 28px 16px; text-align: center; color: var(--gray-500); font-size: 13px; }
.notif-popover-groups { display: flex; flex-direction: column; }
.notif-popover-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 14px 6px; color: var(--gray-700); background: var(--gray-25);
}
.notif-popover-section-head h3 { margin: 0; font-size: 11px; }
.notif-popover-section-head span { color: var(--gray-500); font-size: 10px; }
.notif-popover-section[hidden] { display: none; }
.notif-popover-section-list { display: flex; flex-direction: column; }
.notif-category + .notif-category { border-top: 1px solid var(--gray-100); }
.notif-category[hidden] { display: none; }
.notif-category details > summary {
    display: grid; grid-template-columns: 38px minmax(0,1fr) auto 18px;
    align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
    list-style: none; color: var(--gray-800);
}
.notif-category details > summary::-webkit-details-marker { display: none; }
.notif-category details > summary:hover { background: var(--gray-25); }
.notif-category details > summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.notif-category-mark {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--brand-700); background: var(--brand-50);
}
.notif-category-ar .notif-category-mark { background: #fdf3e7; color: #8a5620; }
.notif-category-agent .notif-category-mark { background: #edf8f3; color: #176a49; }
.notif-category-enhancement .notif-category-mark { background: #f5effb; color: #68408a; }
.notif-category-other .notif-category-mark { background: var(--gray-100); color: var(--gray-600); }
.notif-category-mark svg, .notif-category-chevron {
    width: 20px; height: 20px; display: block; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.notif-category-copy { display: grid; gap: 1px; min-width: 0; }
.notif-category-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.notif-category-copy > span { color: var(--gray-500); font-size: 10.5px; }
.notif-new-indicator {
    display: inline-block; width: 7px; height: 7px; margin-right: 5px;
    border-radius: 50%; background: var(--brand-500);
}
.notif-category-count {
    min-width: 25px; max-width: 72px; overflow: hidden; text-overflow: ellipsis;
    padding: 3px 7px; border-radius: 999px; background: var(--gray-100);
    color: var(--gray-700); text-align: center; font-size: 10.5px; font-weight: 700;
}
.notif-category-chevron { width: 16px; height: 16px; transition: transform .15s ease; }
.notif-category details[open] .notif-category-chevron { transform: rotate(180deg); }
.notif-category-detail { margin-left: 62px; padding: 0 14px 11px 0; }
.notif-category-detail ul { margin: 0; padding: 0; list-style: none; }
.notif-category-detail li { border-top: 1px solid var(--gray-100); }
.notif-popover-item {
    display: flex; flex-direction: column; gap: 3px; padding: 9px 2px;
    color: var(--gray-800); text-decoration: none;
}
.notif-popover-item:hover, .notif-popover-item:focus-visible { background: var(--gray-50); }
.notif-popover-item.is-unread strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--brand-500); }
.notif-popover-item:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.notif-popover-item > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.notif-popover-item time { color: var(--gray-500); font-size: 10px; white-space: nowrap; }
.notif-popover-item strong { min-width: 0; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.notif-popover-body { color: var(--gray-600); font-size: 10.8px; line-height: 1.4; overflow-wrap: anywhere; }
.notif-category-all {
    display: block; padding: 7px 2px 1px; text-align: right; color: var(--brand-700);
    font-size: 11px; font-weight: 600; text-decoration: none;
}
/* Notification badges use 11px text, so keep their foreground/background
   contrast above 4.5:1 without changing badges elsewhere in the application. */
.notif-popover .badge-warning,
.notif-center-card .badge-warning { background: #fef3c7; color: #713f12; }
.notif-center-card .badge-success { background: #dcfce7; color: #14532d; }
.notif-badge-new { background: #dbeafe; color: #1e3a8a; }
.notif-popover-all {
    display: block; padding: 11px 15px; text-align: center; color: var(--brand-700);
    background: var(--gray-25); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.notif-popover-all:hover, .notif-popover-all:focus-visible { background: var(--brand-50); }

/* Generic Notification Center page. */
.notif-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.notif-tabs a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
    border: 1px solid var(--gray-200); border-radius: 999px; background: #fff;
    color: var(--gray-700); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.notif-tabs a span { color: var(--gray-500); font-size: 11px; }
.notif-tabs a.active { color: var(--brand-700); border-color: var(--brand-500); background: var(--brand-50); }
.notif-categories {
    display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin: -6px 0 16px;
    padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius);
    background: #fff;
}
.notif-categories a, .notif-category-chip-other {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px;
    border-radius: 999px; color: var(--gray-600); font-size: 11.5px;
    font-weight: 600; text-decoration: none;
}
.notif-categories a:hover, .notif-categories a:focus-visible { background: var(--gray-50); }
.notif-categories a.active { color: var(--brand-700); background: var(--brand-50); }
.notif-categories a span, .notif-category-chip-other b { color: var(--gray-500); font-size: 10.5px; }
.notif-center-list { list-style: none; padding: 0; margin: 0; }
.notif-center-list li + li { border-top: 1px solid var(--gray-100); }
.notif-center-list li.is-unread { background: #f8fbff; }
.notif-center-list li.is-dismissed { background: var(--gray-25); }
.notif-center-row { display: flex; align-items: stretch; gap: 8px; }
.notif-center-link {
    flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    padding: 16px 20px; color: var(--gray-800); text-decoration: none;
}
.notif-center-link:hover, .notif-center-link:focus-visible { background: var(--gray-25); }
.notif-center-link:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.notif-center-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.notif-center-main > strong { font-size: 14px; }
.notif-center-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--gray-500); font-size: 11px; }
.notif-center-body { color: var(--gray-600); font-size: 12.5px; line-height: 1.45; }
.notif-center-time { color: var(--gray-500); font-size: 11px; white-space: nowrap; }
.notif-center-actions {
    flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
    padding: 12px 14px 12px 0;
}
.notif-center-actions form { margin: 0; }
.topbar .user-info .role-badge {
    padding: 4px 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.content { padding: 28px; flex: 1; }

/* =====================================================================
   Cards
   ===================================================================== */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    /* overflow: visible — important so absolutely-positioned dropdown panels
       inside the card aren't clipped at the card's bottom edge */
    overflow: visible;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--gray-25);
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-body { padding: 20px; }

/* =====================================================================
   Forms
   ===================================================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-700);
}
.form-control,
input[type=text], input[type=email], input[type=password],
input[type=date], input[type=number], input[type=time], input[type=tel],
select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--gray-900);
    transition: var(--transition);
}
.form-control:hover, input:not(:disabled):not([readonly]):hover, select:not(:disabled):hover, textarea:hover { border-color: var(--gray-400); }
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(44,111,184,.15);
}
input:disabled, select:disabled, textarea:disabled {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
    border-style: dashed;
}
textarea { min-height: 80px; resize: vertical; }
select { cursor: pointer; }

/* Auto / locked field — visual indicator (replaces dull gray) */
input[readonly],
input[readonly][data-auto-driver],
input[readonly][data-auto-guide],
input[readonly][data-auto-svctype],
input[readonly][data-auto-svcname],
input[readonly][data-auto-paxdetails],
input[readonly][data-auto-sector],
input[readonly][data-auto-nights] {
    background: linear-gradient(135deg, var(--brand-50), #f0f7fc);
    color: var(--brand-700);
    font-weight: 500;
    border-style: dashed;
    border-color: var(--brand-200);
    cursor: default;
}

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.col { flex: 1; min-width: 200px; }
.col-2 { flex: 0 0 calc(50% - 7px); min-width: 220px; }
.col-3 { flex: 0 0 calc(33.333% - 10px); min-width: 200px; }
.col-4 { flex: 0 0 calc(25% - 11px); min-width: 170px; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    background: var(--gray-100);
    color: var(--gray-700);
    transition: var(--transition);
    line-height: 1.2;
}
.btn:hover { background: var(--gray-200); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 1px 2px rgba(44,111,184,.25); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 2px 6px rgba(44,111,184,.35); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0c7541; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b82c25; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: #fff; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; }

/* =====================================================================
   Tables
   ===================================================================== */
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13.5px;
    vertical-align: middle;
}
table.data th {
    background: var(--gray-25);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
}
table.data tbody tr { transition: var(--transition); }
table.data tbody tr:hover { background: var(--gray-25); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* =====================================================================
   Badges
   ===================================================================== */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    line-height: 1.4;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-info    { background: var(--info-bg);    color: var(--info);    }
.badge-gray    { background: var(--gray-100);   color: var(--gray-600);}

.voucher-type-airline  { background: #dbeafe; color: #1e40af; }
.voucher-type-activity { background: #dcfce7; color: #15803d; }
.voucher-type-transfer { background: #fef3c7; color: #92400e; }
.voucher-type-hotel    { background: #fae8ff; color: #7e22ce; }

.auto-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-left: 6px;
    vertical-align: middle;
}
.locked-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-left: 6px;
    vertical-align: middle;
}
.req-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* =====================================================================
   Custom select dropdown (.sel) — wraps native <select>
   ===================================================================== */
.sel {
    position: relative;
    width: 100%;
}
.sel select {
    /* Keep the native select for form submission, hide visually */
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.sel-trigger {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: var(--transition);
    position: relative;
    min-height: 38px;
}
.sel-trigger:hover { border-color: var(--gray-400); }
.sel.is-open .sel-trigger {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(44,111,184,.15);
}
.sel.is-disabled .sel-trigger {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
    border-style: dashed;
}
.sel-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}
.sel-label.is-placeholder { color: var(--gray-400); }
.sel-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 10px;
    transition: transform .15s ease;
    pointer-events: none;
}
.sel.is-open .sel-caret { transform: translateY(-50%) rotate(180deg); color: var(--brand-500); }

.sel-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;        /* above sticky topbar (z:10) and any neighbouring cards */
    max-height: 320px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: selOpen .12s ease-out;
}
.sel.is-open { position: relative; z-index: 1001; }
@keyframes selOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sel.is-open .sel-panel { display: flex; }

.sel-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-25);
}
.sel-search {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background:
        #fff
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c7884'><path d='M11.5 10.5L14 13l-1 1-2.5-2.5A5.5 5.5 0 1 1 11.5 10.5zM7 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/></svg>")
        no-repeat 9px center;
    background-size: 14px 14px;
}
.sel-search:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px rgba(44,111,184,.15);
}
.sel-list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}
.sel-opt {
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    word-wrap: break-word;
}
.sel-opt:hover, .sel-opt.is-focused {
    background: var(--brand-50);
    color: var(--brand-700);
}
.sel-opt.is-selected {
    background: var(--brand-100);
    color: var(--brand-700);
    font-weight: 500;
    position: relative;
}
.sel-opt.is-selected::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-500);
    font-weight: 700;
}
.sel-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    font-style: italic;
}

/* Scrollbar styling for the option list */
.sel-list::-webkit-scrollbar { width: 8px; }
.sel-list::-webkit-scrollbar-track { background: transparent; }
.sel-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.sel-list::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* When inside the voucher-number builder, render the select inline */
.vno-builder .sel { width: auto; display: inline-block; min-width: 70px; }
.vno-builder .sel-trigger { padding: 7px 30px 7px 12px; min-height: 34px; }

/* =====================================================================
   Custom date picker (.dp) — wraps native <input type="date">
   ===================================================================== */
.dp { position: relative; width: 100%; }
.dp > input[type="date"] {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.dp-trigger {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    min-height: 38px;
}
.dp-trigger:hover { border-color: var(--gray-400); }
.dp.is-open .dp-trigger {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(44,111,184,.15);
}
.dp.is-disabled .dp-trigger {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
    border-style: dashed;
}
.dp-icon { font-size: 14px; line-height: 1; flex-shrink: 0; }
.dp-label { flex: 1; }
.dp-label.is-placeholder { color: var(--gray-400); font-style: normal; }
.dp-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}
.dp-clear:hover { background: var(--danger-bg); color: var(--danger); }

.dp-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 10px;
    display: none;
    animation: dpOpen .12s ease-out;
}
@keyframes dpOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dp.is-open { position: relative; z-index: 1001; }
.dp.is-open .dp-panel { display: block; }

.dp-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    gap: 4px;
}
.dp-nav {
    width: 28px; height: 28px;
    border: 0; background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.dp-nav:hover { background: var(--brand-50); color: var(--brand-700); }
.dp-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.dp-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.dp-dow span {
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 4px 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.dp-day {
    background: transparent;
    border: 0;
    padding: 8px 0;
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    min-height: 32px;
}
.dp-day:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}
.dp-day.is-other {
    color: var(--gray-300);
}
.dp-day.is-weekend { color: var(--gray-500); }
.dp-day.is-today {
    font-weight: 700;
    color: var(--brand-600);
    box-shadow: inset 0 0 0 1.5px var(--brand-300);
}
.dp-day.is-selected {
    background: var(--brand-500) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(44,111,184,.4);
}
.dp-day.is-disabled {
    color: var(--gray-300);
    cursor: not-allowed;
    text-decoration: line-through;
    background: transparent !important;
}
.dp-day.is-disabled:hover { background: transparent; color: var(--gray-300); }

/* Month / year drill-down grid — 3 wider cells per row instead of 7 square days,
   reached by clicking the calendar title (day → month → year). */
.dp-grid.dp-cells { grid-template-columns: repeat(3, 1fr); }
.dp-grid.dp-cells .dp-day { aspect-ratio: auto; min-height: 46px; }
.dp-title.dp-clickable { cursor: pointer; border-radius: 6px; padding: 2px 10px; }
.dp-title.dp-clickable:hover { background: var(--brand-50); color: var(--brand-700); }

.dp-foot {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}
.dp-quick {
    flex: 1;
    background: var(--gray-100);
    border: 0;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.dp-quick:hover { background: var(--brand-50); color: var(--brand-700); }
.dp-quick.dp-clear-btn:hover { background: var(--danger-bg); color: var(--danger); }

/* Form-group "combo" mode — toggles between select dropdown and free text input.
   Class on the .form-group decides which one is visible. */
.form-group .freetext { display: none; }
.form-group.mode-freetext .sel,
.form-group.mode-freetext > select { display: none; }
.form-group.mode-freetext .freetext { display: block; }
.form-group.mode-select .freetext { display: none; }
.form-group.mode-select .sel { display: block; }

/* =====================================================================
   Flash
   ===================================================================== */
.flash {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    border: 1px solid;
    display: flex; align-items: flex-start; gap: 10px;
}
.flash::before { font-weight: 700; flex-shrink: 0; }
.flash-success { background: var(--success-bg); color: #0a6938; border-color: #b6e0c5; }
.flash-success::before { content: "✓"; color: var(--success); }
.flash-error   { background: var(--danger-bg); color: #8a201b; border-color: #f5b6b2; }
.flash-error::before { content: "✕"; color: var(--danger); }
.flash-info    { background: var(--info-bg); color: var(--brand-700); border-color: var(--brand-200); }
.flash-info::before { content: "ℹ"; color: var(--info); }

/* =====================================================================
   Dashboard stats
   ===================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-box {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-box .label {
    font-size: 11.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}
.stat-box .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.stat-box .sub { font-size: 11.5px; color: var(--gray-500); margin-top: 4px; }

/* Clickable stat cards on the dashboard. Drop the default <a> styles and
   add a subtle hover/focus state so it's obvious they navigate. */
a.stat-clickable, a.stat-clickable:hover, a.stat-clickable:focus {
    color: inherit;
    text-decoration: none;
    display: block;
}
a.stat-clickable {
    cursor: pointer;
    position: relative;
}
a.stat-clickable::after {
    content: "→";
    position: absolute;
    top: 14px; right: 16px;
    font-size: 16px;
    color: var(--gray-300);
    transition: var(--transition);
}
a.stat-clickable:hover {
    border-color: var(--brand-300, var(--gray-300));
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
a.stat-clickable:hover::after { color: var(--brand-500, var(--gray-500)); transform: translateX(3px); }

/* Per-voucher-type accent strip on the dashboard cards — mirrors the
   voucher-type badge palette so airline/activity/transfer/hotel are
   instantly recognisable. */
.stat-box.voucher-type-airline-card   { border-top: 3px solid #2563eb; }
.stat-box.voucher-type-activity-card  { border-top: 3px solid #16a34a; }
.stat-box.voucher-type-transfer-card  { border-top: 3px solid #d97706; }
.stat-box.voucher-type-hotel-card     { border-top: 3px solid #9333ea; }

/* ─────────── KPI strip (Today/Week/Month) ─────────── */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.kpi-card {
    background: linear-gradient(135deg, var(--info-bg, #eef6ff), #fff);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}
.kpi-card .kpi-label {
    font-size: 10.5px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}
.kpi-card .kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-top: 2px;
}
.kpi-card .kpi-sub { font-size: 11.5px; color: var(--gray-600); margin-top: 4px; }
.kpi-card .kpi-sub a { color: var(--brand-600, var(--gray-700)); text-decoration: none; }
.kpi-card .kpi-sub a:hover { text-decoration: underline; }

/* ─────────── 12-month trend chart ─────────── */
.chart-legend { font-size: 11.5px; color: var(--gray-600); display: flex; gap: 14px; align-items: center; font-weight: 400; }
.legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}
.legend-bookings { background: var(--brand-500, #2563eb); }
.legend-vouchers { background: #d97706; }

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 8px 4px 0;
    border-bottom: 1px solid var(--gray-200);
}
.trend-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
}
.trend-bars {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    position: relative;
}
.trend-bar {
    flex: 1;
    max-width: 22px;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: opacity .15s;
}
.trend-bar-bookings { background: linear-gradient(180deg, var(--brand-400, #3b82f6), var(--brand-600, #1d4ed8)); }
.trend-bar-vouchers { background: linear-gradient(180deg, #fbbf24, #d97706); opacity: .85; }
.trend-col:hover .trend-bar { opacity: 1; }
.trend-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--gray-600);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
}
.trend-col:hover .trend-num { opacity: 1; }
.trend-label {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
}
.trend-year {
    font-size: 9.5px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
}

/* =====================================================================
   Service rows (voucher form)
   ===================================================================== */
.service-row {
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    transition: var(--transition);
}
.service-row:hover { border-color: var(--gray-300); }
.service-row .remove-svc {
    position: absolute;
    right: 12px; top: 12px;
    background: transparent; border: 0;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}
.service-row .remove-svc:hover { background: var(--danger-bg); color: var(--danger); }
.service-row h4 {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--brand-700);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}

/* =====================================================================
   Voucher number builder
   ===================================================================== */
.vno-builder {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}
.vno-chip {
    font-weight: 600;
    padding: 7px 12px;
    background: var(--brand-500);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'SF Mono', Menlo, monospace;
    transition: var(--transition);
}
.vno-chip.alt { background: var(--accent-500); }
.vno-chip.muted { background: var(--gray-200); color: var(--gray-700); }
.vno-builder .sep { color: var(--gray-400); font-weight: 600; padding: 0 2px; }
.vno-builder select, .vno-builder input {
    width: auto; min-width: 80px;
    margin: 0;
}

/* =====================================================================
   Subtype pill (dropdown wrapped to look like a tab/pill)
   ===================================================================== */
.subtype-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 4px;
}
.subtype-tab {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: inherit;
    white-space: nowrap;
}
.subtype-tab:hover { background: rgba(255,255,255,.6); color: var(--gray-900); }
.subtype-tab.active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}

/* =====================================================================
   Subtype checklist (multi-create Activity voucher)
   ===================================================================== */
.subtype-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 4px;
}
.subtype-check {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    user-select: none;
}
.subtype-check:hover { background: var(--gray-50); border-color: var(--gray-300); }
.subtype-check.is-checked {
    background: var(--brand-50, #eff6ff);
    border-color: var(--brand-500);
    box-shadow: var(--shadow-sm);
}
.subtype-check input[type="checkbox"] {
    width: 16px; height: 16px; margin: 0; cursor: pointer;
}
.subtype-check-prefix {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11.5px; font-weight: 700;
    padding: 3px 8px;
    background: var(--brand-500); color: #fff;
    border-radius: var(--radius-sm);
    letter-spacing: .3px;
}
.subtype-check-label { font-size: 12.5px; color: var(--gray-700); }
.subtype-check.is-checked .subtype-check-label { color: var(--gray-900); }

.vno-preview-list {
    display: flex; flex-direction: column; gap: 6px;
    padding: 8px;
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    min-height: 40px;
}
.vno-preview-row {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 2px;
}
.vno-preview-list:empty::after {
    content: 'Tick at least one Service Type above.';
    color: var(--gray-500);
    font-size: 12px;
    padding: 6px 4px;
}

/* Per-subtype config panel (multi-create Activity voucher) */
#subtype_config_panels {
    display: flex; flex-direction: column; gap: 10px;
}
.subtype-panel {
    padding: 12px 14px;
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--radius-sm);
}
.subtype-panel-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--gray-200);
}
.subtype-panel-title {
    font-weight: 600; font-size: 13px;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.subtype-panel .form-group { margin-bottom: 8px; }
.subtype-panel input[readonly] { background: var(--gray-50); color: var(--gray-600); }

/* Per-subtype Services subsection inside a subtype panel */
.subtype-svc-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-300);
}
.subtype-svc-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.subtype-svc-title {
    font-weight: 600; font-size: 12.5px;
    color: var(--gray-700);
    text-transform: uppercase; letter-spacing: .3px;
}
.subtype-svc-container { display: flex; flex-direction: column; gap: 8px; }

/* =====================================================================
   Custom combobox (Hotel/Supplier picker) — input + chevron + dropdown
   ===================================================================== */
.combobox {
    position: relative;
    display: block;
}
.combobox > input {
    width: 100%;
    padding-right: 32px;   /* leave room for the chevron */
    margin: 0;
}
.combobox-toggle {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.combobox-toggle:hover { color: var(--gray-800); background: var(--gray-100); }
.combobox-list {
    position: absolute;
    top: calc(100% + 2px); left: 0; right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    margin: 0; padding: 4px 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}
.combobox-list[hidden] { display: none; }
.combobox-list li {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-800);
    user-select: none;
}
.combobox-list li:hover,
.combobox-list li.is-active {
    background: var(--brand-50, #eff6ff);
    color: var(--brand-700);
}
.combobox-list li.combobox-empty {
    color: var(--gray-500);
    font-style: italic;
    cursor: default;
    background: transparent !important;
}

/* =====================================================================
   Modal (centered overlay) — used by Logistics assign + bulk-assign
   ===================================================================== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 520px; max-width: 92%;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

/* Bulk-selection bar shown above the logistics table when 1+ rows are ticked */
.bulk-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--brand-50, #eff6ff);
    border-top: 1px solid var(--brand-200, #bfdbfe);
    border-bottom: 1px solid var(--brand-200, #bfdbfe);
    font-size: 13px;
    color: var(--brand-700);
}
.bulk-bar[hidden] { display: none; }
.subtype-svc-container:empty::after {
    content: 'No service rows yet — click "+ Add service row" above to add one for this voucher.';
    color: var(--gray-500);
    font-size: 12px;
    font-style: italic;
    padding: 10px 6px;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Vehicle option pills (transfer voucher tariff bar) */
.vehicle-options {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px;
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    min-height: 40px;
    align-items: center;
}
.vopt {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    background: #fff;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--gray-700);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 4px;
}
.vopt small { font-size: 10.5px; color: var(--gray-500); margin-left: 4px; }
.vopt:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }
.vopt:hover small { color: var(--brand-600); }
.vopt.vopt-default {
    border-color: var(--brand-300);
    color: var(--brand-700);
    background: var(--brand-50);
}
.vopt.vopt-active {
    border-color: var(--brand-500);
    background: var(--brand-500);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(44,111,184,.35);
}
.vopt.vopt-active small { color: rgba(255,255,255,.85); }
.vopt.vopt-active b { color: #fff; }

/* List-page filter UX */
.lf-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
}
.lf-chips-label { color: var(--brand-700); font-weight: 600; margin-right: 4px; }
.lf-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px 4px 10px;
    background: #fff;
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}
.lf-chip b { color: var(--brand-700); font-weight: 600; }
.lf-chip-x {
    margin-left: 4px;
    color: var(--gray-500);
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    padding: 0 4px;
    border-radius: 50%;
    transition: var(--transition);
}
.lf-chip-x:hover { background: var(--danger); color: #fff; text-decoration: none; }
.lf-chip-clear {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
}
.lf-chip-clear:hover { background: var(--gray-200); }

.lf-date-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
    padding: 12px;
    background: var(--gray-25);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
}
.lf-date-group .lf-date-group-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-600);
    margin-bottom: 6px;
}
@media (max-width: 800px) {
    .lf-date-band { grid-template-columns: 1fr; }
}

/* =====================================================================
   Utilities
   ===================================================================== */
.muted { color: var(--gray-500); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-500);
}
.empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
    .sidebar { width: 64px; }
    .sidebar .brand div, .sidebar .group-label { display: none; }
    .sidebar nav a { padding: 12px; justify-content: center; }
    .sidebar nav a span { display: none; }
    .content { padding: 18px; }
    .topbar { padding: 10px 14px; gap: 10px; }
    .topbar h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-right { gap: 7px; }
    .topbar .user-info { gap: 6px; min-width: 0; }
    .topbar-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-team { display: none; }
    .notif-popover-panel {
        position: fixed; top: 66px; right: 12px;
        width: min(520px, calc(100vw - 88px)); max-height: calc(100vh - 78px);
    }
    .notif-center-link { gap: 10px; padding: 14px; }
    .notif-center-time { white-space: normal; text-align: right; }
    .notif-center-row { flex-direction: column; gap: 0; }
    .notif-center-actions { padding: 0 14px 14px; justify-content: flex-end; flex-wrap: wrap; }
    .col-2, .col-3, .col-4 { flex: 1 1 100%; min-width: 0; }
}

@media (max-width: 600px) {
    .topbar .user-info { display: none; }
    .notif-popover-panel { width: calc(100vw - 88px); }
    .notif-popover-head { align-items: flex-start; }
    .notif-popover-head > div { min-width: 0; }
    .notif-grouped-label { display: none; }
    .notif-popover-views { overflow-x: auto; }
    .notif-category details > summary { grid-template-columns: 34px minmax(0,1fr) auto; padding-inline: 10px; }
    .notif-category-chevron { display: none; }
    .notif-category-mark { width: 34px; height: 34px; }
    .notif-category-detail { margin-left: 0; padding-left: 10px; }
    .notif-categories { overflow-x: auto; flex-wrap: nowrap; }
    .notif-categories a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .notif-category-chevron { transition: none; }
}

/* =============================================================
   Users page — filter bar, dept-grouped tree, drawer, bulk ops
   ============================================================= */
.users-filter-bar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding: 12px 14px; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); margin-bottom: 14px;
}
.users-filter-bar input[type=search], .users-filter-bar select {
    height: 34px; padding: 4px 10px; font-size: 13px;
    border: 1px solid var(--gray-300); border-radius: 6px; background: #fff;
}
.users-filter-bar input[type=search] { flex: 1; min-width: 200px; }
.users-filter-bar label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-700); cursor: pointer; }

.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.quick-chips .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; font-size: 12px; border-radius: 14px;
    background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--gray-200); cursor: pointer; user-select: none;
}
.quick-chips .chip:hover { background: var(--gray-200); }
.quick-chips .chip.active { background: var(--brand-500); color: #fff; border-color: var(--brand-600); }
.quick-chips .chip.warn   { background: var(--warning-bg); color: var(--warning); border-color: rgba(0,0,0,.06); }
.quick-chips .chip.warn.active { background: var(--warning); color: #fff; }

/* Department group container */
.dept-group { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.dept-group.collapsed .dept-body { display: none; }
.dept-head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200); cursor: pointer; user-select: none;
}
.dept-head .toggle { width: 18px; text-align: center; color: var(--gray-500); font-size: 12px; }
.dept-head .name { font-weight: 600; color: var(--gray-800); }
.dept-head .meta { color: var(--gray-500); font-size: 12px; margin-left: auto; }
.dept-head .code-pill { font-family: 'SF Mono', Menlo, monospace; font-size: 11px; padding: 2px 6px; background: var(--info-bg); color: var(--info); border-radius: 4px; }

/* Tree rows */
.user-row {
    display: grid;
    grid-template-columns: 32px 1fr 160px 220px 80px 100px;
    align-items: center;
    padding: 8px 14px; border-bottom: 1px solid var(--gray-100);
    transition: background .12s;
}
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: var(--gray-25); }
.user-row.hidden { display: none; }
.user-row.inactive .name { color: var(--gray-400); text-decoration: line-through; }
.user-row .indent { display: inline-block; }
.user-row .twig { color: var(--gray-300); font-family: 'SF Mono', Menlo, monospace; user-select: none; }
.user-row .name { font-weight: 500; color: var(--gray-800); }
.user-row .email { font-size: 11.5px; color: var(--gray-500); }
.user-row .reports-to { font-size: 12px; color: var(--gray-600); }
.user-row .reports-to .none { color: var(--warning); font-weight: 500; }
.user-row .actions { text-align: right; }

/* Role badge colours per level */
.role-pill { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600; border-radius: 10px; letter-spacing: .3px; text-transform: uppercase; }
.role-pill.management { background: #fee2e2; color: #991b1b; }
.role-pill.vp        { background: #fce7f3; color: #9d174d; }
.role-pill.deputy_vp { background: #fae8ff; color: #7e22ce; }
.role-pill.area_director { background: #ddd6fe; color: #5b21b6; }
.role-pill.senior_account_manager { background: #c7d2fe; color: #3730a3; }
.role-pill.account_manager { background: #bae6fd; color: #075985; }
.role-pill.assistant { background: var(--gray-100); color: var(--gray-700); }
.role-pill.admin     { background: #fef3c7; color: #92400e; }
.role-pill.sub_admin { background: #fde68a; color: #78350f; }
.role-pill.logistics_manager { background: #cffafe; color: #155e75; }

/* Logistics-scope picker in the user drawer */
.scope-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    border: 1px solid var(--gray-300); background: #fff;
    font-size: 12.5px; cursor: pointer; user-select: none;
}
.scope-chip:hover { border-color: var(--gray-400); background: var(--gray-50); }
.scope-chip input { margin: 0; }
.scope-chip:has(input:checked) { background: var(--info-bg); border-color: var(--info); color: var(--info); font-weight: 500; }
.scope-chip.small { font-size: 11.5px; padding: 4px 8px; }
.scope-chip.block { display: flex; width: 100%; padding: 8px 10px; }
.scope-vtype {
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--gray-25, #fafbfc);
    transition: background .12s, border-color .12s;
}
.scope-vtype.enabled { background: #fff; border-color: var(--info); }
.scope-vtype-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}
.scope-vtype-head .scope-chip { background: transparent; border: 0; padding: 4px 6px; }
.scope-vtype-head .scope-chip:has(input:checked) { background: var(--info-bg); }
.scope-suppliers { padding: 4px 0 2px 6px; }
.scope-supplier-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.scope-vtype:not(.enabled) .scope-suppliers { opacity: .45; }
.scope-vtype:not(.enabled) .scope-supplier-grid .scope-chip { background: #f3f4f6; cursor: not-allowed; }
.scope-vtype:not(.enabled) .scope-supplier-grid input { cursor: not-allowed; }
.link-btn {
    background: transparent; border: 0; padding: 2px 6px;
    font-size: 11px; color: var(--info); cursor: pointer;
    text-decoration: underline; font-family: inherit;
}
.link-btn:hover { color: var(--brand-600); }

/* Fleet sub-rows on vehicles.php — collapsible <details> under each vehicle
   type row, listing the actual cars (model + plate) for that type. */
.fleet-subrow > td { border-top: 0 !important; }
.fleet-details > summary {
    list-style: none; cursor: pointer; user-select: none;
    padding: 8px 14px; font-size: 12.5px; color: var(--gray-700);
    display: flex; align-items: center; gap: 8px;
    border-top: 1px dashed var(--gray-200);
}
.fleet-details > summary::-webkit-details-marker { display: none; }
.fleet-details > summary::before {
    content: '▸'; color: var(--gray-400); font-size: 11px;
    transition: transform .15s;
    display: inline-block; width: 12px;
}
.fleet-details[open] > summary::before { transform: rotate(90deg); }
.fleet-details > summary:hover { background: var(--gray-50); color: var(--gray-800); }
.fleet-panel { padding: 4px 0 8px; background: #fff; border-top: 1px solid var(--gray-100); }
table.fleet-table { font-size: 12.5px; }
table.fleet-table th, table.fleet-table td { padding: 6px 12px; }
.fleet-add-wrap { border-top: 1px dashed var(--gray-200); margin-top: 4px; background: var(--gray-25, #fafbfc); }
.role-pill.finance   { background: #dcfce7; color: #14532d; }
.role-pill.logistics { background: #e0e7ff; color: #312e81; }

/* Row-click selection — when body has .bulk-mode (1+ rows checked), every
   row becomes clickable to toggle its checkbox. Visual cues make that
   discoverable. */
body.bulk-mode .user-row { cursor: pointer; }
body.bulk-mode .user-row:hover { background: var(--brand-50, #e8f0fa); }
.user-row.selected { background: var(--brand-50, #e8f0fa); box-shadow: inset 3px 0 0 var(--brand-500); }
.user-row.selected:hover { background: #d6e6f7; }

/* Org-chart drag-and-drop visuals */
.orgchart-node[draggable=true] { cursor: grab; }
.orgchart-node.dragging { opacity: .45; }
.orgchart-node.drop-ok  { outline: 2px dashed var(--success); outline-offset: 2px; background: var(--success-bg); }
.orgchart-node.drop-bad { outline: 2px dashed var(--danger);  outline-offset: 2px; background: var(--danger-bg);  cursor: not-allowed; }
.drag-flash {
    position: fixed; top: 14px; right: 20px; z-index: 200;
    padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s;
    pointer-events: none; max-width: 360px;
}
.drag-flash.visible { opacity: 1; transform: translateY(0); }
.drag-flash.info    { background: #fff; color: var(--gray-800); border: 1px solid var(--gray-200); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.drag-flash.success { background: var(--success); color: #fff; }
.drag-flash.error   { background: var(--danger); color: #fff; }

/* Bulk-select toolbar */
.bulk-toolbar {
    position: sticky; top: 0; z-index: 5;
    display: none; align-items: center; gap: 10px;
    padding: 10px 14px; margin-bottom: 12px;
    background: var(--brand-500); color: #fff; border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(44,111,184,.25);
}
.bulk-toolbar.visible { display: flex; }
.bulk-toolbar .count { font-weight: 600; margin-right: auto; }
.bulk-toolbar select { height: 30px; padding: 2px 8px; font-size: 12px; border-radius: 5px; border: 0; }
.bulk-toolbar .btn { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.bulk-toolbar .btn:hover { background: rgba(255,255,255,.25); }

/* Slide-in drawer for the edit form */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none; transition: opacity .18s;
    z-index: 100;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw;
    background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .22s ease;
    z-index: 101; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
/* The <form> that wraps the body+foot needs to participate in the flex
   chain too, otherwise .drawer-body's flex:1 + overflow:auto can't compute
   a height — the drawer simply grew off-screen and refused to scroll. */
.drawer > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-bottom: 1px solid var(--gray-200);
}
.drawer-head h2 { margin: 0; font-size: 15px; flex: 1; }
.drawer-head .close { background: transparent; border: 0; font-size: 20px; cursor: pointer; color: var(--gray-500); }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-body .section-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
    color: var(--gray-500); margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--gray-100);
}
.drawer-body .section-title:first-child { margin-top: 0; }
.drawer-foot {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 12px 18px; border-top: 1px solid var(--gray-200);
}

/* Searchable combobox for "Reports to" */
.combobox { position: relative; }
.combobox input.search { width: 100%; }
.combobox select.listbox {
    width: 100%; margin-top: 4px; padding: 0;
    border: 1px solid var(--gray-300); border-radius: 6px; background: #fff;
}
.combobox select.listbox option { padding: 6px 10px; font-size: 13px; }
.combobox select.listbox option:checked { background: var(--brand-500); color: #fff; }
.combobox .picked {
    display: none; align-items: center; gap: 8px;
    padding: 6px 10px; margin-top: 6px;
    background: var(--info-bg); border-radius: 6px; font-size: 12px;
}
.combobox .picked.visible { display: inline-flex; }

/* Org-chart page styles (also used in print) */
.orgchart-dept { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; page-break-inside: avoid; }
.orgchart-dept h2 { margin: 0 0 14px; font-size: 16px; color: var(--gray-800); }
.orgchart-tree, .orgchart-tree ul { list-style: none; padding-left: 0; margin: 0; }
.orgchart-tree li { position: relative; padding: 6px 0 6px 22px; }
.orgchart-tree li::before {
    content: ''; position: absolute; left: 6px; top: 0; bottom: 50%;
    border-left: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300);
    width: 12px; border-bottom-left-radius: 3px;
}
.orgchart-tree > li:first-child::before { display: none; }
.orgchart-tree li li::before { left: 6px; }
.orgchart-tree ul { padding-left: 18px; }
.orgchart-node { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; font-size: 13px; }
.orgchart-node .nm { font-weight: 600; color: var(--gray-800); }
.orgchart-node .em { color: var(--gray-500); font-size: 11px; }

/* ------- Required-field highlight ------- */
/* Added by the shared form-validation script: any invalid visible control gets
   .field-invalid (red border + faint red wash) and its label gets
   .label-invalid (red text). Both clear as soon as the value is valid. */
.field-invalid,
.field-invalid:focus {
    border-color: var(--danger) !important;
    background: var(--danger-bg) !important;
    box-shadow: 0 0 0 2px rgba(217, 54, 45, 0.15) !important;
}
.label-invalid { color: var(--danger) !important; }
.label-invalid::after {
    content: " — " attr(data-invalid-note);
    font-size: 11px;
    font-weight: 600;
    color: var(--danger);
}

@media print {
    .sidebar, .topbar, .quick-chips, .users-filter-bar, .bulk-toolbar, .drawer, .drawer-backdrop, .btn, .actions { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; }
    .orgchart-dept { box-shadow: none; }
}

/* ============================================================================
   List pagination — lf_render_pagination() + AJAX nav (assets/js/lf-paginate.js)
   ============================================================================ */
.lf-pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding: 12px 4px 2px;
}
.lf-pager-info { color: var(--gray-600); font-size: 12.5px; }
.lf-pager-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lf-pager-nav .lf-page {
    display: inline-block; min-width: 34px; text-align: center;
    padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    color: var(--gray-700); text-decoration: none; font-size: 12.5px; background: #fff;
    transition: var(--transition);
}
.lf-pager-nav .lf-page:hover { background: var(--gray-50); border-color: var(--gray-300); }
.lf-pager-nav .lf-page.current {
    background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600;
}
.lf-pager-nav .lf-page.disabled { opacity: .4; pointer-events: none; }
.lf-page-gap { padding: 0 4px; color: var(--gray-400); }
#lf-list { position: relative; transition: opacity .12s ease; }
#lf-list.lf-loading { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------------------
   Impersonation banner — admin "Login as user". Deliberately loud (amber bar
   with a striped edge) so it's unmistakable that the current session is acting
   as someone else. Rendered by includes/header.php on every page.
   --------------------------------------------------------------------------- */
.impersonation-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--warning-bg);
    color: #7a4a10;
    border-bottom: 2px solid var(--warning);
    box-shadow: inset 4px 0 0 var(--warning);
    font-size: 13px;
    line-height: 1.4;
}
.impersonation-banner .imp-icon { font-size: 18px; flex-shrink: 0; }
.impersonation-banner .imp-text { flex: 1; min-width: 0; }
.impersonation-banner strong { color: var(--gray-900); }
.impersonation-banner .imp-role {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--warning);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    vertical-align: middle;
}
.impersonation-banner .imp-dim { color: #9a6a2a; }
.impersonation-banner .imp-return { margin: 0; flex-shrink: 0; }
.impersonation-banner .imp-return .btn {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.impersonation-banner .imp-return .btn:hover { filter: brightness(.94); }
