/**
 * Qulbay Admin Pages — Stylesheet
 *
 * Static structural CSS for WP admin pages:
 *   qlb-airports, qlb-services, qlb-addons, qlb-prices, qlb-design, qlb-staff
 *
 * Dynamic color/font values are injected via wp_add_inline_style() in
 * Qlb_Admin_Enqueue::enqueue_admin_css() using CSS custom properties on :root.
 *
 * @package     QulbayServices
 * @subpackage  Admin
 * @version     5.6.0
 * @since       5.6.0
 *
 * Architecture:
 *   - NO style="" attributes anywhere
 *   - NO !important except where pre-existing WP admin specificity requires it
 *   - Scoped to .qlb-page / .qlb-card to avoid bleeding into WP admin chrome
 */

/* ════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (defaults — overridden at runtime by PHP)
════════════════════════════════════════════════════════════════════ */
:root {
    --qlb-adm-font:          Inter, sans-serif;
    --qlb-adm-font-size:     14px;
    --qlb-adm-radius:        6px;
    --qlb-adm-bg:            #f8fafc;
    --qlb-adm-header:        #0f172a;
    --qlb-adm-table-bg:      #ffffff;
    --qlb-adm-stripe:        #f1f5f9;
    --qlb-adm-btn:           #10b981;
    --qlb-adm-btn-hover:     #059669;
    --qlb-adm-text:          #111827;
    --qlb-adm-link:          #10b981;
    --qlb-adm-accent:        #10b981;
    --qlb-adm-border:        #e2e8f0;
}

/* ════════════════════════════════════════════════════════════════════
   BLACK ADMIN BAR (for operational pages)
════════════════════════════════════════════════════════════════════ */
.qlb-admin-bar {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.qlb-admin-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.qlb-admin-bar-title {
    font-weight: 600;
    font-size: 18px;
}

.qlb-admin-bar-user {
    font-size: 14px;
    opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════════════════════════════════ */
.qlb-page {
    font-family: var(--qlb-adm-font);
    font-size: var(--qlb-adm-font-size);
    max-width: 900px;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════════════════════════════ */
.qlb-ph {
    background: var(--qlb-adm-header);
    color: #f8fafc;
    border-radius: var(--qlb-adm-radius);
    padding: 16px 22px;
    margin-bottom: 18px;
}
.qlb-ph h1 {
    color: #f8fafc;
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 800;
}
.qlb-ph p {
    color: #94a3b8;
    margin: 0;
    font-size: .78rem;
}

/* ════════════════════════════════════════════════════════════════════
   BADGE
════════════════════════════════════════════════════════════════════ */
.qlb-badge {
    display: inline-block;
    background: var(--qlb-adm-accent);
    color: #fff;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

/* ════════════════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════════════ */
.qlb-card {
    background: var(--qlb-adm-table-bg);
    border: 1px solid var(--qlb-adm-border);
    border-radius: var(--qlb-adm-radius);
    padding: 20px 22px;
    margin-bottom: 16px;
}
.qlb-card h2 {
    margin: 0 0 3px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--qlb-adm-text);
    border: none;
    padding: 0;
}
.qlb-card-desc {
    color: #64748b;
    font-size: .76rem;
    margin: 0 0 14px;
}

/* ════════════════════════════════════════════════════════════════════
   NOTICES / TIPS
════════════════════════════════════════════════════════════════════ */
.qlb-tip {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 9px 13px;
    margin-bottom: 14px;
    font-size: .76rem;
    color: #0369a1;
}
.qlb-tip strong {
    color: #0c4a6e;
}
.qlb-notice {
    border-left: 4px solid var(--qlb-adm-accent);
    background: #f0fdf4;
    padding: 9px 13px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
    font-size: .79rem;
    color: #166534;
    font-weight: 600;
}
.qlb-notice-error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* ════════════════════════════════════════════════════════════════════
   FORM FIELDS
════════════════════════════════════════════════════════════════════ */
.qlb-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.qlb-field {
    margin-bottom: 12px;
    flex: 1;
    min-width: 160px;
}
.qlb-field label {
    display: block;
    font-weight: 600;
    font-size: .79rem;
    color: #334155;
    margin-bottom: 3px;
}
.qlb-help {
    color: #94a3b8;
    font-size: .71rem;
    margin-top: 2px;
}
.qlb-field input[type=text],
.qlb-field input[type=number],
.qlb-field textarea,
.qlb-field select {
    width: 100%;
    max-width: 420px;
    padding: 6px 9px;
    border: 1.5px solid var(--qlb-adm-border);
    border-radius: var(--qlb-adm-radius);
    font-size: .8rem;
    color: var(--qlb-adm-text);
}
.qlb-field input:focus,
.qlb-field textarea:focus,
.qlb-field select:focus {
    border-color: var(--qlb-adm-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}
.qlb-field input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: var(--qlb-adm-accent);
}

/* ════════════════════════════════════════════════════════════════════
   DATA TABLE (.qlb-tbl — admin settings pages)
════════════════════════════════════════════════════════════════════ */
.qlb-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .79rem;
}
.qlb-tbl th {
    background: var(--qlb-adm-header);
    color: #f8fafc;
    font-weight: 700;
    padding: 8px 11px;
    text-align: left;
    border-bottom: 2px solid var(--qlb-adm-border);
}
.qlb-tbl td {
    padding: 8px 11px;
    border-bottom: 1px solid var(--qlb-adm-stripe);
    vertical-align: middle;
}
.qlb-tbl tr:last-child td {
    border-bottom: none;
}
.qlb-tbl tr:hover td {
    background: var(--qlb-adm-stripe);
}
.qlb-tbl input[type=text],
.qlb-tbl input[type=number] {
    width: 100%;
    padding: 4px 7px;
    border: 1.5px solid var(--qlb-adm-border);
    border-radius: 5px;
    font-size: .76rem;
}
.qlb-tbl input:focus {
    border-color: var(--qlb-adm-accent);
    outline: none;
}

/* ════════════════════════════════════════════════════════════════════
   STATUS PILLS
════════════════════════════════════════════════════════════════════ */
.qlb-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: .67rem;
    font-weight: 700;
}
.qlb-pill-on {
    background: #dcfce7;
    color: #16a34a;
}
.qlb-pill-off {
    background: #fef2f2;
    color: #dc2626;
}

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════════ */
.qlb-btns {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.qlb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: var(--qlb-adm-radius);
    font-size: .79rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.qlb-btn-g {
    background: var(--qlb-adm-btn);
    color: #fff;
}
.qlb-btn-g:hover {
    background: var(--qlb-adm-btn-hover);
    color: #fff;
}
.qlb-btn-s {
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid var(--qlb-adm-border);
}
.qlb-btn-s:hover {
    background: #e2e8f0;
}

/* ════════════════════════════════════════════════════════════════════
   PRICE PREVIEW WIDGET
════════════════════════════════════════════════════════════════════ */
.qlb-price-preview {
    background: var(--qlb-adm-bg);
    border: 1.5px solid var(--qlb-adm-border);
    border-radius: var(--qlb-adm-radius);
    padding: 12px 16px;
    font-size: .8rem;
    min-width: 220px;
}
.qlb-price-preview h3 {
    margin: 0 0 10px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--qlb-adm-text);
}
.qlb-pr {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--qlb-adm-border);
}
.qlb-pr:last-child {
    border-bottom: none;
    font-weight: 800;
    color: var(--qlb-adm-text);
    padding-top: 8px;
}
.qlb-pa {
    color: var(--qlb-adm-accent);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN PAGE GRID
════════════════════════════════════════════════════════════════════ */
.qlb-design-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   OPERATIONAL PAGES — ADMIN BAR (frontend operational pages)
════════════════════════════════════════════════════════════════════ */
.qlb-admin-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.qlb-admin-header__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.qlb-admin-header__controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qlb-admin-header__location-selector {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.qlb-admin-header__location-selector:hover,
.qlb-admin-header__location-selector:focus {
    background: #333;
    border-color: #555;
    outline: none;
}

.qlb-admin-header__user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.qlb-admin-header__user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ════════════════════════════════════════════════════════════════════
   OPERATIONAL PAGES — RESPONSIVE GRID & CARDS
════════════════════════════════════════════════════════════════════ */
.qlb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.qlb-grid--desktop-4 {
    grid-template-columns: repeat(4, 1fr);
}

.qlb-grid--desktop-3 {
    grid-template-columns: repeat(3, 1fr);
}

.qlb-grid--desktop-2 {
    grid-template-columns: repeat(2, 1fr);
}

.qlb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.qlb-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.qlb-card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.qlb-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.qlb-card__subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 4px 0 0;
}

.qlb-card__body {
    margin-bottom: 12px;
}

.qlb-card__stats {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    margin: 8px 0;
}

.qlb-card__footer {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.qlb-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.qlb-badge--location {
    background: #dbeafe;
    color: #0c4a6e;
}

.qlb-badge--role {
    background: #fce7f3;
    color: #831843;
}

.qlb-badge--status-pending {
    background: #fef3c7;
    color: #78350f;
}

.qlb-badge--status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.qlb-badge--status-assigned {
    background: #c7d2fe;
    color: #312e81;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .qlb-grid,
    .qlb-grid--desktop-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .qlb-design-grid {
        grid-template-columns: 1fr;
    }
    .qlb-fields-row {
        flex-direction: column;
    }
    .qlb-grid,
    .qlb-grid--desktop-4,
    .qlb-grid--desktop-3,
    .qlb-grid--desktop-2 {
        grid-template-columns: 1fr;
    }
    .qlb-admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .qlb-admin-header__controls {
        width: 100%;
        flex-direction: column;
    }
    .qlb-admin-header__location-selector {
        width: 100%;
    }
}

/* ==========================================================================
   QLB-DASH-OPS-INTELLIGENCE-01 — Operations Cost Tab + P&L + Alerts
   ========================================================================== */

/* ── Costs Tab Shell ─────────────────────────────────────────────── */
.qlb-costs-shell {
    padding: 20px;
    background: var(--qlb-adm-bg, #f8fafc);
}
.qlb-costs-header { margin-bottom: 18px; }
.qlb-costs-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.qlb-costs-title { font-size: 1.1rem; font-weight: 700; color: var(--qlb-adm-header, #0f172a); margin: 0; }
.qlb-costs-period-badge { background: #1e293b; color: #fff; font-size: .75rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.qlb-costs-total-badge { background: #10b981; color: #fff; font-size: .75rem; padding: 3px 10px; border-radius: 12px; font-weight: 700; }
.qlb-costs-period-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qlb-costs-label { font-size: .8rem; font-weight: 600; color: #374151; }
.qlb-costs-select { border: 1px solid var(--qlb-adm-border, #e2e8f0); border-radius: 4px; padding: 5px 8px; font-size: .85rem; background: #fff; }
.qlb-costs-input { border: 1px solid var(--qlb-adm-border, #e2e8f0); border-radius: 4px; padding: 6px 10px; font-size: .85rem; width: 100%; box-sizing: border-box; }
.qlb-costs-textarea { border: 1px solid var(--qlb-adm-border, #e2e8f0); border-radius: 4px; padding: 6px 10px; font-size: .85rem; width: 100%; box-sizing: border-box; resize: vertical; }
.qlb-costs-checkbox { width: 18px; height: 18px; cursor: pointer; }

/* ── Costs Form Panel ────────────────────────────────────────────── */
.qlb-costs-form-panel { background: #fff; border: 1px solid var(--qlb-adm-border, #e2e8f0); border-radius: 8px; padding: 18px; margin-bottom: 20px; }
.qlb-costs-form-title { font-size: .9rem; font-weight: 700; color: #0f172a; margin: 0 0 14px; }
.qlb-costs-form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.qlb-costs-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.qlb-costs-field-wide { flex: 2; }
.qlb-costs-field-sm { flex: 0 0 110px; }
.qlb-costs-field-full { flex: 1 0 100%; }
.qlb-costs-field-check { align-items: flex-start; justify-content: flex-end; flex: 0 0 80px; }
.qlb-costs-form-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; }

/* ── Costs Buttons ───────────────────────────────────────────────── */
.qlb-costs-btn-primary { background: #10b981; color: #fff; border: none; border-radius: 5px; padding: 8px 18px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.qlb-costs-btn-primary:hover { background: #059669; }
.qlb-costs-btn-secondary { background: #334155; color: #fff; border: none; border-radius: 5px; padding: 6px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.qlb-costs-btn-secondary:hover { background: #1e293b; }
.qlb-costs-btn-delete { background: transparent; color: #dc2626; border: 1px solid #dc2626; border-radius: 4px; padding: 3px 8px; font-size: .75rem; cursor: pointer; }
.qlb-costs-btn-delete:hover { background: #dc2626; color: #fff; }
.qlb-costs-save-msg { font-size: .8rem; }
.qlb-costs-msg-ok { color: #10b981; font-weight: 600; }
.qlb-costs-msg-error { color: #dc2626; font-weight: 600; }

/* ── Costs Table ─────────────────────────────────────────────────── */
.qlb-costs-table-wrap { overflow-x: auto; }
.qlb-costs-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.qlb-costs-table th { background: #0f172a; color: #fff; padding: 8px 10px; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.qlb-costs-table td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; }
.qlb-costs-row:nth-child(even) td { background: #f8fafc; }
.qlb-costs-empty { padding: 20px; color: #6b7280; font-size: .9rem; text-align: center; }
.qlb-costs-loading { padding: 20px; color: #6b7280; font-size: .85rem; text-align: center; }

/* ── P&L Card ─────────────────────────────────────────────────────── */
.qlb-dash-pnl-section { margin: 0 0 20px; }
.qlb-dash-pnl-toolbar { display: flex; align-items: center; gap: 16px; padding: 16px 20px 0; flex-wrap: wrap; }
.qlb-dash-pnl-toolbar .qlb-dash-section-title { margin: 0; }
.qlb-dash-pnl-form { display: flex; align-items: center; gap: 8px; }
.qlb-dash-pnl-sel-label { font-size: .75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.qlb-dash-pnl-stat-val--amber  { color: #f59e0b !important; }
.qlb-dash-pnl-stat-val--blue   { color: #3b82f6 !important; }
.qlb-dash-pnl-stat-val--green  { color: #10b981 !important; }
.qlb-dash-pnl-stat-val--red    { color: #ef4444 !important; }
.qlb-dash-pnl-stat-val--indigo { color: #6366f1 !important; }
.qlb-dash-pnl-month-sel { padding: 6px 10px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #f1f5f9; font-size: .875rem; font-weight: 600; cursor: pointer; }
.qlb-dash-pnl-month-sel:focus { outline: 2px solid #10b981; outline-offset: 2px; }
.qlb-dash-pnl-card { background: #0f172a; border-radius: 10px; padding: 20px 24px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; margin: 16px 20px 0; }
.qlb-dash-pnl-card-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #64748b; padding-bottom: 6px; border-bottom: 1px solid #1e293b; }
.qlb-dash-pnl-card--alltime { max-width: 100%; margin-top: 16px; }
.qlb-dash-pnl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding-top: 4px; }
.qlb-dash-pnl-stat { background: #1e293b; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.qlb-dash-pnl-stat-val { font-size: 1.35rem; font-weight: 800; color: #f1f5f9; line-height: 1.1; }
.qlb-dash-pnl-stat-label { font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.qlb-dash-pnl-row { display: flex; justify-content: space-between; align-items: center; }
.qlb-dash-pnl-row--total .qlb-dash-pnl-label { font-weight: 700; font-size: 1rem; }
.qlb-dash-pnl-row--total .qlb-dash-pnl-value { font-size: 1.2rem; font-weight: 800; }
.qlb-dash-pnl-label { color: #94a3b8; font-size: .9rem; }
.qlb-dash-pnl-value { font-size: .95rem; font-weight: 700; }
.qlb-dash-pnl-divider { border-top: 1px solid #334155; margin: 4px 0; }
.qlb-dash-pnl-notice { font-size: .75rem; color: #f59e0b; padding-top: 6px; }
.qlb-dash-pnl-notice a { color: #f59e0b; text-decoration: underline; }

/* ── Workload Alerts ─────────────────────────────────────────────── */
.qlb-dash-alert-list { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.qlb-dash-alert-items { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.qlb-dash-alert-item { font-size: .85rem; padding: 4px 0; }
.qlb-dash-alert-red   { color: #dc2626; }
.qlb-dash-alert-amber { color: #d97706; }
.qlb-dash-alert-blue  { color: #3b82f6; }

/* ── Hub Card Additions ──────────────────────────────────────────── */
.qlb-dash-hub-revenue { display: block; font-size: .8rem; color: #10b981; font-weight: 700; margin-top: 4px; }
.qlb-dash-hub-bm-link { display: inline-block; margin-top: 8px; font-size: .75rem; color: #6366f1; font-weight: 600; text-decoration: none; border-bottom: 1px dotted #6366f1; }
.qlb-dash-hub-bm-link:hover { color: #4f46e5; }

/* ─────────────────────────────────────────────────────────────────────
   QLB-BOOKING-DASH-TAB-REFACTOR-01: Tab Navigation + Headers
   ───────────────────────────────────────────────────────────────────── */

/* Dashboard Header (cloned from SM) */
.qlb-sm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #475569;
  gap: 16px;
}

.qlb-sm-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qlb-sm-header-badge {
  display: inline-block;
  background: #10b981;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.qlb-sm-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.qlb-sm-header-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qlb-sm-filter-label {
  font-size: .875rem;
  font-weight: 600;
  color: #cbd5e1;
}

.qlb-sm-filter-select {
  min-width: 140px;
  padding: 6px 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #1e293b;
  color: #fff;
  font-size: .875rem;
  cursor: pointer;
}

.qlb-sm-filter-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* ===================================================================
   DASHBOARD SHELL + WRAP (BM pattern — full-page isolation)
   =================================================================== */

#qlb-dash-shell,
#qlb-dash-shell * { box-sizing: border-box; }

#qlb-dash-shell {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  min-height: 100vh;
}

#qlb-dash-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ===================================================================
   DASHBOARD HEADER — golden yellow SVG, identical to SM header
   =================================================================== */

.qlb-dash-header {
  width: 100%;
  max-height: 150px;
  min-height: 64px;
  background-color: #F5C518;
  background-image: url('../img/book-ahead-bg.svg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 100;
  overflow: hidden;
  box-sizing: border-box;
}

.qlb-dash-header-inner {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.qlb-dash-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.qlb-dash-header-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.qlb-dash-header-badge {
  display: inline-flex;
  align-items: center;
  background: #059669;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.35);
  white-space: nowrap;
  line-height: 1.4;
}

.qlb-dash-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.qlb-dash-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.qlb-dash-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.qlb-dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.qlb-dash-nav-link--active {
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.qlb-dash-nav-link--logout {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #b91c1c;
}

.qlb-dash-nav-link--logout:hover {
  background: rgba(220, 38, 38, 0.22);
  color: #7f1d1d;
}

.qlb-dash-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qlb-dash-header-user {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

.qlb-dash-filter-label {
  color: #1a1a1a;
  font-size: .875rem;
  font-weight: 600;
  margin-right: 4px;
  white-space: nowrap;
}

.qlb-dash-filter-select {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #1a1a1a;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 140px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.qlb-dash-filter-select:hover {
  background: rgba(255, 255, 255, 0.85);
}

.qlb-dash-filter-select:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* ===================================================================
   TAB NAVIGATION BAR (qlb-dash-tabs-bar)
   =================================================================== */

.qlb-dash-tabs-bar {
  background: #1e293b;
  border-bottom: 2px solid #334155;
  box-sizing: border-box;
  position: sticky;
  top: 144px;   /* sits directly below yellow header (144px min-height) */
  z-index: 998;
  overflow: visible;
}

/* ===================================================================
   NAV DROPDOWN — Tools menu in black nav bar
   RUN_ID: QLB-HEADER-IMAGES-NAV-FIX-01
   =================================================================== */
.qlb-nav-bar {
  position: sticky;
  top: 144px;   /* sits directly below yellow header (144px min-height) */
  z-index: 998;
  overflow: visible;
}

.qlb-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.qlb-nav-dropdown {
  position: relative;
  display: inline-block;
}

.qlb-nav-dropdown__trigger {
  cursor: pointer;
}

.qlb-nav-dropdown__menu {
  display: none;
  position: fixed;
  background: #c026d3;
  border: 1px solid #a21caf;
  border-radius: 6px;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  padding: 4px 0;
}

.qlb-nav-dropdown.open .qlb-nav-dropdown__menu {
  display: block;
}

.qlb-nav-dropdown__item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  color: #ffffff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.qlb-nav-dropdown__item:hover {
  background: #a21caf;
  color: #ffffff;
  text-decoration: none;
}

.qlb-nav-dropdown__item.active {
  color: #fde68a;
}

.qlb-nav-dropdown__divider {
  height: 1px;
  background: #a21caf;
  margin: 4px 0;
}

.qlb-dash-empty-state {
  padding: 32px 24px;
  color: #94a3b8;
  font-size: .95rem;
  text-align: center;
}
.qlb-dash-empty-state a {
  color: #fde68a;
  text-decoration: underline;
}

.qlb-dash-tabs-desktop {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  overflow: visible;
}

/* Tab Button Styling */
.qlb-dash-tab-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.qlb-dash-tab-btn:hover {
  color: #f1f5f9;
  border-bottom-color: #64748b;
}

.qlb-dash-tab-btn.active {
  color: #10b981;
  border-bottom-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

/* Tab Panels (Content) */
.qlb-dash-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.qlb-dash-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================================================================
   MOBILE TABS DROPDOWN (hidden on desktop, shown on mobile)
   =================================================================== */

.qlb-dash-tabs-mobile {
  display: none;
  background: #1e293b;
  padding: 8px 16px;
  border-bottom: 2px solid #334155;
}

.qlb-dash-tabs-mobile-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qlb-dash-tabs-mobile-select:hover {
  border-color: #64748b;
  background: #1e293b;
}

.qlb-dash-tabs-mobile-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* ===================================================================
   RESPONSIVE: MOBILE BREAKPOINT (@768px)
   =================================================================== */

@media (max-width: 768px) {
  .qlb-dash-header {
    max-height: none;
  }

  .qlb-dash-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
  }

  .qlb-dash-header-center {
    width: 100%;
    justify-content: flex-start;
  }

  .qlb-dash-header-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .qlb-dash-header-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .qlb-dash-filter-select {
    width: 100%;
    min-width: unset;
  }

  .qlb-dash-tabs-desktop {
    display: none;
  }

  .qlb-dash-tabs-mobile {
    display: block;
  }

  .qlb-dash-tab-btn {
    padding: 6px 10px;
    font-size: .75rem;
  }
}


/* Legacy SM-specific (keep for backward compat if needed) */
.qlb-sm-tabs {
  display: flex;
  gap: 4px;
  background: #1e293b;
  padding: 12px 16px;
  border-bottom: 2px solid #334155;
  overflow-x: auto;
}

/* Mobile Tabs Dropdown (hidden on desktop) */
.qlb-sm-tabs-dropdown {
  display: none;
  background: #1e293b;
  padding: 8px 16px;
  border-bottom: 2px solid #334155;
}

/* ===================================================================
   NAV BAR LINK OVERRIDES — qlb-dash-tab-btn as <a> tag
   Hub/ranking/BM pages use <a> instead of <button> in the black bar.
   Match button appearance exactly.
   RUN_ID: QLB-LAYOUT-BLACKBAR-FIX-01
   =================================================================== */
a.qlb-dash-tab-btn {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

a.qlb-dash-tab-btn:hover {
  text-decoration: none;
}

/* ===================================================================
   PAGE BODY — content wrapper for hub/ranking/bm pages
   Mirrors booking-dash's #qlb-dash-wrap layout.
   =================================================================== */
.qlb-page-body {
  width: 100%;
  max-width: 100%;
  padding: 20px 24px 60px;
  background: #f1f5f9;
  min-height: calc(100vh - 204px);
  box-sizing: border-box;
}

/* ===================================================================
   FLIGHT-BOARD DIGITAL NET MARGIN — hub-overview full page only
   T4: QLB-HUB-NAV-FIX-01
   =================================================================== */
.qlb-hub-net-margin-wrapper {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  padding:         28px 0 32px;
  border-top:      1px solid #334155;
  border-bottom:   1px solid #334155;
  margin:          24px 0 32px;
}

.qlb-hub-net-margin-label {
  font-size:       0.7rem;
  font-weight:     800;
  letter-spacing:  0.28em;
  text-transform:  uppercase;
  color:           #94a3b8;
  display:         block;
  margin-bottom:   10px;
}

.qlb-hub-net-margin-display {
  font-family:    'Courier New', 'Lucida Console', monospace;
  font-size:      14px;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:     #0d1117;
  border:         2px solid #30363d;
  border-radius:  4px;
  padding:        6px 16px;
  display:        inline-block;
  text-align:     center;
  box-shadow:     0 0 20px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,0,0,0.3);
}

.qlb-hub-net-margin-display--positive {
  color:       #39ff14;
  text-shadow: 0 0 20px rgba(57,255,20,0.6), 0 0 40px rgba(57,255,20,0.2);
}

.qlb-hub-net-margin-display--negative {
  color:       #ff3b3b;
  text-shadow: 0 0 20px rgba(255,59,59,0.6), 0 0 40px rgba(255,59,59,0.2);
}

.qlb-hub-net-margin-sub {
  margin-top:   12px;
  font-size:    0.8rem;
  font-weight:  700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:        #64748b;
}

.qlb-hub-net-margin-sub strong {
  color: #cbd5e1;
}



/* ===================================================================
   LOGO TEXT — white + square border override
   staff-template.css is LOCKED so override lives here (admin.css)
   T6: QLB-UAT-FIXES-01
   =================================================================== */
.qlb-staff-header__logo-text {
  color:          #ffffff !important;
  border:         2px solid #ffffff;
  padding:        5px 12px;
  display:        inline-block;
  border-radius:  0;
  text-decoration: none;
}
.qlb-staff-header__logo-text:hover,
.qlb-staff-header__logo-text:focus {
  color:          #ffd700 !important;
  border-color:   #ffd700;
}


/* ===================================================================
   STAFF RANKINGS — Sort bar
   QLB-UAT-FIXES-01
   =================================================================== */
.qlb-ranking-sort-bar {
  display:     flex;
  flex-wrap:   wrap;
  gap:         8px;
  margin-bottom: 16px;
}

.qlb-ranking-sort-btn {
  background:    #1e293b;
  color:         #cbd5e1;
  border:        1px solid #334155;
  border-radius: 4px;
  padding:       6px 14px;
  font-size:     12px;
  font-weight:   600;
  cursor:        pointer;
  transition:    background 0.15s, color 0.15s, border-color 0.15s;
}

.qlb-ranking-sort-btn:hover {
  background:    #334155;
  color:         #f1f5f9;
  border-color:  #64748b;
}

.qlb-ranking-sort-btn.active {
  background:    #fbbf24;
  color:         #0f172a;
  border-color:  #f59e0b;
  font-weight:   700;
}
