/* ══════════════════════════════════════════════════════════════════
   Atlas Plast — Technical Support System · Design system
   Light / dark follow the OS setting (no in-app toggle).
   ══════════════════════════════════════════════════════════════════ */

/* ── Tokens: light ─────────────────────────────────────────────── */
:root,
[data-bs-theme="light"] {
    /* Brand (from logo) */
    --ap-brand:          #0a5a9c;   /* 7.0:1 on white */
    --ap-brand-hover:    #084a80;
    --ap-brand-light:    #1e88c0;
    --ap-brand-tint:     rgba(10, 90, 156, .10);

    /* Surfaces */
    --ap-bg:             #f5f5f7;   /* grouped background */
    --ap-surface:        #ffffff;   /* cards */
    --ap-surface-2:      #f2f2f5;   /* insets, table heads */
    --ap-surface-hover:  #f0f4fa;
    --ap-material:       rgba(255, 255, 255, .78);   /* translucent nav bar */

    /* Labels */
    --ap-label:          #1d1d1f;   /* 16.8:1 */
    --ap-label-2:        #5f5f66;   /*  6.3:1 on white, 5.8:1 on bg */
    --ap-label-3:        #86868b;   /* decorative only, never body text */
    --ap-separator:      rgba(0, 0, 0, .09);
    --ap-shadow:         0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .05);
    --ap-shadow-raised:  0 4px 12px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .08);

    /* Semantic status hues (text-safe on their own tint) */
    --ap-red:     #c4281c;  --ap-red-tint:     rgba(255, 59, 48, .12);
    --ap-orange:  #a04800;  --ap-orange-tint:  rgba(255, 149, 0, .14);
    --ap-yellow:  #8a6100;  --ap-yellow-tint:  rgba(255, 204, 0, .20);
    --ap-green:   #1b7a3a;  --ap-green-tint:   rgba(52, 199, 89, .14);
    --ap-teal:    #0b6e75;  --ap-teal-tint:    rgba(48, 176, 199, .14);
    --ap-blue:    #0a5a9c;  --ap-blue-tint:    rgba(10, 90, 156, .10);
    --ap-indigo:  #4b3fc4;  --ap-indigo-tint:  rgba(88, 86, 214, .12);
    --ap-purple:  #8236a8;  --ap-purple-tint:  rgba(175, 82, 222, .12);
    --ap-gray:    #5f5f66;  --ap-gray-tint:    rgba(120, 120, 128, .14);

    --ap-radius:     14px;
    --ap-radius-sm:  10px;
    --ap-focus-ring: 0 0 0 3px rgba(30, 136, 192, .45);

    /* Bootstrap overrides */
    --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
                          "Noto Sans Arabic", Tahoma, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: .9375rem;          /* 15px */
    --bs-body-line-height: 1.5;
    --bs-body-bg: var(--ap-bg);
    --bs-body-color: var(--ap-label);
    --bs-emphasis-color: var(--ap-label);
    --bs-secondary-color: var(--ap-label-2);
    --bs-tertiary-bg: var(--ap-surface-2);
    --bs-border-color: var(--ap-separator);
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 14px;
    --bs-primary: #0a5a9c;
    --bs-primary-rgb: 10, 90, 156;
    --bs-primary-text-emphasis: #084a80;
    --bs-primary-bg-subtle: #e3edf7;
    --bs-primary-border-subtle: #b6cfe6;
    --bs-link-color: #0a5a9c;
    --bs-link-color-rgb: 10, 90, 156;
    --bs-link-hover-color: #084a80;
    --bs-link-hover-color-rgb: 8, 74, 128;
    --bs-focus-ring-color: rgba(30, 136, 192, .45);

    color-scheme: light;
}

/* ── Tokens: dark ──────────────────────────────────────────────── */
[data-bs-theme="dark"] {
    --ap-brand:          #5aa9e6;   /* 7.4:1 on surface */
    --ap-brand-hover:    #7dbcef;
    --ap-brand-light:    #5aa9e6;
    --ap-brand-tint:     rgba(90, 169, 230, .16);

    --ap-bg:             #0f0f11;
    --ap-surface:        #1c1c1e;
    --ap-surface-2:      #2c2c2e;
    --ap-surface-hover:  #26292e;
    --ap-material:       rgba(28, 28, 30, .78);

    --ap-label:          #f5f5f7;
    --ap-label-2:        #b4b4bb;   /* 8.6:1 on surface */
    --ap-label-3:        #8e8e93;
    --ap-separator:      rgba(255, 255, 255, .10);
    --ap-shadow:         0 0 0 1px rgba(255, 255, 255, .06);
    --ap-shadow-raised:  0 0 0 1px rgba(255, 255, 255, .10), 0 12px 32px rgba(0, 0, 0, .5);

    --ap-red:     #ff6961;  --ap-red-tint:     rgba(255, 69, 58, .20);
    --ap-orange:  #ffa94d;  --ap-orange-tint:  rgba(255, 159, 10, .20);
    --ap-yellow:  #ffd60a;  --ap-yellow-tint:  rgba(255, 214, 10, .18);
    --ap-green:   #4cd964;  --ap-green-tint:   rgba(48, 209, 88, .18);
    --ap-teal:    #64d2e6;  --ap-teal-tint:    rgba(100, 210, 230, .18);
    --ap-blue:    #5aa9e6;  --ap-blue-tint:    rgba(90, 169, 230, .18);
    --ap-indigo:  #a5a1ff;  --ap-indigo-tint:  rgba(125, 122, 255, .20);
    --ap-purple:  #da8fff;  --ap-purple-tint:  rgba(191, 90, 242, .20);
    --ap-gray:    #b4b4bb;  --ap-gray-tint:    rgba(142, 142, 147, .22);

    --bs-body-bg: var(--ap-bg);
    --bs-body-color: var(--ap-label);
    --bs-emphasis-color: var(--ap-label);
    --bs-secondary-color: var(--ap-label-2);
    --bs-tertiary-bg: var(--ap-surface-2);
    --bs-secondary-bg: var(--ap-surface-2);
    --bs-border-color: var(--ap-separator);
    --bs-primary: #5aa9e6;
    --bs-primary-rgb: 90, 169, 230;
    --bs-primary-text-emphasis: #9cccf2;
    --bs-primary-bg-subtle: rgba(90, 169, 230, .16);
    --bs-primary-border-subtle: rgba(90, 169, 230, .4);
    --bs-link-color: #5aa9e6;
    --bs-link-color-rgb: 90, 169, 230;
    --bs-link-hover-color: #7dbcef;
    --bs-link-hover-color-rgb: 125, 188, 239;

    color-scheme: dark;
}

/* ── Base ──────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
    background-color: var(--ap-bg);
    color: var(--ap-label);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "tnum" 0;
}
h1, h2, h3, h4, h5, h6, .h4, .h5 { color: var(--ap-label); letter-spacing: -.01em; }
h4, .h4 { font-weight: 700; }
.text-muted { color: var(--ap-label-2) !important; }
.text-dark  { color: var(--ap-label) !important; }
small, .small { font-size: .8125rem; }   /* 13px floor for secondary text */
.tabular { font-variant-numeric: tabular-nums; }

/* Keyboard focus — always visible, never on mouse click */
:focus { outline: none; }
:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--ap-focus-ring) !important;
    border-radius: 6px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ap-brand-light);
    box-shadow: var(--ap-focus-ring);
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 2000;
    padding: .5rem 1rem;
    border-radius: 8px;
    background: var(--ap-brand);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 10px;
    --bs-btn-padding-y: .45rem;
    --bs-btn-padding-x: 1rem;
    min-height: 36px;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-sm { --bs-btn-border-radius: 8px; min-height: 30px; --bs-btn-padding-x: .7rem; }
.btn-lg { --bs-btn-border-radius: 12px; }

.btn-primary {
    --bs-btn-bg: var(--ap-brand);
    --bs-btn-border-color: var(--ap-brand);
    --bs-btn-hover-bg: var(--ap-brand-hover);
    --bs-btn-hover-border-color: var(--ap-brand-hover);
    --bs-btn-active-bg: var(--ap-brand-hover);
    --bs-btn-active-border-color: var(--ap-brand-hover);
    --bs-btn-disabled-bg: var(--ap-brand);
    --bs-btn-disabled-border-color: var(--ap-brand);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: #1e78c2;
    --bs-btn-border-color: #1e78c2;
    --bs-btn-hover-bg: #2a88d6;
    --bs-btn-hover-border-color: #2a88d6;
    --bs-btn-active-bg: #2a88d6;
}
.btn-outline-primary {
    --bs-btn-color: var(--ap-brand);
    --bs-btn-border-color: rgba(var(--bs-primary-rgb), .35);
    --bs-btn-hover-bg: var(--ap-brand-tint);
    --bs-btn-hover-color: var(--ap-brand);
    --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), .5);
    --bs-btn-active-bg: var(--ap-brand-tint);
    --bs-btn-active-color: var(--ap-brand);
    --bs-btn-active-border-color: rgba(var(--bs-primary-rgb), .5);
}
.btn-outline-secondary, .btn-light {
    --bs-btn-color: var(--ap-label);
    --bs-btn-bg: var(--ap-surface);
    --bs-btn-border-color: var(--ap-separator);
    --bs-btn-hover-bg: var(--ap-surface-2);
    --bs-btn-hover-color: var(--ap-label);
    --bs-btn-hover-border-color: var(--ap-separator);
    --bs-btn-active-bg: var(--ap-surface-2);
    --bs-btn-active-color: var(--ap-label);
}

/* Semantic buttons — Bootstrap's stock yellow/cyan/red fail 4.5:1 as text */
.btn-danger {
    --bs-btn-bg: #c4281c; --bs-btn-border-color: #c4281c;
    --bs-btn-hover-bg: #a82015; --bs-btn-hover-border-color: #a82015;
    --bs-btn-active-bg: #a82015; --bs-btn-active-border-color: #a82015;
}
.btn-outline-danger {
    --bs-btn-color: var(--ap-red);
    --bs-btn-border-color: rgba(196, 40, 28, .45);
    --bs-btn-hover-bg: #c4281c; --bs-btn-hover-border-color: #c4281c; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #a82015; --bs-btn-active-border-color: #a82015;
}
.btn-info {
    --bs-btn-bg: #0b7f8a; --bs-btn-border-color: #0b7f8a; --bs-btn-color: #fff;
    --bs-btn-hover-bg: #096a73; --bs-btn-hover-border-color: #096a73; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #096a73; --bs-btn-active-border-color: #096a73; --bs-btn-active-color: #fff;
}
.btn-outline-info {
    --bs-btn-color: var(--ap-teal); --bs-btn-border-color: rgba(11, 127, 138, .45);
    --bs-btn-hover-bg: #0b7f8a; --bs-btn-hover-border-color: #0b7f8a; --bs-btn-hover-color: #fff;
}
.btn-outline-warning {
    --bs-btn-color: var(--ap-yellow); --bs-btn-border-color: rgba(255, 179, 0, .6);
    --bs-btn-hover-bg: #ffcc00; --bs-btn-hover-border-color: #ffcc00; --bs-btn-hover-color: #1d1d1f;
    --bs-btn-active-bg: #ffcc00; --bs-btn-active-color: #1d1d1f;
}
.btn-outline-purple {
    --bs-btn-color: var(--ap-purple); --bs-btn-border-color: rgba(130, 54, 168, .45);
    --bs-btn-hover-bg: var(--ap-purple-tint); --bs-btn-hover-color: var(--ap-purple); --bs-btn-hover-border-color: var(--ap-purple);
    --bs-btn-active-bg: #8236a8; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #8236a8;
}
.btn-success {
    --bs-btn-bg: #1b7a3a; --bs-btn-border-color: #1b7a3a;
    --bs-btn-hover-bg: #156330; --bs-btn-hover-border-color: #156330;
    --bs-btn-active-bg: #156330;
}
/* Light text on yellow/cyan fills is never legible — force dark text there */
.bg-warning, .bg-warning.text-white, .bg-info, .bg-info.text-white,
.btn-warning, .text-bg-warning, .text-bg-info { color: #1d1d1f !important; }
.bg-warning .text-white, .bg-info .text-white { color: #1d1d1f !important; }
.bg-warning.text-dark, .bg-info.text-dark, .bg-light.text-dark { color: #1d1d1f !important; }
.bg-danger  { background-color: #c4281c !important; }
.bg-success { background-color: #1b7a3a !important; }
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .text-bg-primary { background-color: #1e78c2 !important; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    --bs-card-bg: var(--ap-surface);
    --bs-card-cap-bg: var(--ap-surface);
    --bs-card-border-color: var(--ap-separator);
    border: none;
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
}
.card-header {
    border-radius: var(--ap-radius) var(--ap-radius) 0 0 !important;
    border-bottom-color: var(--ap-separator);
    font-weight: 600;
}
.card-footer { border-top-color: var(--ap-separator); }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-control, .form-select, .input-group-text {
    border-radius: 10px;
    border-color: var(--ap-separator);
    min-height: 38px;
}
.form-control, .form-select { background-color: var(--ap-surface); color: var(--ap-label); }
.input-group-text { background: var(--ap-surface-2); color: var(--ap-label-2); }
.form-control::placeholder { color: var(--ap-label-3); }
.form-label { font-weight: 600; font-size: .875rem; color: var(--ap-label); margin-bottom: .35rem; }
.form-text { color: var(--ap-label-2); }
.form-check-input:checked { background-color: var(--ap-brand); border-color: var(--ap-brand); }

.form-section-title {
    font-size: .875rem;
    color: var(--ap-label);
    font-weight: 700;
    border-bottom: 1px solid var(--ap-separator);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* ── Tables ────────────────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ap-label);
    --bs-table-border-color: var(--ap-separator);
    --bs-table-hover-bg: var(--ap-surface-hover);
    --bs-table-hover-color: var(--ap-label);
    --bs-table-striped-bg: var(--ap-surface-2);
}
.table > thead th,
.table-light th {
    background: var(--ap-surface-2) !important;
    color: var(--ap-label-2) !important;
    font-weight: 600;
    font-size: .8125rem;
    border-bottom: 1px solid var(--ap-separator) !important;
    white-space: nowrap;
}
.table-light { --bs-table-bg: var(--ap-surface-2); --bs-table-color: var(--ap-label-2); }
.ticket-row { cursor: pointer; }
.ticket-row:hover td { background-color: var(--ap-surface-hover); }
.ticket-no {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ap-brand);
    text-decoration: none;
}
.ticket-no:hover { text-decoration: underline; }

/* Priority accent — logical side, so it flips correctly in Arabic (RTL) */
:not(tr).priority-low    { box-shadow: inset 4px 0 0 #8e8e93; }
:not(tr).priority-medium { box-shadow: inset 4px 0 0 #30b0c7; }
:not(tr).priority-high   { box-shadow: inset 4px 0 0 #ff9500; }
:not(tr).priority-urgent { box-shadow: inset 4px 0 0 #ff3b30; }
[dir="rtl"] :not(tr).priority-low    { box-shadow: inset -4px 0 0 #8e8e93; }
[dir="rtl"] :not(tr).priority-medium { box-shadow: inset -4px 0 0 #30b0c7; }
[dir="rtl"] :not(tr).priority-high   { box-shadow: inset -4px 0 0 #ff9500; }
[dir="rtl"] :not(tr).priority-urgent { box-shadow: inset -4px 0 0 #ff3b30; }
tr.priority-low > td:first-child    { box-shadow: inset 4px 0 0 #8e8e93; }
tr.priority-medium > td:first-child { box-shadow: inset 4px 0 0 #30b0c7; }
tr.priority-high > td:first-child   { box-shadow: inset 4px 0 0 #ff9500; }
tr.priority-urgent > td:first-child { box-shadow: inset 4px 0 0 #ff3b30; }
[dir="rtl"] tr.priority-low > td:first-child    { box-shadow: inset -4px 0 0 #8e8e93; }
[dir="rtl"] tr.priority-medium > td:first-child { box-shadow: inset -4px 0 0 #30b0c7; }
[dir="rtl"] tr.priority-high > td:first-child   { box-shadow: inset -4px 0 0 #ff9500; }
[dir="rtl"] tr.priority-urgent > td:first-child { box-shadow: inset -4px 0 0 #ff3b30; }

/* ── Status / priority pills (icon + text, never colour alone) ─── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .25em .65em;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.pill i { font-size: .7em; }
.pill-red    { color: var(--ap-red);    background: var(--ap-red-tint); }
.pill-orange { color: var(--ap-orange); background: var(--ap-orange-tint); }
.pill-yellow { color: var(--ap-yellow); background: var(--ap-yellow-tint); }
.pill-green  { color: var(--ap-green);  background: var(--ap-green-tint); }
.pill-teal   { color: var(--ap-teal);   background: var(--ap-teal-tint); }
.pill-blue   { color: var(--ap-blue);   background: var(--ap-blue-tint); }
.pill-indigo { color: var(--ap-indigo); background: var(--ap-indigo-tint); }
.pill-purple { color: var(--ap-purple); background: var(--ap-purple-tint); }
.pill-gray   { color: var(--ap-gray);   background: var(--ap-gray-tint); }

/* Bootstrap badges: readable contrast in both modes */
.badge { font-weight: 600; letter-spacing: 0; border-radius: 6px; }
.badge.rounded-pill { border-radius: 999px; }
.badge.bg-info:not(.text-dark) { color: #0b3c45 !important; }

/* ── Navbar (navy brand bar — matches the sign-in screen) ─────────── */
.app-nav {
    --nav-navy-1: #0b1e3f;
    --nav-navy-2: #1a3a72;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background:
        radial-gradient(at 8% 0%, rgba(79, 195, 247, .22) 0, transparent 40%),
        radial-gradient(at 95% 100%, rgba(91, 123, 255, .18) 0, transparent 45%),
        linear-gradient(120deg, var(--nav-navy-1) 0%, var(--nav-navy-2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 2px 12px rgba(11, 30, 63, .18);
    padding-top: .45rem;
    padding-bottom: .45rem;
}
.app-nav .navbar-brand { color: #fff; }
.app-nav .brand-logo { height: 40px; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); }
.app-nav .brand-sub {
    font-size: .75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    line-height: 1.25;
    padding-inline-start: .65rem;
    border-inline-start: 1px solid rgba(255, 255, 255, .22);
}
.app-nav .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    border-radius: 8px;
    padding: .45rem .75rem !important;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: background-color .15s, color .15s;
}
.app-nav .nav-link:hover,
.app-nav .nav-link:focus-visible,
.app-nav .nav-link.show { color: #fff; background: rgba(255, 255, 255, .1); }
.app-nav .nav-link.active,
.app-nav .nav-link[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    font-weight: 600;
}
.app-nav .nav-link i { width: 1.1em; text-align: center; }
.app-nav .navbar-toggler { border: none; padding: .5rem; min-width: 44px; min-height: 44px; }
.app-nav .navbar-toggler:focus { box-shadow: var(--ap-focus-ring); }
.app-nav .icon-btn {
    width: 40px; height: 40px;
    justify-content: center;
    padding: 0 !important;
    position: relative;
}
.app-nav .icon-btn .notif-count {
    position: absolute;
    top: 3px;
    inset-inline-end: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--nav-navy-2);
    box-sizing: content-box;
}
.app-nav .avatar-circle { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-btn {
    font-weight: 600;
    font-size: .8125rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    background: rgba(255, 255, 255, .08);
    padding: .35rem .85rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
}
.lang-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 991.98px) {
    .app-nav .navbar-collapse { border-top-color: rgba(255, 255, 255, .15) !important; }
}

/* ── Page hero (navy banner at the top of a page, e.g. the dashboard) ── */
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--ap-radius);
    padding: 1.6rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(at 10% 15%, rgba(79, 195, 247, .28) 0, transparent 45%),
        radial-gradient(at 90% 90%, rgba(91, 123, 255, .22) 0, transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #0b1e3f 0%, #1a3a72 100%);
    box-shadow: 0 8px 24px rgba(11, 30, 63, .18);
}
.page-hero .page-eyebrow { color: rgba(255, 255, 255, .72); }
.page-hero .page-title { color: #fff; font-size: 1.9rem; }
.page-hero .hero-sub { color: rgba(255, 255, 255, .82); }
.page-hero .hero-sub strong { color: #fff; }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .75rem;
    font-weight: 500;
    color: #fff;
}
.btn-hero {
    --bs-btn-color: #0b1e3f;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #0b1e3f;
    --bs-btn-hover-bg: #e8f0fb;
    --bs-btn-hover-border-color: #e8f0fb;
    --bs-btn-active-bg: #dbe7f8;
    --bs-btn-active-color: #0b1e3f;
}
.btn-hero-outline {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, .06);
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .16);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
    --bs-btn-active-bg: rgba(255, 255, 255, .2);
    --bs-btn-active-color: #fff;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stat { display: flex; align-items: baseline; gap: .45rem; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.hero-stat strong { color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Dropdowns */
.dropdown-menu {
    --bs-dropdown-bg: var(--ap-surface);
    --bs-dropdown-color: var(--ap-label);
    --bs-dropdown-link-color: var(--ap-label);
    --bs-dropdown-link-hover-bg: var(--ap-surface-2);
    --bs-dropdown-link-hover-color: var(--ap-label);
    --bs-dropdown-link-active-bg: var(--ap-brand);
    --bs-dropdown-divider-bg: var(--ap-separator);
    --bs-dropdown-header-color: var(--ap-label-2);
    border: 1px solid var(--ap-separator);
    border-radius: 12px;
    box-shadow: var(--ap-shadow-raised);
    padding: .35rem;
}
.dropdown-item { border-radius: 7px; padding: .45rem .75rem; font-size: .9rem; }
.dropdown-item i { width: 1.25em; text-align: center; color: var(--ap-label-2); }
.dropdown-item.text-danger i { color: inherit; }
.notif-menu { width: min(340px, calc(100vw - 2rem)); max-height: 420px; overflow-y: auto; }
.notif-item { white-space: normal; border-bottom: 1px solid var(--ap-separator); }
.notif-item:last-child { border-bottom: none; }

/* ── Avatar ────────────────────────────────────────────────────── */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8125rem;
    flex-shrink: 0;
    background: var(--ap-brand-tint);
    color: var(--ap-brand);
}

/* ── Page header ───────────────────────────────────────────────── */
.page-eyebrow { font-size: .8125rem; color: var(--ap-label-2); font-weight: 500; }
.page-title   { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.dash-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ap-label);
    letter-spacing: -.01em;
}

/* ── KPI tiles (dashboard) ─────────────────────────────────────── */
.kpi-card {
    --kpi: var(--ap-brand);
    --kpi-tint: var(--ap-brand-tint);
    display: block;
    height: 100%;
    background: var(--ap-surface);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    padding: 1rem 1.1rem;
    color: var(--ap-label);
    text-decoration: none;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.kpi-card:hover { color: var(--ap-label); transform: translateY(-2px); box-shadow: var(--ap-shadow-raised); }
.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--kpi-tint);
    color: var(--kpi);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: .75rem;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--ap-label);
}
.kpi-label { color: var(--ap-label-2); font-size: .875rem; font-weight: 500; margin-top: .15rem; }
.kpi-red    { --kpi: var(--ap-red);    --kpi-tint: var(--ap-red-tint); }
.kpi-orange { --kpi: var(--ap-orange); --kpi-tint: var(--ap-orange-tint); }
.kpi-green  { --kpi: var(--ap-green);  --kpi-tint: var(--ap-green-tint); }
.kpi-teal   { --kpi: var(--ap-teal);   --kpi-tint: var(--ap-teal-tint); }
.kpi-blue   { --kpi: var(--ap-blue);   --kpi-tint: var(--ap-blue-tint); }
.kpi-yellow { --kpi: var(--ap-yellow); --kpi-tint: var(--ap-yellow-tint); }
.kpi-card.kpi-alert { box-shadow: inset 0 0 0 1.5px var(--ap-red), var(--ap-shadow); }

/* Urgent banner */
.notice-banner {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    border-radius: var(--ap-radius);
    background: var(--ap-red-tint);
    color: var(--ap-label);
}
.notice-banner .notice-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #ff3b30;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Stat cards (older pages) */
.stat-card { border: none; border-radius: var(--ap-radius); transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.stat-card .stat-number { font-size: 1.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* ── Chart cards ───────────────────────────────────────────────── */
.chart-card .card-header { background: var(--ap-surface); border-bottom: none; padding-top: .9rem; }
.chart-title { font-weight: 600; font-size: .9375rem; color: var(--ap-label); }
.chart-title i { color: var(--ap-label-2); width: 1.1em; }
.chart-total {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ap-label-2);
    background: var(--ap-surface-2);
    border-radius: 999px;
    padding: .1rem .6rem;
    font-variant-numeric: tabular-nums;
}
.chart-wrap { position: relative; width: 100%; height: 230px; }

/* ── Workload ──────────────────────────────────────────────────── */
.workload-bar { height: 6px; border-radius: 3px; background: var(--ap-surface-2); overflow: hidden; }
.workload-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--ap-brand-light);
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

/* ── Empty states ──────────────────────────────────────────────── */
.empty-state { text-align: center; color: var(--ap-label-2); padding: 3rem 1rem; }
.empty-state i { font-size: 2rem; color: var(--ap-label-3); opacity: .6; display: block; margin-bottom: .75rem; }

/* ── Timeline (ticket history) ─────────────────────────────────── */
.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: .75rem;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--ap-separator);
}
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-item .timeline-dot {
    position: absolute;
    inset-inline-start: -1.65rem;
    top: .3rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--ap-surface);
    box-shadow: 0 0 0 2px var(--ap-separator);
}
.timeline-item .timeline-body {
    background: var(--ap-surface);
    border-radius: 10px;
    padding: .75rem 1rem;
    box-shadow: var(--ap-shadow);
}

/* ── Ticket detail ─────────────────────────────────────────────── */
.detail-label { font-size: .8125rem; color: var(--ap-label-2); margin-bottom: .1rem; font-weight: 500; }
.detail-value { font-weight: 500; color: var(--ap-label); }

.status-pipeline { display: flex; gap: .3rem; flex-wrap: wrap; }
.status-pipeline .step { flex: 1; height: 6px; border-radius: 3px; background: var(--ap-surface-2); min-width: 20px; }
.status-pipeline .step.done    { background: #34c759; }
.status-pipeline .step.current { background: var(--ap-brand-light); }

.comment-internal { background: var(--ap-yellow-tint); border-inline-start: 4px solid #ffcc00; }
.comment-system   { background: var(--ap-blue-tint);   border-inline-start: 4px solid var(--ap-brand-light); font-style: italic; }

/* ── Filters bar ───────────────────────────────────────────────── */
.filter-bar { background: var(--ap-surface); border-radius: var(--ap-radius); padding: 1rem; box-shadow: var(--ap-shadow); }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert { border: none; border-radius: 12px; }
.alert-success { background: var(--ap-green-tint);  color: var(--ap-label); }
.alert-danger  { background: var(--ap-red-tint);    color: var(--ap-label); }
.alert-warning { background: var(--ap-yellow-tint); color: var(--ap-label); }
.alert-info    { background: var(--ap-teal-tint);   color: var(--ap-label); }
.alert-success > i:first-child { color: var(--ap-green); }
.alert-danger  > i:first-child { color: var(--ap-red); }
.alert-warning > i:first-child { color: var(--ap-yellow); }

/* ── Footer ────────────────────────────────────────────────────── */
.app-footer {
    border-top: 1px solid var(--ap-separator);
    background: transparent;
    color: var(--ap-label-2);
    font-size: .8125rem;
}

/* ── Pagination ────────────────────────────────────────────────── */
.pagination {
    --bs-pagination-color: var(--ap-brand);
    --bs-pagination-bg: var(--ap-surface);
    --bs-pagination-border-color: var(--ap-separator);
    --bs-pagination-hover-bg: var(--ap-surface-2);
    --bs-pagination-hover-color: var(--ap-brand);
    --bs-pagination-active-bg: var(--ap-brand);
    --bs-pagination-active-border-color: var(--ap-brand);
    --bs-pagination-focus-box-shadow: var(--ap-focus-ring);
}

/* ── Dark mode: neutralise hard-coded light colours in page markup ─ */
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body { background-color: var(--ap-surface) !important; }
[data-bs-theme="dark"] .card .bg-light,
[data-bs-theme="dark"] .card .bg-white:not(.card-header) { background-color: var(--ap-surface-2) !important; }
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom { border-color: var(--ap-separator) !important; }
[data-bs-theme="dark"] .text-black { color: var(--ap-label) !important; }
[data-bs-theme="dark"] .badge.bg-light { background: var(--ap-surface-2) !important; color: var(--ap-label) !important; }
[data-bs-theme="dark"] .badge.bg-dark  { background: #48484a !important; }
[data-bs-theme="dark"] [style*="background:#fff"],
[data-bs-theme="dark"] [style*="background: #fff"],
[data-bs-theme="dark"] [style*="background:#f8f9fa"],
[data-bs-theme="dark"] [style*="background:#f9fafb"],
[data-bs-theme="dark"] [style*="background:#f4f6f8"],
[data-bs-theme="dark"] [style*="background:#f3f4f6"],
[data-bs-theme="dark"] [style*="background:#e9ecef"] { background: var(--ap-surface-2) !important; color: var(--ap-label); }
[data-bs-theme="dark"] [style*="background:#e8f5e9"] { background: var(--ap-green-tint)  !important; }
[data-bs-theme="dark"] [style*="background:#fff3e0"],
[data-bs-theme="dark"] [style*="background:#fff3cd"] { background: var(--ap-orange-tint) !important; }
[data-bs-theme="dark"] [style*="background:#fce4ec"],
[data-bs-theme="dark"] [style*="background:#ffebee"] { background: var(--ap-red-tint)    !important; }
[data-bs-theme="dark"] [style*="background:#f3e5f5"] { background: var(--ap-purple-tint) !important; }
[data-bs-theme="dark"] [style*="background:#e3f2fd"] { background: var(--ap-blue-tint)   !important; }
[data-bs-theme="dark"] [style*="color:#212529"] { color: var(--ap-label) !important; }
/* Board view */
[data-bs-theme="dark"] .board-col { background: var(--ap-surface) !important; }
[data-bs-theme="dark"] .tkt-card  { background: var(--ap-surface-2) !important; }
[data-bs-theme="dark"] .tkt-subject { color: var(--ap-label) !important; }
[data-bs-theme="dark"] .tkt-meta, [data-bs-theme="dark"] .tkt-no { color: var(--ap-label-2) !important; }
[data-bs-theme="dark"] .leaflet-popup-content-wrapper,
[data-bs-theme="dark"] .leaflet-popup-tip { background: var(--ap-surface); color: var(--ap-label); }

/* ── Sign-in screens (split layout) ────────────────────────────── */
.auth-split {
    --auth-navy-1: #0b1e3f;
    --auth-navy-2: #1a3a72;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: #f8fafc;
}
[data-bs-theme="dark"] .auth-split { background: var(--ap-bg); }

/* Brand panel */
.auth-brand {
    flex: 0 0 41%;
    max-width: 560px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    color: #fff;
    background:
        radial-gradient(at 12% 18%, rgba(79, 195, 247, .28) 0, transparent 45%),
        radial-gradient(at 88% 82%, rgba(91, 123, 255, .22) 0, transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, var(--auth-navy-1) 0%, var(--auth-navy-2) 100%);
    overflow: hidden;
}
.auth-brand-top { display: flex; align-items: center; gap: .9rem; }
.auth-brand-logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.auth-brand-name { font-weight: 600; font-size: 1rem; letter-spacing: .01em; }
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
[dir="rtl"] .auth-badge { letter-spacing: 0; }
.auth-headline {
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 1.1rem 0 .9rem;
    color: #fff;
}
.auth-lead { color: rgba(255, 255, 255, .82); font-size: .98rem; line-height: 1.6; max-width: 34rem; margin: 0; }
.auth-features { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; gap: 1.25rem; }
.auth-features li { display: flex; gap: .9rem; align-items: flex-start; }
.auth-features strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.auth-features span { color: rgba(255, 255, 255, .72); font-size: .85rem; line-height: 1.5; }
.auth-feature-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(79, 195, 247, .16);
    color: #7dd3fc !important;
    font-size: .95rem !important;
}
.auth-brand-foot { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.auth-brand-foot strong { color: rgba(255, 255, 255, .85); }

/* Form side */
.auth-main {
    flex: 1 1 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.5rem 2rem;
    position: relative;
}
.auth-lang {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .95rem;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid var(--ap-separator);
    background: var(--ap-surface);
    color: var(--ap-label);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
}
.auth-lang:hover { background: var(--ap-surface-2); color: var(--ap-label); }
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-mobile-brand { display: none; text-align: center; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ap-separator); }
.auth-logo { display: block; margin: 0 auto .5rem; width: 150px; max-width: 60%; }
[data-bs-theme="dark"] .auth-logo { filter: brightness(0) invert(1); }
.auth-mobile-sub { color: var(--ap-label-2); font-size: .9rem; }

.auth-title { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .35rem; color: var(--ap-label); }
.auth-sub { color: var(--ap-label-2); font-size: .95rem; margin: 0 0 1.75rem; }
.auth-form-wrap .form-label { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.auth-field { position: relative; }
.auth-field > .auth-field-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    color: var(--ap-label-3);
    pointer-events: none;
    font-size: .95rem;
}
.auth-field > .form-control {
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
    padding-inline-start: 2.75rem;
    background: var(--ap-surface);
}
.auth-field > .form-control.has-toggle { padding-inline-end: 3rem; }
.auth-field > .pw-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: .35rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ap-label-2);
}
.auth-field > .pw-toggle:hover { background: var(--ap-surface-2); color: var(--ap-label); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.auth-link { color: var(--ap-brand); font-weight: 500; font-size: .875rem; text-decoration: none; }
.auth-link:hover { text-decoration: underline; color: var(--ap-brand); }
.btn-auth {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a3a72 0%, #0b1e3f 100%);
    box-shadow: 0 6px 18px rgba(11, 30, 63, .25);
    transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn-auth:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 8px 22px rgba(11, 30, 63, .32); }
.btn-auth:active { transform: scale(.985); }
.btn-auth:focus-visible { box-shadow: var(--ap-focus-ring), 0 6px 18px rgba(11, 30, 63, .25) !important; }
[data-bs-theme="dark"] .btn-auth { background: linear-gradient(135deg, #2a5aa8 0%, #1a3a72 100%); box-shadow: none; }
.auth-copy { text-align: center; color: var(--ap-label-3); font-size: .8rem; margin: 2rem 0 0; }
.auth-copy strong { color: var(--ap-label-2); }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--ap-label-2); font-size: .8125rem; margin: 1.5rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ap-separator); }
.auth-status-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.code-input {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: .5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding-inline-start: 1.25em;
    min-height: 56px;
}
.pw-rules { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .8125rem; }
.pw-rules li { color: var(--ap-label-2); display: flex; gap: .45rem; align-items: baseline; margin-bottom: .15rem; }
.pw-rules li.ok { color: var(--ap-green); }
.pw-rules li i { width: 1em; }

@media (max-width: 991.98px) {
    .auth-brand { display: none; }
    .auth-mobile-brand { display: block; }
    .auth-main { align-items: flex-start; padding-top: 4.75rem; }
}

/* ── Motion & accessibility preferences ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .kpi-card:hover, .stat-card:hover, .btn:active { transform: none; }
}
@media (prefers-contrast: more) {
    :root { --ap-separator: rgba(0, 0, 0, .3); --ap-label-2: #3a3a3f; }
    [data-bs-theme="dark"] { --ap-separator: rgba(255, 255, 255, .35); --ap-label-2: #d8d8de; }
    .card, .kpi-card { box-shadow: 0 0 0 1px var(--ap-separator); }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .app-nav .navbar-collapse {
        margin-top: .5rem;
        padding: .5rem 0;
        border-top: 1px solid var(--ap-separator);
    }
    .app-nav .nav-link { min-height: 44px; }
}
@media (max-width: 767.98px) {
    .page-title { font-size: 1.5rem; }
    .kpi-value  { font-size: 1.6rem; }
    .stat-card .stat-number { font-size: 1.4rem; }
    .container-fluid { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
    .app-nav, .app-footer, .skip-link { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── RTL: directional arrows point the reading direction ───────── */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-arrow-right-from-bracket,
[dir="rtl"] .fa-sign-in-alt,
[dir="rtl"] .fa-right-to-bracket,
[dir="rtl"] .fa-paper-plane,
[dir="rtl"] .fa-sign-out-alt { transform: scaleX(-1); }

/* ── Sortable table headers ────────────────────────────────────── */
.sort-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
}
.sort-link i { font-size: .75em; opacity: .35; transition: opacity .15s; }
.sort-link:hover { color: var(--ap-label); }
.sort-link:hover i { opacity: .8; }
.sort-link.active { color: var(--ap-brand); }
.sort-link.active i { opacity: 1; }
