﻿/* ==========================================================================
   HRMO PORTAL - CONSOLIDATED OVERRIDES (v2)
   Loads AFTER /assets/celestia/css/vertical-layout-light/style.css

   Rules for this file
   1. Colours, radii, shadows and spacing come from the tokens in section 1.
      Never hard-code a hex value in a component; add a token instead.
   2. ONE accent (--brand). Status colours (ok / warn / bad / info) are
      reserved for status and never used as decoration.
   3. Celestia sets many rules with !important. Where we have to beat one,
      we either use the #sidebar id or repeat !important and say why.
   4. Old class names are kept so existing pages keep working.

   1  Tokens                    9  Page header + empty state
   2  Base + typography        10  Navbar + notifications
   3  Forms                    11  Sidebar
   4  Buttons + links          12  Modals
   5  Cards                    13  Floating action + utilities
   6  Badges                   14  Loading panel
   7  Tables + grids           15  Timeline variables
   8  Tabs + pills             16  Print
                               17  Dashboard
                               18  PDS forms
                               19  Telerik inputs
                               20  Leave forms
                               21  My leave applications
                               22  Service record
                               23  Payslip
                               24  Other income
                               25  Deductions
                               26  Department information
                               27  My IPCR / performance monitoring
                               28  View and submit IPCR
                               29  Individual development plan
                               30  Request to unlock IPCR
                               31  Job-order evaluation monitoring
                               32  Update PRC license validity
                               33  PRC monitoring
                               34  My medical certificates
                               35  HR basics
                               36  HRMO bulletin
                               37  Demo videos
                               38  Downloadable forms
                               39  About SPMC
                               40  HRMO events
                               41  Print PDS
                               42  Job-order Annex A1 monitoring
                               43  Verify online Annex A1 uploads
                               44  Job-order leave management
                               45  Tardiness and attendance control
                               46  PRC monitoring (HR records)
                               47  PRC verify online upload (HR records)
                               48  Medical certificate dashboard (HR records)
                               49  Leave applications for approval
                               50  Job-order leave approvals
                               51  Staff leave credits monitoring
                               52  My JO leave applications
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* ---- Brand: the only accent. Everything interactive reads from here. ----
       To switch the whole portal to cerulean, replace these 7 lines with:
       --brand-rgb: 2, 132, 199;  --brand: #0284c7;  --brand-hover: #0369a1;
       --brand-soft: #f0f9ff;  --brand-tint: #e0f2fe;  --brand-border: #bae6fd;
       --brand-on-dark: #38bdf8;                                              */
    --brand-rgb: 99, 6, 181;
    --brand: #6306b5;
    --brand-hover: #4a0e78;
    --brand-soft: #faf5ff;
    --brand-tint: #f3e8ff;
    --brand-border: #e9d5ff;
    --brand-on-dark: #c4b5fd; /* accent on the navy sidebar */
    --brand-on-dark-rgb: 196, 181, 253;
    /* ---- Sidebar (navy surface) ---- */
    --nav-text: rgba(255, 255, 255, 0.74);
    --nav-text-muted: rgba(255, 255, 255, 0.46);
    --nav-icon: rgba(255, 255, 255, 0.56);
    --nav-line: rgba(255, 255, 255, 0.12);
    --nav-hover-bg: rgba(255, 255, 255, 0.07);
    --nav-active-bg: rgba(var(--brand-on-dark-rgb), 0.16);
    /* ---- Page-header hero (navy into deep violet, with a soft glow top right).
          The one place a gradient is used; page headers only. ---- */
    --grad-hero: radial-gradient(120% 160% at 100% 0%, rgba(var(--brand-on-dark-rgb), 0.28) 0%, transparent 55%), linear-gradient(120deg, var(--nav-bg) 0%, var(--brand-hover) 100%);
    --on-hero: #fff;
    --on-hero-muted: rgba(255, 255, 255, 0.78);
    --hero-glass: rgba(255, 255, 255, 0.14);
    --hero-glass-border: rgba(255, 255, 255, 0.24);
    --ring: 0 0 0 3px rgba(var(--brand-rgb), 0.18);
    /* ---- Neutral slate ---- */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    /* ---- Status: text / background / border ---- */
    --ok: #15803d;
    --ok-bg: #dcfce7;
    --ok-border: #bbf7d0;
    --ok-hover: #166534; /* solid approve button, hover */
    --bad-hover: #991b1b; /* solid reject button, hover */
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --warn-border: #fde68a;
    --bad: #b91c1c;
    --bad-bg: #fee2e2;
    --bad-border: #fecaca;
    --info: #0369a1;
    --info-bg: #e0f2fe;
    --info-border: #bae6fd;
    /* ---- Action buttons: brighter than the status colours so they read as buttons ---- */
    --action-view: #0284c7;
    --action-edit: #d97706;
    --action-delete: #dc2626;
    /* ---- Shape + depth: radius follows role, not one size for everything ---- */
    --r-sm: 6px; /* badges, small buttons */
    --r-md: 8px; /* inputs, buttons */
    --r-lg: 12px; /* cards */
    --r-xl: 16px; /* modals */
    --r-pill: 999px;
    /* ---- Typography ----
       Family: Inter if installed/hosted, else Roboto (self-hosted by Celestia),
       else the OS UI font. To make Inter the real font, add Inter woff2 files
       under /assets/fonts/Inter and an @font-face for it; nothing else changes. */
    --font-sans: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    /* Type scale (rem; 1rem = 16px). Body copy never goes below --fs-sm. */
    --fs-xs: 0.75rem; /* 12px  badges, table headers, captions */
    --fs-sm: 0.8125rem; /* 13px  field labels, helper text */
    --fs-base: 0.9375rem; /* 15px on phones, 14px from 768px up (see below) */
    --fs-ui: 0.875rem; /* 14px  menus, sub-menus, dropdown items */
    --fs-md: 1rem; /* 16px  inputs on phones, card titles */
    --fs-lg: 1.125rem; /* 18px  section headings */
    --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* page title */
    --fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem); /* dashboard figures */
    --lh-tight: 1.25;
    --lh-body: 1.55;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --tap-min: 44px; /* minimum touch target on phones */
    --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-2: 0 6px 16px -4px rgba(15, 23, 42, 0.10);
    --shadow-3: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
    /* ---- Layout ---- */
    --page-bg: #f4f7f9;
    --nav-bg: #141b2d;
    --navbar-h: 64px;
    --sidebar-w: 260px;
    --sidebar-w-mini: 70px;
    --gutter: 2.5rem; /* side margin of page content */
    /* ---- Legacy aliases: style.css and old pages still reference these.
          Use --brand-* in new code. ---- */
    --page-primary: var(--brand);
    --page-primary-dark: var(--brand-hover);
    --page-primary-soft: var(--brand-soft);
    --page-primary-tint: var(--brand-tint);
    --page-primary-border: var(--brand-border);
    --page-teal: #0d9488;
    --page-teal-soft: #f0fdfa;
    --page-teal-tint: #ccfbf1;
    --violet-deep: var(--brand-hover);
    --violet-primary: var(--brand);
    --violet-vibrant: #7c3aed;
    --violet-light: #a855f7;
    --violet-soft: var(--brand-soft);
    --violet-tint: var(--brand-tint);
    --violet-border: var(--brand-border);
    /* ---- DTR timeline markers (kept vivid on purpose) ---- */
    --dtr-default: #64748b;
    --dtr-default-bg: #f1f5f9;
    --dtr-submitted: #0284c7;
    --dtr-submitted-bg: #e0f2fe;
    --dtr-approved: #16a34a;
    --dtr-approved-bg: #dcfce7;
    --dtr-approved-text: #166534;
    --dtr-rejected: #dc2626;
    --dtr-rejected-bg: #fee2e2;
    --dtr-rejected-text: #991b1b;
    --dtr-returned: #d97706;
    --dtr-returned-bg: #fef3c7;
    --dtr-returned-text: #92400e;
}

/* Desktop and tablet: a denser scale (13px base) for tables, lists and menus.
   Phones keep the larger sizes set in :root above (15px base, 16px inputs)
   because they are held further away and touched, not pointed at. */
@media (min-width: 768px) {
    :root {
        --fs-xs: 0.6875rem; /* 11px */
        --fs-sm: 0.75rem; /* 12px */
        --fs-ui: 0.8125rem; /* 13px */
        --fs-base: 0.8125rem; /* 13px */
        --fs-md: 0.9375rem; /* 15px */
        --fs-lg: 1rem; /* 16px */
        --fs-xl: 1.25rem; /* 20px page title (phones keep the fluid clamp) */
        --fs-2xl: 1.5rem; /* 24px */
    }
}


/* ==========================================================================
   2. BASE + TYPOGRAPHY
   ========================================================================== */
/* !important on font-family/size: Celestia's style.css sets both on body with
   !important (Roboto, 15px) and loads before this file. */
html {
    -webkit-text-size-adjust: 100%; /* stop iOS inflating text on rotate */
    text-size-adjust: 100%;
}

body {
    background-color: var(--page-bg) !important;
    color: var(--slate-800) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    font-feature-settings: "cv11", "ss01"; /* Inter: single-storey a, open digits; ignored by Roboto */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Numbers in tables, counters and stat tiles line up in columns */
table,
.badge,
.app-tab-badge,
.pg-pager__count {
    font-variant-numeric: tabular-nums;
}

/* Headings: sentence case, tight leading, a real hierarchy.
   Celestia's sizes (and line-height:1) made h4-h6 almost the same as body. */
h1, .h1 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -0.015em; }
h2, .h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
h3, .h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
h4, .h4 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
h5, .h5 { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
h6, .h6 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

small, .small {
    font-size: var(--fs-sm);
}

code, kbd, pre {
    font-family: var(--font-mono);
}

/* Long unbroken strings (emails, file names) must not widen the page on phones */
.card, .modal-body, .table td {
    overflow-wrap: break-word;
}

.content-wrapper {
    background-color: var(--page-bg);
}

/* Celestia sets line-height:1 on headings (multi-line titles collide)
   and 12px / 1.3rem on every paragraph. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: 1.25;
}

p {
    margin-bottom: 0.75rem;
    font-size: var(--fs-base);
    line-height: var(--lh-body);
}

/* Celestia turns every <label> into a 12px bold grey caption, which makes
   forms hard to read. Field labels: 13px semibold. Option labels (checkbox /
   radio text) are values, not captions: regular weight, darker. */
label {
    color: var(--slate-700) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0;
}

.form-check .form-check-label,
.form-check-label,
.custom-control-label {
    color: var(--slate-800) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-regular) !important;
}

/* .text-secondary is Bootstrap's "muted text" utility; Celestia hijacked it. */
.text-secondary {
    color: var(--slate-500) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit;
}

td label,
.radiobtn label {
    margin-left: 5px;
    margin-bottom: 0;
}

.form-check label {
    margin-left: 10px;
}

/* Keyboard focus: Celestia removes every outline ("button:focus { outline:
   none !important }"). !important is required to bring a visible ring back. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand) !important;
    outline-offset: 2px;
}

/* Celestia hides the real checkbox/radio and draws a helper; ring the helper. */
.form-check .form-check-label input:focus-visible + .input-helper:before {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}


/* Phones. 16px inputs stop iOS Safari zooming the page on focus; 44px targets
   follow WCAG 2.5.5 / Apple HIG. Desktop sizes are untouched. */
@media (max-width: 767.98px) {
    .form-control,
    select.form-control,
    textarea.form-control,
    .input-group-text {
        min-height: var(--tap-min);
        font-size: var(--fs-md);
    }

    textarea.form-control {
        min-height: 5rem;
    }

    .btn,
    .pg-btn,
    .toggle-pill {
        min-height: var(--tap-min);
    }

    .btn.btn-sm {
        min-height: 2.25rem;
    }

    .form-check .form-check-label,
    .form-check-label,
    .custom-control-label {
        font-size: var(--fs-md) !important; /* beats the !important rule above */
    }

    .table th,
    .table td {
        padding: 0.625rem 0.75rem;
    }

    .card .card-body {
        padding: 1rem;
    }
}


/* ==========================================================================
   3. FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    min-height: 2.5rem;
    padding: 0.5625rem 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--r-md);
    background-color: #fff;
    color: var(--slate-800);
    font-size: var(--fs-base);
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control::placeholder {
        color: var(--slate-500);
        opacity: 1;
    }

    .form-control:hover:not(:disabled):not([readonly]) {
        border-color: var(--slate-400);
    }

    .form-control:focus,
    textarea.form-control:focus,
    select.form-control:focus {
        border-color: var(--brand) !important;
        box-shadow: var(--ring) !important;
        outline: 0;
    }

    .form-control:disabled,
    .form-control[readonly] {
        background-color: var(--slate-100);
        color: var(--slate-500);
    }

textarea.form-control {
    min-height: 5rem;
    line-height: 1.5;
    resize: vertical;
}

/* Celestia draws selects with border:0 + a faint outline, so they look
   different from text inputs. Make them the same, with one chevron. */
select.form-control:not([multiple]):not([size]) {
    padding-right: 2.25rem;
    border: 1px solid var(--slate-300);
    outline: 0;
    color: var(--slate-800);
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 1rem;
}

.form-control.is-invalid {
    border-color: var(--bad);
}

.invalid-feedback {
    color: var(--bad);
    font-size: 0.8125rem;
}

.input-group-text {
    border-color: var(--slate-300);
    border-radius: var(--r-md);
    background: var(--slate-50);
    color: var(--slate-600);
}

/* Checkbox + radio (Celestia .input-helper): blue -> brand */
.form-check .form-check-label input[type="checkbox"] + .input-helper:before,
.form-check .form-check-label input[type="radio"] + .input-helper:before {
    border-color: var(--slate-400);
}

.form-check .form-check-label input[type="checkbox"]:checked + .input-helper:before,
.form-check .form-check-label input[type="radio"]:checked + .input-helper:before {
    background: var(--brand);
    border-width: 0;
}


/* ==========================================================================
   4. BUTTONS + LINKS
   ========================================================================== */
a {
    color: var(--brand);
}

    a:hover {
        color: var(--brand-hover);
    }

.text-primary {
    color: var(--brand) !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: var(--brand-hover) !important;
}

.bg-primary {
    background-color: var(--brand) !important;
}

.border-primary {
    border-color: var(--brand) !important;
}

.btn-link {
    color: var(--brand);
}

    .btn-link:hover {
        color: var(--brand-hover);
    }

/* Celestia buttons are 14px/24px with 3px corners and line-height:1. */
.btn {
    padding: 0.5625rem 1rem;
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

    .btn.btn-sm,
    .btn-group-sm > .btn {
        padding: 0.375rem 0.75rem;
        border-radius: var(--r-sm);
        font-size: var(--fs-sm);
    }

    .btn.btn-lg,
    .btn-group-lg > .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn i {
        vertical-align: -0.125em;
    }

/* Primary */
.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

    .btn-primary:hover {
        background-color: var(--brand-hover);
        border-color: var(--brand-hover);
        color: #fff;
    }

    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        background-color: var(--brand-hover);
        border-color: var(--brand-hover);
        color: #fff;
    }

    .btn-primary.disabled,
    .btn-primary:disabled {
        background-color: var(--brand);
        border-color: var(--brand);
        color: #fff;
        opacity: 0.5;
    }

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:not(:disabled):not(.disabled):active {
        background-color: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

.btn-inverse-primary {
    background-color: var(--brand-tint);
    border-color: transparent;
}

    .btn-inverse-primary:not(.btn-inverse-light) {
        color: var(--brand);
    }

    .btn-inverse-primary:hover {
        background-color: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

/* Legacy violet buttons (the navbar "Leave Bal." button uses .btn-violet) */
.btn-violet {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

    .btn-violet:hover {
        background-color: var(--brand-hover);
        color: #fff;
    }

.btn-inverse-violet {
    background-color: var(--brand-tint);
    border-color: transparent;
    color: var(--brand);
}

.btn-violet-selected {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
}

/* Approve / reject buttons: Celestia's greens and reds fail contrast with
   white text. These pass (>= 4.5:1). */
.btn-success {
    background-color: var(--ok);
    border-color: var(--ok);
    color: #fff;
}

    .btn-success:hover {
        background-color: var(--ok-hover);
        border-color: var(--ok-hover);
        color: #fff;
    }

.btn-danger {
    background-color: var(--bad);
    border-color: var(--bad);
    color: #fff;
}

    .btn-danger:hover {
        background-color: var(--bad-hover);
        border-color: var(--bad-hover);
        color: #fff;
    }

/* "View" pill used on list rows */
.btn-view-action {
    padding: 0.3rem 0.9rem !important;
    border: 1px solid var(--slate-300) !important;
    border-radius: var(--r-pill) !important;
    background: #fff !important;
    color: var(--slate-700);
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .btn-view-action:hover {
        background-color: var(--brand) !important;
        border-color: var(--brand) !important;
        color: #fff !important;
        text-decoration: none;
    }

        .btn-view-action:hover span,
        .btn-view-action:hover i {
            color: #fff !important;
        }

.btn-pill-violet {
    padding: 0.6rem 2rem !important;
    border: 0 !important;
    border-radius: var(--r-pill) !important;
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 600;
}

    .btn-pill-violet:hover {
        background: var(--brand-hover) !important;
    }

/* View switcher pills (Pending / Approved / All) */
.toggle-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    color: var(--slate-600);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .toggle-pill:not(.active):hover {
        background-color: var(--slate-100);
        color: var(--slate-900);
    }

    .toggle-pill.active {
        background: var(--brand) !important;
        color: #fff !important;
        box-shadow: var(--shadow-1);
        transform: none;
    }

/* Telerik RadButton variants that were hard-coded to #6306b5 in style.css */
.modern-toggle-btn.rbChecked .rbText {
    background-color: var(--brand) !important;
    box-shadow: var(--shadow-1);
}

.modern-radio-list input[type="radio"]:checked + label,
.modern-radio-individual input[type="radio"]:checked + label {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    box-shadow: var(--shadow-1);
}

.modern-radio-list label:hover,
.modern-radio-individual label:hover {
    border-color: var(--brand);
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */
.card {
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background-color: #fff;
    box-shadow: var(--shadow-1);
}

    .card .card-body {
        padding: 1.25rem;
    }

    .card .card-title {
        margin-bottom: 1rem;
        font-size: 1rem;
        font-weight: 600;
        text-transform: none; /* Celestia forced Title Case on every card title */
        color: var(--slate-900);
    }

.card-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    background-color: #fff;
    font-weight: 600;
}

.card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--slate-100);
    background-color: var(--slate-50);
}

/* Clickable list cards (ListView action cards) - the only cards that react
   to hover. Border colour + shadow, no movement. */
.hrmo-card {
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--slate-300) !important;
    border-radius: var(--r-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .hrmo-card:hover {
        transform: none;
        border-left-color: var(--brand) !important;
        box-shadow: var(--shadow-2) !important;
    }

.border-left-blue {
    padding: 0.75rem 1rem !important;
    border-left: 3px solid var(--brand);
    border-radius: var(--r-md);
    background-color: var(--slate-50);
}


/* ==========================================================================
   6. BADGES
   Status is always carried by the text; colour only reinforces it.
   ========================================================================== */
.badge {
    padding: 0.3em 0.65em;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.badge-soft-success,
.badge-approved {
    background-color: var(--ok-bg) !important;
    color: var(--ok) !important;
    border: 1px solid var(--ok-border);
}

.badge-pending,
.badge-warning-pastel,
.badge-soft-warning {
    background-color: var(--warn-bg) !important;
    color: var(--warn) !important;
    border: 1px solid var(--warn-border);
}

.badge-rejected,
.badge-soft-danger {
    background-color: var(--bad-bg) !important;
    color: var(--bad) !important;
    border: 1px solid var(--bad-border);
}

.badge-soft-info {
    background-color: var(--info-bg) !important;
    color: var(--info) !important;
    border: 1px solid var(--info-border);
}

.badge-soft-primary,
.badge-primary-soft {
    background-color: var(--brand-tint) !important;
    color: var(--brand) !important;
    border: 1px solid var(--brand-border);
}

.badge-secondary-soft {
    background-color: var(--slate-100) !important;
    color: var(--slate-700) !important;
    border: 1px solid var(--slate-200);
}


/* ==========================================================================
   7. TABLES + GRIDS
   ========================================================================== */
/* Celestia tables have 20px/15px cell padding and line-height:1. */
.table th,
.table td {
    padding: 0.75rem 1rem;
    line-height: 1.4;
    border-top: 1px solid var(--slate-100);
}

.table thead th {
    border-bottom: 1px solid var(--slate-200);
    background-color: var(--slate-50);
    color: var(--slate-600);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.table-hover tbody tr:hover {
    background-color: var(--slate-50);
    color: inherit;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: var(--slate-200);
}

/* Telerik grid headers, same treatment, sentence case */
.rgHeader {
    color: var(--slate-600) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.modern-grid .rgHeader {
    padding: 0.75rem 1rem !important;
    background: var(--slate-50) !important;
}

.modern-grid .rgRow td,
.modern-grid .rgAltRow td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--slate-100) !important;
    font-size: 0.875rem !important;
}

.modern-grid .rgRow:hover td,
.modern-grid .rgAltRow:hover td {
    background-color: var(--slate-50) !important;
}

/* GridView pager */
.modern-pager a:hover,
.modern-pager span {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}

.page-link {
    color: var(--brand);
}

.page-item.active .page-link {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}


/* ==========================================================================
   8. TABS + PILLS
   ========================================================================== */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--brand) !important;
    background-color: #fff !important;
    border-color: var(--brand) var(--slate-200) #fff !important;
    font-weight: 600;
}

.nav-pills .nav-link {
    border-color: var(--brand-border);
    border-radius: var(--r-md);
    color: var(--brand);
}

    .nav-pills .nav-link:hover {
        background-color: var(--brand-soft);
    }

    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        background-color: var(--brand) !important;
        border-color: var(--brand);
        color: #fff !important;
        box-shadow: var(--shadow-1);
    }

/* Page tabs under the page title. Mobile: becomes a bottom tab bar. */
.app-page-header {
    position: sticky;
    top: var(--navbar-h); /* was 0: tabs slid under the fixed navbar */
    z-index: 1020;
    padding: 1rem 1.25rem 0;
    background-color: #fff;
    border-bottom: 1px solid var(--slate-200);
}

.app-page-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.app-page-title {
    margin: 0;
    color: var(--slate-900);
    font-size: 1.25rem;
    font-weight: 700;
}

.app-page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-tabs,
.app-page-header .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: -1px;
    border-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

    .app-tabs::-webkit-scrollbar,
    .app-page-header .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .app-tabs .nav-link,
    .app-page-header .nav-tabs .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.25rem 0.75rem;
        border: none;
        border-bottom: 3px solid transparent;
        background: transparent !important;
        color: var(--slate-500);
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

        .app-tabs .nav-link:hover,
        .app-page-header .nav-tabs .nav-link:hover {
            color: var(--slate-900);
        }

        .app-tabs .nav-link.active,
        .app-page-header .nav-tabs .nav-link.active,
        .app-page-header .nav-tabs .nav-item.show .nav-link {
            color: var(--brand) !important;
            border-bottom-color: var(--brand) !important;
        }

        .app-tabs .nav-link i {
            display: none;
        }

        .app-page-header .nav-tabs .nav-link i {
            display: inline-block;
            font-size: 1rem;
        }

    .app-tab-badge,
    .app-page-header .nav-tabs .app-tab-badge {
        padding: 0.15rem 0.5rem;
        border-radius: var(--r-pill);
        background-color: var(--slate-100);
        color: var(--slate-600);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .app-tabs .nav-link.active .app-tab-badge,
    .app-page-header .nav-tabs .nav-link.active .app-tab-badge {
        background-color: var(--brand);
        color: #fff;
    }

.app-tab-content {
    padding: 1.25rem;
}

@media (max-width: 767.98px) {
    .app-page-header {
        padding: 0.75rem 1rem;
    }

    .app-page-header-top {
        margin-bottom: 0;
    }

    .app-page-title {
        font-size: 1.1rem;
    }

    .app-tabs {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        justify-content: space-around;
        gap: 0;
        margin-bottom: 0;
        padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--slate-200);
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
    }

        .app-tabs .nav-item {
            flex: 1;
            min-width: 0;
            text-align: center;
        }

        .app-tabs .nav-link {
            position: relative;
            flex-direction: column;
            justify-content: center;
            gap: 0.2rem;
            padding: 0.2rem 0.25rem;
            border-bottom: none;
            font-size: 0.72rem;
        }

            .app-tabs .nav-link span.app-tab-label {
                display: block;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .app-tabs .nav-link i {
                display: block;
                font-size: 1.2rem;
                line-height: 1;
            }

    .app-tab-badge {
        position: absolute;
        top: 0;
        right: 50%;
        padding: 1px 5px;
        transform: translateX(22px);
        font-size: 0.62rem;
    }

    .app-tab-content {
        padding: 0.85rem 0.85rem calc(74px + env(safe-area-inset-bottom));
    }

    .bottom-fixed-mobile {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
    }
}


/* ==========================================================================
   9. PAGE HEADER + EMPTY STATE
   .pg-header is the new component (see the markup in the notes).
   .page-header-violet is the OLD header, restyled so unmigrated pages
   improve without touching their markup.
   ========================================================================== */
.pg-header,
.page-header-violet {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem var(--gutter);
    background: var(--grad-hero) !important; /* beats Celestia/old header backgrounds (!important) */
    border-bottom: 0;
    border-left: 0 !important;
    box-shadow: none !important;
    color: var(--on-hero) !important;
}

/* New header: an inset rounded hero card, lined up with .pg-body.
   (The old .page-header-violet stays full-width so unmigrated pages keep their layout.) */
.pg-header {
    margin: 1rem var(--gutter) 1.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-2) !important; /* replaces the flat none above */
    overflow: hidden;
}

/* Optional progress line: add .pg-header--steps and style="--pg-progress:64%" */
.pg-header--steps::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--pg-progress, 0%);
    height: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--brand-on-dark);
}

.pg-header__main {
    flex: 1 1 320px;
    min-width: 0;
}

/* Optional icon tile beside the title: add .pg-header--icon to the header and
   put <span class="pg-header__icon"><i class="ri-..."></i></span> before the text block. */
.pg-header--icon .pg-header__main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.pg-header__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--hero-glass-border);
    border-radius: var(--r-lg);
    background: var(--hero-glass);
    color: var(--on-hero);
    font-size: 1.375rem;
}

.pg-title,
.page-header-violet .header-title,
.page-header-violet h4 {
    margin: 0;
    color: var(--on-hero) !important; /* beats Celestia heading colours (!important) */
    font-size: var(--fs-xl); /* 20px on desktop; fluid 20-24px on phones */
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

    .page-header-violet .header-title i,
    .page-header-violet h4 i {
        color: var(--brand-on-dark) !important;
    }

.pg-sub,
.page-header-violet small {
    display: block;
    max-width: 60ch;
    margin: 0.3rem 0 0;
    color: var(--on-hero-muted) !important;
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
}

.page-header-violet .header-right {
    display: flex;
    align-items: center;
    color: var(--on-hero);
    font-size: var(--fs-base);
    font-weight: 600;
}

/* Old "PDS Section N" pill: kept, but quiet. It duplicates "Section N of 14";
   add `display:none` here if you would rather drop it. */
.page-header-violet .badge,
.page-header-violet .rounded-pill {
    border: 1px solid var(--hero-glass-border);
    background-color: var(--hero-glass) !important;
    color: var(--on-hero) !important;
    font-weight: 600;
}

.pg-header__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.pg-pager {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pg-pager__count {
    min-width: 3.9rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.pg-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--slate-700);
    font-size: 1.15rem;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

a.pg-pager__btn:hover {
    border-color: var(--slate-300);
    background: var(--slate-100);
    color: var(--slate-900);
    text-decoration: none;
}

.pg-pager__btn.is-disabled {
    background: var(--slate-50);
    color: var(--slate-300);
    cursor: not-allowed;
}

/* Controls that sit on the hero: glass buttons; the primary action turns white
   (a violet button would vanish into the violet gradient). */
.pg-header .pg-pager__count {
    color: var(--on-hero-muted);
}

.pg-header .pg-pager__btn {
    border-color: var(--hero-glass-border);
    background: var(--hero-glass);
    color: var(--on-hero);
}

.pg-header a.pg-pager__btn:hover {
    border-color: var(--on-hero-muted);
    background: var(--hero-glass-border);
    color: var(--on-hero);
}

.pg-header .pg-pager__btn.is-disabled {
    background: transparent;
    color: var(--on-hero-muted);
    opacity: 0.45;
}

.pg-header .pg-btn--primary {
    background: #fff;
    color: var(--brand);
}

    .pg-header .pg-btn--primary:hover {
        background: var(--brand-tint);
        color: var(--brand-hover);
    }

.pg-header .pg-btn--ghost {
    border-color: var(--hero-glass-border);
    background: var(--hero-glass);
    color: var(--on-hero);
}

    .pg-header .pg-btn--ghost:hover {
        background: var(--hero-glass-border);
        color: var(--on-hero);
    }

/* Page content wrapper that lines up with the header's left edge */
.pg-body {
    padding: 0 var(--gutter) 2rem;
}

/* .pg-btn: header-sized buttons (same look as .btn-primary / .btn-light) */
.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .pg-btn i {
        font-size: 1.1rem;
        line-height: 1;
    }

.pg-btn--primary {
    background: var(--brand);
    color: #fff;
}

    .pg-btn--primary:hover {
        background: var(--brand-hover);
        color: #fff;
        text-decoration: none;
    }

.pg-btn--ghost {
    border-color: var(--slate-200);
    background: #fff;
    color: var(--slate-700);
}

    .pg-btn--ghost:hover {
        background: var(--slate-100);
        color: var(--slate-900);
        text-decoration: none;
    }

/* Empty state: an invitation to act, not a decoration */
.pg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.pg-empty__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 1.6rem;
}

.pg-empty__title {
    margin: 0 0 0.25rem;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: 600;
}

.pg-empty__text {
    max-width: 44ch;
    margin: 0 0 1.25rem;
    color: var(--slate-500);
    font-size: var(--fs-base);
    line-height: 1.55;
}

/* Notice card: warning / info / success message with an icon. Reusable on any
   page; colour comes from the status tokens and the text always says what it is. */
.pg-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.pg-notice__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-md);
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: var(--fs-lg);
}

.pg-notice__title {
    margin: 0 0 0.25rem;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.pg-notice__text {
    margin: 0;
    color: var(--slate-700);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
}

ol.pg-notice__text {
    padding-left: 1.25rem;
}

    ol.pg-notice__text li + li {
        margin-top: 0.375rem;
    }

.pg-notice--warn {
    border-color: var(--warn-border);
    background: var(--warn-bg);
}

    .pg-notice--warn .pg-notice__icon {
        background: #fff;
        color: var(--warn);
    }

.pg-notice--info {
    border-color: var(--info-border);
    background: var(--info-bg);
}

    .pg-notice--info .pg-notice__icon {
        background: #fff;
        color: var(--info);
    }

.pg-notice--ok {
    border-color: var(--ok-border);
    background: var(--ok-bg);
}

    .pg-notice--ok .pg-notice__icon {
        background: #fff;
        color: var(--ok);
    }

/* Side + main layout: notes/options on the left, the document on the right.
   One column on phones and tablets. */
.pg-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.pg-split__side {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.pg-split__main {
    min-width: 0;
}

/* Embedded document viewer (PDF) */
.pg-frame {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 28rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
}

/* Option group: a card of selectable rows (asp:CheckBox with CssClass="pg-opt") */
.pg-options {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.pg-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .pg-opt:hover {
        border-color: var(--slate-300);
    }

    .pg-opt:has(input:checked) {
        border-color: var(--brand);
        background: var(--brand-soft);
    }

    .pg-opt:focus-within {
        box-shadow: var(--ring);
    }

    .pg-opt input {
        flex: 0 0 auto;
        width: 1.125rem;
        height: 1.125rem;
        margin: 0.125rem 0 0;
        accent-color: var(--brand);
    }

    .pg-opt label {
        margin: 0;
        color: var(--slate-800) !important; /* beats the global label colour rule */
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-regular) !important;
        line-height: 1.4;
        cursor: pointer;
    }

@media (min-width: 992px) {
    .pg-split {
        grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
        align-items: start;
    }

    /* Fill the screen under the navbar and the page header */
    .pg-frame {
        height: calc(100vh - var(--navbar-h) - 9rem);
        min-height: 36rem;
    }
}

/* Old empty state (kept; icon no longer floats) */
.empty-state-container {
    max-width: 600px;
    margin: 40px auto;
    border-radius: var(--r-lg);
    background-color: #fff;
}

.empty-state-icon i {
    color: var(--slate-400);
    animation: none;
}

@media (max-width: 767.98px) {
    :root {
        --gutter: 1rem;
    }

    .pg-header,
    .page-header-violet {
        margin-bottom: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .pg-header {
        margin-top: 0.75rem;
        padding: 1.125rem 1rem;
    }

        .pg-title,
        .page-header-violet .header-title,
        .page-header-violet h4 {
            font-size: 1.25rem;
        }

    .pg-header__side {
        width: 100%;
        justify-content: space-between;
    }
}


/* ==========================================================================
   10. NAVBAR + NOTIFICATIONS
   ========================================================================== */
.navbar.fixed-top {
    border-bottom: 1px solid var(--slate-200);
}

/* Classes below replace the inline style="" that used to sit on the navbar
   markup in RecruitmentMasterPage.Master. */
.nb-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    transition: background-color 0.15s ease;
}

    .nb-icon-btn:hover,
    .nb-icon-btn[aria-expanded="true"] {
        background-color: var(--slate-100);
    }

.nb-icon-btn__icon {
    font-size: 1.25rem;
    color: var(--slate-600) !important; /* beats .text-dark */
}

/* Notification count: a small red pill on the bell's corner, white ring so it
   reads against the bar. Text (the count) comes from code-behind. */
.nb-icon-btn .badge-dot {
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    border-radius: var(--r-pill);
    background-color: var(--bad) !important; /* beats .bg-danger */
    color: #fff;
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    line-height: 1;
}

    .nb-icon-btn .badge-dot:empty {
        width: 0.625rem;
        min-width: 0;
        height: 0.625rem;
        padding: 0;
    }

/* Account toggle: round avatar + small chevron. Specificity matches Celestia's
   ".nav-profile .dropdown-toggle i { font-size: 1.5rem }", which made the
   chevron huge, and its heavy offset avatar shadow. */
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile .dropdown-toggle i.nb-chevron {
    font-size: 0.625rem;
    color: var(--slate-500);
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile > .dropdown-toggle {
    min-height: 2.5rem;
    padding: 0 0.25rem !important; /* beats .pl-0 / .pr-0 */
    border-radius: var(--r-pill);
    transition: background-color 0.15s ease;
}

    .navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile > .dropdown-toggle:hover {
        background-color: var(--slate-100);
    }

.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile img {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--slate-200);
    background-color: var(--slate-100);
    box-shadow: none !important; /* removes Celestia's 4px/5px offset avatar shadow */
    object-fit: cover;
}

/* "Leave balance": quiet tinted button, not a solid block competing with the
   page's own primary action. */
#navbar_top .btn-violet {
    min-height: 2.5rem;
    border: 1px solid var(--brand-border);
    background-color: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-ui);
    font-weight: var(--fw-semibold);
}

    #navbar_top .btn-violet:hover {
        border-color: var(--brand);
        background-color: var(--brand-tint);
        color: var(--brand-hover);
    }

    #navbar_top .btn-violet i {
        color: var(--brand);
        font-size: var(--fs-md);
    }

.nb-item-icon {
    font-size: var(--fs-md);
}

.nb-notif-menu {
    width: 340px;
    max-width: calc(100vw - 1rem);
    border: 1px solid var(--slate-200) !important; /* beats .border-0 */
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3) !important; /* beats .shadow-lg */
}

.nb-account-menu {
    min-width: 12rem;
    border: 1px solid var(--slate-200) !important; /* beats .border-0 */
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2) !important; /* beats .shadow-lg */
}

.nb-menu-head {
    min-height: 2.75rem;
    border-color: var(--slate-100) !important; /* beats .border-bottom */
}

.nb-menu-foot {
    border-color: var(--slate-100) !important; /* beats .border-top */
}

.nb-menu-title {
    color: var(--slate-800);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.nb-account-menu .nb-menu-title {
    color: var(--slate-500);
    font-size: var(--fs-xs);
}

.nb-account-menu .dropdown-divider {
    border-color: var(--slate-100);
}

.nb-notif-menu .notification-scroll-container {
    max-height: min(320px, 60vh);
    overflow-y: auto;
}

.nb-notif-menu .view-all-btn {
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.nb-logout-icon {
    top: 50%;
    left: 1rem;
    z-index: 2;
    transform: translateY(-50%);
    font-size: var(--fs-md);
    pointer-events: none;
}

.nb-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    font-weight: var(--fw-semibold);
    padding-left: 2.5rem !important; /* beats .dropdown-item padding utilities (!important) */
}

.dropdown-label {
    font-size: var(--fs-ui) !important;
}

.navbar-dropdown .dropdown-item {
    width: calc(100% - 8px);
    margin: 0 4px;
    border-radius: var(--r-sm);
    font-size: var(--fs-ui) !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .navbar-dropdown .dropdown-item:hover,
    .navbar-dropdown .dropdown-item:focus {
        background-color: var(--slate-50) !important;
    }

.logout-wrapper:hover .dropdown-item {
    background-color: var(--bad-bg) !important;
    color: var(--bad) !important;
}

.navbar-dropdown img {
    display: inline-block;
    width: 32px !important;
    max-height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.badge-dot {
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.notif-icon-box {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--slate-100);
    color: var(--slate-500);
    font-size: 1rem;
}

.notif-item {
    background-color: #fff !important;
    white-space: normal !important;
    transition: background-color 0.15s ease;
}

    .notif-item:hover {
        background-color: var(--slate-50) !important;
        text-decoration: none !important;
    }

.notif-subject {
    font-size: var(--fs-ui) !important;
    line-height: 1.4;
}

.notif-time {
    font-size: var(--fs-xs) !important;
}

.notif-unread {
    background-color: var(--brand-soft) !important;
}

    .notif-unread .notif-icon-box {
        background-color: var(--brand-tint);
        color: var(--brand);
    }

    .notif-unread .state-dot {
        position: absolute;
        top: 0;
        right: 0;
        width: 8px;
        height: 8px;
        border: 2px solid #fff;
        border-radius: 50%;
        background-color: #ef4444;
    }

    .notif-unread .notif-subject {
        color: var(--slate-900) !important;
        font-weight: 600 !important;
    }

.notif-read {
    opacity: 0.85;
}

    .notif-read .state-dot {
        display: none;
    }

.view-all-btn:hover {
    background-color: var(--brand-tint) !important;
    color: var(--brand-hover) !important;
}

.notification-scroll-container::-webkit-scrollbar {
    width: 5px !important;
}

.notification-scroll-container::-webkit-scrollbar-track {
    background: transparent !important;
}

.notification-scroll-container::-webkit-scrollbar-thumb {
    border-radius: 20px !important;
    background: var(--slate-300) !important;
}


/* ==========================================================================
   11. SIDEBAR
   Navy surface, white text at two strengths, ONE accent (--brand-on-dark).
   Everything is prefixed #sidebar so it beats Celestia and the old
   !important rules in style.css regardless of file order.
   ========================================================================== */
#sidebar {
    position: fixed;
    top: var(--navbar-h);
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-h));
    background: var(--nav-bg);
    box-shadow: none;
}

.sidebar-scrollable-content {
    flex: 1 1 auto;
    min-height: 0; /* lets the flex child actually scroll */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    .sidebar-scrollable-content::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-scrollable-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-scrollable-content::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.2);
    }

/* Dividers: Celestia/Bootstrap utilities draw them in near-white (#e8eff9),
   which glares on navy. */
#sidebar .border-light,
#sidebar .border-top,
#sidebar .border-bottom {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

/* Profile block: name wraps cleanly, role sits underneath, no clipping */
#sidebar .sidebar-profile {
    padding: 1rem 1.25rem 0.875rem;
}

#sidebar .sidebar-profile .sidebar-name {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#sidebar .sidebar-profile .sidebar-designation {
    margin: 0.2rem 0 0;
    color: var(--nav-text-muted) !important; /* beats .text-white-50 (!important) */
    font-size: var(--fs-xs);
    line-height: 1.4;
}

/* Top-level items: rounded rows inset from the edge, 40px+ tall */
#sidebar .nav:not(.sub-menu) > .nav-item {
    margin: 2px 0.75rem;
}

#sidebar .nav .nav-item .nav-link {
    position: relative;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-md);
    color: var(--nav-text) !important; /* beats style.css !important */
    transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar .nav .nav-item .nav-link .menu-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium) !important; /* beats Bootstrap .font-weight-bold used in the markup */
    line-height: 1.3;
    white-space: normal;
}

#sidebar .nav .nav-item .nav-link i.menu-icon {
    margin-right: 0.75rem;
    color: var(--nav-icon);
    font-size: 1.125rem;
}

#sidebar .nav .nav-item .nav-link i.menu-arrow {
    color: var(--nav-icon);
}

    /* Chevron turns down when the group is open (Celestia "rotates" it 360deg) */
    #sidebar .nav .nav-item .nav-link[aria-expanded="true"] i.menu-arrow:before {
        transform: rotate(90deg);
    }

#sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link {
    background: var(--nav-hover-bg);
    color: #fff !important;
}

    #sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link i {
        color: #fff;
    }

/* ACTIVE, one clear signal per location:
   - a leaf link (Dashboard, My Service Record): tinted row + accent bar
   - a group that is open: only brighter text/icon; the current page inside
     it carries the highlight (no double highlight). */
#sidebar .nav > .nav-item.active > .nav-link,
#sidebar .nav > .nav-item > .nav-link.active {
    background: var(--nav-active-bg) !important;
    box-shadow: none !important;
    color: #fff !important;
}

    #sidebar .nav > .nav-item.active > .nav-link::before,
    #sidebar .nav > .nav-item > .nav-link.active::before {
        content: "";
        position: absolute;
        top: 22%;
        bottom: 22%;
        left: -0.75rem;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--brand-on-dark);
    }

    #sidebar .nav > .nav-item.active > .nav-link i,
    #sidebar .nav > .nav-item > .nav-link.active i {
        color: var(--brand-on-dark) !important;
    }

#sidebar .nav > .nav-item.active > .nav-link[aria-expanded="true"],
#sidebar .nav > .nav-item > .nav-link.active[aria-expanded="true"] {
    background: transparent !important;
}

    #sidebar .nav > .nav-item.active > .nav-link[aria-expanded="true"]::before,
    #sidebar .nav > .nav-item > .nav-link.active[aria-expanded="true"]::before {
        display: none;
    }

/* Sub-menu: one continuous guide line; the current page is a tinted pill
   with an accent segment sitting on that line. */
#sidebar .nav.sub-menu {
    margin: 0.125rem 0 0.375rem 1.375rem;
    padding: 0.125rem 0 !important; /* beats Celestia sub-menu padding */
    border-left: 1px solid var(--nav-line);
}

    #sidebar .nav.sub-menu .nav-item {
        margin: 1px 0;
    }

        #sidebar .nav.sub-menu .nav-item .nav-link {
            height: auto !important;
            min-height: 2.125rem;
            margin: 0 0 0 0.75rem !important;
            padding: 0.4375rem 0.75rem !important;
            border: 0 !important;
            border-radius: var(--r-md);
            color: var(--nav-text) !important;
            font-size: var(--fs-ui) !important;
            line-height: 1.35;
            white-space: normal;
        }

            #sidebar .nav.sub-menu .nav-item .nav-link:hover {
                background: var(--nav-hover-bg) !important;
                color: #fff !important;
            }

            #sidebar .nav.sub-menu .nav-item .nav-link.active,
            #sidebar .nav.sub-menu .nav-item.active > .nav-link {
                background: var(--nav-active-bg) !important;
                box-shadow: none !important;
                color: #fff !important;
                font-weight: var(--fw-semibold) !important;
            }

                #sidebar .nav.sub-menu .nav-item .nav-link.active::before,
                #sidebar .nav.sub-menu .nav-item.active > .nav-link::before {
                    content: "";
                    position: absolute;
                    top: 20%;
                    bottom: 20%;
                    left: calc(-0.75rem - 1px);
                    width: 2px;
                    border-radius: 2px;
                    background: var(--brand-on-dark);
                }

            #sidebar .nav.sub-menu .nav-item .nav-link i {
                width: 1.125rem !important;
                margin-right: 0.5rem !important;
                color: var(--brand-on-dark) !important;
                font-size: var(--fs-ui) !important;
                opacity: 0.85;
            }

    #sidebar .nav.sub-menu .nav-item::before,
    #sidebar .nav.sub-menu .nav-item::after {
        display: none !important;
    }

/* Group labels inside sub-menus ("Personal", "Approvals", "DTR Mgmt"):
   sentence case, muted. Bootstrap utilities force uppercase + padding. */
#sidebar .sub-menu .nav-header {
    margin-top: 0.5rem !important;
    padding: 0.75rem 0.75rem 0.25rem 1.5rem !important;
    border-top: 0 !important;
    color: var(--nav-text-muted) !important;
    font-size: var(--fs-xs) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
}

#sidebar .sub-menu .menu-title.uppercase {
    color: var(--nav-text) !important;
    font-size: var(--fs-ui) !important;
    text-transform: none !important;
}

/* Section titles between blocks ("Performance Tab", "Upload Files") */
#sidebar h4,
.sidebar-category-title {
    margin: 1.25rem 0 0.25rem 1.5rem !important;
    padding: 0 !important;
    color: var(--nav-text-muted) !important;
    font-size: var(--fs-xs) !important;
    font-style: normal !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

/* Keyboard focus on a dark surface needs the light accent */
#sidebar a:focus-visible,
#sidebar button:focus-visible {
    outline-color: var(--brand-on-dark) !important;
    outline-offset: -2px;
}

/* Phones: comfortable touch rows */
@media (max-width: 991.98px) {
    #sidebar .nav .nav-item .nav-link {
        min-height: var(--tap-min);
    }

    #sidebar .nav.sub-menu .nav-item .nav-link {
        min-height: 2.5rem;
    }
}

@media (min-width: 992px) {
    #sidebar {
        width: var(--sidebar-w);
        transition: width 0.25s ease;
    }

    .main-panel {
        width: calc(100% - var(--sidebar-w));
        margin-left: var(--sidebar-w);
        transition: margin-left 0.25s ease, width 0.25s ease;
    }

    body.sidebar-icon-only #sidebar {
        width: var(--sidebar-w-mini);
    }

    body.sidebar-icon-only .main-panel {
        width: calc(100% - var(--sidebar-w-mini));
        margin-left: var(--sidebar-w-mini);
    }

    body.sidebar-icon-only #sidebar .menu-title,
    body.sidebar-icon-only #sidebar .menu-arrow,
    body.sidebar-icon-only #sidebar .sidebar-profile-name,
    body.sidebar-icon-only #sidebar h4,
    body.sidebar-icon-only #sidebar .sidebar-legend {
        display: none !important;
    }

    body.sidebar-icon-only #sidebar .nav:not(.sub-menu) > .nav-item {
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }

    body.sidebar-icon-only #sidebar .nav-link {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

        body.sidebar-icon-only #sidebar .nav-link .menu-icon {
            margin-right: 0 !important;
        }
}

@media (max-width: 991.98px) {
    .main-panel {
        width: 100%;
        margin-left: 0;
    }
}


/* ==========================================================================
   12. MODALS  (same --brand as the pages; modals are no longer a separate
   colour world)
   ========================================================================== */
.modalBackground {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.modal-backdrop {
    background-color: var(--slate-900);
}

.modal .modal-content,
.windowmodal .modal-content,
.windowmodal .modal-content2 {
    border: none;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
    overflow: hidden;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.btn-close-modern:hover {
    background-color: var(--slate-100);
    text-decoration: none;
}

/* Hero header: the portal's signature moment. Used by the profile and
   leave-balance modals. */
.hrmo-modal-hero {
    position: relative;
    padding: 1.75rem 1.5rem 2.25rem;
    background: linear-gradient(145deg, var(--brand-hover) 0%, var(--brand) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

    .hrmo-modal-hero::before,
    .hrmo-modal-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        pointer-events: none;
    }

    .hrmo-modal-hero::before {
        top: -30px;
        right: -25px;
        width: 130px;
        height: 130px;
    }

    .hrmo-modal-hero::after {
        bottom: -20px;
        left: -15px;
        width: 95px;
        height: 95px;
    }

.hrmo-hero-pill {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hrmo-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    color: var(--brand);
    font-size: 1.75rem;
}

/* Leave-balance ledger rows */
.ledger-card-featured {
    margin-bottom: 0.75rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--brand-border);
    border-left: 4px solid var(--brand);
    border-radius: var(--r-lg);
    background-color: var(--brand-soft);
}

.ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background-color: #fff;
}

.ledger-pill-solid,
.ledger-pill-outline {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 700;
}

.ledger-pill-solid {
    background-color: var(--brand);
    color: #fff;
}

.ledger-pill-outline {
    border: 1px solid var(--slate-200);
    background-color: #fff;
    color: var(--slate-900);
}


/* ==========================================================================
   13. FLOATING ACTION + UTILITIES
   ========================================================================== */
.fab-btn {
    position: fixed !important;
    right: 24px;
    bottom: 28px;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: var(--r-pill) !important;
    background-color: var(--brand) !important;
    box-shadow: var(--shadow-2);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

    .fab-btn:hover {
        background-color: var(--brand-hover) !important;
        text-decoration: none;
    }

    .fab-btn i {
        font-size: 16px;
    }

@media (max-width: 768px) {
    .fab-btn span {
        display: none;
    }

    .fab-btn i {
        margin: 0 !important;
    }
}

/* Keep the FAB clear of the mobile bottom tab bar (.app-tabs) */
@media (max-width: 767.98px) {
    .fab-btn {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

.tooltip {
    pointer-events: none !important;
}

.font-weight-600 {
    font-weight: 600 !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-sm {
    letter-spacing: 0.02em;
}

.min-width-0 {
    min-width: 0;
}

.py-2-5 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}


/* ==========================================================================
   14. LOADING PANEL  (RadAjaxLoadingPanel1, class .ld-overlay)
   ========================================================================== */
.ld-overlay .raColor {
    display: none !important;
}

.ld-stage {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    background: rgba(241, 245, 249, 0.72);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    backdrop-filter: blur(6px) saturate(1.1);
    animation: ld-fade 0.18s ease-out;
}

.ld-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    min-width: 230px;
    padding: 30px 44px 26px;
    border: 1px solid rgba(var(--brand-rgb), 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 60px -16px rgba(15, 23, 42, 0.3), 0 2px 8px rgba(15, 23, 42, 0.08);
    animation: ld-pop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ld-mark {
    position: relative;
    width: 104px;
    height: 104px;
}

    .ld-mark::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 4px solid rgba(var(--brand-rgb), 0.1);
        border-radius: 50%;
    }

.ld-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.22), transparent 68%);
    animation: ld-glow 2.4s ease-in-out infinite;
}

.ld-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(var(--brand-rgb), 0) 0deg, var(--brand) 300deg, var(--brand-on-dark) 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: ld-spin 1.1s linear infinite;
}

.ld-logo {
    position: absolute;
    inset: 14px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: contain;
    animation: ld-breathe 2.4s ease-in-out infinite;
}

.ld-text {
    display: flex;
    align-items: baseline;
    color: var(--slate-800);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ld-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 5px;
}

    .ld-dots i {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--brand);
        animation: ld-dot 1.2s ease-in-out infinite both;
    }

        .ld-dots i:nth-child(2) {
            animation-delay: 0.16s;
        }

        .ld-dots i:nth-child(3) {
            animation-delay: 0.32s;
        }

.ld-bar {
    position: relative;
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: rgba(var(--brand-rgb), 0.12);
    overflow: hidden;
}

    .ld-bar span {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 40%;
        border-radius: 2px;
        background: var(--brand);
        animation: ld-slide 1.3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }

@keyframes ld-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ld-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ld-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ld-glow {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes ld-breathe {
    0%, 100% {
        transform: scale(0.96);
    }

    50% {
        transform: scale(1);
    }
}

@keyframes ld-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes ld-slide {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(250%);
    }
}

/* Reduced motion: stop the decorative loops, keep the spinner + bar so the
   panel still reads as "working". */
@media (prefers-reduced-motion: reduce) {
    .ld-glow,
    .ld-logo,
    .ld-dots i,
    .timeline-item.current .timeline-marker,
    .timeline-item.pending .timeline-marker {
        animation: none !important;
    }

    .btn,
    .pg-btn,
    .pg-pager__btn,
    .toggle-pill,
    .hrmo-card {
        transition: none;
    }
}


/* ==========================================================================
   15. TIMELINE
   The timeline layouts live in style.css and read the --dtr-* tokens above
   and --violet-primary (aliased to --brand). The "current step" pulse is
   the only motion; it is disabled in the reduced-motion block above.
   ========================================================================== */


/* ==========================================================================
   16. PRINT  (DTR, leave forms, PDS)
   ========================================================================== */
@media print {
    #sidebar,
    #navbar_top,
    .navbar,
    .fab-btn,
    .app-tabs,
    .pg-header__side,
    .btn-view-action {
        display: none !important;
    }

    .main-panel {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .page-body-wrapper {
        padding-top: 0 !important;
    }

    body {
        background: #fff !important;
    }

    .card,
    .pg-header,
    .page-header-violet {
        border-color: var(--slate-300);
        box-shadow: none !important;
    }

    /* Ink-friendly: no gradient on paper */
    .pg-header,
    .page-header-violet {
        background: #fff !important;
        color: var(--slate-900) !important;
    }

        .pg-header .pg-title,
        .pg-header .pg-sub,
        .page-header-violet .header-title,
        .page-header-violet h4,
        .page-header-violet small {
            color: var(--slate-900) !important;
        }
}


/* ==========================================================================
   17. DASHBOARD  (Dashboard.aspx)
   Mobile first: quick actions behave like an app launcher (4 across on
   phones), cards go edge-to-edge friendly, text never drops below 12px.
   Everything is scoped to .dash-* so no other page is affected. The page's
   old stylesheet (assets/css/dashboard/customcss.css) still loads and sets
   !important on the memo list; those few overrides say why.
   ========================================================================== */
.dash-page {
    padding-top: 1.25rem; /* no page header on the dashboard */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.dash-section {
    margin-bottom: 1rem;
}

/* ---- Shared card ---- */
.dash-card {
    margin-bottom: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.dash-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.dash-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-lg);
}

.dash-card__heading {
    min-width: 0;
}

.dash-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

    .dash-card__title a {
        color: inherit;
        text-decoration: none;
    }

.dash-card__sub {
    margin: 0.125rem 0 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.dash-card__foot {
    padding: 0.75rem 1.25rem;
    background: var(--slate-50);
    text-align: center;
}

/* ---- Quick actions: launcher grid ---- */
.dash-quick {
    margin-bottom: 1rem;
    padding: 1rem 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.dash-quick__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 0.25rem;
}

.dash-quick__group {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    padding: 0.75rem 0.5rem 0;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.dash-quick__grid > .dash-quick__group:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.dash-tile {
    position: relative;
    min-width: 0;
}

.dash-tile__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.125rem;
    border-radius: var(--r-md);
    color: var(--slate-700);
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

    .dash-tile__link:hover {
        background: var(--slate-50);
        color: var(--slate-900);
        text-decoration: none;
    }

    .dash-tile__link:active {
        background: var(--slate-100);
    }

.dash-tile__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--r-lg);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dash-tile__link:hover .dash-tile__icon {
    background: var(--brand);
    color: #fff;
}

.dash-tile__label {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Count badge sits on the icon's top-right corner */
.dash-tile .dash-tile__count {
    position: absolute;
    top: 0.125rem;
    left: calc(50% + 0.7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border: 2px solid #fff;
    background-color: var(--bad);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    line-height: 1;
}

/* Text tag (e.g. "Expired") on the tile's top edge; colour comes from the
   BadgeClass that code-behind sends (badge-danger / -warning / -success) */
.dash-tile .dash-tile__tag {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0.2rem 0.4rem;
    border-radius: var(--r-sm);
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .dash-tile .dash-tile__tag.badge-danger {
        background-color: var(--bad);
        color: #fff;
    }

    .dash-tile .dash-tile__tag.badge-warning {
        background-color: var(--warn);
        color: #fff;
    }

    .dash-tile .dash-tile__tag.badge-success {
        background-color: var(--ok);
        color: #fff;
    }

/* ---- Alerts (leave notice, PRC expiry) ---- */
.dash-alert,
.dash-page .alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
}

.dash-page .alert-modern {
    box-shadow: none !important; /* beats .shadow-sm (!important) set by code-behind */
}

.dash-alert--bad,
.dash-page .alert-modern.alert-danger {
    border-color: var(--bad-border);
    background: var(--bad-bg);
}

.dash-page .alert-modern.alert-warning {
    border-color: var(--warn-border);
    background: var(--warn-bg);
}

.dash-page .alert-modern.alert-info {
    border-color: var(--info-border);
    background: var(--info-bg);
}

.dash-alert__icon {
    flex: 0 0 auto;
    color: var(--bad);
    font-size: 1.375rem;
    line-height: 1.2;
}

.dash-alert__body {
    min-width: 0;
}

.dash-alert__title {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

.dash-page .alert-danger .dash-alert__title i {
    color: var(--bad);
}

.dash-page .alert-warning .dash-alert__title i {
    color: var(--warn);
}

.dash-page .alert-info .dash-alert__title i {
    color: var(--info);
}

.dash-alert__text {
    margin: 0 0 0.75rem;
    color: var(--slate-700);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
}

/* ---- Notices (HMO action required, APE advisory) ---- */
.dash-notice {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.dash-notice--bad {
    border-color: var(--bad-border);
}

.dash-notice__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.dash-notice__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--info-bg);
    color: var(--info);
    font-size: var(--fs-lg);
}

.dash-notice--bad .dash-notice__icon {
    background: var(--bad-bg);
    color: var(--bad);
}

.dash-notice__heading {
    flex: 1 1 12rem;
    min-width: 0;
}

.dash-notice__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.dash-notice__sub {
    margin: 0.125rem 0 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

/* Bootstrap's .alert-dismissible pins the close button absolutely and adds
   4rem right padding; undo both so the button sits in the header row. */
.dash-notice.alert-dismissible {
    padding-right: 1.25rem;
}

.dash-notice .dash-notice__close {
    position: static;
    float: none;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--slate-500);
    font-size: 1.5rem;
    line-height: 1;
    text-shadow: none;
}

.dash-notice__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dash-notice__cell {
    padding: 0.875rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-50);
}

    .dash-notice__cell p {
        margin: 0;
        color: var(--slate-700);
        font-size: var(--fs-ui);
        line-height: var(--lh-body);
    }

.dash-notice__cell--warn {
    border-color: var(--warn-border);
    background: var(--warn-bg);
}

.dash-notice__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.375rem;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.dash-notice__cell--warn .dash-notice__label {
    color: var(--warn);
}

.dash-page .dash-notice__cell p.dash-notice__fine {
    margin-top: 0.5rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
}

.dash-notice__prose p {
    margin: 0.75rem 0 0;
    color: var(--slate-700);
    font-size: var(--fs-base);
}

.dash-notice__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
}

.dash-notice__thanks {
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

/* ---- Notice of vacancies ---- */
.dash-vac {
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .dash-vac:last-child {
        border-bottom: 0;
    }

.dash-vac__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    /* applyLink's class is replaced by code-behind when the user has applied,
       so style it by position, not by class */
    .dash-vac__head > a:first-child {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 0.125rem;
        min-width: 0;
        padding: 0.875rem 0;
        color: var(--slate-900);
        text-decoration: none;
    }

        .dash-vac__head > a:first-child.bg-green::after {
            content: "Applied";
            align-self: flex-start;
            margin-top: 0.25rem;
            padding: 0.125rem 0.5rem;
            border: 1px solid var(--ok-border);
            border-radius: var(--r-sm);
            background: var(--ok-bg);
            color: var(--ok);
            font-size: var(--fs-xs);
            font-weight: var(--fw-semibold);
        }

.dash-vac__title {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
}

.dash-vac__deadline {
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

.dash-vac__toggle {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-md);
    color: var(--slate-500);
    font-size: 1.375rem;
}

    .dash-vac__toggle:hover {
        background: var(--slate-100);
        color: var(--slate-900);
    }

    .dash-vac__toggle i {
        transition: transform 0.2s ease;
    }

    .dash-vac__toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

.dash-kv {
    margin: 0 0 0.75rem;
}

.dash-kv__row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--slate-100);
}

    .dash-kv__row dt {
        color: var(--slate-500);
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
    }

    .dash-kv__row dd {
        margin: 0;
        color: var(--slate-800);
        font-size: var(--fs-ui);
        overflow-wrap: anywhere;
    }

/* ---- HRMO bulletin board (memo list) ---- */
.dash-page .dash-memos .memo-item {
    border-bottom: 1px solid var(--slate-100) !important; /* beats .border-bottom (!important) */
    font-size: var(--fs-base) !important; /* customcss.css sets 11.5px !important */
}

    .dash-page .dash-memos .memo-item:last-child {
        border-bottom: 0 !important;
    }

    .dash-page .dash-memos .memo-item:hover {
        border-left: 0;
        background: var(--slate-50);
    }

.dash-page .memo-link {
    padding: 0.875rem 1.25rem !important; /* customcss.css: padding !important */
}

.dash-page .memo-item .memo-item-title {
    color: var(--slate-900) !important; /* customcss.css: colour + size !important */
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-semibold) !important;
    line-height: 1.4;
}

.dash-page .memo-link .text-muted.small {
    margin-top: 0.25rem;
    color: var(--slate-500) !important;
    font-size: var(--fs-sm) !important;
}

.dash-page .memo-item i.fa-file-pdf {
    color: var(--brand) !important; /* customcss.css: red !important */
    font-size: var(--fs-ui);
}

.dash-page .memo-item.dash-card__foot {
    padding: 0.75rem 1.25rem;
    background: var(--slate-50);
}

/* ---- Banner image ---- */
.dash-banner {
    margin-bottom: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

    .dash-banner img {
        display: block;
        width: 100%;
        height: auto;
    }

/* ---- Religion modal (replaces inline styles) ---- */
.dash-modal-icon {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
}

.dash-modal-note {
    line-height: 1.5;
}

/* ---- Wider screens ---- */
@media (min-width: 576px) {
    .dash-quick {
        padding: 1.25rem 1rem;
    }

    /* Desktop / tablet: compact tiles. Phones keep the 3.5rem touch icons. */
    .dash-quick__grid {
        grid-template-columns: repeat(auto-fill, minmax(4.75rem, 5.5rem));
        gap: 0.5rem 0.25rem;
    }

    .dash-tile__link {
        gap: 0.3rem;
    }

    .dash-tile__icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: var(--r-md);
        font-size: 1.25rem;
    }

    .dash-tile .dash-tile__count {
        left: calc(50% + 0.45rem);
    }

    .dash-page .dash-memos .memo-link,
    .dash-page .memo-link {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

@media (min-width: 992px) {
    .dash-notice__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Desktop: hover is the affordance; keep a quiet rest state */
    .dash-vac:hover {
        background: var(--slate-50);
    }
}

/* ---- Phones: app-like density ---- */
@media (max-width: 575.98px) {
    .dash-card,
    .dash-quick,
    .dash-notice,
    .dash-banner {
        border-radius: var(--r-lg);
    }

    .dash-card__head,
    .dash-vac,
    .dash-page .memo-link {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .dash-notice {
        padding: 1rem;
    }

    .dash-kv__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dash-tile__icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .dash-tile .dash-tile__count {
        left: calc(50% + 0.85rem);
    }
}


/* ==========================================================================
   18. PDS FORMS  (MyPDS/* entry pages)
   Reusable pieces for form pages: card grid, field grid, pill choices,
   sticky action bar. First used by PersonalInformation.aspx.
   ========================================================================== */

/* Cards laid out in a grid: one column on phones, two from 1200px */
.pg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.pg-card {
    min-width: 0;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.pg-card__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.pg-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-lg);
}

.pg-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.pg-card__body {
    padding: 1.25rem;
}

/* Fields flow into as many columns as fit (min 12rem each) */
.pg-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
}

    .pg-fields > .form-group {
        min-width: 0;
        margin-bottom: 0;
    }

.pg-field--wide {
    grid-column: 1 / -1;
}

.pg-hint {
    margin: 0.25rem 0 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

/* Pill choices: put CssClass="pg-choice" on an asp:RadioButtonList
   (RepeatLayout="Flow"). The real radio stays in the page for keyboard and
   screen readers; the label is what you see and tap. */
.pg-choice {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .pg-choice input[type="radio"],
    .pg-choice input[type="checkbox"] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
    }

    .pg-choice label {
        margin: 0;
        padding: 0.4375rem 0.875rem;
        border: 1px solid var(--slate-300);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-700) !important; /* beats the global label colour (!important) */
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-medium) !important;
        line-height: 1.3;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

        .pg-choice label:hover {
            border-color: var(--brand);
        }

    .pg-choice input:checked + label {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff !important; /* beats the rule above */
    }

    .pg-choice input:focus-visible + label {
        box-shadow: var(--ring);
    }

    .pg-choice input:disabled + label {
        background: var(--slate-100);
        color: var(--slate-500) !important;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .pg-choice input:disabled:checked + label {
        border-color: var(--slate-400);
        background: var(--slate-400);
        color: #fff !important;
    }

/* Single checkbox with its label (asp:CheckBox inside .pg-check) */
.pg-check label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--slate-700) !important;
    font-weight: var(--fw-regular) !important;
    cursor: pointer;
}

.pg-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--brand);
}

/* Save button row under the cards (only rendered when a button is visible) */
.pg-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

    .pg-form-actions > .btn {
        margin-top: 1rem;
    }

/* Sticky bar for "progress + Next" (first-time PDS entry) */
.pg-actionbar {
    position: sticky;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1010;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-2);
}

.pg-actionbar__progress {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

    .pg-actionbar__progress > *:last-child {
        flex: 1 1 auto;
    }

.pg-actionbar__label {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.3;
    white-space: nowrap;
}

    .pg-actionbar__label strong {
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
    }

.pg-actionbar__buttons {
    margin-left: auto;
}

    .pg-actionbar__buttons .btn {
        min-width: 7rem;
    }

@media (min-width: 1200px) {
    .pg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    /* Phones: the header already shows "N of 14"; keep just the Next button */
    .pg-actionbar {
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        padding: 0.75rem;
    }

    .pg-actionbar__progress {
        display: none;
    }

    .pg-actionbar__buttons {
        width: 100%;
    }

        .pg-actionbar__buttons .btn {
            width: 100%;
        }

    .pg-card__body {
        padding: 1rem;
    }
}


/* ID / reference numbers: tabular digits so formats line up and are easy to check */
.pg-input-id {
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-medium);
    letter-spacing: 0.03em;
}

/* Previous + Next side by side in the sticky bar */
.pg-actionbar__buttons--pair {
    display: flex;
    gap: 0.5rem;
}

    .pg-actionbar__buttons--pair .btn {
        flex: 1 1 auto;
    }


/* Validation message under a field (asp:RegularExpressionValidator CssClass="pg-error") */
.pg-error {
    margin-top: 0.25rem;
    color: var(--bad);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.4;
}

/* Row of status badges under a field (e.g. e-mail confirmed / action required) */
.pg-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

    .pg-status-row a.badge {
        text-decoration: none;
    }

        .pg-status-row a.badge:hover {
            text-decoration: underline;
        }

/* Telerik RadNumericTextBox: match the portal's input shape */
.pg-numeric .riTextBox,
.pg-numeric .riTextBox.riEnabled {
    border-radius: var(--r-md);
    font-weight: var(--fw-medium);
}

/* Empty full-width strip kept for old server-side alert code; never blocks clicks */
.pg-overlay-row {
    z-index: 9999;
    pointer-events: none;
}


/* ---- 18b. Old PDS markup, restyled -------------------------------------
   The PDS pages carried their own <style> blocks (hard-coded hex colours,
   uppercase labels, 1.1rem inputs). Those blocks are gone; the class names
   they defined live here instead, scoped to .pds-page so nothing else on the
   site changes. Bootstrap utilities that carry !important (.border-0,
   .shadow-*, .text-violet, .font-weight-bold) are overridden on purpose. */
.pds-page .uppercase,
.pds-page .text-uppercase {
    text-transform: none !important; /* sentence case; beats Bootstrap .text-uppercase */
    letter-spacing: 0;
}

.pds-page .tiny,
.pds-page .font-size-xs {
    font-size: var(--fs-xs);
}

.pds-page .italic {
    font-style: normal;
}

.pds-page label.text-muted {
    color: var(--slate-700) !important; /* beats .text-muted (!important) */
}

.pds-page label.font-weight-bold,
.pds-page label.font-weight-bolder {
    font-weight: var(--fw-semibold) !important; /* beats the utility (!important) */
}

.pds-page .form-label {
    margin-bottom: 0.375rem;
}

/* Cards */
.pds-page .card.border-0,
.pds-page .card.shadow-sm,
.pds-page .card.shadow-lg {
    border: 1px solid var(--slate-200) !important; /* beats .border-0 (!important) */
    box-shadow: var(--shadow-1) !important; /* beats .shadow-* (!important) */
}

.pds-page .card.border-left-violet {
    border-left: 1px solid var(--slate-200) !important;
}

.pds-page .card-header h4,
.pds-page .card-header h5,
.pds-page .card-header h6 {
    color: var(--slate-900) !important; /* beats .text-violet / .text-dark (!important) */
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold) !important;
}

.pds-page .card-header.bg-gradient-violet,
.pds-page .bg-gradient-violet {
    background: var(--grad-hero) !important;
    border-bottom: 0;
}

    .pds-page .bg-gradient-violet h4,
    .pds-page .bg-gradient-violet h5,
    .pds-page .bg-gradient-violet h6 {
        color: var(--on-hero) !important;
    }

.pds-page .bg-faded-light,
.pds-page .bg-light-gray {
    background-color: var(--slate-50);
}

.pds-page .text-violet {
    color: var(--brand) !important;
}

.pds-page .icon-circle {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
}

/* Inputs: the old .form-control-modern / .custom-select-modern are just .form-control now */
.pds-page .form-control-modern,
.pds-page .custom-select-modern {
    height: auto;
    border: 1px solid var(--slate-300);
    border-radius: var(--r-md);
    background-color: #fff;
    font-size: var(--fs-base);
}

    .pds-page .form-control-modern[readonly] {
        background-color: var(--slate-100);
        color: var(--slate-600);
    }

/* Read-only value shown as text (Address "display mode") */
.pds-page .form-control-display {
    padding: 0.25rem 0;
    border: 0;
    border-bottom: 1px solid var(--slate-100);
    background: transparent;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    pointer-events: none;
}

/* Buttons that only existed in page styles */
.pds-page .btn-light-danger {
    border: 1px solid var(--bad-border);
    background: var(--bad-bg);
    color: var(--bad);
}

    .pds-page .btn-light-danger:hover {
        background: var(--bad);
        color: #fff;
    }

.pds-page .btn-violet-outline {
    border: 1px solid var(--brand);
    background: transparent;
    color: var(--brand);
}

.pds-page .btn-action-icon {
    padding: 0.25rem 0.5rem;
    border: 0;
    background: transparent;
    font-size: var(--fs-md);
}

/* Soft badges that only existed in page styles */
.badge-success-soft {
    border: 1px solid var(--ok-border);
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-danger-soft {
    border: 1px solid var(--bad-border);
    background: var(--bad-bg);
    color: var(--bad);
}

.badge-warning-soft {
    border: 1px solid var(--warn-border);
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-violet-soft,
.pds-page .bg-violet-soft {
    border: 1px solid var(--brand-border);
    background: var(--brand-tint);
    color: var(--brand);
}

/* Dismissible alerts: keep the close button vertically centred */
.pds-page .alert-dismissible .modern-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

/* A divider on desktop between two form columns */
@media (min-width: 992px) {
    .pds-page .border-right {
        border-right: 1px solid var(--slate-200) !important;
    }
}

.pds-page .pg-icon-sm {
    width: 2rem;
    height: 2rem;
}

.pds-page .pg-icon-md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--fs-lg);
}

.pg-form-actions--spaced {
    margin: 1.25rem 0 2rem;
}

    .pg-form-actions--spaced .btn {
        margin-top: 0;
    }

/* Pill tabs (Family: "Spouse & parents" / "Children") */
.pds-page .nav-pills-custom {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .pds-page .nav-pills-custom .nav-link {
        margin: 0;
        padding: 0.5rem 1rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-pill);
        background: #fff;
        box-shadow: none !important; /* beats .shadow-sm on the link */
        color: var(--slate-700);
        font-weight: var(--fw-semibold);
    }

        .pds-page .nav-pills-custom .nav-link:hover {
            border-color: var(--brand);
        }

        .pds-page .nav-pills-custom .nav-link.active {
            border-color: var(--brand);
            background: var(--brand) !important;
            color: #fff !important;
        }

/* Record cards used by the list pages (children, education, eligibility,
   work, voluntary, trainings, references): one look, border + shadow on hover,
   no movement. */
.pds-page .child-profile-card,
.pds-page .education-card,
.pds-page .eligibility-card,
.pds-page .work-card,
.pds-page .voluntary-card,
.pds-page .training-card,
.pds-page .reference-card {
    border: 1px solid var(--slate-200) !important; /* beats .border-* / .border-left utilities */
    border-radius: var(--r-lg) !important;
    background: #fff;
    box-shadow: var(--shadow-1) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    transform: none !important;
}

    .pds-page .child-profile-card:hover,
    .pds-page .education-card:hover,
    .pds-page .eligibility-card:hover,
    .pds-page .work-card:hover,
    .pds-page .voluntary-card:hover,
    .pds-page .training-card:hover,
    .pds-page .reference-card:hover {
        border-color: var(--brand) !important;
        box-shadow: var(--shadow-2) !important;
        transform: none !important;
    }

/* Old notice box (.alert-modern .alert-violet-modern) as an info notice */
.pds-page .alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--info-border);
    border-radius: var(--r-lg);
    background: var(--info-bg);
    box-shadow: none !important; /* beats .shadow-sm (!important) */
}

    .pds-page .alert-modern > i {
        margin: 0.125rem 0 0 !important;
        color: var(--info);
        font-size: var(--fs-lg);
    }

    .pds-page .alert-modern h6 {
        margin: 0 0 0.25rem !important;
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold) !important;
    }

    .pds-page .alert-modern p {
        margin: 0 !important;
        color: var(--slate-700) !important;
        font-size: var(--fs-base) !important;
    }

/* ---- 18c. Add/edit modal used by the PDS list pages ---------------------
   Gradient header (same as the page header), tinted section boxes, one row
   of actions. Replaces the inline-styled banner and pill buttons. */
.pg-modal-head {
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 0;
    background: var(--grad-hero);
    color: var(--on-hero);
}

.pg-modal-head__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--hero-glass-border);
    border-radius: var(--r-lg);
    background: var(--hero-glass);
    color: var(--on-hero);
    font-size: 1.25rem;
}

.pg-modal-head__text {
    flex: 1 1 auto;
    min-width: 0;
}

.pg-modal-head .modal-title {
    margin: 0;
    color: var(--on-hero) !important; /* beats Celestia heading colour (!important) */
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.pg-modal-head__sub {
    margin: 0.125rem 0 0;
    color: var(--on-hero-muted);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.pg-modal-head .close {
    margin: 0;
    padding: 0.25rem 0.5rem;
    color: var(--on-hero);
    opacity: 0.85;
    text-shadow: none;
}

    .pg-modal-head .close:hover {
        color: var(--on-hero);
        opacity: 1;
    }

.pg-modal-section {
    margin-bottom: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: var(--slate-50);
}

.pg-modal-section--accent {
    border-color: var(--brand-border);
    background: var(--brand-soft);
}

.pg-modal-section--dashed {
    border-style: dashed;
    border-color: var(--slate-300);
    background: #fff;
}

.pg-modal-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

    .pg-modal-section__title i {
        color: var(--brand);
    }

.pg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .pg-modal-actions .btn {
        flex: 1 1 100%;
    }
}

/* Search bar: icon inside the field, action button at the right (list pages) */
.pg-searchbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    .pg-searchbar .form-control {
        flex: 1 1 auto;
        padding-left: 2.25rem;
        border: 0;
        box-shadow: none !important; /* the bar draws the focus state, not the input */
    }

.pg-searchbar__icon {
    position: absolute;
    left: 1.1rem;
    color: var(--slate-500);
    pointer-events: none;
}

.pg-searchbar:focus-within {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

/* Large touch actions at the foot of a record card (View / Edit / Remove) */
.pds-page .mobile-action-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.25rem;
    border: 0;
    background: transparent;
    font-size: var(--fs-md);
}

    .pds-page .mobile-action-btn small {
        margin-left: 0.25rem;
        font-size: var(--fs-sm);
        text-transform: none;
    }

/* Yes / No answers (asp:RadioButton CssClass="modern-radio"): the label is the
   button, the real radio stays for keyboard and screen readers. */
.pds-page .modern-radio {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

    .pds-page .modern-radio input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
    }

    .pds-page .modern-radio label {
        display: inline-block;
        min-width: 4.5rem;
        margin: 0;
        padding: 0.4375rem 1rem;
        border: 1px solid var(--slate-300);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-700) !important; /* beats the global label colour (!important) */
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-medium) !important;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

        .pds-page .modern-radio label:hover {
            border-color: var(--brand);
        }

    .pds-page .modern-radio input:checked + label {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff !important; /* beats the rule above */
    }

    .pds-page .modern-radio input:focus-visible + label {
        box-shadow: var(--ring);
    }

/* Cards that hold a short list (Other Information): header icon + rows */
.pds-page .card-header h4 i,
.pds-page .card-header h5 i,
.pds-page .card-header h6 i {
    color: var(--brand);
}

.pds-page .item-row {
    border-bottom: 1px solid var(--slate-100) !important; /* beats .border-bottom (!important) */
    font-size: var(--fs-base);
}

    .pds-page .item-row:last-child {
        border-bottom: 0 !important;
    }

/* A yes/no question and its "give details" box */
.pds-page .question-box,
.pds-page .question-block {
    min-width: 0;
}

/* Final-certification confirmation (Telerik RadCheckBox inside .modern-checkbox-wrapper) */
.pds-page .modern-checkbox-wrapper .p-chk {
    display: flex;
    align-items: flex-start;
}

.pds-page .modern-checkbox-wrapper .p-label {
    margin-left: 0.5rem;
    padding-top: 0.125rem;
    color: var(--slate-800);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    line-height: 1.4;
}

.pds-page .bg-warning-soft {
    background-color: var(--warn-bg);
}


/* ==========================================================================
   19. TELERIK INPUTS
   RadTextBox / RadNumericTextBox / RadDatePicker / RadComboBox /
   RadDropDownList / RadAsyncUpload / RadProgressBar, restyled to match
   .form-control (same height, radius, border, focus ring, font).
   Telerik injects its skin stylesheet after this file, so every selector
   starts with `body` to win on specificity instead of using !important.
   ========================================================================== */

/* Text and numeric inputs (the input element carries the border) */
body .RadInput .riTextBox,
body .RadPicker .riTextBox,
body .RadInput input.riTextBox {
    box-sizing: border-box;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--r-md);
    background-color: #fff;
    box-shadow: none;
    color: var(--slate-800);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .RadInput .riTextBox:hover,
body .RadInput .riHover .riTextBox {
    border-color: var(--slate-400);
}

body .RadInput .riTextBox:focus,
body .RadInput .riFocused .riTextBox,
body .RadInput.riFocused .riTextBox {
    border-color: var(--brand);
    box-shadow: var(--ring);
    outline: 0;
}

body .RadInput .riTextBox.riDisabled,
body .RadInput .riTextBox[readonly],
body .RadInput .riTextBox:disabled {
    background-color: var(--slate-100);
    color: var(--slate-500);
}

body .RadInput .riTextBox::placeholder,
body .RadInput .riEmpty {
    color: var(--slate-500);
}

/* Validation state set by Telerik */
body .RadInput .riTextBox.riError {
    border-color: var(--bad);
}

/* Numeric spin buttons: a quiet column on the right edge of the field */
body .RadInput .riSpin {
    border-radius: 0 var(--r-md) var(--r-md) 0;
    overflow: hidden;
}

    body .RadInput .riSpin a,
    body .RadInput a.riUp,
    body .RadInput a.riDown {
        border-color: var(--slate-300);
        background-color: var(--slate-50);
        transition: background-color 0.15s ease;
    }

        body .RadInput .riSpin a:hover,
        body .RadInput a.riUp:hover,
        body .RadInput a.riDown:hover {
            background-color: var(--brand-tint);
        }

/* Date picker: calendar button sits flush with the input */
body .RadPicker .rcCalPopup,
body .RadPicker a.rcCalPopup {
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

body .RadPicker .RadInput .riTextBox {
    border-radius: var(--r-md);
}

/* Combo box */
body .RadComboBox .rcbInner,
body .RadComboBox .rcbReadOnly {
    box-sizing: border-box;
    min-height: 2.5rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--r-md);
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .RadComboBox .rcbHovered {
    border-color: var(--slate-400);
}

body .RadComboBox .rcbFocused,
body .RadComboBox .rcbExpanded {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

body .RadComboBox .rcbInput,
body .RadComboBox input.rcbInput {
    height: 2.375rem;
    padding: 0 0.875rem;
    border: 0;
    background: transparent;
    color: var(--slate-800);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 2.375rem;
}

body .RadComboBox .rcbActionButton {
    border: 0;
    border-left: 1px solid var(--slate-200);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background-color: var(--slate-50);
}

/* Drop-down list */
body .RadDropDownList .rddlInner {
    box-sizing: border-box;
    min-height: 2.5rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--r-md);
    background-color: #fff;
    background-image: none;
    box-shadow: none;
    color: var(--slate-800);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .RadDropDownList .rddlFakeInput {
    padding-left: 0.875rem;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 2.375rem;
}

body .RadDropDownList .rddlHovered {
    border-color: var(--slate-400);
}

body .RadDropDownList .rddlFocused,
body .RadDropDownList.rddlFocused .rddlInner {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

/* Popups for both: a small card with a soft shadow */
body .RadComboBoxDropDown,
body .rddlPopup {
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    overflow: hidden;
}

body .RadComboBoxDropDown .rcbItem,
body .RadComboBoxDropDown .rcbHovered,
body .RadComboBoxDropDown .rcbSelected,
body .rddlPopup .rddlItem,
body .rddlPopup .rddlItemHovered,
body .rddlPopup .rddlItemSelected {
    padding: 0.4375rem 0.875rem;
    color: var(--slate-800);
}

body .RadComboBoxDropDown .rcbHovered,
body .rddlPopup .rddlItemHovered {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

body .RadComboBoxDropDown .rcbSelected,
body .rddlPopup .rddlItemSelected {
    background-color: var(--brand-tint);
    color: var(--brand);
    font-weight: var(--fw-semibold);
}

/* File upload: "Select" button in the outline style */
body .RadAsyncUpload .ruButton,
body .RadUpload .ruButton {
    padding: 0.4375rem 0.875rem;
    border: 1px solid var(--brand);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: none;
    color: var(--brand);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

    body .RadAsyncUpload .ruButton:hover,
    body .RadUpload .ruButton:hover {
        background: var(--brand-tint);
    }

/* Progress bar: slim brand-coloured track */
body .RadProgressBar {
    overflow: hidden;
    border-radius: var(--r-pill);
}

    body .RadProgressBar .rpbStateSelected,
    body .RadProgressBar .rpbStateSelected.rpbStateDefault {
        background-color: var(--brand);
        background-image: none;
    }

/* A label above a Telerik control always sits on its own line */
.form-group > label,
.pg-fields > .form-group > label {
    display: block;
}

/* Phones: 16px so iOS does not zoom when a field is focused */
@media (max-width: 767.98px) {
    body .RadInput .riTextBox,
    body .RadComboBox .rcbInput,
    body .RadDropDownList .rddlFakeInput,
    body .RadDropDownList .rddlInner {
        font-size: var(--fs-md);
    }

    body .RadInput .riTextBox,
    body .RadComboBox .rcbInner,
    body .RadDropDownList .rddlInner {
        min-height: var(--tap-min);
    }

    body .RadInput .riTextBox {
        height: var(--tap-min);
    }
}

/* Address "display mode": values read as clear text on a white card */
.pds-page .form-control-display {
    border-bottom-color: var(--slate-200);
    color: var(--slate-900);
    font-size: var(--fs-md);
}

.pds-page label.tiny {
    font-size: var(--fs-sm);
}


/* ---- 18d. Record cards (.pg-record) -------------------------------------
   One card for every PDS list: education, eligibility, work, voluntary,
   trainings, references, children. Anatomy:
     .pg-record__head   icon tile + eyebrow / title / subtitle
     .pg-record__badges status badges
     .pg-record__facts  label/value grid (--2 / --3 columns, __fact--wide)
     .pg-record__foot   actions (Edit / Delete ...), full-width tap targets on phones
   Border and shadow change on hover; nothing moves. */
.pg-record {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .pg-record:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2);
    }

.pg-record__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}

.pg-record__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.25rem;
}

.pg-record__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.pg-record__eyebrow {
    margin: 0 0 0.125rem;
    color: var(--brand);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.pg-record__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pg-record__sub {
    margin: 0.125rem 0 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pg-record__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0 1rem;
    margin-bottom: 0.25rem;
}

    .pg-record__badges:empty {
        display: none;
    }

    .pg-record__badges .badge {
        padding: 0.3em 0.7em;
        font-weight: var(--fw-semibold);
    }

    /* Status badges that the code-behind still sends as Bootstrap red / green */
    .pg-record__badges .badge-danger {
        border: 1px solid var(--bad-border);
        background: var(--bad-bg);
        color: var(--bad);
    }

    .pg-record__badges .badge-success {
        border: 1px solid var(--ok-border);
        background: var(--ok-bg);
        color: var(--ok);
    }

.pg-record__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 0.75rem 1rem;
}

.pg-record__badges + .pg-record__facts,
.pg-record__head + .pg-record__facts {
    margin-top: 0.5rem;
    border-top: 1px solid var(--slate-100);
}

.pg-record__facts + .pg-record__facts {
    padding-top: 0;
}

.pg-record__facts--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-record__facts--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-record__fact {
    min-width: 0;
}

    .pg-record__fact dt {
        margin: 0;
        color: var(--slate-500);
        font-size: var(--fs-xs);
        font-weight: var(--fw-medium);
    }

    .pg-record__fact dd {
        margin: 0.125rem 0 0;
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-medium);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

.pg-record__fact--wide {
    grid-column: 1 / -1;
}

.pg-record__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: auto;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

    .pg-record__foot:empty {
        display: none;
    }

/* Card actions (RadButton LinkButton): solid pill buttons with a white icon, colour by function.
   View = blue, Edit = amber, Delete / Remove / Cancel = red. A soft same-colour gradient and a
   white ring give them the glossy "pill" look; the label is hidden (.sr-only) and a tooltip names the action.
   Telerik's skin colours the link and its inner span, so the white is forced onto everything inside (!important). */
body .pg-record__btn {
    --btn-solid: var(--slate-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2rem;
    padding: 0;
    /* the fill, border and shape are forced: Telerik paints RadButton links with a more specific rule */
    border: 0 !important;
    border-radius: var(--r-pill) !important;
    background-color: var(--btn-solid) !important;
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--btn-solid) 78%, #fff), var(--btn-solid)) !important;
    box-shadow: 0 0 0 3px #fff, var(--shadow-2);
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

body .pg-record__btn,
body .pg-record__btn * {
    color: #fff !important;
    text-decoration: none !important;
}

    body .pg-record__btn:hover {
        filter: brightness(1.07);
        box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px color-mix(in srgb, var(--btn-solid) 60%, transparent);
    }

    body .pg-record__btn:active {
        filter: brightness(0.94);
    }

    body .pg-record__btn:focus-visible {
        outline: 2px solid var(--btn-solid);
        outline-offset: 4px;
    }

    body .pg-record__btn i {
        font-size: var(--fs-lg);
        line-height: 1;
    }

/* Why the rule below repeats .RadButton.rbLinkButton: Celestia's style.css resets every link-type
   RadButton with `.RadButton.rbLinkButton { background:none!important; border:none!important;
   padding:0!important; box-shadow:none!important; display:inline-block }`. That rule is more specific
   than `.pg-record__btn`, so the pill fill never showed. Same specificity + !important, loaded later, wins. */
body .RadButton.rbLinkButton.pg-record__btn {
    display: inline-flex;
    padding: 0 !important;
    border: 0 !important;
    background-color: var(--btn-solid) !important;
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--btn-solid) 78%, #fff), var(--btn-solid)) !important;
    box-shadow: 0 0 0 3px #fff, var(--shadow-2) !important;
}

    body .RadButton.rbLinkButton.pg-record__btn:hover {
        box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px color-mix(in srgb, var(--btn-solid) 60%, transparent) !important;
    }

body .pg-record__btn--view {
    --btn-solid: var(--action-view);
}

body .pg-record__btn--edit {
    --btn-solid: var(--action-edit);
}

body .pg-record__btn--danger {
    --btn-solid: var(--action-delete);
}

/* Room for the white ring */
.pg-record__foot {
    gap: 0.75rem;
    padding: 0.625rem 1rem;
}

@media (max-width: 575.98px) {
    .pg-record__facts--3 {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    }

    body .pg-record__btn {
        width: 3.25rem;
        height: var(--tap-min);
    }
}

/* Floating "Add" button on the PDS list pages: leave room under the last card,
   and sit above the sticky Previous/Next bar when that bar is shown. */
.pds-page {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

.pds-page:has(.pg-actionbar) .fab-btn {
    bottom: calc(6.5rem + env(safe-area-inset-bottom));
}


/* ---- 18e. One page rhythm for every PDS page ----------------------------
   The old pages mixed p-3 / p-md-4 / px-4, mx-auto, col-lg-10 / col-lg-11,
   container-fluid panes and 15px gutters, so some pages had wide margins and
   others none. Everything under .pds-page now follows the header:
     - content starts at the header's left and right edge
     - columns are 1rem apart (0.5rem on each side)
     - rows are 1rem apart
   The utility classes carry !important, so overriding them needs it too. */
.pds-page > .row {
    margin: 0 -0.5rem 1rem !important; /* beats .mt-*, .mx-lg-2 (!important) */
    padding: 0 !important; /* beats .p-*, .px-*, .pt-*, .pb-* (!important) */
}

    .pds-page > .row:first-child {
        margin-top: 0 !important;
    }

.pds-page .row:not(.no-gutters) {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

    .pds-page .row:not(.no-gutters) > [class*="col-"],
    .pds-page .row:not(.no-gutters) > .col {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

.pds-page > .row > [class*="col-"] {
    padding-right: 0.5rem !important; /* beats .px-md-* on the column (!important) */
    padding-left: 0.5rem !important;
}

/* A row with a single column (alerts, search, list) fills the page width,
   whatever narrow col-lg-10 / col-xl-5 / mx-auto the old markup had. */
.pds-page > .row > [class*="col-"]:only-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0 !important; /* beats .mx-auto (!important) */
    margin-left: 0 !important;
}

/* Record lists: cards line up with the header edge, 1rem apart */
.pds-page [id$="itemPlaceholderContainer"] {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

/* Panes inside a tab (Family) are not extra containers */
.pds-page .tab-pane.container-fluid,
.pds-page .tab-content > .tab-pane {
    padding-right: 0;
    padding-left: 0;
}

/* Form-like pages keep a readable line length but stay left-aligned with the header */
.pds-page--form > .row > [class*="col-"]:only-child,
.pds-page--form > div:not(.row):not(.pg-actionbar) {
    max-width: 64rem;
}

.pds-page--compact > .row > [class*="col-"]:only-child {
    max-width: 40rem;
}

/* Cards stacked in a column always have the same gap */
.pds-page .card {
    margin-bottom: 1rem;
}

    .pds-page .card.h-100,
    .pds-page .row .card {
        margin-bottom: 0;
    }

/* Search bar with a Telerik RadTextBox (Work Experience): same look as the plain
   input version. Telerik writes width:100% inline, so the wrapper needs !important
   to share the row with the Find button. */
body .pg-searchbar .pg-searchbar__input,
body .pg-searchbar .RadInput {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

    body .pg-searchbar .RadInput .riTextBox {
        height: 2.25rem;
        padding-left: 2.25rem;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

        body .pg-searchbar .RadInput .riTextBox:focus,
        body .pg-searchbar .RadInput .riFocused .riTextBox {
            border: 0;
            box-shadow: none;
        }


/* ==========================================================================
   20. LEAVE FORMS  (Modules/Leave, Modules/JobOrderLeave)
   Replaces assets/css/leave/PlantillaLeaveApplicationForm.css (blue/cobalt
   colours, 1.4rem gradient badges). Same class names, portal tokens.
   Scoped to .pds-page like the other form pages.
   ========================================================================== */

/* Cards and panels */
.pds-page .modern-glass-card {
    border: 1px solid var(--slate-200) !important; /* beats .border / .border-0 utilities (!important) */
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1) !important; /* beats .shadow-sm (!important) */
    overflow: hidden;
}

.pds-page .bg-faded-slate,
.pds-page .bg-light-faded,
.pds-page .bg-light-soft {
    background-color: var(--slate-50);
}

.pds-page .bg-indigo-soft {
    background-color: var(--brand-soft);
}

.pds-page .text-slate {
    color: var(--slate-800);
}

.pds-page .text-indigo {
    color: var(--brand);
}

.pds-page .border-gray {
    border: 1px solid var(--slate-300);
    background-color: #fff !important; /* beats .bg-* on the field */
}

.pds-page .border-bottom-dashed {
    border-bottom: 1px dashed var(--slate-200);
}

.pds-page .small-text {
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.pds-page .tracking-wider {
    letter-spacing: 0.02em;
}

.pds-page .shadow-xs {
    box-shadow: var(--shadow-1);
}

/* Round icon badge at the start of a panel title */
.pg-tile-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-lg);
}

    .pg-tile-icon i {
        color: inherit !important; /* beats .text-success / .text-danger on the glyph */
    }

.pg-tile-icon--sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: var(--fs-md);
}

/* Dark callout panels (AEFI, monetization): the sidebar navy, not brown/black */
.pg-dark-panel,
.pds-page .bg-dark {
    border-radius: var(--r-lg);
    background-color: var(--nav-bg) !important; /* beats .bg-dark (!important) */
    color: #fff;
}

.pg-dark-panel {
    padding: 1rem;
}

/* Guidelines (numbered steps) */
.pds-page .guidelines-card {
    padding: 1.25rem;
    border: 1px solid var(--info-border);
    border-radius: var(--r-lg);
    background: var(--info-bg);
}

.pds-page .guidelines-title {
    margin-bottom: 1rem;
    color: var(--info);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    text-transform: none;
}

.pds-page .guidelines-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .pds-page .guidelines-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 0.875rem;
    }

        .pds-page .guidelines-list li:last-child {
            margin-bottom: 0;
        }

    .pds-page .guidelines-list p {
        margin: 0;
        color: var(--slate-700);
        font-size: var(--fs-base);
        line-height: 1.5;
    }

    .pds-page .guidelines-list strong {
        color: var(--slate-900);
    }

.pds-page .step-number {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 1.375rem;
    height: 1.375rem;
    margin: 0.125rem 0.75rem 0 0;
    border-radius: var(--r-sm);
    background: var(--info);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.pds-page .guidelines-container {
    overflow: hidden;
    border-radius: var(--r-lg);
}

.pds-page .guideline-item {
    transition: background-color 0.15s ease;
}

    .pds-page .guideline-item:hover {
        background-color: var(--slate-50);
    }

.pds-page .icon-indicator {
    min-width: 2rem;
    padding-top: 0.125rem;
    font-size: var(--fs-md);
}

/* Leave balances shown on the monetization panel */
.pds-page .balance-container {
    padding: 0.5rem 0;
}

.pds-page .balance-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 8.5rem;
    margin-bottom: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--hero-glass-border);
    border-radius: var(--r-lg);
}

.pds-page .vl-theme {
    background: var(--brand);
}

.pds-page .sl-theme {
    background: var(--ok);
}

.pds-page .balance-label {
    color: var(--on-hero-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    text-transform: none;
}

.pds-page .balance-value {
    color: #fff;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
}

/* Choice cards (monetization reasons) and requirement note */
.pds-page .reason-item {
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .pds-page .reason-item:hover {
        border-color: var(--brand);
        background: var(--slate-50);
    }

.pds-page .requirement-tag {
    display: block;
    padding: 0.625rem 0.875rem;
    border-left: 3px solid var(--brand);
    border-radius: var(--r-md);
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

/* Tile-style radio (asp:RadioButton CssClass="modern-radio-tile") */
.pds-page .modern-radio-tile {
    display: block;
    width: 100%;
}

    .pds-page .modern-radio-tile input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

    .pds-page .modern-radio-tile label {
        display: block;
        margin: 0;
        padding: 0.75rem 1rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-700) !important; /* beats the global label colour (!important) */
        font-weight: var(--fw-semibold) !important;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .pds-page .modern-radio-tile input[type="radio"]:checked + label {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff !important; /* beats the rule above */
    }

/* Leave-balance badge set by code (font-weight-bold badge badge-primary) */
.pds-page .badge-primary {
    border: 1px solid var(--brand-border);
    background: var(--brand-tint);
    color: var(--brand);
}

/* The two big buttons under the remarks box */
.pds-page .btn.flex-fill {
    min-height: var(--tap-min);
}

/* ---- Calendar (RadCalendar), used by the leave forms ---- */
body .RadCalendar {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
}

    body .RadCalendar .rcMainTable {
        width: 100%;
    }

    body .RadCalendar .rcTitlebar,
    body .RadCalendar .rcTitle {
        color: var(--slate-900);
        font-weight: var(--fw-semibold);
    }

    body .RadCalendar .rcTitlebar {
        border-bottom: 1px solid var(--slate-100);
        background: var(--slate-50);
    }

    body .RadCalendar .rcHeader th,
    body .RadCalendar th {
        color: var(--slate-500);
        font-size: var(--fs-xs);
        font-weight: var(--fw-semibold);
    }

    body .RadCalendar td a {
        border-radius: var(--r-md);
        color: var(--slate-800);
    }

    body .RadCalendar td.rcOtherMonth a {
        color: var(--slate-400);
    }

    body .RadCalendar td.rcHover a {
        background: var(--brand-tint);
        color: var(--brand);
    }

    body .RadCalendar td.rcToday a {
        box-shadow: inset 0 0 0 1px var(--brand);
        color: var(--brand);
        font-weight: var(--fw-semibold);
    }

    body .RadCalendar td.rcSelected a {
        background: var(--brand);
        color: #fff;
        font-weight: var(--fw-semibold);
    }

    body .RadCalendar td.rcDisabled a,
    body .RadCalendar td.rcOutOfRange a {
        color: var(--slate-300);
    }

/* The big grey wrapper card behind the leave form: a soft slate, not Bootstrap grey */
.pds-page .card.bg-light {
    background-color: var(--slate-50) !important; /* beats .bg-light (!important) */
}



/* ---- 20b. Leave application polish (same layout, cleaner blocks) ----------
   Name/position strip, field captions, sub-panels, total, actions. The
   violet accent bars (border-left-cobalt) are replaced by plain bordered
   boxes; info boxes use the info status colours. */
.lv-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--info-border);
    border-radius: var(--r-lg);
    background: var(--info-bg);
    color: var(--slate-700);
    font-size: var(--fs-base);
    line-height: 1.5;
}

    .lv-notice > i {
        flex: 0 0 auto;
        margin: 0.125rem 0 0 !important; /* beats .mr-* on the old icon */
        color: var(--info);
        font-size: var(--fs-lg);
    }

    .lv-notice b,
    .lv-notice strong {
        color: var(--slate-900);
    }

/* First card: employee strip on top, fields below */
.pds-page .card.lv-form-card {
    overflow: hidden;
    background: #fff;
}

.lv-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.lv-person__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.25rem;
}

.lv-person__text {
    min-width: 0;
}

.lv-person__name,
.lv-person__role {
    display: block;
    overflow-wrap: anywhere;
}

.lv-person__name {
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

.lv-person__role {
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

/* Captions above fields (asp:Label renders a span, so it needs its own style) */
.lv-label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.lv-card-title {
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

/* Boxes for leave-type specific inputs (purpose, location, study reason) */
.lv-subpanel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: var(--slate-50);
}

.lv-subpanel__title {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

/* "Total number of days applied" */
.lv-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--slate-700);
    font-weight: var(--fw-semibold);
}

    .lv-total label {
        margin: 0;
        color: var(--slate-700) !important; /* beats the global label colour (!important) */
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-semibold) !important;
    }

    /* The code swaps this label's class between plain text and a badge */
    .lv-total span {
        color: var(--brand);
        font-size: var(--fs-xl);
        font-weight: var(--fw-bold);
    }

        .lv-total span.badge {
            font-size: var(--fs-md);
        }

/* Save / Cancel row under the remarks box */
.lv-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}

    .lv-actions .btn {
        min-height: var(--tap-min);
    }

/* Accent bars become plain bordered boxes; info boxes use the info colours */
.pds-page .border-left-cobalt {
    border: 1px solid var(--slate-200) !important; /* beats .border-left-* (!important) */
    border-radius: var(--r-lg);
}

.pds-page .bg-light-cobalt {
    border-color: var(--info-border) !important;
    background-color: var(--info-bg);
    color: var(--slate-700);
}

    .pds-page .bg-light-cobalt > i {
        color: var(--info);
    }

/* Header of a leave-type requirement panel: small caption, title, soft badge */
.pds-page .meta-label {
    display: block;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: none;
}

.pds-page .modern-glass-card .border-bottom .badge-pill {
    border: 1px solid var(--brand-border) !important; /* beats .border-0 (!important) */
    background: var(--brand-tint);
    box-shadow: none !important; /* beats .shadow-sm (!important) */
    color: var(--brand);
    font-weight: var(--fw-semibold);
}

/* Lists of required documents */
.pds-page .attachment-list ol {
    padding-left: 1.25rem;
}

.pds-page .main-requirement-list > li {
    color: var(--slate-800);
}

.pds-page .sub-requirement-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--slate-700);
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* Calendar frame: the card around it is the only border. Removes the wrapper border,
   our own border and Telerik's skin frame / shadow so nothing is drawn twice. */
.lv-calendar {
    overflow: hidden;
    border-radius: var(--r-md);
}

body div.RadCalendar,
body div.RadCalendar .rcMainTable,
body div.RadCalendar table {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body div.RadCalendar .rcTitlebar {
    border: 0;
    border-radius: var(--r-md) var(--r-md) 0 0;
    background: var(--slate-50);
}

body div.RadCalendar th,
body div.RadCalendar .rcHeader th {
    border-bottom: 1px solid var(--slate-100);
}

body div.RadCalendar td {
    border: 0;
}

/* Character counter states (set by the script on the leave form) */
.lv-counter--warn {
    color: var(--warn) !important; /* beats .text-muted (!important) */
}

.lv-counter--limit {
    color: var(--bad) !important; /* beats .text-muted (!important) */
    font-weight: var(--fw-semibold);
}


/* ==========================================================================
   21. MY LEAVE APPLICATIONS  (Modules/Leave/MyLeaveApplications.aspx)
   Summary tiles that double as filters, status-coloured record cards
   (.pg-record from section 18d), search and "Show more".
   ========================================================================== */

/* The [hidden] attribute must win over display rules set by the components */
.pg-empty[hidden],
.pg-searchbar[hidden],
.la-more[hidden] {
    display: none;
}

/* ---- Summary tiles ---- */
.la-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.la-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .la-stat:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2);
    }

    .la-stat:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .la-stat.is-active {
        border-color: var(--brand);
        background: var(--brand-soft);
        box-shadow: var(--ring);
    }

.la-stat__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    font-size: 1.25rem;
}

.la-stat__icon--all {
    background: var(--brand-tint);
    color: var(--brand);
}

.la-stat__icon--pending {
    background: var(--warn-bg);
    color: var(--warn);
}

.la-stat__icon--approved {
    background: var(--ok-bg);
    color: var(--ok);
}

.la-stat__icon--rejected {
    background: var(--bad-bg);
    color: var(--bad);
}

.la-stat__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .la-stat__text strong {
        color: var(--slate-900);
        font-size: var(--fs-2xl);
        font-variant-numeric: tabular-nums;
        font-weight: var(--fw-bold);
        line-height: 1.1;
    }

    .la-stat__text span {
        color: var(--slate-500);
        font-size: var(--fs-sm);
        line-height: 1.3;
    }

/* ---- Cards ---- */
.la-item.la-hidden {
    display: none;
}

.la-card--approved .pg-record__icon {
    background: var(--ok-bg);
    color: var(--ok);
}

.la-card--rejected .pg-record__icon {
    background: var(--bad-bg);
    color: var(--bad);
}

.la-card--pending .pg-record__icon {
    background: var(--warn-bg);
    color: var(--warn);
}

.la-card--approved .pg-record__eyebrow,
.la-card--rejected .pg-record__eyebrow,
.la-card--pending .pg-record__eyebrow {
    color: var(--slate-500);
}

.la-dates {
    display: block;
    margin-top: 0.125rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    line-height: 1.4;
}

.la-days {
    color: var(--brand);
    font-size: var(--fs-xl) !important; /* beats .pg-record__fact dd */
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-bold) !important;
}

.la-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0 1rem 0.75rem;
}

.la-remarks {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-600);
    font-size: var(--fs-sm);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .la-remarks i {
        flex: 0 0 auto;
        margin-top: 0.125rem;
        color: var(--slate-400);
    }

.la-more {
    margin: 1rem 0 0;
    text-align: center;
}

@media (max-width: 991.98px) {
    .la-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .la-stat {
        padding: 0.75rem;
    }

    .la-stat__icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .la-stat__text strong {
        font-size: var(--fs-xl);
    }
}


/* Edit / Delete pair in the short lists on Other Information */
.pds-page .item-row > .d-flex {
    gap: 0.5rem;
}


/* ==========================================================================
   22. SERVICE RECORD  (Recruitment/ServiceRecord.aspx)
   Summary tiles, a Timeline / Table switch, a timeline of record cards
   (.pg-record from section 18d) and the official table (RadGrid).
   ========================================================================== */

/* ---- Summary tiles ---- */
.sr-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sr-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.sr-stat__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.25rem;
}

.sr-stat__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .sr-stat__text strong {
        overflow: hidden;
        color: var(--slate-900);
        font-size: var(--fs-xl);
        font-variant-numeric: tabular-nums;
        font-weight: var(--fw-bold);
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sr-stat__text span {
        color: var(--slate-500);
        font-size: var(--fs-sm);
    }

/* ---- Toolbar: hint + view switch ---- */
.sr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sr-hint {
    margin: 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

.sr-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    .sr-toggle button {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.375rem 0.875rem;
        border: 0;
        border-radius: var(--r-pill);
        background: transparent;
        color: var(--slate-600);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .sr-toggle button:hover {
            background: var(--slate-100);
        }

        .sr-toggle button.is-active {
            background: var(--brand);
            color: #fff;
        }

        .sr-toggle button:focus-visible {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

/* A view that is switched off keeps its width (the grid needs it to size its columns) but takes no room */
.sr-view--off {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* ---- Timeline ---- */
.sr-timeline {
    display: flex;
    flex-direction: column-reverse; /* records arrive oldest first; show newest first */
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-item {
    position: relative;
    padding-left: 2rem;
}

    /* line down to the next (older) card */
    .sr-item::before {
        content: "";
        position: absolute;
        top: 1.5rem;
        bottom: -1.25rem;
        left: 0.4375rem;
        width: 2px;
        background: var(--slate-200);
    }

    .sr-item:first-child::before {
        display: none; /* the oldest record is last on screen: nothing below it */
    }

.sr-dot {
    position: absolute;
    top: 1.25rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-tint);
}

.sr-item:last-child .sr-dot {
    background: var(--ok); /* the latest position */
    box-shadow: 0 0 0 4px var(--ok-bg);
}

.sr-card {
    height: auto;
}

/* ---- Table view ---- */
body .sr-grid.RadGrid {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
}

    body .sr-grid.RadGrid .rgHeader {
        background: var(--slate-50);
        color: var(--slate-600);
        font-weight: var(--fw-semibold);
        text-transform: none;
    }

@media (max-width: 991.98px) {
    .sr-summary {
        grid-template-columns: 1fr 1fr;
    }

    .sr-stat--wide {
        grid-column: 1 / -1;
    }

    .sr-toggle {
        display: none; /* the table is a desktop view */
    }
}


/* ==========================================================================
   23. PAYSLIP  (Modules/Payroll/Payslip.aspx)
   Payroll periods on the left, the payslip report on the right. A CSS grid,
   because the code-behind replaces the column classes on phones.
   ========================================================================== */
.ps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

    /* Bootstrap col-* classes may be on these two (the code-behind sets them): ignore their width */
    .ps-layout > div {
        min-width: 0;
        max-width: none;
        padding: 0;
    }

@media (min-width: 992px) {
    .ps-layout {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }
}

/* ---- List of periods ---- */
.ps-list,
.ps-viewer {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.ps-list__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .ps-list__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.ps-list__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.ps-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

a.ps-row:hover {
    background: var(--slate-50);
    color: inherit;
    text-decoration: none;
}

a.ps-row:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.ps-row.is-selected {
    background: var(--brand-soft);
    box-shadow: inset 3px 0 0 var(--brand);
}

.ps-row__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-lg);
}

.ps-row__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

    .ps-row__text strong {
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
        line-height: 1.3;
    }

    .ps-row__text small {
        color: var(--slate-500);
        font-size: var(--fs-sm);
    }

.ps-row__go {
    flex: 0 0 auto;
    color: var(--slate-400);
    font-size: var(--fs-lg);
}

.ps-row.is-selected .ps-row__go {
    color: var(--brand);
}

.ps-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: var(--slate-50);
}

.ps-pager__count {
    flex: 1 1 100%;
    order: -1;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    text-align: center;
}

/* ---- Payslip viewer ---- */
.ps-viewer__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.ps-viewer__hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

    .ps-viewer__hint i {
        color: var(--info);
    }

.ps-viewer__body {
    padding: 0.5rem;
}


/* ==========================================================================
   24. OTHER INCOME  (Modules/Payroll/OtherIncome.aspx)
   Month switcher in the page header and one card per income item (.pg-record from section 18d).
   ========================================================================== */

/* ---- Month switcher: previous / month picker / next, as one pill in the header ---- */
.oi-month {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* The two buttons are standard Telerik buttons: their skin paints background, border and gradient,
   so the glass look is forced (!important), the same way as the card action buttons. */
body .RadButton.oi-month__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    border: 1px solid var(--hero-glass-border) !important;
    border-radius: var(--r-md) !important;
    background-color: var(--hero-glass) !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

body .oi-month__btn,
body .oi-month__btn * {
    color: var(--on-hero) !important;
    font-size: var(--fs-lg);
}

    body .RadButton.oi-month__btn:hover {
        background-color: var(--hero-glass-border) !important;
    }

.oi-month__picker {
    min-width: 11rem;
}

    body .oi-month__picker .riTextBox {
        font-weight: var(--fw-semibold);
        text-align: center;
    }

/* ---- Cards ---- */
.oi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1rem;
}

.oi-item {
    min-width: 0;
}

.oi-group {
    padding: 0 1rem 0.5rem;
}

.oi-group__title {
    margin: 0.5rem 0 0.25rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.oi-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .oi-lines li {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.375rem 0;
        border-bottom: 1px solid var(--slate-100);
        color: var(--slate-600);
        font-size: var(--fs-base);
    }

        .oi-lines li:last-child {
            border-bottom: 0;
        }

    .oi-lines strong {
        color: var(--slate-900);
        font-variant-numeric: tabular-nums;
        font-weight: var(--fw-medium);
        white-space: nowrap;
    }

.oi-lines--minus strong {
    color: var(--bad);
}

/* The amount the employee takes home: the most important number on the card */
.oi-net {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--brand-border);
    background: var(--brand-soft);
}

    .oi-net span {
        color: var(--slate-700);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
    }

    .oi-net strong {
        color: var(--brand);
        font-size: var(--fs-xl);
        font-variant-numeric: tabular-nums;
        font-weight: var(--fw-bold);
    }

    .oi-net small {
        color: var(--slate-500);
        font-size: var(--fs-xs);
        font-weight: var(--fw-semibold);
    }

@media (max-width: 767.98px) {
    .oi-month {
        width: 100%;
    }

    .oi-month__picker {
        flex: 1 1 auto;
    }

    .oi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ==========================================================================
   25. DEDUCTIONS  (Modules/Payroll/Deductions.aspx)
   Reuses the Payslip layout (.ps-layout / .ps-list / .ps-row / .ps-viewer, section 23):
   deductions on the left, payment history on the right.
   ========================================================================== */
.dd-item {
    position: relative;
    align-items: center;
}

    .dd-item .ps-row__text {
        gap: 0.125rem;
    }

.dd-amount {
    color: var(--slate-900);
    font-size: var(--fs-lg);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

    .dd-amount small,
    .dd-row-amount small {
        margin-right: 0.125rem;
        color: var(--slate-500);
        font-size: var(--fs-xs);
        font-weight: var(--fw-medium);
    }

.dd-status {
    margin-top: 0.25rem;
}

/* Invisible buttons that cover the whole row so it is one big tap target */
.dd-hit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.dd-item:hover {
    background: var(--slate-50);
}

.dd-item.is-selected:hover {
    background: var(--brand-soft);
}

.dd-item:focus-within {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

/* ---- Payment history ---- */
.dd-detail-title {
    margin: 0;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

    .dd-detail-title:empty {
        display: none;
    }

.dd-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .dd-row:nth-child(even) {
        background: var(--slate-50);
    }

.dd-row-date {
    color: var(--slate-700);
    font-size: var(--fs-base);
}

    .dd-row-date i {
        margin-right: 0.25rem;
        color: var(--slate-400);
    }

.dd-row-amount {
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

.dd-total {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--brand-border);
    background: var(--brand-soft);
}

.dd-total-label {
    color: var(--slate-700);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

/* The code-behind writes "<span class='font-weight-light'>PHP </span>" + amount into this heading */
.dd-total-amount {
    margin: 0;
    color: var(--brand);
    font-size: var(--fs-xl);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-bold);
}

    .dd-total-amount span {
        color: var(--slate-500);
        font-size: var(--fs-sm);
    }


/* ==========================================================================
   26. DEPARTMENT INFORMATION  (Department/DepartmentInformation.aspx)
   Details on the left (department, cluster), tabs + cards on the right
   (personnel, units, areas). On phones the tabs become a bottom tab bar.
   The code-behind rewrites the CssClass of the tab buttons, so the tab states are keyed on the
   classes it writes: desktop bg-primary / bg-secondary (selected) and bg-light (not selected);
   phone btn-violet-selected (selected).
   ========================================================================== */
.dp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .dp-layout {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }
}

.dp-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

    /* All panels hidden by the code-behind (phone tabs): do not leave an empty gap */
    .dp-side:not(:has(*)) {
        display: none;
    }

.dp-main {
    min-width: 0;
}

/* ---- Detail panels ---- */
.dp-panel {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.dp-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .dp-panel__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.dp-panel__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.dp-panel__body {
    padding: 1rem 1.25rem 0.5rem;
}

.dp-field {
    display: block;
    margin: 0 0 0.875rem;
}

    .dp-field > span {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--slate-500);
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
    }

    .dp-field .form-control {
        background: var(--slate-50);
        color: var(--slate-900);
        font-weight: var(--fw-medium);
    }

/* ---- Desktop tabs: a segmented control ---- */
.dp-tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: var(--slate-100);
}

/* Bootstrap's bg-* / text-* utilities are !important, so the tab states are forced the same way */
body .dp-tabs .RadButton {
    margin: 0 !important;
    padding: 0.5rem 1.25rem !important;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--slate-600) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-semibold) !important;
    cursor: pointer;
}

    body .dp-tabs .RadButton *,
    body .dp-tabs .RadButton .rbText {
        color: inherit !important;
        font-weight: inherit !important;
    }

    body .dp-tabs .RadButton:hover {
        background-color: var(--slate-200) !important;
    }

    body .dp-tabs .RadButton.bg-primary,
    body .dp-tabs .RadButton.bg-secondary {
        background-color: #fff !important;
        box-shadow: var(--shadow-1) !important;
        color: var(--brand) !important;
    }

/* ---- Sections ---- */
.dp-section {
    min-width: 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
}

.dp-avatar {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--r-md);
    object-fit: cover;
    background: var(--slate-100);
}

/* The Edit button is a RadImageButton (the code-behind casts to that type): its PNG icon is made white */
body .dp-imgbtn img,
body .dp-imgbtn .rbImage {
    width: 1.125rem;
    height: 1.125rem;
    filter: brightness(0) invert(1);
}

/* ---- Phone tab bar ---- */
.dp-tabbar {
    z-index: 1031;
    border-top: 1px solid var(--slate-200);
    background: #fff;
    box-shadow: var(--shadow-2);
}

    body .dp-tabbar .btn {
        min-height: var(--tap-min);
        padding: 0.25rem 0.25rem;
        border: 0;
        border-top: 3px solid transparent;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        color: var(--slate-500);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
    }

    body .dp-tabbar .btn-violet-selected {
        border-top-color: var(--brand);
        background: var(--brand-soft);
        color: var(--brand);
    }

/* Phones: leave room above the tab bar for the last card and the floating Add button */
@media (max-width: 991.98px) {
    .dp-page {
        padding-bottom: calc(var(--tap-min) + 5rem);
    }

    body .dp-page .fab-btn {
        bottom: calc(var(--tap-min) + 1rem);
    }

    .dp-staff {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .dp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Department cards: names, positions and unit names come from the database in capitals and can be long,
   so the text stays small and the badges wrap instead of overflowing the card. */
.dp-card .pg-record__title {
    font-size: var(--fs-base);
}

.dp-card .pg-record__sub {
    font-size: var(--fs-xs);
}

body .dp-card .pg-record__badges .badge {
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.dp-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}


/* ==========================================================================
   27. MY IPCR / PERFORMANCE MONITORING  (Performance/PerformanceMonitoring.aspx)
   This page carries about a thousand lines of its own <style> (blue palette, uppercase labels, rules for
   .btn / .modal-content / .table that apply to the whole page). They are NOT removed yet, because the
   weekly monitoring grid is built in code-behind and depends on some of them. This section sits on top
   of them: every selector starts with `body .ipcr-page` so it out-ranks the page's rules (the page <style>
   comes after this file in the document) without adding !important, and only changes colour, case and size.
   ========================================================================== */

/* ---- Slim header: this page is a work screen (the user types into the grid), so the header is one short
   line and every pixel saved goes to the table ---- */
.pg-header--slim {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r-lg);
}

    .pg-header--slim .pg-header__main {
        flex-basis: auto;
        gap: 0.75rem;
    }

    .pg-header--slim .pg-header__icon {
        width: 2rem;
        height: 2rem;
        border-radius: var(--r-md);
        font-size: var(--fs-lg);
    }

    .pg-header--slim .pg-header__main > div {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 0.75rem;
    }

    .pg-header--slim .pg-title {
        font-size: var(--fs-md);
    }

    .pg-header--slim .pg-sub {
        margin: 0;
        font-size: var(--fs-sm);
    }

@media (max-width: 767.98px) {
    .pg-header--slim .pg-sub {
        display: none;
    }
}

/* ---- Page frame: same side margin as the header and the other pages ---- */
body .ipcr-page {
    padding: 0 var(--gutter) 1rem;
}

    body .ipcr-page [id$="RadPageView1"],
    body .ipcr-page [id$="RadPageView2"],
    body .ipcr-page [id$="RadPageView3"] {
        background-color: transparent !important; /* the page views carry Bootstrap bg-white (!important) */
    }

/* ---- Tabs: underline style, flush with the content ---- */
/* The page's own rules for the tab strip are all !important, so the same properties are forced here. */
body .ipcr-page .RadTabStrip_BlackMetroTouch {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--slate-200) !important;
    border-radius: 0;
    background: transparent !important;
}

    body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLI {
        margin: 0 0.25rem 0 0 !important;
    }

    body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLink {
        position: relative;
        padding: 0.625rem 1rem !important;
        border: 0 !important;
        border-radius: var(--r-md) var(--r-md) 0 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--slate-500) !important;
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

        body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLink:hover {
            background: var(--slate-100) !important;
            color: var(--slate-900) !important;
        }

        body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLink .rtsTxt,
        body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLink .rtsText {
            color: inherit !important;
            font-size: inherit !important;
            font-weight: inherit !important;
        }

    body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsSelected .rtsLink {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--brand) !important;
    }

        /* The selected tab sits on the strip's bottom line */
        body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsSelected .rtsLink::after {
            content: "";
            position: absolute;
            right: 0.5rem;
            bottom: -1px;
            left: 0.5rem;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--brand);
        }

/* ---- Filter bar and field labels ---- */
body .ipcr-page .row.no-gutters.shadow-sm.border.rounded {
    border-color: var(--slate-200) !important; /* beats Bootstrap .border (!important) */
    border-radius: var(--r-lg) !important; /* beats Bootstrap .rounded (!important) */
    box-shadow: var(--shadow-1) !important; /* beats Bootstrap .shadow-sm (!important) */
}

body .ipcr-page label.uppercase,
body .ipcr-page span.uppercase,
body .ipcr-page h6.uppercase,
body .ipcr-page .meta-label,
body .ipcr-page .matrix-card-header {
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    text-transform: none;
}

body .ipcr-page .meta-value {
    color: var(--slate-900);
    font-size: var(--fs-base);
}

body .ipcr-page .custom-field-label {
    color: var(--slate-600) !important; /* the page sets this with !important */
}

/* ---- Period switch (1st / 2nd, First period / Second period) ---- */
body .ipcr-page .modern-radio-individual label {
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

body .ipcr-page .modern-radio-individual input[type="radio"]:checked + label {
    border-color: var(--brand) !important; /* the page sets these with !important */
    background: var(--brand) !important;
    color: #fff !important;
}

/* ---- Month navigator above the weekly grid ---- */
body .ipcr-page .month-display-title {
    color: var(--slate-900) !important; /* the page sets these with !important */
    font-size: var(--fs-xl) !important;
    font-weight: var(--fw-semibold) !important;
}

body .ipcr-page .navigation-button-cluster {
    border-color: var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-100);
}

body .ipcr-page .nav-arrow-btn {
    color: var(--slate-600) !important;
}

    body .ipcr-page .nav-arrow-btn:hover {
        color: var(--brand) !important;
    }

/* ---- Cards ---- */
body .ipcr-page .modern-glass-card {
    border-color: var(--slate-200) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--shadow-1) !important;
}

body .ipcr-page .text-slate {
    color: var(--slate-900);
}

body .ipcr-page .bg-faded-slate {
    background-color: var(--slate-50);
}

/* ---- IPCR progress steps: green = done, brand outline = current ---- */
body .ipcr-page .workflow-node {
    border-color: var(--slate-300);
    border-radius: var(--r-md);
}

body .ipcr-page .workflow-stepper::before {
    background: var(--slate-200);
}

body .ipcr-page .node-number {
    color: var(--slate-500);
    font-size: var(--fs-base);
}

body .ipcr-page .node-label {
    color: var(--slate-600);
    font-size: var(--fs-sm);
}

    body .ipcr-page .node-label a {
        color: var(--brand);
    }

body .ipcr-page .workflow-step.completed .workflow-node {
    border-color: var(--ok);
    background: var(--ok);
    box-shadow: none;
}

body .ipcr-page .workflow-step.completed .node-label {
    color: var(--slate-900);
}

body .ipcr-page .workflow-step.active .workflow-node {
    border-color: var(--brand) !important; /* the page sets these with !important */
    background: var(--brand-soft) !important;
    box-shadow: none;
}

body .ipcr-page .workflow-step.active .node-number {
    color: var(--brand);
}

body .ipcr-page .status-indicator-pulse {
    background: var(--ok);
}

/* ---- Status chips ---- */
body .ipcr-page .status-badge {
    border-radius: var(--r-sm) !important;
    font-size: var(--fs-xs) !important;
    letter-spacing: 0;
    text-transform: none;
}

body .ipcr-page .locked-state {
    background-color: var(--bad-bg) !important;
    color: var(--bad) !important;
}

body .ipcr-page .unlocked-state {
    background-color: var(--ok-bg) !important;
    color: var(--ok) !important;
}

body .ipcr-page .badge-soft-primary {
    background: var(--brand-tint);
    color: var(--brand);
}

/* ---- Grids (monitoring grid, MFO lists): colours and case only; sizes of cells are left alone ---- */
body .ipcr-page .RadGrid_Bootstrap .rgHeader {
    background: var(--slate-50) !important;
    color: var(--slate-700);
    font-size: var(--fs-sm) !important;
    text-transform: none !important;
}

body .ipcr-page .RadGrid_Bootstrap .rgSelectedRow {
    background: var(--brand) !important;
}

body .ipcr-page .RadGrid_Bootstrap .rgRow:hover,
body .ipcr-page .RadGrid_Bootstrap .rgAltRow:hover {
    background: var(--brand-soft) !important;
}

body .ipcr-page .table .rgFooter td {
    border-color: var(--slate-300) !important;
    background-color: var(--slate-100) !important;
    color: var(--slate-900) !important;
    font-size: var(--fs-sm) !important;
}

body .ipcr-page .table .rgSelectedCell {
    background-color: var(--brand) !important;
}

body .ipcr-page .table td:focus-within {
    box-shadow: inset 0 0 0 2px var(--brand) !important;
}

body .ipcr-page .table tr:focus-within,
body .ipcr-page .table .rgRow:focus-within,
body .ipcr-page .table .rgAltRow:focus-within {
    background-color: var(--brand-soft) !important;
}

body .ipcr-page .table tr:focus-within td:first-child {
    background-color: var(--brand-tint) !important;
    color: var(--brand) !important;
}

/* ---- Modals ---- */
body .custom-ipcr-modal .modal-content {
    border-radius: var(--r-xl) !important;
    box-shadow: var(--shadow-3) !important;
}

body .custom-ipcr-modal .modal-title {
    font-size: var(--fs-md) !important;
    font-weight: var(--fw-semibold);
}

body .custom-ipcr-modal .section-card-title {
    color: var(--slate-600) !important;
    font-size: var(--fs-sm) !important;
    letter-spacing: 0;
    text-transform: none;
}

body .custom-ipcr-modal .matrix-data-table th {
    color: var(--slate-600) !important;
    background-color: var(--slate-50) !important;
}

/* ---- Buttons that carry their own blue ---- */
body .primary-dashboard-btn,
body .modal-submit-btn {
    border-radius: var(--r-md) !important;
    background-color: var(--brand) !important;
    color: #fff;
    font-size: var(--fs-base) !important;
}

    body .primary-dashboard-btn:hover,
    body .modal-submit-btn:hover {
        background-color: var(--brand-hover) !important;
    }

/* ---- Phones ---- */
@media (max-width: 575.98px) {
    body .ipcr-page .RadTabStrip_BlackMetroTouch {
        display: block;
    }

    body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLink {
        padding: 0.5rem 0.75rem !important; /* the page forces its own padding */
    }
}

/* ---- Compact toolbars, more room for the grid ---- */
/* Year / period / IPCR bar */
body .ipcr-page .row.no-gutters.shadow-sm.border.rounded {
    margin-bottom: 0.5rem !important; /* beats Bootstrap mb-3 (!important) */
}

    body .ipcr-page .row.no-gutters.shadow-sm.border.rounded > .col-12 {
        padding: 0.5rem 0.75rem !important; /* beats p-2 / p-md-3 (!important) */
        gap: 0.5rem 1rem;
    }

/* Edit / Cancel / Standards: same height and shape as the dropdowns beside them */
body .ipcr-page .row.no-gutters.shadow-sm.border.rounded .btn {
    height: 2.375rem;
    padding: 0 1rem !important; /* beats px-3 (!important) */
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold) !important; /* beats font-weight-bold (!important) */
    box-shadow: none !important; /* beats shadow-sm (!important) */
}

/* Month title and arrows */
body .ipcr-page .dashboard-header-row {
    padding: 0.25rem 0;
    margin-bottom: 0.25rem;
}

body .ipcr-page .col-lg-12:has(> .dashboard-header-row) {
    padding-right: 0;
    padding-left: 0;
}

/* The weekly grid goes edge to edge inside the page */
body .ipcr-page .row.p-lg-1.ml-2.mr-2 {
    margin-right: 0 !important; /* beats mr-2 / ml-2 (!important) */
    margin-left: 0 !important;
    padding: 0 !important;
}

body .ipcr-page .table-responsive {
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
}

/* ---- Header sentence on one line; tab strip without the skin's blue line ---- */
.pg-header--slim .pg-header__main {
    flex: 1 1 auto;
}

.pg-header--slim .pg-sub {
    max-width: none;
}

/* The Telerik skin draws a blue line under the tab list; the strip has its own grey line */
body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsLevel,
body .ipcr-page .RadTabStrip_BlackMetroTouch .rtsUL {
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---- Year / period / IPCR bar: one row, one control height, grouped ---- */
body .ipcr-page .row.no-gutters.shadow-sm.border.rounded > .col-12 {
    align-items: center;
    justify-content: space-between;
}

    /* the two groups inside the bar */
    body .ipcr-page .row.no-gutters.shadow-sm.border.rounded > .col-12 > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1.5rem;
        margin: 0 !important; /* beats mr-lg-4 / pb-3 / pt-3 (!important) */
        padding: 0 !important;
        border: 0 !important;
    }

        body .ipcr-page .row.no-gutters.shadow-sm.border.rounded > .col-12 > div > div {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0 !important;
        }

body .ipcr-page .row.no-gutters.shadow-sm.border.rounded label.font-weight-bold {
    margin: 0;
    color: var(--slate-600) !important; /* beats text-muted (!important) */
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium) !important; /* beats font-weight-bold (!important) */
}

/* Same height for the year list and the IPCR list (the IPCR one grew taller from its inner padding) */
body .ipcr-page .custom-select-modern {
    height: 2.375rem !important;
}

body .ipcr-page .RadDropDownList_Bootstrap .rddlInner {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 2.375rem;
    padding: 0 0.75rem !important; /* the page forces its own padding */
    line-height: 1.2;
}

body .ipcr-page .RadComboBox_Bootstrap .rcbInput {
    height: 2.25rem;
}

/* 1st / 2nd: one segmented control instead of two loose buttons */
body .ipcr-page .modern-radio-list {
    gap: 0;
    padding: 0.1875rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-100);
}

body .ipcr-page .modern-radio-individual label {
    min-width: 4rem;
    padding: 0.3125rem 0.875rem;
    border: 0;
    border-radius: calc(var(--r-md) - 2px);
    background: transparent;
    color: var(--slate-600);
}

@media (max-width: 767.98px) {
    body .ipcr-page .row.no-gutters.shadow-sm.border.rounded > .col-12 > div {
        width: 100%;
    }
}

/* ---- "My IPCR" tab (RadPageView2): selector card, rating, progress card, MFO lists ---- */
/* Top area: two columns with an even gap, cards all the same height of padding */
@media (min-width: 992px) {
    body .ipcr-page [id$="RadPageView2"] .row.no-gutters > .col-lg-4 {
        padding-right: 1rem;
    }
}

body .ipcr-page [id$="RadPageView2"] .row.no-gutters {
    padding-top: 0 !important; /* beats pt-2 (!important) */
    margin-bottom: 1rem !important; /* beats mb-4 (!important) */
}

body .ipcr-page [id$="RadPageView2"] .row.no-gutters .row.justify-content-center {
    margin-bottom: 1rem !important;
}

body .ipcr-page [id$="RadPageView2"] .row.no-gutters .col-xl-11 {
    flex: 0 0 100%;
    max-width: 100%;
}

body .ipcr-page [id$="RadPageView2"] .col-lg-8 > .card {
    margin: 0 !important; /* beats mx-3 (!important) */
}

/* Selector card */
body .ipcr-page [id$="RadPageView2"] .modern-glass-card > .card-body {
    padding: 1.25rem !important; /* beats p-4 (!important) */
}

body .ipcr-page [id$="RadPageView2"] .modern-glass-card .row.mb-4,
body .ipcr-page [id$="RadPageView2"] .modern-glass-card .row.align-items-end.mb-4 {
    margin-bottom: 1rem !important;
}

body .ipcr-page [id$="RadPageView2"] .modern-glass-card .btn {
    height: 2.375rem;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold) !important;
    box-shadow: none !important;
}

body .ipcr-page [id$="RadPageView2"] .modern-radio-list {
    width: 100%;
}

body .ipcr-page [id$="RadPageView2"] .modern-radio-individual {
    flex: 1 1 0;
}

    body .ipcr-page [id$="RadPageView2"] .modern-radio-individual label {
        width: 100%;
    }

/* Client satisfaction rating */
body .ipcr-page [id$="RadPageView2"] .card.bg-light {
    padding: 1rem 1.25rem !important; /* beats p-4 (!important) */
    border: 1px solid var(--slate-200) !important;
    border-left: 3px solid var(--brand) !important;
    border-radius: var(--r-lg) !important;
    background: #fff !important; /* beats bg-light (!important) */
    box-shadow: var(--shadow-1) !important;
}

    body .ipcr-page [id$="RadPageView2"] .card.bg-light h6 {
        margin-bottom: 0.75rem !important;
        color: var(--slate-900) !important; /* beats text-dark (!important) */
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
    }

    body .ipcr-page [id$="RadPageView2"] .card.bg-light label {
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium) !important;
    }

    body .ipcr-page [id$="RadPageView2"] .card.bg-light .form-control,
    body .ipcr-page [id$="RadPageView2"] .card.bg-light input {
        background: var(--slate-50) !important; /* beats bg-white (!important) */
        color: var(--slate-900);
        font-weight: var(--fw-semibold);
    }

/* IPCR status card */
body .ipcr-page [id$="RadPageView2"] .col-lg-8 > .card > .card-header {
    padding: 0.875rem 1.25rem !important; /* beats py-3 (!important) */
    border-top: 0 !important;
    border-bottom: 1px solid var(--slate-100) !important;
}

    body .ipcr-page [id$="RadPageView2"] .col-lg-8 > .card > .card-header h5 {
        color: var(--slate-900);
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold) !important;
    }

body .ipcr-page [id$="RadPageView2"] .bg-faded-slate {
    padding: 1rem 1.25rem !important; /* beats p-4 (!important) */
    border-bottom: 1px solid var(--slate-100) !important;
    background-color: var(--slate-50);
}

    body .ipcr-page [id$="RadPageView2"] .bg-faded-slate .meta-label {
        margin-bottom: 0.125rem;
    }

    body .ipcr-page [id$="RadPageView2"] .bg-faded-slate .meta-value {
        font-weight: var(--fw-semibold);
    }

body .ipcr-page [id$="RadPageView2"] .col-lg-8 .card-body > .p-5 {
    padding: 1.75rem 1.25rem 1.5rem !important; /* beats p-5 (!important) */
}

body .ipcr-page [id$="RadPageView2"] .workflow-stepper {
    min-width: 760px;
}

    body .ipcr-page [id$="RadPageView2"] .workflow-stepper::before {
        top: 1.25rem;
        left: 3rem;
        right: 3rem;
    }

body .ipcr-page [id$="RadPageView2"] .workflow-node {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.625rem;
    border-width: 2px;
}

body .ipcr-page [id$="RadPageView2"] .node-label {
    font-weight: var(--fw-semibold);
}

/* Section titles above the two MFO lists */
body .ipcr-page [id$="RadPageView2"] h5.font-weight-bold.mb-3 {
    margin-bottom: 0.625rem !important;
    padding-left: 0.625rem;
    border-left: 3px solid var(--brand);
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold) !important;
    line-height: 1.2;
}

body .ipcr-page [id$="RadPageView2"] .row.pb-5 {
    padding-right: 0;
    padding-left: 0;
}

    body .ipcr-page [id$="RadPageView2"] .row.pb-5 > .col-12 {
        padding-right: 0;
        padding-left: 0;
    }

/* The two grids as bordered cards, with a readable empty message */
body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap .rgNoRecords td,
body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap .rgNoRecords div {
    padding: 1.5rem 1rem !important;
    color: var(--slate-500);
    font-size: var(--fs-base);
    text-align: center;
}

@media (max-width: 991.98px) {
    body .ipcr-page [id$="RadPageView2"] .row.no-gutters > .col-lg-4 {
        padding-right: 0;
    }

    body .ipcr-page [id$="RadPageView2"] .col-lg-8 {
        margin-top: 1rem;
    }
}

/* ---- IPCR MFO list + MFO standard: one grouped card, two sections ---- */
body .ipcr-page [id$="RadPageView2"] .row.pb-5 > .col-12 > .row {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    body .ipcr-page [id$="RadPageView2"] .row.pb-5 > .col-12 > .row > [class*="col-lg-"] {
        margin-bottom: 0 !important; /* beats mb-4 (!important) */
        padding: 1rem 1.25rem 1.25rem;
    }

    body .ipcr-page [id$="RadPageView2"] .row.pb-5 > .col-12 > .row > .col-lg-5 {
        border-top: 1px solid var(--slate-100);
        background: var(--slate-50);
    }

@media (min-width: 992px) {
    body .ipcr-page [id$="RadPageView2"] .row.pb-5 > .col-12 > .row > .col-lg-5 {
        border-top: 0;
        border-left: 1px solid var(--slate-100);
    }
}

/* Inside the card the grids are plain bordered tables, not cards of their own */
body .ipcr-page [id$="RadPageView2"] .row.pb-5 .RadGrid_Bootstrap {
    border-radius: var(--r-md);
    box-shadow: none;
}

/* Selected MFO row: the skin paints the cells, so the cells get the brand colour (not just the row) */
body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap .rgSelectedRow,
body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap .rgSelectedRow > td {
    background: var(--brand-tint) !important;
    color: var(--brand-hover) !important;
    font-weight: var(--fw-semibold);
}

body .ipcr-page [id$="RadPageView2"] .RadGrid_Bootstrap .rgSelectedRow > td {
    border-color: var(--brand-border) !important;
}


/* ==========================================================================
   28. VIEW AND SUBMIT IPCR  (Performance/ViewAndSubmitIPCR.aspx)
   Selection bar (year, period, IPCR, submit) above the IPCR report.
   ========================================================================== */
.vs-bar {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) auto minmax(14rem, 1fr) auto;
    gap: 0.75rem 1.25rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.vs-field {
    min-width: 0;
}

.vs-field__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

/* Same control height for the year list, the IPCR list, the switch and the buttons */
.vs-bar .RadComboBox_Bootstrap .rcbInput {
    height: 2.25rem;
}

.vs-bar .RadDropDownList_Bootstrap .rddlInner {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 2.375rem;
    padding: 0 0.75rem;
    line-height: 1.2;
}

/* Period switch: one grouped control (the radio inputs are hidden, the labels are the buttons) */
.vs-seg {
    gap: 0;
    padding: 0.1875rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-100);
}

    .vs-seg .modern-radio-individual {
        margin: 0 !important; /* beats mr-1 / ml-1 (!important) */
    }

        .vs-seg .modern-radio-individual input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .vs-seg .modern-radio-individual label {
            display: block;
            min-width: 6rem;
            margin: 0;
            padding: 0.3125rem 0.875rem;
            border-radius: calc(var(--r-md) - 2px);
            color: var(--slate-600);
            cursor: pointer;
            font-size: var(--fs-sm);
            font-weight: var(--fw-semibold);
            text-align: center;
            transition: background-color 0.15s ease, color 0.15s ease;
        }

        .vs-seg .modern-radio-individual input[type="radio"]:checked + label {
            background: var(--brand);
            color: #fff;
        }

        .vs-seg .modern-radio-individual input[type="radio"]:focus-visible + label {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

/* Submit / Cancel */
.vs-actions {
    display: flex;
    gap: 0.5rem;
}

body .vs-actions .RadButton {
    min-width: 6rem;
    height: 2.375rem;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
    cursor: pointer;
}

    /* Telerik's skin paints these buttons with its own blue / red, so the fills are forced */
    body .vs-actions .RadButton.btn-primary {
        background: var(--brand) !important;
    }

        body .vs-actions .RadButton.btn-primary:hover {
            background: var(--brand-hover) !important;
        }

    body .vs-actions .RadButton.btn-danger {
        background: var(--bad) !important;
    }

    body .vs-actions .RadButton * {
        color: inherit !important;
        font-weight: inherit !important;
    }

@media (max-width: 991.98px) {
    .vs-bar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .vs-field--ipcr,
    .vs-actions {
        grid-column: 1 / -1;
    }

    .vs-actions .RadButton {
        flex: 1 1 0;
    }
}

@media (max-width: 575.98px) {
    .vs-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .vs-seg .modern-radio-individual label {
        min-width: 0;
    }
}


/* ==========================================================================
   29. INDIVIDUAL DEVELOPMENT PLAN  (Performance/IndividualDevelopmentPlanPage.aspx)
   Guide, IPCR selection (reuses .vs-bar from section 28), status notice, and the IDP form card.
   ========================================================================== */

/* ---- "What is an IDP?" guide ---- */
.idp-guide {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.idp-guide__toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 0;
    background: transparent;
    color: var(--slate-900);
    cursor: pointer;
    text-align: left;
}

    .idp-guide__toggle:hover {
        background: var(--slate-50);
    }

    .idp-guide__toggle:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

.idp-guide__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-lg);
}

.idp-guide__title {
    flex: 1 1 auto;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.idp-guide__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

    .idp-guide__hint i {
        font-size: var(--fs-lg);
        transition: transform 0.2s ease;
    }

.idp-guide__toggle[aria-expanded="true"] .idp-guide__hint i {
    transform: rotate(180deg);
}

.idp-guide__body {
    padding: 0 1.25rem;
}

    .idp-guide__body.show {
        padding-bottom: 1rem;
        border-top: 1px solid var(--slate-100);
    }

    .idp-guide__body > p {
        margin: 0.875rem 0 0.75rem;
        color: var(--slate-600);
        font-size: var(--fs-base);
    }

.idp-guide__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.idp-guide__step {
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-50);
}

    .idp-guide__step h3 {
        margin: 0 0 0.125rem;
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
    }

    .idp-guide__step p {
        margin: 0;
        color: var(--slate-600);
        font-size: var(--fs-sm);
    }

/* ---- Selection bar: three fields, no action column ---- */
.vs-bar.idp-bar {
    grid-template-columns: minmax(8rem, 11rem) auto minmax(14rem, 1fr);
}

@media (max-width: 991.98px) {
    .vs-bar.idp-bar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .vs-bar.idp-bar {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Status notices (HTML written by the code-behind: .alert .alert-danger / -warning / -info / -secondary) ---- */
.idp-alert:empty {
    display: none;
}

.idp-alert {
    margin-bottom: 1rem;
}

    .idp-alert .alert {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0.875rem 1.125rem;
        border: 1px solid var(--slate-200);
        border-left-width: 4px;
        border-radius: var(--r-lg);
        background: #fff;
        box-shadow: var(--shadow-1);
        color: var(--slate-700);
        font-size: var(--fs-base);
    }

        .idp-alert .alert > i {
            margin: 0 !important; /* beats the mr-3 the markup carries (!important) */
            font-size: var(--fs-lg);
        }

    .idp-alert .alert-danger {
        border-color: var(--bad-bg);
        border-left-color: var(--bad);
    }

        .idp-alert .alert-danger > i {
            color: var(--bad);
        }

    .idp-alert .alert-warning {
        border-color: var(--warn-bg);
        border-left-color: var(--warn);
    }

        .idp-alert .alert-warning > i {
            color: var(--warn);
        }

    .idp-alert .alert-info {
        border-color: var(--info-bg);
        border-left-color: var(--info);
    }

        .idp-alert .alert-info > i {
            color: var(--info);
        }

    .idp-alert .alert-secondary {
        border-left-color: var(--slate-400);
    }

        .idp-alert .alert-secondary > i {
            color: var(--slate-500);
        }

    .idp-alert .alert strong {
        color: var(--slate-900);
    }

/* ---- The form ---- */
.idp-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.idp-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .idp-card__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.idp-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.idp-card__body {
    padding: 1.25rem;
}

/* Detected competency gap */
.idp-gap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--bad-bg);
    border-left: 4px solid var(--bad);
    border-radius: var(--r-md);
    background: var(--slate-50);
}

.idp-gap__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-md);
    background: var(--bad-bg);
    color: var(--bad);
    font-size: var(--fs-lg);
}

.idp-gap__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.idp-gap__label {
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

    .idp-gap__label:hover {
        color: var(--slate-900);
        text-decoration: none;
    }

.idp-gap__value {
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    overflow-wrap: anywhere;
}

/* Intervention plan */
.idp-field__label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.idp-field textarea.form-control {
    min-height: 9rem;
    resize: vertical;
}

    .idp-field textarea.form-control[readonly] {
        background: var(--slate-50);
        color: var(--slate-600);
    }

.idp-field__count {
    margin-top: 0.375rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    text-align: right;
}

    .idp-field__count .is-near {
        color: var(--warn);
    }

    .idp-field__count .is-over {
        color: var(--bad);
        font-weight: var(--fw-semibold);
    }

.idp-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
}

@media (max-width: 575.98px) {
    .idp-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   30. REQUEST TO UNLOCK IPCR  (Performance/IPCR_RequestUnlock.aspx)
   History grid and the request form + status steps. Notices reuse .idp-alert (section 29).
   ========================================================================== */

/* ---- Tabs: underline style, same as the My IPCR page ---- */
.ur-tabs.nav-tabs {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--slate-200);
}

    .ur-tabs.nav-tabs .nav-link {
        position: relative;
        margin-bottom: -1px;
        padding: 0.625rem 1rem;
        border: 0;
        border-radius: var(--r-md) var(--r-md) 0 0;
        background: transparent;
        color: var(--slate-500);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
    }

        .ur-tabs.nav-tabs .nav-link:hover {
            background: var(--slate-100);
            color: var(--slate-900);
        }

        .ur-tabs.nav-tabs .nav-link.active {
            background: transparent;
            color: var(--brand);
        }

            .ur-tabs.nav-tabs .nav-link.active::after {
                content: "";
                position: absolute;
                right: 0.5rem;
                bottom: 0;
                left: 0.5rem;
                height: 3px;
                border-radius: 3px 3px 0 0;
                background: var(--brand);
            }

/* ---- History ---- */
.ur-gridcard {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    /* the columns carry an inline "Medium" header size */
    .ur-gridcard .RadGrid_Bootstrap .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700);
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold);
    }

    .ur-gridcard .RadGrid_Bootstrap {
        border: 0 !important;
    }

/* ---- Request tab: form on the left, status on the right ---- */
.ur-request {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.ur-request__notice {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .ur-request {
        grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    }
}

.ur-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.ur-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .ur-card__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.ur-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

    .ur-card__title span {
        color: inherit;
        font-weight: inherit;
    }

.status-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--ok);
}

.ur-card__body {
    padding: 1.25rem;
}

.ur-field {
    margin-bottom: 1rem;
}

.ur-field__label {
    display: block;
    margin: 0 0 0.375rem;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.ur-field .RadComboBox {
    width: 100% !important; /* the control writes an inline width */
}

.ur-period table {
    border-collapse: separate;
    border-spacing: 0 0.25rem;
}

.ur-period td {
    padding: 0 1.25rem 0 0;
}

    .ur-period td input {
        margin-right: 0.375rem;
    }

    .ur-period td label {
        margin: 0;
        color: var(--slate-700);
        font-size: var(--fs-base);
    }

.ur-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
}

@media (max-width: 575.98px) {
    .ur-actions .btn {
        width: 100% !important; /* beats w-auto (!important) */
    }
}

/* ---- Status steps (the code-behind writes "step" / "step active" and toggles the check / number icon) ---- */
.ur-track-scroll {
    overflow-x: auto;
    padding: 1.5rem 1.25rem 1.25rem;
}

.track.ur-track {
    display: flex;
    height: auto;
    min-width: 640px;
    margin: 0;
    background: transparent;
}

    .track.ur-track .step {
        flex: 1 1 0;
        width: auto;
        margin: 0;
        padding: 0 0.25rem;
        text-align: center;
    }

        /* the line that leads into a step: grey, green when that step is done */
        .track.ur-track .step::before {
            content: "";
            position: absolute;
            top: 1.25rem;
            left: -50%;
            width: 100%;
            height: 2px;
            background: var(--slate-200);
        }

        .track.ur-track .step:first-child::before {
            display: none;
        }

        .track.ur-track .step.active::before {
            background: var(--ok);
        }

    .track.ur-track .icon {
        position: relative;
        z-index: 1;
        display: inline-grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        border: 2px solid var(--slate-300);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-500);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
        line-height: 1;
    }

        .track.ur-track .icon i {
            font-size: var(--fs-lg);
        }

    .track.ur-track .step.active .icon {
        border-color: var(--ok);
        background: var(--ok);
        color: #fff;
    }

    .track.ur-track .text {
        display: block;
        margin-top: 0.5rem;
        color: var(--slate-500);
        font-size: var(--fs-xs);
        font-weight: var(--fw-semibold);
        line-height: 1.3;
    }

    .track.ur-track .step.active .text {
        color: var(--slate-900);
        font-weight: var(--fw-semibold);
    }

/* ---- Information modal ---- */
#modalmessage .modal-content {
    border: 0;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
}

#modalmessage .modal-header.bg-info {
    background: var(--info-bg) !important; /* beats Bootstrap bg-info (!important) */
    border-bottom: 0;
}

    #modalmessage .modal-header.bg-info h5 {
        margin: 0;
        color: var(--info) !important; /* beats text-white (!important) */
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
    }


/* ==========================================================================
   31. JOB-ORDER EVALUATION MONITORING  (Department/JobOrderEvaluation/JOEvalMonitoring.aspx)
   Filters + summary on the left, results (table or cards) on the right.
   The code-behind sets the badge classes (badge-success / -warning / -danger / -info) on the card badges,
   the summary counts and the grid cells, so those are mapped to the status tokens here.
   ========================================================================== */
.je-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .je-layout {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    }
}

.je-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.je-main {
    min-width: 0;
}

.je-side__title {
    margin: 0.25rem 0 -0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

/* ---- Panels ---- */
.je-panel {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.je-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .je-panel__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.je-panel__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.je-panel__body {
    padding: 1rem 1.25rem 1.25rem;
}

/* ---- Filters (Metro-skin combos with an inline label) ---- */
.je-filters .RadComboBox {
    width: 100% !important; /* the control writes an inline width */
}

.je-filters .RadComboBox_Metro .rcbInput,
.je-filters .RadComboBox_Metro .rcbLabel {
    font-size: var(--fs-base);
}

.je-filters .RadComboBox_Metro .rcbLabel {
    color: var(--slate-600);
}

body .je-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    background: var(--brand) !important; /* replaces the old blue gradient button */
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

    body .je-apply * {
        color: inherit !important;
    }

    body .je-apply:hover {
        background: var(--brand-hover) !important;
    }

/* ---- Pending for your approval ---- */
.je-pending {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--warn-bg);
    border-left: 4px solid var(--warn);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.je-pending__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 1.25rem;
}

.je-pending__text {
    display: flex;
    flex-direction: column;
}

.je-pending__label {
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.je-pending__count {
    color: var(--slate-900);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1.1;
}

/* ---- Summary per department ---- */
.je-summary {
    padding: 1rem 1.25rem;
}

.je-summary__title {
    margin: 0 0 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

    .je-summary__title small {
        color: var(--slate-500);
        font-size: var(--fs-sm);
        font-weight: var(--fw-regular);
    }

.je-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3125rem 0;
    color: var(--slate-600);
    font-size: var(--fs-base);
}

.je-summary__val {
    color: var(--slate-900);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

.je-summary__val--ok {
    color: var(--ok);
}

.je-summary__val--info {
    color: var(--info);
}

.je-summary__val--warn {
    color: var(--warn);
}

/* ---- Results ---- */
.je-results__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.je-results__body {
    padding: 1rem 1.25rem 1.25rem;
}

body .je-toggle {
    height: 2.25rem;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-md) !important;
    background: var(--slate-50) !important;
    color: var(--slate-700) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
}

    body .je-toggle * {
        color: inherit !important;
        font-weight: inherit !important;
    }

    body .je-toggle:hover {
        background: var(--slate-100) !important;
    }

/* ---- Card view ---- */
.je-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
}

.je-card__avatar {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--slate-100);
    border-radius: 50%;
    object-fit: cover;
}

.je-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
}

.je-card__label {
    margin: 0.5rem 0 0.25rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.je-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ---- Table view ---- */
.je-gridwrap {
    margin-top: 0.5rem;
}

    .je-gridwrap .RadGrid {
        border-radius: var(--r-md);
    }

    /* the header carries text-uppercase from the markup */
    .je-gridwrap .rgHeader {
        text-transform: none !important;
        letter-spacing: 0 !important;
        color: var(--slate-700);
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
    }

/* ---- Badge colours written by the code-behind (card view, summary, grid cells) ---- */
.je-page .badge-success {
    background: var(--ok-bg);
    color: var(--ok);
}

.je-page .badge-warning {
    background: var(--warn-bg);
    color: var(--warn);
}

.je-page .badge-danger {
    background: var(--bad-bg);
    color: var(--bad);
}

.je-page .badge-info {
    background: var(--info-bg);
    color: var(--info);
}

.je-page .badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}


/* ==========================================================================
   32. UPDATE PRC LICENSE VALIDITY  (Modules/UploadFilesForVerification/PRC/UpdateValidityOfLicense.aspx)
   Uses the MyPDS list-page pattern (.pg-record cards, .fab-btn, .pg-modal-head); only the extras live here.
   ========================================================================== */
.prc-hint {
    margin: 0 0 0.75rem;
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

/* Attachment viewer: dark on purpose, so the document is the brightest thing on screen */
.prc-viewer {
    overflow: hidden;
    border: 0;
    border-radius: var(--r-xl);
    background: var(--slate-900);
}

.prc-viewer__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 0;
    background: var(--slate-900);
}

.prc-viewer__foot {
    justify-content: space-between;
    border-top: 1px solid var(--slate-700);
    background: var(--slate-800);
}

@media (max-width: 575.98px) {
    .prc-viewer__body {
        min-height: 50vh;
    }
}


/* ==========================================================================
   33. PRC MONITORING  (Modules/UploadFilesForVerification/PRC/PRCStaffMonitoring.aspx)
   Three count tiles (they filter the table), a status pie chart and the staff table.
   ========================================================================== */
.prc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .prc-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.625rem;
    }
}

.prc-stat {
    --prc-tone: var(--brand);
    --prc-tone-bg: var(--brand-tint);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--prc-tone);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .prc-stat:hover {
        border-color: var(--prc-tone);
        box-shadow: var(--shadow-2);
        color: inherit;
        text-decoration: none;
    }

    .prc-stat:focus-visible {
        outline: 2px solid var(--prc-tone);
        outline-offset: 2px;
    }

.prc-stat--warn {
    --prc-tone: var(--warn);
    --prc-tone-bg: var(--warn-bg);
}

.prc-stat--bad {
    --prc-tone: var(--bad);
    --prc-tone-bg: var(--bad-bg);
}

.prc-stat__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--prc-tone-bg);
    color: var(--prc-tone);
    font-size: 1.25rem;
}

.prc-stat__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .prc-stat__text strong {
        color: var(--slate-900);
        font-size: var(--fs-2xl);
        font-variant-numeric: tabular-nums;
        font-weight: var(--fw-bold);
        line-height: 1.1;
    }

        /* the number is an asp:Label (a span) */
        .prc-stat__text strong span {
            color: inherit;
            font-size: inherit;
            font-weight: inherit;
        }

    .prc-stat__text > span {
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
    }

/* ---- Chart and table ---- */
.prc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .prc-layout {
        grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    }
}

.prc-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.prc-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .prc-card__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.prc-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.prc-card__body {
    padding: 1.25rem;
}

.prc-chart {
    position: relative;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
}

/* ---- Staff table ---- */
.prc-table {
    margin: 0;
    border-collapse: collapse;
}

    .prc-table th {
        padding: 0.625rem 1rem;
        border: 0;
        border-bottom: 1px solid var(--slate-200);
        background: var(--slate-50);
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        text-align: left;
        white-space: nowrap;
    }

    .prc-table td {
        padding: 0.625rem 1rem;
        border: 0;
        border-bottom: 1px solid var(--slate-100);
        vertical-align: middle;
    }

    .prc-table tr:hover td {
        background: var(--slate-50);
    }

    /* the pager row (GridView puts a table of links in the last row) */
    .prc-table tr:last-child td[colspan] {
        padding: 0.75rem;
        background: var(--slate-50);
    }

        .prc-table tr:last-child td[colspan] table {
            margin: 0 auto;
        }

        .prc-table tr:last-child td[colspan] a,
        .prc-table tr:last-child td[colspan] span {
            display: inline-block;
            min-width: 2rem;
            margin: 0 0.125rem;
            padding: 0.25rem 0.5rem;
            border: 1px solid var(--slate-200);
            border-radius: var(--r-md);
            background: #fff;
            color: var(--slate-700);
            font-size: var(--fs-sm);
            text-align: center;
            text-decoration: none;
        }

            .prc-table tr:last-child td[colspan] a:hover,
            .prc-table tr:last-child td[colspan] span {
                border-color: var(--brand);
                background: var(--brand);
                color: #fff;
            }

.prc-name {
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.prc-cell {
    color: var(--slate-600);
    font-size: var(--fs-sm);
}

.prc-avatar {
    margin-right: 0.5rem;
    border-radius: 50%;
    object-fit: cover;
}


/* ==========================================================================
   34. MY MEDICAL CERTIFICATES  (Modules/UploadFilesForVerification/MedicalCertificate/MyMedicalCertificate.aspx)
   Uses the MyPDS list-page pattern (.pg-record cards, .fab-btn, .pg-modal-*). This page used to load
   assets/css/medcert/medcertcss.css (used only here); that link is gone and only the extras live here.
   ========================================================================== */
.mc-section {
    padding: 0 1rem 0.75rem;
}

.mc-section:empty {
    display: none;
}

.mc-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--slate-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.mc-quote {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--slate-300);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: var(--slate-50);
    color: var(--slate-700);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* Attached files: small chips that open the glightbox viewer */
.mc-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mc-file {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    padding: 0.3125rem 0.625rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

    .mc-file:hover {
        background: var(--brand-tint);
        color: var(--brand-hover);
        text-decoration: none;
    }

    .mc-file span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* HR feedback in the cards */
.mc-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: var(--slate-50);
}

.mc-feedback__icon {
    flex: 0 0 auto;
    color: var(--slate-500);
    font-size: var(--fs-lg);
    line-height: 1.3;
}

.mc-feedback__text {
    flex: 1 1 auto;
    min-width: 0;
}

.mc-feedback__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
}

    .mc-feedback__top strong {
        color: var(--slate-900);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
    }

    .mc-feedback__top span {
        color: var(--slate-500);
        font-size: var(--fs-xs);
    }

.mc-feedback p {
    margin: 0.125rem 0 0;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.mc-feedback--ok {
    border-color: var(--ok-bg);
    background: var(--ok-bg);
}

    .mc-feedback--ok .mc-feedback__icon {
        color: var(--ok);
    }

.mc-feedback--bad {
    border-color: var(--bad-bg);
    background: var(--bad-bg);
}

    .mc-feedback--bad .mc-feedback__icon {
        color: var(--bad);
    }

/* ---- Form modal ---- */
.mc-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

    .mc-hint i {
        color: var(--brand);
    }

.mc-agree-label {
    cursor: pointer;
    font-size: var(--fs-sm);
}

/* ---- View modal ---- */
.mc-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

    .mc-value i {
        color: var(--brand);
    }

.mc-hospital {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

/* HR evaluation box. The code-behind replaces its class with Bootstrap utilities plus
   bg-success-light / bg-danger-light / bg-light, so the three states are keyed on those. */
#modal_viewform [id$="div_AlertBox"] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem !important; /* beats p-3 (!important) */
    border: 1px solid var(--slate-200) !important; /* beats border-* (!important) */
    border-radius: var(--r-md) !important; /* beats rounded-lg (!important) */
    background: var(--slate-50) !important; /* beats bg-light (!important) */
    box-shadow: none !important; /* beats shadow-sm (!important) */
    color: var(--slate-700) !important; /* beats text-* (!important) */
}

    #modal_viewform [id$="div_AlertBox"].bg-success-light {
        border-color: var(--ok-bg) !important;
        background: var(--ok-bg) !important;
    }

    #modal_viewform [id$="div_AlertBox"].bg-danger-light {
        border-color: var(--bad-bg) !important;
        background: var(--bad-bg) !important;
    }

    #modal_viewform [id$="div_AlertBox"].bg-success-light i {
        color: var(--ok);
    }

    #modal_viewform [id$="div_AlertBox"].bg-danger-light i {
        color: var(--bad);
    }

    #modal_viewform [id$="div_AlertBox"] i {
        color: var(--slate-500);
    }

.mc-alert__icon {
    margin-top: 0.125rem;
}

.mc-alert__text {
    flex: 1 1 auto;
    min-width: 0;
}

    .mc-alert__text h6 {
        margin: 0 0 0.125rem;
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
        text-transform: none;
    }

    .mc-alert__text p {
        margin: 0;
        color: var(--slate-700);
        font-size: var(--fs-sm);
        line-height: 1.45;
    }


/* ==========================================================================
   35. HR BASICS  (InformationHub/HRBasics.aspx)
   Masonry gallery of infographics (open in the glightbox viewer) with a pager.
   The posters have different heights, so they are laid out in columns at their natural size
   (no fixed frame, no empty space); the title sits on the bottom of each image.
   ========================================================================== */
.hb-grid {
    column-width: 15rem;
    column-gap: 1rem;
}

.hb-card {
    position: relative;
    display: block;
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: var(--slate-100);
    box-shadow: var(--shadow-1);
    break-inside: avoid; /* keeps a card in one column */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .hb-card:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2);
    }

.hb-card__media {
    display: block;
}

    .hb-card__media img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .hb-card__media:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

/* Title on a soft dark fade at the bottom of the image; clicks pass through to the image link */
.hb-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.75rem 3.25rem 0.75rem 0.875rem;
    background: linear-gradient(to top, color-mix(in srgb, var(--slate-900) 88%, transparent), transparent);
    pointer-events: none;
}

.hb-card__title {
    margin: 0;
    color: #fff;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    text-transform: capitalize;
    overflow-wrap: anywhere;
}

/* Magnifier that appears on hover / focus (always visible on touch screens, where there is no hover) */
.hb-card__zoom {
    position: absolute;
    right: 0.625rem;
    bottom: 0.625rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: var(--shadow-2);
    color: #fff;
    font-size: var(--fs-lg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hb-card__media:hover .hb-card__zoom,
.hb-card__media:focus-visible .hb-card__zoom {
    opacity: 1;
}

@media (hover: none) {
    .hb-card__zoom {
        opacity: 1;
    }
}

/* ---- Pager ---- */
.hb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hb-pager__count {
    color: var(--slate-600);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}

.hb-pager__btn {
    display: inline-grid;
    place-items: center;
    width: var(--tap-min);
    height: var(--tap-min);
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--brand);
    font-size: var(--fs-xl);
    text-decoration: none;
    box-shadow: var(--shadow-1);
}

    .hb-pager__btn:hover {
        border-color: var(--brand);
        background: var(--brand-soft);
        color: var(--brand-hover);
        text-decoration: none;
    }

    /* the first / last page: ASP.NET renders a disabled link */
    .hb-pager__btn.aspNetDisabled,
    .hb-pager__btn[disabled] {
        border-color: var(--slate-200);
        background: var(--slate-50);
        box-shadow: none;
        color: var(--slate-400);
        pointer-events: none;
    }

@media (max-width: 575.98px) {
    .hb-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }

    .hb-card {
        margin-bottom: 0.75rem;
    }

    .hb-card__body {
        padding: 1.25rem 2.75rem 0.5rem 0.625rem;
    }

    .hb-card__title {
        font-size: var(--fs-sm);
    }
}


/* ==========================================================================
   36. HRMO BULLETIN  (InformationHub/HRMOBulletin.aspx)
   Search, a list of memo rows (each opens the PDF in the glightbox viewer) and a pager.
   ========================================================================== */
.bl-wrap {
    max-width: 56rem;
    margin: 0 auto;
}

.bl-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.bl-memo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bl-memo:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2);
        color: inherit;
        text-decoration: none;
    }

    .bl-memo:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.bl-memo__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.375rem;
}

.bl-memo__info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.bl-memo__title {
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bl-memo__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
}

.bl-memo__series {
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

    .bl-memo__series i,
    .bl-memo__meta .badge i {
        margin-right: 0.125rem;
    }

.bl-memo__go {
    flex: 0 0 auto;
    color: var(--slate-400);
    font-size: var(--fs-xl);
}

.bl-memo:hover .bl-memo__go {
    color: var(--brand);
}

/* ---- Pager (asp:DataPager renders links with .btn-pager and the current page as .pager-active) ---- */
.bl-pager {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

    .bl-pager .btn-pager,
    .bl-pager .pager-active {
        display: inline-block;
        min-width: 2.25rem;
        margin: 0 0.125rem;
        padding: 0.375rem 0.75rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        text-align: center;
        text-decoration: none;
    }

        .bl-pager .btn-pager:hover {
            border-color: var(--brand);
            background: var(--brand-soft);
            color: var(--brand);
            text-decoration: none;
        }

    .bl-pager .pager-active {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
    }

@media (max-width: 575.98px) {
    .bl-pager .btn-pager,
    .bl-pager .pager-active {
        min-width: var(--tap-min);
        padding: 0.625rem 0.5rem;
    }
}

/* The PDF viewer opens inside the glightbox frame */
.gslide-iframe {
    overflow: hidden;
    border-radius: var(--r-md);
}


/* ==========================================================================
   37. DEMO VIDEOS  (InformationHub/DemoVideos.aspx)
   One card per video: the player on top, the title underneath.
   ========================================================================== */
.dv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
    gap: 1.25rem;
}

.dv-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.dv-card__media {
    background: var(--slate-900);
}

    /* the Telerik player writes an inline width; keep it inside the card */
    .dv-card__media .RadMediaPlayer {
        max-width: 100%;
    }

.dv-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem 1rem;
}

.dv-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}


/* ==========================================================================
   38. DOWNLOADABLE FORMS  (InformationHub/DownloadableForms.aspx)
   One card per agency (logo + title) with a list of download rows.
   The rows are asp:Buttons / links with the old class "btn btn-link text-dark"; they are restyled here.
   ========================================================================== */
.df-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
    align-items: start;
}

.df-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.df-card__head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.df-card__logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.375rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--r-md);
    background: var(--slate-50);
}

    .df-card__logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.df-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.df-list {
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
}

.df-item {
    position: relative;
}

    /* the file icon is decorative: it sits over the row's left padding and never catches the click */
    .df-item > i {
        position: absolute;
        top: 50%;
        left: 1.25rem;
        z-index: 1;
        color: var(--brand);
        font-size: var(--fs-lg);
        pointer-events: none;
        transform: translateY(-50%);
    }

    .df-item .btn-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1.25rem 0.75rem 3.25rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--slate-800) !important; /* beats text-dark (!important) */
        font-size: var(--fs-base);
        font-weight: var(--fw-medium);
        line-height: 1.35;
        text-align: left;
        text-decoration: none !important; /* beats the link underline Celestia forces */
        white-space: normal;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .df-item .btn-link:hover,
        .df-item .btn-link:focus-visible {
            background: var(--brand-soft);
            color: var(--brand) !important;
            outline: none;
        }

        .df-item .btn-link:focus-visible {
            box-shadow: inset 0 0 0 2px var(--brand);
        }

    .df-item + .df-item {
        border-top: 1px solid var(--slate-100);
    }


/* ==========================================================================
   39. ABOUT SPMC  (About.aspx)
   Static content: vision, mission, core values, quality policy and the leadership.
   ========================================================================== */
.abt-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Vision ---- */
.abt-vision {
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--brand-border);
    border-left: 4px solid var(--brand);
    border-radius: var(--r-lg);
    background: var(--brand-soft);
}

.abt-vision__label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.abt-vision__quote {
    max-width: 48rem;
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

/* ---- Two columns: mission | values + policy ---- */
.abt-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .abt-two {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.abt-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Cards ---- */
.abt-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.abt-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .abt-card__head > i {
        color: var(--brand);
        font-size: var(--fs-lg);
    }

.abt-card__title {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

.abt-sub {
    margin: 0;
    color: var(--slate-500);
    font-size: var(--fs-sm);
}

.abt-card__body {
    padding: 1.25rem;
}

.abt-text {
    margin: 0 0 0.75rem;
    color: var(--slate-700);
    font-size: var(--fs-base);
}

/* Mission: the first letters spell SERVE */
.abt-mission {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .abt-mission li {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--slate-100);
        border-radius: var(--r-md);
        background: var(--slate-50);
        color: var(--slate-800);
        font-size: var(--fs-base);
        font-weight: var(--fw-medium);
    }

.abt-letter {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-md);
    background: var(--brand);
    color: #fff;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
}

/* Core values */
.abt-values {
    margin: 0;
    padding: 0.25rem 0;
}

    .abt-values > div {
        padding: 0.75rem 1.25rem;
    }

        .abt-values > div + div {
            border-top: 1px solid var(--slate-100);
        }

    .abt-values dt {
        color: var(--slate-900);
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
    }

    .abt-values dd {
        margin: 0.125rem 0 0;
        color: var(--slate-600);
        font-size: var(--fs-sm);
    }

/* Quality policy */
.abt-policy {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--brand);
    color: var(--slate-800);
    font-size: var(--fs-md);
    line-height: 1.6;
}

/* ---- Leadership ---- */
.abt-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    background: var(--slate-100);
    object-fit: cover;
    object-position: top;
}

.abt-name {
    margin: 0;
    color: var(--slate-900);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

.abt-role {
    margin: 0.125rem 0 0;
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.abt-chief {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--r-lg);
    background: var(--brand-soft);
}

    .abt-chief .abt-photo {
        flex: 0 0 auto;
        width: 8rem;
    }

    .abt-chief .abt-name {
        font-size: var(--fs-lg);
    }

.abt-team-title {
    margin: 0 0 0.75rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.abt-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .abt-team li {
        padding: 0.625rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-lg);
        background: #fff;
    }

    .abt-team .abt-name {
        margin-top: 0.625rem;
        font-size: var(--fs-base);
    }

@media (max-width: 575.98px) {
    .abt-vision {
        padding: 1.125rem 1.25rem;
    }

    .abt-chief {
        flex-direction: column;
        align-items: flex-start;
    }

        .abt-chief .abt-photo {
            width: 9rem;
        }

    .abt-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}


/* ==========================================================================
   40. HRMO EVENTS  (HRMOEvents.aspx)
   Event links grouped by year, newest first.
   ========================================================================== */
.ev-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ev-year__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    color: var(--slate-900);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

    /* a thin line after the year fills the row */
    .ev-year__title::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background: var(--slate-200);
    }

.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 0.75rem;
}

.ev-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .ev-card:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2);
        color: inherit;
        text-decoration: none;
    }

    .ev-card:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.ev-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.25rem;
}

.ev-card__title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ev-card__go {
    flex: 0 0 auto;
    color: var(--slate-400);
    font-size: var(--fs-xl);
}

.ev-card:hover .ev-card__go {
    color: var(--brand);
}


/* ==========================================================================
   41. PRINT PDS  (HRMO/PrintPDS.aspx)
   Employee search bar and a large PDF viewer (the empty message sits behind the iframe).
   ========================================================================== */
.pp-filter {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto auto;
    gap: 0.75rem 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.pp-field__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.pp-check {
    display: flex;
    align-items: center;
    min-height: 2.375rem;
    max-width: 30ch;
    color: var(--slate-700);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

    .pp-check input {
        margin-right: 0.5rem;
    }

    .pp-check label {
        margin: 0;
    }

/* The Telerik skin paints RadButton with its own blue, so the fill is forced */
body .pp-filter .pp-go {
    min-width: 7rem;
    height: 2.375rem;
    padding: 0 1.25rem !important;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    background: var(--brand) !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
}

    body .pp-filter .pp-go * {
        color: inherit !important;
        font-weight: inherit !important;
    }

    body .pp-filter .pp-go:hover {
        background: var(--brand-hover) !important;
    }

/* ---- Viewer ---- */
.pp-viewer {
    position: relative;
    height: calc(100vh - 15rem);
    min-height: 32rem;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: var(--slate-50);
}

.pp-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem;
    color: var(--slate-500);
    font-size: var(--fs-base);
    text-align: center;
}

    .pp-empty strong {
        color: var(--slate-900);
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
    }

.pp-empty__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--r-lg);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.75rem;
}

.pp-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 991.98px) {
    .pp-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-check {
        max-width: none;
    }

    body .pp-filter .pp-go {
        width: 100%;
    }

    .pp-viewer {
        height: 75vh;
        min-height: 28rem;
    }
}


/* ==========================================================================
   42. JOB-ORDER ANNEX A1 MONITORING  (JOannex/JOannexMonitoring.aspx)
   Reuses the PRC monitoring components (section 33: .prc-stats / .prc-stat / .prc-card / .prc-table / .prc-viewer);
   only the extras live here.
   ========================================================================== */
.prc-stats--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .prc-stats--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .prc-stats--5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.prc-stat--muted {
    --prc-tone: var(--slate-500);
    --prc-tone-bg: var(--slate-100);
}

.prc-stat--ok {
    --prc-tone: var(--ok);
    --prc-tone-bg: var(--ok-bg);
}

/* the tiles are narrower here: a smaller number keeps them on one line */
.prc-stats--5 .prc-stat__text strong {
    font-size: var(--fs-xl);
}

.jm-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.jm-field {
    margin-bottom: 1rem;
}

    .jm-field:last-of-type {
        margin-bottom: 1rem;
    }

.jm-field__label {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.jm-filters .RadComboBox {
    width: 100% !important; /* the control writes an inline width */
}

/* Letter in a circle (the photo is not shown) */
.jm-initial {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.625rem;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.jm-person {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


/* ==========================================================================
   43. VERIFY ONLINE ANNEX A1 UPLOADS  (JOannex/JOannexVerifyOnlineUpload.aspx)
   Status tabs, the submissions grid and the dark review modal (viewer from section 34 / .prc-viewer).
   The tabs are RadButtons whose pill look comes from Celestia's vendor .schedule-tab-btn rules; they are overridden here.
   ========================================================================== */
.jv-tabs {
    margin: 0 0 0.5rem !important; /* beats the row's negative side margins */
}

    .jv-tabs > .col-12 {
        padding: 0;
    }

    /* tab pills: neutral outline, brand fill for the selected one (the vendor rules use !important for the checked state) */
    .jv-tabs .schedule-tab-btn {
        padding: 0.375rem 0.875rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-pill);
        background-color: #fff;
        color: var(--slate-700);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
    }

    .jv-tabs .RadButton:hover .schedule-tab-btn {
        background-color: var(--slate-100);
        box-shadow: none;
    }

    .jv-tabs .RadButton.rbLinkButtonChecked .schedule-tab-btn,
    .jv-tabs .RadButton.rbToggleButtonChecked .schedule-tab-btn,
    .jv-tabs .RadButton.rbChecked .schedule-tab-btn {
        border-color: var(--brand) !important;
        background-color: var(--brand) !important;
        color: #fff !important;
    }

/* ---- Grid (Telerik MetroTouch skin): colours and sizes only ---- */
.jv-grid .RadGrid {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

    .jv-grid .RadGrid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700);
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

    .jv-grid .RadGrid .rgRow td,
    .jv-grid .RadGrid .rgAltRow td {
        font-size: var(--fs-base);
    }

    .jv-grid .RadGrid .rgRow:hover td,
    .jv-grid .RadGrid .rgAltRow:hover td {
        background: var(--brand-soft) !important;
    }

/* ---- Review modal (dark viewer) ---- */
.jv-modal .modal-header .close {
    color: var(--on-hero);
}

/* The footer is dark: its labels, the reason list and the disabled remarks box need light text */
.jv-foot,
.jv-foot .form-label {
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.jv-reasons {
    color: #fff;
}

    .jv-reasons td {
        padding: 0.125rem 0;
    }

    .jv-reasons input {
        margin-right: 0.5rem;
    }

    .jv-reasons label {
        color: #fff;
        font-size: var(--fs-sm);
        font-weight: var(--fw-regular);
    }

.jv-foot .form-control {
    background: var(--slate-100);
    color: var(--slate-900);
}


/* ==========================================================================
   44. JOB-ORDER LEAVE MANAGEMENT  (HRMO/TMLA/Leave/JobOrder/PersonnelLeaveApplications.aspx)
   Status tabs, two count cards (reuse .prc-stat from section 33), and the leave grid.
   The code-behind sets the tab classes to "toggle-pill" / "toggle-pill active"; Celestia's vendor style.css styles them
   (gradient, scale), so the pill look is set again here under .jl-tabs. The two modals are not restyled yet.
   ========================================================================== */
.jl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 0.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    .jl-tabs .toggle-pill {
        padding: 0.5rem 1rem;
        border: 0;
        border-radius: var(--r-pill);
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        letter-spacing: 0;
    }

        .jl-tabs .toggle-pill:not(.active):hover {
            background: var(--slate-100);
            color: var(--slate-900);
        }

        /* selected: brand fill, no gradient / scale (the vendor rule is !important) */
        .jl-tabs .toggle-pill.active {
            background: var(--brand) !important;
            box-shadow: none;
            color: #fff !important;
            transform: none;
        }

@media (max-width: 767.98px) {
    .jl-tabs {
        width: 100%;
        border-radius: var(--r-lg);
    }

        .jl-tabs .RadButton {
            flex: 1 1 auto;
        }

        .jl-tabs .toggle-pill {
            display: block;
            text-align: center;
            border-radius: var(--r-md);
        }
}

.jl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
    .jl-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Grid ---- */
.jl-grid .RadGrid {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

    .jl-grid .RadGrid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700);
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

    .jl-grid .RadGrid .rgRow td,
    .jl-grid .RadGrid .rgAltRow td {
        font-size: var(--fs-base);
    }

    .jl-grid .RadGrid .rgRow:hover td,
    .jl-grid .RadGrid .rgAltRow:hover td {
        background: var(--brand-soft) !important;
    }

/* The page's own pager rule paints the current page violet with a hex; the brand token replaces it */
body .jl-grid .modern-grid .rgPagerCell .rgNumPart a.rgCurrentPage {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
}


/* ==========================================================================
   45. TARDINESS AND ATTENDANCE CONTROL  (HRMO/HRIS/TardyDiscipline.aspx)
   The page keeps its own inline <style> (filter inputs, responsive rows, modal inputs); this section sits on top of it:
   tab pills, ALL-CAPS labels and the hard-coded colours. Rules start with `body .td-page` so they out-rank the page's rules.
   The code-behind rewrites the tab classes (nav-link ... text-uppercase ... active / text-muted), so the tabs are keyed on those.
   ========================================================================== */
body .td-page > .card {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--shadow-1) !important;
}

/* ---- Tab bar (only the tabs are left in the card header) ---- */
body .td-page .td-tabsbar {
    display: flex;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50) !important;
}

body .td-page .dashboard-sidebar-tabs .nav-pills {
    border-color: var(--slate-200) !important;
    box-shadow: none !important;
}

body .td-page .dashboard-sidebar-tabs .nav-pills .nav-link {
    color: var(--slate-600);
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0 !important;
    text-transform: none !important; /* the code-behind class carries text-uppercase (!important) */
}

    body .td-page .dashboard-sidebar-tabs .nav-pills .nav-link:hover {
        background: var(--slate-100);
        color: var(--slate-900);
    }

    body .td-page .dashboard-sidebar-tabs .nav-pills .nav-link.active {
        background: var(--brand) !important;
        box-shadow: none !important;
        color: #fff !important;
    }

/* ---- Labels and headings that were ALL CAPS ---- */
body .td-page .text-uppercase,
body .td-page .badge.text-uppercase,
body #addViolationModal .text-uppercase {
    letter-spacing: 0 !important;
    text-transform: none !important; /* Bootstrap text-uppercase is !important */
}

body .td-page .filter-group label,
body #addViolationModal label {
    color: var(--slate-600) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-medium) !important;
}

/* The list header row: sentence case, token colours */
body .td-page .leave-credits-wrapper {
    border-color: var(--slate-200) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: none !important;
}

    body .td-page .leave-credits-wrapper .bg-light {
        background: var(--slate-50) !important;
    }

    body .td-page .leave-credits-wrapper .text-muted {
        color: var(--slate-600) !important;
    }

/* ---- Violation modal ---- */
#addViolationModal .modal-content {
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
}

#addViolationModal .modal-footer .btn-danger {
    min-height: 2.25rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

@media (max-width: 575.98px) {
    body .td-page .dashboard-sidebar-tabs,
    body .td-page .dashboard-sidebar-tabs .nav-pills {
        width: 100%;
    }

        body .td-page .dashboard-sidebar-tabs .nav-pills .nav-link {
            flex: 1 1 auto;
            justify-content: center;
        }
}


/* ==========================================================================
   46. PRC MONITORING, HR RECORDS  (HRMO/Records/PRCMonitoring.aspx)
   Reuses section 33 (.prc-stats / .prc-stat) and section 32 (.prc-viewer); only the filter bar, the grid card and the
   modal tweaks live here.
   ========================================================================== */
.pm-filter {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(14rem, 18rem) auto;
    gap: 0.75rem 1.25rem;
    align-items: end;
    justify-content: start;
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.pm-field__label {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.pm-field .RadComboBox {
    width: 100% !important; /* the control writes an inline width */
}

.pm-filter .btn-primary {
    height: 2.375rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

@media (max-width: 767.98px) {
    .pm-filter {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Grid card ---- */
.pm-grid {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    .pm-grid .RadGrid {
        border: 0 !important;
        box-shadow: none !important;
    }

    .pm-grid .RadGrid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700);
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

    .pm-grid .RadGrid .rgRow:hover td,
    .pm-grid .RadGrid .rgAltRow:hover td {
        background: var(--brand-soft) !important;
    }

/* ---- Modals ---- */
#staffModal .text-primary,
#generateReportModal .text-primary {
    color: var(--brand) !important; /* Bootstrap text-primary is !important */
}

#staffModal .modal-content,
#generateReportModal .modal-content {
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
}


/* ==========================================================================
   47. PRC VERIFY ONLINE UPLOAD, HR RECORDS  (HRMO/Records/PRCVerifyOnlineUpload.aspx)
   Reuses section 43 (.jv-tabs status pills, .jv-grid grid card); only the review modal tweaks live here.
   ========================================================================== */
#modal_TakeAction .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
}

#modal_TakeAction .text-primary {
    color: var(--brand) !important; /* Bootstrap text-primary is !important */
}

#modal_TakeAction .modal-body.bg-light {
    background-color: var(--slate-50) !important; /* beats bg-light (!important) */
}


/* ==========================================================================
   48. MEDICAL CERTIFICATE DASHBOARD, HR RECORDS  (HRMO/Records/MedicalCertificateDashboard.aspx)
   This page keeps its own inline <style> (indigo palette, hover-lift cards, ALL-CAPS labels); this section sits on top of it
   under .mcd-page: tokens instead of hex colours, no lift animation, sentence case. The code-behind rewrites the classes of the
   count cards ("card ... border-left-* filter-card [active-filter]") and of the tabs ("toggle-pill [active]"), so those are what is keyed.
   The four views' grids and the modals keep their layout; only colours, case and radii change.
   ========================================================================== */

/* ---- Toolbar: view tabs and the report button ---- */
.mcd-page .mcd-tabs {
    border-color: var(--slate-200) !important;
    box-shadow: var(--shadow-1) !important;
}

.mcd-page .toggle-pill {
    padding: 0.4375rem 0.875rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}

    .mcd-page .toggle-pill:hover:not(.active) {
        background-color: var(--slate-100);
        color: var(--slate-900);
    }

    .mcd-page .toggle-pill.active {
        background-color: var(--brand);
        box-shadow: none;
        color: #fff !important;
    }

.mcd-page .btn-report-pill {
    background: var(--brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}

    .mcd-page .btn-report-pill:hover {
        background: var(--brand-hover);
    }

/* ---- Count cards (they filter the grid) ---- */
.mcd-page .filter-card {
    border-radius: var(--r-lg) !important; /* beats rounded-15 */
    box-shadow: var(--shadow-1) !important;
}

.mcd-page .card-filter-link:hover .filter-card,
.mcd-page .active-filter {
    transform: none; /* no hover-lift */
}

.mcd-page .card-filter-link:hover .filter-card {
    box-shadow: var(--shadow-2) !important;
}

.mcd-page .active-filter {
    background-color: #fff !important;
    box-shadow: var(--shadow-2) !important;
}

/* Left accent per status */
.mcd-page .border-left-violet {
    border-left: 4px solid var(--brand) !important;
}

.mcd-page .border-left-warning {
    border-left: 4px solid var(--warn) !important;
}

.mcd-page .border-left-info {
    border-left: 4px solid var(--info) !important;
}

.mcd-page .border-left-success {
    border-left: 4px solid var(--ok) !important;
}

.mcd-page .border-left-danger {
    border-left: 4px solid var(--bad) !important;
}

/* The selected card gets a full outline in its own colour */
.mcd-page .active-filter.border-left-violet {
    border: 2px solid var(--brand) !important;
}

.mcd-page .active-filter.border-left-warning {
    border: 2px solid var(--warn) !important;
}

.mcd-page .active-filter.border-left-info {
    border: 2px solid var(--info) !important;
}

.mcd-page .active-filter.border-left-success {
    border: 2px solid var(--ok) !important;
}

.mcd-page .active-filter.border-left-danger {
    border: 2px solid var(--bad) !important;
}

/* Icon tiles in the cards (these classes had no styles at all) */
.mcd-page [class^="icon-box-"],
.mcd-page [class*=" icon-box-"] {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-md);
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 1.125rem;
}

.mcd-page .icon-box-warning {
    background: var(--warn-bg);
    color: var(--warn);
}

.mcd-page .icon-box-danger {
    background: var(--bad-bg);
    color: var(--bad);
}

.mcd-page .icon-box-success {
    background: var(--ok-bg);
    color: var(--ok);
}

.mcd-page .icon-box-info {
    background: var(--info-bg);
    color: var(--info);
}

.mcd-page .icon-box-violet {
    background: var(--brand-tint);
    color: var(--brand);
}

/* Card labels and numbers: sentence case, token colours (Bootstrap text-* are !important) */
.mcd-page .filter-card h6.uppercase {
    color: var(--slate-600) !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium) !important;
    letter-spacing: 0;
    text-transform: none;
}

.mcd-page .filter-card h3 {
    color: var(--slate-900) !important;
    font-size: var(--fs-xl);
    font-variant-numeric: tabular-nums;
}

    .mcd-page .filter-card h3.text-warning {
        color: var(--warn) !important;
    }

    .mcd-page .filter-card h3.text-danger {
        color: var(--bad) !important;
    }

    .mcd-page .filter-card h3.text-success {
        color: var(--ok) !important;
    }

    .mcd-page .filter-card h3.text-info {
        color: var(--info) !important;
    }

/* ---- Grids ---- */
.mcd-page .modern-grid {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

    .mcd-page .modern-grid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700) !important;
        font-size: var(--fs-sm) !important;
        letter-spacing: 0;
        text-transform: none !important;
    }

    .mcd-page .modern-grid .rgRow:hover td,
    .mcd-page .modern-grid .rgAltRow:hover td,
    .mcd-page .RadGrid_Bootstrap .rgAltRow:hover {
        background-color: var(--brand-soft) !important;
    }

.mcd-page .RadGrid_Bootstrap .rgNumPart a.rgCurrentPage {
    border-color: var(--brand) !important;
    background: var(--brand) !important;
}

.mcd-page .cell-primary-text {
    color: var(--slate-900);
    font-size: var(--fs-base);
}

.mcd-page .cell-secondary-text {
    color: var(--slate-500);
    font-size: var(--fs-xs);
    letter-spacing: 0;
    text-transform: none;
}

.mcd-page .cell-data-text {
    color: var(--slate-700);
    font-size: var(--fs-sm);
}

/* Status chips in the grid cells */
.mcd-page .status-required {
    background: var(--bad-bg);
    color: var(--bad);
}

.mcd-page .status-pending {
    background: var(--warn-bg);
    color: var(--warn);
}

.mcd-page .status-verified {
    background: var(--ok-bg);
    color: var(--ok);
}

.mcd-page .status-not-req {
    background: var(--slate-100);
    color: var(--slate-600);
}

.mcd-page .status-pill,
.mcd-page .grid-badge {
    letter-spacing: 0;
    text-transform: none;
}

/* ---- Modals ---- */
.modal-header.bg-violet-gradient {
    background: var(--grad-hero) !important;
    color: var(--on-hero);
}

.modal-content.rounded-20 {
    border-radius: var(--r-xl) !important;
    box-shadow: var(--shadow-3) !important;
}

.mcd-page .modal .uppercase,
#generateReportModal .text-primary {
    letter-spacing: 0;
    text-transform: none;
}

#generateReportModal .text-primary {
    color: var(--brand) !important; /* Bootstrap text-primary is !important */
}

/* Update timeline / audit trail cells: the label and its value sit together (the rows were spread across the whole wide column) */
.jv-page .jv-grid td .small > .d-flex.justify-content-between {
    justify-content: flex-start !important; /* beats justify-content-between (!important) */
    gap: 0.75rem;
}

    .jv-page .jv-grid td .small > .d-flex.justify-content-between > .text-muted {
        flex: 0 0 6.75rem;
    }


/* ==========================================================================
   49. LEAVE APPLICATIONS FOR APPROVAL  (Modules/Leave/ApplicationsForApproval.aspx)
   Page frame, the three tabs (Telerik BlackMetroTouch), the three grids and the disapprove modal.
   The page's old inline <style> (global .form-control / .btn / .modal-content rules and hex gradients) is removed.
   ========================================================================== */
.ar-page {
    padding-bottom: 1.5rem;
}

/* ---- Tabs: underline style, same as the My IPCR page ---- */
body .ar-page .RadTabStrip_BlackMetroTouch {
    margin: 0 0 0.75rem !important;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--slate-200) !important;
    background: transparent !important;
}

    body .ar-page .RadTabStrip_BlackMetroTouch .rtsLI {
        width: auto !important; /* the tabs carry 40% / 30% widths from the markup */
        margin: 0 0.25rem 0 0 !important;
    }

    body .ar-page .RadTabStrip_BlackMetroTouch .rtsLink {
        position: relative;
        padding: 0.625rem 1rem !important;
        border: 0 !important;
        border-radius: var(--r-md) var(--r-md) 0 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--slate-500) !important;
        font-size: var(--fs-base) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

        body .ar-page .RadTabStrip_BlackMetroTouch .rtsLink:hover {
            background: var(--slate-100) !important;
            color: var(--slate-900) !important;
        }

        body .ar-page .RadTabStrip_BlackMetroTouch .rtsLink .rtsTxt,
        body .ar-page .RadTabStrip_BlackMetroTouch .rtsLink .rtsText {
            color: inherit !important;
            font-size: inherit !important;
            font-weight: inherit !important;
        }

    body .ar-page .RadTabStrip_BlackMetroTouch .rtsSelected .rtsLink {
        background: transparent !important;
        color: var(--brand) !important;
    }

        body .ar-page .RadTabStrip_BlackMetroTouch .rtsSelected .rtsLink::after {
            content: "";
            position: absolute;
            right: 0.5rem;
            bottom: -1px;
            left: 0.5rem;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--brand);
        }

    body .ar-page .RadTabStrip_BlackMetroTouch .rtsLevel,
    body .ar-page .RadTabStrip_BlackMetroTouch .rtsUL {
        border: 0 !important;
        background: none !important;
        box-shadow: none !important;
    }

/* The page area under the tabs: no white slab, the grids are the cards */
body .ar-page .outerMultiPage {
    padding: 0 !important; /* beats p-2 (!important) */
    background: transparent !important; /* beats bg-white (!important) */
}

/* ---- Filters above the grids (department, month) ---- */
.ar-page .form-group.mb-3 > .RadComboBox,
.ar-page .form-group.mb-3 > .RadPicker {
    vertical-align: middle;
}

.ar-page .form-group.mb-3 > span[id$="Label15"],
.ar-page .form-group.mb-3 > span[id$="Label17"] {
    color: var(--slate-700) !important; /* the label sets ForeColor Black */
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium) !important;
}

/* ---- Grids: colours and case only; sizes of the scrolling grid are left alone ---- */
.ar-page .RadGrid {
    overflow: hidden;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

    .ar-page .RadGrid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700) !important;
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

    .ar-page .RadGrid .rgRow:hover td,
    .ar-page .RadGrid .rgAltRow:hover td {
        background: var(--brand-soft) !important;
    }

    .ar-page .RadGrid .rgNumPart a.rgCurrentPage {
        border-color: var(--brand) !important;
        background: var(--brand) !important;
        color: #fff !important;
    }

/* ---- Disapprove modal ---- */
#DisapproveModal .modal-content {
    border: 0;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
}

#DisapproveModal .modal-header.bg-gradient-violet {
    background: var(--grad-hero) !important;
    color: var(--on-hero);
}

    #DisapproveModal .modal-header.bg-gradient-violet .modal-title {
        color: var(--on-hero) !important;
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
    }

#DisapproveModal .modal-header .close {
    opacity: 0.85;
    text-shadow: none;
}

#DisapproveModal .form-label,
#DisapproveModal label {
    color: var(--slate-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

/* ---- Leave applications for approval: second pass (filter bar, calmer grid text, approve / disapprove buttons) ---- */
/* Department / month filter: one bar instead of loose controls */
.ar-page .ar-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem !important;
    padding: 0.625rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

    .ar-page .ar-filter > span[id$="Label15"],
    .ar-page .ar-filter > span[id$="Label17"] {
        padding: 0 !important; /* beats pr-3 */
    }

    .ar-page .ar-filter .btn-sm {
        height: 2.25rem;
        padding: 0 1rem;
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
    }

/* One text size in the cells (the columns mix Smaller and default sizes inline), name in bold */
body .ar-page .RadGrid .rgRow td,
body .ar-page .RadGrid .rgAltRow td {
    font-size: var(--fs-sm) !important; /* beats the inline Font-Size on the columns */
    line-height: 1.4;
    vertical-align: middle;
}

    body .ar-page .RadGrid .rgRow td:first-child,
    body .ar-page .RadGrid .rgAltRow td:first-child {
        color: var(--slate-900);
        font-weight: var(--fw-semibold);
    }

.ar-page .RadGrid td p {
    margin: 0;
}

.ar-page .RadGrid td .font-weight-medium {
    color: var(--slate-900);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

/* Approve / disapprove: round buttons tinted by their meaning (the icons stay the small PNGs) */
body .ar-page .ar-act {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0 !important;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

    body .ar-page .ar-act input[type="image"],
    body .ar-page .ar-act img {
        display: block;
        width: 1.375rem;
        height: 1.375rem;
        margin: 0;
        padding: 0;
    }

body .ar-page .ar-act--ok {
    background: var(--ok-bg) !important;
}

body .ar-page .ar-act--bad {
    background: var(--bad-bg) !important;
}

    body .ar-page .ar-act:hover {
        box-shadow: 0 0 0 3px #fff, var(--shadow-2);
        filter: brightness(0.97);
    }


/* ==========================================================================
   50. JOB-ORDER LEAVE APPROVALS  (Modules/JobOrderLeave/JOApplicationsApproval.aspx)
   Reuses section 44 (.jl-tabs status pills, .jl-grid grid card). The page keeps its own stylesheet
   (assets/css/leave/JOApplicationsApproval.css) and a small inline <style> (read-only calendar, highlighted leave dates);
   this section only adjusts the frame and the pending-application cards.
   ========================================================================== */
/* the page frame already pads the sides: the inner wrappers must not add more */
.jo-page .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.jo-page .jl-tabs {
    margin-right: auto;
    margin-left: 0;
}

/* Pending application cards: token colours, no hover shadow growth */
.jo-page .pending-leave-card {
    border-color: var(--slate-200);
    border-left: 4px solid var(--brand);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1) !important;
}

    .jo-page .pending-leave-card:hover {
        border-color: var(--brand-border);
        box-shadow: var(--shadow-2) !important;
    }

.jo-page .border-left-lg {
    border-left-color: var(--slate-200);
}

/* Labels that were small ALL CAPS */
.jo-page .uppercase,
.jo-page #leaveDetailsModal .uppercase {
    letter-spacing: 0;
    text-transform: none;
}


/* ==========================================================================
   51. STAFF LEAVE CREDITS MONITORING  (Modules/Leave/ManageStaff/StaffLeaveCreditsMonitoring.aspx)
   Filter bar, a paged list of staff with their forced / wellness / special leave credits, and a pager.
   ========================================================================== */
.sc-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.sc-field__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.sc-bar .btn {
    height: 2.375rem;
    padding: 0 1rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.sc-export {
    margin-left: auto;
}

/* ---- Message shown until the list exists ---- */
.sc-start {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--slate-300);
    border-radius: var(--r-lg);
    background: #fff;
    color: var(--slate-500);
    font-size: var(--fs-base);
    text-align: center;
}

    .sc-start strong {
        color: var(--slate-900);
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
    }

.sc-start__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--r-lg);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 1.75rem;
}

/* no list inside the body (nothing loaded yet, or the empty message): show the hint only for the first case */
.sc-body:not(:has(.sc-wrap)):not(:has(.pg-empty)) .sc-start {
    display: flex;
}

/* ---- List ---- */
.sc-wrap {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.sc-head {
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.sc-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

    .sc-row:hover {
        background: var(--brand-soft);
    }

.sc-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sc-avatar {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: var(--slate-100);
    object-fit: cover;
}

.sc-person__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sc-person__name {
    color: var(--slate-900);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

.sc-person__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* credits */
.sc-credit {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-credit__label {
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.sc-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    color: var(--brand);
    font-size: var(--fs-base);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

.sc-chip--zero {
    background: var(--slate-100);
    color: var(--slate-500);
}

@media (min-width: 992px) {
    .sc-head,
    .sc-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .sc-col-person {
        flex: 1 1 0;
        min-width: 0;
    }

    .sc-col-credit {
        flex: 0 0 9rem;
        justify-content: center;
        text-align: center;
    }

    /* the labels are in the header row on wide screens */
    .sc-credit__label {
        display: none;
    }
}

/* ---- Pager (asp:DataPager links) ---- */
.sc-pager {
    display: flex;
    justify-content: center;
    padding: 0.875rem;
    background: var(--slate-50);
}

    .sc-pager .sc-pg {
        display: inline-block;
        min-width: 2.25rem;
        margin: 0 0.125rem;
        padding: 0.375rem 0.75rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--r-md);
        background: #fff;
        color: var(--slate-600);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        text-align: center;
        text-decoration: none;
    }

        .sc-pager a.sc-pg:hover {
            border-color: var(--brand);
            background: var(--brand-soft);
            color: var(--brand);
            text-decoration: none;
        }

    .sc-pager .sc-pg--current {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
    }

@media (max-width: 575.98px) {
    .sc-pager .sc-pg {
        min-width: var(--tap-min);
        padding: 0.625rem 0.5rem;
    }

    .sc-export {
        margin-left: 0;
    }
}


/* ==========================================================================
   52. MY JO LEAVE APPLICATIONS  (Modules/JobOrderLeave/LeaveApplication.aspx)
   The page keeps its own stylesheet (assets/css/leave/JOLeaveApplication.css) and a ~115-line inline <style> that draws the
   department banner as a dark "obsidian / neon" strip. This section sits on top of them under .jo-la-page: the banner becomes a
   light notice strip in the portal colours (no glow, no pulse, no ALL CAPS), the grid gets the card look, and the modal headers
   use the standard gradient.
   ========================================================================== */
body .jo-la-new {
    height: 2.375rem;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    background: #fff !important; /* header button sits on the dark gradient */
    box-shadow: none !important;
    color: var(--brand) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-semibold) !important;
}

    body .jo-la-new * {
        color: inherit !important;
        font-weight: inherit !important;
    }

    body .jo-la-new:hover {
        background: var(--brand-soft) !important;
    }

/* ---- Department banner ---- */
body .jo-la-page .premium-obsidian-banner {
    padding: 0.75rem 1.25rem !important;
    border: 1px solid var(--brand-border) !important;
    border-left: 4px solid var(--brand) !important;
    border-radius: var(--r-lg) !important;
    background: var(--brand-soft) !important;
    box-shadow: var(--shadow-1) !important;
}

    body .jo-la-page .premium-obsidian-banner::before {
        display: none; /* the glow */
    }

body .jo-la-page .neon-icon-wrapper {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: var(--r-md);
    background: var(--brand-tint);
    box-shadow: none;
    color: var(--brand);
    font-size: var(--fs-lg);
}

body .jo-la-page .banner-meta-tag {
    color: var(--slate-500) !important;
    font-size: var(--fs-xs) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0 !important;
    text-transform: none;
}

body .jo-la-page .banner-dept-title {
    color: var(--slate-900) !important;
    font-size: var(--fs-md) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0 !important;
}

body .jo-la-page .action-text-prompt {
    color: var(--slate-700) !important;
    font-size: var(--fs-sm) !important;
}

body .jo-la-page .text-glow-purple {
    color: var(--brand) !important;
    text-shadow: none;
}

body .jo-la-page .warning-pulse {
    background-color: var(--warn);
    animation: none;
    box-shadow: none;
}

body .jo-la-page .btn-neon-action {
    padding: 0.4375rem 0.875rem !important;
    border: 0;
    border-radius: var(--r-md);
    background: var(--brand);
    box-shadow: none;
    font-size: var(--fs-sm) !important;
    letter-spacing: 0;
    text-transform: none;
}

    body .jo-la-page .btn-neon-action:hover {
        background: var(--brand-hover);
        box-shadow: none;
        filter: none;
        transform: none; /* no hover-lift */
    }

/* ---- Grid card ---- */
.jo-la-page .card.d-md-block {
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--shadow-1) !important;
}

    .jo-la-page .RadGrid .rgHeader {
        background: var(--slate-50) !important;
        color: var(--slate-700) !important;
        font-size: var(--fs-sm) !important;
        font-weight: var(--fw-semibold) !important;
        text-transform: none !important;
    }

    .jo-la-page .RadGrid .rgRow:hover td,
    .jo-la-page .RadGrid .rgAltRow:hover td {
        background: var(--brand-soft) !important;
    }

    .jo-la-page .RadGrid .rgNumPart a.rgCurrentPage {
        border-color: var(--brand) !important;
        background: var(--brand) !important;
        color: #fff !important;
    }

/* ---- Modals: standard gradient header ---- */
#leaveModal .modal-header.bg-gradient-violet,
#leaveDetailsModal .modal-header.page-header-violet {
    background: var(--grad-hero) !important;
    color: var(--on-hero) !important;
}

#leaveModal .modal-content,
#leaveDetailsModal .modal-content {
    border-radius: var(--r-xl) !important;
    box-shadow: var(--shadow-3) !important;
}

#leaveDetailsModal .uppercase,
#leaveModal .uppercase {
    letter-spacing: 0;
    text-transform: none;
}
