/* =============================================================
   CONCREET SKIN: the dashboard in the design language of the mobile app.
   Visual layer only. Loaded after style2.css and ops-redesign.css.

   Themes: body.dark-theme (default) and body.default-theme (light).
   The legacy stylesheet already runs on --ot-* variables, so remapping those
   re-colours every page; the rules below restyle the shell and components.
   Tokens match mobile/redesign_app/lib/theme/app_theme.dart.
   ============================================================= */

/* ── 1. Tokens ─────────────────────────────────────────────── */
body.ops-redesign-body {
    --cs-font-h: 'Sora', 'Inter', system-ui, sans-serif;
    --cs-font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cs-r-card: 18px;
    --cs-r-btn: 14px;
    --cs-r-sm: 10px;
    --cs-brand: #066EB6;
    --cs-brand-dark: #04538A;
    --cs-accent: #C6F432;
    --cs-on-accent: #0B1220;
}

body.ops-redesign-body.dark-theme {
    --cs-bg: #0B1220;
    --cs-surface: #151E2E;
    --cs-surface-2: #1D2940;
    --cs-low: #111A29;
    --cs-nav: #0F1828;
    --cs-text: #F2F5F9;
    --cs-soft: #C9D3DF;
    --cs-muted: #9AA8BA;
    --cs-line: #243044;
    --cs-line-strong: #4A5A75;
    --cs-primary: #3B9BE8;
    --cs-primary-bg: #1B3A5C;
    --cs-link: #7CC0F5;
    --cs-ok: #C6F432;   --cs-ok-bg: #263317;
    --cs-warn: #FFB547; --cs-warn-bg: #3A2C14;
    --cs-err: #FF8A80;  --cs-err-bg: #3A1B1F;
    --cs-info: #7CC0F5; --cs-info-bg: #1B3A5C;
    --cs-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

body.ops-redesign-body.default-theme {
    --cs-bg: #F2F5F9;
    --cs-surface: #FFFFFF;
    --cs-surface-2: #EAF0F7;
    --cs-low: #F7F9FC;
    --cs-nav: #FFFFFF;
    --cs-text: #0B1220;
    --cs-soft: #2B384C;
    --cs-muted: #5E6C80;
    --cs-line: #E1E8F0;
    --cs-line-strong: #B7C3D3;
    --cs-primary: #066EB6;
    --cs-primary-bg: #E3F0FA;
    --cs-link: #066EB6;
    --cs-ok: #2E7D1E;   --cs-ok-bg: #E6F4D4;
    --cs-warn: #9A5B00; --cs-warn-bg: #FFF1D6;
    --cs-err: #C62828;  --cs-err-bg: #FDE3E1;
    --cs-info: #066EB6; --cs-info-bg: #E3F0FA;
    --cs-shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 6px 18px rgba(11, 18, 32, .06);
    color-scheme: light;
}

/* Remap the legacy variables so every existing page follows the new palette */
body.ops-redesign-body.dark-theme,
body.ops-redesign-body.default-theme {
    --ot-text-primary: var(--cs-muted);
    --ot-text-title: var(--cs-text);
    --ot-text-subtitle: var(--cs-soft);
    --header-bg: var(--cs-nav);
    --theme-bg: var(--cs-bg);
    --primary-color: var(--cs-primary);

    --ot-bg-primary: var(--cs-bg);
    --ot-bg-secondary: var(--cs-surface);
    --ot-bg-secondary-opacity: color-mix(in srgb, var(--cs-surface) 60%, transparent);
    --ot-bg-tertiary: var(--cs-surface);
    --ot-bg-progress: var(--cs-surface-2);
    --ot-border-primary: var(--cs-line);

    --ot-bg-badge-success: var(--cs-ok-bg);  --ot-text-badge-success: var(--cs-ok);
    --ot-bg-badge-danger: var(--cs-err-bg);  --ot-text-badge-danger: var(--cs-err);
    --ot-bg-badge-warning: var(--cs-warn-bg); --ot-text-badge-warning: var(--cs-warn);
    --ot-bg-badge-primary: var(--cs-info-bg); --ot-text-badge-primary: var(--cs-info);
    --ot-bg-badge-light-success: var(--cs-ok-bg);  --ot-text-badge-light-success: var(--cs-ok);
    --ot-bg-badge-light-danger: var(--cs-err-bg);  --ot-text-badge-light-danger: var(--cs-err);
    --ot-bg-badge-light-warning: var(--cs-warn-bg); --ot-text-badge-light-warning: var(--cs-warn);
    --ot-bg-badge-light-primary: var(--cs-info-bg); --ot-text-badge-light-primary: var(--cs-info);
    --ot-text-badge-deep-success: var(--cs-ok);
    --ot-text-badge-deep-danger: var(--cs-err);
    --ot-text-badge-deep-warning: var(--cs-warn);
    --ot-text-badge-deep-primary: var(--cs-info);

    --ot-bg-table-card: var(--cs-surface);
    --ot-border-table-card: var(--cs-line);
    --ot-bg-table-card-header: var(--cs-surface);
    --ot-border-table-card-header: var(--cs-line);
    --ot-border-table: var(--cs-line);
    --ot-bg-table-thead: var(--cs-low);
    --ot-border-table-thead: var(--cs-line);
    --ot-bg-table-tbody: var(--cs-surface);
    --ot-bg-table-checkbox: var(--cs-low);
    --ot-border-table-checkbox: var(--cs-line-strong);
    --ot-color-table-icon-sorting-asc-up: var(--cs-text);
    --ot-color-table-icon-sorting-asc-down: var(--cs-line-strong);
    --ot-color-table-icon-sorting-desc-up: var(--cs-line-strong);
    --ot-color-table-icon-sorting-desc-down: var(--cs-text);
    --ot-bg-table-toolbar-per-page: var(--cs-low);
    --ot-border-table-toolbar-per-page: var(--cs-line);
    --ot-bg-table-toolbar-btn-outline-primary: var(--cs-low);
    --ot-bg-table-toolbar-search: var(--cs-low);
    --ot-border-table-toolbar-search: var(--cs-line);
    --ot-bg-table-toolbar-btn-action: var(--cs-low);
    --ot-border-table-toolbar-btn-action: var(--cs-line);
    --ot-bg-table-pagination: var(--cs-surface);
    --ot-text-table-pagination: var(--cs-text);
    --ot-border-table-pagination: var(--cs-line);

    --ot-bg-profile-menu: var(--cs-surface);
    --ot-bg-profile-body: var(--cs-surface);
    --ot-bg-profile-mobile-menu: var(--cs-surface);
    --ot-bg-hover-datepicker: var(--cs-surface-2);
    --ot-text-hover-datepicker: var(--cs-text);
    --ot-bg-slider: var(--cs-line-strong);
    --ot-bg-before: var(--cs-surface);
    --ot-bg-scrollbar: transparent;
    --ot-scrollbar: var(--cs-line-strong);

    /* ops-redesign.css tokens (its :root values are light only) */
    --clr-bg: var(--cs-bg);
    --clr-surface: var(--cs-surface);
    --clr-surface-alt: var(--cs-low);
    --clr-border: var(--cs-line);
    --clr-border-focus: var(--cs-primary);
    --clr-text-main: var(--cs-text);
    --clr-text-muted: var(--cs-muted);
    --clr-primary: var(--cs-primary);
    --clr-primary-hover: var(--cs-link);
    --clr-primary-soft: var(--cs-primary-bg);
    --clr-success: var(--cs-ok);   --clr-success-soft: var(--cs-ok-bg);
    --clr-warning: var(--cs-warn); --clr-warning-soft: var(--cs-warn-bg);
    --clr-danger: var(--cs-err);   --clr-danger-soft: var(--cs-err-bg);
    --clr-info: var(--cs-info);    --clr-info-soft: var(--cs-info-bg);
    --shadow-sm: none; --shadow-md: var(--cs-shadow); --shadow-lg: var(--cs-shadow); --shadow-floating: var(--cs-shadow);
    --font-family: var(--cs-font-b);
}

/* ── 2. Base ───────────────────────────────────────────────── */
body.ops-redesign-body {
    font-family: var(--cs-font-b);
    background: var(--cs-bg) !important;
    background-image: none !important;
    color: var(--cs-text);
}
body.ops-redesign-body h1, body.ops-redesign-body h2, body.ops-redesign-body h3,
body.ops-redesign-body h4, body.ops-redesign-body h5, body.ops-redesign-body h6,
body.ops-redesign-body .ops-page-title, body.ops-redesign-body .modal-title {
    font-family: var(--cs-font-h);
    letter-spacing: -.02em;
    color: var(--cs-text);
}
body.ops-redesign-body a { color: var(--cs-link); }
body.ops-redesign-body a:hover { color: var(--cs-text); }
body.ops-redesign-body .text-muted { color: var(--cs-muted) !important; }
body.ops-redesign-body hr { border-color: var(--cs-line); opacity: 1; }
body.ops-redesign-body ::selection { background: var(--cs-accent); color: var(--cs-on-accent); }
body.ops-redesign-body *::-webkit-scrollbar { width: 10px; height: 10px; }
body.ops-redesign-body *::-webkit-scrollbar-thumb { background: var(--cs-line-strong); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
body.ops-redesign-body *:focus-visible { outline: 2px solid var(--cs-primary); outline-offset: 2px; }

/* ── 3. Sidebar ────────────────────────────────────────────── */
body.ops-redesign-body .sidebar {
    background: var(--cs-nav);
    border-right: 1px solid var(--cs-line);
    box-shadow: none;
}
body.ops-redesign-body .sidebar-header { background: transparent; border-bottom: 0; }
body.ops-redesign-body .sidebar-section-caption {
    font: 600 11px/1 var(--cs-font-b);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cs-muted);
    padding: 18px 16px 8px;
}
body.ops-redesign-body .sidebar-menu-item > .parent-item-content,
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .parent-item-content {
    color: var(--cs-soft);
    font-weight: 500;
    border-radius: 12px;
    background: transparent;
    margin: 2px 10px;
    transition: background .15s, color .15s;
}
body.ops-redesign-body .sidebar-menu-item > .parent-item-content i { color: var(--cs-muted); }
body.ops-redesign-body .sidebar-menu-item > .parent-item-content:hover { background: var(--cs-surface-2); color: var(--cs-text); }
body.ops-redesign-body .sidebar-menu-item.active > .parent-item-content,
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a,
body.ops-redesign-body .sidebar-menu-item > .parent-item-content.active {
    background: var(--cs-primary-bg) !important;
    color: var(--cs-text) !important;
    box-shadow: none;
}
body.ops-redesign-body .sidebar-menu-item.active > .parent-item-content i,
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a i { color: var(--cs-accent); }
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a::before { display: none; }
/* legacy active item uses gradient text (transparent fill): force normal text */
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a,
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a *,
body.ops-redesign-body .sidebar-menu-item.active > .parent-item-content,
body.ops-redesign-body .sidebar-menu-item.active > .parent-item-content * {
    -webkit-text-fill-color: currentColor !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}
body.ops-redesign-body .sidebar-menu .sidebar-menu-section .mm-active > a * { background: transparent !important; }
body.ops-redesign-body .child-menu-list,
body.ops-redesign-body .sidebar-menu ul.parent-menu-list > li > ul { background: transparent !important; box-shadow: none; }
body.ops-redesign-body .child-menu-list li a,
body.ops-redesign-body .child-menu-list .sidebar-menu-item > a {
    color: var(--cs-muted);
    border-radius: 10px;
    margin: 1px 10px;
}
body.ops-redesign-body .child-menu-list li a:hover { color: var(--cs-text); background: var(--cs-surface-2); }
body.ops-redesign-body .child-menu-list .active > a,
body.ops-redesign-body .child-menu-list li a.active { color: var(--cs-accent); background: transparent; font-weight: 600; }

/* ── 4. Header / topbar ────────────────────────────────────── */
body.ops-redesign-body .header,
body.ops-redesign-body .header.on-scroll {
    background: color-mix(in srgb, var(--cs-bg) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cs-line);
    box-shadow: none;
}
body.ops-redesign-body .header a { color: var(--cs-text); }
body.ops-redesign-body .ops-quick-link {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    color: var(--cs-soft);
    border-radius: 12px;
}
body.ops-redesign-body .ops-quick-link:hover { background: var(--cs-surface-2); color: var(--cs-text); }
body.ops-redesign-body .ops-topbar-panel {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    box-shadow: none;
    color: var(--cs-text);
}
body.ops-redesign-body .ops-topbar-panel .clock,
body.ops-redesign-body .ops-topbar-panel .nav-link { color: var(--cs-text); }
body.ops-redesign-body .profile-info h6 { color: var(--cs-text); }
body.ops-redesign-body .profile-navigate { color: var(--cs-text); }
body.ops-redesign-body .profile-navigate:hover { background: var(--cs-surface-2); }
body.ops-redesign-body .profile-photo img { border: 1px solid var(--cs-line); }
body.ops-redesign-body .notification_counter { background: var(--cs-accent); color: var(--cs-on-accent); font-weight: 700; }
body.ops-redesign-body #cs-theme-toggle {
    width: 38px; height: 38px; border-radius: 12px;
    border: 1px solid var(--cs-line); background: var(--cs-surface); color: var(--cs-soft);
    display: inline-grid; place-items: center; cursor: pointer; margin-right: 6px;
}
body.ops-redesign-body #cs-theme-toggle:hover { background: var(--cs-surface-2); color: var(--cs-text); }

/* ── 5. Cards and page structure ───────────────────────────── */
body.ops-redesign-body .card,
body.ops-redesign-body .ot-card,
body.ops-redesign-body .ops-card,
body.ops-redesign-body .ops-kpi-card,
body.ops-redesign-body .ops-page-meta-card,
body.ops-redesign-body .ops-table-shell {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-card);
    box-shadow: var(--cs-shadow);
    color: var(--cs-text);
}
body.ops-redesign-body .card-header,
body.ops-redesign-body .ops-card-header {
    background: transparent;
    border-bottom: 1px solid var(--cs-line);
    color: var(--cs-text);
}
body.ops-redesign-body .ops-page-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-left: 0; padding-right: 0;
}
body.ops-redesign-body .ops-page-title { font-size: 26px; }
body.ops-redesign-body .ops-page-kicker { color: var(--cs-primary); letter-spacing: .09em; text-transform: uppercase; font-weight: 600; font-size: 11px; }
body.ops-redesign-body .ops-page-description,
body.ops-redesign-body .ops-section-subtitle,
body.ops-redesign-body .ops-kpi-label,
body.ops-redesign-body .ops-kpi-note { color: var(--cs-muted); }
body.ops-redesign-body .ops-kpi-label { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; }
body.ops-redesign-body .ops-kpi-value { font-family: var(--cs-font-h); letter-spacing: -.03em; color: var(--cs-text); }
body.ops-redesign-body .ops-kpi-card:hover { border-color: var(--cs-line-strong); transform: none; }
/* optional highlight card: add class ops-kpi-card--hero */
body.ops-redesign-body .ops-kpi-card--hero {
    background: linear-gradient(135deg, var(--cs-brand), var(--cs-brand-dark));
    border-color: transparent; color: #fff;
}
body.ops-redesign-body .ops-kpi-card--hero .ops-kpi-label,
body.ops-redesign-body .ops-kpi-card--hero .ops-kpi-note { color: rgba(255, 255, 255, .78); }
body.ops-redesign-body .ops-kpi-card--hero .ops-kpi-value { color: #fff; }
body.ops-redesign-body .breadcrumb { background: transparent; }
body.ops-redesign-body .breadcrumb-item, body.ops-redesign-body .breadcrumb-item a { color: var(--cs-muted); }
body.ops-redesign-body .breadcrumb-item.active { color: var(--cs-text); }
body.ops-redesign-body .breadcrumb-item + .breadcrumb-item::before { color: var(--cs-line-strong); }

/* ── 6. Buttons ────────────────────────────────────────────── */
body.ops-redesign-body .btn { border-radius: var(--cs-r-btn); font-weight: 600; box-shadow: none; }
body.ops-redesign-body .btn-sm { border-radius: var(--cs-r-sm); }
body.ops-redesign-body .btn-primary,
body.ops-redesign-body .btn-gradian,
body.ops-redesign-body .btn-add,
body.ops-redesign-body .ot-btn-primary {
    background: var(--cs-accent) !important;
    background-image: none !important;
    border: 1px solid var(--cs-accent) !important;
    color: var(--cs-on-accent) !important;
}
body.ops-redesign-body .btn-primary:hover,
body.ops-redesign-body .btn-gradian:hover,
body.ops-redesign-body .btn-add:hover { filter: brightness(.94); color: var(--cs-on-accent) !important; }
body.ops-redesign-body .btn-primary i, body.ops-redesign-body .btn-gradian i, body.ops-redesign-body .btn-add i { color: inherit; }
body.ops-redesign-body .btn-outline-primary,
body.ops-redesign-body .btn-outline-secondary,
body.ops-redesign-body .btn-light,
body.ops-redesign-body .btn-secondary,
body.ops-redesign-body .btn-daterange {
    background: transparent;
    color: var(--cs-text);
    border: 1px solid var(--cs-line-strong);
}
body.ops-redesign-body .btn-outline-primary:hover,
body.ops-redesign-body .btn-outline-secondary:hover,
body.ops-redesign-body .btn-light:hover,
body.ops-redesign-body .btn-secondary:hover { background: var(--cs-surface-2); color: var(--cs-text); border-color: var(--cs-line-strong); }
body.ops-redesign-body .btn-danger, body.ops-redesign-body .btn-outline-danger {
    background: transparent; color: var(--cs-err); border: 1px solid var(--cs-err);
}
body.ops-redesign-body .btn-danger:hover, body.ops-redesign-body .btn-outline-danger:hover { background: var(--cs-err-bg); color: var(--cs-err); }
body.ops-redesign-body .btn-success { background: var(--cs-ok-bg); color: var(--cs-ok); border: 1px solid transparent; }
body.ops-redesign-body .btn-link { color: var(--cs-link); }

/* ── 7. Forms ──────────────────────────────────────────────── */
body.ops-redesign-body .form-label,
body.ops-redesign-body label { color: var(--cs-soft); font-weight: 600; font-size: 12.5px; }
body.ops-redesign-body .form-control,
body.ops-redesign-body .ot-form-control,
body.ops-redesign-body .ot-input,
body.ops-redesign-body .form-select,
body.ops-redesign-body textarea,
body.ops-redesign-body .select2-container--default .select2-selection--single,
body.ops-redesign-body .select2-container--default .select2-selection--multiple {
    background-color: var(--cs-low);
    border: 1px solid var(--cs-line);
    color: var(--cs-text);
    border-radius: var(--cs-r-btn);
    box-shadow: none;
}
body.ops-redesign-body .form-control::placeholder, body.ops-redesign-body .ot-input::placeholder { color: var(--cs-muted); opacity: .8; }
body.ops-redesign-body .form-control:focus,
body.ops-redesign-body .ot-form-control:focus,
body.ops-redesign-body .ot-input:focus,
body.ops-redesign-body .form-select:focus,
body.ops-redesign-body textarea:focus {
    background-color: var(--cs-low);
    color: var(--cs-text);
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-primary) 25%, transparent);
}
body.ops-redesign-body .form-control:disabled, body.ops-redesign-body .form-control[readonly] { background-color: var(--cs-surface-2); opacity: .8; }
body.ops-redesign-body .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--cs-text); }
body.ops-redesign-body .select2-dropdown { background: var(--cs-surface); border: 1px solid var(--cs-line-strong); border-radius: 14px; overflow: hidden; color: var(--cs-text); }
body.ops-redesign-body .select2-container--default .select2-results__option--highlighted[aria-selected],
body.ops-redesign-body .select2-container--default .select2-results__option--highlighted { background: var(--cs-primary-bg); color: var(--cs-text); }
body.ops-redesign-body .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--cs-low); border-color: var(--cs-line); color: var(--cs-text); border-radius: 10px; }
body.ops-redesign-body .form-check-input { background-color: var(--cs-low); border-color: var(--cs-line-strong); }
body.ops-redesign-body .form-check-input:checked { background-color: var(--cs-accent); border-color: var(--cs-accent); }
body.ops-redesign-body .form-check-input:checked[type=checkbox] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230B1220' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
body.ops-redesign-body .input-group-text { background: var(--cs-surface-2); border-color: var(--cs-line); color: var(--cs-muted); }
body.ops-redesign-body .text-danger, body.ops-redesign-body .error { color: var(--cs-err) !important; }

/* ── 8. Tables ─────────────────────────────────────────────── */
body.ops-redesign-body .table { color: var(--cs-text); --bs-table-bg: transparent; --bs-table-color: var(--cs-text); --bs-table-border-color: var(--cs-line); --bs-table-striped-bg: transparent; --bs-table-hover-bg: color-mix(in srgb, var(--cs-surface-2) 55%, transparent); }
body.ops-redesign-body .table thead th {
    background: var(--cs-low);
    color: var(--cs-muted);
    font: 600 11px/1.2 var(--cs-font-b);
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--cs-line);
    padding: 12px 16px;
}
body.ops-redesign-body .table tbody td { border-color: var(--cs-line); padding: 13px 16px; vertical-align: middle; color: var(--cs-text); }
body.ops-redesign-body .table tbody tr:hover td { background: color-mix(in srgb, var(--cs-surface-2) 55%, transparent); }
body.ops-redesign-body .table-responsive { border-radius: var(--cs-r-card); }
body.ops-redesign-body .table-toolbar,
body.ops-redesign-body .table-filter-container { background: transparent; border-color: var(--cs-line); }
body.ops-redesign-body .dataTables_wrapper .dataTables_filter input,
body.ops-redesign-body .dataTables_wrapper .dataTables_length select {
    background: var(--cs-low); border: 1px solid var(--cs-line); color: var(--cs-text); border-radius: var(--cs-r-btn);
}
body.ops-redesign-body .dataTables_wrapper .dataTables_info,
body.ops-redesign-body .dataTables_wrapper .dataTables_length,
body.ops-redesign-body .dataTables_wrapper .dataTables_filter { color: var(--cs-muted); }
body.ops-redesign-body .dataTables_wrapper .dataTables_paginate .paginate_button,
body.ops-redesign-body .page-link {
    background: var(--cs-low) !important; border: 1px solid var(--cs-line) !important; color: var(--cs-soft) !important; border-radius: 10px !important;
}
body.ops-redesign-body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.ops-redesign-body .page-item.active .page-link {
    background: var(--cs-accent) !important; border-color: var(--cs-accent) !important; color: var(--cs-on-accent) !important;
}
body.ops-redesign-body .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover { background: var(--cs-surface-2) !important; color: var(--cs-text) !important; }

/* ── 9. Status pills (badges) ──────────────────────────────── */
body.ops-redesign-body .badge,
body.ops-redesign-body .ops-status-badge {
    border-radius: 99px;
    font-weight: 600;
    padding: .32em .8em;
    border: 0;
}
body.ops-redesign-body .badge-success, body.ops-redesign-body .bg-success, body.ops-redesign-body .badge.bg-success { background: var(--cs-ok-bg) !important; color: var(--cs-ok) !important; }
body.ops-redesign-body .badge-danger, body.ops-redesign-body .bg-danger, body.ops-redesign-body .badge.bg-danger { background: var(--cs-err-bg) !important; color: var(--cs-err) !important; }
body.ops-redesign-body .badge-warning, body.ops-redesign-body .bg-warning, body.ops-redesign-body .badge.bg-warning { background: var(--cs-warn-bg) !important; color: var(--cs-warn) !important; }
body.ops-redesign-body .badge-info, body.ops-redesign-body .badge-primary, body.ops-redesign-body .bg-info, body.ops-redesign-body .bg-primary, body.ops-redesign-body .badge.bg-primary { background: var(--cs-info-bg) !important; color: var(--cs-info) !important; }
body.ops-redesign-body .badge-secondary, body.ops-redesign-body .bg-secondary, body.ops-redesign-body .badge.bg-secondary { background: var(--cs-surface-2) !important; color: var(--cs-muted) !important; }

/* ── 10. Modals, dropdowns, alerts, tabs ───────────────────── */
body.ops-redesign-body .modal-content {
    background: var(--cs-surface); border: 1px solid var(--cs-line-strong); border-radius: 20px; color: var(--cs-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
body.ops-redesign-body .modal-header, body.ops-redesign-body .modal-header-image {
    background: transparent !important; background-image: none !important; border-bottom: 1px solid var(--cs-line); color: var(--cs-text);
}
body.ops-redesign-body .modal-header .modal-title, body.ops-redesign-body .modal-header-image .modal-title { color: var(--cs-text) !important; }
body.ops-redesign-body .modal-header .btn-close i, body.ops-redesign-body .modal-header-image .btn-close i { color: var(--cs-muted) !important; }
body.ops-redesign-body .modal-footer { border-top: 1px solid var(--cs-line); }
body.ops-redesign-body .btn-close { filter: none; opacity: .7; }
body.ops-redesign-body.dark-theme .btn-close { filter: invert(1) grayscale(1); }
body.ops-redesign-body .dropdown-menu {
    background: var(--cs-surface); border: 1px solid var(--cs-line-strong); border-radius: 14px; color: var(--cs-text);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
body.ops-redesign-body .dropdown-item { color: var(--cs-soft); border-radius: 8px; }
body.ops-redesign-body .dropdown-item:hover, body.ops-redesign-body .dropdown-item:focus { background: var(--cs-surface-2); color: var(--cs-text); }
body.ops-redesign-body .alert { border-radius: 14px; border: 1px solid transparent; }
body.ops-redesign-body .alert-danger { background: var(--cs-err-bg); color: var(--cs-err); border-color: color-mix(in srgb, var(--cs-err) 35%, transparent); }
body.ops-redesign-body .alert-warning { background: var(--cs-warn-bg); color: var(--cs-warn); border-color: color-mix(in srgb, var(--cs-warn) 35%, transparent); }
body.ops-redesign-body .alert-success { background: var(--cs-ok-bg); color: var(--cs-ok); border-color: color-mix(in srgb, var(--cs-ok) 35%, transparent); }
body.ops-redesign-body .alert-info { background: var(--cs-info-bg); color: var(--cs-info); border-color: color-mix(in srgb, var(--cs-info) 35%, transparent); }
body.ops-redesign-body .nav-pills .nav-link { color: var(--cs-muted); border-radius: 12px; }
body.ops-redesign-body .nav-pills .nav-link.active, body.ops-redesign-body .nav-pills .show > .nav-link { background: var(--cs-surface-2); color: var(--cs-text); }
body.ops-redesign-body .nav-pills .nav-link.active.tab-pills { background: var(--cs-primary-bg); color: var(--cs-text); box-shadow: inset 0 0 0 1px var(--cs-accent); }
body.ops-redesign-body .nav-tabs { border-color: var(--cs-line); }
body.ops-redesign-body .nav-tabs .nav-link { color: var(--cs-muted); border-color: transparent; }
body.ops-redesign-body .nav-tabs .nav-link.active { background: transparent; color: var(--cs-text); border-color: transparent transparent var(--cs-accent); }
body.ops-redesign-body .progress { background: var(--cs-surface-2); border-radius: 99px; }
body.ops-redesign-body .progress-bar { background: var(--cs-accent); color: var(--cs-on-accent); }
body.ops-redesign-body #toast-container > div { border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
body.ops-redesign-body .card-footer { background: transparent; border-top: 1px solid var(--cs-line); }
body.ops-redesign-body .card-header.bg-light, body.ops-redesign-body .bg-light { background: var(--cs-low) !important; color: var(--cs-text); }
body.ops-redesign-body .bg-white { background: var(--cs-surface) !important; }
body.ops-redesign-body .text-dark { color: var(--cs-text) !important; }

@media (prefers-reduced-motion: reduce) { body.ops-redesign-body * { transition: none !important; animation: none !important; } }

/* ── 11. Login / auth pages (frontend/auth/app.blade.php) ──── */
body.ops-redesign-body.auth-skin { overflow-x: hidden; }
body.auth-skin .auth-page {
    height: auto; min-height: 100vh;
    display: grid; grid-template-columns: 1.05fr 1fr;
    background: var(--cs-bg);
}
body.auth-skin .auth-art {
    background: linear-gradient(160deg, var(--cs-brand), #031b30);
    color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
}
body.auth-skin .auth-art-brand { display: flex; align-items: center; gap: 12px; font: 700 16px var(--cs-font-h); }
body.auth-skin .auth-art-logo { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font: 700 17px var(--cs-font-h); }
body.auth-skin .auth-art h2 { font: 700 38px/1.1 var(--cs-font-h); color: #fff; max-width: 440px; letter-spacing: -.03em; margin: 0 0 14px; }
body.auth-skin .auth-art p { color: rgba(255, 255, 255, .8); max-width: 420px; margin: 0; }
body.auth-skin .auth-art small { color: rgba(255, 255, 255, .6); }
body.auth-skin .auth-container { margin: auto; max-width: 520px; width: 100%; padding: 32px 24px; font-family: var(--cs-font-b); }
body.auth-skin .auth-container .form-wrapper {
    background: transparent !important; box-shadow: none; border: 0;
    padding: 0 !important;
}
body.auth-skin .auth-container .form-wrapper .form-container,
body.auth-skin .auth-container .form-wrapper .auth-form { width: 100%; max-width: 400px; }
body.auth-skin .auth-container .form-wrapper .form-logo { background: #fff; padding: 10px 16px; border-radius: 14px; display: inline-block; }
body.auth-skin .auth-container .form-wrapper .form-logo img { max-width: 140px; }
body.auth-skin .auth-container .form-wrapper .form-heading .title { font-family: var(--cs-font-h); font-size: 28px; line-height: 1.15; color: var(--cs-text); letter-spacing: -.02em; }
body.auth-skin .auth-container .form-wrapper .form-heading .subtitle { color: var(--cs-muted); }
body.auth-skin .auth-container .form-wrapper .auth-form label { color: var(--cs-soft); font-size: 13px; font-weight: 600; }
body.auth-skin .auth-container .form-wrapper .auth-form input[type="text"],
body.auth-skin .auth-container .form-wrapper .auth-form input[type="password"],
body.auth-skin .auth-container .form-wrapper .auth-form input[type="date"],
body.auth-skin .auth-container .form-wrapper .auth-form input[type="email"],
body.auth-skin .auth-container .form-wrapper .auth-form select {
    background: var(--cs-low); border: 1px solid var(--cs-line); border-radius: var(--cs-r-btn); color: var(--cs-text); padding: 14px 16px;
}
body.auth-skin .auth-container .form-wrapper .auth-form input::placeholder { color: var(--cs-muted); }
body.auth-skin .auth-container .form-wrapper .auth-form input:focus-visible {
    border-color: var(--cs-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-primary) 25%, transparent); outline: none;
}
body.auth-skin .auth-container .form-wrapper .auth-form .custom-input-field i { color: var(--cs-muted); }
body.auth-skin .auth-container .form-wrapper .auth-form .submit-btn {
    background: var(--cs-accent); background-image: none; color: var(--cs-on-accent);
    border: 0; border-radius: var(--cs-r-btn); font-weight: 700; padding-top: 14px; padding-bottom: 14px;
}
body.auth-skin .auth-container .form-wrapper .auth-form .submit-btn:hover { background: var(--cs-accent); filter: brightness(.94); }
body.auth-skin .fogotPassword, body.auth-skin .auth-container a { color: var(--cs-link); }
body.auth-skin .auth-container .authenticate-now { color: var(--cs-muted); }
body.auth-skin .auth-container small a { color: var(--cs-muted); }
@media (max-width: 992px) {
    body.auth-skin .auth-page { grid-template-columns: 1fr; }
    body.auth-skin .auth-art { display: none; }
}


/* ── 12. Safety net for hard-coded light colours in older views ─
   Inline styles and <style> blocks written for the old light theme.
   Mapped to the theme tokens so no page shows white boxes or invisible
   dark text on the dark theme. QR containers are excluded (they must stay white). */
/* exact white values only (a plain "#fff" substring would also hit #fffbeb, #fff7ed ...) */
body.ops-redesign-body [style*="background:#fff;"]:not([class*="qr"]),
body.ops-redesign-body [style*="background: #fff;"]:not([class*="qr"]),
body.ops-redesign-body [style*="background:#ffffff"]:not([class*="qr"]),
body.ops-redesign-body [style*="background: #ffffff"]:not([class*="qr"]),
body.ops-redesign-body [style*="background-color:#fff;"]:not([class*="qr"]),
body.ops-redesign-body [style*="background-color: #fff;"]:not([class*="qr"]),
body.ops-redesign-body [style*="background-color:#ffffff"]:not([class*="qr"]),
body.ops-redesign-body [style*="background-color: #ffffff"]:not([class*="qr"]),
body.ops-redesign-body [style*="background: white"]:not([class*="qr"]),
body.ops-redesign-body [style*="background:#fff!"]:not([class*="qr"]),
body.ops-redesign-body [style*="background: #fff !"]:not([class*="qr"]),
body.ops-redesign-body [style$="background:#fff"]:not([class*="qr"]),
body.ops-redesign-body [style$="background: #fff"]:not([class*="qr"]),
body.ops-redesign-body [style*="#f9fafb"],
body.ops-redesign-body [style*="#f1f5f9"] {
    background: var(--cs-surface) !important;
    color: var(--cs-text);
}
body.ops-redesign-body [style*="#f8fafc"],
body.ops-redesign-body [style*="#f4f5f8"],
body.ops-redesign-body [style*="#f3f4f6"],
body.ops-redesign-body [style*="#eceff4"] {
    background: var(--cs-low) !important;
}
/* slate greys written for white backgrounds */
body.ops-redesign-body [style*="color: #475569"], body.ops-redesign-body [style*="color:#475569"],
body.ops-redesign-body [style*="color: #94a3b8"], body.ops-redesign-body [style*="color:#94a3b8"],
body.ops-redesign-body [style*="color: #cbd5e1"], body.ops-redesign-body [style*="color:#cbd5e1"],
body.ops-redesign-body [style*="color: #64748b"], body.ops-redesign-body [style*="color:#64748b"] {
    color: var(--cs-muted) !important;
}
body.ops-redesign-body [style*="color: #1e293b"], body.ops-redesign-body [style*="color:#1e293b"],
body.ops-redesign-body [style*="color: #0f172a"], body.ops-redesign-body [style*="color:#0f172a"],
body.ops-redesign-body [style*="color: #1f2937"], body.ops-redesign-body [style*="color:#1f2937"],
body.ops-redesign-body [style*="color: #111827"], body.ops-redesign-body [style*="color:#111827"],
body.ops-redesign-body [style*="color: #334155"], body.ops-redesign-body [style*="color:#334155"],
body.ops-redesign-body [style*="color: #212529"], body.ops-redesign-body [style*="color:#212529"] {
    color: var(--cs-text) !important;
}
/* <style>-block classes in individual pages */
body.ops-redesign-body .unseen { background-color: var(--cs-primary-bg) !important; }
body.ops-redesign-body .site-address-result,
body.ops-redesign-body .site-geofence-item { background: var(--cs-low); border-color: var(--cs-line); color: var(--cs-text); }
body.ops-redesign-body .site-geofence-item.is-active { border-color: var(--cs-primary); }
body.ops-redesign-body #topbar-notification-dropdown .topbar-notification-clear { color: var(--cs-link); }
body.ops-redesign-body #topbar-notification-dropdown .topbar-notification-clear:hover { color: var(--cs-text); }


/* ── 13. Logo plate, contextual table rows, own pages ──────── */
/* the stored logo is dark: show it on a light plate so it reads on the dark sidebar */
body.ops-redesign-body.dark-theme .sidebar-logo a.sidebar_logo,
body.ops-redesign-body.dark-theme .sidebar-logo .img-tag {
    background: #fff; border-radius: 12px; padding: 6px 12px; display: inline-flex; align-items: center;
}
body.ops-redesign-body.dark-theme .sidebar-logo .half-logo { background: #fff; border-radius: 10px; padding: 3px; }
/* bootstrap contextual rows (light tints by default) */
body.ops-redesign-body .table .table-primary, body.ops-redesign-body .table-primary > td { --bs-table-bg: var(--cs-primary-bg); background-color: var(--cs-primary-bg) !important; color: var(--cs-text); }
body.ops-redesign-body .table .table-success, body.ops-redesign-body .table-success > td { background-color: var(--cs-ok-bg) !important; color: var(--cs-text); }
body.ops-redesign-body .table .table-warning, body.ops-redesign-body .table-warning > td { background-color: var(--cs-warn-bg) !important; color: var(--cs-text); }
body.ops-redesign-body .table .table-danger, body.ops-redesign-body .table-danger > td { background-color: var(--cs-err-bg) !important; color: var(--cs-text); }
body.ops-redesign-body .table .table-info, body.ops-redesign-body .table-info > td { background-color: var(--cs-info-bg) !important; color: var(--cs-text); }
body.ops-redesign-body .table .table-light, body.ops-redesign-body .table-light > td { background-color: var(--cs-low) !important; color: var(--cs-text); }
body.ops-redesign-body .btn.disabled, body.ops-redesign-body .btn:disabled { opacity: .5; }
body.ops-redesign-body .list-group-item { background: var(--cs-surface); border-color: var(--cs-line); color: var(--cs-text); }
body.ops-redesign-body .accordion-item { background: var(--cs-surface); border-color: var(--cs-line); color: var(--cs-text); }
body.ops-redesign-body .accordion-button { background: var(--cs-surface); color: var(--cs-text); }
body.ops-redesign-body .accordion-button:not(.collapsed) { background: var(--cs-surface-2); color: var(--cs-text); }
body.ops-redesign-body .offcanvas, body.ops-redesign-body .popover { background: var(--cs-surface); color: var(--cs-text); border-color: var(--cs-line-strong); }
body.ops-redesign-body .tooltip-inner { background: var(--cs-surface-2); color: var(--cs-text); }
/* date range / jQuery UI pickers */
body.ops-redesign-body .daterangepicker, body.ops-redesign-body .ui-datepicker { background: var(--cs-surface); border: 1px solid var(--cs-line-strong); color: var(--cs-text); border-radius: 14px; }
body.ops-redesign-body .daterangepicker td.available:hover, body.ops-redesign-body .daterangepicker td.in-range { background: var(--cs-primary-bg); color: var(--cs-text); }
body.ops-redesign-body .daterangepicker td.active, body.ops-redesign-body .daterangepicker td.active:hover { background: var(--cs-accent); color: var(--cs-on-accent); }
body.ops-redesign-body .daterangepicker .calendar-table { background: transparent; border-color: var(--cs-line); }
body.ops-redesign-body .daterangepicker td.off, body.ops-redesign-body .daterangepicker td.off.in-range { background: transparent; color: var(--cs-line-strong); }
/* SweetAlert */
body.ops-redesign-body .swal2-popup { background: var(--cs-surface); color: var(--cs-text); border-radius: 20px; }
body.ops-redesign-body .swal2-title, body.ops-redesign-body .swal2-html-container { color: var(--cs-text); }

/* legacy script hides .dark_logo in dark mode (and the light logo is commented out): keep it visible on its plate */
body.ops-redesign-body.dark-theme .sidebar .dark_logo.d-none,
body.ops-redesign-body.dark-theme .sidebar .full-logo.d-none { display: inline-block !important; }

/* live tracking page: its <style> block is written for the light theme */
body.ops-redesign-body .tracking-summary { background: var(--cs-surface) !important; border-color: var(--cs-line) !important; }
body.ops-redesign-body .tracking-badge,
body.ops-redesign-body .tracking-panel-card { background: var(--cs-surface) !important; border-color: var(--cs-line) !important; color: var(--cs-text); box-shadow: var(--cs-shadow); }
body.ops-redesign-body .tracking-staff-item,
body.ops-redesign-body .tracking-auto-item,
body.ops-redesign-body .tracking-timeline-group { border-bottom-color: var(--cs-line) !important; }
body.ops-redesign-body .tracking-timeline { border-left-color: var(--cs-line) !important; }
body.ops-redesign-body .tracking-timeline-event::before { border-color: var(--cs-surface) !important; box-shadow: 0 0 0 2px var(--cs-line) !important; }
body.ops-redesign-body .tracking-list-empty { color: var(--cs-muted) !important; }
body.ops-redesign-body .leaflet-container { border: 1px solid var(--cs-line); border-radius: 16px; }
body.ops-redesign-body .leaflet-popup-content-wrapper, body.ops-redesign-body .leaflet-popup-tip { background: var(--cs-surface); color: var(--cs-text); }

/* "success" buttons (exports) use the same lime as the primary action */
body.ops-redesign-body .btn-success, body.ops-redesign-body .btn-success:hover, body.ops-redesign-body .btn-success:focus {
    background: var(--cs-accent) !important; border-color: var(--cs-accent) !important; color: var(--cs-on-accent) !important;
}

/* Leaflet maps sit on light tiles: keep their controls dark-on-white in every theme */
.leaflet-container a,
.leaflet-bar a,
.leaflet-bar a span,
.leaflet-control-zoom a,
.leaflet-control-attribution,
.leaflet-control-attribution a { color: #0b1220 !important; }
.leaflet-control-attribution a { text-decoration: underline; }
.leaflet-bar a:hover { background-color: #e2e8f0 !important; }

/* ── Typography: one family per role (design = Inter body, Sora headings) ──
   style2.css hard-codes "Lexend"/"Poppins" in ~150 legacy rules; override them all at once,
   leaving icon fonts (Line Awesome / Font Awesome) untouched. */
body.ops-redesign-body :not(i):not([class*="la-"]):not([class*="fa-"]):not(.las):not(.lar):not(.lab):not(.fas):not(.far):not(.fab):not(.fa):not(.la):not(.select2-selection__arrow) {
    font-family: var(--cs-font-b);
}
body.ops-redesign-body h1, body.ops-redesign-body h2, body.ops-redesign-body h3,
body.ops-redesign-body h4, body.ops-redesign-body h5, body.ops-redesign-body h6,
body.ops-redesign-body .ops-page-title, body.ops-redesign-body .modal-title,
body.ops-redesign-body .ops-card-title, body.ops-redesign-body .card-title,
body.ops-redesign-body .ops-kpi-value, body.ops-redesign-body .ops-section-title,
body.ops-redesign-body .title:not(i), body.ops-redesign-body .profile-info h6 {
    font-family: var(--cs-font-h);
}

/* ── Element sweep (page-by-page audit) ─────────────────────── */

/* Pastel inline cell colours (weekly timesheet etc.): tinted dark equivalents, text recoloured to match */
body.ops-redesign-body.dark-theme [style*="#fef9c3"],
body.ops-redesign-body.dark-theme [style*="#fffbeb"] { background-color: rgba(245,158,11,.16) !important; color: #fbbf24 !important; border-color: var(--cs-line) !important; }
body.ops-redesign-body.dark-theme [style*="#f0f9ff"],
body.ops-redesign-body.dark-theme [style*="#eff6ff"] { background-color: rgba(59,155,232,.16) !important; color: #7cc0f5 !important; }
body.ops-redesign-body.dark-theme [style*="#faf5ff"] { background-color: rgba(167,139,250,.16) !important; color: #c4b5fd !important; }
body.ops-redesign-body.dark-theme [style*="#f0fdf4"] { background-color: rgba(198,244,50,.12) !important; color: var(--cs-accent) !important; }

/* Bootstrap contextual badges -> design status pills */
body.ops-redesign-body .badge.text-bg-primary   { background: rgba(59,155,232,.18) !important; color: #7cc0f5 !important; }
body.ops-redesign-body .badge.text-bg-success   { background: var(--cs-ok-bg) !important;   color: var(--cs-ok) !important; }
body.ops-redesign-body .badge.text-bg-danger    { background: var(--cs-err-bg) !important;  color: var(--cs-err) !important; }
body.ops-redesign-body .badge.text-bg-warning   { background: var(--cs-warn-bg) !important; color: var(--cs-warn) !important; }
body.ops-redesign-body .badge.text-bg-info      { background: var(--cs-info-bg) !important; color: var(--cs-info) !important; }
body.ops-redesign-body .badge.text-bg-secondary,
body.ops-redesign-body .badge.text-bg-light,
body.ops-redesign-body .badge.text-bg-dark      { background: var(--cs-low) !important; color: var(--cs-muted) !important; border: 1px solid var(--cs-line); }

/* Neutral dark buttons and legacy grey "designation" toggle */
body.ops-redesign-body .btn-dark { background: var(--cs-low) !important; border-color: var(--cs-line) !important; color: var(--cs-text) !important; }
body.ops-redesign-body .btn-outline-dark { color: var(--cs-text) !important; border-color: var(--cs-line) !important; }
body.ops-redesign-body .btn-outline-warning { color: var(--cs-warn) !important; border-color: var(--cs-warn) !important; }
body.ops-redesign-body .btn-designation { border: 1px solid var(--cs-line); }
body.ops-redesign-body .btn-designation[style*="#6b6b6b"],
body.ops-redesign-body .btn-designation.active,
body.ops-redesign-body .btn-designation.btn-active { background: rgba(59,155,232,.18) !important; color: #7cc0f5 !important; border-color: var(--cs-primary) !important; }

/* Header bell: neutral tile instead of the old lavender tint */
body.ops-redesign-body .noti-color { background: var(--cs-low) !important; border: 1px solid var(--cs-line); }

/* One radius for buttons */
body.ops-redesign-body .btn-add, body.ops-redesign-body .btn-dropdown, body.ops-redesign-body .btn-export,
body.ops-redesign-body .btn-designation { border-radius: 14px !important; }
body.ops-redesign-body label.form-check { background: var(--cs-low) !important; border: 1px solid var(--cs-line); border-radius: 10px; color: var(--cs-text); }

/* Checked boxes sit on the lime accent: dark tick instead of white */
body.ops-redesign-body .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230B1220' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
body.ops-redesign-body .form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%230B1220'/%3e%3c/svg%3e");
}
body.ops-redesign-body .alert-info { background: var(--cs-info-bg) !important; color: var(--cs-info) !important; border-color: transparent !important; }

/* style2.css forces Lexend with !important on headings/strong/span: win it back (same weight, higher specificity) */
body.ops-redesign-body span:not([class*="la-"]):not([class*="fa-"]):not(.las):not(.lar):not(.fas):not(.far):not(.fab):not(.lab),
body.ops-redesign-body strong,
body.ops-redesign-body .select2-selection__rendered { font-family: var(--cs-font-b) !important; }
body.ops-redesign-body h1, body.ops-redesign-body h2, body.ops-redesign-body h3,
body.ops-redesign-body h4, body.ops-redesign-body h5, body.ops-redesign-body h6,
body.ops-redesign-body .ops-page-title, body.ops-redesign-body .ops-kpi-value,
body.ops-redesign-body .modal-title, body.ops-redesign-body .ops-card-title { font-family: var(--cs-font-h) !important; }

/* Filter dropdown buttons (Department / Designation / ...): outline style, not a grey fill */
body.ops-redesign-body .btn-designation { background: transparent !important; color: var(--cs-text) !important; border: 1px solid var(--cs-line) !important; }
body.ops-redesign-body .btn-designation:hover,
body.ops-redesign-body .btn-designation.show { background: rgba(59,155,232,.16) !important; border-color: var(--cs-primary) !important; color: #7cc0f5 !important; }
body.ops-redesign-body .btn-designation .icon { color: var(--cs-primary) !important; }

/* ── Final sweep ───────────────────────────────────────────── */
/* all buttons share the design radius (14px), including legacy pill/10px variants */
body.ops-redesign-body .btn-add, body.ops-redesign-body .btn-dropdown, body.ops-redesign-body .btn-export,
body.ops-redesign-body .btn-designation, body.ops-redesign-body .ops-btn-primary { border-radius: 14px !important; }

/* white card on the Breaks QR pages */
body.ops-redesign-body .white-bg { background: var(--cs-surface) !important; border: 1px solid var(--cs-line); border-radius: 18px; color: var(--cs-text); }

/* one more timesheet pastel + select2 box that carries an inline light background */
body.ops-redesign-body.dark-theme [style*="#fef08a"] { background-color: rgba(245,158,11,.16) !important; color: #fbbf24 !important; }
body.ops-redesign-body .select2-container .select2-selection { background: var(--cs-low) !important; border-color: var(--cs-line) !important; }

/* date range picker (leave request etc.) */
body.ops-redesign-body .daterangepicker .cancelBtn { background: transparent !important; color: var(--cs-text) !important; border: 1px solid var(--cs-line) !important; }
body.ops-redesign-body .daterangepicker td.off, body.ops-redesign-body .daterangepicker td.weekend.off,
body.ops-redesign-body .daterangepicker td.off.available { color: #6B7A93 !important; }
