/* =============================================================================
   Onerikrut ATS theme  -  "Modules 2.0" look from docs/Onerikrut_ATS_UIUX.pdf
   -----------------------------------------------------------------------------
   Light, Apple-style UI: frosted topbar, light sidebar with rounded menu
   pills, soft #f5f5f7 canvas, white 16px-radius cards, iOS system colours,
   blue -> violet gradient for primary actions.

   The file has three layers:

     1. TOKENS     :root custom properties (--ok-*). Always on, change nothing
                   by themselves.
     2. COMPONENTS .ok-* classes for building pages that match the mockup
                   (page head, stat cards, segmented control, status pills,
                   chips, avatars, drop zone, steps, progress, ring, bars...).
                   Usable on any page once this file is linked.
     3. SHELL SKIN Re-skins the existing UBold shell (topbar, sidebar, menu,
                   content area, footer) and common Bootstrap / plugin parts
                   (cards, buttons, forms, tables, badges, tabs, modals,
                   dropdowns, select2, DataTables, pagination).
                   ONLY active when <body> has the class "ok-theme".
     4. MODULE PAGES  Page rules for the redesigned module pages (scoped by
                   the page wrapper class). Put new page css here instead of
                   a <style> block in the module .html.
     5. GLOBAL READABILITY  Darker base text greys for EVERY page (legacy ones too).

   index.html links it once for all pages, after styles.css / ui-common.css:
     <link href="./assets/css/onerikrut-theme.css?v=20261106l" rel="stylesheet" type="text/css" />
   The redesigned module pages also link it (same URL, so it is cached), which
   keeps them correct if they are opened before index.html is updated.

   Turn the shell skin on by adding  ok-theme  to <body class="...">.
   Remove the class to roll back instantly.
   ============================================================================= */


/* =============================================================================
   1. TOKENS
   ============================================================================= */
:root {
    /* Typography */
    --ok-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ok-font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ok-fs-xs: 11px;       /* eyebrow / uppercase labels (was 10.5px) */
    --ok-fs-sm: 12px;
    --ok-fs: 13px;          /* body / menu */
    --ok-fs-md: 15px;
    --ok-fs-title: 28px;    /* page title */
    --ok-fs-stat: 28px;     /* stat value */
    --ok-track: .12em;      /* uppercase letter spacing */

    /* Surfaces */
    --ok-bg: #f5f5f7;                   /* page canvas */
    --ok-bg-tint: #eef4fd;              /* soft blue glow, top right */
    --ok-surface: #ffffff;              /* cards */
    --ok-surface-2: #fafafc;            /* row hover, subtle fills */
    --ok-sidebar: #fcfcfd;
    --ok-topbar: rgba(251, 251, 252, .82);
    --ok-fill: #ededf0;                 /* segmented track, chips */
    --ok-fill-2: #f2f2f4;               /* active menu pill */

    /* Lines */
    --ok-line: #e5e5ea;
    --ok-line-2: #ececf0;
    --ok-line-3: #f2f2f4;               /* table row separators */

    /* Text */
    --ok-text: #1d1d1f;
    --ok-text-2: #2c2c2e;               /* body text (was #3a3a3c) */
    --ok-text-3: #545458;               /* secondary / subtitles (was #6e6e73, ~7.6:1 on white) */
    --ok-text-4: #66666b;               /* labels, icons (was #8e8e93, ~5.9:1 on white) */
    --ok-text-5: #8e8e93;               /* placeholders, empty dashes (was #aeaeb2) */

    /* iOS system colours (sampled from the mockup) */
    --ok-blue: #007aff;
    --ok-purple: #af52de;
    --ok-teal: #5ac8fa;
    --ok-green: #34c759;
    --ok-red: #ff3b30;
    --ok-orange: #ff9500;
    --ok-pink: #ff2d55;
    --ok-indigo: #5e5ce6;
    --ok-gray: #8e8e93;

    /* Brand gradients */
    --ok-grad: linear-gradient(135deg, #007aff 0%, #af52de 100%);
    --ok-grad-hover: linear-gradient(135deg, #0a6fe8 0%, #9d45cc 100%);
    --ok-grad-pink: linear-gradient(90deg, #af52de 0%, #ff2d55 100%);

    /* Shape */
    --ok-r-xs: 6px;
    --ok-r-sm: 8px;
    --ok-r: 10px;           /* buttons, inputs, menu items */
    --ok-r-lg: 16px;        /* cards */
    --ok-r-xl: 20px;        /* modals */
    --ok-r-pill: 999px;

    /* Elevation */
    --ok-shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
    --ok-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
    --ok-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
    --ok-shadow-lg: 0 4px 12px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .12);
    --ok-shadow-primary: 0 4px 14px rgba(0, 122, 255, .28);
    --ok-ring: 0 0 0 3px rgba(0, 122, 255, .22);

    /* Layout */
    --ok-sidebar-w: 240px;
    --ok-sidebar-w-condensed: 70px;
    --ok-topbar-h: 60px;
    --ok-gutter: 24px;
    --ok-gap: 16px;

    /* Motion */
    --ok-ease: cubic-bezier(.2, .8, .2, 1);
    --ok-t: .18s;
}


/* =============================================================================
   2. COMPONENTS  (.ok-*)
   ============================================================================= */

/* ---- Page wrapper -------------------------------------------------------- */
.ok-page {
    font-family: var(--ok-font);
    font-size: var(--ok-fs);
    color: var(--ok-text-2);
    padding: 24px 0 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ok-page *, .ok-page *::before, .ok-page *::after { box-sizing: border-box; }
.ok-stack > * + * { margin-top: var(--ok-gap); }
.ok-muted { color: var(--ok-text-3) !important; }
.ok-faint { color: var(--ok-text-4) !important; }
.ok-strong { color: var(--ok-text) !important; font-weight: 600; }
.ok-num { font-variant-numeric: tabular-nums; }

/* ---- Page head: eyebrow / title / subtitle + right aside ------------------ */
.ok-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin: 0 0 20px;
}
.ok-eyebrow {
    margin: 0 0 4px; font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4);
}
.ok-title {
    margin: 0; font-family: var(--ok-font-display); font-size: var(--ok-fs-title);
    font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ok-text);
}
.ok-subtitle { margin: 4px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }
.ok-page-head-aside { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* "Live demo · all systems normal" status pill */
.ok-live {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border-radius: var(--ok-r-pill); background: rgba(142, 142, 147, .12);
    color: var(--ok-green); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.ok-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(52, 199, 89, .18); }

/* Section label between blocks  ("SCHEDULED INTERVIEWS · 30 PER PAGE") */
.ok-section-label {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 24px 0 10px; font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4);
}
.ok-section-label .ok-section-meta { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ok-text-5); }

/* ---- Grids --------------------------------------------------------------- */
.ok-grid { display: grid; gap: var(--ok-gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ok-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ok-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ok-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ok-grid--main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }   /* content + side panel */
.ok-grid--side { grid-template-columns: 300px minmax(0, 1fr); }              /* filter column + results */
@media (max-width: 1199.98px) { .ok-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
    .ok-grid--3, .ok-grid--main, .ok-grid--side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) { .ok-grid--2, .ok-grid--4 { grid-template-columns: minmax(0, 1fr); } }

.ok-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ok-toolbar--between { justify-content: space-between; }
.ok-toolbar .ok-spacer { flex: 1 1 auto; }

/* ---- Card ---------------------------------------------------------------- */
.ok-card {
    position: relative; background: var(--ok-surface); border: 1px solid var(--ok-line-2);
    border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); padding: 20px;
    min-width: 0;
}
.ok-card--flush { padding: 0; overflow: hidden; }
.ok-card--flat { box-shadow: var(--ok-shadow-xs); }
.ok-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ok-card--flush > .ok-card-head { padding: 18px 20px 0; }
.ok-card-title {
    margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}
.ok-card-heading { margin: 0; font-size: var(--ok-fs-md); font-weight: 600; color: var(--ok-text); }
.ok-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ok-line-3); }
.ok-divider { height: 1px; background: var(--ok-line-3); border: 0; margin: 14px 0; }

/* ---- Stat card (coloured left bar) ---------------------------------------
   <div class="ok-stat ok-stat--blue">
     <div class="ok-stat-label">Active job orders</div>
     <div class="ok-stat-value">180</div>
     <div class="ok-stat-sub">Across all clients</div>
   </div>                                                                      */
.ok-stat {
    --ok-accent: var(--ok-blue);
    position: relative; overflow: hidden; background: var(--ok-surface);
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg);
    box-shadow: var(--ok-shadow); padding: 18px 20px 18px 24px; min-width: 0;
}
.ok-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok-accent); }
.ok-stat-label {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}
.ok-stat-value {
    margin-top: 10px; font-family: var(--ok-font-display); font-size: var(--ok-fs-stat);
    font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ok-text);
    font-variant-numeric: tabular-nums;
}
.ok-stat-sub { margin-top: 6px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.ok-stat a.ok-stat-link, a.ok-stat { color: inherit; text-decoration: none; transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
a.ok-stat:hover { transform: translateY(-1px); box-shadow: var(--ok-shadow-lg); }

/* Stat card with an icon on the left instead of a bar (Job Order Requests) */
.ok-stat--icon { display: flex; align-items: center; gap: 16px; padding-left: 20px; }
.ok-stat--icon::before { display: none; }
.ok-stat-icon {
    flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--ok-r); color: var(--ok-accent); background: rgba(142, 142, 147, .12);
    background: color-mix(in srgb, var(--ok-accent) 12%, transparent);
    font-size: 18px;
}
.ok-stat--icon .ok-stat-value { margin-top: 2px; font-size: 22px; }
.ok-stat--icon .ok-stat-sub { margin-top: 2px; }

/* Accent modifiers (shared by .ok-stat, .ok-tile, .ok-progress, .ok-dot) */
.ok-stat--blue,   .ok-tile--blue,   .ok-progress--blue,   .ok-dot--blue   { --ok-accent: var(--ok-blue); }
.ok-stat--purple, .ok-tile--purple, .ok-progress--purple, .ok-dot--purple { --ok-accent: var(--ok-purple); }
.ok-stat--teal,   .ok-tile--teal,   .ok-progress--teal,   .ok-dot--teal   { --ok-accent: var(--ok-teal); }
.ok-stat--green,  .ok-tile--green,  .ok-progress--green,  .ok-dot--green  { --ok-accent: var(--ok-green); }
.ok-stat--red,    .ok-tile--red,    .ok-progress--red,    .ok-dot--red    { --ok-accent: var(--ok-red); }
.ok-stat--orange, .ok-tile--orange, .ok-progress--orange, .ok-dot--orange { --ok-accent: var(--ok-orange); }
.ok-stat--pink,   .ok-tile--pink,   .ok-progress--pink,   .ok-dot--pink   { --ok-accent: var(--ok-pink); }
.ok-stat--indigo, .ok-tile--indigo, .ok-progress--indigo, .ok-dot--indigo { --ok-accent: var(--ok-indigo); }
.ok-stat--gray,   .ok-tile--gray,   .ok-progress--gray,   .ok-dot--gray   { --ok-accent: var(--ok-gray); }

/* Trend pill inside a stat label  ("▲ 2.4%") */
.ok-trend {
    display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--ok-r-pill);
    background: rgba(52, 199, 89, .12); color: var(--ok-green);
    font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.ok-trend.is-down { background: rgba(255, 59, 48, .10); color: var(--ok-red); }
.ok-trend.is-flat { background: rgba(142, 142, 147, .12); color: var(--ok-text-3); }

/* ---- Metric tile (coloured top border; "Performance trend", "Interview progress") */
.ok-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
/* default colour at zero specificity, so .ok-tile--{colour} (defined above) wins */
:where(.ok-tile) { --ok-accent: var(--ok-gray); }
.ok-tile {
    background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-top: 3px solid var(--ok-accent);
    border-radius: 12px; box-shadow: var(--ok-shadow-sm); padding: 10px 12px; text-align: center; min-width: 0;
}
.ok-tile--left { text-align: left; }
.ok-tile-value { font-family: var(--ok-font-display); font-size: 20px; font-weight: 700; color: var(--ok-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ok-tile-label { margin-top: 2px; font-size: 11px; color: var(--ok-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Inline mini metrics ("3 Sent to client  5 Interviews  2 Placed") */
.ok-metrics { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ok-metric-value { font-size: 18px; font-weight: 700; color: var(--ok-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ok-metric-label { font-size: 11px; color: var(--ok-text-3); }

/* ---- Buttons --------------------------------------------------------------- */
.ok-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 16px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text); font-family: var(--ok-font);
    font-size: var(--ok-fs); font-weight: 600; line-height: 1; white-space: nowrap;
    text-decoration: none; cursor: pointer; box-shadow: var(--ok-shadow-xs);
    transition: background var(--ok-t), border-color var(--ok-t), box-shadow var(--ok-t), transform var(--ok-t), color var(--ok-t);
}
.ok-btn:hover { background: var(--ok-surface-2); border-color: #d6d6dc; color: var(--ok-text); }
.ok-btn:active { transform: scale(.98); }
.ok-btn:focus-visible { outline: 0; box-shadow: var(--ok-ring); }
.ok-btn:disabled, .ok-btn.is-disabled { opacity: .5; pointer-events: none; }
.ok-btn i, .ok-btn .mdi { font-size: 15px; line-height: 1; }

.ok-btn--primary { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
.ok-btn--primary:hover { background: var(--ok-grad-hover); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(0, 122, 255, .34); }
.ok-btn--blue { border-color: transparent; background: var(--ok-blue); color: #fff; }
.ok-btn--blue:hover { background: #0a6fe8; border-color: transparent; color: #fff; }
.ok-btn--success { border-color: transparent; background: var(--ok-green); color: #fff; }
.ok-btn--success:hover { background: #2fb350; border-color: transparent; color: #fff; }
.ok-btn--danger { border-color: transparent; background: var(--ok-red); color: #fff; }
.ok-btn--danger:hover { background: #e6352b; border-color: transparent; color: #fff; }
.ok-btn--ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--ok-text-3); }
.ok-btn--ghost:hover { background: var(--ok-fill); border-color: transparent; color: var(--ok-text); }
.ok-btn--sm { height: 28px; padding: 0 12px; font-size: var(--ok-fs-sm); border-radius: var(--ok-r-sm); }
.ok-btn--lg { height: 40px; padding: 0 20px; font-size: 14px; }
.ok-btn--block { display: flex; width: 100%; }
.ok-btn--icon { width: 34px; padding: 0; }
.ok-btn--sm.ok-btn--icon { width: 28px; }

/* Square icon button with optional red dot (topbar bell) */
.ok-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text-2); box-shadow: var(--ok-shadow-xs); font-size: 17px; cursor: pointer;
}
.ok-icon-btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
.ok-icon-btn .ok-dot-badge, .ok-dot-badge {
    position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok-red); box-shadow: 0 0 0 2px #fff;
}

/* ---- Form controls --------------------------------------------------------- */
.ok-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ok-label {
    margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}
.ok-input, .ok-select, .ok-textarea {
    display: block; width: 100%; height: 36px; padding: 0 12px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface);
    color: var(--ok-text); font-family: var(--ok-font); font-size: var(--ok-fs);
    transition: border-color var(--ok-t), box-shadow var(--ok-t);
    -webkit-appearance: none; appearance: none;
}
.ok-textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.ok-select {
    padding-right: 32px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.ok-input::placeholder, .ok-textarea::placeholder { color: var(--ok-text-5); }
.ok-input:focus, .ok-select:focus, .ok-textarea:focus { outline: 0; border-color: var(--ok-blue); box-shadow: var(--ok-ring); }

/* Search box with leading icon and optional ⌘K hint */
.ok-search { position: relative; display: flex; align-items: center; min-width: 0; }
.ok-search > i, .ok-search > .mdi, .ok-search > svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--ok-text-4); font-size: 15px; pointer-events: none;
}
.ok-search .ok-input { padding-left: 36px; box-shadow: var(--ok-shadow-xs); }
.ok-search .ok-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.ok-search--lg .ok-input { height: 40px; }
.ok-kbd {
    display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--ok-r-xs);
    border: 1px solid var(--ok-line); background: var(--ok-fill-2); color: var(--ok-text-3);
    font-family: var(--ok-font); font-size: 11px; font-weight: 600;
}

/* ---- Segmented control (Total / Active / On hold / Closed) ------------------
   <div class="ok-segmented"><button class="is-active">Total</button><button>Active</button></div>
   Works with <a>, <button>, or Bootstrap .nav-link (.active).                 */
.ok-segmented {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto;
    border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill);
    list-style: none; margin: 0;
}
.ok-segmented > *, .ok-segmented .nav-link {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px;
    border: 0; border-radius: var(--ok-r-sm); background: transparent; color: var(--ok-text-4);
    font-family: var(--ok-font); font-size: var(--ok-fs); font-weight: 600; white-space: nowrap;
    text-decoration: none; cursor: pointer; transition: background var(--ok-t), color var(--ok-t), box-shadow var(--ok-t);
}
.ok-segmented > li { padding: 0; height: auto; }
.ok-segmented > *:hover, .ok-segmented .nav-link:hover { color: var(--ok-text-2); }
.ok-segmented > .is-active, .ok-segmented > .active, .ok-segmented .nav-link.active {
    background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04);
}
.ok-segmented--block { display: flex; width: 100%; }
.ok-segmented--block > *, .ok-segmented--block .nav-item { flex: 1 1 0; justify-content: center; }
.ok-segmented--block .nav-link { width: 100%; justify-content: center; }

/* ---- Pills: status (with dot), counts, chips ------------------------------- */
.ok-pill {
    --ok-tone: var(--ok-text-3); --ok-tone-bg: rgba(142, 142, 147, .14);
    display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
    border-radius: var(--ok-r-pill); background: var(--ok-tone-bg); color: var(--ok-tone);
    font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.ok-pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.ok-pill--success { --ok-tone: #248a3d; --ok-tone-bg: rgba(52, 199, 89, .14); }
.ok-pill--warning { --ok-tone: #c93400; --ok-tone-bg: rgba(255, 149, 0, .14); }
.ok-pill--orange  { --ok-tone: var(--ok-orange); --ok-tone-bg: rgba(255, 149, 0, .12); }
.ok-pill--danger  { --ok-tone: #d70015; --ok-tone-bg: rgba(255, 59, 48, .12); }
.ok-pill--info    { --ok-tone: var(--ok-blue); --ok-tone-bg: rgba(0, 122, 255, .10); }
.ok-pill--purple  { --ok-tone: #8944ab; --ok-tone-bg: rgba(175, 82, 222, .12); }
.ok-pill--teal    { --ok-tone: #0071a4; --ok-tone-bg: rgba(90, 200, 250, .18); }
.ok-pill--neutral { --ok-tone: var(--ok-text-3); --ok-tone-bg: rgba(142, 142, 147, .14); }
.ok-pill--solid   { --ok-tone: #fff; --ok-tone-bg: var(--ok-blue); }

/* Grey tag chip (skills: PHP, MySQL) and count chip ("3 Job orders") */
.ok-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px;
    border: 1px solid #dcdce0; border-radius: var(--ok-r-pill); background: var(--ok-fill);
    color: var(--ok-text-2); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.ok-chip b, .ok-chip strong { color: var(--ok-text); font-weight: 700; }
.ok-chip--lg { height: 26px; padding: 0 12px; font-size: var(--ok-fs-sm); }
.ok-chip--white { background: var(--ok-surface); border-color: var(--ok-line); box-shadow: var(--ok-shadow-xs); }
/* Permission chips: granted = blue outline, denied = dashed grey */
.ok-chip--on { background: rgba(0, 122, 255, .06); border-color: rgba(0, 122, 255, .45); color: var(--ok-blue); }
.ok-chip--off { background: transparent; border-style: dashed; border-color: var(--ok-line); color: var(--ok-text-5); }
.ok-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Dot + legend list (CV health, Status of my CVs) ----------------------- */
/* default colour at zero specificity, so .ok-dot--{colour} (defined above) wins */
:where(.ok-dot) { --ok-accent: var(--ok-gray); }
.ok-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-accent); flex: 0 0 auto; }
.ok-list { list-style: none; margin: 0; padding: 0; }
.ok-list > li, .ok-list-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: var(--ok-fs); color: var(--ok-text-2);
}
.ok-list > li + li { border-top: 1px solid var(--ok-line-3); }
.ok-list--plain > li + li { border-top: 0; }
.ok-list-value { margin-left: auto; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }

/* Key / value rows (profile card) */
.ok-kv { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.ok-kv > dt, .ok-kv > dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--ok-line-3); font-size: var(--ok-fs); }
.ok-kv > dt { color: var(--ok-text-3); font-weight: 400; }
.ok-kv > dd { text-align: right; color: var(--ok-text); font-weight: 600; word-break: break-word; }
.ok-kv > dt:last-of-type, .ok-kv > dd:last-of-type { border-bottom: 0; }

/* ---- Avatar (gradient circle with initials) -------------------------------- */
.ok-avatar {
    --ok-av: var(--ok-grad);
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: var(--ok-av); color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: .02em; overflow: hidden; text-transform: uppercase;
}
.ok-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ok-avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.ok-avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.ok-avatar--lg { width: 48px; height: 48px; font-size: 16px; }
.ok-avatar--xl { width: 64px; height: 64px; font-size: 20px; }
.ok-avatar--1 { --ok-av: linear-gradient(135deg, #007aff, #af52de); }
.ok-avatar--2 { --ok-av: linear-gradient(135deg, #5ac8fa, #007aff); }
.ok-avatar--3 { --ok-av: linear-gradient(135deg, #af52de, #ff2d55); }
.ok-avatar--4 { --ok-av: linear-gradient(135deg, #34c759, #30b0c7); }
.ok-avatar--5 { --ok-av: linear-gradient(135deg, #ff9500, #ff2d55); }
.ok-avatar--6 { --ok-av: linear-gradient(135deg, #5e5ce6, #af52de); }

/* Person row (CV search result, team directory) */
.ok-person {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow-sm);
}
.ok-person + .ok-person { margin-top: 10px; }
.ok-person-main { flex: 1 1 auto; min-width: 0; }
.ok-person-name { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-person-meta { margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-person-main .ok-chips { margin-top: 6px; }
.ok-person-aside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ok-people { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); overflow: hidden; }
.ok-people > .ok-person { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.ok-people > .ok-person + .ok-person { border-top: 1px solid var(--ok-line-3); }

/* ---- Table ----------------------------------------------------------------
   <div class="ok-card ok-card--flush"><div class="ok-table-wrap"><table class="ok-table">...  */
.ok-table-wrap { width: 100%; overflow-x: auto; }
.ok-table { width: 100%; border-collapse: collapse; font-size: var(--ok-fs); color: var(--ok-text-2); }
.ok-table th {
    padding: 14px 16px 12px; text-align: left; white-space: nowrap; background: transparent;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ok-text-4);
    border-bottom: 1px solid var(--ok-line-2);
}
.ok-table td { padding: 13px 16px; vertical-align: middle; border-bottom: 1px solid var(--ok-line-3); }
.ok-table tbody tr:last-child td { border-bottom: 0; }
.ok-table tbody tr { transition: background var(--ok-t); }
.ok-table tbody tr:hover { background: var(--ok-surface-2); }
.ok-table td.ok-cell-strong, .ok-table td:first-child.ok-cell-strong { font-weight: 600; color: var(--ok-text); }
.ok-table td a { color: var(--ok-blue); text-decoration: none; }
.ok-table .ok-cell-actions { text-align: right; white-space: nowrap; }
.ok-table--compact th { padding: 10px 14px 8px; }
.ok-table--compact td { padding: 9px 14px; }
.ok-table-foot { padding: 10px 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }

/* ---- Drop zone (Resume parser, CV-JD match) -------------------------------- */
.ok-dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 180px; padding: 32px 20px; text-align: center; cursor: pointer;
    border: 1.5px dashed rgba(0, 122, 255, .45); border-radius: var(--ok-r-lg);
    background: rgba(0, 122, 255, .035); transition: background var(--ok-t), border-color var(--ok-t);
}
.ok-dropzone:hover, .ok-dropzone.is-dragover { background: rgba(0, 122, 255, .07); border-color: var(--ok-blue); }
.ok-dropzone-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px;
    border-radius: 50%; background: var(--ok-grad); color: #fff; font-size: 20px; box-shadow: var(--ok-shadow-primary);
}
.ok-dropzone-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ok-text); }
.ok-dropzone-hint { margin: 0; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.ok-dropzone .ok-btn { margin-top: 10px; }

/* ---- Numbered steps ("How it works") and step cards ("01 Client hiring manager") */
.ok-steps { list-style: none; margin: 0; padding: 0; counter-reset: ok-step; }
.ok-steps > li { display: flex; gap: 12px; padding: 8px 0; counter-increment: ok-step; }
.ok-steps > li::before {
    content: counter(ok-step); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--ok-grad); color: #fff; font-size: 12px; font-weight: 700;
}
.ok-step-title { margin: 3px 0 2px; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }
.ok-step-text { margin: 0; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.ok-step-num {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--ok-grad); color: #fff; font-size: 11px; font-weight: 700;
}
.ok-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }

/* ---- Progress bar ----------------------------------------------------------- */
.ok-progress { --ok-accent: var(--ok-blue); --ok-value: 0%; height: 6px; border-radius: var(--ok-r-pill); background: var(--ok-fill); overflow: hidden; }
.ok-progress > span, .ok-progress-bar { display: block; height: 100%; width: var(--ok-value); border-radius: inherit; background: var(--ok-accent); transition: width .4s var(--ok-ease); }
.ok-progress--grad > span, .ok-progress--grad .ok-progress-bar { background: var(--ok-grad); }
.ok-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-text-4); }

/* ---- Ring (0% parsed / replies)  <div class="ok-ring" style="--ok-value:62"><span>62%</span></div> */
.ok-ring {
    --ok-value: 0; --ok-size: 84px; --ok-accent: var(--ok-blue);
    position: relative; flex: 0 0 auto; width: var(--ok-size); height: var(--ok-size); border-radius: 50%;
    background: conic-gradient(var(--ok-accent) calc(var(--ok-value) * 1%), var(--ok-fill) 0);
    display: inline-flex; align-items: center; justify-content: center;
}
.ok-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ok-surface); }
.ok-ring > * { position: relative; font-size: 18px; font-weight: 700; color: var(--ok-text); }
.ok-ring--sm { --ok-size: 60px; }
.ok-ring--sm > * { font-size: 14px; }

/* ---- Simple bar chart (Parsing accuracy, Messages per month) ----------------
   <div class="ok-bars"><div class="ok-bar" style="--ok-value:60"><span>Jan</span></div>...</div> */
.ok-bars { display: flex; align-items: flex-end; gap: 14px; height: 140px; padding-top: 8px; }
.ok-bar { --ok-value: 50; flex: 1 1 0; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.ok-bar::before { content: ""; display: block; width: 100%; max-width: 36px; height: calc(var(--ok-value) * 1%); min-height: 4px; border-radius: 8px; background: var(--ok-fill); transition: height .4s var(--ok-ease); }
.ok-bar.is-active::before, .ok-bar:hover::before { background: var(--ok-grad); }
.ok-bar > span { margin-top: 6px; font-size: 10px; color: var(--ok-text-4); white-space: nowrap; }

/* ---- Empty state ------------------------------------------------------------ */
.ok-empty { padding: 40px 20px; text-align: center; color: var(--ok-text-4); font-size: var(--ok-fs); }
.ok-empty > i { display: block; margin-bottom: 8px; font-size: 32px; color: var(--ok-text-5); }

/* ---- Brand mark (logo tile + name) for custom headers ----------------------- */
.ok-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ok-brand-mark {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: var(--ok-r-sm); background: var(--ok-grad); color: #fff; font-size: 14px; font-weight: 700;
    box-shadow: 0 6px 16px rgba(94, 100, 237, .35);
}
.ok-brand-name { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text); line-height: 1.1; }
.ok-brand-sub { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ok-text-4); }

/* Breadcrumb ("Onerikrut ATS / Dashboard") */
.ok-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--ok-fs); color: var(--ok-text-4); }
.ok-breadcrumb > li + li::before { content: "/"; margin-right: 8px; color: var(--ok-text-5); }
.ok-breadcrumb a { color: var(--ok-text-4); text-decoration: none; }
.ok-breadcrumb .is-current, .ok-breadcrumb > li:last-child { color: var(--ok-text); font-weight: 600; }


/* =============================================================================
   3. SHELL SKIN  (only with <body class="ok-theme">)
   "html body.ok-theme" outranks UBold's  body[data-sidebar-color=dark] ...
   and styles.css overrides without needing !important.
   ============================================================================= */

/* ---- Base ------------------------------------------------------------------ */
html body.ok-theme {
    font-family: var(--ok-font);
    color: var(--ok-text-2);
    background-color: var(--ok-bg);
    background-image: radial-gradient(1200px 600px at 100% 0%, var(--ok-bg-tint) 0%, rgba(238, 244, 253, 0) 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html body.ok-theme h1, html body.ok-theme h2, html body.ok-theme h3,
html body.ok-theme h4, html body.ok-theme h5, html body.ok-theme h6 { font-family: var(--ok-font-display); color: var(--ok-text); letter-spacing: -.01em; }
html body.ok-theme a { color: var(--ok-blue); }
html body.ok-theme a:hover { color: #0a6fe8; }
html body.ok-theme .text-muted { color: var(--ok-text-3) !important; }
html body.ok-theme ::selection { background: rgba(0, 122, 255, .18); }

/* ---- Topbar ---------------------------------------------------------------- */
html body.ok-theme .navbar-custom {
    height: var(--ok-topbar-h);
    padding: 0 16px 0 0;
    background-color: var(--ok-topbar);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--ok-line);
    box-shadow: none;
}
/* (the <li>s carry an inline display:block, so the 34px buttons are centred with margins) */
html body.ok-theme .navbar-custom .topnav-menu > li { height: var(--ok-topbar-h); }
html body.ok-theme .navbar-custom .topnav-menu .nav-link {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 34px; min-width: 34px; max-height: 34px; margin: calc((var(--ok-topbar-h) - 34px) / 2) 3px; padding: 0 8px;
    line-height: 1; color: var(--ok-text-2); border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); box-shadow: var(--ok-shadow-xs);
    transition: background var(--ok-t), color var(--ok-t);
}
html body.ok-theme .navbar-custom .topnav-menu .nav-link:hover,
html body.ok-theme .navbar-custom .dropdown .nav-link.show { background: var(--ok-surface-2); color: var(--ok-text); }
/* Inline colours / sizes on the topbar icons are normalised to the mockup's monochrome set */
html body.ok-theme .navbar-custom .topnav-menu .nav-link > i,
html body.ok-theme .navbar-custom .topnav-menu .noti-icon {
    font-size: 17px !important; line-height: 1 !important; color: var(--ok-text-2) !important;
}
html body.ok-theme .navbar-custom .topnav-menu .mdi-whatsapp { color: #25d366 !important; }
html body.ok-theme .navbar-custom .noti-icon-badge {
    position: absolute; top: -5px; right: -5px; display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--ok-r-pill) !important;
    background: var(--ok-red) !important; color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}
html body.ok-theme .navbar-custom .noti-icon-badge i { font-size: 10px; }
/* User chip on the right */
html body.ok-theme .navbar-custom .nav-user { gap: 8px; padding: 0 10px 0 3px !important; border-radius: var(--ok-r-pill); }
html body.ok-theme .navbar-custom .nav-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
html body.ok-theme .navbar-custom .pro-user-name { margin: 0 !important; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }
/* Hamburger */
html body.ok-theme .navbar-custom .button-menu-mobile {
    height: var(--ok-topbar-h); width: 52px; background: transparent; border: 0; color: var(--ok-text-2); font-size: 20px;
}
html body.ok-theme .navbar-custom .button-menu-mobile:hover { color: var(--ok-text); }
/* App search in the topbar, if present */
html body.ok-theme .navbar-custom .app-search .form-control,
html body.ok-theme .navbar-custom input.form-control {
    height: 34px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface);
    color: var(--ok-text); box-shadow: var(--ok-shadow-xs);
}

/* Logo box = top of the sidebar column */
html body.ok-theme .logo-box {
    height: var(--ok-topbar-h);
    width: var(--ok-sidebar-w);
    background-color: var(--ok-sidebar);
    border-right: 1px solid var(--ok-line);
}
html body.ok-theme .logo-box .logo { display: flex; align-items: center; height: var(--ok-topbar-h); line-height: var(--ok-topbar-h); padding: 0 20px; }
html body.ok-theme .logo-box .logo-lg { line-height: 1; }
html body.ok-theme .logo-box #company-name,
html body.ok-theme .logo-box .logo-lg > span {
    color: var(--ok-text) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: -.01em;
}

/* Topbar dropdown panels */
html body.ok-theme .navbar-custom .dropdown-menu { margin-top: 6px !important; }

/* ---- Sidebar --------------------------------------------------------------- */
html body.ok-theme .left-side-menu {
    top: var(--ok-topbar-h);
    width: var(--ok-sidebar-w);
    padding: 12px 0 16px;
    background-color: var(--ok-sidebar);
    border-right: 1px solid var(--ok-line);
    box-shadow: none;
}
/* User box */
html body.ok-theme .left-side-menu .user-box { margin: 0 12px 10px; padding: 6px 0 12px; border-bottom: 1px solid var(--ok-line-2); }
html body.ok-theme .left-side-menu .user-box img.avatar-md { width: 44px; height: 44px; border: 2px solid #fff; box-shadow: var(--ok-shadow-sm); }
html body.ok-theme .left-side-menu .user-box .dropdown > a { color: var(--ok-text) !important; font-size: 13.5px; font-weight: 600; }
html body.ok-theme .left-side-menu .user-box p.text-muted { margin: 0; font-size: 11px; color: var(--ok-text-4) !important; }
/* Menu search */
html body.ok-theme .left-side-menu #menu-search {
    height: 34px; border: 1px solid var(--ok-line); border-radius: var(--ok-r) !important; background: var(--ok-surface);
    color: var(--ok-text); font-size: var(--ok-fs-sm); box-shadow: var(--ok-shadow-xs);
}
html body.ok-theme .left-side-menu #menu-search::placeholder { color: var(--ok-text-5); }
html body.ok-theme .left-side-menu #menu-search:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body.ok-theme .left-side-menu #reset-menu-search { margin-left: 6px; border-radius: var(--ok-r) !important; }
html body.ok-theme .left-side-menu #sidebar-menu > .px-2 { padding: 0 12px !important; margin-bottom: 10px !important; }

/* Section titles */
html body.ok-theme .left-side-menu #sidebar-menu .menu-title {
    padding: 14px 22px 6px; font-size: 10px; font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}
/* First level items = rounded pills */
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a {
    display: flex; align-items: center; gap: 10px; margin: 1px 10px; padding: 7px 12px;
    border: 1px solid transparent; border-radius: var(--ok-r);
    color: #48484a; font-size: var(--ok-fs); font-weight: 400; line-height: 1.35;
    box-shadow: none; transition: background var(--ok-t), color var(--ok-t), border-color var(--ok-t);
}
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a > i {
    flex: 0 0 18px; width: 18px; margin: 0; text-align: center; font-size: 14px; line-height: 1; color: var(--ok-text-4);
}
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a > span:not(.menu-arrow):not(.badge) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a:hover,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a:focus { background-color: rgba(0, 0, 0, .035); color: var(--ok-text); }
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a:hover > i { color: var(--ok-text-2); }
/* Active */
html body.ok-theme .left-side-menu #sidebar-menu > ul > li.menuitem-active > a,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li.mm-active > a,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a.mm-active,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a.active {
    background-color: var(--ok-fill-2); border-color: var(--ok-line); color: var(--ok-text); font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
html body.ok-theme .left-side-menu #sidebar-menu > ul > li.menuitem-active > a > i,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li.mm-active > a > i,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a.mm-active > i,
html body.ok-theme .left-side-menu #sidebar-menu > ul > li > a.active > i { color: var(--ok-blue); }
html body.ok-theme .left-side-menu #sidebar-menu .menuitem-active .active { color: var(--ok-blue); }
/* Arrow */
html body.ok-theme .left-side-menu #sidebar-menu .menu-arrow { position: static; margin-left: auto; color: var(--ok-text-5); font-size: 14px; line-height: 1; transform: none; }
html body.ok-theme .left-side-menu #sidebar-menu [aria-expanded="true"] > .menu-arrow,
html body.ok-theme .left-side-menu #sidebar-menu .menuitem-active > a > .menu-arrow { transform: rotate(90deg); }
/* Count badges in the menu */
html body.ok-theme .left-side-menu #sidebar-menu .badge { border-radius: var(--ok-r-pill); font-weight: 600; }

/* Second / third level */
html body.ok-theme .left-side-menu .nav-second-level,
html body.ok-theme .left-side-menu .nav-thrid-level { padding: 2px 0 4px; }
html body.ok-theme .left-side-menu .nav-second-level li a,
html body.ok-theme .left-side-menu .nav-thrid-level li a {
    display: flex; align-items: center; gap: 8px; margin: 1px 10px 1px 22px; padding: 6px 12px 6px 18px;
    border-radius: var(--ok-r-sm); color: var(--ok-text-3); font-size: 12.5px; line-height: 1.35;
    background: transparent; transition: background var(--ok-t), color var(--ok-t);
}
html body.ok-theme .left-side-menu .nav-thrid-level li a,
html body.ok-theme .left-side-menu .nav-second-level .nav-second-level li a { margin-left: 34px; }
html body.ok-theme .left-side-menu .nav-second-level li a:hover,
html body.ok-theme .left-side-menu .nav-second-level li a:focus,
html body.ok-theme .left-side-menu .nav-thrid-level li a:hover,
html body.ok-theme .left-side-menu .nav-thrid-level li a:focus { background-color: rgba(0, 0, 0, .035); color: var(--ok-text); }
html body.ok-theme .left-side-menu .nav-second-level li.menuitem-active > a,
html body.ok-theme .left-side-menu .nav-second-level li.active > a,
html body.ok-theme .left-side-menu .nav-second-level li a.active,
html body.ok-theme .left-side-menu .nav-thrid-level li.active > a,
html body.ok-theme .left-side-menu .nav-thrid-level li a.active { color: var(--ok-blue); font-weight: 600; background-color: rgba(0, 122, 255, .06); }
html body.ok-theme .left-side-menu .nav-second-level li a i { color: var(--ok-text-4); font-size: 13px; }

/* Simplebar scrollbar */
html body.ok-theme .left-side-menu .simplebar-scrollbar::before { background: #c7c7cc; }

/* Condensed sidebar (hamburger on desktop) */
html body.ok-theme[data-sidebar-size=condensed] .logo-box { width: var(--ok-sidebar-w-condensed) !important; }
html body.ok-theme[data-sidebar-size=condensed] .logo-box .logo { justify-content: center; padding: 0; }
html body.ok-theme[data-sidebar-size=condensed] .left-side-menu { width: var(--ok-sidebar-w-condensed) !important; }
html body.ok-theme[data-sidebar-size=condensed] .left-side-menu #sidebar-menu > ul > li > a { justify-content: center; margin: 1px 8px; padding: 9px 0; }
html body.ok-theme[data-sidebar-size=condensed] .left-side-menu #sidebar-menu > ul > li > a > i { margin: 0 !important; font-size: 16px !important; }
html body.ok-theme[data-sidebar-size=condensed] #wrapper .left-side-menu #sidebar-menu > ul > li:hover > a {
    width: calc(var(--ok-sidebar-w-condensed) + 190px); justify-content: flex-start; padding: 9px 12px;
    background-color: var(--ok-surface); color: var(--ok-text); border-color: var(--ok-line); box-shadow: var(--ok-shadow);
}
html body.ok-theme[data-sidebar-size=condensed] #wrapper .left-side-menu #sidebar-menu > ul ul {
    background-color: var(--ok-surface); border: 1px solid var(--ok-line); border-radius: 12px; box-shadow: var(--ok-shadow-lg);
}
html body.ok-theme[data-sidebar-size=condensed] #wrapper .left-side-menu #sidebar-menu > ul ul a { margin: 1px 6px; padding: 7px 12px; width: auto; color: var(--ok-text-2); }
html body.ok-theme[data-sidebar-size=condensed] #wrapper .left-side-menu #sidebar-menu > ul ul a:hover { color: var(--ok-blue); }

/* ---- Content area ---------------------------------------------------------- */
html body.ok-theme .content-page {
    margin-top: var(--ok-topbar-h);
    margin-left: var(--ok-sidebar-w);
    padding: 0 var(--ok-gutter) 72px;
    background: transparent;
}
html body.ok-theme[data-sidebar-size=condensed] .content-page { margin-left: var(--ok-sidebar-w-condensed) !important; }
html body.ok-theme .footer {
    left: var(--ok-sidebar-w); padding: 16px var(--ok-gutter);
    background: transparent; border-top: 1px solid var(--ok-line-2); color: var(--ok-text-4); font-size: var(--ok-fs-sm);
}
html body.ok-theme[data-sidebar-size=condensed] .footer { left: var(--ok-sidebar-w-condensed) !important; }

@media (max-width: 991.98px) {
    html body.ok-theme .logo-box { width: var(--ok-sidebar-w-condensed) !important; border-right: 0; background: transparent; }
    html body.ok-theme .left-side-menu { box-shadow: var(--ok-shadow-lg); }
    html body.ok-theme .content-page,
    html body.ok-theme[data-sidebar-size=condensed] .content-page { margin-left: 0 !important; padding: 0 16px 72px; }
    html body.ok-theme .footer { left: 0 !important; }
}

/* UBold page title row  (.page-title-box > .page-title) */
html body.ok-theme .page-title-box { padding: 4px 0 0; margin-top: 20px; }
html body.ok-theme .page-title-box .page-title {
    margin: 0 0 14px; line-height: 1.2; font-family: var(--ok-font-display);
    font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ok-text);
}
html body.ok-theme .page-title-box .breadcrumb { font-size: var(--ok-fs-sm); }
html body.ok-theme .breadcrumb-item, html body.ok-theme .breadcrumb-item a { color: var(--ok-text-4); }
html body.ok-theme .breadcrumb-item.active { color: var(--ok-text); font-weight: 600; }

/* ---- Bootstrap: cards ------------------------------------------------------ */
html body.ok-theme .card {
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg);
    background: var(--ok-surface); box-shadow: var(--ok-shadow); margin-bottom: 20px;
}
html body.ok-theme .card > .card-header {
    background: transparent; border-bottom: 1px solid var(--ok-line-3); padding: 16px 20px;
    border-radius: var(--ok-r-lg) var(--ok-r-lg) 0 0;
}
html body.ok-theme .card > .card-footer { background: transparent; border-top: 1px solid var(--ok-line-3); border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); }
html body.ok-theme .card-body { padding: 20px; }
html body.ok-theme .card .header-title,
html body.ok-theme .card .card-title {
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}

/* ---- Bootstrap: buttons ---------------------------------------------------- */
html body.ok-theme .btn {
    border-radius: var(--ok-r); font-family: var(--ok-font); font-weight: 600;
    box-shadow: none; transition: background var(--ok-t), border-color var(--ok-t), box-shadow var(--ok-t), color var(--ok-t);
}
html body.ok-theme .btn-sm, html body.ok-theme .btn-group-sm > .btn { border-radius: var(--ok-r-sm); }
html body.ok-theme .btn-xs { border-radius: var(--ok-r-xs); }
html body.ok-theme .btn:focus, html body.ok-theme .btn:focus-visible { box-shadow: var(--ok-ring); }
html body.ok-theme .btn-group > .btn { border-radius: 0; }
html body.ok-theme .btn-group > .btn:first-child { border-top-left-radius: var(--ok-r); border-bottom-left-radius: var(--ok-r); }
html body.ok-theme .btn-group > .btn:last-child { border-top-right-radius: var(--ok-r); border-bottom-right-radius: var(--ok-r); }

html body.ok-theme .btn-primary { background: var(--ok-grad); border-color: transparent; color: #fff; box-shadow: var(--ok-shadow-primary); }
html body.ok-theme .btn-primary:hover, html body.ok-theme .btn-primary:focus, html body.ok-theme .btn-primary:active,
html body.ok-theme .btn-primary.active { background: var(--ok-grad-hover); border-color: transparent; color: #fff; }
html body.ok-theme .btn-success { background-color: var(--ok-green); border-color: var(--ok-green); color: #fff; }
html body.ok-theme .btn-success:hover, html body.ok-theme .btn-success:focus, html body.ok-theme .btn-success:active { background-color: #2fb350; border-color: #2fb350; color: #fff; }
html body.ok-theme .btn-info { background-color: var(--ok-blue); border-color: var(--ok-blue); color: #fff; }
html body.ok-theme .btn-info:hover, html body.ok-theme .btn-info:focus, html body.ok-theme .btn-info:active { background-color: #0a6fe8; border-color: #0a6fe8; color: #fff; }
html body.ok-theme .btn-danger { background-color: var(--ok-red); border-color: var(--ok-red); color: #fff; }
html body.ok-theme .btn-danger:hover, html body.ok-theme .btn-danger:focus, html body.ok-theme .btn-danger:active { background-color: #e6352b; border-color: #e6352b; color: #fff; }
html body.ok-theme .btn-warning { background-color: var(--ok-orange); border-color: var(--ok-orange); color: #fff; }
html body.ok-theme .btn-warning:hover, html body.ok-theme .btn-warning:focus, html body.ok-theme .btn-warning:active { background-color: #e68600; border-color: #e68600; color: #fff; }
html body.ok-theme .btn-secondary { background-color: var(--ok-gray); border-color: var(--ok-gray); color: #fff; }
html body.ok-theme .btn-secondary:hover, html body.ok-theme .btn-secondary:focus { background-color: #7c7c82; border-color: #7c7c82; color: #fff; }
html body.ok-theme .btn-dark { background-color: var(--ok-text); border-color: var(--ok-text); color: #fff; }
html body.ok-theme .btn-light, html body.ok-theme .btn-white {
    background-color: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text); box-shadow: var(--ok-shadow-xs);
}
html body.ok-theme .btn-light:hover, html body.ok-theme .btn-light:focus,
html body.ok-theme .btn-white:hover, html body.ok-theme .btn-white:focus { background-color: var(--ok-surface-2); border-color: #d6d6dc; color: var(--ok-text); }
html body.ok-theme .btn-link { color: var(--ok-blue); font-weight: 600; }

html body.ok-theme .btn-outline-primary   { color: var(--ok-blue);   border-color: rgba(0, 122, 255, .45); }
html body.ok-theme .btn-outline-success   { color: #248a3d;          border-color: rgba(52, 199, 89, .55); }
html body.ok-theme .btn-outline-danger    { color: var(--ok-red);    border-color: rgba(255, 59, 48, .45); }
html body.ok-theme .btn-outline-warning   { color: #c93400;          border-color: rgba(255, 149, 0, .55); }
html body.ok-theme .btn-outline-info      { color: var(--ok-blue);   border-color: rgba(0, 122, 255, .35); }
html body.ok-theme .btn-outline-secondary { color: var(--ok-text-2); border-color: var(--ok-line); }
html body.ok-theme .btn-outline-primary:hover   { background-color: rgba(0, 122, 255, .08);  color: var(--ok-blue); }
html body.ok-theme .btn-outline-success:hover   { background-color: rgba(52, 199, 89, .10);  color: #248a3d; }
html body.ok-theme .btn-outline-danger:hover    { background-color: rgba(255, 59, 48, .08);  color: var(--ok-red); }
html body.ok-theme .btn-outline-warning:hover   { background-color: rgba(255, 149, 0, .10);  color: #c93400; }
html body.ok-theme .btn-outline-info:hover      { background-color: rgba(0, 122, 255, .06);  color: var(--ok-blue); }
html body.ok-theme .btn-outline-secondary:hover { background-color: var(--ok-surface-2);     color: var(--ok-text); }

/* ---- Bootstrap: forms ------------------------------------------------------ */
html body.ok-theme .form-control,
html body.ok-theme .form-select {
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background-color: var(--ok-surface);
    color: var(--ok-text); font-family: var(--ok-font); transition: border-color var(--ok-t), box-shadow var(--ok-t);
}
html body.ok-theme .form-control-sm, html body.ok-theme .form-select-sm { border-radius: var(--ok-r-sm); }
html body.ok-theme .form-control::placeholder { color: var(--ok-text-5); }
html body.ok-theme .form-control:focus,
html body.ok-theme .form-select:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body.ok-theme .form-control:disabled,
html body.ok-theme .form-control[readonly]:not(.flatpickr-input):not(.tb-range-input) { background-color: var(--ok-fill-2); color: var(--ok-text-3); }
html body.ok-theme .form-label,
html body.ok-theme .col-form-label { font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-2); }
html body.ok-theme .input-group-text { border: 1px solid var(--ok-line); background-color: var(--ok-fill-2); color: var(--ok-text-3); border-radius: var(--ok-r); }
html body.ok-theme .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html body.ok-theme .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body.ok-theme .form-check-input { border-color: #c7c7cc; }
html body.ok-theme .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
html body.ok-theme .form-check-input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body.ok-theme .form-switch .form-check-input:checked { background-color: var(--ok-green); border-color: var(--ok-green); }

/* ---- Bootstrap: tables (also beats slate-headers.css) ---------------------- */
html body.ok-theme .table { color: var(--ok-text-2); --bs-table-hover-bg: var(--ok-surface-2); }
html body.ok-theme .table > thead > tr > th,
html body.ok-theme .table > thead > tr > td,
html body.ok-theme table.dataTable > thead > tr > th,
html body.ok-theme table.dataTable > thead > tr > td {
    background: transparent !important; background-image: none !important;
    color: var(--ok-text-4) !important; border-color: var(--ok-line-2) !important;
    border-bottom-width: 1px; padding-top: 12px; padding-bottom: 10px;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
html body.ok-theme .table > thead > tr > th a,
html body.ok-theme table.dataTable > thead > tr > th a { color: var(--ok-text-4) !important; }
html body.ok-theme .table > :not(caption) > * > * { border-bottom-color: var(--ok-line-3); }
html body.ok-theme .table > tbody > tr > td { vertical-align: middle; }
html body.ok-theme .table > :not(:first-child) { border-top: 1px solid var(--ok-line-2); }
html body.ok-theme .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: var(--ok-surface-2); }
html body.ok-theme .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: var(--ok-surface-2); }
html body.ok-theme .table-bordered > :not(caption) > * > * { border-color: var(--ok-line-2); }

/* ---- Bootstrap: badges -> soft pills (topbar count badges stay solid) ------- */
html body.ok-theme .badge { border-radius: var(--ok-r-pill); font-weight: 600; letter-spacing: .01em; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-success,
html body.ok-theme .badge.badge-soft-success { background-color: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-warning,
html body.ok-theme .badge.badge-soft-warning { background-color: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-danger,
html body.ok-theme .badge.badge-soft-danger { background-color: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-info,
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-primary,
html body.ok-theme .badge.badge-soft-info,
html body.ok-theme .badge.badge-soft-primary { background-color: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-secondary,
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-light,
html body.ok-theme .badge.badge-soft-secondary { background-color: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
html body.ok-theme .badge:not(.noti-icon-badge):not(.rounded-circle).bg-dark { background-color: var(--ok-text) !important; color: #fff !important; }

/* ---- Bootstrap: tabs & pills ----------------------------------------------- */
html body.ok-theme .nav-tabs { border-bottom: 1px solid var(--ok-line); gap: 4px; }
html body.ok-theme .nav-tabs .nav-link {
    margin-bottom: -1px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600;
}
html body.ok-theme .nav-tabs .nav-link:hover { color: var(--ok-text-2); border-bottom-color: var(--ok-line); }
html body.ok-theme .nav-tabs .nav-link.active,
html body.ok-theme .nav-tabs .nav-item.show .nav-link { background: transparent; color: var(--ok-text); border-bottom-color: var(--ok-blue); }
html body.ok-theme .nav-tabs.nav-bordered { border-bottom: 1px solid var(--ok-line); }
html body.ok-theme .nav-tabs.nav-bordered .nav-link.active { border-bottom: 2px solid var(--ok-blue) !important; }
/* nav-pills look like the segmented control */
html body.ok-theme .nav-pills { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
html body.ok-theme .nav-pills .nav-link { padding: 5px 14px; border-radius: var(--ok-r-sm); color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; }
html body.ok-theme .nav-pills .nav-link:hover { color: var(--ok-text-2); }
html body.ok-theme .nav-pills .nav-link.active,
html body.ok-theme .nav-pills .show > .nav-link { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
html body.ok-theme .tab-content { padding-top: 4px; }

/* ---- Bootstrap: modals (also beats slate-headers.css) ---------------------- */
html body.ok-theme .modal-backdrop.show { opacity: .3; }
html body.ok-theme .modal-content { border: 0; border-radius: var(--ok-r-xl); box-shadow: var(--ok-shadow-lg); overflow: hidden; }
html body.ok-theme .modal .modal-header {
    padding: 16px 20px; background: var(--ok-surface) !important; background-image: none !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important;
}
html body.ok-theme .modal .modal-header .modal-title,
html body.ok-theme .modal .modal-header h1, html body.ok-theme .modal .modal-header h2, html body.ok-theme .modal .modal-header h3,
html body.ok-theme .modal .modal-header h4, html body.ok-theme .modal .modal-header h5, html body.ok-theme .modal .modal-header h6,
html body.ok-theme .modal .modal-header .text-dark, html body.ok-theme .modal .modal-header .text-light,
html body.ok-theme .modal .modal-header .text-white {
    color: var(--ok-text) !important; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
}
html body.ok-theme .modal .modal-header .btn-close,
html body.ok-theme .modal .modal-header .close { filter: none !important; opacity: .5; }
html body.ok-theme .modal .modal-header .btn-close:hover { opacity: .9; }
html body.ok-theme .modal-body { padding: 20px; }
html body.ok-theme .modal-footer { padding: 14px 20px; border-top: 1px solid var(--ok-line-2); background: var(--ok-surface-2); }

/* ---- Bootstrap: dropdowns, popovers, tooltips ----------------------------- */
html body.ok-theme .dropdown-menu {
    padding: 6px; border: 1px solid var(--ok-line); border-radius: 12px; background: var(--ok-surface);
    box-shadow: var(--ok-shadow-lg); font-size: var(--ok-fs);
}
html body.ok-theme .dropdown-item { padding: 7px 10px; border-radius: var(--ok-r-sm); color: var(--ok-text-2); }
html body.ok-theme .dropdown-item i { color: var(--ok-text-4); }
html body.ok-theme .dropdown-item:hover, html body.ok-theme .dropdown-item:focus { background: var(--ok-fill-2); color: var(--ok-text); }
html body.ok-theme .dropdown-item.active, html body.ok-theme .dropdown-item:active { background: var(--ok-blue); color: #fff; }
html body.ok-theme .dropdown-item.active i, html body.ok-theme .dropdown-item:active i { color: #fff; }
html body.ok-theme .dropdown-divider { border-top-color: var(--ok-line-2); margin: 6px 0; }
html body.ok-theme .dropdown-header, html body.ok-theme .dropdown-menu .noti-title { color: var(--ok-text-4); }
html body.ok-theme .popover { border: 1px solid var(--ok-line); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
html body.ok-theme .tooltip-inner { border-radius: var(--ok-r-sm); background: rgba(29, 29, 31, .92); font-size: 11.5px; }

/* ---- Alerts ---------------------------------------------------------------- */
html body.ok-theme .alert { border-radius: 12px; border: 1px solid transparent; }
html body.ok-theme .alert-success { background: rgba(52, 199, 89, .10); border-color: rgba(52, 199, 89, .25); color: #1e7a35; }
html body.ok-theme .alert-warning { background: rgba(255, 149, 0, .10); border-color: rgba(255, 149, 0, .25); color: #a63d00; }
html body.ok-theme .alert-danger  { background: rgba(255, 59, 48, .08);  border-color: rgba(255, 59, 48, .22); color: #c4000f; }
html body.ok-theme .alert-info    { background: rgba(0, 122, 255, .07);  border-color: rgba(0, 122, 255, .20); color: #0058b9; }

/* ---- Pagination & DataTables ---------------------------------------------- */
html body.ok-theme .pagination { gap: 4px; }
html body.ok-theme .page-link {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important;
    background: var(--ok-surface); color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none;
}
html body.ok-theme .page-link:hover { background: var(--ok-surface-2); color: var(--ok-text); border-color: #d6d6dc; }
html body.ok-theme .page-link:focus { box-shadow: var(--ok-ring); }
html body.ok-theme .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
html body.ok-theme .page-item.disabled .page-link { background: var(--ok-surface); color: var(--ok-text-5); }
html body.ok-theme .dataTables_wrapper .dataTables_filter input,
html body.ok-theme .dataTables_wrapper .dataTables_length select {
    height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background-color: var(--ok-surface); color: var(--ok-text);
}
html body.ok-theme .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
html body.ok-theme .dataTables_wrapper .dataTables_info { color: var(--ok-text-4); font-size: var(--ok-fs-sm); }
html body.ok-theme table.dataTable tbody tr.selected > * { box-shadow: inset 0 0 0 9999px rgba(0, 122, 255, .08); color: var(--ok-text); }

/* ---- Select2 ---------------------------------------------------------------- */
html body.ok-theme .select2-container .select2-selection--single,
html body.ok-theme .select2-container .select2-selection--multiple {
    min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background-color: var(--ok-surface);
}
html body.ok-theme .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
html body.ok-theme .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; right: 6px; }
html body.ok-theme .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--ok-text-5); }
html body.ok-theme .select2-container--focus .select2-selection,
html body.ok-theme .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
html body.ok-theme .select2-container .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #dcdce0; border-radius: var(--ok-r-pill); background: var(--ok-fill); color: var(--ok-text-2); font-size: 12px; font-weight: 600;
}
html body.ok-theme .select2-container .select2-selection--multiple .select2-selection__choice__remove { color: var(--ok-text-4); border: 0; }
html body.ok-theme .select2-dropdown { border: 1px solid var(--ok-line); border-radius: var(--ok-r); box-shadow: var(--ok-shadow-lg); overflow: hidden; }
html body.ok-theme .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
html body.ok-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
html body.ok-theme .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--ok-blue); color: #fff; }
html body.ok-theme .select2-container--default .select2-results__option[aria-selected=true],
html body.ok-theme .select2-container--default .select2-results__option--selected { background-color: rgba(0, 122, 255, .08); color: var(--ok-text); }

/* ---- Toast, progress, list-group ----------------------------------------- */
html body.ok-theme .jq-toast-single { border-radius: 12px; box-shadow: var(--ok-shadow-lg); font-family: var(--ok-font); }
html body.ok-theme .progress { height: 6px; border-radius: var(--ok-r-pill); background-color: var(--ok-fill); }
html body.ok-theme .progress-bar { border-radius: var(--ok-r-pill); background: var(--ok-grad); }
html body.ok-theme .list-group-item { border-color: var(--ok-line-3); color: var(--ok-text-2); }
html body.ok-theme .list-group-item.active { background: var(--ok-blue); border-color: var(--ok-blue); }

/* ---- Scrollbars (WebKit) ---------------------------------------------------- */
html body.ok-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
html body.ok-theme ::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
html body.ok-theme ::-webkit-scrollbar-thumb:hover { background: #aeaeb2; background-clip: content-box; border: 2px solid transparent; }
html body.ok-theme ::-webkit-scrollbar-track { background: transparent; }

/* ---- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ok-btn, .ok-stat, .ok-segmented > *, .ok-progress > span, .ok-bar::before { transition: none !important; }
}


/* =============================================================================
   4. MODULE PAGES
   Page rules for the redesigned modules (ATS dashboard, Job order requests,
   Client search, CV search, CV parser, Interview, Interview feedback, Users, Analytics, HRMS dashboard,
   Annual performance, Attrition, HR approvals, WPA, Attendance, Benefits, BGV, Hiring & onboarding,
   Claims, Overtime, Insurance, Payroll, Exit interview, Offer letter, Job order approvals,
   Client job orders, Analytics popups, My Profile, Hired staff, PIT, User add/edit, Clients, Configuration, Overtime configuration, Positions and permissions, Approvals, Billing configuration, Payment voucher, Contracts, Smart CV-JD Match, Engagement, Disciplinary, Orchestration, Public holidays, Job portal, Job portal analytics, Memo, Memo report, Assets). They used to be a
   <style> block in each module .html; keep them HERE instead of adding new
   <style> blocks to a page.

   Selectors keep their page scope (.atsd, .ijo-ok, .cls-ok, .ifb-ok,
   #interview_page .iv-ok, #list_div.users-ok) so they still beat the older
   page css (slate-headers.css, interview.css, users.html #tblList rules).
   4a groups the looks that several pages share; 4b-4al hold what is unique.
   ============================================================================= */

/* ---- 4a. Shared by several pages ------------------------------------------ */

/* Date-range picker input in the page head */
.atsd .atsd-range,
.ijo-ok .ok-page-head-aside .ok-input,
#interview_page .iv-ok .ok-page-head-aside .ok-input { cursor: pointer; background: #fff; }
.ijo-ok .ok-page-head-aside .ok-input,
#interview_page .iv-ok .ok-page-head-aside .ok-input { width: 230px; }

/* "Reset filter" icon next to the title */
.ijo-ok #btn_reset_filter,
#interview_page .iv-ok .showfilter,
#list_div.users-ok .ok-title #btn_reset_filter { color: var(--ok-blue); }
#interview_page .iv-ok .showfilter,
#list_div.users-ok .ok-title #btn_reset_filter { font-size: 14px; vertical-align: middle; }

/* Count inside a segmented button ("Active 12") */
.atsd .ok-segmented button .atsd-seg-count,
.ijo-ok .ok-segmented button .ijo-seg-count { opacity: .6; font-weight: 500; }

/* Toolbar: search grows, controls on the right */
.ifb-ok .ifb-ok-toolbar,
#list_div.users-ok .users-ok-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: var(--ok-gap); }
.ifb-ok .ifb-ok-toolbar .ok-search,
#list_div.users-ok .users-ok-toolbar .ok-search { flex: 1 1 auto; }
.ok-toolbar--end { justify-content: flex-end; }

/* select2 dressed as .ok-input */
.atsd .ok-field .select2-container,
.cls-ok .cls-bar-input .select2-container { width: 100% !important; }
.cls-ok .cls-filters .select2-container .select2-selection--single,
.cls-ok .cls-filters .select2-container .select2-selection--multiple,
.ifb-ok .ifb-ok-form .select2-container .select2-selection--single,
.ifb-ok .ifb-ok-form .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.cls-ok .cls-filters .select2-container .select2-selection--single .select2-selection__rendered,
.ifb-ok .ifb-ok-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; }
.cls-ok .cls-filters .select2-container .select2-selection--single .select2-selection__arrow,
.ifb-ok .ifb-ok-form .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.cls-ok .cls-filters .select2-container--focus .select2-selection,
.cls-ok .cls-filters .select2-container--open .select2-selection,
.ifb-ok .ifb-ok-form .select2-container--focus .select2-selection,
.ifb-ok .ifb-ok-form .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
.cls-ok .select2-selection__choice,
.ifb-ok .ifb-ok-form .select2-selection__choice {
    background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }

/* Light table headers (beat the slate-headers.css dark headers) */
.ifb-ok table.ok-table > thead > tr > th,
.ifb-ok #sections_container .table > thead > tr > th,
#list_div.users-ok #tbl_list thead th {
    background: var(--ok-surface) !important; color: var(--ok-text-4) !important; border-color: var(--ok-line-2) !important;
    border-width: 0 0 1px !important; font-size: var(--ok-fs-xs); }
.ifb-ok table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::before,
.ifb-ok table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::after,
#interview_page #list_div table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::before,
#interview_page #list_div table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::after { color: var(--ok-text-4) !important; }
.ifb-ok table.ok-table > tbody > tr:hover > td,
#interview_page #list_div .iv-table tbody tr:hover > td,
#interview_page #list_div #tbl_interview_list_main tbody tr:hover > td:last-child { background: var(--ok-surface-2); }

/* Row buttons -> white .ok-btn look */
.ifb-ok table.ok-table td .btn,
#interview_page #list_div .iv-table td .btn:not(.iv-action-toggle):not(.dropdown-item > .btn):not(.dropdown-menu > .btn) {
    background: var(--ok-surface) !important; border: 1px solid var(--ok-line) !important; border-radius: var(--ok-r-sm); box-shadow: var(--ok-shadow-xs); }
.ifb-ok table.ok-table td .btn:hover,
#interview_page #list_div .iv-table td .btn:not(.iv-action-toggle):not(.dropdown-item > .btn):not(.dropdown-menu > .btn):hover { background: var(--ok-surface-2) !important; }

/* DataTables info text */
.ifb-ok .ifb-ok-table .dataTables_info,
#interview_page #list_div .dataTables_wrapper .dataTables_info { color: var(--ok-text-4); font-size: var(--ok-fs-sm); }

/* Pager: 30px squares, gradient on the current page */
.ijo-ok .ijo-ok-pager .pagination,
.ifb-ok .ifb-ok-table .pagination,
.cls-ok .cls-pager-btns,
#list_div.users-ok .users-pagination-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ijo-ok .ijo-ok-pager .page-link,
.ifb-ok .ifb-ok-table .page-item .page-link,
#list_div.users-ok .users-pagination-btns .btn,
#list_div.users-ok .users-page-num {
    min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
.ijo-ok .ijo-ok-pager .page-item.active .page-link,
.ifb-ok .ifb-ok-table .page-item.active .page-link,
#interview_page #list_div .dataTables_wrapper .page-item.active .page-link,
#list_div.users-ok .users-page-num.active,
.cls-ok .cls-pager-btns .ok-btn.active { background: var(--ok-grad) !important; border-color: transparent !important; color: #fff !important; }

/* Loading overlay over a list (.show turns it on) */
.cls-ok .cls-loading,
#list_div.users-ok #users_table_loading { position: absolute; inset: 0; display: none; justify-content: center; border-radius: var(--ok-r-lg); }
.cls-ok .cls-loading.show,
#list_div.users-ok #users_table_loading.show { display: flex; }

/* Empty-list message */
.atsd .atsd-table-empty,
.ijo-ok .list-placeholder,
#list_div.users-ok .users-empty { text-align: center; color: var(--ok-text-3); }


/* ---- 4b. ATS dashboard  (modules/ats-dashboard) --------------------------- */
.atsd .atsd-health .ok-dot { width: 10px; height: 10px; margin: 0 4px 0 4px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok-accent) 18%, transparent); }
.atsd .ok-stat-value.is-loading { color: var(--ok-text-3); }
.atsd .ok-segmented button .atsd-seg-count { margin-left: 6px; }
.atsd .atsd-table-empty { padding: 28px 20px; }


/* ---- 4c. Job order requests list  (modules/internal-joborder-request) ----- */
.ijo-ok .ijo-ok-sort .ok-select { width: 190px; height: 30px; font-size: var(--ok-fs-sm); }
.ijo-ok a.ok-stat { cursor: pointer; }
.ijo-ok .ok-segmented button .ijo-seg-count:empty { display: none; }
.ijo-ok .ijo-ok-actions { display: inline-flex; align-items: center; gap: 6px; }
.ijo-ok .ijo-ok-actions .dropdown-menu { font-size: var(--ok-fs); border-radius: var(--ok-r); }
.ijo-ok .ijo-ok-approval { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* let the row "Status" dropdown escape the card on desktop; small screens keep horizontal scroll */
@media (min-width: 992px) { .ijo-ok .ok-table-wrap { overflow: visible; } .ijo-ok .ok-card--flush { overflow: visible; } }
.ijo-ok .list-placeholder { padding: 28px 0; }
.ijo-ok .ijo-ok-pager { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--ok-line-3); }
.ijo-ok .ijo-ok-pager .pagination:empty { display: none; }
.ijo-ok .ijo-ok-pager:has(.pagination:empty) { display: none; }

/* View Job Order Request drawer (#view_details_modal.ijo-view-ok, Action > View; outside .ijo-ok).
   Light header (position + JO no. + status), then Request / Position / Requirements / Compensation /
   Remarks cards with a two-column label-over-value grid. "html body" beats slate-headers.css + internal-joborder.css. */
html body #view_details_modal.ijo-view-ok .modal-content { border: 0; background: var(--ok-bg); color: var(--ok-text-2) !important; font-family: var(--ok-font); box-shadow: var(--ok-shadow-lg); }
html body #view_details_modal.ijo-view-ok .modal-header { position: sticky; top: 0; z-index: 2; align-items: flex-start; gap: 14px; padding: 20px 22px 18px !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, .08), rgba(175, 82, 222, .08)), var(--ok-surface) !important; border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important; }
html body #view_details_modal.ijo-view-ok .modal-header p.ok-eyebrow { color: var(--ok-text-4) !important; opacity: 1; }
html body #view_details_modal.ijo-view-ok .modal-header .modal-title { display: block; margin: 2px 0 0 !important; font-family: var(--ok-font-display); font-size: 22px; font-weight: 700;
    letter-spacing: -.01em; line-height: 1.25; color: var(--ok-text) !important; word-break: break-word; }
html body #view_details_modal.ijo-view-ok #position_view:empty::before { content: "Job order request"; }
html body #view_details_modal.ijo-view-ok .modal-header .btn-close { margin: 2px 0 0 auto !important; filter: none !important; opacity: .5; }
html body #view_details_modal.ijo-view-ok .modal-header .btn-close:hover { opacity: .9; }
#view_details_modal .ijov-head-icon { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--ok-grad); color: #fff; font-size: 22px; box-shadow: 0 6px 16px rgba(0, 122, 255, .25); }
#view_details_modal .ijov-head-main { flex: 1 1 auto; min-width: 0; }
#view_details_modal .ijov-head-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
#view_details_modal .ijov-head-tags .ok-chip { height: 26px; gap: 3px; background: var(--ok-surface); border-color: var(--ok-line); font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-2); }
#view_details_modal .ijov-head-tags .ok-chip i { color: var(--ok-blue); }
#view_details_modal .ijov-head-tags .ok-chip:has(#joborder_no_view:empty) { display: none; }
#view_details_modal .ijov-head-tags .ok-pill { height: 26px; padding: 0 11px; font-size: 12px; }
#view_details_modal .ijov-head-tags .ok-pill:has(#status_view:empty) { display: none; }
html body #view_details_modal.ijo-view-ok .modal-body { padding: 18px 22px 8px; background: var(--ok-bg); }
html body #view_details_modal.ijo-view-ok .modal-footer { position: sticky; bottom: 0; padding: 12px 22px; background: var(--ok-surface); border-top: 1px solid var(--ok-line-2); }
html body #view_details_modal.ijo-view-ok .modal-footer .ok-btn { height: 36px; margin: 0; }
#view_details_modal .ijov-sec { margin-bottom: 14px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow-xs); overflow: hidden; }
#view_details_modal .ijov-sec-title { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line-2);
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#view_details_modal .ijov-sec-title i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 14px; }
#view_details_modal .ijov-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 2px 16px; }
#view_details_modal .ijov-fields > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--ok-line-3); }
#view_details_modal .ijov-fields > div.ijov-wide { grid-column: 1 / -1; }
#view_details_modal .ijov-fields > div:last-child { border-bottom: 0; }
#view_details_modal .ijov-fields dt { margin: 0 0 2px; font-size: 10.5px; font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#view_details_modal .ijov-fields dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ok-text); word-break: break-word; }
#view_details_modal .ijov-fields dd:empty::before,
#view_details_modal .ijov-range span:not(.ijov-range-sep):empty::before { content: "—"; font-weight: 400; color: var(--ok-text-5); }
#view_details_modal .ijov-range-sep { margin: 0 6px; color: var(--ok-text-4); font-weight: 400; }
#view_details_modal #file_view { display: flex; flex-wrap: wrap; gap: 6px; }
#view_details_modal #file_view:empty::before { content: "No document attached"; }
#view_details_modal .ijov-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 12px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs-sm); font-weight: 600; text-decoration: none; box-shadow: var(--ok-shadow-xs); }
#view_details_modal .ijov-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view_details_modal .ijov-file i { color: var(--ok-blue); font-size: 15px; }
#view_details_modal .ijov-file:hover { border-color: rgba(0, 122, 255, .4); color: var(--ok-blue); }
@media (max-width: 575.98px) {
    #view_details_modal .ijov-fields { grid-template-columns: minmax(0, 1fr); }
    html body #view_details_modal.ijo-view-ok .modal-body { padding: 14px 14px 4px; }
    #view_details_modal .ijov-head-icon { display: none; }
}

/* Add / Edit Job Order Request (#new_div.ijo-form-ok). On the .pl-ok skin (4l): .pl-head, .an-card, and .pl-filter for the
   inputs, select2 and buttons. The 7-step wizard nav becomes a numbered segmented bar (finished steps get a tick),
   each step has a heading, and the col-4 label + col-7 input rows are restyled so each label sits above its input,
   two fields per row (same approach as Users 4x). Save / Cancel sit in a sticky footer under the card. */
#new_div.ijo-form-ok { padding-top: 24px; }
#new_div.ijo-form-ok .ijof-card { overflow: visible; }
#new_div.ijo-form-ok .ijof-card > .an-head { padding-bottom: 14px; border-bottom: 1px solid var(--ok-line-3); }
#new_div.ijo-form-ok .ijof-card > .an-head .an-head-sub { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#new_div.ijo-form-ok .ijof-card > .an-head h5 { margin-top: 1px; font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#new_div.ijo-form-ok #view_jd_no:empty::before { content: "Assigned when saved"; font-family: var(--ok-font); font-size: 14px; font-weight: 500; color: var(--ok-text-4); }
#new_div.ijo-form-ok .ijof-card > .an-body { padding: 18px 20px 20px; }

/* step bar */
#new_div.ijo-form-ok .ijof-steps { display: flex; flex-wrap: nowrap; gap: 3px; margin: 0 0 12px !important; padding: 4px; overflow-x: auto;
    background: var(--ok-fill) !important; border: 1px solid #dcdce0; border-radius: 14px; box-shadow: none; }
#new_div.ijo-form-ok .ijof-steps > .nav-item { flex: 1 1 0; min-width: 0; }
#new_div.ijo-form-ok .ijof-steps .nav-link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 10px !important; border: 0;
    border-radius: 11px !important; background: transparent !important; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; text-transform: none;
    letter-spacing: 0; white-space: nowrap; box-shadow: none; transition: background var(--ok-t), color var(--ok-t); }
#new_div.ijo-form-ok .ijof-steps .nav-link:hover { color: var(--ok-text-2); }
#new_div.ijo-form-ok .ijof-steps .nav-link.active { background: var(--ok-surface) !important; color: var(--ok-text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
#new_div.ijo-form-ok .ijof-step-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text-4); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
#new_div.ijo-form-ok .ijof-steps .nav-link.active .ijof-step-num { background: var(--ok-grad); border-color: transparent; color: #fff; }
/* steps before the active one read as done */
#new_div.ijo-form-ok .ijof-steps > .nav-item:has(~ .nav-item > .nav-link.active) .ijof-step-num { background: rgba(52, 199, 89, .16); border-color: transparent; color: #248a3d; font-size: 0; }
#new_div.ijo-form-ok .ijof-steps > .nav-item:has(~ .nav-item > .nav-link.active) .ijof-step-num::before { content: "\F012C"; font-family: "Material Design Icons"; font-size: 14px; font-weight: 400; }
#new_div.ijo-form-ok .ijof-progress { height: 4px; margin: 0 0 20px; background: var(--ok-fill); border-radius: var(--ok-r-pill); overflow: hidden; }
#new_div.ijo-form-ok .ijof-progress .progress-bar { background: var(--ok-grad) !important; border-radius: inherit; transition: width .35s var(--ok-ease); }
@media (max-width: 1199.98px) {
    #new_div.ijo-form-ok .ijof-steps .nav-link:not(.active) .ijof-step-text { display: none; }
    #new_div.ijo-form-ok .ijof-steps > .nav-item { flex: 0 0 auto; }
    #new_div.ijo-form-ok .ijof-steps > .nav-item:has(> .nav-link.active) { flex: 1 1 auto; }
}

/* step heading */
#new_div.ijo-form-ok .ijof-pane-head { margin: 0 0 16px; }
#new_div.ijo-form-ok .ijof-pane-head h5 { margin: 0; font-family: var(--ok-font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text); }
#new_div.ijo-form-ok .ijof-pane-head p { margin: 2px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }

/* fields: label above input. Any row holding a label column (directly, or wrapped in a col-*) goes full width */
#new_div.ijo-form-ok .tab-content .row:has(> .col-form-label, > [class*="col-"] > .col-form-label) > [class*="col-"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
#new_div.ijo-form-ok .tab-content .col-form-label { display: block; width: 100%; padding: 0 0 5px; margin: 0; font-size: var(--ok-fs-xs) !important; font-weight: 600 !important;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); line-height: 1.4; }
#new_div.ijo-form-ok .tab-content .col-form-label .text-danger { color: var(--ok-red) !important; }
#new_div.ijo-form-ok .tab-content .row.mt-2 { margin-top: 0 !important; }
#new_div.ijo-form-ok .tab-content .col-lg-6 { margin-bottom: 16px; }
#new_div.ijo-form-ok .tab-content .col-lg-6 .col-lg-6 { margin-bottom: 0; }
#new_div.ijo-form-ok .tab-pane form br { display: none; }
#new_div.ijo-form-ok .tab-content textarea.form-control { min-height: 96px; resize: vertical; }
#new_div.ijo-form-ok #txt_joborder_remark { width: 100% !important; height: 140px !important; }
/* min / max pairs (experience, salary) */
#new_div.ijo-form-ok .errorContainer > .row { --bs-gutter-x: 10px; }
#new_div.ijo-form-ok .errorContainer > .row > .col-lg-6 { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
/* read-only values on the Basic step */
#new_div.ijo-form-ok :is(#requester_name, #txt_jd_no) { display: flex; align-items: center; min-height: 36px; margin: 0; padding: 0 12px; border-radius: var(--ok-r);
    background: var(--ok-fill-2); font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }
#new_div.ijo-form-ok #txt_jd_no:empty::before { content: "Assigned when saved"; font-weight: 500; color: var(--ok-text-4); }
/* select2 / input + "add" or calendar addon */
#new_div.ijo-form-ok .input-group { flex-wrap: nowrap; }
#new_div.ijo-form-ok .input-group > .select2-container { flex: 1 1 auto; width: auto !important; min-width: 0; }
#new_div.ijo-form-ok .input-group > .select2-container .select2-selection { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
#new_div.ijo-form-ok .input-group > .select2-container:last-child .select2-selection { border-radius: var(--ok-r) !important; }
#new_div.ijo-form-ok .input-group > .input-group-text { border-radius: 0 var(--ok-r) var(--ok-r) 0; }
#new_div.ijo-form-ok .input-group > .input-group-text[id^="add_"] { cursor: pointer; color: var(--ok-blue); background: rgba(0, 122, 255, .06); }
#new_div.ijo-form-ok .input-group > .input-group-text[id^="add_"]:hover { background: rgba(0, 122, 255, .12); }
#new_div.ijo-form-ok .input-group > .input-group-text i.col-1 { flex: none; width: auto; padding: 0; color: inherit; }
/* inline "add a new role type / position / role nature / skill" box */
#new_div.ijo-form-ok [id^="other_"][id$="_add"]:not([style*="none"]) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px !important;
    padding: 10px; background: var(--ok-surface-2); border: 1px dashed var(--ok-line); border-radius: var(--ok-r); }
#new_div.ijo-form-ok [id^="other_"][id$="_add"] > input { flex: 1 1 180px; width: auto !important; }
#new_div.ijo-form-ok [id^="other_"][id$="_add"] > ul { flex-basis: 100%; order: 3; margin: 0; font-size: var(--ok-fs-sm); color: var(--ok-red); }
#new_div.ijo-form-ok [id^="other_"][id$="_add"] > .btn { height: 34px; }
/* validation */
#new_div.ijo-form-ok .errorContainer.parsley-error :is(.form-control, .select2-selection),
#new_div.ijo-form-ok .errorContainer.has-error :is(.form-control, .select2-selection),
#new_div.ijo-form-ok .form-control.parsley-error { border-color: var(--ok-red) !important; }
#new_div.ijo-form-ok .parsley-errors-list, #new_div.ijo-form-ok .errorContainer .help-block { margin: 4px 0 0; padding: 0; font-size: var(--ok-fs-sm); color: var(--ok-red); }
/* JD upload */
#new_div.ijo-form-ok #doc_upload_jd_files:empty { display: none; }
#new_div.ijo-form-ok #files_div_jd .row.mt-2 { margin-top: 8px !important; }
/* approval step table */
#new_div.ijo-form-ok #tbl_approval_list { border: 1px solid var(--ok-line-2); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: var(--ok-fs); }
#new_div.ijo-form-ok #tbl_approval_list > thead > tr > th { padding: 11px 14px 9px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important;
    border-bottom: 1px solid var(--ok-line-2) !important; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#new_div.ijo-form-ok #tbl_approval_list > tbody > tr > td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--ok-line-3); vertical-align: middle; color: var(--ok-text); font-weight: 600; }
#new_div.ijo-form-ok #tbl_approval_list > tbody > tr:last-child > td { border-bottom: 0; background: var(--ok-surface-2); }
#new_div.ijo-form-ok #tbl_approval_list td .btn { width: 36px; padding: 0; }
#new_div.ijo-form-ok #tbl_approval_list td .btn-danger { border-color: transparent; background: rgba(255, 59, 48, .12); color: #d70015; box-shadow: none; }
#new_div.ijo-form-ok #tbl_approval_list td .btn-danger i { color: #d70015; }
#new_div.ijo-form-ok #tbl_approval_list td .btn.rotate-45 { transform: none; }
/* Previous / Next */
#new_div.ijo-form-ok ul.wizard { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 0 !important; padding: 16px 0 0; border-top: 1px solid var(--ok-line-3); }
#new_div.ijo-form-ok ul.wizard > li { margin: 0; float: none !important; }
#new_div.ijo-form-ok ul.wizard > li.next { margin-left: auto; }
#new_div.ijo-form-ok ul.wizard > li.disabled .btn { opacity: .4; pointer-events: none; box-shadow: none; }
#new_div.ijo-form-ok ul.wizard > li.next .btn { border-color: rgba(0, 122, 255, .3); background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
#new_div.ijo-form-ok ul.wizard > li.next .btn i { color: var(--ok-blue); }
#new_div.ijo-form-ok ul.wizard .btn i { font-size: 18px; }
/* Save / Cancel footer */
#new_div.ijo-form-ok .ijof-actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
    padding: 14px 20px; background: color-mix(in srgb, var(--ok-surface-2) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--ok-line-2); border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); }
#new_div.ijo-form-ok .ijof-actions-hint { margin-right: auto; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#new_div.ijo-form-ok .ijof-actions-hint .text-danger { color: var(--ok-red) !important; }
#new_div.ijo-form-ok .ijof-actions #btn_save { min-width: 120px; }
@media (max-width: 575.98px) {
    #new_div.ijo-form-ok .ijof-card > .an-body { padding: 14px; }
    #new_div.ijo-form-ok .ijof-actions-hint { flex-basis: 100%; }
}


/* ---- 4d. Client search  (modules/internal-search/client-search) ----------- */
/* big search bar: keyword select2 dressed as the mockup's search input */
.cls-ok .cls-bar { display: flex; align-items: stretch; gap: 12px; }
.cls-ok .cls-bar-input {
    position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
    min-height: 48px; padding: 0 52px 0 40px; background: var(--ok-surface);
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow);
    transition: border-color var(--ok-t), box-shadow var(--ok-t);
}
.cls-ok .cls-bar-input:focus-within { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.cls-ok .cls-bar-input > .mdi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ok-text-4); pointer-events: none; }
.cls-ok .cls-bar-input > .ok-kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.cls-ok .cls-bar-input .select2-container .select2-selection--multiple { min-height: 46px; border: 0 !important; background: transparent; box-shadow: none !important; padding: 4px 0; display: flex; align-items: center; }
.cls-ok .cls-bar-input .select2-selection--multiple .select2-selection__rendered { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 !important; }
.cls-ok .cls-bar-input .select2-search--inline .select2-search__field { margin: 0 !important; font-family: var(--ok-font); font-size: 15px; color: var(--ok-text); }
.cls-ok .cls-bar-input .select2-search--inline .select2-search__field::placeholder { color: var(--ok-text-5); }
.cls-ok .cls-bar .ok-btn { height: auto; min-height: 48px; padding: 0 24px; border-radius: var(--ok-r-lg); font-size: 15px; }
.cls-ok .cls-bar .ok-btn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--ok-r-pill); background: var(--ok-blue); color: #fff; font-size: 10.5px; line-height: 18px; }
.cls-ok .cls-bar .ok-btn[aria-expanded="true"] { border-color: var(--ok-blue); color: var(--ok-blue); }
@media (max-width: 767.98px) {
    .cls-ok .cls-bar { flex-wrap: wrap; }
    .cls-ok .cls-bar-input { flex-basis: 100%; }
    .cls-ok .cls-bar .ok-btn { flex: 1 1 0; }
}

/* filters panel */
.cls-ok .cls-filters { margin-top: 12px; }
.cls-ok .cls-filters .ok-card { padding: 20px 22px; }
.cls-ok .cls-fsec { margin: 20px 0 10px; font-size: var(--ok-fs-sm); font-weight: 700; color: var(--ok-text); }
.cls-ok .cls-fsec:first-child { margin-top: 0; }
.cls-ok .cls-fgrid { display: grid; gap: 14px 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cls-ok .cls-fgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .cls-ok .cls-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cls-ok .cls-fgrid, .cls-ok .cls-fgrid--2 { grid-template-columns: minmax(0, 1fr); } }
.cls-ok .cls-range { display: flex; align-items: center; gap: 6px; }
.cls-ok .cls-range > .ok-faint { flex: 0 0 auto; font-size: var(--ok-fs-sm); }
.cls-ok .cls-range .ok-select { flex: 0 0 92px; }
.cls-ok .cls-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ok-text-5); }
.cls-ok .ok-card-foot .cls-note { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.cls-ok .ok-card-foot .ok-toolbar { margin-left: auto; }
.cls-ok .cls-filters .select2-container .select2-selection--single,
.cls-ok .cls-filters .select2-container .select2-selection--multiple { background: var(--ok-surface); }
.cls-ok .cls-filters .select2-container .select2-selection--single { height: 36px; }
.cls-ok .cls-filters .select2-container .select2-selection--single .select2-selection__rendered { color: var(--ok-text); }
.cls-ok .select2-selection__choice { margin-top: 4px !important; }
.cls-ok .select2-selection__choice__remove { color: var(--ok-text-4) !important; border: 0 !important; }

/* results */
.cls-ok .cls-results-head { margin-top: 28px; flex-wrap: wrap; }
.cls-ok .cls-results-head .ok-section-meta { margin-left: 2px; }
.cls-ok .cls-results-head .ok-search { width: 280px; }
.cls-ok .cls-results-head .ok-search .ok-input { height: 32px; font-size: var(--ok-fs-sm); }
.cls-ok .cls-results-head .ok-select { width: auto; height: 32px; font-size: var(--ok-fs-sm); }
@media (max-width: 575.98px) { .cls-ok .cls-results-head .ok-search { width: 100%; } }
.cls-ok .cls-results-label { color: var(--ok-text); font-weight: 700; }

.cls-ok .cls-list { position: relative; min-height: 120px; display: flex; flex-direction: column; gap: 14px; }
.cls-ok .cls-loading { z-index: 2; align-items: flex-start; padding-top: 40px; background: rgba(245, 245, 247, .7); }

.cls-ok .cls-jo { padding: 22px 26px; }
.cls-ok .cls-jo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--ok-line-3); }
.cls-ok .cls-jo-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 17px; font-weight: 400; color: var(--ok-text-3); }
.cls-ok .cls-jo-title a { color: var(--ok-text); font-weight: 700; text-decoration: none; }
.cls-ok .cls-jo-title a:hover { color: var(--ok-blue); }
.cls-ok .cls-jo-title .cls-sep { margin: 0 4px; color: var(--ok-text-5); }
.cls-ok .cls-jo-head .ok-pill { flex: 0 0 auto; }
.cls-ok .cls-jo-meta { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 18px 0 0; }
@media (max-width: 1199.98px) { .cls-ok .cls-jo-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cls-ok .cls-jo-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cls-ok .cls-jo-meta dt { margin: 0 0 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.cls-ok .cls-jo-meta dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ok-text); word-break: break-word; }
.cls-ok .cls-jo-meta dd .ok-faint { font-weight: 500; }
.cls-ok .cls-jo-block { margin-top: 18px; }
.cls-ok .cls-jo-block > .ok-label { display: block; margin-bottom: 8px; }
.cls-ok .cls-jo-block .ok-chip { height: 26px; padding: 0 12px; font-size: var(--ok-fs-sm); }
.cls-ok .cls-jo-salary { font-size: 18px; font-weight: 700; color: var(--ok-green); font-variant-numeric: tabular-nums; }
.cls-ok .cls-jo-salary.is-empty { font-size: 15px; font-weight: 500; color: var(--ok-text-4); }

.cls-ok .cls-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.cls-ok .cls-pager strong { color: var(--ok-text); }
.cls-ok .cls-pager-btns .ok-btn { min-width: 30px; }


/* ---- 4e. Interview  (modules/interview/interview) ------------------------- */
/* top row: "Interview progress" and "Outcome" cards, same width and height */
#interview_page .iv-ok .iv-ok-top { align-items: stretch; }
#interview_page .iv-ok .iv-ok-top .ok-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 575.98px) { #interview_page .iv-ok .iv-ok-top .ok-tiles { grid-template-columns: minmax(0, 1fr); } }

/* interview progress tiles + outcome metrics are buttons (they open the candidate lists):
   white tiles with a coloured top edge, plain coloured outcome numbers */
#interview_page .iv-ok .iv-ok-tile { display: block; width: 100%; padding: 12px 12px; text-align: left; cursor: pointer; font: inherit;
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
#interview_page .iv-ok .iv-ok-tile:hover, #interview_page .iv-ok .iv-ok-tile:focus-visible { transform: translateY(-1px); box-shadow: var(--ok-shadow-lg); outline: none; }
#interview_page .iv-ok .iv-ok-tile .ok-tile-value { font-size: 22px; }
#interview_page .iv-ok .iv-ok-outcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
#interview_page .iv-ok .iv-ok-metric { display: block; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: var(--ok-r-sm);
    background: transparent; text-align: left; cursor: pointer; font: inherit; }
#interview_page .iv-ok .iv-ok-metric:hover, #interview_page .iv-ok .iv-ok-metric:focus-visible { background: var(--ok-surface-2); outline: none; }
#interview_page .iv-ok .iv-ok-metric .ok-metric-value { color: var(--ok-accent); font-size: 20px; }
#interview_page .iv-ok .iv-ok-metric.ok-dot--gray .ok-metric-value { color: var(--ok-text-3); }

/* list tabs as a segmented control, counts as soft chips */
#interview_page .iv-ok .ok-segmented .nav-link { height: 30px; }
#interview_page .iv-ok .ok-segmented .nav-link i { font-size: 15px; }
#interview_page .iv-ok .ok-segmented .iv-tab-hint { font-weight: 400; opacity: .7; }
#interview_page .iv-ok .ok-segmented .iv-ok-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px;
    padding: 0 6px; border-radius: var(--ok-r-pill); background: rgba(142, 142, 147, .16); color: var(--ok-text-3); font-size: 11px; font-weight: 700; }
#interview_page .iv-ok .ok-segmented .nav-link.active .iv-ok-count { background: rgba(0, 122, 255, .12); color: var(--ok-blue); }

/* tables inside the card: light headers, soft rows (beats interview.css / slate-headers.css) */
#interview_page #list_div .iv-ok-list { padding: 16px 16px 12px; }
#interview_page #list_div .iv-ok-list .tab-content { padding: 0; }
#interview_page #list_div .iv-dt-scroll { border: 1px solid var(--ok-line-2); border-radius: var(--ok-r); }
#interview_page #list_div .iv-table { font-size: var(--ok-fs); color: var(--ok-text-2); }
#interview_page #list_div .iv-table thead th,
#interview_page #list_div #tbl_interview_list_main th:last-child {
    background: var(--ok-surface) !important; color: var(--ok-text-4) !important; padding: 12px 14px 10px;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; border-bottom: 1px solid var(--ok-line-2) !important; }
#interview_page #list_div .iv-table thead th input[type="checkbox"] { border-color: #c7c7cc; }
#interview_page #list_div .iv-table td { padding: 12px 14px; border-color: var(--ok-line-3); }
#interview_page #list_div .iv-table td:nth-child(3) { font-weight: 600; color: var(--ok-text); }
#interview_page #list_div .iv-table tbody tr:has(> td > input[type=checkbox]:checked) > td { background: rgba(0, 122, 255, .06); }
#interview_page #list_div .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }

/* status badges -> soft pills with a dot */
#interview_page #list_div .iv-table .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 0;
    border-radius: var(--ok-r-pill); font-size: 11px; font-weight: 600; }
#interview_page #list_div .iv-table .badge:not(.noti-icon-badge)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#interview_page #list_div .iv-table .badge.bg-success { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
#interview_page #list_div .iv-table .badge.bg-warning { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
#interview_page #list_div .iv-table .badge.bg-danger  { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
#interview_page #list_div .iv-table :is(.badge.bg-info, .badge.bg-blue, .badge.bg-primary) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
#interview_page #list_div .iv-table .badge.bg-pink { background: rgba(255, 45, 85, .10) !important; color: #d30f45 !important; }
#interview_page #list_div .iv-table :is(.badge.bg-secondary, .badge.bg-soft-secondary, .badge.bg-light, .badge.bg-dark) { background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }

/* buttons in rows ("Feedback"); Action toggle like .ok-btn */
#interview_page #list_div .iv-table td .btn:not(.iv-action-toggle):not(.dropdown-item > .btn):not(.dropdown-menu > .btn) { color: var(--ok-text) !important; font-weight: 600; }
#interview_page #list_div .iv-table .iv-action-toggle,
#interview_page #list_div .iv-table .dropdown-toggle.btn-danger.iv-action-toggle {
    background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text); border-radius: var(--ok-r-sm); box-shadow: var(--ok-shadow-xs) !important; }
#interview_page #list_div .iv-table .iv-action-toggle.show,
#interview_page #list_div .iv-table .iv-action-toggle:hover { background: var(--ok-grad) !important; border-color: transparent !important; color: #fff !important; }
#interview_page #list_div .iv-table .dropdown-menu { border-radius: 12px; border-color: var(--ok-line) !important; box-shadow: var(--ok-shadow-lg) !important; }
#interview_page #list_div .iv-table .dropdown-menu .dropdown-item > .btn:hover,
#interview_page #list_div .iv-table .dropdown-menu > .btn:hover { background: var(--ok-fill-2) !important; color: var(--ok-text) !important; }

/* DataTables toolbar (length / Copy-Excel-PDF / search) and pager */
#interview_page #list_div .dataTables_wrapper .dataTables_filter input,
#interview_page #list_div .dataTables_wrapper .dataTables_length select { border-color: var(--ok-line); border-radius: var(--ok-r-sm); }
#interview_page #list_div .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
#interview_page #list_div .dataTables_wrapper .dt-buttons .btn { background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text);
    border-radius: var(--ok-r-sm); box-shadow: var(--ok-shadow-xs); font-size: var(--ok-fs-sm); }
#interview_page #list_div .dataTables_wrapper .dt-buttons .btn:hover { background: var(--ok-surface-2); }
#interview_page #list_div .dataTables_wrapper .page-item .page-link { border-color: var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); }

@media (max-width: 991.98px) {
    #interview_page .iv-ok .iv-ok-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    #interview_page .iv-ok .iv-ok-outcome { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #interview_page .iv-ok .ok-page-head-aside .ok-input { width: 100%; }
}


/* Outcome popup (#view_change_status_details): light header, soft table, status pills */
#view_change_status_details.iv-ok-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ok-shadow-lg); background: var(--ok-surface); }
#view_change_status_details.iv-ok-modal .modal-header { align-items: flex-start; padding: 20px 24px 16px; background: var(--ok-surface) !important;
    border-bottom: 1px solid var(--ok-line-2); border-top: 4px solid var(--ok-blue); }
#view_change_status_details.iv-ok-modal[data-tone="warning"] .modal-header { border-top-color: var(--ok-orange); }
#view_change_status_details.iv-ok-modal[data-tone="success"] .modal-header { border-top-color: var(--ok-green); }
#view_change_status_details.iv-ok-modal[data-tone="teal"]    .modal-header { border-top-color: var(--ok-teal); }
#view_change_status_details.iv-ok-modal[data-tone="danger"]  .modal-header { border-top-color: var(--ok-red); }
#view_change_status_details.iv-ok-modal[data-tone="neutral"] .modal-header { border-top-color: var(--ok-gray); }
#view_change_status_details.iv-ok-modal .modal-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0;
    font-family: var(--ok-font-display); font-size: 22px; font-weight: 700; color: var(--ok-text) !important; }
#view_change_status_details.iv-ok-modal .iv-ok-modal-sub { margin: 4px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#view_change_status_details.iv-ok-modal .iv-ok-modal-sub:empty { display: none; }
#view_change_status_details.iv-ok-modal .btn-close { filter: none; opacity: .5; }
#view_change_status_details.iv-ok-modal .modal-body { padding: 16px 24px 20px; background: var(--ok-surface); }

#view_change_status_details .iv-ok-outcome-table { margin: 0 !important; font-size: var(--ok-fs); color: var(--ok-text-2); border-collapse: collapse !important; }
#view_change_status_details .iv-ok-outcome-table > thead > tr > th {
    padding: 12px 14px 10px; background: var(--ok-surface) !important; color: var(--ok-text-4) !important; border: 0 !important;
    border-bottom: 1px solid var(--ok-line-2) !important; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
#view_change_status_details .iv-ok-outcome-table > tbody > tr > td { padding: 12px 14px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--ok-line-3); background: transparent; }
#view_change_status_details .iv-ok-outcome-table > tbody > tr:hover > td { background: var(--ok-surface-2); }
#view_change_status_details .iv-ok-cell-main { font-weight: 600; color: var(--ok-text); line-height: 1.3; }
#view_change_status_details .iv-ok-cell-sub { margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#view_change_status_details .iv-ok-outcome-table td.text-center { color: var(--ok-text-3); }
/* DataTables controls (length / search / pager) */
#view_change_status_details .dataTables_wrapper .dataTables_length,
#view_change_status_details .dataTables_wrapper .dataTables_filter { margin-bottom: 10px; color: var(--ok-text-4); font-size: var(--ok-fs-sm); }
#view_change_status_details .dataTables_wrapper .dataTables_length select,
#view_change_status_details .dataTables_wrapper .dataTables_filter input { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
#view_change_status_details .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
#view_change_status_details .dataTables_wrapper .dataTables_paginate { margin-top: 12px; }
#view_change_status_details .dataTables_wrapper .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    margin: 0 2px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
#view_change_status_details .dataTables_wrapper .page-item.active .page-link { background: var(--ok-grad) !important; border-color: transparent !important; color: #fff !important; }

/* Interview details popup (#view-modal, Action > View Details): profile header,
   Interview / Role / Hiring manager cards, interview history table */
#view-modal.iv-ok-detail .modal-content { border: 0; border-radius: 20px; overflow: hidden; background: var(--ok-bg, #f5f5f7); box-shadow: var(--ok-shadow-lg); }
#view-modal.iv-ok-detail .modal-header { position: relative; align-items: flex-start; padding: 24px 26px 20px !important; border: 0 !important; color: var(--ok-text) !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, .10), rgba(175, 82, 222, .10)), var(--ok-surface) !important; border-bottom: 1px solid var(--ok-line-2) !important; }
#view-modal.iv-ok-detail .modal-header .btn-close { position: absolute; top: 18px; right: 18px; margin: 0 !important; filter: none !important; opacity: .5; }
#view-modal.iv-ok-detail .modal-header .btn-close:hover { opacity: .9; }
#view-modal .ivd-head { display: flex; align-items: center; gap: 18px; min-width: 0; padding-right: 30px; }
#view-modal .ivd-head .ok-avatar { flex: 0 0 64px; box-shadow: 0 6px 16px rgba(0, 122, 255, .25); color: #fff; font-weight: 700; }
#view-modal .ivd-head-main { min-width: 0; }
#view-modal.iv-ok-detail .modal-header .modal-title { margin: 0 !important; font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text) !important; text-align: left !important; }
#view-modal .ivd-head-sub { margin-top: 2px; font-size: var(--ok-fs-md); color: var(--ok-text-3); }
#view-modal .ivd-head-sub:empty { display: none; }
#view-modal .ivd-dot { margin: 0 4px; color: var(--ok-text-5); }
#view-modal .ivd-head-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
#view-modal .ivd-head-chips .ok-chip { height: 26px; font-size: var(--ok-fs-sm); color: var(--ok-text-2); text-decoration: none; }
#view-modal .ivd-head-chips .ok-chip i { color: var(--ok-text-4); }
#view-modal .ivd-head-chips a.ok-chip:hover { color: var(--ok-blue); border-color: rgba(0, 122, 255, .4); }
#view-modal .ivd-head-chips .ok-pill { height: 26px; padding: 0 11px; font-size: 12px; }
#view-modal.iv-ok-detail .modal-body { padding: 20px 26px 22px; background: var(--ok-bg, #f5f5f7); }
#view-modal.iv-ok-detail .modal-footer { padding: 12px 26px; background: var(--ok-surface); border-top: 1px solid var(--ok-line-2); }

/* cards */
#view-modal .ivd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ok-gap); }
@media (max-width: 991.98px) { #view-modal .ivd-cards { grid-template-columns: minmax(0, 1fr); } }
#view-modal .ivd-card { min-width: 0; padding: 18px 20px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow-xs); }
#view-modal .ivd-card-title { margin-bottom: 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#view-modal .ivd-card-title i { margin-right: 3px; font-size: 14px; color: var(--ok-blue); vertical-align: -1px; }
#view-modal .ivd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--ok-line-3); }
#view-modal .ivd-card-title + .ivd-row { border-top: 0; padding-top: 0; }
#view-modal .ivd-label { flex: 0 0 auto; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#view-modal .ivd-value { min-width: 0; text-align: right; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); word-break: break-word; }
#view-modal .ivd-value a { color: var(--ok-blue); text-decoration: none; }
#view-modal .ivd-card--interview { color: #fff; border: 0; background: var(--ok-grad); box-shadow: 0 10px 26px rgba(88, 86, 214, .28); }
#view-modal .ivd-card--interview .ivd-card-title, #view-modal .ivd-card--interview .ivd-card-title i { color: rgba(255, 255, 255, .85); }
#view-modal .ivd-date { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
#view-modal .ivd-date-day { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); font-family: var(--ok-font-display); font-size: 26px; font-weight: 700; }
#view-modal .ivd-date-rest { display: flex; flex-direction: column; line-height: 1.3; }
#view-modal .ivd-date-rest b { font-size: 16px; }
#view-modal .ivd-date-rest span { font-size: var(--ok-fs); color: rgba(255, 255, 255, .85); }
#view-modal .ivd-card--interview .ok-pill { background: rgba(255, 255, 255, .2); color: #fff; }
#view-modal .ivd-date-none { padding: 14px 0 4px; font-size: var(--ok-fs-md); color: rgba(255, 255, 255, .9); }

/* interview history */
#view-modal .ivd-section { margin-top: var(--ok-gap); padding: 18px 20px 14px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow-xs); }
#view-modal .ivd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#view-modal .ivd-section-head i { margin-right: 3px; color: var(--ok-blue); }
#view-modal .ivd-table { margin: 0 !important; font-size: var(--ok-fs); color: var(--ok-text-2); border-collapse: collapse !important; }
#view-modal .ivd-table > thead > tr > th { padding: 10px 12px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important;
    border-bottom: 1px solid var(--ok-line-2) !important; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
#view-modal .ivd-table > tbody > tr > td { padding: 12px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--ok-line-3); background: transparent; }
#view-modal .ivd-table > tbody > tr:hover > td { background: var(--ok-surface-2); }
#view-modal .ivd-cell-main { display: block; font-weight: 600; color: var(--ok-text); }
#view-modal .ivd-cell-sub { display: block; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#view-modal .ivd-slots { font-size: var(--ok-fs-sm); line-height: 1.6; color: var(--ok-text-3); }
#view-modal .ivd-empty, #view-modal .ivd-table td.dataTables_empty { padding: 26px 12px; text-align: center; color: var(--ok-text-4); }
#view-modal .dataTables_wrapper .dataTables_filter input, #view-modal .dataTables_wrapper .dataTables_length select { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
#view-modal .dataTables_wrapper .dt-buttons .btn { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#view-modal .dataTables_wrapper .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin: 0 2px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; }
#view-modal .dataTables_wrapper .page-item.active .page-link { background: var(--ok-grad) !important; border-color: transparent !important; color: #fff !important; }
@media (max-width: 575.98px) {
    #view-modal .ivd-head { flex-direction: column; align-items: flex-start; }
    #view-modal.iv-ok-detail .modal-body { padding: 16px; }
}

/* ---- 4f. Interview feedback  (modules/interview/interview-feedback) ------- */
.ifb-ok .ifb-ok-toolbar .ok-btn--primary { height: 36px; padding: 0 18px; }

/* list table: DataTables keeps paging / sorting; its own search box is replaced by #ifb_search */
.ifb-ok .ifb-ok-table .dataTables_wrapper { padding: 0; }
.ifb-ok .ifb-ok-table .dataTables_filter { display: none; }
.ifb-ok .ifb-ok-table .dataTables_wrapper > .row { margin: 0; align-items: center; }
.ifb-ok .ifb-ok-table .dataTables_wrapper > .row:first-child { padding: 12px 16px 0; }
.ifb-ok .ifb-ok-table .dataTables_wrapper > .row:first-child:not(:has(.dataTables_length)) { display: none; }
.ifb-ok .ifb-ok-table .dataTables_wrapper > .row:last-child { padding: 10px 16px; border-top: 1px solid var(--ok-line-3); }
.ifb-ok .ifb-ok-table .dataTables_wrapper > .row > [class*="col-"] { padding: 0; }
.ifb-ok .ifb-ok-table .dataTables_length select { height: 30px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
.ifb-ok .ifb-ok-table .dataTables_length label { color: var(--ok-text-4); font-size: var(--ok-fs-sm); margin: 0; }
.ifb-ok .ifb-ok-table .dataTables_info { padding: 0 !important; }
.ifb-ok .ifb-ok-table .pagination { margin: 0; justify-content: flex-end; }
.ifb-ok .ifb-ok-table .page-item.disabled .page-link { color: var(--ok-text-5); }

/* light headers, soft rows (beat slate-headers.css / interview-feedback.css) */
.ifb-ok table.ok-table.dataTable { margin: 0 !important; border-collapse: collapse !important; width: 100% !important; }
.ifb-ok table.ok-table > thead > tr > th { padding: 14px 16px 12px; letter-spacing: .1em; }
.ifb-ok table.ok-table > tbody > tr > td { padding: 13px 16px; border-color: var(--ok-line-3); color: var(--ok-text-2); background: transparent; }
.ifb-ok table.ok-table > tbody > tr > td:nth-child(1) { font-weight: 600; color: var(--ok-text); }
.ifb-ok table.ok-table > tbody > tr > td:nth-child(3) { color: var(--ok-blue); font-weight: 500; }
.ifb-ok table.ok-table > tbody > tr > td.dataTables_empty { text-align: center; color: var(--ok-text-3); font-weight: 400; }
.ifb-ok table.ok-table > tbody > tr > td:last-child { white-space: nowrap; }
/* row actions (view / edit / delete) -> square buttons with coloured icons */
.ifb-ok table.ok-table td .btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; margin: 0 2px 0 0; font-size: 13px; }
.ifb-ok table.ok-table td .btn-info    { color: var(--ok-text-2) !important; }
.ifb-ok table.ok-table td .btn-success { color: var(--ok-blue) !important; }
.ifb-ok table.ok-table td .btn-danger  { color: var(--ok-red) !important; }

/* section cards drawn by renderBuilder() */
.ifb-ok #sections_container .card { margin-bottom: 12px !important; border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow-xs); overflow: hidden; }
.ifb-ok #sections_container .card-header { background: var(--ok-surface-2) !important; color: var(--ok-text) !important; border-bottom: 1px solid var(--ok-line-2);
    padding: 10px 14px; font-weight: 600; }
.ifb-ok #sections_container .card-body { padding: 0; }
.ifb-ok #sections_container .table { margin: 0; border: 0; font-size: var(--ok-fs); }
.ifb-ok #sections_container .table > thead > tr > th { padding: 10px 14px 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ifb-ok #sections_container .table > tbody > tr > td { padding: 9px 14px; border-width: 0 0 1px; border-color: var(--ok-line-3); color: var(--ok-text-2); vertical-align: middle; }
.ifb-ok #sections_container .table > tbody > tr:last-child > td { border-bottom: 0; }
.ifb-ok #sections_container .btn { height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; margin: 0 0 0 4px !important;
    font-size: var(--ok-fs-sm); font-weight: 600; border-radius: var(--ok-r-sm); box-shadow: var(--ok-shadow-xs);
    background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text); }
.ifb-ok #sections_container .btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
.ifb-ok #sections_container .btn-warning { color: var(--ok-blue); }
.ifb-ok #sections_container .btn-danger { color: var(--ok-red); }
.ifb-ok #sections_container .alert-secondary { margin: 0; padding: 28px 16px; text-align: center; color: var(--ok-text-3);
    background: var(--ok-surface-2); border: 1px dashed var(--ok-line); border-radius: var(--ok-r-lg); }

@media (max-width: 575.98px) {
    .ifb-ok .ifb-ok-toolbar { flex-wrap: wrap; }
    .ifb-ok .ifb-ok-toolbar .ok-search { flex-basis: 100%; }
}


/* ---- 4g. Users / Team directory  (modules/users) -------------------------- */
#list_div.users-ok .users-ok-toolbar .ok-search .ok-input { padding-right: 40px; }
#list_div.users-ok .users-ok-toolbar #users_results_filter_clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
#list_div.users-ok .users-ok-toolbar .ok-select { width: auto; min-width: 128px; }

/* directory rows: avatar + name, contact, chips, Open */
#list_div.users-ok .users-table-wrap { position: relative; min-height: 130px; }
#list_div.users-ok #users_table_loading { z-index: 3; align-items: center; background: rgba(255, 255, 255, .7); }
#list_div.users-ok #tbl_list { margin: 0; }
#list_div.users-ok #tbl_list thead th { padding: 12px 16px 10px; letter-spacing: .1em; }
#list_div.users-ok #tbl_list thead th:first-child { padding-left: 24px; }
#list_div.users-ok #tbl_list thead th.users-sortable { cursor: pointer; user-select: none; }
#list_div.users-ok #tbl_list thead th.users-sortable:hover, #list_div.users-ok #tbl_list thead th.sorted { color: var(--ok-text) !important; }
#list_div.users-ok #tbl_list thead .users-sort-icon { opacity: .45; font-size: 12px; }
#list_div.users-ok #tbl_list thead th.sorted .users-sort-icon { opacity: 1; color: var(--ok-blue); }
#list_div.users-ok #tbl_list tbody td { padding: 14px 16px; border-bottom: 1px solid var(--ok-line-3); }
#list_div.users-ok #tbl_list tbody td:first-child { padding-left: 24px; }
#list_div.users-ok #tbl_list tbody td:last-child { padding-right: 24px; }
#list_div.users-ok .users-person { display: flex; align-items: center; gap: 14px; min-width: 220px; }
#list_div.users-ok .users-person .ok-avatar { width: 44px; height: 44px; flex: 0 0 44px; font-size: 14px;
    background: var(--ok-av); color: #fff; box-shadow: none; font-weight: 700; }
#list_div.users-ok .users-person .ok-avatar img { border-radius: 50%; }
#list_div.users-ok #tbl_list .users-edit { font-size: var(--ok-fs-sm); line-height: 1; color: var(--ok-text); }
#list_div.users-ok #tbl_list .users-edit:hover { color: var(--ok-text); background: var(--ok-surface-2); }
#list_div.users-ok .users-name { font-size: 14px; font-weight: 600; color: var(--ok-text); line-height: 1.3; }
#list_div.users-ok .users-sub { margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#list_div.users-ok .users-contact { font-size: var(--ok-fs-sm); color: var(--ok-text-3); line-height: 1.45; white-space: nowrap; }
#list_div.users-ok .users-empty { padding: 36px 16px !important; }
#list_div.users-ok .users-empty .mdi { display: block; font-size: 26px; color: var(--ok-text-5); margin-bottom: 4px; }

/* footer: showing x-y of z + pager */
#list_div.users-ok .users-ok-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 24px;
    border-top: 1px solid var(--ok-line-3); font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#list_div.users-ok .users-ok-foot strong { color: var(--ok-text-2); font-weight: 600; }
#list_div.users-ok .users-pagination-btns .btn,
#list_div.users-ok .users-page-num { height: 28px; padding: 0 8px; background: var(--ok-surface); }
#list_div.users-ok .users-pagination-btns .btn:hover:not(:disabled) { background: var(--ok-surface-2); color: var(--ok-text); }
#list_div.users-ok .users-pagination-btns .btn:disabled { opacity: .45; }
#list_div.users-ok .users-page-ellipsis { padding: 0 4px; color: var(--ok-text-5); }

@media (max-width: 767.98px) {
    #list_div.users-ok .users-ok-toolbar { flex-wrap: wrap; }
    #list_div.users-ok .users-ok-toolbar .ok-search { flex-basis: 100%; }
    #list_div.users-ok .users-ok-foot { padding: 12px 16px; }
}


/* ---- 4h. CV search  (modules/internal-search/cv-search) ------------------- */
/* Mockup layout: tabs under the title, filter card in a left column, results on the right.
   The wrapper is ".cls-ok .cvs-ok": the Client search rules (4d) give it the section titles,
   field grid, ranges, list, loading overlay and pager. Below: the two-column layout,
   tick-box filters, results header, tag bar, candidate rows (.ok-person) and the
   "Updated by candidates" cards. Also beats the old ui-common.css .cvs-* rules. */
.cvs-ok .cvs-tabs-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: -4px 0 18px; }
.cvs-ok .cvs-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.cvs-ok .cvs-layout:has(> #search_div[style*="none"]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1199.98px) { .cvs-ok .cvs-layout { grid-template-columns: 290px minmax(0, 1fr); } }
@media (max-width: 991.98px)  { .cvs-ok .cvs-layout { grid-template-columns: minmax(0, 1fr); } }
.cvs-ok .cvs-main { min-width: 0; }

/* left column: one stacked "Filters" card */
.cvs-ok .cvs-side .cls-filters { margin-top: 0; }
.cvs-ok .cvs-side .ok-card { padding: 20px 18px; border-radius: 18px; }
.cvs-ok .cvs-side .ok-card-title { margin-bottom: 4px; }
.cvs-ok .cvs-side .cls-fsec { margin: 16px 0 8px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.cvs-ok .cvs-side .cls-fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cvs-ok .cvs-side .ok-input { height: 40px; }
.cvs-ok .cvs-side .cls-filters .select2-container .select2-selection--single { height: 40px; }
.cvs-ok .cvs-side .cls-filters .select2-container .select2-selection--single .select2-selection__rendered { line-height: 38px; }
.cvs-ok .cvs-side .cls-filters .select2-container .select2-selection--single .select2-selection__arrow { height: 38px; }
.cvs-ok .cvs-side .cls-filters .select2-container .select2-selection--multiple { min-height: 40px; }
.cvs-ok .cvs-side .ok-card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
.cvs-ok .cvs-side .ok-card-foot .ok-toolbar { margin-left: 0; flex-wrap: nowrap; }
.cvs-ok .cvs-side .ok-card-foot .ok-btn { height: 42px; justify-content: center; border-radius: var(--ok-r-lg); font-size: 14px; }
.cvs-ok .cvs-side .ok-card-foot .ok-btn--primary { flex: 1 1 auto; }
.cvs-ok .cvs-side .ok-card-foot .ok-btn:not(.ok-btn--primary) { flex: 0 0 auto; padding: 0 20px; }

/* filters: tick box + label; ticked = blue label, value but unticked = dimmed */
.cvs-ok .cvs-filter-head { display: flex; align-items: center; gap: 8px; min-height: 18px; margin-bottom: 6px; }
.cvs-ok .cvs-filter-head .form-check-input { margin: 0; flex: 0 0 auto; cursor: pointer; }
.cvs-ok .cvs-filter-head .ok-label { margin: 0; cursor: pointer; color: var(--ok-text-4); }
.cvs-ok .cvs-filter.is-on .cvs-filter-head .ok-label { color: var(--ok-blue) !important; }
.cvs-ok .cvs-filter.is-ignored .ok-input,
.cvs-ok .cvs-filter.is-ignored .select2-selection { opacity: .5; }
.cvs-ok .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
.cvs-ok .ok-input:disabled { background: var(--ok-surface-2); color: var(--ok-text-2); opacity: 1; }
.cvs-ok .cls-filters .select2-container--disabled .select2-selection { background: var(--ok-surface-2) !important; }
.cvs-ok .cls-range .ok-input { min-width: 0; }
.cvs-ok .cvs-currency { flex: 0 0 92px; min-width: 0; }
.cvs-ok .cvs-jo-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cvs-ok .cvs-jo-pick .ok-btn { height: 38px; justify-content: center; }
.cvs-ok .cvs-jd-files { margin-top: 10px; }
.cvs-ok .cvs-jd-files:empty { display: none; }
.cvs-ok .cvs-intro-note { margin: 10px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.cvs-ok .cvs-skills-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cvs-ok .cvs-skills-head .cvs-filter-head { margin-bottom: 0; }
.cvs-ok .form-switch .form-check-label { font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.cvs-ok .cls-note code { font-size: inherit; }

/* right column: "79 matches" + actions, then select page / filter / per page */
.cvs-ok .cvs-placeholder { padding: 56px 20px; }
.cvs-ok #search_results_div:has(> #list_div:not([style*="none"])) > .cvs-placeholder,
.cvs-ok #search_results_div:has(> #manual_list_div:not([style*="none"])) > .cvs-placeholder,
.cvs-ok #search_results_div:has(> #viewcv_div:not([style*="none"])) > .cvs-placeholder { display: none; }
.cvs-ok .cvs-results-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; min-height: 40px; }
.cvs-ok .cvs-count { font-size: 20px; font-weight: 700; color: var(--ok-text); letter-spacing: -.01em; }
.cvs-ok .cvs-count .cvs-count-unit { font-size: 15px; font-weight: 500; color: var(--ok-text-3); }
.cvs-ok .cvs-results-top .ok-btn { height: 34px; border-radius: var(--ok-r); }
.cvs-ok .cvs-results-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cvs-ok .cvs-results-tools .ok-search { width: 240px; }
.cvs-ok .cvs-results-tools .ok-search .ok-input { height: 32px; font-size: var(--ok-fs-sm); }
.cvs-ok .cvs-results-tools .ok-select { width: auto; height: 32px; font-size: var(--ok-fs-sm); }
@media (max-width: 575.98px) { .cvs-ok .cvs-results-tools .ok-search { width: 100%; } }
.cvs-ok .cvs-selected { margin-left: 8px; font-size: var(--ok-fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ok-blue); }
.cvs-ok .cvs-selected:empty { display: none; }
.cvs-ok .cvs-check-all { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; white-space: nowrap;
    font-size: var(--ok-fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ok-text-3); }
.cvs-ok .cvs-check-all .form-check-input { margin: 0; }

/* tag bar under the list: "Tag selected to job order: [select] Tag" */
.cvs-ok .cvs-tagbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; padding: 14px 18px; }
.cvs-ok .cvs-tagbar-label { margin: 0; font-size: var(--ok-fs); color: var(--ok-text-3); white-space: nowrap; }
.cvs-ok .cvs-tag-select { flex: 1 1 260px; min-width: 0; }
.cvs-ok .cvs-tag-select .select2-container .select2-selection--single { height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.cvs-ok .cvs-tag-select .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; color: var(--ok-text); }
.cvs-ok .cvs-tag-select .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
.cvs-ok .cvs-tag-select .select2-container--open .select2-selection { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.cvs-ok .cvs-tagbar .ok-btn { padding: 0 16px; }

/* candidate rows (mockup "CV results"): avatar, name + status, meta, contact, chips, facts | salary, action, tick */
.cvs-ok .cvs-people { display: flex; flex-direction: column; gap: 8px; }
.cvs-ok .cvs-people > .ok-person + .ok-person { margin-top: 0; }
.cvs-ok .cvs-person { align-items: flex-start; padding: 12px 18px; gap: 12px; transition: box-shadow var(--ok-t), border-color var(--ok-t); }
.cvs-ok .cvs-person:hover { box-shadow: var(--ok-shadow); }
.cvs-ok .cvs-person:has(.ok-person-aside input[type="checkbox"]:checked) { border-color: rgba(0, 122, 255, .45); background: rgba(0, 122, 255, .03); }
.cvs-ok .ok-person-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; white-space: normal; font-size: 14px; line-height: 1.3; }
.cvs-ok .ok-person-name a { color: var(--ok-text); text-decoration: none; }
.cvs-ok .ok-person-name a:hover { color: var(--ok-blue); }
.cvs-ok .ok-person-meta { margin-top: 1px; white-space: normal; }
.cvs-ok .cvs-dot { margin: 0 2px; color: var(--ok-text-5); }
.cvs-ok .cvs-person-contact { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: 12px; color: var(--ok-text-3); word-break: break-all; }
.cvs-ok .cvs-person-contact i { margin-right: 4px; color: var(--ok-text-5); }
.cvs-ok .ok-person-main .ok-chips { margin-top: 6px; }
.cvs-ok .cvs-person .ok-chip { height: 20px; padding: 0 8px; font-size: 10.5px; }
.cvs-ok .cvs-person > .ok-avatar { width: 40px; height: 40px; flex: 0 0 40px; font-size: 14px; }
.cvs-ok .cvs-person .ok-person-aside .ok-chip--lg { height: 24px; font-size: var(--ok-fs-sm); }
.cvs-ok .cvs-person .ok-person-aside .ok-btn { height: 28px; }
.cvs-ok .cvs-person-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px;
    font-size: 12px; color: var(--ok-text-2); }
.cvs-ok .cvs-fact-label { color: var(--ok-text-4); }
.cvs-ok .cvs-fact strong { color: var(--ok-text); font-weight: 600; }
.cvs-ok .cvs-fact .badge { border-radius: var(--ok-r-pill); font-size: 10.5px; padding: 3px 7px; }
.cvs-ok .cvs-person > .ok-person-aside { align-self: flex-start; }
.cvs-ok .cvs-salary { color: var(--ok-green); font-variant-numeric: tabular-nums; }
.cvs-ok .ok-person-aside .form-check-input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; cursor: pointer; }
@media (max-width: 767.98px) {
    .cvs-ok .cvs-person, .cvs-ok .cvs-uc-head { flex-wrap: wrap; }
    .cvs-ok .cvs-person .ok-person-main, .cvs-ok .cvs-uc-head .ok-person-main { flex-basis: calc(100% - 62px); }
    .cvs-ok .cvs-person > .ok-person-aside, .cvs-ok .cvs-uc-head .ok-person-aside { width: 100%; justify-content: flex-end; }
}

/* Updated by candidates: one card per candidate */
.cvs-ok #uc_date_range { cursor: pointer; background: #fff; }
.cvs-ok .cvs-uc { padding: 18px 22px; }
.cvs-ok .cvs-uc-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ok-line-3); }
.cvs-ok .cvs-uc-head .ok-person-main { flex: 1 1 auto; min-width: 0; }
.cvs-ok .cvs-uc-head .ok-person-aside { gap: 12px; }
.cvs-ok .cvs-uc-date { font-size: var(--ok-fs-sm); color: var(--ok-text-4); white-space: nowrap; }
.cvs-ok .cvs-uc-date strong { color: var(--ok-text); font-weight: 600; }
.cvs-ok .cvs-uc-meta { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); margin: 14px 0 0; }
.cvs-ok .cvs-uc-meta dt { margin: 0 0 6px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.cvs-ok .cvs-uc-meta dd { margin: 0; font-size: var(--ok-fs); color: var(--ok-text-2); word-break: break-word; }
.cvs-ok .cvs-uc-meta a { color: var(--ok-blue); text-decoration: none; }
.cvs-ok #updated_candidates_table .uc-change { font-size: var(--ok-fs); }
.cvs-ok #updated_candidates_table .uc-old { color: var(--ok-text-4); }
.cvs-ok #updated_candidates_table .uc-remarks { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--ok-blue); border-radius: var(--ok-r-sm); background: var(--ok-surface-2); }
@media (max-width: 1399.98px) {
    .cvs-ok .cvs-uc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cvs-ok .cvs-uc-meta .cvs-uc-changes { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) { .cvs-ok .cvs-uc-meta { grid-template-columns: minmax(0, 1fr); } }

.cvs-ok .auto-page-ellipsis, .cvs-ok .manual-page-ellipsis { padding: 0 4px; color: var(--ok-text-5); }


/* ---- 4i. CV / Resume parser  (modules/resume-parser/resume-parser) -------- */
/* Mockup: progress ring + accuracy bars, drop zone, "Uploaded resumes" table.
   Also beats the older resume-parser.css (.pagination, .resume-stat-tile, .rp-actions). */
.rp-ok .rp-template { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--ok-r-pill);
    background: var(--ok-surface); border: 1px solid var(--ok-line-2); font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.rp-ok .rp-template a { color: var(--ok-blue); text-decoration: none; }

/* no default template */
.rp-ok .rp-notemplate { display: flex; align-items: center; gap: 14px; margin-bottom: var(--ok-gap); border-color: rgba(255, 149, 0, .35); }
.rp-ok .rp-notemplate-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 50%; background: rgba(255, 149, 0, .14); color: #c93400; font-size: 20px; }
.rp-ok .rp-notemplate-title { margin: 0; font-weight: 600; color: var(--ok-text); }
.rp-ok .rp-notemplate-text { margin: 2px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }

/* top row: progress card | accuracy card */
.rp-ok .rp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--ok-gap); margin-bottom: var(--ok-gap); }
@media (max-width: 991.98px) { .rp-ok .rp-top { grid-template-columns: minmax(0, 1fr); } }
.rp-ok .rp-progress { display: flex; align-items: center; gap: 22px; padding: 24px; }
.rp-ok .rp-ring { --ok-size: 104px; --ok-accent: var(--ok-blue); background: conic-gradient(var(--ok-blue), var(--ok-purple, #af52de) calc(var(--ok-value) * 1%), var(--ok-fill) 0); }
.rp-ok .rp-ring::before { inset: 9px; }
.rp-ok .rp-ring-label { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rp-ok .rp-ring-value { font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.rp-ok .rp-ring-status { margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--ok-text-4); }
.rp-ok .rp-state--stopped { color: var(--ok-red); }
.rp-ok .rp-state--busy { color: var(--ok-blue); }
.rp-ok .rp-state--done { color: var(--ok-green); }
.rp-ok .rp-progress-body { flex: 1 1 auto; min-width: 0; }
.rp-ok .rp-progress-body .ok-card-title { margin-bottom: 12px; }
.rp-ok .rp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rp-ok .rp-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px; border: 1px solid #dcdce0 !important;
    border-radius: var(--ok-r-pill); background: var(--ok-fill) !important; color: var(--ok-text-3); font-size: var(--ok-fs-sm); font-weight: 500;
    cursor: pointer; transition: border-color var(--ok-t), background var(--ok-t), color var(--ok-t); }
.rp-ok .rp-chip b { color: var(--ok-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-ok .rp-chip:hover, .rp-ok .rp-chip:focus-visible { border-color: var(--ok-blue) !important; box-shadow: none; outline: none; }
.rp-ok .rp-chip.resume-stat-tile-active { border-color: var(--ok-blue) !important; background: rgba(0, 122, 255, .08) !important; color: var(--ok-blue); }
.rp-ok .rp-chip--failed b { color: var(--ok-red); }
.rp-ok .rp-bar { height: 6px; }
.rp-ok .rp-bar .ok-progress-bar { width: 0; }
.rp-ok .rp-progress-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: var(--ok-fs-sm); }
.rp-ok .rp-progress-foot b { color: var(--ok-text); }

.rp-ok .rp-accuracy { display: flex; flex-direction: column; padding: 22px 24px; }
.rp-ok .rp-bars { flex: 1 1 auto; height: 110px; min-height: 110px; gap: 18px; margin: 14px 0 12px; }
.rp-ok .rp-bars .ok-bar::before { max-width: 34px; border-radius: 8px; }
.rp-ok .rp-bars .ok-bar.is-empty::before { min-height: 0; height: 0; }
.rp-ok .rp-accuracy-foot { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: var(--ok-fs-sm); }
.rp-ok .rp-accuracy-value { font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }

/* drop zone */
.rp-ok .rp-dropzone { min-height: 150px; margin-bottom: var(--ok-gap); padding: 26px 20px; border-radius: 18px; outline: none; }
.rp-ok .rp-dropzone:focus-visible { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.rp-ok .rp-dropzone .ok-dropzone-icon { width: 48px; height: 48px; font-size: 22px; }

/* uploaded resumes */
.rp-ok .rp-list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px 12px; }
.rp-ok .rp-list-head .ok-card-title { margin: 0; }
.rp-ok .rp-list-head .ok-search { width: 240px; }
.rp-ok .rp-list-head .ok-search .ok-input { height: 34px; }
.rp-ok .rp-list-head .ok-btn { height: 34px; }
.rp-ok .rp-list-head .ok-btn[aria-expanded="true"] { border-color: var(--ok-blue); color: var(--ok-blue); }
@media (max-width: 767.98px) { .rp-ok .rp-list-head .ok-search { width: 100%; } }
.rp-ok .rp-action-select .select2-container .select2-selection--single { height: 34px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.rp-ok .rp-action-select .select2-container .select2-selection--single .select2-selection__rendered { line-height: 32px; padding-left: 12px; font-size: var(--ok-fs); color: var(--ok-text); }
.rp-ok .rp-action-select .select2-container .select2-selection--single .select2-selection__arrow { height: 32px; }

.rp-ok .rp-filters .dsh-filterbar { padding: 4px 20px 6px; }
.rp-ok .rp-fgrid { display: grid; gap: 12px 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .rp-ok .rp-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .rp-ok .rp-fgrid { grid-template-columns: minmax(0, 1fr); } }
.rp-ok .rp-filters .select2-container .select2-selection--single,
.rp-ok .rp-filters .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.rp-ok .rp-filters .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
.rp-ok .rp-filters .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.rp-ok .rp-filters .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
.rp-ok #selFilterByDateRange { cursor: pointer; background: #fff; }
.rp-ok .rp-filter-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 6px 20px 12px;
    font-size: var(--ok-fs-sm); border-bottom: 1px solid var(--ok-line-2); }
.rp-ok #rp_filter_hint { font-weight: 500; }
.rp-ok #btnFilterReset.rp-reset-on { border-color: var(--ok-blue); color: var(--ok-blue); background: rgba(0, 122, 255, .06); }

.rp-ok .rp-table th { padding: 12px 16px 10px; }
.rp-ok .rp-table th:first-child, .rp-ok .rp-table td:first-child { padding-left: 20px; width: 1%; }
.rp-ok .rp-table th:last-child, .rp-ok .rp-table td:last-child { padding-right: 20px; }
.rp-ok .rp-table td { padding: 12px 16px; border-bottom: 1px solid var(--ok-line-3) !important; }
.rp-ok .rp-table .form-check-input { margin: 0; }
.rp-ok .rp-file { font-weight: 600; color: var(--ok-text); text-decoration: none; word-break: break-word; }
.rp-ok .rp-file:hover { color: var(--ok-blue); }
.rp-ok .rp-acc { font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-ok .rp-acc--high { color: var(--ok-green); }
.rp-ok .rp-acc--mid { color: #c93400; }
.rp-ok .rp-acc--low { color: var(--ok-red); }
.rp-ok .rp-table td.ok-empty { padding: 40px 20px; }
.rp-ok .rp-actions { justify-content: flex-end; gap: 4px; }
.rp-ok .rp-actions .ok-pill { margin-right: 6px; }
.rp-ok .rp-actions .ok-btn--icon { width: 28px; height: 28px; padding: 0; color: var(--ok-text-3); }
.rp-ok .rp-actions .ok-btn--icon:hover { color: var(--ok-blue); }
.rp-ok .rp-actions .rp-btn-danger:hover { color: var(--ok-red); border-color: rgba(255, 59, 48, .4); }
.rp-ok .resume-action-cell .parse_status { display: inline-flex; justify-content: flex-end; }
.rp-ok .resume-action-cell .parse_status.text-warning { font-size: var(--ok-fs-sm); color: #c93400 !important; }

/* pager drawn by populate_paginate() */
.rp-ok .rp-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 20px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.rp-ok .rp-pager:empty { display: none; }
.rp-ok .rp-pager .pagination-summary { margin: 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.rp-ok .rp-pager .pagination { display: flex; align-items: center; gap: 4px; margin: 0; }
.rp-ok .rp-pager .pagination a, .rp-ok .rp-pager .pagination span {
    min-width: 30px; height: 30px; margin: 0; padding: 0 8px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm);
    background: var(--ok-surface); color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; }
.rp-ok .rp-pager .pagination a:hover { background: var(--ok-surface-2); color: var(--ok-text); }
.rp-ok .rp-pager .pagination .active { background: var(--ok-grad); border-color: transparent; color: #fff; }
.rp-ok .rp-pager .pagination .dots { border: 0; background: transparent; min-width: auto; color: var(--ok-text-5); }
.rp-ok .rp-version { margin-top: 8px; text-align: right; font-size: 11px; }

@media (max-width: 575.98px) {
    .rp-ok .rp-progress { flex-direction: column; align-items: stretch; text-align: left; }
    .rp-ok .rp-ring { align-self: center; }
}


/* ---- 4j. Analytics > Client and Analytics > User  (modules/analytics) ------ */
/* Both pages: #list_div.an-page.an-ok. The panels / tiles markup comes from dashboard-panels.css
   (.an-card, .an-head, .ua-range, .ua-stat ...) and is re-skinned here; also beats the page
   <style> blocks and slate-headers.css (dark table headers). Summary cards are drawn by
   caRenderSummaryCards() / renderUserSummaryButtons(), table cells use .an-ok-num. */
.an-ok .ok-page-head { margin: 4px 0 18px; }
.an-ok .ok-title { color: var(--ok-text) !important; }

/* panels -> white 16px cards */
.an-ok .an-card { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); margin-bottom: var(--ok-gap); }
.an-ok .an-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--ok-line-3); background: transparent; }
.an-ok .an-card > .an-head:only-child,
.an-ok .an-card > .an-head:has(+ .collapse:not(.show)) { border-radius: var(--ok-r-lg); }
.an-ok .an-head-title > i { display: none; }
.an-ok .an-head-title h5 { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.an-ok .an-head-title h5 a { color: inherit !important; text-decoration: none; }
.an-ok .an-head-sub { color: var(--ok-text-4); }
.an-ok .an-body { padding: 16px 20px 20px; }
.an-ok .an-collapse-btn { border-color: var(--ok-line); border-radius: var(--ok-r-sm); color: var(--ok-text-3); }
.an-ok .an-collapse-btn:hover, .an-ok .an-collapse-btn:focus { background: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text); }
.an-ok .ua-report-btn, .an-ok .an-head-btn { height: 34px; padding: 0 14px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface);
    color: var(--ok-text) !important; font-weight: 600; box-shadow: var(--ok-shadow-xs); }
.an-ok .ua-report-btn i, .an-ok .an-head-btn i { color: var(--ok-text-3); }
.an-ok .ua-report-btn:hover, .an-ok .an-head-btn:hover { background: var(--ok-surface-2); border-color: var(--ok-line); }

/* filters: quick range as a segmented control, theme inputs */
.an-ok .ua-filter-label { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); color: var(--ok-text-4); }
.an-ok .ua-range { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); max-width: 100%; overflow-x: auto; flex-wrap: nowrap !important; }
.an-ok .ua-range > .btn { height: 28px; padding: 0 12px; border: 0 !important; border-radius: var(--ok-r-sm) !important; background: transparent; color: var(--ok-text-4);
    font-size: var(--ok-fs); font-weight: 600; white-space: nowrap; box-shadow: none; }
.an-ok .ua-range > .btn:hover { color: var(--ok-text-2); background: transparent; }
.an-ok .ua-range > .btn.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
.an-ok .ua-filter .form-label { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); color: var(--ok-text-4) !important; }
.an-ok .ua-filter .form-control { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text) !important; background: var(--ok-surface); }
.an-ok .ua-filter .input-group-text { background: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-4); border-radius: var(--ok-r) 0 0 var(--ok-r); }
.an-ok .ua-filter .input-group > .form-control { border-radius: 0 var(--ok-r) var(--ok-r) 0; }
.an-ok .ua-filter .form-control:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.an-ok .ua-filter .select2-container .select2-selection--single,
.an-ok .ua-filter .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.an-ok .ua-filter .select2-container .select2-selection--multiple .select2-selection__choice { background: var(--ok-fill); border: 1px solid #dcdce0; color: var(--ok-text-2); border-radius: var(--ok-r-pill); font-size: 12px; font-weight: 600; }
.an-ok .ua-filter .ua-search-btn { height: 36px; border: 0; border-radius: var(--ok-r); background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
.an-ok .ua-filter .ua-search-btn:hover, .an-ok .ua-filter .ua-search-btn:focus { background: var(--ok-grad); filter: brightness(1.05); color: #fff; }

/* summary: three cards (Sourcing / Client stage / Hiring) with a coloured left edge */
.an-ok #client-summary-buttons, .an-ok #summary-buttons { margin: 0; }
.an-ok .ua-summary-head { margin-bottom: 12px; font-size: var(--ok-fs-sm); }
.an-ok .ua-scope-chip { height: 26px; border-color: var(--ok-line); background: var(--ok-surface); color: var(--ok-text-3); font-weight: 600; }
.an-ok .ua-scope-chip i { color: var(--ok-text-4); }
.an-ok .ua-scope-chip.ua-scope-selected { background: rgba(0, 122, 255, .08); border-color: rgba(0, 122, 255, .35); color: var(--ok-blue); }
.an-ok .ua-scope-chip.ua-scope-selected i { color: var(--ok-blue); }
.an-ok .ua-scope-hint, .an-ok .ua-summary-date { color: var(--ok-text-4); }
.an-ok .ua-summary-head a { color: var(--ok-blue); }
.an-ok .an-ok-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ok-gap); }
@media (max-width: 1199.98px) { .an-ok .an-ok-groups { grid-template-columns: minmax(0, 1fr); } }
.an-ok .an-ok-group { position: relative; overflow: hidden; padding: 18px 20px 16px 24px; background: var(--ok-surface);
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); }
.an-ok .an-ok-group::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok-accent, var(--ok-blue)); }
.an-ok .an-ok-group-title { margin-bottom: 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.an-ok .an-ok-group-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }   /* every count of a group on one row */
.an-ok .an-ok-group .ua-stat { display: flex; flex-direction: column; align-items: flex-start; width: auto; min-height: 0; padding: 4px 6px; margin: -4px -6px;
    border: 0 !important; border-radius: var(--ok-r-sm); background: transparent; box-shadow: none; text-align: left; cursor: pointer; transform: none; }
.an-ok .an-ok-group .ua-stat:hover:not(:disabled) { background: var(--ok-surface-2); box-shadow: none; transform: none; }
.an-ok .an-ok-group .ua-stat:focus-visible { outline: 2px solid var(--ok-blue); outline-offset: 1px; }
.an-ok .an-ok-group .ua-stat:disabled { opacity: 1; cursor: default; }
.an-ok .an-ok-group .ua-stat-count { font-family: var(--ok-font-display); font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.an-ok .an-ok-group .ua-stat:disabled .ua-stat-count { color: var(--ok-text-4); }
.an-ok .an-ok-group .ua-stat-label { margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ok-text-3); white-space: normal; line-height: 1.25; }

/* summary table: light headers, plain numbers (beats the page <style> and slate-headers.css) */
.an-ok #tech-companies-1, .an-ok #tech-companies-2 { margin: 0 !important; border: 0 !important; font-size: var(--ok-fs); color: var(--ok-text-2); }
.an-ok #tech-companies-1 > thead > tr > th, .an-ok #tech-companies-2 > thead > tr > th {
    padding: 12px 14px 10px; background: var(--ok-surface) !important; color: var(--ok-text-4) !important; border: 0 !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs) !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: left !important; vertical-align: bottom; white-space: normal; min-width: 90px; }
.an-ok #tech-companies-1 > thead > tr > th:first-child, .an-ok #tech-companies-2 > thead > tr > th:first-child { min-width: 0; }
.an-ok #tech-companies-1 > thead .sorting:before, .an-ok #tech-companies-1 > thead .sorting:after,
.an-ok #tech-companies-1 > thead .sorting_asc:before, .an-ok #tech-companies-1 > thead .sorting_asc:after,
.an-ok #tech-companies-1 > thead .sorting_desc:before, .an-ok #tech-companies-1 > thead .sorting_desc:after,
.an-ok #tech-companies-2 > thead .sorting:before, .an-ok #tech-companies-2 > thead .sorting:after,
.an-ok #tech-companies-2 > thead .sorting_asc:before, .an-ok #tech-companies-2 > thead .sorting_asc:after,
.an-ok #tech-companies-2 > thead .sorting_desc:before, .an-ok #tech-companies-2 > thead .sorting_desc:after { color: var(--ok-text-4) !important; }
.an-ok #tech-companies-1 > tbody > tr > td, .an-ok #tech-companies-2 > tbody > tr > td {
    padding: 14px; border: 0 !important; border-bottom: 1px solid var(--ok-line-3) !important; background: transparent !important; box-shadow: none !important;
    text-align: left !important; vertical-align: middle; color: var(--ok-text-3); }
.an-ok #tech-companies-1 > tbody > tr:hover > td, .an-ok #tech-companies-2 > tbody > tr:hover > td { background: var(--ok-surface-2) !important; }
.an-ok #tech-companies-1 > tbody > tr:has(.row-select:checked) > td,
.an-ok #tech-companies-2 > tbody > tr:has(.row-select:checked) > td { background: rgba(0, 122, 255, .05) !important; }
.an-ok .an-ok-name { font-weight: 700; color: var(--ok-text) !important; min-width: 180px; }
.an-ok .an-ok-name:hover { color: var(--ok-blue) !important; }
.an-ok .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
.an-ok .an-ok-num { padding: 2px 8px; margin: -2px -8px; border: 0; border-radius: var(--ok-r-sm); background: transparent; color: var(--ok-text);
    font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.an-ok button.an-ok-num:hover { background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
.an-ok .an-ok-num.is-static { cursor: default; }
.an-ok .an-ok-zero { color: var(--ok-text-5); font-variant-numeric: tabular-nums; }
.an-ok .an-ok-ratio { min-width: 110px; font-size: 11px; color: var(--ok-text-4); }
.an-ok .an-ok-ratio .ok-progress { height: 5px; margin-bottom: 4px; }

/* DataTables controls */
.an-ok .dataTables_wrapper .dataTables_filter input,
.an-ok .dataTables_wrapper .dataTables_length select { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
.an-ok .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
.an-ok .dataTables_wrapper .dataTables_info { color: var(--ok-text-4); font-size: var(--ok-fs-sm); }
.an-ok .dt-buttons .btn, .an-ok .dt-buttons .dt-button { height: 32px; border: 1px solid var(--ok-line) !important; border-radius: var(--ok-r-sm) !important;
    background: var(--ok-surface) !important; color: var(--ok-text) !important; font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
.an-ok .dt-buttons .btn:hover, .an-ok .dt-buttons .dt-button:hover { background: var(--ok-surface-2) !important; }
.an-ok .dataTables_wrapper .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin: 0 2px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
.an-ok .dataTables_wrapper .page-item.active .page-link { background: var(--ok-grad) !important; border-color: transparent !important; color: #fff !important; }

/* table = the mockup's columns; the rest are hidden here (still sorted / exported / emailed)
   and shown in the row's "⋯" menu. Client: 10 accepted, 12-19 backout..ratios.
   User: 6 parsed, 11 accepted, 13-19 feedback..ratios. */
.an-ok #tech-companies-1 th.an-ok-x, .an-ok #tech-companies-2 th.an-ok-x,
.an-ok #tech-companies-1 > tbody > tr > td:is(:nth-child(10), :nth-child(n+12):nth-child(-n+19)),
.an-ok #tech-companies-2 > tbody > tr > td:is(:nth-child(6), :nth-child(11), :nth-child(n+13):nth-child(-n+19)) { display: none !important; }
.an-ok #tech-companies-1, .an-ok #tech-companies-2 { width: 100% !important; }
.an-ok #tech-companies-1 > thead > tr > th, .an-ok #tech-companies-2 > thead > tr > th { white-space: nowrap; min-width: 0; }
.an-ok #tech-companies-1 > thead > tr > th:first-child, .an-ok #tech-companies-1 > tbody > tr > td:first-child,
.an-ok #tech-companies-2 > thead > tr > th:first-child, .an-ok #tech-companies-2 > tbody > tr > td:first-child { width: 36px; padding-right: 0; }
.an-ok .an-ok-more-col { width: 1%; text-align: right !important; }
.an-ok .an-ok-more { width: 36px; height: 28px; padding: 0; justify-content: center; letter-spacing: 1px; font-weight: 700; color: var(--ok-text-2); }
.an-ok .an-ok-more.is-open { border-color: var(--ok-blue); color: var(--ok-blue); }

/* the "⋯" menu (appended to <body>) */
.an-ok-more-menu { position: absolute; z-index: 1080; width: 290px; max-width: calc(100vw - 16px); padding: 8px; background: var(--ok-surface);
    border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: var(--ok-shadow-lg); font-family: var(--ok-font); font-size: var(--ok-fs); }
.an-ok-more-title { padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ok-line-3); font-weight: 700; color: var(--ok-text); }
.an-ok-more-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: var(--ok-r-sm); }
.an-ok-more-item:hover { background: var(--ok-surface-2); }
.an-ok-more-label { color: var(--ok-text-3); font-size: var(--ok-fs-sm); }
.an-ok-more-value { flex: 0 0 auto; text-align: right; color: var(--ok-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.an-ok-more-menu .an-ok-num { padding: 2px 8px; margin: -2px -8px; border: 0; border-radius: var(--ok-r-sm); background: transparent; color: var(--ok-text);
    font: inherit; font-weight: 600; cursor: pointer; }
.an-ok-more-menu button.an-ok-num:hover { background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
.an-ok-more-menu .an-ok-zero { color: var(--ok-text-5); }
.an-ok-more-menu .an-ok-ratio { min-width: 110px; font-size: 11px; color: var(--ok-text-4); font-weight: 500; }
.an-ok-more-menu .an-ok-ratio .ok-progress { height: 5px; margin-bottom: 4px; }


/* ---- 4k. HRMS dashboard  (modules/hrms/dashboard/hrms-dashboard) ---------- */
/* Same layout as ATS > Dashboard (.atsd) plus a gradient headcount hero with an SLA ring,
   ranked bar lists and tinted stat cards. Bars / rows are drawn by hrms-dashboard.js. */
.hrd .ok-card-title i { margin-right: 4px; font-size: 14px; color: var(--ok-blue); vertical-align: -1px; }

/* filters bar */
.hrd .hrd-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 14px; margin-bottom: var(--ok-gap); }
.hrd .hrd-filter-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1 1 520px; justify-content: flex-end; }
.hrd .hrd-select { width: 190px; }
.hrd .hrd-search { width: 220px; }
.hrd .hrd-filters .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.hrd .hrd-filters .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); font-size: var(--ok-fs); }
.hrd .hrd-filters .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.hrd .hrd-filters .select2-container--open .select2-selection { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
@media (max-width: 767.98px) {
    .hrd .hrd-filter-fields { justify-content: flex-start; }
    .hrd .hrd-select, .hrd .hrd-search { width: 100%; }
}

/* metric guide */
.hrd .hrd-guide { margin-bottom: var(--ok-gap); }
.hrd .hrd-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
@media (max-width: 991.98px) { .hrd .hrd-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hrd .hrd-guide-grid b { display: block; font-size: var(--ok-fs); color: var(--ok-text); }
.hrd .hrd-guide-grid p { margin: 2px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }

/* KPI grid: hero (2 x 2) + six stat cards */
.hrd .hrd-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ok-gap); }
.hrd .hrd-hero { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1199.98px) {
    .hrd .hrd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hrd .hrd-hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767.98px) { .hrd .hrd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .hrd .hrd-kpis { grid-template-columns: minmax(0, 1fr); } }

.hrd .hrd-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px;
    border-radius: 20px; color: #fff; background: linear-gradient(135deg, #007aff 0%, #5e5ce6 55%, #af52de 100%);
    box-shadow: 0 14px 34px rgba(88, 86, 214, .30); }
.hrd .hrd-hero::before, .hrd .hrd-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hrd .hrd-hero::before { width: 320px; height: 320px; right: -90px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); }
.hrd .hrd-hero::after { width: 240px; height: 240px; left: -80px; bottom: -140px; background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%); }
.hrd .hrd-hero > * { position: relative; }
.hrd .hrd-hero-label { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hrd .hrd-hero-value { margin: 6px 0 2px; font-family: var(--ok-font-display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hrd .hrd-hero-sub { font-size: var(--ok-fs-sm); color: rgba(255, 255, 255, .78); }
.hrd .hrd-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hrd .hrd-hero-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: var(--ok-r-pill);
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-size: var(--ok-fs-sm); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hrd .hrd-hero-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.hrd .hrd-hero-ring { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.hrd .hrd-hero .ok-ring { --ok-size: 118px; background: conic-gradient(#fff calc(var(--ok-value) * 1%), rgba(255, 255, 255, .22) 0); transition: background .4s; }
.hrd .hrd-hero .ok-ring::before { inset: 10px; background: rgba(32, 24, 96, .28); }
.hrd .hrd-hero .ok-ring > span { font-family: var(--ok-font-display); font-size: 24px; color: #fff; }
.hrd .hrd-hero-ring-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: rgba(255, 255, 255, .85); line-height: 1.3; }
@media (max-width: 575.98px) {
    .hrd .hrd-hero { flex-direction: column; align-items: flex-start; }
    .hrd .hrd-hero-value { font-size: 44px; }
}

/* stat cards: soft tint of their colour + hover lift */
.hrd .hrd-kpis .ok-stat { background: linear-gradient(160deg, color-mix(in srgb, var(--ok-accent) 7%, var(--ok-surface)) 0%, var(--ok-surface) 60%);
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
.hrd .hrd-kpis .ok-stat:hover { transform: translateY(-2px); box-shadow: var(--ok-shadow-lg); }
.hrd .hrd-kpis .ok-stat-value small { font-size: 14px; font-weight: 600; color: var(--ok-text-3); }

/* ranked bar lists */
.hrd .hrd-bars-card { display: flex; flex-direction: column; }
.hrd .hrd-bars { --hrd-fill: linear-gradient(90deg, #5ac8fa, #007aff); display: flex; flex-direction: column; gap: 14px; }
.hrd .hrd-bars--blue   { --hrd-fill: linear-gradient(90deg, #5ac8fa, #007aff); }
.hrd .hrd-bars--green  { --hrd-fill: linear-gradient(90deg, #30d5c8, #34c759); }
.hrd .hrd-bars--purple { --hrd-fill: linear-gradient(90deg, #5e5ce6, #af52de); }
.hrd .hrd-bars-all { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.hrd .hrd-bar { display: flex; align-items: center; gap: 12px; }
.hrd .hrd-bar--orange { --hrd-fill: linear-gradient(90deg, #ffcc00, #ff9500); }
.hrd .hrd-bar--pink   { --hrd-fill: linear-gradient(90deg, #ff6fa0, #ff2d55); }
.hrd .hrd-bar--red    { --hrd-fill: linear-gradient(90deg, #ff8a80, #ff3b30); }
.hrd .hrd-bar-rank { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ok-fill); color: var(--ok-text-3); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hrd .hrd-bar:first-child .hrd-bar-rank { background: var(--hrd-fill); color: #fff; }
.hrd .hrd-bar-body { flex: 1 1 auto; min-width: 0; }
.hrd .hrd-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hrd .hrd-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }
.hrd .hrd-bar-value { flex: 0 0 auto; font-size: var(--ok-fs); font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.hrd .hrd-bar-track { height: 8px; border-radius: var(--ok-r-pill); background: var(--ok-fill); overflow: hidden; }
.hrd .hrd-bar-fill { height: 100%; border-radius: inherit; background: var(--hrd-fill); transition: width .5s var(--ok-ease); }
.hrd .hrd-empty { padding: 26px 10px; text-align: center; color: var(--ok-text-4); font-size: var(--ok-fs); }
.hrd .hrd-empty > i { display: block; margin-bottom: 4px; font-size: 24px; color: var(--ok-text-5); }

/* tables */
.hrd .hrd-table-head { padding: 18px 20px 4px; margin-bottom: 8px; }
.hrd .hrd-table-sub { display: block; margin-top: 3px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.hrd .hrd-table td.hrd-empty { padding: 30px 16px; }
.hrd .hrd-table .hrd-up { color: #248a3d; font-weight: 600; }
.hrd .hrd-table .hrd-down { color: #d70015; font-weight: 600; }
.hrd .hrd-hc { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 10px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-weight: 700; font-variant-numeric: tabular-nums; }


/* ---- 4l. HR pages skin  (.pl-ok: Annual performance, Attrition) ------------
   One look for the HR modules that are built from the page-layout building blocks
   (.pl-head, .pl-toolbar, .an-card / .an-head / .an-body, .pl-stats, .pl-tabs, .pl-table,
   .pl-filter, .pl-side, modals). Those pages link ONLY this file (no slate-headers.css,
   dashboard-panels.css or page-layout.css) and put "ok-page pl-ok" on the page wrapper.
   Page-only rules follow in 4l-a .. 4l-d, scoped by the page id. */

/* page head: .pl-head becomes the ATS page head (eyebrow + big title + subtitle | toolbar) */
.pl-ok .pl-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 20px; }
.pl-ok .pl-head h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-family: var(--ok-font-display); font-size: var(--ok-fs-title);
    font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ok-text); }
.pl-ok .pl-head h4 > .mdi:first-child { display: none; }
.pl-ok .pl-head h4 .badge { font-family: var(--ok-font); font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 5px 10px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
.pl-ok .pl-head h4 #btn_reset_filter, .pl-ok .pl-head h4 #btn_reset_filter i { font-size: 14px; color: var(--ok-blue) !important; }
.pl-ok .pl-head p:not(.ok-eyebrow) { margin: 4px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }
.pl-ok .pl-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* buttons in toolbars, panel heads, filters, modal footers -> .ok-btn look */
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer, .pl-report-links) .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text);
    font-family: var(--ok-font); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); transition: background var(--ok-t), filter var(--ok-t); }
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer, .pl-report-links) .btn i { margin: 0 !important; color: var(--ok-text-3); }
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer, .pl-report-links) .btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer) :is(.btn-success, .btn-primary, .btn-info, .btn-danger, .btn-custom) {
    border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer) :is(.btn-success, .btn-primary, .btn-info, .btn-danger, .btn-custom) i { color: #fff; }
.pl-ok :is(.pl-toolbar, .an-head-actions, .pl-filter, .modal-footer) :is(.btn-success, .btn-primary, .btn-info, .btn-danger, .btn-custom):hover { background: var(--ok-grad); color: #fff; filter: brightness(1.06); }
.pl-ok .an-head-actions .btn { height: 32px; padding: 0 12px; font-size: var(--ok-fs-sm); }

/* period button group in a toolbar -> segmented control */
.pl-ok .pl-toolbar .btn-group { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
.pl-ok .pl-toolbar .btn-group > .btn { height: 28px; padding: 0 12px; border: 0; border-radius: var(--ok-r-sm) !important; background: transparent; box-shadow: none; color: var(--ok-text-4); margin: 0 !important; }
.pl-ok .pl-toolbar .btn-group > .btn:hover { background: transparent; color: var(--ok-text-2); }
.pl-ok .pl-toolbar .btn-group > .btn.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }

/* date range input */
.pl-ok .pl-range { position: relative; width: 250px; max-width: 100%; }
.pl-ok .pl-range > .mdi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--ok-text-4); pointer-events: none; }
.pl-ok .pl-range input { height: 36px; padding-left: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: #fff; color: var(--ok-text); cursor: pointer; font-size: var(--ok-fs); }

/* panels -> white 16px cards */
.pl-ok .an-card { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); margin-bottom: var(--ok-gap); }
.pl-ok .an-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 20px 12px; }
.pl-ok .an-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-ok .an-head-title > i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 17px; }
.pl-ok .an-head-title h5 { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.pl-ok .an-head-title h5 a { color: inherit; text-decoration: none; }
.pl-ok .an-head-sub { display: block; margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.pl-ok .an-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pl-ok .an-body { padding: 4px 20px 20px; }
.pl-ok .an-card > .card-body { padding: 16px 20px 20px; }
.pl-ok .an-card.pl-flush > .an-body { padding: 0; }

/* summary tiles -> stat cards with a coloured top edge and a tinted icon */
.pl-ok .pl-group-label { margin: 0 0 10px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.pl-ok .pl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pl-ok .pl-stats:last-child { margin-bottom: 0; }
.pl-ok .pl-stat { --pl-accent: var(--ok-blue); position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px;
    padding: 16px 16px 14px; text-align: left; text-decoration: none; color: inherit; font: inherit;
    background: linear-gradient(160deg, color-mix(in srgb, var(--pl-accent) 7%, var(--ok-surface)) 0%, var(--ok-surface) 65%);
    border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: var(--ok-shadow-xs); transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
.pl-ok .pl-stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pl-accent); }
.pl-ok .pl-stat:has(.text-primary)   { --pl-accent: var(--ok-blue); }
.pl-ok .pl-stat:has(.text-info)      { --pl-accent: var(--ok-teal); }
.pl-ok .pl-stat:has(.text-success)   { --pl-accent: var(--ok-green); }
.pl-ok .pl-stat:has(.text-warning)   { --pl-accent: var(--ok-orange); }
.pl-ok .pl-stat:has(.text-danger)    { --pl-accent: var(--ok-red); }
.pl-ok .pl-stat:has(.text-secondary) { --pl-accent: var(--ok-gray); }
.pl-ok .pl-stat:has(.text-purple)    { --pl-accent: var(--ok-purple); }
.pl-ok :is(button, a).pl-stat { cursor: pointer; }
.pl-ok :is(button, a).pl-stat:hover { transform: translateY(-2px); box-shadow: var(--ok-shadow-lg); color: inherit; }
.pl-ok .pl-stat:focus-visible { outline: 2px solid var(--ok-blue); outline-offset: 2px; }
.pl-ok .pl-stat-icon { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 19px;
    background: color-mix(in srgb, var(--pl-accent) 14%, transparent) !important; color: var(--pl-accent) !important; }
.pl-ok .pl-stat-body { display: flex; flex-direction: column-reverse; min-width: 0; }
.pl-ok .pl-stat-count { font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.pl-ok .pl-stat-label { margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-text-4); line-height: 1.3; }

/* tabs -> segmented control */
.pl-ok .pl-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0 0 14px; border: 1px solid #dcdce0 !important; border-radius: var(--ok-r);
    background: var(--ok-fill) !important; box-shadow: none; }
.pl-ok .pl-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0 !important; border-radius: var(--ok-r-sm) !important;
    background: transparent !important; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none; }
.pl-ok .pl-tabs .nav-link:hover { color: var(--ok-text-2); }
.pl-ok .pl-tabs .nav-link.active { background: var(--ok-surface) !important; color: var(--ok-text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
.pl-ok .pl-tabs .nav-link i { font-size: 15px; color: inherit; }
.pl-ok .pl-tabs .nav-link .badge { min-width: 22px; border-radius: var(--ok-r-pill); background: rgba(142, 142, 147, .16) !important; color: var(--ok-text-3) !important; border: 0; }
.pl-ok .pl-tabs .nav-link.active .badge { background: rgba(0, 122, 255, .12) !important; color: var(--ok-blue) !important; }
.pl-ok .tab-content { padding: 0; }

/* tables: light headers, soft rows (also beats slate-headers.css if another page left it loaded) */
.pl-ok .table-responsive.pl-boxed, .pl-ok .pl-dt-scroll { border: 1px solid var(--ok-line-2); border-radius: 12px; }
.pl-ok .pl-dt-scroll { max-height: 62vh; overflow: auto; }
.pl-ok .pl-table { margin-bottom: 0 !important; font-size: var(--ok-fs); color: var(--ok-text-2); }
.pl-ok .pl-table > thead > tr > th, .pl-ok .pl-table > tr:first-child > th,
.pl-ok .modal .table > thead > tr > th {
    padding: 12px 14px 10px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.pl-ok .pl-dt-scroll .pl-table thead th { position: sticky; top: 0; z-index: 2; }
.pl-ok .pl-table > tbody > tr > td { padding: 12px 14px; vertical-align: middle; border-color: var(--ok-line-3); background: transparent; }
.pl-ok .pl-table.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; background: transparent; }
.pl-ok .pl-table > tbody > tr:hover > td { background: var(--ok-surface-2); }
.pl-ok .pl-table > tbody > tr:has(> td > input[type=checkbox]:checked) > td { background: rgba(0, 122, 255, .05); }
.pl-ok .pl-table .dataTables_empty, .pl-ok .pl-table td.pl-empty { padding: 32px 12px; color: var(--ok-text-4); text-align: center; }
.pl-ok .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
.pl-ok table.dataTable > thead .sorting::before, .pl-ok table.dataTable > thead .sorting::after,
.pl-ok table.dataTable > thead .sorting_asc::before, .pl-ok table.dataTable > thead .sorting_asc::after,
.pl-ok table.dataTable > thead .sorting_desc::before, .pl-ok table.dataTable > thead .sorting_desc::after { color: var(--ok-text-4) !important; }

/* row buttons -> soft tinted pills; badges -> status pills */
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close) { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 0;
    border-radius: var(--ok-r-pill); font-size: 12px; font-weight: 600; line-height: 1.3; box-shadow: none; background: rgba(142, 142, 147, .14); color: var(--ok-text-2); }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-success, .btn-log)  { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-info, .btn-blue)    { background: rgba(90, 200, 250, .18) !important; color: #0071a4 !important; }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-primary, .btn-custom) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn-warning { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-danger, .btn-pink) { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):hover { filter: brightness(.95); }
.pl-ok :is(.pl-table, .modal .table) .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 0; border-radius: var(--ok-r-pill);
    font-size: 11px; font-weight: 600; box-shadow: none; background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
.pl-ok :is(.pl-table, .modal .table) .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-success, .badge-success, .badge-soft-success, .bg-soft-success) { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-danger, .badge-danger, .badge-soft-danger, .bg-soft-danger, .bg-pink, .badge-pink) { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-warning, .badge-warning, .badge-soft-warning, .bg-soft-warning) { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-info, .badge-info, .badge-soft-info, .bg-soft-info) { background: rgba(90, 200, 250, .18) !important; color: #0071a4 !important; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-primary, .bg-blue, .badge-primary, .badge-soft-primary) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }

/* row "Action" dropdowns */
.pl-ok .pl-table .dropdown-toggle { padding: 5px 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text);
    font-weight: 600; box-shadow: var(--ok-shadow-xs); }
.pl-ok .pl-table .dropdown-toggle.show, .pl-ok .pl-table .dropdown-toggle:hover { border-color: transparent; background: var(--ok-grad); color: #fff; }
.pl-ok .pl-table .dropdown-menu { padding: 6px; border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
.pl-ok .pl-table .dropdown-menu .dropdown-item { border-radius: var(--ok-r-sm); font-size: var(--ok-fs); color: var(--ok-text); }
.pl-ok .pl-table .dropdown-menu .dropdown-item:hover { background: var(--ok-fill-2); color: var(--ok-text); }

/* DataTables controls + the page's own pager */
.pl-ok .dataTables_wrapper > .row { align-items: center; row-gap: 8px; }
.pl-ok .dataTables_wrapper > .row:first-child { margin-bottom: 10px; }
.pl-ok .dataTables_wrapper > .row:last-child { margin-top: 10px; }
.pl-ok .dataTables_wrapper .dataTables_filter input, .pl-ok .dataTables_wrapper .dataTables_length select { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
.pl-ok .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
.pl-ok .dataTables_wrapper .dt-buttons { display: inline-flex; gap: 6px; }
.pl-ok .dataTables_wrapper .dt-buttons .btn { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
.pl-ok .dataTables_wrapper .dt-buttons .btn:hover { background: var(--ok-surface-2); }
.pl-ok .dataTables_wrapper .dataTables_info { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.pl-ok :is(.dataTables_wrapper, nav) .pagination { gap: 4px; margin: 0; justify-content: flex-end; }
.pl-ok :is(.dataTables_wrapper, nav) .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
.pl-ok :is(.dataTables_wrapper, nav) .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
.pl-ok :is(.dataTables_wrapper, nav) .page-item.disabled .page-link { color: var(--ok-text-5); }

/* forms: filter rows, side panel, modals */
.pl-ok :is(.pl-filter, .modal) :is(.form-label, .col-form-label) { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
.pl-ok :is(.pl-filter, .modal) :is(.form-control, .form-select):not(textarea):not(.form-control-sm) { min-height: 36px; }
.pl-ok :is(.pl-filter, .modal) :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
.pl-ok :is(.pl-filter, .modal) :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.pl-ok :is(.pl-filter, .modal) .input-group-text { border-color: var(--ok-line); background: var(--ok-surface-2); color: var(--ok-text-4); }
.pl-ok :is(.pl-filter, .modal, .pl-toolbar) .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.pl-ok :is(.pl-filter, .modal, .pl-toolbar) .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
.pl-ok :is(.pl-filter, .modal, .pl-toolbar) .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.pl-ok :is(.pl-filter, .modal) .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.pl-ok :is(.pl-filter, .modal) .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
.pl-ok :is(.pl-filter, .modal) .select2-container--focus .select2-selection,
.pl-ok :is(.pl-filter, .modal) .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }

/* modals: light header, 18px corners, soft footer */
.pl-ok .modal-content { border: 0; box-shadow: var(--ok-shadow-lg); }
.pl-ok .modal:not(.modal-fullscreen) .modal-content { border-radius: 18px; overflow: hidden; }
.pl-ok .modal-header { align-items: center; gap: 8px; padding: 16px 22px !important; background: var(--ok-surface) !important; border-bottom: 1px solid var(--ok-line-2) !important;
    color: var(--ok-text) !important; }
.pl-ok .modal-header .modal-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font-family: var(--ok-font-display); font-size: 18px; font-weight: 700;
    color: var(--ok-text) !important; text-align: left !important; }
.pl-ok .modal-header .modal-title :is(i, .mdi) { color: var(--ok-blue) !important; }
.pl-ok .modal-header :is(.btn-close, .bootbox-close-button) { margin-left: auto; margin-top: 0 !important; filter: none; opacity: .5; }
.pl-ok .modal-header :is(.btn-close, .bootbox-close-button):hover { opacity: .9; }
.pl-ok .modal-body { color: var(--ok-text-2); }
.pl-ok .modal-footer { padding: 12px 22px; background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); }
.pl-ok .modal .table-responsive { border: 1px solid var(--ok-line-2); border-radius: 12px; }
.pl-ok .modal-body .btn-primary { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: none; }

/* filter side panel from the right */
.pl-ok .pl-side .modal-dialog { position: fixed; top: 0; right: 0; margin: 0; width: 400px; max-width: 100%; height: 100%; transform: translateX(100%); transition: transform .25s var(--ok-ease); }
.pl-ok .pl-side.show .modal-dialog { transform: none; }
.pl-ok .pl-side .modal-content { height: 100%; border-radius: 22px 0 0 22px !important; }
.pl-ok .pl-side .modal-body { overflow-y: auto; padding: 18px 22px; }
.pl-ok .pl-side .modal-footer { justify-content: space-between; }

@media (max-width: 767.98px) {
    .pl-ok .pl-toolbar { width: 100%; margin-left: 0; }
    .pl-ok .pl-range { width: 100%; }
    .pl-ok .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 4l-a. Annual performance > Dashboard  (modules/annual/annual-list) ---- */
#annual_dashboard_page .prefilled-select { background-color: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-2); }
#annual_dashboard_page .section-title { margin-top: 20px; padding: 8px 12px; border-left: 3px solid var(--ok-blue); border-radius: var(--ok-r-sm);
    background: rgba(0, 122, 255, .06); font-weight: 700; color: var(--ok-text); }
#annual_dashboard_page .action-disabled { pointer-events: auto; opacity: .55; cursor: not-allowed; }
#annual_dashboard_page .btn-xs { padding: .2rem .45rem; font-size: .75rem; line-height: 1.1; }

/* ---- 4l-b. Annual performance > Reviews + Template  (annual-feedback-list / -template) */
:is(#annual_feedback_list_page, #annual_feedback_template_page) #viewTemplateModal .card-header { background: rgba(0, 122, 255, .06); color: var(--ok-text); font-weight: 600;
    border-bottom: 1px solid var(--ok-line-2); }
:is(#annual_feedback_list_page, #annual_feedback_template_page) #viewTemplateModal .field-line { margin-bottom: 6px; padding: 8px 12px; border-left: 3px solid var(--ok-blue);
    border-radius: var(--ok-r-sm); background: var(--ok-surface-2); font-size: var(--ok-fs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#annual_feedback_list_page, #annual_feedback_template_page) .field-type-badge { margin: 0 4px; padding: 2px 8px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 11px; font-weight: 600; }
:is(#annual_feedback_list_page, #annual_feedback_template_page) .field-options { color: var(--ok-text-3); font-weight: 500; }
:is(#annual_feedback_list_page, #annual_feedback_template_page) #viewTemplateModal .modal-dialog { max-height: 70vh; }
:is(#annual_feedback_list_page, #annual_feedback_template_page) #viewTemplateModal .modal-body { max-height: 60vh; overflow-y: auto; }
#annual_feedback_template_page #sections_container .an-head-actions .btn { height: 28px; font-size: 12px; }
#annual_feedback_template_page #template_builder .pl-group-label { margin: 0; }
#annual_feedback_template_page #sections_container .an-card { box-shadow: var(--ok-shadow-xs); }

/* ---- 4l-c. Attrition > Listing  (modules/attrition/list) ------------------- */
#attrition_list_page :is(.disabled-link, a.disabled) { pointer-events: none; opacity: .5; cursor: not-allowed; }
#attrition_list_page .fixed-width-btn { width: 120px; }
#attrition_list_page #questionsAccordion .accordion-item { margin-bottom: 6px; border: 1px solid var(--ok-line-2); border-radius: 12px; overflow: hidden; }
#attrition_list_page #questionsAccordion .accordion-button { padding: 8px 12px; font-size: var(--ok-fs); line-height: 1.2; }
#attrition_list_page #questionsAccordion .accordion-body { padding: 10px 14px; font-size: var(--ok-fs-sm); }
#attrition_list_page #questions_preview .modal-dialog { max-width: 100% !important; margin: 0; height: auto; max-height: none; }
#attrition_list_page #questions_preview .modal-content { width: 100%; height: auto; border-radius: 0 !important; display: block; }
#attrition_list_page #questions_preview .modal-body { max-height: none; overflow: visible; padding: 12px 16px; }
#attrition_list_page .readonlycss { background-color: var(--ok-surface-2) !important; border: 1px solid var(--ok-line); color: var(--ok-text-2); }
#attrition_list_page .prefilled-select { background-color: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-2); }
#attrition_list_page .attrition-actions { display: flex; flex-wrap: wrap; gap: 4px; }
#attrition_list_page .attrition-actions a { padding: 2px 6px; font-size: 11px; }
#attrition_list_page .attrition-table tbody td { vertical-align: middle; text-align: center; }
#attrition_list_page .selected { background-color: rgba(0, 122, 255, .08); }
#attrition_list_page #pagin { margin-right: 20px !important; }

/* ---- 4l-d. Attrition > Reports  (modules/attrition/attrition-report) ------- */
#attrition_report_page :is(#tbl_better_offer, #tbl_awol_call_back) { table-layout: auto !important; width: 100% !important; word-break: break-word; }
#attrition_report_page .tbl_css tbody td { vertical-align: middle; text-align: center; }
#attrition_report_page .select2-container { width: 100% !important; }
#attrition_report_page #attritionChart { height: 300px !important; max-height: 300px; }
#attrition_report_page .pl-period { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 10px 14px;
    border: 1px solid rgba(0, 122, 255, .18); border-radius: 12px; background: rgba(0, 122, 255, .05); font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); }
#attrition_report_page .pl-period i { color: var(--ok-blue); }
#attrition_report_page .pl-chart-box { padding: 16px; border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface); }
#attrition_report_page .pl-report-links { display: flex; flex-wrap: wrap; gap: 8px; }


/* =============================================================================
   5. GLOBAL READABILITY  (every page - this file is linked once in index.html)
   The UBold defaults are pale on white (body #6c757d, muted #98a6ad). These darken
   the base greys app-wide, on legacy pages too, without changing their layout.
   Remove this section to go back to the UBold greys.
   ============================================================================= */
:root { --bs-body-color: #3d4651; --bs-secondary-color: #5b6670; --bs-table-color: #343a40; }
body { color: #3d4651; }
.text-muted { color: #626c76 !important; }
.form-label, .col-form-label { color: #343a40; }
.form-control, .form-select { color: #2c2c2e; }
.form-control::placeholder { color: #8a939c; opacity: 1; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #2c2c2e; }
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-search--inline .select2-search__field::placeholder { color: #8a939c; }
.table { --bs-table-color: #343a40; color: #343a40; }
.page-title-box .page-title { color: #1d1d1f; }
.card .header-title, .card-title { color: #2c2c2e; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { color: #5b6670; }

/* ---- 4l-e. HR > Approvals  (hiring, attendance, leaves, claims, overtime, payroll) ---
   All six use the .pl-ok skin above; these are their old page <style> blocks, now scoped. */
:is(#hiring_approvals_page, #attendance_approvals_page, #leave_approvals_page, #claims_approval_page, #overtime_approvals_page, #payroll_approval_page) .pl-head h4 .badge:empty { display: none; }
:is(#attendance_approvals_page, #overtime_approvals_page) :is(.btn.disabled, .btn:disabled) { pointer-events: none; opacity: .5; }
#attendance_approvals_page #tbl_attendance_approval_list tbody tr.row-selected > td,
#overtime_approvals_page #tbl_ot_approval_list tbody tr.row-selected > td { background-color: rgba(0, 122, 255, .06) !important; }

/* Hiring */
#hiring_approvals_page .selected { background-color: rgba(0, 122, 255, .08); }
#hiring_approvals_page .modal.modal-fullscreen .modal-dialog { width: 100vw; height: 100vh; margin: 0; padding: 0; max-width: none; }
#hiring_approvals_page .modal.modal-fullscreen .modal-content { height: 100vh; border-radius: 0; border: none; }
#hiring_approvals_page .modal.modal-fullscreen .modal-body { overflow-y: auto; }
#hiring_approvals_page input[type="text"].readonly { background-color: var(--ok-surface-2); }
#hiring_approvals_page #summary-div { float: right; }
#hiring_approvals_page .contract-modal { position: relative; width: 500px; height: 100px; white-space: nowrap; overflow-x: scroll; -webkit-overflow-scrolling: touch; }
#hiring_approvals_page .contract-modal div { display: inline-block; float: none; width: 24.5%; height: 90%; margin: 0 .25%; }
#hiring_approvals_page .doc-item { display: flex; align-items: center; justify-content: space-between; }
#hiring_approvals_page .doc-left { display: flex; align-items: center; gap: 10px; }
#hiring_approvals_page .doc-status { padding: 4px 10px; border-radius: var(--ok-r-pill); font-size: 12px; font-weight: 600; }
#hiring_approvals_page .doc-status.uploaded { background: rgba(52, 199, 89, .14); color: #248a3d; }
#hiring_approvals_page .doc-status.pending { background: rgba(255, 149, 0, .14); color: #c93400; }
#hiring_approvals_page tr.uploaded > td { background-color: rgba(52, 199, 89, .05); }
#hiring_approvals_page tr.pending > td { background-color: rgba(255, 149, 0, .05); }

/* Leaves: approval history timeline + detail view */
#leave_approvals_page .file-upload.alert-light { background: none !important; border: 0 !important; }
#leave_approvals_page .list-group-item .col-sm-12 .delete .mdi { display: none !important; }
#leave_approvals_page .table li { list-style: none; }
#leave_approvals_page .table > :not(caption) > * > * { border-bottom-width: 0; }
#leave_approvals_page .pl-table > tbody > tr > td { border-bottom: 1px solid var(--ok-line-3); }
#leave_approvals_page .leave-flow { position: relative; padding: 20px 20px 20px 54px; }
#leave_approvals_page .leave-flow::before { content: ""; position: absolute; left: 27px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, rgba(0, 122, 255, .35), rgba(175, 82, 222, .25)); }
#leave_approvals_page .flow-item { position: relative; margin-bottom: 26px; }
#leave_approvals_page .flow-icon { position: absolute; left: -45px; top: 4px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; border: 3px solid var(--ok-surface); color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
#leave_approvals_page .flow-content { max-width: 560px; padding: 14px 18px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: var(--ok-shadow-xs); }
#leave_approvals_page .flow-content h6 { margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--ok-text); }
#leave_approvals_page .flow-date { font-size: 12px; color: var(--ok-text-4); }
#leave_approvals_page .flow-user { margin-top: 8px; font-size: var(--ok-fs); color: var(--ok-text-3); }
#leave_approvals_page .history-remark { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--ok-blue); border-radius: var(--ok-r-sm);
    background: rgba(0, 122, 255, .05); font-size: var(--ok-fs); color: var(--ok-text-2); }
#leave_approvals_page .la-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; padding: 14px 16px;
    border: 1px solid var(--ok-line-2); border-radius: 14px; background: linear-gradient(135deg, rgba(0, 122, 255, .06), rgba(175, 82, 222, .06)); }
#leave_approvals_page .la-who h4 { margin: 0; font-size: 15px; color: var(--ok-text); }
#leave_approvals_page .la-who h4 b { font-weight: 700; }

/* Claims */
#claims_approval_page .datepicker-dropdown { z-index: 99999 !important; }
#claims_approval_page .pl-table tr.pl-total > td { background: rgba(0, 122, 255, .05) !important; font-weight: 700; color: var(--ok-text); }
#claims_approval_page .pl-claim-footer { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 16px; }

/* ---- 4l-f. Work Performance Assessment  (attendance/employee-tracker = Admin Reports and
   My Performance, attendance/wpa-settings) - old page <style> blocks, scoped and re-toned.
   The chart / legend layout itself stays in modules/attendance/wpa-ui.css (shared with users-track). */
#wpa_tracker_page :is(th, td.ename, td.date, td.tday) { white-space: nowrap; }
#wpa_tracker_page .activity-window-title { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wpa_tracker_page .activity-domain-url { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wpa_tracker_page .summary-row { cursor: pointer; }
#wpa_tracker_page .summary-row:hover > td { background-color: var(--ok-surface-2); }
#wpa_tracker_page .live-view-image-wrap { display: flex; align-items: center; justify-content: center; min-height: 420px; overflow: hidden;
    border-radius: 14px; background: #111827; }
#wpa_tracker_page .live-view-image-wrap img { max-width: 100%; max-height: 70vh; object-fit: contain; }
#wpa_tracker_page .live-view-empty { padding: 2rem; text-align: center; color: #d1d5db; }
#wpa_tracker_page .wpa-productive-ok   { color: #248a3d; font-weight: 700; }
#wpa_tracker_page .wpa-productive-warn { color: #c93400; font-weight: 700; }
#wpa_tracker_page .wpa-productive-low  { color: #d70015; font-weight: 700; }
#wpa_tracker_page .pl-table .progress { height: 6px; min-width: 80px; border-radius: var(--ok-r-pill); background: var(--ok-fill); }
#wpa_tracker_page .pl-table .progress-bar { border-radius: inherit; background: var(--ok-grad); }

/* chart toggles (period / group) -> segmented controls */
#wpa_tracker_page .wpa-chart-toolbar.btn-group { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
#wpa_tracker_page .wpa-chart-toolbar .btn { height: 28px; padding: 0 12px; margin: 0 !important; border: 0 !important; border-radius: var(--ok-r-sm) !important;
    background: transparent; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; box-shadow: none; }
#wpa_tracker_page .wpa-chart-toolbar .btn:hover { background: transparent; color: var(--ok-text-2); }
#wpa_tracker_page .wpa-chart-toolbar .btn.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }

/* activity distribution: chart beside a legend of soft rows */
#wpa_tracker_page .wpa-chart-wrap { gap: 28px; padding: 6px 0; }
#wpa_tracker_page .wpa-distribution-legend { display: flex; flex-direction: column; gap: 4px; }
#wpa_tracker_page .wpa-legend-item { align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--ok-r); color: var(--ok-text-2); font-size: var(--ok-fs); transition: background var(--ok-t); }
#wpa_tracker_page .wpa-legend-item:hover { background: var(--ok-surface-2); }
#wpa_tracker_page .wpa-legend-swatch { width: 12px; height: 12px; margin: 0; border-radius: 50%; }
#wpa_tracker_page .wpa-legend-item.is-hidden .wpa-legend-label { color: var(--ok-text-5); }
#wpa_tracker_page .wpa-distribution-hint { padding: 10px 14px; border-radius: 12px; background: var(--ok-surface-2); color: var(--ok-text-3) !important; }
@media (max-width: 767.98px) { #wpa_tracker_page .wpa-chart-wrap { flex-direction: column; align-items: center; } }

#wpa_tracker_page #lbl_sync_time { font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-3); }
#wpa_tracker_page #lbl_sync_time:empty { display: none; }
#wpa_tracker_page .load-more .btn { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-pill); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }

/* activity details modal */
#wpa_tracker_page #activityDetailsModal .wpa-activity-tabs { border-bottom: 0; margin-top: 4px; }
#wpa_tracker_page #activityDetailsModal .wpa-activity-tabs .nav-link.active { border-bottom: 0; margin-bottom: 0; }
#wpa_tracker_page #activityDetailsModal .tab-content { padding-top: 0; }
#wpa_tracker_page #activityDetailsModal #activityKpiRow { margin-bottom: 16px; }
#wpa_tracker_page #activityDetailsModal #activityKpiRow .pl-stat-count { margin: 0; font-size: 20px; }
#wpa_tracker_page #activityDetailsModal #activityDetailsTitle { font-size: 16px; font-weight: 700; color: var(--ok-text); }
#wpa_tracker_page #activityDetailsModal .modal-body { background: var(--ok-surface); }
#wpa_tracker_page #activityDetailsModal #btn_clear_activity_filter { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); font-weight: 600; }

/* settings */
#wpa_settings_page .pl-group-label { margin-top: 4px; }
#wpa_settings_page .wpa-settings-section + .wpa-settings-section { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ok-line-3); }
#wpa_settings_page .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#wpa_settings_page :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); color: var(--ok-text); }
#wpa_settings_page :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#wpa_settings_page .wpa-settings-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ok-line-3); }
#wpa_settings_page .wpa-settings-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#wpa_settings_page .wpa-settings-actions .btn i { color: var(--ok-text-3); }
#wpa_settings_page .wpa-settings-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#wpa_settings_page .wpa-settings-actions .btn-success i { color: #fff; }


/* ---- 4m. Attendance  (Dashboard, Clock in / out, Register, Unauthorized absence,
   E-Timesheet, Reports) - all on the .pl-ok skin (4l); their old <style> blocks, scoped. */

/* Dashboard (hrms/attendance/tracker) */
#attendance_tracker_page :is(#tbl_month, #tbl_month_rank) { width: 100% !important; }
#attendance_tracker_page .prefilled-select { background-color: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-2); }
#attendance_tracker_page .section-title { margin-top: 20px; padding: 8px 12px; border-left: 3px solid var(--ok-blue); border-radius: var(--ok-r-sm);
    background: rgba(0, 122, 255, .06); font-weight: 700; color: var(--ok-text); }
#attendance_tracker_page .pl-filter-actions { display: flex; gap: 6px; }

/* Clock in / out: big timer card */
#clock_in_page .ci-timer { padding: 18px 0 8px; text-align: center; }
#clock_in_page .ci-timer h2 { margin-bottom: 14px; font-family: var(--ok-font-display); font-size: 52px; font-weight: 700; letter-spacing: -.01em;
    color: var(--ok-text); font-variant-numeric: tabular-nums;
    background: var(--ok-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#clock_in_page .ci-timer .btn { min-width: 200px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: var(--ok-r-pill); background: var(--ok-grad); color: #fff; font-size: 15px; font-weight: 700; box-shadow: var(--ok-shadow-primary); }
#clock_in_page .ci-timer .btn:is(.btn-danger, .btn-warning) { background: linear-gradient(135deg, #ff9500, #ff3b30); box-shadow: 0 6px 18px rgba(255, 59, 48, .28); }
#clock_in_page .ci-timer .btn:hover { filter: brightness(1.06); color: #fff; }
#clock_in_page .pl-stat-count .badge { font-size: 12px; font-weight: 600; border-radius: var(--ok-r-pill); }

/* E-Timesheet */
#e_timesheet_page :is(th, td.ename) { white-space: nowrap; }
#e_timesheet_page .text-green { color: #248a3d; }
#e_timesheet_page .heading-color { color: #248a3d; }
#e_timesheet_page .green-card { border: 1px solid rgba(52, 199, 89, .45); border-radius: var(--ok-r-lg); box-shadow: 0 4px 14px rgba(52, 199, 89, .14);
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
#e_timesheet_page .green-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(52, 199, 89, .22); }
#e_timesheet_page .summary-box { padding: 16px; border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#e_timesheet_page .summary-box small { color: var(--ok-text-4); }
#e_timesheet_page .summary-box h5 { margin: 5px 0 0; font-weight: 700; color: var(--ok-text); }
#e_timesheet_page .table th { white-space: nowrap; }
#e_timesheet_page .table td { vertical-align: middle; }
#e_timesheet_page .badge-status { padding: 6px 12px; border-radius: var(--ok-r-pill); font-weight: 600; font-size: 12px; }
#e_timesheet_page .present { background: rgba(52, 199, 89, .14); color: #248a3d; }
#e_timesheet_page .leave { background: rgba(0, 122, 255, .10); color: var(--ok-blue); }
#e_timesheet_page .holiday { background: rgba(255, 149, 0, .14); color: #c93400; }
#e_timesheet_page .noentry { background: rgba(255, 59, 48, .12); color: #d70015; }

/* Register (hrms/attendance/monthly): the old page css, scoped as-is ... */

#monthly_register_page #attendance-register {
    width:100%;
}


#monthly_register_page #attendance-register .table-responsive {
    width:100%;
    overflow-x:auto;
    overflow-y:auto;
    max-height:70vh;
    border:1px solid #dee2e6;
}
#monthly_register_page .employee-row td {
    border-top:2px solid #dfe7ef !important;
}

#monthly_register_page .ot-row td {
    background:#fafbfd;
    border-top:none !important;
    border-bottom:2px solid #dfe7ef !important;
}


#monthly_register_page #tbl_monthly_register {
    width:100% !important;
    min-width:1600px;   
    border-collapse:separate;
    border-spacing:0;
    white-space:nowrap;
    font-size:13px;
}


#monthly_register_page #tbl_monthly_register thead th {
    position:sticky;
    top:0;
    background:#243447;
    color:#fff;
    text-align:center;
    vertical-align:middle;
    z-index:5;
    padding:8px;
}


#monthly_register_page #tbl_monthly_register td {
    text-align:center;
    vertical-align:middle;
    padding:6px;
}


#monthly_register_page #tbl_monthly_register .sticky-col {
    position:sticky;
    left:0;
    background:#fff;
    z-index:4;
    min-width:180px;
    max-width:180px;
}


#monthly_register_page #tbl_monthly_register .sticky-col2 {
    position:sticky;
    left:180px;
    background:#fff;
    z-index:4;
    min-width:150px;
    max-width:150px;
}


#monthly_register_page #tbl_monthly_register thead .sticky-col, #monthly_register_page #tbl_monthly_register thead .sticky-col2 {
    background:#243447;
    color:#fff;
    z-index:10;
}


#monthly_register_page #tbl_monthly_register tbody tr:hover td {
    background:#f5f9ff;
}

#monthly_register_page #tbl_monthly_register tbody tr:hover .sticky-col, #monthly_register_page #tbl_monthly_register tbody tr:hover .sticky-col2 {
    background:#eef5ff;
}


#monthly_register_page .badge-cell {
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:600;
    color:#fff;
}

#monthly_register_page .P {background:#28a745;}
#monthly_register_page .A {background:#dc3545;}
#monthly_register_page .L {background:#0d6efd;}
#monthly_register_page .HD {background:#fd7e14;}
#monthly_register_page .H {background:#6f42c1;}
#monthly_register_page .WO {background:#6c757d;}
#monthly_register_page .LT {
    background:#ffc107;
    color:#000;
}


#monthly_register_page .dataTables_wrapper {
    width:100%;
    overflow-x:auto;
}

#monthly_register_page #tbl_monthly_register tbody tr:nth-child(odd) {
    background:#fff;
}

#monthly_register_page #tbl_monthly_register tbody tr.employee-row {
    background:#f8fafc;
    font-weight:600;
}
#monthly_register_page .ot-row {
    background:#f8fff7;
    font-size:12px;
}

#monthly_register_page .ot-row td {
    padding:4px 6px !important;
}
#monthly_register_page .ot-chip {
    display:inline-block;
    background:#e8f5e9;
    color:#198754;
    border-radius:20px;
    padding:2px 8px;
    font-size:11px;
    font-weight:600;
}
#monthly_register_page .summary-cell {
    font-weight:600;
    text-align:center;
}
#monthly_register_page .attendance-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    border-top: 1px solid #ddd;
}
#monthly_register_page .summary-present {color:#198754;}
#monthly_register_page .summary-absent {color:#dc3545;}
#monthly_register_page .summary-leave {color:#0d6efd;}
#monthly_register_page .summary-holiday {color:#ff9800;}
#monthly_register_page .summary-weekoff {color:#6f42c1;}


@media (max-width:992px){

    #monthly_register_page .card-header h3 {
        font-size:18px;
    }

    #monthly_register_page .table-responsive {
        max-height:65vh;
    }

    #monthly_register_page #tbl_monthly_register {
        font-size:12px;
        min-width:1500px;
    }

    #monthly_register_page #tbl_monthly_register .sticky-col {
        min-width:140px;
        max-width:140px;
    }

    #monthly_register_page #tbl_monthly_register .sticky-col2 {
        left:140px;
        min-width:120px;
        max-width:120px;
    }

    #monthly_register_page .badge-cell {
        width:24px;
        height:24px;
        font-size:11px;
    }
}

@media (max-width:576px){

    #monthly_register_page .card-header h3 {
        font-size:16px;
    }

    #monthly_register_page .badge-cell {
        width:22px;
        height:22px;
        font-size:10px;
    }

    #monthly_register_page #tbl_monthly_register {
        font-size:11px;
    }

    #monthly_register_page #tbl_monthly_register .sticky-col {
        min-width:120px;
        max-width:120px;
        background-color: #243447;
    }

    #monthly_register_page #tbl_monthly_register .sticky-col2 {
        left:120px;
        min-width:100px;
        max-width:100px;
        background-color: #243447;
    }
}
#monthly_register_page .ot-normal {
    background:#0d6efd;
    color:#fff;
    border-radius:4px;
    padding:2px 5px;
    font-size:11px;
}

#monthly_register_page .ot-rest {
    background:#198754;
    color:#fff;
    border-radius:4px;
    padding:2px 5px;
    font-size:11px;
}

#monthly_register_page .ot-off {
    background:#fd7e14;
    color:#fff;
    border-radius:4px;
    padding:2px 5px;
    font-size:11px;
}

#monthly_register_page .ot-public {
    background:#6f42c1;
    color:#fff;
    border-radius:4px;
    padding:2px 5px;
    font-size:11px;
}
#monthly_register_page .ot-hours {
    margin-top:2px;
    font-size:10px;
    color:#0d6efd;
    font-weight:600;
    white-space:nowrap;
}
#monthly_register_page .ot-row td {
    background:#f8fbff;
    font-size:12px;
}

#monthly_register_page .ot-label {
    font-weight:600;
    color:#0d6efd;
}

#monthly_register_page .ot-value {
    color:#198754;
    font-weight:600;
    text-align:center;
}

#monthly_register_page .ot-empty {
    color:#ccc;
}
#monthly_register_page #tbl_monthly_register td:first-child, #monthly_register_page #tbl_monthly_register th:first-child {
    background:#ffffff;
    border-right:2px solid #dee2e6;
}

#monthly_register_page #tbl_monthly_register td:nth-child(2), #monthly_register_page #tbl_monthly_register th:nth-child(2) {
    background:#ffffff;
    border-right:2px solid #dee2e6;
}
 #monthly_register_page .dtfc-fixed-start, #monthly_register_page .dtfc-fixed-left {
    background:#fff !important;
}

#monthly_register_page .dtfc-fixed-start thead th, #monthly_register_page .dtfc-fixed-left thead th {
    background:#198754 !important;
    color:#fff !important;
}
#monthly_register_page .dtfc-fixed-start {
    z-index:1055 !important;
}

#monthly_register_page .dtfc-fixed-start thead th {
    z-index:1060 !important;
}
#monthly_register_page #tbl_monthly_register thead th {
    white-space:nowrap;
    vertical-align:middle;
}

#monthly_register_page #tbl_monthly_register th:nth-child(1) {
    min-width:220px;
}

#monthly_register_page #tbl_monthly_register th:nth-child(2) {
    min-width:220px;
}
#monthly_register_page .employee-name {
    font-weight:700;
    color:#0d6efd;
}

#monthly_register_page .department {
    color:#6c757d;
    font-size:12px;
}
#monthly_register_page .work-hours {
    font-weight:700;
    color:#0d6efd;
}
#monthly_register_page .total-ot {
    background:#d1e7dd;
    color:#198754;
    font-weight:700;
    border-radius:4px;
}

/* ... then the theme on top: light sticky headers, theme status dots, soft rows */
#monthly_register_page .mr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#monthly_register_page .mr-legend .badge { margin-right: 4px; }
#monthly_register_page #attendance-register .table-responsive { border: 1px solid var(--ok-line-2); border-radius: 12px; }
#monthly_register_page .attendance-footer { border-top: 0; padding: 12px 0 0; background: transparent; }
#monthly_register_page #tbl_monthly_register { font-size: var(--ok-fs); color: var(--ok-text-2); }
#monthly_register_page #tbl_monthly_register thead th,
#monthly_register_page #tbl_monthly_register thead :is(.sticky-col, .sticky-col2),
#monthly_register_page .dtfc-fixed-start thead th, #monthly_register_page .dtfc-fixed-left thead th {
    background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#monthly_register_page #tbl_monthly_register td { border-color: var(--ok-line-3); }
#monthly_register_page #tbl_monthly_register :is(td, th):is(:first-child, :nth-child(2)) { border-right: 1px solid var(--ok-line-2); }
#monthly_register_page #tbl_monthly_register tbody tr.employee-row > td { background: var(--ok-surface); border-top: 1px solid var(--ok-line-2) !important; }
#monthly_register_page #tbl_monthly_register tbody tr:hover > td,
#monthly_register_page #tbl_monthly_register tbody tr:hover :is(.sticky-col, .sticky-col2) { background: rgba(0, 122, 255, .04); }
#monthly_register_page .ot-row > td { background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line-2) !important; }
#monthly_register_page .badge-cell { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#monthly_register_page .P  { background: var(--ok-green); }
#monthly_register_page .A  { background: var(--ok-red); }
#monthly_register_page .L  { background: var(--ok-blue); }
#monthly_register_page .HD { background: var(--ok-orange); }
#monthly_register_page .H  { background: var(--ok-purple); }
#monthly_register_page .WO { background: var(--ok-gray); }
#monthly_register_page .LT { background: #ffcc00; color: #3a2a00; }
#monthly_register_page .ot-chip { background: rgba(52, 199, 89, .14); color: #248a3d; border-radius: var(--ok-r-pill); }
#monthly_register_page .employee-name { color: var(--ok-text); }
#monthly_register_page .department { color: var(--ok-text-4); }
#monthly_register_page :is(.work-hours, .ot-hours, .ot-label) { color: var(--ok-blue); }
#monthly_register_page .total-ot { background: rgba(52, 199, 89, .14); color: #248a3d; border-radius: var(--ok-r-sm); }
#monthly_register_page .summary-present { color: #248a3d; }
#monthly_register_page .summary-absent { color: #d70015; }
#monthly_register_page .summary-leave { color: var(--ok-blue); }
#monthly_register_page .summary-holiday { color: #c93400; }
#monthly_register_page .summary-weekoff { color: #8944ab; }
@media (max-width: 576px) {
    #monthly_register_page #tbl_monthly_register :is(.sticky-col, .sticky-col2) { background-color: var(--ok-surface) !important; }
}

/* Reports (hrms/attendance/reports) */
#attendance_reports_page .ar-month { width: 180px; }
#attendance_reports_page .ar-employee { width: 240px; }
#attendance_reports_page #lbl_sync_time { margin: 0; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-3); }
#attendance_reports_page #lbl_sync_time:empty { display: none; }
#attendance_reports_page .load-more .btn { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-pill); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#attendance_reports_page #tbl_list > tbody > tr { cursor: pointer; }
@media (max-width: 767.98px) { #attendance_reports_page :is(.ar-month, .ar-employee) { width: 100%; } }


/* ---- 4n. Benefits  (modules/benefits/listing) - .pl-ok skin + its old page rules, scoped */
#benefits_page #additional_div2 :is(td, th) { text-align: center; }
#benefits_page :is(.disabled-link, a.disabled) { pointer-events: none; opacity: .5; cursor: not-allowed; }
#benefits_page .readonlycss { background-color: var(--ok-surface-2) !important; border: 1px solid var(--ok-line); color: var(--ok-text-2); }
#benefits_page .prefilled-select { background-color: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-2); }
#benefits_page .attrition-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
#benefits_page .pl-table :is(th, td) { text-align: center; }
#benefits_page .pl-table thead tr + tr th { background: var(--ok-fill) !important; }
#benefits_page .pl-form label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#benefits_page .pl-form :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); color: var(--ok-text); }
#benefits_page .pl-form :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#benefits_page .pl-section-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#benefits_page .pl-section-title i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 15px; }
#benefits_page .pl-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ok-line-3); }
#benefits_page .pl-form-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#benefits_page .pl-form-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#benefits_page .pl-add-row { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#benefits_page .pl-add-row i { color: var(--ok-blue); }
#benefits_page .pl-add-row:hover { background: var(--ok-surface-2); color: var(--ok-text); }


/* ---- 4o. Background Verification  (modules/hrms/bgv/background-verification) ---------
   Keeps the page's own .bv-* structure (cards, tabs, forms); re-toned to the theme here.
   Scope: #bgv_page.bv-ok (the wrapper also holds the email modal). */
#bgv_page { --bv-accent: var(--ok-blue); }
#bgv_page .card { border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); box-shadow: var(--ok-shadow); background: var(--ok-surface); margin-bottom: var(--ok-gap); }
#bgv_page .card > .card-body { padding: 18px 20px 20px; }

/* page head buttons */
#bgv_page .bv-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#bgv_page .bv-head-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#bgv_page .bv-head-actions .btn i { margin: 0 !important; color: var(--ok-text-3); }
#bgv_page .bv-head-actions .btn-danger { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#bgv_page .bv-head-actions .btn-danger i { color: #fff; }
#bgv_page .bv-head-actions .btn:hover { filter: brightness(1.04); }

/* card heads, icon tiles */
#bgv_page .bv-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--ok-line-3); }
#bgv_page .bv-card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#bgv_page .bv-card-title > i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 16px; }
#bgv_page .bv-icon-tile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; font-size: 18px;
    background: color-mix(in srgb, var(--bv-accent) 14%, transparent); color: var(--bv-accent); }

/* filters */
#bgv_page .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#bgv_page .form-label > i { margin-right: 3px; opacity: .7; }
#bgv_page :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
#bgv_page :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#bgv_page #bgv_month_picker { background: #fff; cursor: pointer; }
#bgv_page .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#bgv_page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
#bgv_page .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#bgv_page .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#bgv_page .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important; border-radius: var(--ok-r-pill) !important; }
#bgv_page .bv-filter-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; height: 100%; }
#bgv_page .bv-filter-actions .btn { width: 40px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text-2); box-shadow: var(--ok-shadow-xs); }
#bgv_page .bv-filter-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }

/* summary tiles -> stat cards with a coloured top edge + soft tint */
#bgv_page [data-tone="total"]    { --bv-accent: var(--ok-blue); }
#bgv_page [data-tone="share"]    { --bv-accent: var(--ok-teal); }
#bgv_page [data-tone="progress"] { --bv-accent: var(--ok-orange); }
#bgv_page [data-tone="received"] { --bv-accent: var(--ok-green); }
#bgv_page .bv-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 18px 16px; border-top: 0 !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--bv-accent) 7%, var(--ok-surface)) 0%, var(--ok-surface) 65%);
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
#bgv_page .bv-stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bv-accent); }
#bgv_page .bv-stat:hover { transform: translateY(-2px); box-shadow: var(--ok-shadow-lg); }
#bgv_page .bv-stat-top { display: flex; align-items: center; gap: 10px; }
#bgv_page .bv-stat-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-text-4); }
#bgv_page .bv-stat-value { font-family: var(--ok-font-display); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--ok-text); font-variant-numeric: tabular-nums; }

/* tabs -> segmented control */
#bgv_page .bv-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 16px 20px 0; padding: 3px; border: 1px solid #dcdce0 !important; border-radius: var(--ok-r); background: var(--ok-fill); }
#bgv_page .bv-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0 !important; border-radius: var(--ok-r-sm) !important;
    background: transparent !important; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; }
#bgv_page .bv-tabs .nav-link:hover { color: var(--ok-text-2); }
#bgv_page .bv-tabs .nav-link.active { background: var(--ok-surface) !important; color: var(--ok-text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
#bgv_page .bv-tabs .nav-link .badge { min-width: 22px; border-radius: var(--ok-r-pill); background: rgba(142, 142, 147, .16) !important; color: var(--ok-text-3) !important; }
#bgv_page .bv-tabs .nav-link.active .badge { background: rgba(0, 122, 255, .12) !important; color: var(--ok-blue) !important; }

/* tables */
#bgv_page .table-responsive { border: 1px solid var(--ok-line-2); border-radius: 12px; }
#bgv_page .table { margin: 0; font-size: var(--ok-fs); color: var(--ok-text-2); }
#bgv_page .table > thead > tr > th { padding: 12px 14px 10px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important;
    border-bottom: 1px solid var(--ok-line-2) !important; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
#bgv_page .table > tbody > tr > td { padding: 12px 14px; vertical-align: middle; border-color: var(--ok-line-3); }
#bgv_page .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: var(--ok-surface-2); }
#bgv_page .table .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--ok-r-pill); font-size: 11px; font-weight: 600;
    background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
#bgv_page .table .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#bgv_page .table .badge:is(.bg-success, .bg-soft-success) { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
#bgv_page .table .badge:is(.bg-danger, .bg-soft-danger) { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
#bgv_page .table .badge:is(.bg-warning, .bg-soft-warning) { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
#bgv_page .table .badge:is(.bg-info, .bg-soft-info, .bg-primary, .bg-blue) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
/* row actions: soft round buttons */
#bgv_page .table td .btn:is([class*="btn-soft-"], .btn-xs) { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px;
    border: 0; border-radius: var(--ok-r-sm); box-shadow: none; }
#bgv_page .table td .btn-soft-success { background: rgba(52, 199, 89, .14); color: #248a3d; }
#bgv_page .table td .btn-soft-warning { background: rgba(255, 149, 0, .14); color: #c93400; }
#bgv_page .table td .btn-soft-secondary { background: rgba(142, 142, 147, .14); color: var(--ok-text-2); }
#bgv_page .table td :is(.btn-soft-info, .btn-soft-blue, .btn-info) { background: rgba(0, 122, 255, .10); color: var(--ok-blue); }
#bgv_page .table td .btn-soft-danger { background: rgba(255, 59, 48, .12); color: #d70015; }
#bgv_page .table td .btn:hover { filter: brightness(.95); }
#bgv_page :is(#tbl_project_name, #tbl_service_name) .btn:is(.btn-primary, .btn-danger) { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; box-shadow: none; }
#bgv_page :is(#tbl_project_name, #tbl_service_name) .btn-primary { background: var(--ok-grad); color: #fff; }
#bgv_page :is(#tbl_project_name, #tbl_service_name) .btn-danger { background: rgba(255, 59, 48, .12); color: #d70015; }

/* add / edit forms */
#bgv_page .bv-section-head { display: flex; align-items: center; gap: 12px; }
#bgv_page .bv-section-head h5 { margin: 0; font-size: var(--ok-fs-md); font-weight: 700; color: var(--ok-text); }
#bgv_page .bv-section-head small { font-size: var(--ok-fs-sm); color: var(--ok-text-3) !important; }
#bgv_page .bv-form-card { position: relative; overflow: hidden; border-top: 0 !important; }
#bgv_page .bv-form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bv-accent); }
#bgv_page .bv-form-card[data-tone="bgv"]    { --bv-accent: var(--ok-blue); }
#bgv_page .bv-form-card[data-tone="files"]  { --bv-accent: var(--ok-teal); }
#bgv_page .bv-form-card[data-tone="vendor"] { --bv-accent: var(--ok-green); }
#bgv_page .bv-form-card[data-tone="pic"]    { --bv-accent: var(--ok-orange); }
#bgv_page .bv-form-card[data-tone="svc"]    { --bv-accent: var(--ok-purple); }
#bgv_page .bv-upload { height: 100%; padding: 14px; border: 1.5px dashed color-mix(in srgb, var(--bv-accent) 40%, transparent); border-radius: 14px;
    background: color-mix(in srgb, var(--bv-accent) 5%, var(--ok-surface)); transition: background var(--ok-t); }
#bgv_page .bv-upload:hover { background: color-mix(in srgb, var(--bv-accent) 9%, var(--ok-surface)); }
#bgv_page .bv-upload .row.mt-4 { margin-top: .5rem !important; }
#bgv_page .fileinput-button.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--ok-r);
    background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
#bgv_page .bv-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; margin-bottom: var(--ok-gap); padding: 12px 18px;
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); background: rgba(255, 255, 255, .92); box-shadow: var(--ok-shadow);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#bgv_page .bv-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#bgv_page .bv-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }

/* email modal */
#bgv_page #edit-email-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ok-shadow-lg); }
#bgv_page #edit-email-modal .modal-header { padding: 16px 22px; background: var(--ok-surface) !important; border-bottom: 1px solid var(--ok-line-2); }
#bgv_page #edit-email-modal .modal-title { font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; color: var(--ok-text); }
#bgv_page #edit-email-modal .modal-title i { color: var(--ok-blue); }
#bgv_page #edit-email-modal #text_editor_mail_content { min-height: 260px; padding: 14px 16px; border: 1px solid var(--ok-line); border-radius: 12px; background: var(--ok-surface); }
#bgv_page #edit-email-modal .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#bgv_page #edit-email-modal .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }

@media (max-width: 575.98px) {
    #bgv_page .bv-head-actions { width: 100%; }
    #bgv_page .bv-filter-actions { justify-content: flex-start; }
}


/* ---- 4p. Hiring & onboarding, Claims, Overtime, Insurance --------------------------
   Pages on the .pl-ok skin (4l): hr/hiring_onboarding, hr/onboarding (View),
   hrms/claims/claim_submission, insurance/insurance - their old <style> blocks follow, scoped.
   Plain Bootstrap pages on the .bs-ok skin below: claims/submissions, hrms/overtime/request.
   Rebuilt with .ok-* components: hrms/overtime/overtime-report (Overtime dashboard). */

/* .bs-ok - page-scoped copy of the section 3 Bootstrap re-skin (cards, buttons, forms, tables,
   badges, tabs, modals, DataTables). Put "ok-page bs-ok" on a plain UBold page's wrapper to give
   it the theme without <body class="ok-theme">. Generated from section 3: keep the two in step. */
html body .bs-ok .page-title-box { padding: 4px 0 0; margin-top: 20px; }
html body .bs-ok .page-title-box .page-title {
    margin: 0 0 14px; line-height: 1.2; font-family: var(--ok-font-display);
    font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ok-text);
}
html body .bs-ok .page-title-box .breadcrumb { font-size: var(--ok-fs-sm); }
html body .bs-ok .breadcrumb-item, html body .bs-ok .breadcrumb-item a { color: var(--ok-text-4); }
html body .bs-ok .breadcrumb-item.active { color: var(--ok-text); font-weight: 600; }

/* ---- Bootstrap: cards ------------------------------------------------------ */
html body .bs-ok .card {
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg);
    background: var(--ok-surface); box-shadow: var(--ok-shadow); margin-bottom: 20px;
}
html body .bs-ok .card > .card-header {
    background: transparent; border-bottom: 1px solid var(--ok-line-3); padding: 16px 20px;
    border-radius: var(--ok-r-lg) var(--ok-r-lg) 0 0;
}
html body .bs-ok .card > .card-footer { background: transparent; border-top: 1px solid var(--ok-line-3); border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); }
html body .bs-ok .card-body { padding: 20px; }
html body .bs-ok .card .header-title,
html body .bs-ok .card .card-title {
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4);
}

/* ---- Bootstrap: buttons ---------------------------------------------------- */
html body .bs-ok .btn {
    border-radius: var(--ok-r); font-family: var(--ok-font); font-weight: 600;
    box-shadow: none; transition: background var(--ok-t), border-color var(--ok-t), box-shadow var(--ok-t), color var(--ok-t);
}
html body .bs-ok .btn-sm, html body .bs-ok .btn-group-sm > .btn { border-radius: var(--ok-r-sm); }
html body .bs-ok .btn-xs { border-radius: var(--ok-r-xs); }
html body .bs-ok .btn:focus, html body .bs-ok .btn:focus-visible { box-shadow: var(--ok-ring); }
html body .bs-ok .btn-group > .btn { border-radius: 0; }
html body .bs-ok .btn-group > .btn:first-child { border-top-left-radius: var(--ok-r); border-bottom-left-radius: var(--ok-r); }
html body .bs-ok .btn-group > .btn:last-child { border-top-right-radius: var(--ok-r); border-bottom-right-radius: var(--ok-r); }

html body .bs-ok .btn-primary { background: var(--ok-grad); border-color: transparent; color: #fff; box-shadow: var(--ok-shadow-primary); }
html body .bs-ok .btn-primary:hover, html body .bs-ok .btn-primary:focus, html body .bs-ok .btn-primary:active,
html body .bs-ok .btn-primary.active { background: var(--ok-grad-hover); border-color: transparent; color: #fff; }
html body .bs-ok .btn-success { background-color: var(--ok-green); border-color: var(--ok-green); color: #fff; }
html body .bs-ok .btn-success:hover, html body .bs-ok .btn-success:focus, html body .bs-ok .btn-success:active { background-color: #2fb350; border-color: #2fb350; color: #fff; }
html body .bs-ok .btn-info { background-color: var(--ok-blue); border-color: var(--ok-blue); color: #fff; }
html body .bs-ok .btn-info:hover, html body .bs-ok .btn-info:focus, html body .bs-ok .btn-info:active { background-color: #0a6fe8; border-color: #0a6fe8; color: #fff; }
html body .bs-ok .btn-danger { background-color: var(--ok-red); border-color: var(--ok-red); color: #fff; }
html body .bs-ok .btn-danger:hover, html body .bs-ok .btn-danger:focus, html body .bs-ok .btn-danger:active { background-color: #e6352b; border-color: #e6352b; color: #fff; }
html body .bs-ok .btn-warning { background-color: var(--ok-orange); border-color: var(--ok-orange); color: #fff; }
html body .bs-ok .btn-warning:hover, html body .bs-ok .btn-warning:focus, html body .bs-ok .btn-warning:active { background-color: #e68600; border-color: #e68600; color: #fff; }
html body .bs-ok .btn-secondary { background-color: var(--ok-gray); border-color: var(--ok-gray); color: #fff; }
html body .bs-ok .btn-secondary:hover, html body .bs-ok .btn-secondary:focus { background-color: #7c7c82; border-color: #7c7c82; color: #fff; }
html body .bs-ok .btn-dark { background-color: var(--ok-text); border-color: var(--ok-text); color: #fff; }
html body .bs-ok .btn-light, html body .bs-ok .btn-white {
    background-color: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text); box-shadow: var(--ok-shadow-xs);
}
html body .bs-ok .btn-light:hover, html body .bs-ok .btn-light:focus,
html body .bs-ok .btn-white:hover, html body .bs-ok .btn-white:focus { background-color: var(--ok-surface-2); border-color: #d6d6dc; color: var(--ok-text); }
html body .bs-ok .btn-link { color: var(--ok-blue); font-weight: 600; }

html body .bs-ok .btn-outline-primary   { color: var(--ok-blue);   border-color: rgba(0, 122, 255, .45); }
html body .bs-ok .btn-outline-success   { color: #248a3d;          border-color: rgba(52, 199, 89, .55); }
html body .bs-ok .btn-outline-danger    { color: var(--ok-red);    border-color: rgba(255, 59, 48, .45); }
html body .bs-ok .btn-outline-warning   { color: #c93400;          border-color: rgba(255, 149, 0, .55); }
html body .bs-ok .btn-outline-info      { color: var(--ok-blue);   border-color: rgba(0, 122, 255, .35); }
html body .bs-ok .btn-outline-secondary { color: var(--ok-text-2); border-color: var(--ok-line); }
html body .bs-ok .btn-outline-primary:hover   { background-color: rgba(0, 122, 255, .08);  color: var(--ok-blue); }
html body .bs-ok .btn-outline-success:hover   { background-color: rgba(52, 199, 89, .10);  color: #248a3d; }
html body .bs-ok .btn-outline-danger:hover    { background-color: rgba(255, 59, 48, .08);  color: var(--ok-red); }
html body .bs-ok .btn-outline-warning:hover   { background-color: rgba(255, 149, 0, .10);  color: #c93400; }
html body .bs-ok .btn-outline-info:hover      { background-color: rgba(0, 122, 255, .06);  color: var(--ok-blue); }
html body .bs-ok .btn-outline-secondary:hover { background-color: var(--ok-surface-2);     color: var(--ok-text); }

/* ---- Bootstrap: forms ------------------------------------------------------ */
html body .bs-ok .form-control,
html body .bs-ok .form-select {
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background-color: var(--ok-surface);
    color: var(--ok-text); font-family: var(--ok-font); transition: border-color var(--ok-t), box-shadow var(--ok-t);
}
html body .bs-ok .form-control-sm, html body .bs-ok .form-select-sm { border-radius: var(--ok-r-sm); }
html body .bs-ok .form-control::placeholder { color: var(--ok-text-5); }
html body .bs-ok .form-control:focus,
html body .bs-ok .form-select:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body .bs-ok .form-control:disabled,
html body .bs-ok .form-control[readonly]:not(.flatpickr-input):not(.tb-range-input) { background-color: var(--ok-fill-2); color: var(--ok-text-3); }
html body .bs-ok .form-label,
html body .bs-ok .col-form-label { font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-2); }
html body .bs-ok .input-group-text { border: 1px solid var(--ok-line); background-color: var(--ok-fill-2); color: var(--ok-text-3); border-radius: var(--ok-r); }
html body .bs-ok .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html body .bs-ok .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body .bs-ok .form-check-input { border-color: #c7c7cc; }
html body .bs-ok .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
html body .bs-ok .form-check-input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body .bs-ok .form-switch .form-check-input:checked { background-color: var(--ok-green); border-color: var(--ok-green); }

/* ---- Bootstrap: tables (also beats slate-headers.css) ---------------------- */
html body .bs-ok .table { color: var(--ok-text-2); --bs-table-hover-bg: var(--ok-surface-2); }
html body .bs-ok .table > thead > tr > th,
html body .bs-ok .table > thead > tr > td,
html body .bs-ok table.dataTable > thead > tr > th,
html body .bs-ok table.dataTable > thead > tr > td {
    background: transparent !important; background-image: none !important;
    color: var(--ok-text-4) !important; border-color: var(--ok-line-2) !important;
    border-bottom-width: 1px; padding-top: 12px; padding-bottom: 10px;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
html body .bs-ok .table > thead > tr > th a,
html body .bs-ok table.dataTable > thead > tr > th a { color: var(--ok-text-4) !important; }
html body .bs-ok .table > :not(caption) > * > * { border-bottom-color: var(--ok-line-3); }
html body .bs-ok .table > tbody > tr > td { vertical-align: middle; }
html body .bs-ok .table > :not(:first-child) { border-top: 1px solid var(--ok-line-2); }
html body .bs-ok .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: var(--ok-surface-2); }
html body .bs-ok .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: var(--ok-surface-2); }
html body .bs-ok .table-bordered > :not(caption) > * > * { border-color: var(--ok-line-2); }

/* ---- Bootstrap: badges -> soft pills (topbar count badges stay solid) ------- */
html body .bs-ok .badge { border-radius: var(--ok-r-pill); font-weight: 600; letter-spacing: .01em; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-success,
html body .bs-ok .badge.badge-soft-success { background-color: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-warning,
html body .bs-ok .badge.badge-soft-warning { background-color: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-danger,
html body .bs-ok .badge.badge-soft-danger { background-color: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-info,
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-primary,
html body .bs-ok .badge.badge-soft-info,
html body .bs-ok .badge.badge-soft-primary { background-color: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-secondary,
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-light,
html body .bs-ok .badge.badge-soft-secondary { background-color: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
html body .bs-ok .badge:not(.noti-icon-badge):not(.rounded-circle).bg-dark { background-color: var(--ok-text) !important; color: #fff !important; }

/* ---- Bootstrap: tabs & pills ----------------------------------------------- */
html body .bs-ok .nav-tabs { border-bottom: 1px solid var(--ok-line); gap: 4px; }
html body .bs-ok .nav-tabs .nav-link {
    margin-bottom: -1px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600;
}
html body .bs-ok .nav-tabs .nav-link:hover { color: var(--ok-text-2); border-bottom-color: var(--ok-line); }
html body .bs-ok .nav-tabs .nav-link.active,
html body .bs-ok .nav-tabs .nav-item.show .nav-link { background: transparent; color: var(--ok-text); border-bottom-color: var(--ok-blue); }
html body .bs-ok .nav-tabs.nav-bordered { border-bottom: 1px solid var(--ok-line); }
html body .bs-ok .nav-tabs.nav-bordered .nav-link.active { border-bottom: 2px solid var(--ok-blue) !important; }
/* nav-pills look like the segmented control */
html body .bs-ok .nav-pills { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
html body .bs-ok .nav-pills .nav-link { padding: 5px 14px; border-radius: var(--ok-r-sm); color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; }
html body .bs-ok .nav-pills .nav-link:hover { color: var(--ok-text-2); }
html body .bs-ok .nav-pills .nav-link.active,
html body .bs-ok .nav-pills .show > .nav-link { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
html body .bs-ok .tab-content { padding-top: 4px; }

/* ---- Bootstrap: modals (also beats slate-headers.css) ---------------------- */
html body .bs-ok .modal-backdrop.show { opacity: .3; }
html body .bs-ok .modal-content { border: 0; border-radius: var(--ok-r-xl); box-shadow: var(--ok-shadow-lg); overflow: hidden; }
html body .bs-ok .modal .modal-header {
    padding: 16px 20px; background: var(--ok-surface) !important; background-image: none !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important;
}
html body .bs-ok .modal .modal-header .modal-title,
html body .bs-ok .modal .modal-header h1, html body .bs-ok .modal .modal-header h2, html body .bs-ok .modal .modal-header h3,
html body .bs-ok .modal .modal-header h4, html body .bs-ok .modal .modal-header h5, html body .bs-ok .modal .modal-header h6,
html body .bs-ok .modal .modal-header .text-dark, html body .bs-ok .modal .modal-header .text-light,
html body .bs-ok .modal .modal-header .text-white {
    color: var(--ok-text) !important; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
}
html body .bs-ok .modal .modal-header .btn-close,
html body .bs-ok .modal .modal-header .close { filter: none !important; opacity: .5; }
html body .bs-ok .modal .modal-header .btn-close:hover { opacity: .9; }
html body .bs-ok .modal-body { padding: 20px; }
html body .bs-ok .modal-footer { padding: 14px 20px; border-top: 1px solid var(--ok-line-2); background: var(--ok-surface-2); }

/* ---- Bootstrap: dropdowns, popovers, tooltips ----------------------------- */
html body .bs-ok .dropdown-menu {
    padding: 6px; border: 1px solid var(--ok-line); border-radius: 12px; background: var(--ok-surface);
    box-shadow: var(--ok-shadow-lg); font-size: var(--ok-fs);
}
html body .bs-ok .dropdown-item { padding: 7px 10px; border-radius: var(--ok-r-sm); color: var(--ok-text-2); }
html body .bs-ok .dropdown-item i { color: var(--ok-text-4); }
html body .bs-ok .dropdown-item:hover, html body .bs-ok .dropdown-item:focus { background: var(--ok-fill-2); color: var(--ok-text); }
html body .bs-ok .dropdown-item.active, html body .bs-ok .dropdown-item:active { background: var(--ok-blue); color: #fff; }
html body .bs-ok .dropdown-item.active i, html body .bs-ok .dropdown-item:active i { color: #fff; }
html body .bs-ok .dropdown-divider { border-top-color: var(--ok-line-2); margin: 6px 0; }
html body .bs-ok .dropdown-header, html body .bs-ok .dropdown-menu .noti-title { color: var(--ok-text-4); }
html body .bs-ok .popover { border: 1px solid var(--ok-line); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
html body .bs-ok .tooltip-inner { border-radius: var(--ok-r-sm); background: rgba(29, 29, 31, .92); font-size: 11.5px; }

/* ---- Alerts ---------------------------------------------------------------- */
html body .bs-ok .alert { border-radius: 12px; border: 1px solid transparent; }
html body .bs-ok .alert-success { background: rgba(52, 199, 89, .10); border-color: rgba(52, 199, 89, .25); color: #1e7a35; }
html body .bs-ok .alert-warning { background: rgba(255, 149, 0, .10); border-color: rgba(255, 149, 0, .25); color: #a63d00; }
html body .bs-ok .alert-danger  { background: rgba(255, 59, 48, .08);  border-color: rgba(255, 59, 48, .22); color: #c4000f; }
html body .bs-ok .alert-info    { background: rgba(0, 122, 255, .07);  border-color: rgba(0, 122, 255, .20); color: #0058b9; }

/* ---- Pagination & DataTables ---------------------------------------------- */
html body .bs-ok .pagination { gap: 4px; }
html body .bs-ok .page-link {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important;
    background: var(--ok-surface); color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none;
}
html body .bs-ok .page-link:hover { background: var(--ok-surface-2); color: var(--ok-text); border-color: #d6d6dc; }
html body .bs-ok .page-link:focus { box-shadow: var(--ok-ring); }
html body .bs-ok .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
html body .bs-ok .page-item.disabled .page-link { background: var(--ok-surface); color: var(--ok-text-5); }
html body .bs-ok .dataTables_wrapper .dataTables_filter input,
html body .bs-ok .dataTables_wrapper .dataTables_length select {
    height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background-color: var(--ok-surface); color: var(--ok-text);
}
html body .bs-ok .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
html body .bs-ok .dataTables_wrapper .dataTables_info { color: var(--ok-text-4); font-size: var(--ok-fs-sm); }
html body .bs-ok table.dataTable tbody tr.selected > * { box-shadow: inset 0 0 0 9999px rgba(0, 122, 255, .08); color: var(--ok-text); }

/* ---- Select2 ---------------------------------------------------------------- */
html body .bs-ok .select2-container .select2-selection--single,
html body .bs-ok .select2-container .select2-selection--multiple {
    min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background-color: var(--ok-surface);
}
html body .bs-ok .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
html body .bs-ok .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; right: 6px; }
html body .bs-ok .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--ok-text-5); }
html body .bs-ok .select2-container--focus .select2-selection,
html body .bs-ok .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
html body .bs-ok .select2-container .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #dcdce0; border-radius: var(--ok-r-pill); background: var(--ok-fill); color: var(--ok-text-2); font-size: 12px; font-weight: 600;
}
html body .bs-ok .select2-container .select2-selection--multiple .select2-selection__choice__remove { color: var(--ok-text-4); border: 0; }
html body .bs-ok .select2-dropdown { border: 1px solid var(--ok-line); border-radius: var(--ok-r); box-shadow: var(--ok-shadow-lg); overflow: hidden; }
html body .bs-ok .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); }
html body .bs-ok .select2-container--default .select2-results__option--highlighted[aria-selected],
html body .bs-ok .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--ok-blue); color: #fff; }
html body .bs-ok .select2-container--default .select2-results__option[aria-selected=true],
html body .bs-ok .select2-container--default .select2-results__option--selected { background-color: rgba(0, 122, 255, .08); color: var(--ok-text); }

/* ---- Toast, progress, list-group ----------------------------------------- */
html body .bs-ok .jq-toast-single { border-radius: 12px; box-shadow: var(--ok-shadow-lg); font-family: var(--ok-font); }
html body .bs-ok .progress { height: 6px; border-radius: var(--ok-r-pill); background-color: var(--ok-fill); }
html body .bs-ok .progress-bar { border-radius: var(--ok-r-pill); background: var(--ok-grad); }
html body .bs-ok .list-group-item { border-color: var(--ok-line-3); color: var(--ok-text-2); }
html body .bs-ok .list-group-item.active { background: var(--ok-blue); border-color: var(--ok-blue); }

/* ---- Scrollbars (WebKit) ---------------------------------------------------- */
html body .bs-ok ::-webkit-scrollbar { width: 10px; height: 10px; }
html body .bs-ok ::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
html body .bs-ok ::-webkit-scrollbar-thumb:hover { background: #aeaeb2; background-clip: content-box; border: 2px solid transparent; }
html body .bs-ok ::-webkit-scrollbar-track { background: transparent; }

/* ---- Reduced motion -------------------------------------------------------- */
html body .bs-ok .page-title-box .page-title-right { margin-top: 14px; }
html body .bs-ok .page-title .badge { font-family: var(--ok-font); font-size: 12px; vertical-align: middle; background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
#overtime_request_page :is(.btn.disabled, .btn:disabled) { pointer-events: none; opacity: .5; }

/* moved page styles (scoped to the page id; teal accent -> theme blue) */

/* hr/hiring_onboarding.html (#hiring_onboarding_page) */
    #hiring_onboarding_page .selected {
        background-color: rgba(0, 122, 255, .12); color: var(--ok-blue);
    }
    #hiring_onboarding_page .modal.modal-fullscreen .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: none;
    }
    #hiring_onboarding_page .modal.modal-fullscreen .modal-content {
        height: auto;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    #hiring_onboarding_page .modal.modal-fullscreen .modal-body {
        overflow-y: auto;
    }
    #hiring_onboarding_page input[type="text"].readonly {
        background-color: var(--ok-fill-2);
    }
    #hiring_onboarding_page #summary-div {
        float: right;
    }
    #hiring_onboarding_page .contract-modal {
        width: 500px;
        height: 100px;
        white-space: nowrap;
        position: relative;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    #hiring_onboarding_page .contract-modal div {
        width: 24.5%;
        float: none;
        height: 90%;
        margin: 0 0.25%;
        display: inline-block;
        zoom: 1;
    }
#hiring_onboarding_page .doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#hiring_onboarding_page .doc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
#hiring_onboarding_page .doc-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
#hiring_onboarding_page .doc-status.uploaded {
  background: #e6f9f0;
  color: #16a34a;
}
#hiring_onboarding_page .doc-status.pending {
  background: #fff7e6;
  color: #f59e0b;
}
#hiring_onboarding_page tr.uploaded {
  background-color: #f0fdf4;
}
#hiring_onboarding_page tr.pending {
  background-color: #fffbeb;
}

/* hr/hiring_onboarding.html - Candidate details / Document details / Onboarding forms (#new_div, #new_onboard_div) */
#hiring_onboarding_page .ho-form-view > .an-card > .an-body { padding: 4px 22px 22px; }
#hiring_onboarding_page .ho-form-view .pl-tabs { margin-bottom: 4px; }
#hiring_onboarding_page .ho-section { padding: 20px 0; border-bottom: 1px solid var(--ok-line-3); }
#hiring_onboarding_page .ho-form .ho-section:last-child { border-bottom: 0; }
#hiring_onboarding_page .ho-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#hiring_onboarding_page .ho-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--ok-font-display);
    font-size: var(--ok-fs-md); font-weight: 600; letter-spacing: -.01em; color: var(--ok-text); }
#hiring_onboarding_page .ho-section-head .ho-section-title { margin: 0; }
#hiring_onboarding_page .ho-section-title i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 16px; }
#hiring_onboarding_page .ho-form .form-label { margin-bottom: 5px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#hiring_onboarding_page .ho-form :is(.form-control, .form-select):not(textarea) { min-height: 38px; }
#hiring_onboarding_page .ho-form :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs);
    color: var(--ok-text); background-color: var(--ok-surface); transition: border-color var(--ok-t), box-shadow var(--ok-t); }
#hiring_onboarding_page .ho-form :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#hiring_onboarding_page .ho-form .form-control.readonly, #hiring_onboarding_page .ho-form .form-control[readonly] { background-color: var(--ok-fill-2); border-color: var(--ok-line-2); color: var(--ok-text-3); }
#hiring_onboarding_page .ho-form .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
#hiring_onboarding_page .ho-form .input-group-text { border-color: var(--ok-line); border-radius: 0 var(--ok-r) var(--ok-r) 0; background: var(--ok-surface-2); color: var(--ok-text-4); }
#hiring_onboarding_page .ho-form .select2-container .select2-selection--single { height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#hiring_onboarding_page .ho-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; color: var(--ok-text); }
#hiring_onboarding_page .ho-form .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
#hiring_onboarding_page .ho-form .select2-container .select2-selection--multiple { min-height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#hiring_onboarding_page .ho-form :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#hiring_onboarding_page .ho-form .parsley-errors-list { margin: 4px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-red); }
/* switches (probation / e-attendance) */
#hiring_onboarding_page .ho-switch { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; padding-left: 0; }
#hiring_onboarding_page .ho-switch .form-check-input { width: 38px; height: 22px; margin: 0; float: none; cursor: pointer; }
#hiring_onboarding_page .ho-switch .form-check-label { font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-2); cursor: pointer; }
/* upload tiles (BGV / Medical / Offer letter) */
#hiring_onboarding_page .ho-upload { height: 100%; padding: 14px; border: 1.5px dashed rgba(0, 122, 255, .35); border-radius: var(--ok-r-lg);
    background: rgba(0, 122, 255, .04); transition: background var(--ok-t); }
#hiring_onboarding_page .ho-upload:hover { background: rgba(0, 122, 255, .08); }
#hiring_onboarding_page .ho-upload .form-label { display: block; margin-bottom: 10px; }
#hiring_onboarding_page .ho-form .fileinput-button.btn,
#hiring_onboarding_page .ho-form .fileinput-button > .btn,
#hiring_onboarding_page .ho-form #btn_attach_save { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0;
    border-radius: var(--ok-r); background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
#hiring_onboarding_page .ho-upload-files:not(:empty) { margin-top: 10px; }
/* Save / Cancel bar */
#hiring_onboarding_page .ho-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--ok-line-2); }
#hiring_onboarding_page .ho-actions .btn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 18px; margin: 0; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#hiring_onboarding_page .ho-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#hiring_onboarding_page .ho-actions .btn-success:hover { background: var(--ok-grad-hover); }
#hiring_onboarding_page #document-details .pl-boxed { margin-top: 4px; }

/* hr/onboarding.html (#offerletter_view_page) */
    #offerletter_view_page .modal.modal-fullscreen .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: none;
    }
    #offerletter_view_page .modal.modal-fullscreen .modal-content {
        height: auto;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    #offerletter_view_page .modal.modal-fullscreen .modal-body {
        overflow-y: auto;
    }
    #offerletter_view_page input[type="text"].readonly {
        background-color: var(--ok-fill-2);
    }
    #offerletter_view_page #summary-div {
        float: right;
    }
    #offerletter_view_page .contract-modal {
        width: 500px;
        height: 100px;
        white-space: nowrap;
        position: relative;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    #offerletter_view_page .contract-modal div {
        width: 24.5%;
        float: none;
        height: 90%;
        margin: 0 0.25%;
        display: inline-block;
        zoom: 1;
    }
    #offerletter_view_page .pl-head h4 #btn_reset_filter i { color: var(--ok-blue) !important; }
    #offerletter_view_page #tbl_list td .btn + br + .btn { margin-top: 2px; }
    #offerletter_view_page #pagin { display: flex; gap: 4px; margin: 10px 0 0; justify-content: flex-end; }
    #offerletter_view_page #pagin .page-link { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
        border: 1px solid #dee2e6; border-radius: 6px !important; color: #495057; font-weight: 600; font-size: 12.5px; box-shadow: none; }
    #offerletter_view_page #pagin .page-item.active .page-link { background: var(--ok-blue); border-color: var(--ok-blue); color: #fff; }
    #offerletter_view_page .modal .pl-group-label { padding: 8px 12px; background: #f3f7f9; border-left: 3px solid var(--ok-blue); border-radius: 4px; }

/* hrms/claims/claim_submission.html (#claim_submission_page) */
    #claim_submission_page .action-disabled {
        pointer-events: none;
        opacity: 0.5;
        cursor: not-allowed;
    }
    #claim_submission_page .pl-head h4 .badge { font-size: 11.5px; font-weight: 600; background: #c9eee4 !important; color: #0b6b57 !important; border: 1px solid #8fd9c6; }
    #claim_submission_page .an-head-actions .card-drop { display: inline-flex; align-items: center; color: #6c757d; }
    #claim_submission_page .an-head-actions .card-drop i { font-size: 22px; }
    #claim_submission_page .pl-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef2f7; }

/* insurance/insurance.html (#insurance_page) */
#insurance_page .disabled-link {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
#insurance_page .readonlycss {
    background-color: #e9ecef !important; 
    border: 1px solid #ced4da;
    color: #495057;
}
#insurance_page .prefilled-select {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}
#insurance_page a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
#insurance_page #pending_submission:hover, #insurance_page #submission_to_mrmc:hover { border-color: var(--ok-blue); box-shadow: 0 2px 6px rgba(50, 58, 70, .10); }
#insurance_page .pl-range { width: 200px; }
#insurance_page .pl-form-section { margin: 4px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #eef1f4; }
#insurance_page .pl-form-section + .row label, #insurance_page .pl-filter label { margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #495057; }
#insurance_page #employeeDetailsContainer .card { box-shadow: none; border: 1px solid #e3e8ee; border-radius: 6px; margin-bottom: 6px; }
#insurance_page #dependent-type-modal .card { box-shadow: none; border-radius: 8px; }
#insurance_page #dependent-type-modal .card:has(input:checked) { border-color: var(--ok-blue) !important; background: #e8f8f5; }
#insurance_page #dependent-type-modal .mdi { color: var(--ok-blue); }

/* Overtime dashboard (#overtime_report_page) */
.otr .ok-card-title i { margin-right: 4px; color: var(--ok-blue); }
.otr .otr-filters { margin-bottom: var(--ok-gap); }
.otr .otr-fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 1199.98px) { .otr .otr-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .otr .otr-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px)  { .otr .otr-fgrid { grid-template-columns: minmax(0, 1fr); } }
.otr #dateRange { background: #fff; cursor: pointer; }
.otr .otr-filters .select2-container { width: 100% !important; }
.otr .otr-filters .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.otr .otr-filters .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); font-size: var(--ok-fs); }
.otr .otr-filters .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.otr .otr-filters .select2-container--open .select2-selection { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.otr .otr-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1399.98px) { .otr .otr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .otr .otr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.otr .otr-kpis .ok-stat { background: linear-gradient(160deg, color-mix(in srgb, var(--ok-accent) 7%, var(--ok-surface)) 0%, var(--ok-surface) 60%);
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
.otr .otr-kpis .ok-stat:hover { transform: translateY(-2px); box-shadow: var(--ok-shadow-lg); }
.otr .otr-kpis .ok-stat-value { font-size: 24px; white-space: nowrap; }
.otr .otr-table-head { padding: 18px 20px 4px; margin-bottom: 8px; }
.otr .otr-sub { display: block; margin-top: 3px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.otr .otr-table td { white-space: nowrap; }
.otr .otr-table td:nth-child(2) { font-weight: 600; color: var(--ok-text); }
.otr .otr-table td:nth-child(n+6):nth-child(-n+12) { text-align: right; font-variant-numeric: tabular-nums; }
.otr .otr-table td:nth-child(12) { font-weight: 700; color: var(--ok-text); }
.otr .otr-table td[colspan] { padding: 32px 16px; text-align: center !important; color: var(--ok-text-4); }
.otr .status, .otr :is(.payroll-processed, .payroll-pending) { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--ok-r-pill);
    font-size: 11px; font-weight: 600; white-space: nowrap; background: rgba(142, 142, 147, .14); color: var(--ok-text-3); }
.otr .status::before, .otr :is(.payroll-processed, .payroll-pending)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.otr .status-approved, .otr .payroll-processed { background: rgba(52, 199, 89, .14); color: #248a3d; }
.otr .status-pending, .otr .payroll-pending { background: rgba(255, 149, 0, .14); color: #c93400; }
.otr .status-rejected { background: rgba(255, 59, 48, .12); color: #d70015; }
.otr .status-modified { background: rgba(0, 122, 255, .10); color: var(--ok-blue); }

/* .pl-ok tables: btn-soft-* row buttons keep their colour (they were all grey before) */
.pl-ok :is(.pl-table, .modal .table) td .btn-soft-success   { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-soft-blue, .btn-soft-primary) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn-soft-info      { background: rgba(90, 200, 250, .18) !important; color: #0071a4 !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn-soft-warning   { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
.pl-ok :is(.pl-table, .modal .table) td :is(.btn-soft-danger, .btn-soft-pink) { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn-soft-purple    { background: rgba(175, 82, 222, .12) !important; color: #8944ab !important; }

/* Insurance: colourful round action buttons (Create MRMC, Submit, Add dependent, View, Terminate, vendor Edit) */
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn[class*="btn-soft-"] {
    --ins-fill: var(--ok-grad); --ins-glow: rgba(0, 122, 255, .35);
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0 !important; margin: 0 2px;
    border: 0 !important; border-radius: 50% !important; background: var(--ins-fill) !important; color: #fff !important; font-size: 17px;
    box-shadow: 0 4px 10px var(--ins-glow) !important; transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t), filter var(--ok-t); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn[class*="btn-soft-"] i { color: #fff !important; font-size: 17px; }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-success { --ins-fill: linear-gradient(135deg, #30d158, #1fa94a); --ins-glow: rgba(52, 199, 89, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-blue    { --ins-fill: linear-gradient(135deg, #0a84ff, #5e5ce6); --ins-glow: rgba(10, 132, 255, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-info    { --ins-fill: linear-gradient(135deg, #64d2ff, #0a84ff); --ins-glow: rgba(100, 210, 255, .45); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-primary { --ins-fill: linear-gradient(135deg, #bf5af2, #5e5ce6); --ins-glow: rgba(175, 82, 222, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-warning { --ins-fill: linear-gradient(135deg, #ffd60a, #ff9500); --ins-glow: rgba(255, 149, 0, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-pink    { --ins-fill: linear-gradient(135deg, #ff6fa0, #ff2d55); --ins-glow: rgba(255, 45, 85, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn-soft-danger  { --ins-fill: linear-gradient(135deg, #ff6961, #ff3b30); --ins-glow: rgba(255, 59, 48, .38); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn[class*="btn-soft-"]:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.06); }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn[class*="btn-soft-"]:is(.disabled, :disabled) { --ins-fill: var(--ok-fill) !important; --ins-glow: transparent;
    color: var(--ok-text-5) !important; opacity: 1; transform: none; filter: none; cursor: not-allowed; }
#insurance_page :is(#tbl_list, #tbl_insurance_vendor) td .btn[class*="btn-soft-"]:is(.disabled, :disabled) i { color: var(--ok-text-5) !important; }


/* ---- 4q. Payroll (configuration, processing, adhoc), Exit interview (listing, template, reports),
   Offer letter template - all on the .pl-ok skin (4l); their old <style> blocks, scoped and re-toned. */

/* hrms/payroll/payroll-processing.html (#payroll_processing_page) */
#payroll_processing_page .pagination { gap: 4px; }
#payroll_processing_page .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-weight: 600; font-size: var(--ok-fs-sm); box-shadow: none; cursor: pointer; }
#payroll_processing_page .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
#payroll_processing_page .page-item.disabled .page-link { color: #c2c8ce; }

/* hrms/payroll/adhoc-payroll-processing.html (#adhoc_payroll_processing_page) */
#adhoc_payroll_processing_page .pagination { gap: 4px; }
#adhoc_payroll_processing_page .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-weight: 600; font-size: var(--ok-fs-sm); box-shadow: none; cursor: pointer; }
#adhoc_payroll_processing_page .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
#adhoc_payroll_processing_page .page-item.disabled .page-link { color: #c2c8ce; }

/* exit-interview/exit-interview.html (#exit_interview_page) */
  #exit_interview_page #questionsAccordion .accordion-item {
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid #e3e8ee;
  }
  #exit_interview_page #questionsAccordion .accordion-button {
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.2;
  }
  #exit_interview_page #questionsAccordion .accordion-body {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  #exit_interview_page #questionsAccordion table.table {
    margin-bottom: 0;
    font-size: 0.85rem;
  }
  #exit_interview_page #questionsAccordion table.table th, #exit_interview_page #questionsAccordion table.table td {
    padding: 4px 6px;
    white-space: nowrap;
  }
  #exit_interview_page .modal.modal-fullscreen .modal-dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  #exit_interview_page .modal.modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  #exit_interview_page .modal.modal-fullscreen .modal-body {
    overflow-y: auto;
  }
  #exit_interview_page html, #exit_interview_page body {
    overflow: auto;
  }
  #exit_interview_page .modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: #01223770;
  }
  #exit_interview_page .modal-backdrop.in {
    opacity: 1 !important;
  }
  #exit_interview_page .modal.fade.show {
    backdrop-filter: blur(5px);
  }
  #exit_interview_page .select2-container .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
  }
  #exit_interview_page #tbl_details {
    color: black;
  }
  #exit_interview_page #external-events .external-event { border-radius: 6px; font-weight: 600; font-size: 12.5px; }
  #exit_interview_page .modal-title .badge { font-size: 11.5px; border-radius: var(--ok-r-pill); background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }

/* exit-interview/questions.html (#exit_interview_questions_page) */
#exit_interview_questions_page #questionsAccordion .accordion-item {
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #e3e8ee;
}
#exit_interview_questions_page #questionsAccordion .accordion-button {
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.2;
}
#exit_interview_questions_page #questionsAccordion .accordion-body {
  padding: 8px 12px;
  font-size: 0.85rem;
}
#exit_interview_questions_page #questions_preview .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 14px 18px;
}
#exit_interview_questions_page .attrition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#exit_interview_questions_page .attrition-actions a {
  padding: 2px 6px;
  font-size: 11px;
}
#exit_interview_questions_page a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
#exit_interview_questions_page .condition-row { background: var(--ok-surface-2); border: 1px solid var(--ok-line-2) !important; border-radius: 12px !important; }
#exit_interview_questions_page .pl-section-title { margin: 6px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e3e8ee; font-size: 12px; font-weight: 700;
    letter-spacing: .4px; text-transform: uppercase; color: var(--ok-text); }
#exit_interview_questions_page .pl-head h4 #btn_reset_filter i { color: var(--ok-blue) !important; }
#exit_interview_questions_page #div_btn { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
#exit_interview_questions_page #div_btn .btn { height: 36px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-radius: 6px; box-shadow: none; }

/* hr/offerletter-template.html (#offerletter_template_page) */
#offerletter_template_page #tbl_list td i.fas, #offerletter_template_page #tbl_list td i.far { cursor: pointer; }
#offerletter_template_page #pagination_div { margin-top: 10px; }
#offerletter_template_page #pagination_div .pagination { gap: 4px; margin: 0; }
#offerletter_template_page #pagination_div .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-weight: 600; font-size: var(--ok-fs-sm); box-shadow: none; }
#offerletter_template_page #pagination_div .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
#offerletter_template_page #detail_form .col-form-label { font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #495057; }
#offerletter_template_page #detail_form .form-control { border-color: #ced4da; border-radius: 6px; }
#offerletter_template_page #detail_form .select2-container .select2-selection--multiple, #offerletter_template_page #detail_form .select2-container .select2-selection--single { min-height: 36px; border-color: #ced4da; border-radius: 6px; }
#offerletter_template_page .pl-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7; }
#offerletter_template_page .pl-form-actions .btn { height: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 0 16px; margin: 0 !important; font-weight: 600; border-radius: 6px; box-shadow: none; }
#offerletter_template_page .pl-form-actions .btn-success, #offerletter_template_page .pl-form-actions .btn-primary { background: var(--ok-grad); border-color: transparent; color: #fff; box-shadow: var(--ok-shadow-primary); }
#offerletter_template_page .pl-form-actions .btn-success:hover, #offerletter_template_page .pl-form-actions .btn-primary:hover { background: var(--ok-blue); border-color: var(--ok-blue); }
#offerletter_template_page .pl-form-actions .btn-light { background: #fff; border: 1px solid #cfd4d9; color: var(--ok-text); }


/* ---- 4r. Job order request approvals  (modules/internal-joborder-request/internal-joborder-approval)
   On the .pl-ok skin (4l). Review modal: field grid + a comment/decision bar under both tabs. */
#ijo_approval_page .pl-table td a.link-view-file + a.link-view-file { margin-left: 4px; }
#ijo_approval_page .pl-table td .link-view-file { padding: 4px 8px; }
#ijo_approval_page .ijoa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 4px 0 0; }
#ijo_approval_page .ijoa-fields > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ok-line-3); min-width: 0; }
#ijo_approval_page .ijoa-fields > div.ijoa-wide { grid-column: 1 / -1; }
#ijo_approval_page .ijoa-fields dt { flex: 0 0 42%; margin: 0; font-size: var(--ok-fs-sm); font-weight: 400; color: var(--ok-text-3); }
#ijo_approval_page .ijoa-fields dd { flex: 1 1 auto; margin: 0; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text); word-break: break-word; }
#ijo_approval_page .ijoa-fields dd:empty::before { content: "—"; color: var(--ok-text-5); font-weight: 400; }
#ijo_approval_page .ijoa-decision { margin-top: 20px; padding: 16px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 14px; }
#ijo_approval_page .ijoa-decision textarea { background: var(--ok-surface); resize: vertical; }
#ijo_approval_page .ijoa-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#ijo_approval_page .ijoa-actions .ok-btn { height: 36px; }
#ijo_approval_page .ijoa-actions #btn_hold_joborder i { color: var(--ok-orange); }
#ijo_approval_page .ijoa-actions #btn_revert_joborder i { color: var(--ok-blue); }
#ijo_approval_page .ijoa-warning { margin-right: auto; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-red); }
#ijo_approval_page #rejectRemarkModal .modal-header .modal-title i { color: var(--ok-red) !important; }
#ijo_approval_page #rejectRemarkModal .modal-footer .btn-danger { background: var(--ok-red); box-shadow: none; }
#ijo_approval_page #rejectRemarkModal .modal-footer .btn-danger:hover { background: #e6352b; filter: none; }
@media (max-width: 767.98px) { #ijo_approval_page .ijoa-fields { grid-template-columns: 1fr; } }


/* ---- 4s. Client job orders  (modules/client-joborder/client-joborder) ------------------
   On the .pl-ok skin (4l); its old <style> block, scoped and re-toned. */
/* section label inside a tab */
#client_joborder_page .os-section { margin: 4px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ok-line-2); font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#client_joborder_page .os-divider { margin: 6px 0 16px; border-top: 1px solid var(--ok-line-2); }
/* "+" next to a lookup select */
#client_joborder_page .input-group-text[id^="add_"] { cursor: pointer; background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-blue); }
#client_joborder_page .input-group-text[id^="add_"]:hover { background: var(--ok-surface-2); }
#client_joborder_page .input-group-text[id^="add_"] i.col-1 { width: auto; flex: none; padding: 0; }
/* inline radio choices */
#client_joborder_page .os-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; min-height: 36px; }
#client_joborder_page .os-radios .form-check { margin: 0; text-transform: none; letter-spacing: 0; font-size: var(--ok-fs); font-weight: 400; color: var(--ok-text-2); }
/* save / cancel row */
#client_joborder_page .os-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#client_joborder_page .os-form-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#client_joborder_page .os-form-actions .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#client_joborder_page .os-form-actions .btn-success:hover { filter: brightness(1.06); }
#client_joborder_page .pl-filter .errorContainer .btn-sm { height: auto; }
/* JD "Browse file" button */
#client_joborder_page .pl-filter .fileinput-button { height: 36px; }
/* "Load more" under the list */
#client_joborder_page #div_load_more .btn { border: 1px solid var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2); font-weight: 600; box-shadow: var(--ok-shadow-xs); }


/* ---- 4t. Analytics > Client and Analytics > User popups  (modules/analytics) -----------
   Same look as the Job order approval "View details" popup (.pl-ok modals, 4l / 4r):
   white header with a blue icon, 18px corners, light table headers, soft footer.
   The popups sit outside #list_div, so each carries "an-ok-modal"; the prefix beats the
   page <style> (.modal-fullscreen, .modal-title white) and slate-headers.css. */
html body .modal.an-ok-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ok-shadow-lg); color: var(--ok-text-2); }
/* drill-down tables: the old full-screen sheets become a wide centred dialog */
html body .modal.an-ok-modal.modal-fullscreen .modal-dialog { width: auto; max-width: min(1400px, calc(100vw - 48px)); height: auto; margin: 24px auto; padding: 0; }
html body .modal.an-ok-modal.modal-fullscreen .modal-content { height: auto; margin: 0; border-radius: 18px; }
html body .modal.an-ok-modal .modal-header { align-items: center; gap: 8px; padding: 16px 22px !important; background: var(--ok-surface) !important; background-image: none !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important; }
html body .modal.an-ok-modal .modal-header .modal-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 !important; font-family: var(--ok-font-display);
    font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text) !important; text-align: left !important; }
html body .modal.an-ok-modal .modal-header .modal-title :is(i, .mdi) { color: var(--ok-blue) !important; font-size: 20px; }
html body .modal.an-ok-modal .modal-header .modal-title .aging_span:empty,
html body .modal.an-ok-modal .modal-header .modal-title #cv_submission_position_view:empty { display: none; }
html body .modal.an-ok-modal .modal-header .modal-title .an-ok-modal-range { font-family: var(--ok-font); font-size: var(--ok-fs); font-weight: 500; color: var(--ok-text-3); }
html body .modal.an-ok-modal .modal-header :is(.btn-close, .close) { margin: 0 0 0 auto !important; filter: none !important; opacity: .5; }
html body .modal.an-ok-modal .modal-header :is(.btn-close, .close):hover { opacity: .9; }
html body .modal.an-ok-modal .an-ok-count, html body .modal.an-ok-modal .modal-title .badge {
    font-family: var(--ok-font); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
html body .modal.an-ok-modal .an-ok-count:empty { display: none; }
html body .modal.an-ok-modal .modal-body { padding: 20px 22px; color: var(--ok-text-2); background: var(--ok-surface); }
html body .modal.an-ok-modal .modal-footer { padding: 12px 22px; gap: 8px; background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); }
html body .modal.an-ok-modal .modal-footer .ok-btn { height: 36px; margin: 0; }

/* tables */
html body .modal.an-ok-modal .table-responsive { margin-top: 0 !important; border: 1px solid var(--ok-line-2); border-radius: 12px; }
html body .modal.an-ok-modal .table { margin-bottom: 0; font-size: var(--ok-fs); color: var(--ok-text-2); }
html body .modal.an-ok-modal .table > thead > tr > th, html body .modal.an-ok-modal table.dataTable > thead > tr > th {
    padding: 12px 12px 10px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
html body .modal.an-ok-modal .table > thead > tr > th a { color: inherit !important; }
html body .modal.an-ok-modal table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::before,
html body .modal.an-ok-modal table.dataTable > thead :is(.sorting, .sorting_asc, .sorting_desc)::after { color: var(--ok-text-4) !important; }
html body .modal.an-ok-modal .table > thead .form-check-input, html body .modal.an-ok-modal .table > thead input[type=checkbox] { accent-color: var(--ok-blue); }
html body .modal.an-ok-modal .table > tbody > tr > td { padding: 10px 12px; vertical-align: middle; border-color: var(--ok-line-3); background: transparent; color: var(--ok-text-2); }
html body .modal.an-ok-modal .table > tbody > tr:hover > td { background: var(--ok-surface-2); }
html body .modal.an-ok-modal .table .dataTables_empty { padding: 28px 12px; color: var(--ok-text-4); text-align: center; }
html body .modal.an-ok-modal .table .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 0; border-radius: var(--ok-r-pill); font-size: 11px; font-weight: 600;
    background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
html body .modal.an-ok-modal .table .badge.bg-success { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
html body .modal.an-ok-modal .table .badge.bg-danger { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
html body .modal.an-ok-modal .table .badge.bg-warning { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
html body .modal.an-ok-modal .table .badge:is(.bg-info, .bg-primary) { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }

/* DataTables controls inside the popups */
html body .modal.an-ok-modal .dataTables_wrapper > .row { align-items: center; row-gap: 8px; }
html body .modal.an-ok-modal .dataTables_wrapper > .row:first-child { margin-bottom: 12px; }
html body .modal.an-ok-modal .dataTables_wrapper > .row:last-child { margin-top: 12px; }
html body .modal.an-ok-modal .dataTables_wrapper :is(.dataTables_filter input, .dataTables_length select) { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); color: var(--ok-text) !important; }
html body .modal.an-ok-modal .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); outline: 0; }
html body .modal.an-ok-modal .dataTables_wrapper .dt-buttons { display: inline-flex; gap: 6px; }
html body .modal.an-ok-modal .dataTables_wrapper .dt-buttons .btn { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
html body .modal.an-ok-modal .dataTables_wrapper .dt-buttons .btn:hover { background: var(--ok-surface-2); }
html body .modal.an-ok-modal .dataTables_wrapper .dataTables_info { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
html body .modal.an-ok-modal .dataTables_wrapper .pagination { gap: 4px; margin: 0; justify-content: flex-end; }
html body .modal.an-ok-modal .dataTables_wrapper .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
html body .modal.an-ok-modal .dataTables_wrapper .page-item.active .page-link { background: var(--ok-grad); border-color: transparent; color: #fff; }
html body .modal.an-ok-modal .dataTables_wrapper .page-item.disabled .page-link { color: var(--ok-text-5); }

/* small summary popups: date line + label / value rows (like the approval field list) */
html body .modal.an-ok-modal .an-ok-modal-sub { margin: 0 0 8px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
html body .modal.an-ok-modal .an-ok-modal-sub:has(span:empty) { display: none; }
html body .modal.an-ok-modal table.an-ok-fields { width: 100%; border-collapse: collapse; }
html body .modal.an-ok-modal table.an-ok-fields :is(th, td) { padding: 10px 0; border-bottom: 1px solid var(--ok-line-3); font-size: var(--ok-fs); background: none !important; }
html body .modal.an-ok-modal table.an-ok-fields tr:last-child :is(th, td) { border-bottom: 0; }
html body .modal.an-ok-modal table.an-ok-fields th { width: 50%; font-weight: 400; color: var(--ok-text-3) !important; text-transform: none; letter-spacing: 0; }
html body .modal.an-ok-modal table.an-ok-fields td { font-weight: 600; color: var(--ok-text); text-align: right; }

/* forms (email, closure summary) */
html body .modal.an-ok-modal :is(.form-label, .col-form-label) { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4) !important; }
html body .modal.an-ok-modal :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text) !important; }
html body .modal.an-ok-modal :is(.form-control, .form-select):not(textarea) { min-height: 36px; }
html body .modal.an-ok-modal :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
html body .modal.an-ok-modal .input-group-text { border-color: var(--ok-line); background: var(--ok-surface-2); color: var(--ok-text-4); }

/* closure summary: filter panel + chart panel */
html body .modal.an-ok-modal .an-ok-modal-panel { height: 100%; padding: 16px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 14px; }
html body .modal.an-ok-modal .an-ok-modal-panel-title { margin: 0 0 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
html body .modal.an-ok-modal .an-ok-modal-panel .ok-btn--block { height: 36px; }
html body .modal.an-ok-modal .dropbtn { height: 32px; padding: 0 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
html body .modal.an-ok-modal .dropdown-content { border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); padding: 6px; }
html body .modal.an-ok-modal .dropdown-content a { display: block; padding: 6px 10px; border-radius: var(--ok-r-sm); color: var(--ok-text); font-size: var(--ok-fs); }
html body .modal.an-ok-modal .dropdown-content a:hover { background: var(--ok-fill-2); }


/* ---- 4u. Coloured export buttons  (DataTables CSV / Excel / PDF / Print / Email, every page) ----
   DataTables puts .buttons-csv / .buttons-excel / .buttons-pdf / .buttons-print on its buttons; the
   analytics "Email" button is .btn-outline-primary. Tinted fill + coloured text, solid on hover.
   The html body prefix + !important beat the white .dt-buttons rules in 4j, 4l, 4t and the interview page. */
html body .dt-buttons :is(.btn, .dt-button):is(.buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print, .btn-outline-primary) {
    --xb: var(--ok-gray); --xb-text: var(--ok-text-2);
    display: inline-flex !important; align-items: center; gap: 5px; height: 32px; padding: 0 12px !important;
    background: color-mix(in srgb, var(--xb) 12%, #fff) !important; border: 1px solid color-mix(in srgb, var(--xb) 35%, #fff) !important;
    border-radius: var(--ok-r-sm) !important; color: var(--xb-text) !important; font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none !important;
    transition: background var(--ok-t), color var(--ok-t), border-color var(--ok-t); }
html body .dt-buttons :is(.btn, .dt-button):is(.buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print, .btn-outline-primary) i { color: inherit !important; font-size: 14px; }
html body .dt-buttons :is(.btn, .dt-button):is(.buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print, .btn-outline-primary):hover {
    background: var(--xb) !important; border-color: var(--xb) !important; color: #fff !important; }
html body .dt-buttons .buttons-csv   { --xb: #0a84ff; --xb-text: #0060c7; }   /* blue   */
html body .dt-buttons .buttons-excel { --xb: #34c759; --xb-text: #1f7a35; }   /* green  */
html body .dt-buttons .buttons-pdf   { --xb: #ff3b30; --xb-text: #c4150b; }   /* red    */
html body .dt-buttons .buttons-print { --xb: #8e8e93; --xb-text: #48484d; }   /* grey   */
html body .dt-buttons .btn-outline-primary:not(.buttons-csv):not(.buttons-excel):not(.buttons-pdf):not(.buttons-print) { --xb: #af52de; --xb-text: #8133a8; }   /* purple (Email) */


/* ---- 4v. My Profile  (modules/profile/profile) ----------------------------------------
   "ok-page pf-ok" wrapper. Hero card (cover + photo + name), a read-only field grid, then
   2-up cards whose rows flip between .view-container and .edit-container (profile.js). */
.pf-ok .pf-grid { margin-top: var(--ok-gap); }
.pf-ok .pf-card { display: flex; flex-direction: column; }
.pf-ok > #profile_details > .pf-card { margin-top: var(--ok-gap); }

/* hero */
.pf-ok .pf-hero { overflow: hidden; }
.pf-ok .pf-cover { height: 96px; background: var(--ok-grad); position: relative; }
.pf-ok .pf-cover::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 140% at 85% 0%, rgba(255, 255, 255, .28) 0%, transparent 55%), radial-gradient(80% 120% at 10% 100%, rgba(90, 200, 250, .35) 0%, transparent 60%); }
.pf-ok .pf-hero-body { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 20px; margin-top: -52px; position: relative; flex-wrap: wrap; }
.pf-ok #div_photo_container { position: relative; flex: 0 0 104px; width: 104px; height: 104px; }
.pf-ok #img_emp_photo { width: 104px; height: 104px; display: block; object-fit: cover; border-radius: 50%; border: 4px solid var(--ok-surface);
    background: var(--ok-fill); box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.pf-ok #pen_overlay { position: absolute; right: 2px; bottom: 4px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--ok-surface); border: 1px solid var(--ok-line); box-shadow: var(--ok-shadow-xs); cursor: pointer; color: var(--ok-text-2);
    transition: background var(--ok-t), color var(--ok-t), transform var(--ok-t); }
.pf-ok #pen_overlay i { font-size: 17px; }
.pf-ok #pen_overlay:hover, .pf-ok #pen_overlay:focus-visible { background: var(--ok-blue); border-color: var(--ok-blue); color: #fff; transform: translateY(-1px); outline: none; }
.pf-ok .pf-hero-info { min-width: 0; padding-bottom: 6px; }
.pf-ok .pf-name { margin: 0; font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ok-text); line-height: 1.2; }
.pf-ok .pf-role { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }
.pf-ok .pf-role i { color: var(--ok-blue); }

/* card head: tinted icon + heading + sub */
.pf-ok .pf-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pf-ok .pf-card-head .ok-card-heading { font-size: 15px; }
.pf-ok .pf-card-sub { margin: 2px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.pf-ok .pf-card-icon { --pf-c: var(--ok-blue); flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 19px; background: color-mix(in srgb, var(--pf-c) 12%, transparent); color: var(--pf-c); }
.pf-ok .pf-card-icon--teal   { --pf-c: #0a84ff; }
.pf-ok .pf-card-icon--purple { --pf-c: var(--ok-purple); }
.pf-ok .pf-card-icon--orange { --pf-c: var(--ok-orange); }
.pf-ok .pf-card-icon--green  { --pf-c: var(--ok-green); }

/* read-only fields: label over value, 3 across */
.pf-ok .pf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.pf-ok .pf-fields > div { padding: 12px 0; border-bottom: 1px solid var(--ok-line-3); min-width: 0; }
.pf-ok .pf-fields > div.pf-wide { grid-column: 1 / -1; border-bottom: 0; }
.pf-ok .pf-fields dt { margin: 0 0 3px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.pf-ok .pf-fields dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); word-break: break-word; }

/* editable rows */
.pf-ok .pf-row { padding: 12px 0; border-bottom: 1px solid var(--ok-line-3); }
.pf-ok .pf-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-ok .pf-row-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.pf-ok .view-container { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 14px; min-height: 30px; font-size: 14px; color: var(--ok-text); line-height: 1.5; }
.pf-ok .view-container > span:not(.btn-edit-details):not(.phone-item) { flex: 1 1 auto; min-width: 0; word-break: break-word; padding-top: 3px; }
.pf-ok .btn-edit-details { margin-left: auto; flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--ok-r-sm); border: 1px solid var(--ok-line); background: var(--ok-surface); color: var(--ok-text-3); cursor: pointer; font-size: 16px;
    box-shadow: var(--ok-shadow-xs); transition: background var(--ok-t), color var(--ok-t), border-color var(--ok-t); }
.pf-ok .btn-edit-details:hover, .pf-ok .btn-edit-details:focus-visible { background: rgba(0, 122, 255, .08); border-color: rgba(0, 122, 255, .35); color: var(--ok-blue); outline: none; }
.pf-ok #div_email { flex: 1 1 auto; min-width: 0; padding-top: 3px; color: var(--ok-blue); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ok #div_email:hover { text-decoration: underline; }
.pf-ok .phone-item { display: inline-flex; align-items: center; gap: 5px; padding-top: 3px; white-space: nowrap; }
.pf-ok .phone-item i { color: var(--ok-text-4); font-size: 16px; }
.pf-ok .phone-item.phone-empty { display: none; }
.pf-ok .profile-empty { color: var(--ok-text-5); font-weight: 400; }
.pf-ok .profile-nolink { color: inherit !important; cursor: default; text-decoration: none !important; pointer-events: none; font-weight: 400; }

/* signature */
.pf-ok #div_signature_img { max-width: 220px; max-height: 72px; padding: 6px 10px; border: 1px solid var(--ok-line-2); border-radius: var(--ok-r); background: #fff; }
.pf-ok #div_signature_img[src=""] { display: none; }
.pf-ok #view_signature:has(#div_signature_img[src=""])::before,
.pf-ok #view_signature:has(#div_signature_img[style*="none"])::before { content: "No signature yet"; padding-top: 3px; color: var(--ok-text-5); }
.pf-ok #signature_pad { display: block; max-width: 100%; border: 1px dashed var(--ok-line); border-radius: var(--ok-r); background: #fff; cursor: crosshair; }

/* edit panel */
.pf-ok .edit-container { margin-top: 4px; padding: 12px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 12px; }
.pf-ok .edit-container .form-control { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); background: var(--ok-surface); box-shadow: none; }
.pf-ok .edit-container textarea.form-control { resize: vertical; }
.pf-ok .edit-container .form-control:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.pf-ok .edit-container label { display: block; margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.pf-ok .pf-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-ok .edit-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }
.pf-ok .edit-actions .ok-btn { height: 32px; cursor: pointer; }
.pf-ok .edit-container .select2-container { width: 100% !important; }
.pf-ok .edit-container .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
.pf-ok .edit-container .select2-container--focus .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
.pf-ok .edit-container .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }

@media (max-width: 991.98px) { .pf-ok .pf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .pf-ok .pf-fields, .pf-ok .pf-edit-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-ok .pf-hero-body { flex-direction: column; align-items: center; text-align: center; }
    .pf-ok .pf-role { justify-content: center; }
}


/* ---- 4w. Hired staff (Outsourced, Transfer, Promotion) + PIT (Listing, Import, Payslips) --------
   All on the .pl-ok skin (4l). "tabs-color" on the wrapper turns the .pl-tabs segmented control into
   coloured tabs: each tab has its own accent (blue, violet, teal, orange, green, pink, repeating),
   a dot when idle, a tint on hover and a solid fill when active. Page rules follow, scoped by id. */
.pl-ok.tabs-color .pl-tabs { gap: 4px; padding: 4px; background: var(--ok-surface) !important; border: 1px solid var(--ok-line-2) !important;
    border-radius: 12px; box-shadow: var(--ok-shadow-xs); }
.pl-ok.tabs-color .pl-tabs > li > .nav-link { --tc: #007aff; }
.pl-ok.tabs-color .pl-tabs > li:nth-child(6n+2) > .nav-link { --tc: #af52de; }
.pl-ok.tabs-color .pl-tabs > li:nth-child(6n+3) > .nav-link { --tc: #30b0c7; }
.pl-ok.tabs-color .pl-tabs > li:nth-child(6n+4) > .nav-link { --tc: #ff9500; }
.pl-ok.tabs-color .pl-tabs > li:nth-child(6n+5) > .nav-link { --tc: #34c759; }
.pl-ok.tabs-color .pl-tabs > li:nth-child(6n+6) > .nav-link { --tc: #ff2d55; }
.pl-ok.tabs-color .pl-tabs .nav-link { height: 34px; padding: 0 14px; border-radius: 9px !important; color: var(--ok-text-3) !important;
    text-transform: none !important; letter-spacing: 0; transition: background var(--ok-t), color var(--ok-t), box-shadow var(--ok-t); }
.pl-ok.tabs-color .pl-tabs .nav-link::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.pl-ok.tabs-color .pl-tabs .nav-link i { color: var(--tc); }
.pl-ok.tabs-color .pl-tabs .nav-link:has(> i:first-child)::before { display: none; }
.pl-ok.tabs-color .pl-tabs .nav-link:hover { background: color-mix(in srgb, var(--tc) 10%, transparent) !important; color: color-mix(in srgb, var(--tc) 75%, #000) !important; }
.pl-ok.tabs-color .pl-tabs .nav-link.active { background: var(--tc) !important; color: #fff !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--tc) 35%, transparent); }
.pl-ok.tabs-color .pl-tabs .nav-link.active::before { background: #fff; }
.pl-ok.tabs-color .pl-tabs .nav-link.active i { color: #fff; }
.pl-ok.tabs-color .pl-tabs .nav-link .badge { background: color-mix(in srgb, var(--tc) 14%, transparent) !important; color: var(--tc) !important; }
.pl-ok.tabs-color .pl-tabs .nav-link.active .badge { background: rgba(255, 255, 255, .25) !important; color: #fff !important; }
/* a tab strip nested in a tab: smaller */
.pl-ok.tabs-color .tab-pane .pl-tabs { margin: 0 0 14px; box-shadow: none; background: var(--ok-surface-2) !important; }
.pl-ok.tabs-color .tab-pane .pl-tabs .nav-link { height: 30px; font-size: var(--ok-fs-sm); }

/* legacy helpers these pages' markup and JS still use (were unscoped page <style> rules) */
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page, #pit_page, #pit_import_page) :is(.disabled-link, a.disabled) { pointer-events: none; opacity: .5; cursor: not-allowed; }
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page, #pit_page, #pit_import_page) .readonlycss {
    background-color: var(--ok-fill) !important; border: 1px solid var(--ok-line) !important; color: var(--ok-text-3) !important; cursor: not-allowed; }
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page, #pit_page) .prefilled-select { background-color: var(--ok-surface-2); border-color: var(--ok-line); color: var(--ok-text-2); }
:is(#outsourced_staff_page, #pit_page, #pit_import_page) .fixed-width-btn { width: 160px; }
#outsourced_staff_page .bg-purple { color: #fff; background-color: var(--ok-purple); border-color: var(--ok-purple); }
:is(#outsourced_staff_page, #pit_import_page) .attrition-actions { display: flex; flex-wrap: wrap; gap: 4px; }
:is(#outsourced_staff_page, #pit_import_page) .attrition-actions a { padding: 2px 6px; font-size: 11px; }
:is(#outsourced_staff_page, #pit_import_page) .attrition-table :is(thead th, tbody td) { text-align: center; vertical-align: middle; }
:is(#outsourced_staff_page, #pit_import_page) .selected { background-color: rgba(0, 122, 255, .10); }
:is(#outsourced_staff_page, #pit_import_page) #questionsAccordion .accordion-item { margin-bottom: 6px; border: 1px solid var(--ok-line-2); border-radius: 10px; overflow: hidden; }
:is(#outsourced_staff_page, #pit_import_page) #questionsAccordion .accordion-button { padding: 8px 12px; font-size: .9rem; line-height: 1.2; }
:is(#outsourced_staff_page, #pit_import_page) #questionsAccordion .accordion-body { padding: 8px 12px; font-size: .85rem; }
:is(#outsourced_staff_page, #pit_import_page) #questions_preview .modal-dialog { max-width: min(1200px, calc(100vw - 32px)) !important; margin: 24px auto; }
:is(#outsourced_staff_page, #pit_import_page) #questions_preview .modal-body { padding: 14px 18px; }

/* outsourced-staff/outsourced-staff.html (#outsourced_staff_page) */
#outsourced_staff_page #new_emp_frm .card { box-shadow: none; border: 1px solid var(--ok-line-2); border-radius: 12px; }
#outsourced_staff_page #new_emp_frm .header-title { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#outsourced_staff_page #contract_form label { display: block; text-align: left !important; }
#outsourced_staff_page #contract_form .form-label { justify-content: flex-start !important; }
#outsourced_staff_page #contract_form .select2-container { width: 100% !important; }
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page) .os-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page) .os-form-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
    border-radius: var(--ok-r); font-weight: 600; box-shadow: none; }
:is(#outsourced_staff_page, #outsourced_transfer_page, #outsourced_promotion_page) .os-form-actions :is(.btn-success, .btn-primary) { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }

/* outsourced-staff-transfer / -promotion (#outsourced_transfer_page, #outsourced_promotion_page) */
:is(#outsourced_transfer_page, #outsourced_promotion_page) .os-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
:is(#outsourced_transfer_page, #outsourced_promotion_page) .os-subhead .pl-group-label { margin: 0; }
:is(#outsourced_transfer_page, #outsourced_promotion_page) .pl-filter .os-subhead .btn { height: 32px; padding: 0 12px; font-size: var(--ok-fs-sm); }
:is(#outsourced_transfer_page, #outsourced_promotion_page) .os-form-box { margin-bottom: 14px; padding: 16px 16px 4px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 14px; }
:is(#outsourced_transfer_page, #outsourced_promotion_page) .os-form-box .os-form-actions { margin: 0 0 12px; padding-top: 0; border-top: 0; }
:is(#outsourced_transfer_page, #outsourced_promotion_page) .os-divider { margin: 6px 0 14px; border-top: 1px solid var(--ok-line-2); }
#outsourced_transfer_page .os-sel-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok-blue); text-decoration: none; }
#outsourced_transfer_page .os-sel-toggle:hover { color: #0060c7; }
#outsourced_promotion_page .os-emp-pick { width: 240px; max-width: 100%; }
#outsourced_promotion_page .promotion-table td:nth-child(5), #outsourced_promotion_page .promotion-table td:nth-child(6) { text-align: right; font-weight: 600; color: var(--ok-text); }
#outsourced_promotion_page .promotion-table td:nth-child(2) { white-space: nowrap; }
#outsourced_promotion_page #edit-email-modal #text_editor_mail_content { min-height: 220px; padding: 10px 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: #fff; }

/* pit/pit.html (#pit_page) */
#pit_page #pit_main_tabs { margin: 0 0 16px; }
#pit_page .pit-subtabs { margin: 0 0 14px; }
#pit_page .pl-section { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-left: 3px solid var(--ok-blue);
    border-radius: 10px; color: var(--ok-text); font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; }
#pit_page .card-header.pl-card-head { padding: 12px 16px; background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line-2); color: var(--ok-text); font-weight: 600; }
#pit_page .card-header.pl-card-head :is(h4, h5) { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); }
#pit_page .tab-pane .card { border: 1px solid var(--ok-line-2); box-shadow: none; border-radius: 12px; overflow: hidden; }
#pit_page :is(.condition-row, .condition-row1) { background: var(--ok-surface-2); border-color: var(--ok-line-2) !important; border-radius: 12px; }
#pit_page .disabled_class { background-color: var(--ok-fill) !important; }
#pit_page .readonlycss + .input-group-text i { color: var(--ok-text-4) !important; }
#pit_page .readonly-select:disabled, #pit_page input[disabled] { background-color: var(--ok-fill) !important; color: var(--ok-text-3) !important; border-color: var(--ok-line) !important; cursor: not-allowed !important; }

/* pit/import.html (#pit_import_page) */
#pit_import_page .pit-import-box { margin-bottom: 4px; padding: 16px 16px 4px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 14px; }
#pit_import_page .pit-import-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#pit_import_page .pit-import-box-head .heading_date { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); }
#pit_import_page .pit-import-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: auto; border-radius: var(--ok-r-sm);
    color: var(--ok-text-3); font-size: 18px; }
#pit_import_page .pit-import-close:hover { background: var(--ok-fill); color: var(--ok-text); }
#pit_import_page .pit-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 12px; }
#pit_import_page .pit-import-hint { margin: 0; padding: 18px; text-align: center; border: 1px dashed var(--ok-line); border-radius: 12px; color: var(--ok-text-4); font-size: var(--ok-fs); }
#pit_import_page .pit-import-hint i { color: var(--ok-blue); }
#pit_import_page .pit-import-box:not([style*="none"]) + .pit-import-hint { display: none; }
#pit_import_page .tab-content > .tab-pane > .an-card { margin-top: 0; }

/* hr/payslip_generate, payslip_view, payslip_report (#payslip_*_page) */
#payslip_generate_page .pl-dt-scroll .pl-table td { white-space: nowrap; }
#payslip_generate_page .pl-table td :is(.form-control, .form-select) { min-width: 90px; height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); }
#payslip_generate_page .pl-table tr.total_row > td, #payslip_report_page .pl-table tfoot td {
    background: var(--ok-surface-2) !important; font-weight: 700; color: var(--ok-text); border-top: 1px solid var(--ok-line-2); padding: 12px 14px; }
:is(#payslip_generate_page, #payslip_view_page, #payslip_report_page) #pagination_div { margin-top: 12px; }
:is(#payslip_generate_page, #payslip_view_page, #payslip_report_page) .page-item .page-link { padding: 0 10px; cursor: pointer; }
:is(#payslip_generate_page, #payslip_view_page, #payslip_report_page) .page-item .page-link.disabled { color: var(--ok-text-5); pointer-events: none; }
#payslip_generate_page .pl-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#payslip_generate_page .pl-form-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#payslip_generate_page .pl-form-actions :is(.btn-success, .btn-primary) { border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#payslip_generate_page #bank_details_modal dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
#payslip_generate_page #bank_details_modal :is(dt, dd) { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--ok-line-3); }
#payslip_generate_page #bank_details_modal dt { font-size: var(--ok-fs-sm); font-weight: 400; color: var(--ok-text-3); }
#payslip_generate_page #bank_details_modal dd { color: var(--ok-text); font-weight: 600; }


/* ---- 4x. Users management > Add / Edit user  (modules/users.html #new_div.users-form-ok) -------------
   On the .pl-ok skin (4l) with coloured tabs (4w); the card body is .pl-filter so inputs, select2 and buttons
   take the theme. The form markup is col-4 label + col-7 input rows: here each label sits above its input,
   two fields per row. Section headings (h5.text-uppercase.bg-light) become theme section labels. */
#new_div.users-form-ok { padding-top: 24px; }
#new_div.users-form-ok > .row { margin: 0; }
#new_div.users-form-ok > .row > [class*="col-"] { padding: 0; }
#new_div.users-form-ok .users-detail-card > .an-head .an-head-title h5 { margin-top: 1px; font-family: var(--ok-font-display); font-size: 18px; font-weight: 700;
    letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#new_div.users-form-ok .users-detail-card > .an-head .an-head-sub { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#new_div.users-form-ok .wpa-user-tabs { flex-wrap: wrap; overflow: visible; }
#new_div.users-form-ok .tab-content { padding: 6px 0 0; }

/* label above input: any row holding a label column (directly, or wrapped in a col-*) goes full width */
#new_div.users-form-ok .tab-content .row:has(> .col-form-label, > [class*="col-"] > .col-form-label) > [class*="col-"] {
    flex: 0 0 100%; width: 100%; max-width: 100%; }
#new_div.users-form-ok .tab-content .col-form-label { display: block; width: 100%; padding: 0 0 4px; margin: 0; font-size: var(--ok-fs-xs) !important; font-weight: 600 !important;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); line-height: 1.4; }
#new_div.users-form-ok .tab-content .col-form-label :is(.text-danger, .mandatory) { color: var(--ok-red) !important; }
#new_div.users-form-ok .tab-content .row.mt-2, #new_div.users-form-ok .tab-content .row.mb-2 { margin-top: 0 !important; margin-bottom: 0 !important; }
#new_div.users-form-ok .tab-content .col-lg-6, #new_div.users-form-ok .tab-content .col-lg-12 { margin-bottom: 14px; }
#new_div.users-form-ok .tab-content .col-lg-6 .col-lg-6, #new_div.users-form-ok .tab-content .users-role-row { margin-bottom: 0; }
#new_div.users-form-ok .users-role-row { margin-left: 0; margin-right: 0; padding: 0; }
#new_div.users-form-ok .users-role-row > .col-lg-6 { margin-bottom: 14px; }
#new_div.users-form-ok #reporting_to_container, #new_div.users-form-ok #supporting_by_container { margin: 0 0 14px !important; }
#new_div.users-form-ok .row.my-4 { margin-top: 0 !important; margin-bottom: 0 !important; }

/* section headings */
#new_div.users-form-ok h5.text-uppercase.bg-light { display: flex; align-items: center; gap: 8px; margin: 22px 0 14px !important; padding: 0 0 8px !important;
    background: none !important; border: 0; border-bottom: 1px solid var(--ok-line-2); border-radius: 0;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); color: var(--ok-text-4); }
#new_div.users-form-ok h5.text-uppercase.bg-light::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--ok-grad); }
#new_div.users-form-ok #detail_form h5.text-uppercase.bg-light:first-of-type { margin-top: 6px !important; }
#new_div.users-form-ok #smtp_hint { margin: -6px 0 12px !important; padding: 0 !important; font-size: var(--ok-fs-sm); color: var(--ok-text-4) !important; }

/* inputs */
#new_div.users-form-ok .form-control:not(textarea):not(.js-switch), #new_div.users-form-ok .form-select { min-height: 36px; }
#new_div.users-form-ok .form-control::placeholder { color: var(--ok-text-5); }
#new_div.users-form-ok :is(.form-control[readonly], #txt_username[readonly]) { background: var(--ok-surface-2); color: var(--ok-text-3); }
#new_div.users-form-ok .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* profile photo */
#new_div.users-form-ok .users-photo-row { margin: 4px 0 6px; }
#new_div.users-form-ok .users-photo-row #btn_upload_client { width: 104px !important; height: 104px !important; border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 4px var(--ok-surface), 0 0 0 5px var(--ok-line-2), 0 8px 20px rgba(0, 0, 0, .10); }
#new_div.users-form-ok .users-photo-row #pp-img { object-fit: cover; }
#new_div.users-form-ok .users-photo-row .emp-photo-badge { width: 30px; height: 30px; background: var(--ok-grad) !important; color: #fff !important; border: 2px solid var(--ok-surface);
    box-shadow: var(--ok-shadow-primary); }
#new_div.users-form-ok .emp-photo-hint { color: var(--ok-text-4); font-size: var(--ok-fs-sm); }

/* small buttons inside the form (Select All / Clear, Generate password, SMTP test) */
#new_div.users-form-ok .pl-filter .users-mini-btn { height: 28px; margin-top: 6px !important; padding: 0 12px; font-size: var(--ok-fs-sm); }
#new_div.users-form-ok .pl-filter #btn_generate_password { color: var(--ok-green); }
#new_div.users-form-ok .pl-filter #btn_generate_password i { color: var(--ok-green); }
#new_div.users-form-ok .users-pw-badge { margin-left: 8px; padding: 5px 10px; border-radius: var(--ok-r-pill); background: rgba(52, 199, 89, .14) !important; color: #248a3d !important;
    font-size: 12px; font-weight: 600; white-space: normal; }

/* WPA tab: intro note + days as chips */
#new_div.users-form-ok #tab_t > form > p.text-muted { margin-bottom: 16px !important; padding: 10px 14px; background: rgba(0, 122, 255, .06); border: 1px solid rgba(0, 122, 255, .18);
    border-radius: 12px; color: var(--ok-text-2) !important; font-size: var(--ok-fs); }
#new_div.users-form-ok #tab_t .form-check-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 8px 0 !important; padding: 5px 12px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill); background: var(--ok-surface); }
#new_div.users-form-ok #tab_t .form-check-inline .form-check-input { margin: 0; float: none; }
#new_div.users-form-ok #tab_t .form-check-inline .form-check-label { margin: 0 !important; cursor: pointer; font-size: var(--ok-fs); color: var(--ok-text-2); }
#new_div.users-form-ok #tab_t .form-check-inline:has(.form-check-input:checked) { border-color: rgba(0, 122, 255, .45); background: rgba(0, 122, 255, .08); }
#new_div.users-form-ok #tab_t .form-check-inline:has(.form-check-input:checked) .form-check-label { color: var(--ok-blue); font-weight: 600; }

/* footer: Cancel / Save on the right under a divider */
#new_div.users-form-ok .users-form-actions { margin: 18px -20px -20px !important; padding: 14px 20px; border-top: 1px solid var(--ok-line-2); background: var(--ok-surface-2);
    border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); justify-content: flex-end !important; }
#new_div.users-form-ok .users-form-actions > div:last-child { display: flex; gap: 8px; }
#new_div.users-form-ok .users-form-actions #btn_save { min-width: 120px; }
#new_div.users-form-ok #validation_error_warning { margin: 12px 0 0 !important; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-red) !important; }

@media (max-width: 991.98px) { #new_div.users-form-ok .users-form-actions { margin: 18px -16px -16px !important; } }


/* ---- 4y. Users management > Search filter  (modules/users.html #right-modal.users-search-modal) -------
   Full-height panel from the right: header with icon, grouped fields stacked one per row, sticky footer. */
html body #right-modal.users-search-modal .modal-dialog { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; height: 100%; margin: 0;
    transform: translateX(100%); transition: transform .28s var(--ok-ease); }
html body #right-modal.users-search-modal.show .modal-dialog { transform: none; }
html body #right-modal.users-search-modal .modal-content { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 22px 0 0 22px;
    background: var(--ok-surface) !important; box-shadow: -12px 0 40px rgba(0, 0, 0, .14); overflow: hidden; font-family: var(--ok-font); }
html body #right-modal.users-search-modal .modal-header { align-items: flex-start; gap: 12px; padding: 20px 22px 16px !important; background: var(--ok-surface) !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important; }
#right-modal.users-search-modal .us-head-icon { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; background: var(--ok-grad); color: #fff; font-size: 20px; box-shadow: var(--ok-shadow-primary); }
#right-modal.users-search-modal .us-head-text { min-width: 0; }
html body #right-modal.users-search-modal .modal-header .modal-title { margin: 0 !important; font-family: var(--ok-font-display); font-size: 18px; font-weight: 700;
    letter-spacing: -.01em; color: var(--ok-text) !important; }
#right-modal.users-search-modal .us-head-text p { margin: 2px 0 0; font-size: var(--ok-fs-sm); color: var(--ok-text-3) !important; opacity: 1; }
html body #right-modal.users-search-modal .modal-header .btn-close { margin: 2px 0 0 auto !important; filter: none !important; opacity: .5; }
html body #right-modal.users-search-modal .modal-header .btn-close:hover { opacity: .9; }
#right-modal.users-search-modal .modal-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 22px 20px; }
#right-modal.users-search-modal .us-group { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#right-modal.users-search-modal .us-group::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ok-line-2); }
#right-modal.users-search-modal .us-field { margin-bottom: 14px; }
#right-modal.users-search-modal .form-label { display: block; margin: 0 0 5px; font-size: var(--ok-fs-sm); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ok-text-2); }
#right-modal.users-search-modal .form-control { height: 38px; padding: 0 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface);
    font-size: var(--ok-fs); color: var(--ok-text); box-shadow: none; }
#right-modal.users-search-modal .form-control::placeholder { color: var(--ok-text-5); }
#right-modal.users-search-modal .form-control:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#right-modal.users-search-modal .us-input-icon { position: relative; }
#right-modal.users-search-modal .us-input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--ok-text-4); pointer-events: none; }
#right-modal.users-search-modal .us-input-icon > .form-control { padding-left: 38px; }
#right-modal.users-search-modal .select2-container .select2-selection--single { height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#right-modal.users-search-modal .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; color: var(--ok-text); }
#right-modal.users-search-modal .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
#right-modal.users-search-modal .select2-container--focus .select2-selection,
#right-modal.users-search-modal .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#right-modal.users-search-modal .select2-dropdown { border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); overflow: hidden; }
#right-modal.users-search-modal .select2-results__option--highlighted { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
#right-modal.users-search-modal .modal-footer { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px; background: var(--ok-surface-2);
    border-top: 1px solid var(--ok-line-2); }
#right-modal.users-search-modal .modal-footer .ok-btn { flex: 1 1 0; height: 40px; margin: 0; justify-content: center; }
#right-modal.users-search-modal .modal-footer .ok-btn--primary { flex-grow: 1.6; }


/* ---- 4z. Standard action colours  (Attrition listing + Internal attrition row buttons) -------------
   One meaning per colour, picked from the button's icon so list.js / internal.js stay unchanged:
     blue = view · amber = edit · red = delete / reject · green = approve · grey = withdraw, attachment, conversation
     violet = notify · teal = send (acceptance, to PIT) · indigo = exit interview
   Tinted pill at rest, solid on hover. Reusable on other pages with the .ok-act--* classes. */
:is(#attrition_list_page, #attrition_internal_page) td .btn { --act: #8e8e93; --act-text: #48484d; }   /* default: grey */
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .mdi-eye), :has(> .fa-eye)),                  .ok-act--view     { --act: #007aff; --act-text: #0060c7; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .fa-edit), :has(> .mdi-pencil)),              .ok-act--edit     { --act: #ff9f0a; --act-text: #a54a00; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .mdi-delete), :has(> .fa-trash-alt), :has(> .fa-trash), :has(> .fa-thumbs-down)),
                                                                                                                      .ok-act--danger   { --act: #ff3b30; --act-text: #c4150b; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:has(> .fa-check),                                       .ok-act--approve  { --act: #34c759; --act-text: #1f7a35; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .fe-refresh-cw), :has(> .fa-image), :has(> .fa-comments)),
                                                                                                                      .ok-act--neutral  { --act: #8e8e93; --act-text: #48484d; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:has(> .fa-bell),                                        .ok-act--notify   { --act: #af52de; --act-text: #8133a8; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .fa-paper-plane), :has(> .fa-comment-dollar)), .ok-act--send     { --act: #30b0c7; --act-text: #0e6f82; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:has(> .fa-user-times),                                  .ok-act--interview { --act: #5856d6; --act-text: #3634a3; }


:is(#attrition_list_page, #attrition_internal_page) td .btn:is(:has(> .mdi-eye), :has(> .fa-eye), :has(> .fa-edit), :has(> .mdi-pencil),
    :has(> .mdi-delete), :has(> .fa-trash-alt), :has(> .fa-trash), :has(> .fa-thumbs-down), :has(> .fa-check), :has(> .fe-refresh-cw), :has(> .fa-image), :has(> .fa-comments),
    :has(> .fa-bell), :has(> .fa-paper-plane), :has(> .fa-comment-dollar), :has(> .fa-user-times)),
.ok-act--view, .ok-act--edit, .ok-act--danger, .ok-act--approve, .ok-act--neutral, .ok-act--notify, .ok-act--send, .ok-act--interview {
    display: inline-flex !important; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 9px !important;
    background: color-mix(in srgb, var(--act) 14%, #fff) !important; border: 1px solid color-mix(in srgb, var(--act) 30%, #fff) !important;
    border-radius: 8px !important; color: var(--act-text) !important; box-shadow: none !important; filter: none !important;
    transition: background var(--ok-t), color var(--ok-t), border-color var(--ok-t); }
:is(#attrition_list_page, #attrition_internal_page) td .btn i, :is(.ok-act--view, .ok-act--edit, .ok-act--danger, .ok-act--approve, .ok-act--neutral, .ok-act--notify, .ok-act--send, .ok-act--interview) i {
    color: inherit !important; font-size: 13px; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:not(.disabled):not(:disabled):hover,
:is(.ok-act--view, .ok-act--edit, .ok-act--danger, .ok-act--approve, .ok-act--neutral, .ok-act--notify, .ok-act--send, .ok-act--interview):not(.disabled):not(:disabled):hover {
    background: var(--act) !important; border-color: var(--act) !important; color: #fff !important; }
:is(#attrition_list_page, #attrition_internal_page) td .btn:is(.disabled, :disabled) { opacity: .45; }
:is(#attrition_list_page, #attrition_internal_page) .attrition-actions { gap: 5px; }


/* ---- 4aa. Listing tables: action buttons + status in the theme accent colours ---------------------
   Only row action buttons and status badges / pills INSIDE listing tables. Palette = the stat cards
   (--ok-blue, --ok-purple, --ok-teal, --ok-green, --ok-red, --ok-orange, --ok-pink, --ok-indigo, --ok-gray).
   Row action buttons: ONE colour (--ok-blue), outline - white, blue border + icon, fills blue on hover;
   except approve (green outline) and reject (red outline).
   Status badges / pills = solid --c; white text, dark text on the light colours (orange, teal). */

/* ---------- row action buttons (.pl-ok listings): one colour, outline ---------- */
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close) {
    --c: var(--ok-blue);
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 28px; padding: 0 9px !important;
    background: #fff !important; border: 1.5px solid var(--c) !important; border-radius: 8px !important; color: var(--c) !important;
    box-shadow: none !important; filter: none !important; transition: background var(--ok-t), color var(--ok-t), box-shadow var(--ok-t); }
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close) i { color: inherit !important; }
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close):not(.disabled):not(:disabled):hover {
    background: var(--c) !important; color: #fff !important; box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 35%, transparent) !important; }

/* ---------- status badges (.pl-ok listings) ---------- */
.pl-ok :is(.pl-table, .modal .table) .badge { --c: var(--ok-gray); --c-text: #fff; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-success, .badge-success, .badge-soft-success, .bg-soft-success) { --c: var(--ok-green); }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-danger, .badge-danger, .badge-soft-danger, .bg-soft-danger)     { --c: var(--ok-red); }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-warning, .badge-warning, .badge-soft-warning, .bg-soft-warning) { --c: var(--ok-orange); --c-text: #3a2400; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-info, .badge-info, .badge-soft-info, .bg-soft-info)             { --c: var(--ok-teal); --c-text: #0b3a4d; }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-primary, .bg-blue, .badge-primary, .badge-soft-primary)         { --c: var(--ok-blue); }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-pink, .badge-pink)                                              { --c: var(--ok-pink); }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-purple, .badge-purple)                                          { --c: var(--ok-purple); }
.pl-ok :is(.pl-table, .modal .table) .badge:is(.bg-dark, .badge-dark)                                              { --c: var(--ok-indigo); }
.pl-ok :is(.pl-table, .modal .table) .badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0 !important; border-radius: var(--ok-r-pill);
    background: var(--c) !important; color: var(--c-text) !important; font-size: 11.5px; font-weight: 700;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 30%, transparent); }
.pl-ok :is(.pl-table, .modal .table) .badge::before { background: currentColor; opacity: .85; }

/* ---------- status pills in table rows (.ok-* listings: users, job order requests, interview, CV / client search) ---------- */
table td .ok-pill { --ok-tone-c: var(--ok-gray); --ok-tone: #fff; --ok-tone-bg: var(--ok-tone-c);
    height: 24px; padding: 0 11px; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 6px color-mix(in srgb, var(--ok-tone-c) 30%, transparent); }
table td .ok-pill--success { --ok-tone-c: var(--ok-green); }
table td .ok-pill--warning { --ok-tone-c: var(--ok-orange); --ok-tone: #3a2400; }
table td .ok-pill--orange  { --ok-tone-c: var(--ok-orange); --ok-tone: #3a2400; }
table td .ok-pill--danger  { --ok-tone-c: var(--ok-red); }
table td .ok-pill--info    { --ok-tone-c: var(--ok-blue); }
table td .ok-pill--purple  { --ok-tone-c: var(--ok-purple); }
table td .ok-pill--teal    { --ok-tone-c: var(--ok-teal); --ok-tone: #0b3a4d; }
table td .ok-pill--neutral { --ok-tone-c: var(--ok-gray); }

/* ---------- attrition actions (4z): same single-colour outline ---------- */
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_),
:is(.ok-act--view, .ok-act--edit, .ok-act--danger, .ok-act--approve, .ok-act--neutral, .ok-act--attach, .ok-act--notify, .ok-act--send, .ok-act--interview, .ok-act--outline) {
    --act: var(--ok-blue);
    display: inline-flex !important; align-items: center; justify-content: center; min-width: 32px; height: 28px; padding: 0 9px !important;
    background: #fff !important; border: 1.5px solid var(--act) !important; border-radius: 8px !important; color: var(--act) !important;
    box-shadow: none !important; filter: none !important; transform: none; transition: background var(--ok-t), color var(--ok-t), box-shadow var(--ok-t); }
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_) i { color: inherit !important; font-size: 13px; }
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_):not(.disabled):not(:disabled):hover,
:is(.ok-act--view, .ok-act--edit, .ok-act--danger, .ok-act--approve, .ok-act--neutral, .ok-act--attach, .ok-act--notify, .ok-act--send, .ok-act--interview, .ok-act--outline):not(.disabled):not(:disabled):hover {
    background: var(--act) !important; color: #fff !important; transform: none; box-shadow: 0 3px 8px color-mix(in srgb, var(--act) 35%, transparent) !important; }
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_):is(.disabled, :disabled) { opacity: .4; }

/* ---------- exceptions: approve = green outline, reject = red outline (everything else stays blue) ---------- */
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close):is([value="approve"], [title^="Approve"], [title^="approve"], :has(> .fa-check), :has(> .mdi-check), :has(> .fa-thumbs-up)) { --c: var(--ok-green); }
.pl-ok :is(.pl-table, .modal .table) td .btn:not(.dropdown-toggle):not(.btn-close):is([value="reject"], [title^="Reject"], [title^="reject"], :has(> .fa-thumbs-down), :has(> .fa-times), :has(> .mdi-close)) { --c: var(--ok-red); }
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_):is([value="approve"], :has(> .fa-check)) { --act: var(--ok-green); }
:is(#attrition_list_page, #attrition_internal_page) td .btn.btn:not(#_):is([value="reject"], :has(> .fa-thumbs-down)) { --act: var(--ok-red); }


/* ---- 4ab. Client search: compact result cards + job order View popup  (modules/internal-search/client-search) ----
   Cards: tighter padding / gaps, skills + salary on one footer row (6 chips + "+N").
   Popup (#view-joborder-modal, outside .cls-ok): same look as the job order approval "View details" popup. */
.cls-ok #client_results_cards { gap: 10px !important; }
.cls-ok .cls-jo { padding: 14px 18px; }
.cls-ok .cls-jo-head { gap: 10px; padding-bottom: 10px; }
.cls-ok .cls-jo-title { font-size: 15px; }
.cls-ok .cls-jo-head .ok-btn--sm { height: 28px; }
.cls-ok .cls-jo-meta { gap: 8px 14px; margin-top: 10px; }
.cls-ok .cls-jo-meta dt { margin-bottom: 2px; font-size: 10.5px; }
.cls-ok .cls-jo-meta dd { font-size: 13.5px; line-height: 1.35; }
.cls-ok .cls-jo-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--ok-line-3); }
.cls-ok .cls-jo-foot .ok-label { display: block; margin-bottom: 4px; font-size: 10.5px; }
.cls-ok .cls-jo-skills { flex: 1 1 360px; min-width: 0; }
.cls-ok .cls-jo-skills .ok-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cls-ok .cls-jo-skills .ok-chip { height: 22px; padding: 0 9px; font-size: 11.5px; }
.cls-ok .cls-jo-skills .cls-chip-more { background: rgba(0, 122, 255, .08); border-color: rgba(0, 122, 255, .25); color: var(--ok-blue); cursor: help; }
.cls-ok .cls-jo-pay { flex: 0 0 auto; text-align: right; }
.cls-ok .cls-jo-salary { font-size: 15px; }
.cls-ok .cls-jo-salary.is-empty { font-size: 13px; }
@media (max-width: 575.98px) { .cls-ok .cls-jo-pay { text-align: left; } }

/* View popup */
html body #view-joborder-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ok-shadow-lg); font-family: var(--ok-font); color: var(--ok-text-2); }
html body #view-joborder-modal .modal-header { align-items: center; gap: 12px; padding: 16px 22px !important; background: var(--ok-surface) !important; background-image: none !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important; }
html body #view-joborder-modal .modal-header .modal-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font-family: var(--ok-font-display);
    font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text) !important; }
html body #view-joborder-modal .modal-header .modal-title i { margin: 0 !important; font-size: 20px; color: var(--ok-blue) !important; }
html body #view-joborder-modal .modal-header small { display: block; margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-3) !important; opacity: 1; }
html body #view-joborder-modal .modal-header .btn-close { margin: 0 0 0 auto !important; filter: none !important; opacity: .5; }
html body #view-joborder-modal .modal-header .btn-close:hover { opacity: .9; }
html body #view-joborder-modal .modal-body { padding: 18px 22px; background: var(--ok-surface); }
html body #view-joborder-modal .modal-footer { padding: 12px 22px; background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); }
html body #view-joborder-modal .modal-footer .ok-btn { height: 36px; margin: 0; }
#view-joborder-modal .cvs-view-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
#view-joborder-modal .cvs-view-tags .ok-pill { height: 24px; padding: 0 11px; font-size: 11.5px; }
#view-joborder-modal .cvs-view-tags .ok-chip { height: 24px; gap: 4px; }
#view-joborder-modal .cvs-view-tags .ok-chip i { color: var(--ok-blue); font-size: 13px; }
#view-joborder-modal .cvs-dsec { margin-bottom: 14px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px; overflow: hidden; }
#view-joborder-modal .cvs-dsec-title { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line-2);
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#view-joborder-modal .cvs-dsec-title i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; border-radius: 7px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 14px; }
#view-joborder-modal .cvs-dsec-body { padding: 4px 16px 6px; }
#view-joborder-modal .cvs-dsec-body > .row { --bs-gutter-x: 28px; --bs-gutter-y: 0; }
#view-joborder-modal .cvs-dl { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--ok-line-3); }
#view-joborder-modal .cvs-dl-label { margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#view-joborder-modal .cvs-dl-value { font-size: 14px; font-weight: 600; color: var(--ok-text); line-height: 1.45; }
#view-joborder-modal .cvs-chip { display: inline-flex; align-items: center; height: 24px; margin: 0 4px 4px 0; padding: 0 10px; border: 1px solid #dcdce0; border-radius: var(--ok-r-pill);
    background: var(--ok-fill); color: var(--ok-text-2); font-size: 12px; font-weight: 600; }
#view-joborder-modal .cvs-dl-value .btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm);
    background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#view-joborder-modal .cvs-dl-value .btn i { color: var(--ok-blue); }
#view-joborder-modal .cvs-empty { padding: 40px 16px !important; color: var(--ok-text-4); text-align: center; }


/* ---- 4ac. Client search: filters on the left, results on the right  (#client_search_div only; CV search shares .cls-ok) ----
   .cls-layout = 330px sticky filter card (scrolling body, Search pinned at the bottom) + results column.
   Until the first search (#client_list_div hidden) the right column shows the .cls-start hint. */
#client_search_div .cls-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
#client_search_div .cls-side { position: sticky; top: 86px; min-width: 0; }
#client_search_div .cls-side-card { display: flex; flex-direction: column; max-height: calc(100vh - 110px); padding: 0; overflow: hidden; }
#client_search_div .cls-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--ok-line-2); }
#client_search_div .cls-side-title { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ok-text); }
#client_search_div .cls-side-title > i { font-size: 18px; color: var(--ok-blue); }
#client_search_div .cls-side-title .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--ok-r-pill); background: var(--ok-blue); color: #fff;
    font-size: 11px; line-height: 20px; }
#client_search_div .cls-side-head .ok-btn--ghost { height: 28px; padding: 0 8px; color: var(--ok-text-3); }
#client_search_div .cls-side-head .ok-btn--ghost:hover { color: var(--ok-red); }
#client_search_div .cls-side-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; }
#client_search_div .cls-side-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); }
#client_search_div .cls-side-foot .cls-note { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#client_search_div .cls-side-foot .ok-btn { height: 40px; }

/* keyword box: compact, inside the card */
#client_search_div .cls-side .cls-bar { display: block; }
#client_search_div .cls-side .cls-bar-input { min-height: 40px; padding: 0 40px 0 34px; border-radius: var(--ok-r); box-shadow: none; border-color: var(--ok-line); }
#client_search_div .cls-side .cls-bar-input > .mdi { left: 11px; font-size: 17px; }
#client_search_div .cls-side .cls-bar-input > .ok-kbd { right: 10px; }
#client_search_div .cls-side .cls-bar-input .select2-container .select2-selection--multiple { min-height: 38px; padding: 2px 0; }
#client_search_div .cls-side .cls-bar-input .select2-search--inline .select2-search__field { font-size: var(--ok-fs); }

/* filter sections: one column, small headings with a rule */
#client_search_div .cls-side .cls-filters { margin-top: 4px; }
#client_search_div .cls-side .cls-fsec { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#client_search_div .cls-side .cls-fsec::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ok-line-2); }
#client_search_div .cls-side .cls-fsec:first-child { margin-top: 12px; }
#client_search_div .cls-side .cls-fgrid, #client_search_div .cls-side .cls-fgrid--2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
#client_search_div .cls-side .ok-label { font-size: var(--ok-fs-sm); text-transform: none; letter-spacing: 0; color: var(--ok-text-2); }
#client_search_div .cls-side .ok-input, #client_search_div .cls-side .ok-select { height: 36px; }
#client_search_div .cls-side .cls-range { flex-wrap: wrap; }
#client_search_div .cls-side .cls-range .ok-input { flex: 1 1 0; min-width: 0; }
#client_search_div .cls-side .cls-range .ok-select { flex: 1 1 100%; }

/* results column */
#client_search_div .cls-main { min-width: 0; }
#client_search_div .cls-main .cls-results-head { margin-top: 0; }
#client_search_div .cls-main .cls-results-head .ok-search { width: 240px; }
#client_search_div .cls-start { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 56px 24px; text-align: center; }
#client_search_div .cls-start > i { font-size: 40px; color: var(--ok-blue); opacity: .8; }
#client_search_div .cls-start strong { font-size: 16px; color: var(--ok-text); }
#client_search_div .cls-start span { max-width: 380px; font-size: var(--ok-fs); color: var(--ok-text-3); }
#client_search_div .cls-main:has(> #client_list_div[style*="none"]) .cls-start { display: flex; }

@media (max-width: 1199.98px) { #client_search_div .cls-layout { grid-template-columns: 290px minmax(0, 1fr); } }
@media (max-width: 991.98px) {
    #client_search_div .cls-layout { grid-template-columns: minmax(0, 1fr); }
    #client_search_div .cls-side { position: static; }
    #client_search_div .cls-side-card { max-height: none; }
}


/* ---- 4ad. Set up > Clients  (modules/crm/crm-stack-holders-listing, route stake-holders) ----------------
   On the .pl-ok skin (4l). Replaces the page's old <style> block and crm-stack-holders-listing.css.
   Layout: page head (title + count | Assign / Search / Add), inline search card (#searchDiv, a filter grid),
   the client list card (#list_div), and the add / edit form card (#new_div) + contacts card (#div_sub_details),
   which the page js swaps with the list. Form tabs are a segmented control (.pl-tabs). */

/* small square close button in a card head (search card, client form) */
#stake_holders_page .sh-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text-3); font-size: 16px;
    box-shadow: var(--ok-shadow-xs); transition: background var(--ok-t), color var(--ok-t); }
#stake_holders_page .sh-close-btn:hover, #stake_holders_page .sh-close-btn:focus-visible { background: var(--ok-surface-2); color: var(--ok-text); }

/* search card: fields in an auto-fit grid, Reset / Search under a divider */
#stake_holders_page .sh-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 16px; }
#stake_holders_page .sh-filter-grid > div { min-width: 0; }
#stake_holders_page .pl-filter .sh-label-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#stake_holders_page .sh-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-size: var(--ok-fs-sm); font-weight: 500;
    letter-spacing: 0; text-transform: none; color: var(--ok-text-3); }
#stake_holders_page .sh-check .form-check-input { float: none; margin: 0; }
#stake_holders_page .sh-check--box { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface);
    font-size: var(--ok-fs); color: var(--ok-text-2); }
#stake_holders_page .sh-check--box:has(.form-check-input:checked) { border-color: rgba(0, 122, 255, .45); background: rgba(0, 122, 255, .06); color: var(--ok-blue); font-weight: 600; }
#stake_holders_page .sh-filter-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }

/* client list */
#stake_holders_page .sh-main-body > hr { display: none; }
#stake_holders_page #tbl_list > tbody > tr > td:first-child { font-weight: 600; color: var(--ok-text); }
#stake_holders_page #tbl_list .task-assign { margin-top: 4px; font-size: var(--ok-fs-sm); font-weight: 400; color: var(--ok-text-3); }
#stake_holders_page #tbl_list .task-assign strong { font-weight: 500; }
#stake_holders_page #tbl_list .task-assign i { margin-right: 4px; color: var(--ok-blue) !important; }
#stake_holders_page #tbl_list td > a.tooltips:not(.btn) { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px;
    border: 1.5px solid var(--ok-red); border-radius: 8px; background: #fff; color: var(--ok-red); vertical-align: middle; transition: background var(--ok-t), color var(--ok-t); }
#stake_holders_page #tbl_list td > a.tooltips:not(.btn):hover { background: var(--ok-red); color: #fff; }
/* client status pills the shared listing rules (4aa) don't name */
#stake_holders_page .pl-table .badge.bg-soft-pink    { --c: var(--ok-pink); }
#stake_holders_page .pl-table .badge.bg-soft-dark    { --c: #3a3a3c; }
#stake_holders_page .pl-table .badge.bg-soft-blue    { --c: var(--ok-gray); }
#stake_holders_page .pl-table .badge.bg-soft-primary { --c: var(--ok-purple); }
#stake_holders_page #div_load_more .btn { height: 32px; padding: 0 16px; border: 1px solid var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2);
    font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }

/* client form card: "CLIENT PROFILE" eyebrow over the client id / name */
#stake_holders_page .sh-form-head .an-head-sub { margin: 0 0 2px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#stake_holders_page .sh-form-head .an-head-title h5 { font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#stake_holders_page .sh-form-head #client_name_span:not(:empty)::before { content: "· "; color: var(--ok-text-5); }
#stake_holders_page #new_div .panel-body > .row { margin: 0; }
#stake_holders_page #new_div .panel-body > .row > .col-md-12 { padding: 0; }
#stake_holders_page .sh-form-tabs { display: flex; width: fit-content; max-width: 100%; margin-bottom: 18px; }
#stake_holders_page .tab-pane > hr:first-child, #stake_holders_page #progressbarwizard > br { display: none; }
#stake_holders_page :is(#new_div, #div_sub_details) hr { border-color: var(--ok-line-2); opacity: 1; }
#stake_holders_page :is(#new_div, #div_sub_details) textarea.form-control { min-height: 72px; line-height: 1.5; }
#stake_holders_page :is(#new_div, #div_sub_details) .form-control[readonly]:not(.flatpickr-input), #stake_holders_page :is(#new_div, #div_sub_details) .form-control:disabled {
    background: var(--ok-surface-2); color: var(--ok-text-3); }
#stake_holders_page :is(#new_div, #div_sub_details) .col-form-label { font-size: var(--ok-fs-sm) !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ok-text-2); }

/* section headings inside the form (old purple / grey strips) -> theme section labels */
#stake_holders_page :is(#new_div, #div_sub_details) :is(h5.text-uppercase, h4.clientinput, h4.header-title, .tab-pane h4.mb-3) {
    display: flex; align-items: center; gap: 8px; margin: 18px 0 14px !important; padding: 0 0 8px !important; background: none !important; border: 0; border-bottom: 1px solid var(--ok-line-2);
    border-radius: 0; font-family: var(--ok-font); font-size: var(--ok-fs-xs) !important; font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4) !important; }
#stake_holders_page :is(#new_div, #div_sub_details) :is(h5.text-uppercase, h4.clientinput, h4.header-title, .tab-pane h4.mb-3)::before {
    content: ""; flex: 0 0 4px; width: 4px; height: 14px; border-radius: 2px; background: var(--ok-grad); }
#stake_holders_page :is(#new_div, #div_sub_details) .card-body h4[style*="float"] { margin: 0 8px 0 0; font-family: var(--ok-font-display); font-size: 16px; font-weight: 700; color: var(--ok-text); }

/* cards inside the form: plain wrappers lose their chrome; the policy cards (with a header) become light boxes */
#stake_holders_page :is(#new_div, #div_sub_details) .card { background: transparent; border: 0; box-shadow: none !important; }
#stake_holders_page :is(#new_div, #div_sub_details) .card > .card-body { padding: 8px 0; }
#stake_holders_page :is(#new_div, #div_sub_details) .card:has(> .card-header) { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px; overflow: hidden; }
#stake_holders_page :is(#new_div, #div_sub_details) .card:has(> .card-header) > .card-body { padding: 16px; }
#stake_holders_page :is(#new_div, #div_sub_details) .card-header { padding: 12px 16px; background: var(--ok-surface-2) !important; border-bottom: 1px solid var(--ok-line-2); color: var(--ok-text) !important; }
#stake_holders_page :is(#new_div, #div_sub_details) .card-header :is(h4, h5) { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--ok-text) !important; }
#stake_holders_page :is(#new_div, #div_sub_details) .card-header i { color: var(--ok-blue) !important; }
#stake_holders_page :is(#new_div, #div_sub_details) .border.p-2 { border-color: var(--ok-line-2) !important; border-radius: 14px; padding: 16px !important; }

/* tabs inside a tab (Documents repository) -> underline tabs */
#stake_holders_page .nav-tabs.nav-bordered { gap: 4px; border-bottom: 1px solid var(--ok-line-2) !important; }
#stake_holders_page .nav-tabs.nav-bordered .nav-link { padding: 10px 14px !important; border: 0 !important; background: none !important; color: var(--ok-text-4) !important;
    font-size: var(--ok-fs); font-weight: 600; text-transform: none; }
#stake_holders_page .nav-tabs.nav-bordered .nav-link.active { color: var(--ok-text) !important; box-shadow: inset 0 -2px 0 var(--ok-blue); }

/* wizard Previous / Next, then Save bar */
#stake_holders_page .list-inline.wizard { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 !important; }
#stake_holders_page .list-inline.wizard .float-end { float: none !important; margin-left: auto; }
#stake_holders_page .list-inline.wizard .disabled .btn { opacity: .45; pointer-events: none; }
#stake_holders_page #save_button_group { margin: 0 !important; }
#stake_holders_page #save_button_group #div_btn { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 14px;
    border-top: 1px solid var(--ok-line-2); }
#stake_holders_page .pl-filter #client_details_toggle { margin-right: auto !important; border-color: var(--ok-line); background: var(--ok-surface); color: var(--ok-text); box-shadow: var(--ok-shadow-xs); }
#stake_holders_page .pl-filter #client_details_toggle i { color: var(--ok-text-3); }
#stake_holders_page #save_button_group #btn_save { min-width: 112px; }

/* contacts card under the form */
#stake_holders_page #div_sub_details > .col-sm-12 { padding: 0; }
#stake_holders_page #div_sub_details .sh-sub-inner { padding-top: 18px; }
#stake_holders_page #div_sub_details .sh-sub-inner > .col-xl-12 { padding: 0; }

/* checklist table + role hint (kept from the old <style> block) */
#stake_holders_page #tbl_checklist td { vertical-align: middle; }
#stake_holders_page #tbl_checklist i { cursor: pointer; }
#stake_holders_page .role-tooltip-wrapper { position: relative; cursor: pointer; }
#stake_holders_page .role-tooltip { position: absolute; bottom: 120%; left: 0; z-index: 9999; width: 420px; max-width: 95vw; max-height: 240px; overflow-y: auto; padding: 12px 14px;
    background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); color: var(--ok-text-2); font-size: var(--ok-fs);
    line-height: 1.6; white-space: normal; word-break: break-word; opacity: 0; visibility: hidden; transition: opacity var(--ok-t), visibility var(--ok-t); }
#stake_holders_page .role-tooltip-wrapper:hover .role-tooltip { opacity: 1; visibility: visible; }

/* Assign client(s) modal: Select all / Clear all */
#stake_holders_page #assignClientModal .modal-body .btn-sm { height: 28px; padding: 0 12px; border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); font-weight: 600; }
#stake_holders_page #assignClientModal .modal-body .btn-outline-primary { background: transparent; border: 1px solid rgba(0, 122, 255, .45); color: var(--ok-blue); box-shadow: none; }
#stake_holders_page #assignClientModal .modal-body .btn-outline-primary:hover { background: rgba(0, 122, 255, .08); }

@media (max-width: 767.98px) {
    #stake_holders_page .sh-form-tabs { width: 100%; }
    #stake_holders_page .sh-filter-actions .btn { flex: 1 1 0; }
}


/* ---- 4ae. Set up > Configuration  (modules/configuration, route settings/configuration) ------------------
   On the .pl-ok skin (4l): panels are .an-card / .an-head / .an-body.pl-filter, tabs .pl-tabs, tables .pl-table.
   The page still carries .cfg-page, so ui-common.css (.cfg-page / .cvs-*) loads under it; the rules below
   re-tone what is left of that (dark table heads, section titles, form actions, list toolbar and pager). */

/* tab bar under the page head; sub-tabs (Job order, Stake-holder, Notification) are the same segmented control */
#configuration_page .cfg-tabbar { margin-bottom: 18px; }
#configuration_page .cfg-tabbar .pl-tabs { margin: 0; max-width: 100%; }
#configuration_page .cfg-page .tab-content { padding-top: 0; }
#configuration_page .tab-pane > .pl-tabs, #configuration_page .an-body .pl-tabs { margin-bottom: 14px; }
#configuration_page .an-body > .row > .pl-tabs { width: auto; margin-left: calc(var(--bs-gutter-x) * .5); }

/* tables: light heads (beats .cfg-page .table th from ui-common.css) */
#configuration_page .pl-table > thead > tr > th { background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border-color: var(--ok-line-2) !important; }
#configuration_page .pl-table > tbody > tr > td { color: var(--ok-text-2); border-color: var(--ok-line-3); }
#configuration_page .pl-table.table-bordered > :not(caption) > * > * { border-left: 0; border-right: 0; }
#configuration_page .table-responsive.pl-boxed { overflow: auto; }
#configuration_page .pl-table .cvs-empty { padding: 36px 16px !important; text-align: center; color: var(--ok-text-4); }
#configuration_page .pl-table .cvs-empty > i { display: block; margin-bottom: 6px; font-size: 30px; color: var(--ok-blue); opacity: .7; }
#configuration_page .cvs-table-wrap { position: relative; }
#configuration_page .cvs-loading { border-radius: 12px; background: rgba(255, 255, 255, .7); }
#configuration_page .cvs-loading .spinner-border { color: var(--ok-blue) !important; }
#configuration_page #approvalTable td:first-child, #configuration_page #approvalTable td:nth-child(2) { background: var(--ok-surface-2); }

/* Dropdown values: search / sort / page size toolbar + pager */
#configuration_page .cvs-toolbar-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#configuration_page .cvs-toolbar-row :is(.form-control, .form-select, .input-group-text) { height: 32px; min-height: 32px !important; font-size: var(--ok-fs); }
#configuration_page .cvs-toolbar-row .cvs-subsearch { width: 320px; max-width: 100%; }
#configuration_page .cvs-toolbar-row .cvs-subsearch .input-group-text { border-radius: var(--ok-r) 0 0 var(--ok-r); background: var(--ok-surface) !important; }
#configuration_page .cvs-toolbar-row .cvs-subsearch .form-control { border-radius: 0; }
#configuration_page .cvs-toolbar-row .btn { height: 32px; min-width: 32px; padding: 0 10px; box-shadow: none; }
#configuration_page .cvs-toolbar-row .cvs-subsearch .btn { border-radius: 0 var(--ok-r) var(--ok-r) 0 !important; }
#configuration_page .cvs-toolbar-row .btn-group { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
#configuration_page .cvs-toolbar-row .btn-group > .btn { height: 26px; border: 0; border-radius: var(--ok-r-sm) !important; background: transparent; }
#configuration_page .cvs-toolbar-row .btn-group > .btn.active { background: var(--ok-surface); color: var(--ok-blue); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
#configuration_page .cvs-toolbar-row .btn-group > .btn.active i { color: var(--ok-blue); }
#configuration_page .cvs-toolbar-row label.small { font-size: var(--ok-fs-sm); color: var(--ok-text-4) !important; }
#configuration_page .cvs-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#configuration_page .cvs-pager .small { font-size: var(--ok-fs-sm); color: var(--ok-text-4) !important; }
#configuration_page .cvs-pager-btns { display: flex; align-items: center; gap: 4px; }
#configuration_page .cvs-pager-btns .btn { width: 32px; height: 32px; padding: 0; }

/* section titles inside a panel ("Benefits", "Documents", "Billing approval"...) */
#configuration_page .cvs-section-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-family: var(--ok-font); font-size: var(--ok-fs-xs) !important;
    font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4) !important; }
#configuration_page .cvs-section-title::before { content: ""; flex: 0 0 4px; width: 4px; height: 14px; border-radius: 2px; background: var(--ok-grad); }
#configuration_page .cvs-section-title::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--ok-line-2); }
#configuration_page .cvs-section-title + hr { display: none; }
#configuration_page .section-box { margin-bottom: 14px; padding: 16px; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: none; }
#configuration_page hr { border-color: var(--ok-line-2); opacity: 1; }

/* Save / Cancel row of each panel */
#configuration_page .cvs-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--ok-line-2); }
#configuration_page .cvs-form-actions .cvs-hint { margin-right: auto; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#configuration_page .cvs-hint { color: var(--ok-text-4); }
/* the two panels whose content is not wrapped in an .an-body */
#configuration_page .cfg-loose { padding-bottom: 20px; }
#configuration_page .cfg-loose > :not(.an-head) { padding-left: 20px; padding-right: 20px; }

/* forms: the side-by-side "label | input" rows put the label above its input */
#configuration_page .an-body .row:has(> [class*="col-"] > .col-form-label) > [class*="col-"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
#configuration_page .an-body .row:has(> [class*="col-"] > .col-form-label) > [class*="col-"]:has(> .col-form-label) { padding-bottom: 0; }
#configuration_page .an-body .col-form-label { display: block; padding: 0 0 4px; margin: 0; line-height: 1.4; }
#configuration_page .an-body .col-form-label :is(.mandatory, .text-danger) { color: var(--ok-red) !important; }
#configuration_page .an-body form > .row.mt-2 + .row.mt-2 { margin-top: 14px !important; }
#configuration_page .an-body .form-check-label { font-size: var(--ok-fs); letter-spacing: 0; text-transform: none; color: var(--ok-text-3); }
#configuration_page .an-body .form-switch .form-check-input { width: 2.2em; height: 1.2em; }
#configuration_page .an-body [contenteditable="true"] { min-height: 140px; padding: 10px 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); }
#configuration_page .an-body .note-editor, #configuration_page .an-body .ck-editor { border-radius: var(--ok-r); overflow: hidden; }


/* Company > Employer form. styles.css zeroes the padding of every form.form-horizontal, and these forms are the card body */
#configuration_page form.form-horizontal.an-body { padding: 4px 20px 20px !important; }
#configuration_page .cfg-emp > .cvs-section-title:first-child { margin-top: 6px; }
#configuration_page .cfg-emp .row.g-3 { --bs-gutter-y: 14px; }
#configuration_page .cfg-emp textarea.form-control { min-height: 88px; resize: vertical; }
#configuration_page .cfg-switch { display: flex; align-items: center; gap: 10px; height: 36px; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-2); }
#configuration_page .cfg-switch .switchery { margin: 0; }
/* uploads: logo tile, Browse buttons */
#configuration_page .cfg-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#configuration_page .cfg-upload label.cabinet { position: relative; display: inline-block; margin: 0; overflow: hidden; border-radius: 12px; }
#configuration_page .cfg-upload label.cabinet input.file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#configuration_page .cfg-upload .img-thumbnail { display: block; max-width: 100%; max-height: 96px; padding: 10px; background: var(--ok-surface-2); border: 1px dashed var(--ok-line);
    border-radius: 12px; transition: border-color var(--ok-t); }
#configuration_page .cfg-upload label.cabinet:hover .img-thumbnail { border-color: var(--ok-blue); }
#configuration_page .cfg-upload .fileinput-button { position: relative; overflow: hidden; cursor: pointer; }
#configuration_page .cfg-upload .fileinput-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 200px; }
#configuration_page .pl-filter .cfg-upload #btn_remove_logo { height: 28px; padding: 0 10px; font-size: var(--ok-fs-sm); color: var(--ok-red); box-shadow: none; }
#configuration_page .pl-filter .cfg-upload #btn_remove_logo i { color: var(--ok-red); }
#configuration_page .cfg-upload .cvs-hint { font-size: var(--ok-fs-sm); }
#configuration_page .cfg-upload [id$="_files"]:empty, #configuration_page .cfg-upload .files:empty { display: none; }
@media (max-width: 767.98px) {
    #configuration_page .cvs-toolbar-row .cvs-subsearch { width: 100%; }
}


/* ---- 4af. Set up > Overtime configuration  (modules/overtime_config, route settings/overtime-configuration) ----
   On the .pl-ok skin (4l); its old <style> block, scoped and re-toned. */
#overtime_config_page .ot-name-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
#overtime_config_page .ot-name-row > div { flex: 1 1 320px; max-width: 520px; }
#overtime_config_page .ot-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--ok-line-2); }
#overtime_config_page .pl-filter .ot-actions #btn_add_new_type i { color: var(--ok-blue); }
#overtime_config_page #otTable td .form-control { min-height: 34px; }
#overtime_config_page #otTable td.text-center, #overtime_config_page #tbl_listing_ot td.text-center { text-align: center; }


/* ---- 4ag. Set up > Positions and permissions  (modules/roles/roles, route roles) ------------------------------
   On the .pl-ok skin (4l): search card, list with a sort control in its head, add / edit card with three tabs. */
#roles_page .rl-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text-3); font-size: 16px; box-shadow: var(--ok-shadow-xs); }
#roles_page .rl-close-btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
#roles_page .rl-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#roles_page .pl-filter .rl-form-actions .btn { min-width: 100px; }
#roles_page .pl-head #btn_reset_filter i { color: var(--ok-blue); }

/* sort control in the list head: label, select, A-Z / Z-A as a segmented pair */
#roles_page .rl-sort { gap: 8px; margin: 0; }
#roles_page .rl-sort-label { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); white-space: nowrap; }
#roles_page .rl-sort .form-select { width: auto; min-width: 160px; height: 32px; padding: 0 32px 0 10px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm);
    font-size: var(--ok-fs); color: var(--ok-text); }
#roles_page .rl-sort-dir { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
#roles_page .an-head-actions .rl-sort-dir .btn { width: 30px; height: 26px; padding: 0; border: 0; border-radius: var(--ok-r-sm) !important; background: transparent; box-shadow: none; }
#roles_page .an-head-actions .rl-sort-dir .btn:hover { background: var(--ok-surface); }

/* list: name in bold, edit icon as the theme outline button, pager on the right */
#roles_page #tbl_list > tbody > tr { cursor: pointer; }
#roles_page #tbl_list > tbody > tr > td:first-child { font-weight: 600; color: var(--ok-text); }
#roles_page #tbl_list td .action-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border: 1.5px solid var(--ok-blue);
    border-radius: 8px; background: #fff; color: var(--ok-blue); font-size: 15px; transition: background var(--ok-t), color var(--ok-t); }
#roles_page #tbl_list td .action-icon:hover { background: var(--ok-blue); color: #fff; }
#roles_page .rl-pager { display: flex; justify-content: flex-end; margin-top: 12px; }
#roles_page .rl-pager .pagination:empty { display: none; }

/* form card */
#roles_page #new_div .an-head .an-head-sub { margin: 0 0 2px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#roles_page #new_div .an-head .an-head-title h5 { font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#roles_page #new_div .tab-content { padding-top: 6px; }
#roles_page .rl-section { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#roles_page .rl-section:first-child { margin-top: 4px; }
#roles_page .rl-section::before { content: ""; flex: 0 0 4px; width: 4px; height: 14px; border-radius: 2px; background: var(--ok-grad); }
#roles_page .rl-section::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--ok-line-2); }
/* switches: one tile each */
#roles_page .rl-switch { display: flex; align-items: center; gap: 10px; min-height: 36px; }
#roles_page .rl-switch .switchery { flex: 0 0 auto; margin: 0; }
#roles_page .rl-switch label { margin: 0; cursor: pointer; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-2); }
#roles_page .rl-switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
#roles_page .rl-switch-grid .rl-switch { height: 100%; padding: 10px 14px; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface-2); }
/* module permission matrix: scrolls under a sticky head; module rows as group headers */
#roles_page .rl-access-wrap { max-height: 60vh; overflow: auto; }
#roles_page #tbl_access thead th { position: sticky; top: 0; z-index: 2; }
#roles_page #tbl_access > thead > tr > th:not(:first-child), #roles_page #tbl_access > tbody > tr > td:not(:first-child) { width: 110px; text-align: center; }
#roles_page #tbl_access > tbody > tr > td { padding: 8px 14px; }
#roles_page #tbl_access > tbody > tr > td[colspan] { background: var(--ok-surface-2); color: var(--ok-text); }
#roles_page #tbl_access .form-check { display: inline-flex; align-items: center; gap: 8px; min-height: 0; margin: 0 !important; padding: 0; }
#roles_page #tbl_access .form-check .form-check-input { float: none; margin: 0; width: 17px; height: 17px; cursor: pointer; }
#roles_page #tbl_access td b { font-weight: 600; }


/* ---- 4ah. Set up > Approvals  (modules/hrms/approvals/list, route approvals) ---------------------------------
   On the .pl-ok skin (4l): workflow list, then a details card and a levels card (rows built by list.js). */
#approvals_page .ap-check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin: 0; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); font-size: var(--ok-fs); color: var(--ok-text-2); cursor: pointer; }
#approvals_page .ap-check .form-check-input { float: none; margin: 0; }
#approvals_page .ap-check:has(.form-check-input:checked) { border-color: rgba(52, 199, 89, .5); background: rgba(52, 199, 89, .08); color: #248a3d; font-weight: 600; }
#approvals_page .ap-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#approvals_page .pl-filter .ap-form-actions .btn { min-width: 100px; }
#approvals_page #tbl_approval_template > tbody > tr > td:nth-child(2) { font-weight: 600; color: var(--ok-text); }
/* level rows: drag handle feel, stacked Role / Employee pickers */
#approvals_page #tbl_approval_levels > tbody > tr { cursor: move; }
#approvals_page #tbl_approval_levels > tbody > tr > td { vertical-align: top; padding: 14px; }
#approvals_page #tbl_approval_levels > tbody > tr > td.level_no { vertical-align: middle; }
#approvals_page #tbl_approval_levels .level_no { font-family: var(--ok-font-display); font-size: 18px; color: var(--ok-blue); }
#approvals_page .approval-box { display: flex; flex-direction: column; min-width: 180px; }
#approvals_page .approval-label { margin: 0 0 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#approvals_page .approval-label.mt-2 { margin-top: 10px !important; }
#approvals_page #tbl_approval_levels :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); cursor: auto; }
#approvals_page #tbl_approval_levels .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#approvals_page #tbl_approval_levels .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; }
#approvals_page #tbl_approval_levels .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#approvals_page .pl-table td .btn_remove_level { --c: var(--ok-red); }
#approvals_page #tbl_approval_levels .ui-sortable-helper { background: var(--ok-surface); box-shadow: var(--ok-shadow-lg); }
#approvals_page #tbl_approval_levels .ui-sortable-placeholder { visibility: visible !important; background: rgba(0, 122, 255, .06); }


/* ---- 4ai. Billing > Billing configuration  (modules/billing-configuration, route billing-configuration) -----------
   On the .pl-ok skin (4l). Was a <style> block in the page; re-toned to the theme. The offering section carries
   data-section (CS / PP / TP, set by the js) which picks the accent used by the template cards and chips. */
#billing_config_page { --bc-accent: var(--ok-gray); }
#billing_config_page [data-section="CS"] { --bc-accent: var(--ok-blue); }
#billing_config_page [data-section="PP"] { --bc-accent: var(--ok-green); }
#billing_config_page [data-section="TP"] { --bc-accent: var(--ok-orange); }

/* list: search lives in a side panel (.pl-side, 4l); the active client filter shows as a chip in the card head */
#billing_config_page .bc-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: var(--ok-fs-sm); font-weight: 600; }
#billing_config_page .bc-filter-chip a { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: var(--ok-blue); }
#billing_config_page .bc-filter-chip a:hover { background: rgba(0, 122, 255, .16); }
#billing_config_page .pl-toolbar #btn_bc_search.is-filtered { position: relative; border-color: rgba(0, 122, 255, .45); color: var(--ok-blue); }
#billing_config_page .pl-toolbar #btn_bc_search.is-filtered i { color: var(--ok-blue); }
#billing_config_page .pl-toolbar #btn_bc_search.is-filtered::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--ok-blue); box-shadow: 0 0 0 2px var(--ok-surface); }
/* offering pill, row buttons */
#billing_config_page #tbl_list > tbody > tr > td:nth-child(2) { font-weight: 600; color: var(--ok-text); }
#billing_config_page .bc-offer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--ok-r-pill); font-size: 12px; font-weight: 600;
    background: color-mix(in srgb, var(--bc-accent) 14%, transparent); color: color-mix(in srgb, var(--bc-accent) 80%, #000); }
#billing_config_page .bc-offer-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#billing_config_page .pl-table td .bc-delete { --c: var(--ok-red); }

/* form */
#billing_config_page .bc-hint { display: block; margin-top: 4px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#billing_config_page .bc-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
    background: rgba(142, 142, 147, .14); color: var(--ok-text-4); }
#billing_config_page .bc-empty { margin-bottom: var(--ok-gap); padding: 44px 16px; text-align: center; border: 2px dashed var(--ok-line); border-radius: var(--ok-r-lg); background: var(--ok-surface); }
#billing_config_page .bc-empty .bc-icon-tile { margin-bottom: 10px; }
#billing_config_page .bc-empty h5 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ok-text); }
#billing_config_page .bc-empty p { margin: 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }

/* offering section: accent top edge, title in the accent */
#billing_config_page .bc-offering-card { position: relative; overflow: hidden; }
#billing_config_page .bc-offering-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bc-accent); }
#billing_config_page .bc-offering-card .an-head-title > i.bc-accent-icon { background: color-mix(in srgb, var(--bc-accent) 14%, transparent); color: var(--bc-accent); }
#billing_config_page .bc-offering-card #lbl_offering_title { font-family: var(--ok-font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#billing_config_page .bc-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--bc-accent) 7%, var(--ok-surface)); border: 1px solid color-mix(in srgb, var(--bc-accent) 18%, transparent); }
#billing_config_page .bc-toolbar > i { font-size: 18px; color: var(--bc-accent); }
#billing_config_page .bc-toolbar label { margin: 0; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-2); }
#billing_config_page .bc-toolbar .form-select { width: auto; min-width: 180px; height: 32px; min-height: 32px !important; }
#billing_config_page .pl-filter .bc-toolbar .btn { height: 32px; }
#billing_config_page .bc-toolbar small { flex: 1 1 100%; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }

/* template card (built by the js) */
#billing_config_page .bc-scheme { display: flex; flex-direction: column; height: 100%; background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px;
    transition: box-shadow var(--ok-t), border-color var(--ok-t); }
#billing_config_page .bc-scheme:hover, #billing_config_page .bc-scheme:focus-within { border-color: color-mix(in srgb, var(--bc-accent) 50%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--bc-accent) 12%, transparent); }
#billing_config_page .bc-scheme-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 16px 10px; }
#billing_config_page .bc-scheme-no { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 17px;
    background: color-mix(in srgb, var(--bc-accent) 14%, transparent); color: var(--bc-accent); }
#billing_config_page .bc-scheme-head .bc-tpl-name { flex: 1 1 220px; height: 36px; font-weight: 600; }
#billing_config_page .bc-scheme-head .bc-tpl-basis { flex: 0 0 auto; width: auto; min-width: 140px; height: 36px; }
#billing_config_page .bc-scheme-body { flex: 1; padding: 0 16px 14px; }
/* template rows */
#billing_config_page .bc-row-table { min-width: 640px; margin: 0; }
#billing_config_page .bc-row-table .bc-row-type { min-width: 130px; }
#billing_config_page .bc-row-table :is(.bc-cost-item, .bc-row-label) { min-width: 180px; }
#billing_config_page .bc-row-table .bc-formula { min-width: 220px; font-family: var(--bs-font-monospace); text-transform: uppercase; }
#billing_config_page .bc-row-table th { padding: 4px; border: 0; white-space: nowrap; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ok-text-4); background: none; }
#billing_config_page .bc-row-table td { padding: 4px; border: 0; vertical-align: middle; font-size: var(--ok-fs); background: none; }
#billing_config_page .bc-row-table :is(td, th):first-child { padding-left: 0; }
#billing_config_page .bc-row-table :is(.form-control, .form-select) { min-height: 32px; height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); font-size: var(--ok-fs); }
#billing_config_page .bc-row-code { white-space: nowrap; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#billing_config_page .bc-opt-fee { white-space: nowrap; font-size: var(--ok-fs-sm); }
#billing_config_page .bc-chip { margin: 0 4px 4px 0; padding: 4px 8px; border: 0; border-radius: var(--ok-r-sm); cursor: pointer; font-family: var(--bs-font-monospace); font-weight: 500;
    background: color-mix(in srgb, var(--bc-accent) 12%, transparent) !important; color: color-mix(in srgb, var(--bc-accent) 80%, #000) !important; }
#billing_config_page .bc-chip:hover { background: color-mix(in srgb, var(--bc-accent) 22%, transparent) !important; }
#billing_config_page .pl-filter .bc-icon-btn { width: 30px; height: 30px; padding: 0; border-radius: var(--ok-r-sm); }
#billing_config_page .pl-filter .bc-remove-row { color: var(--ok-red); }
#billing_config_page .pl-filter .bc-remove-row i { color: var(--ok-red); }
#billing_config_page .pl-filter .bc-add-row { height: 30px; margin-top: 6px !important; font-size: var(--ok-fs-sm); }
#billing_config_page .pl-filter .bc-add-row i { color: var(--ok-blue); }
/* preview with sample values */
#billing_config_page .bc-preview { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bc-accent) 6%, var(--ok-surface-2)); border: 1px solid var(--ok-line-2); }
#billing_config_page .bc-preview-title { margin-bottom: 6px; font-size: var(--ok-fs); font-weight: 600; color: var(--ok-text-2); }
#billing_config_page .bc-preview-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
#billing_config_page .bc-preview-toggle small { font-weight: 400; color: var(--ok-text-4) !important; }
#billing_config_page .bc-preview-chevron { margin-left: auto; font-size: 16px; transition: transform var(--ok-t); }
#billing_config_page .bc-preview-off .bc-preview-chevron { transform: rotate(180deg); }
#billing_config_page .bc-preview-off .bc-preview-title { margin-bottom: 0; }
#billing_config_page .bc-preview-off .bc-preview-table { display: none; }
#billing_config_page .bc-preview-table td { padding: 3px 4px; border: 0; vertical-align: middle; font-size: var(--ok-fs-sm); background: transparent; }
#billing_config_page .bc-preview-table .input-group { width: 110px; flex-wrap: nowrap; }
#billing_config_page .bc-preview-table .bc-pv-fee { width: 72px; }
#billing_config_page .bc-preview-table .input-group :is(.form-control, .input-group-text) { height: 26px; min-height: 0 !important; padding: 0 6px !important; font-size: var(--ok-fs-sm); }
#billing_config_page .bc-pv-heading td { padding-top: 8px; font-weight: 600; }
#billing_config_page .bc-pv-formula td { border-top: 1px dashed color-mix(in srgb, var(--bc-accent) 40%, transparent); font-weight: 700; color: var(--ok-text); }
/* save bar stays visible while scrolling the template */
#billing_config_page .bc-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px;
    background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); }
#billing_config_page .bc-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#billing_config_page .bc-actions .btn-success { min-width: 110px; justify-content: center; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }


/* ---- 4aj. Billing > Payment voucher  (modules/payment-voucher, route payment-voucher) -------------------------
   On the .pl-ok skin (4l): queue buttons in the head, search side panel (.pl-side), list; voucher card + payments card. */
#payment_voucher_page .pv-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-sm); background: var(--ok-surface); color: var(--ok-text-3); font-size: 16px; box-shadow: var(--ok-shadow-xs); }
#payment_voucher_page .pv-close-btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
/* Pending verification / approval: count pill inside the button */
#payment_voucher_page .pl-toolbar .pv-queue-btn .badge { min-width: 22px; padding: 3px 7px; border-radius: var(--ok-r-pill); font-size: 11px; font-weight: 700;
    background: rgba(255, 149, 0, .16) !important; color: #c93400 !important; }
#payment_voucher_page .pl-toolbar .pv-queue-btn.active { border-color: rgba(0, 122, 255, .45); background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
/* search: checkbox inside the label row */
#payment_voucher_page .pv-label-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#payment_voucher_page .pv-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--ok-fs-sm); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ok-text-3); }
#payment_voucher_page .pv-check .form-check-input { float: none; margin: 0; }
#payment_voucher_page .pv-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#payment_voucher_page .pl-filter .pv-form-actions .btn { min-width: 100px; }
#payment_voucher_page .pv-pager { display: flex; justify-content: flex-end; margin-top: 12px; }
#payment_voucher_page .pv-pager .pagination:empty { display: none; }
#payment_voucher_page #tbl_list > tbody > tr > td:first-child { font-weight: 600; color: var(--ok-text); white-space: nowrap; }
/* voucher card head: "VOUCHER" eyebrow over the PV number */
#payment_voucher_page .an-head .an-head-title .an-head-sub:first-child { margin: 0 0 2px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#payment_voucher_page #h4_primary_no { font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ok-text); }
#payment_voucher_page .pv-section { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#payment_voucher_page :is(form, #new_payment_div form) > .pv-section:first-child, #payment_voucher_page form > .pv-section:first-of-type { margin-top: 6px; }
#payment_voucher_page .pv-section::before { content: ""; flex: 0 0 4px; width: 4px; height: 14px; border-radius: 2px; background: var(--ok-grad); }
#payment_voucher_page .pv-section::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--ok-line-2); }
#payment_voucher_page form.form-horizontal.an-body { padding: 4px 20px 20px !important; }
#payment_voucher_page .input-group .input-group-text { border-radius: 0 var(--ok-r) var(--ok-r) 0; }
#payment_voucher_page .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
#payment_voucher_page .form-control[readonly]:not(.flatpickr-input) { background: var(--ok-surface-2); color: var(--ok-text-3); }
#payment_voucher_page .pv-total { font-weight: 700; color: var(--ok-text) !important; }
/* payments card head: Send for verification switch + Reject / Verify / Approve / Print / Payment */
#payment_voucher_page .pv-payment-actions { flex-wrap: wrap; justify-content: flex-end; }
#payment_voucher_page .pv-switch { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
#payment_voucher_page .pv-switch .switchery { margin: 0; }
#payment_voucher_page .pv-switch label { margin: 0; cursor: pointer; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-2); white-space: nowrap; }
#payment_voucher_page .an-head-actions .pv-reject { color: var(--ok-red); }
#payment_voucher_page .an-head-actions .pv-reject i { color: var(--ok-red); }
#payment_voucher_page .an-head-actions .pv-verify { color: #c93400; }
#payment_voucher_page .an-head-actions .pv-verify i { color: var(--ok-orange); }
#payment_voucher_page #new_payment_div { margin-bottom: 20px; padding: 4px 16px 16px; border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface-2); }
/* amount with its currency picker: one joined control */
#payment_voucher_page .currencySection_pv { position: relative; display: flex; }
#payment_voucher_page .currencySection_pv > #dropdownMenu1 { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 76px; height: 36px; padding: 0 10px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-right: 0; border-radius: var(--ok-r) 0 0 var(--ok-r); background: var(--ok-surface-2); color: var(--ok-text); font-weight: 600; box-shadow: none; }
#payment_voucher_page .currencySection_pv > #dropdownMenu1 i { margin-left: auto !important; color: var(--ok-text-4); }
#payment_voucher_page .currencySection_pv > .form-control { flex: 1 1 auto; min-width: 0; border-radius: 0 var(--ok-r) var(--ok-r) 0; }
#payment_voucher_page .currencySection_pv .currency_list { top: 100%; left: 0; margin-top: 4px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--ok-line-2);
    border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
/* radios, SST / withholding % + amount, attachments */
#payment_voucher_page .pv-radios { display: flex; align-items: center; gap: 6px 18px; min-height: 36px; }
#payment_voucher_page .pv-radios .form-check { margin: 0; text-transform: none; letter-spacing: 0; font-size: var(--ok-fs); font-weight: 500; color: var(--ok-text-2); cursor: pointer; }
#payment_voucher_page .pv-pair { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
#payment_voucher_page .fileinput-button { position: relative; overflow: hidden; cursor: pointer; }
#payment_voucher_page .fileinput-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 200px; }
#payment_voucher_page .pv-files:not(:empty) { margin-top: 8px; }
#payment_voucher_page #tbl_remark_list td { vertical-align: top; }


/* ---- 4ak. Contract management > Contracts  (modules/contract/contracts, route contracts) -------------------------
   Page (#contracts_page) is on the .pl-ok skin (4l); its modals sit in #contracts_modals and keep their own look.
   Both wrappers carry .ct-scope. Part 1 is the page's old <style> block, every selector scoped by .ct-scope.
   Part 2 puts the page on the theme layout but keeps the Contract Summary palette: the theme colour tokens are
   redefined on the wrappers, so every shared .pl-ok rule (tabs, buttons, focus rings) uses the same colours as
   the Contract Summary KPI cards (purple #6658dd, green #1abc9c, amber #f7b84b, red #f1556c, cyan #4fc6e1).
   Contract billing (4am) shares these tokens through its .cb-scope wrappers. */

/* ---- 4ak part 1: the page's own rules (were a <style> block in contracts.html) ---- */
    .ct-scope .apexcharts-datalabel,
    .ct-scope .apexcharts-datalabel-label,
    .ct-scope .apexcharts-datalabel-value,
    .ct-scope .apexcharts-pie-label {
        fill: white !important;

    }

    .ct-scope .apexcharts-datalabels-group text,
    .ct-scope .apexcharts-legend-text {
        fill: #343a40 !important;
    }

    .ct-scope .apexcharts-legend-text {
        color: #343a40 !important;
    }

    .ct-scope .apexcharts-pie-label {
        font-size: 12px;
    }


    .ct-scope .selected {
        background-color: #307bbb;
    }

    .ct-scope .modal.modal-fullscreen .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .ct-scope .modal.modal-fullscreen .modal-content {
        height: auto;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .ct-scope .modal.modal-fullscreen .modal-body {
        overflow-y: auto;
    }

    .ct-scope input[type="text"].readonly {
        background-color: #f3f4f7;
        border-color: #e3e6ec;
        color: #6c757d;
    }

    .ct-scope #summary-div {
        float: right;
    }

    .ct-scope .contract-modal {
        width: 500px;
        height: 100px;
        white-space: nowrap;
        position: relative;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .ct-scope .contract-modal div {
        width: 24.5%;
        float: none;
        height: 90%;
        margin: 0 0.25%;
        display: inline-block;
        zoom: 1;
    }

    .ct-scope .col-form-label {
        padding-top: 0;
    }

    /* ---------- Contracts page (Ubold) ---------- */
    .ct-scope .contracts-page .page-title-box .page-title {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ct-scope .contracts-page .page-title-box .page-subtitle {
        color: #98a6ad;
        font-size: 13px;
        margin: -12px 0 12px;
    }

    .ct-scope .contracts-toolbar .card-body {
        padding: 12px 16px;
    }

    .ct-scope .contracts-toolbar .nav-pills .nav-link {
        font-weight: 600;
        padding: 8px 20px;
        border-radius: 6px;
    }

    .ct-scope .contracts-toolbar .toolbar-actions .btn {
        margin-left: 6px;
    }

    .ct-scope .contracts-toolbar .toolbar-actions .btn:first-of-type {
        margin-left: 0;
    }

    /* chart tiles */
    .ct-scope .chart-tile {
        border: 1px solid #f1f3fa;
        border-radius: 8px;
        box-shadow: none;
        height: calc(100% - 24px);
        transition: box-shadow .2s ease;
    }

    .ct-scope .chart-tile:hover {
        box-shadow: 0 4px 20px rgba(154, 161, 171, 0.25);
    }

    .ct-scope .chart-tile .chart-tile-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }

    .ct-scope .chart-tile .chart-tile-head h5 {
        margin: 0;
        font-size: 14px;
        line-height: 1.35;
    }

    .ct-scope .chart-tile .chart-tile-head small {
        color: #98a6ad;
    }

    .ct-scope .chart-legend {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding-top: 12px;
        border-top: 1px dashed #e3e6ec;
        color: #6c757d;
        font-weight: 500;
    }

    .ct-scope .chart-legend .mdi {
        font-size: 14px;
    }

    .ct-scope #year-display:not(:empty) {
        display: inline-block;
        font-size: 13px;
        font-weight: 600;
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
        border-radius: 20px;
        padding: 4px 14px;
        margin: 16px 0 8px;
    }

    .ct-scope #year-display:not(:empty)::before {
        content: "\F00ED";
        font-family: "Material Design Icons";
        margin-right: 6px;
    }

    /* KPI cards rendered into #contract_dashboard */
    .ct-scope #contract_dashboard .kpi-card {
        position: relative;
        height: 100%;
        background: #fff;
        border: 1px solid #f1f3fa;
        border-radius: 10px;
        padding: 18px 20px 16px;
        overflow: hidden;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .ct-scope #contract_dashboard .kpi-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: var(--kpi-color);
    }

    .ct-scope #contract_dashboard .kpi-card::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -30px;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: var(--kpi-color);
        opacity: .06;
        pointer-events: none;
    }

    .ct-scope #contract_dashboard .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(154, 161, 171, 0.25);
    }

    .ct-scope #contract_dashboard .kpi-primary { --kpi-color: #6658dd; }
    .ct-scope #contract_dashboard .kpi-warning { --kpi-color: #f7b84b; }
    .ct-scope #contract_dashboard .kpi-success { --kpi-color: #1abc9c; }
    .ct-scope #contract_dashboard .kpi-danger { --kpi-color: #f1556c; }
    .ct-scope #contract_dashboard .kpi-info { --kpi-color: #4fc6e1; }

    .ct-scope #contract_dashboard .kpi-label {
        margin: 0 0 4px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #98a6ad;
        white-space: normal;
    }

    .ct-scope #contract_dashboard .kpi-value {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #323a46;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ct-scope #contract_dashboard .kpi-sub {
        font-size: 12px;
        color: #98a6ad;
    }

    .ct-scope #contract_dashboard .progress-sm {
        height: 5px;
        background: #f1f3fa;
    }

    /* tables */
    .ct-scope .an-card .table-responsive:has(> .contracts-table) {
        border: 1px solid #eef0f6;
        border-radius: 10px;
    }

    .ct-scope .contracts-table {
        font-size: 13px;
        border-collapse: separate;
        border-spacing: 0;
    }

    .ct-scope .contracts-table thead th {
        background: #f8f9fc !important;
        color: #6c757d;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
        border-bottom: 1px solid #e3e6ec;
        padding: 12px 14px;
        vertical-align: middle;
    }

    .ct-scope .contracts-table tbody td {
        vertical-align: middle;
        padding: 12px 14px;
        color: #4b5563;
        border-top: 0;
        border-bottom: 1px solid #f1f3fa;
        background-color: #fff;
        transition: background-color .15s ease;
    }

    .ct-scope .contracts-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .ct-scope .contracts-table tbody tr:hover>* {
        background-color: #f7f6fe;
    }

    .ct-scope .contracts-table tbody tr:hover>td:first-child {
        box-shadow: inset 3px 0 0 #6658dd;
    }

    .ct-scope .contracts-table .bl-candidate {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 160px;
    }

    .ct-scope .contracts-table .bl-avatar {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .ct-scope .contracts-table .bl-name,
    .ct-scope .contracts-table .bl-client {
        font-weight: 600;
        color: #323a46;
    }

    .ct-scope .contracts-table .bl-muted {
        color: #8a94a6;
        font-size: 12.5px;
    }

    .ct-scope .contracts-table .bl-chip {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 6px;
        background: #f3f4f7;
        border: 1px solid #e9ebf1;
        color: #495057;
        font-family: SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        white-space: nowrap;
    }

    .ct-scope .contracts-table .bl-currency {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        color: #6c757d;
    }

    .ct-scope .contracts-table .bl-amount {
        text-align: right;
        font-weight: 700;
        color: #323a46;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .ct-scope .contracts-table .bl-amount.bl-pos {
        color: #10a37f;
    }

    .ct-scope .contracts-table .bl-amount.bl-neg {
        color: #f1556c;
    }

    .ct-scope .contracts-table .bl-months {
        display: inline-block;
        min-width: 28px;
        padding: 2px 8px;
        border-radius: 50rem;
        background: #f3f4f7;
        font-weight: 600;
        color: #495057;
    }

    .ct-scope .contracts-table .bl-gp {
        display: inline-block;
        padding: 3px 9px;
        border-radius: 50rem;
        font-size: 11.5px;
        font-weight: 700;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .ct-scope .contracts-table .bl-gp-good {
        color: #10a37f;
        background: rgba(26, 188, 156, .12);
    }

    .ct-scope .contracts-table .bl-gp-low {
        color: #c98a12;
        background: rgba(247, 184, 75, .16);
    }

    .ct-scope .contracts-table .bl-gp-neg {
        color: #f1556c;
        background: rgba(241, 85, 108, .12);
    }

    .ct-scope .contracts-table .badge {
        font-weight: 600;
        padding: 5px 9px;
        border-radius: 50rem;
    }

    .ct-scope .contracts-table .bl-pill {
        font-size: 11.5px;
        white-space: nowrap;
    }

    /* change status column: send for approval / approve / reject / revoke / start */
    .ct-scope .contracts-table .bl-approval-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 150px;
    }

    .ct-scope .contracts-table .bl-act-pair {
        display: flex;
        gap: 6px;
    }

    .ct-scope .contracts-table .bl-act-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 10px;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.5;
        border-radius: 50rem;
        white-space: nowrap;
        box-shadow: none;
        transition: transform .12s ease, box-shadow .12s ease;
    }

    .ct-scope .contracts-table .bl-act-btn i {
        font-size: 14px;
        line-height: 1;
    }

    .ct-scope .contracts-table .bl-act-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(50, 58, 70, .15);
    }

    /* count badges on attachment button
       (waves-effect sets overflow:hidden, which clips the badge) */
    .ct-scope .contracts-table .bl-actions .btn:has(.noti-icon-badge) {
        overflow: visible;
    }

    .ct-scope .contracts-table .bl-actions .noti-icon-badge.xs-badge {
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 10.5px;
        line-height: 17px;
        top: -8px;
        right: -6px !important;
        border-radius: 50rem;
        z-index: 3 !important;
        box-shadow: 0 0 0 2px #fff;
    }

    /* keep actions visible while scrolling horizontally */
    .ct-scope #tbl_list_contract thead th:last-child,
    .ct-scope #tbl_list_contract tbody td.bl-actions {
        position: sticky;
        right: 0;
        z-index: 2;
        white-space: nowrap;
    }

    .ct-scope #tbl_list_contract tbody td.bl-actions {
        box-shadow: -6px 0 10px -6px rgba(50, 58, 70, .15);
    }

    .ct-scope .contracts-table .bl-empty {
        text-align: center;
        padding: 48px 16px !important;
        color: #98a6ad;
    }

    .ct-scope .contracts-table .bl-empty i {
        font-size: 40px;
        display: block;
        margin-bottom: 6px;
        opacity: .6;
    }

    .ct-scope .summary-table thead th {
        background: #323a46 !important;
        color: #fff;
        font-weight: 600;
        border: 0;
    }

    .ct-scope .summary-table td {
        border-color: rgba(255, 255, 255, .5);
    }

    .ct-scope .contracts-pagination .pagination {
        margin: 0 0 16px;
    }

    /* billing details modal */
    .ct-scope #view_billing_details_modal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .ct-scope #view_billing_details_modal .modal-header {
        align-items: flex-start;
        padding: 18px 24px;
    }

    .ct-scope #view_billing_details_modal .bd-head-sub {
        margin-top: 6px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: rgba(255, 255, 255, .75);
    }

    .ct-scope #view_billing_details_modal .bd-head-chip {
        padding: 2px 8px;
        border-radius: 6px;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        font-family: SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
    }

    .ct-scope #view_billing_details_modal .bd-head-chip:empty {
        display: none;
    }

    .ct-scope #view_billing_details_modal .bd-dot {
        opacity: .5;
    }

    .ct-scope #view_billing_details_modal .bd-body {
        padding: 22px 24px 26px;
        background: #f8f9fc;
    }

    .ct-scope #view_billing_details_modal .bd-stat {
        --bd-color: #6c757d;
        position: relative;
        height: 100%;
        padding: 16px 18px;
        background: #fff;
        border: 1px solid #eef0f6;
        border-radius: 10px;
        overflow: hidden;
    }

    .ct-scope #view_billing_details_modal .bd-stat::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: var(--bd-color);
    }

    .ct-scope #view_billing_details_modal .bd-stat-primary { --bd-color: #6658dd; }
    .ct-scope #view_billing_details_modal .bd-stat.bd-pos { --bd-color: #1abc9c; }
    .ct-scope #view_billing_details_modal .bd-stat.bd-neg { --bd-color: #f1556c; }

    .ct-scope #view_billing_details_modal .bd-stat-icon {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--bd-color);
        background: color-mix(in srgb, var(--bd-color) 12%, transparent);
    }

    .ct-scope #view_billing_details_modal .bd-stat-label {
        margin: 0 0 6px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #98a6ad;
    }

    .ct-scope #view_billing_details_modal .bd-stat-value {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #323a46;
        font-variant-numeric: tabular-nums;
    }

    .ct-scope #view_billing_details_modal .bd-stat.bd-pos .bd-stat-value { color: #10a37f; }
    .ct-scope #view_billing_details_modal .bd-stat.bd-neg .bd-stat-value { color: #f1556c; }

    .ct-scope #view_billing_details_modal .bd-stat-cur,
    .ct-scope #view_billing_details_modal .bd-cur-sm {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        color: #98a6ad;
    }

    .ct-scope #view_billing_details_modal .bd-section {
        margin-top: 18px;
        padding: 16px 18px;
        background: #fff;
        border: 1px solid #eef0f6;
        border-radius: 10px;
    }

    .ct-scope #view_billing_details_modal .bd-section-title {
        margin: 0 0 12px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
    }

    .ct-scope #view_billing_details_modal .bd-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        background: #f8f9fc;
    }

    .ct-scope #view_billing_details_modal .bd-item-icon {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #6658dd;
        background: rgba(102, 88, 221, .1);
    }

    .ct-scope #view_billing_details_modal .bd-item-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #98a6ad;
    }

    .ct-scope #view_billing_details_modal .bd-item-value {
        font-size: 14px;
        font-weight: 600;
        color: #323a46;
    }

    .ct-scope #view_billing_details_modal .bd-timeline {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .ct-scope #view_billing_details_modal .bd-date {
        flex-shrink: 0;
        min-width: 100px;
    }

    .ct-scope #view_billing_details_modal .bd-track {
        flex: 1;
        min-width: 0;
    }

    .ct-scope #view_billing_details_modal .bd-progress {
        height: 8px;
        border-radius: 50rem;
        background: #eef0f6;
    }

    .ct-scope #view_billing_details_modal .bd-progress .progress-bar {
        border-radius: 50rem;
        background: linear-gradient(90deg, #6658dd, #4fc6e1);
    }

    .ct-scope #view_billing_details_modal .bd-progress-label {
        margin-top: 6px;
        text-align: center;
        font-size: 12px;
        color: #8a94a6;
    }

    /* comments (remarks) modal */
    .ct-scope #remarkListModal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .ct-scope #remarkListModal .modal-header {
        padding: 16px 24px;
    }

    .ct-scope #remarkListModal .modal-title {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .ct-scope #remarkListModal .rm-count {
        margin-left: 6px;
        min-width: 22px;
        padding: 1px 8px;
        border-radius: 50rem;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .ct-scope #remarkListModal .rm-body {
        padding: 0;
        background: #f8f9fc;
    }

    .ct-scope #remarkListModal .rm-feed {
        max-height: calc(100vh - 330px);
        min-height: 160px;
        overflow-y: auto;
        padding: 18px 24px 6px;
    }

    .ct-scope #remarkListModal .rm-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .ct-scope #remarkListModal .rm-table thead {
        display: none;
    }

    .ct-scope #remarkListModal .rm-table td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ct-scope #remarkListModal .rm-item {
        display: flex;
        gap: 12px;
        padding: 14px 16px;
        background: #fff;
        border: 1px solid #eef0f6;
        border-radius: 10px;
        transition: box-shadow .15s ease;
    }

    .ct-scope #remarkListModal .rm-item:hover {
        box-shadow: 0 4px 14px rgba(154, 161, 171, .2);
    }

    .ct-scope #remarkListModal .rm-avatar {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .ct-scope #remarkListModal .rm-content {
        flex: 1;
        min-width: 0;
    }

    .ct-scope #remarkListModal .rm-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 10px;
        margin-bottom: 4px;
    }

    .ct-scope #remarkListModal .rm-author {
        font-weight: 700;
        color: #323a46;
    }

    .ct-scope #remarkListModal .rm-date {
        font-size: 12px;
        color: #98a6ad;
    }

    .ct-scope #remarkListModal .rm-delete {
        margin-left: auto;
        padding: 2px 7px;
        border-radius: 6px;
        opacity: .45;
        transition: opacity .15s ease;
    }

    .ct-scope #remarkListModal .rm-item:hover .rm-delete,
    .ct-scope #remarkListModal .rm-delete:focus {
        opacity: 1;
    }

    .ct-scope #remarkListModal .rm-text {
        color: #4b5563;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.55;
    }

    .ct-scope #remarkListModal .rm-empty {
        text-align: center;
        padding: 36px 16px !important;
        color: #98a6ad;
    }

    .ct-scope #remarkListModal .rm-empty i {
        display: block;
        font-size: 40px;
        opacity: .6;
    }

    .ct-scope #remarkListModal .rm-empty div {
        font-weight: 600;
        color: #6c757d;
    }

    .ct-scope #remarkListModal .rm-composer {
        padding: 16px 24px 20px;
        background: #fff;
        border-top: 1px solid #eef0f6;
    }

    .ct-scope #remarkListModal .rm-composer-label {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
    }

    .ct-scope #remarkListModal .rm-composer textarea {
        resize: vertical;
        min-height: 80px;
        border-radius: 8px;
        background: #f8f9fc;
    }

    .ct-scope #remarkListModal .rm-composer textarea:focus {
        background: #fff;
    }

    .ct-scope #remarkListModal .rm-composer-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
    }

    /* attachments modal */
    .ct-scope #attachmentsModal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .ct-scope #attachmentsModal .modal-header {
        padding: 16px 24px;
    }

    .ct-scope #attachmentsModal .modal-title {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .ct-scope #attachmentsModal .at-count {
        margin-left: 6px;
        min-width: 22px;
        padding: 1px 8px;
        border-radius: 50rem;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .ct-scope #attachmentsModal .at-body {
        padding: 0;
        background: #f8f9fc;
    }

    .ct-scope #attachmentsModal .at-list {
        max-height: calc(100vh - 420px);
        min-height: 140px;
        overflow-y: auto;
        padding: 14px 24px 4px;
    }

    .ct-scope #attachmentsModal .at-table {
        border-collapse: separate;
        border-spacing: 0 8px;
    }

    .ct-scope #attachmentsModal .at-table thead {
        display: none;
    }

    .ct-scope #attachmentsModal .at-table tr.at-row td {
        padding: 12px 14px;
        vertical-align: middle;
        background: #fff;
        border-top: 1px solid #eef0f6;
        border-bottom: 1px solid #eef0f6;
        transition: background-color .15s ease;
    }

    .ct-scope #attachmentsModal .at-table tr.at-row td:first-child {
        border-left: 1px solid #eef0f6;
        border-radius: 10px 0 0 10px;
    }

    .ct-scope #attachmentsModal .at-table tr.at-row td:last-child {
        border-right: 1px solid #eef0f6;
        border-radius: 0 10px 10px 0;
    }

    .ct-scope #attachmentsModal .at-table tr.at-row:hover td {
        background: #f7f6fe;
    }

    .ct-scope #attachmentsModal .at-file {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 360px;
    }

    .ct-scope #attachmentsModal .at-file .link-view-file {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
        color: #323a46;
    }

    .ct-scope #attachmentsModal .at-file .link-view-file:hover {
        color: #6658dd;
        text-decoration: underline;
    }

    .ct-scope #attachmentsModal .at-icon {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6c757d;
        background: #eef0f6;
    }

    .ct-scope #attachmentsModal .at-icon.at-pdf { color: #e5484d; background: rgba(229, 72, 77, .12); }
    .ct-scope #attachmentsModal .at-icon.at-img { color: #6658dd; background: rgba(102, 88, 221, .12); }
    .ct-scope #attachmentsModal .at-icon.at-doc { color: #4a81d4; background: rgba(74, 129, 212, .12); }
    .ct-scope #attachmentsModal .at-icon.at-xls { color: #10a37f; background: rgba(26, 188, 156, .14); }
    .ct-scope #attachmentsModal .at-icon.at-ppt { color: #e8803a; background: rgba(232, 128, 58, .14); }

    .ct-scope #attachmentsModal .at-by,
    .ct-scope #attachmentsModal .at-date {
        font-size: 12.5px;
        color: #8a94a6;
        white-space: nowrap;
    }

    .ct-scope #attachmentsModal .at-actions {
        width: 1%;
        white-space: nowrap;
        text-align: right;
    }

    .ct-scope #attachmentsModal .at-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 4px;
        border-radius: 8px;
        font-size: 17px;
        color: #6c757d;
        background: #f3f4f7;
        transition: background-color .15s ease, color .15s ease;
    }

    .ct-scope #attachmentsModal .at-btn i {
        margin: 0;
        font-size: 17px;
    }

    .ct-scope #attachmentsModal .at-btn-view:hover {
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .ct-scope #attachmentsModal .at-btn-delete:hover {
        color: #f1556c;
        background: rgba(241, 85, 108, .12);
    }

    .ct-scope #attachmentsModal .at-empty {
        text-align: center;
        padding: 30px 16px !important;
        color: #98a6ad;
        border: 0 !important;
        background: transparent !important;
    }

    .ct-scope #attachmentsModal .at-empty i {
        display: block;
        font-size: 40px;
        opacity: .6;
    }

    .ct-scope #attachmentsModal .at-empty div {
        font-weight: 600;
        color: #6c757d;
    }

    .ct-scope #attachmentsModal .at-upload {
        padding: 16px 24px 20px;
        background: #fff;
        border-top: 1px solid #eef0f6;
    }

    .ct-scope #attachmentsModal .at-upload-title {
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
    }

    /* whole drop box opens the file picker */
    .ct-scope #attachmentsModal .at-drop {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 20px;
        border: 2px dashed #d6d9e6;
        border-radius: 10px;
        background: #f8f9fc;
        color: #6c757d;
        transition: border-color .15s ease, background-color .15s ease;
    }

    .ct-scope #attachmentsModal .at-drop:hover {
        border-color: #6658dd;
        background: rgba(102, 88, 221, .04);
    }

    .ct-scope #attachmentsModal .at-drop-icon {
        font-size: 34px;
        line-height: 1;
        color: #6658dd;
    }

    .ct-scope #attachmentsModal .at-drop small {
        color: #98a6ad;
    }

    .ct-scope #attachmentsModal .at-drop .fileinput-button {
        position: static;
        overflow: visible;
        color: #6658dd;
        text-decoration: underline;
    }

    .ct-scope #attachmentsModal .at-drop .fileinput-button input {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .ct-scope #attachmentsModal .at-pending:not(:empty) {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ct-scope #attachmentsModal .at-pending .uploadMainContainer {
        margin: 0;
        padding: 10px 12px !important;
        border: 1px solid #eef0f6;
        border-radius: 8px;
        background: #fff;
    }

    .ct-scope #attachmentsModal .at-pending .uploadLabel {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #323a46;
    }

    .ct-scope #attachmentsModal .at-pending .cancel {
        cursor: pointer;
        color: #f1556c;
    }

    .ct-scope #attachmentsModal .at-pending .progress {
        border-radius: 50rem;
        background: #eef0f6;
    }

    .ct-scope #attachmentsModal .at-upload-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px;
    }

    /* modals */
    .ct-scope .modal .modal-content,
    .ct-scope #contract-search-modal .modal-content,
    .ct-scope #right-modal .modal-content {
        border: 0;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(50, 58, 70, .2);
    }

    .ct-scope .modal .modal-header.bg-dark {
        background: linear-gradient(135deg, #323a46 0%, #4b5563 100%) !important;
        border-bottom: 0;
        padding: 16px 24px;
    }

    .ct-scope .modal .modal-header.bg-dark .modal-title {
        font-weight: 600;
        letter-spacing: .02em;
    }

    .ct-scope .filter-modal-header {
        border-bottom: 1px solid #f1f3fa;
        padding: 16px 24px;
    }

    .ct-scope .filter-modal-header .modal-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    .ct-scope #right-modal .modal-body .card,
    .ct-scope #contract-search-modal .modal-body .card {
        margin-bottom: 0;
    }

    .ct-scope #right-modal .col-form-label,
    .ct-scope #contract-search-modal .col-form-label,
    .ct-scope #contract_form .col-form-label,
    .ct-scope #old-contract-modal .col-form-label {
        font-weight: 600;
        color: #495057;
    }

/* ---- 4ak part 2: theme layout, Contract Summary palette ---- */
.ct-scope, .cb-scope {
    --ok-blue: #6658dd; --ok-purple: #6658dd; --ok-indigo: #6658dd; --ok-green: #1abc9c; --ok-orange: #f7b84b; --ok-red: #f1556c; --ok-teal: #4fc6e1;
    --ok-grad: linear-gradient(135deg, #6658dd 0%, #7d72e6 100%);
    --ok-grad-hover: linear-gradient(135deg, #5a4cd4 0%, #6f63e0 100%);
    --ok-shadow-primary: 0 4px 14px rgba(102, 88, 221, .30);
    --ok-ring: 0 0 0 3px rgba(102, 88, 221, .20);
}

/* page head: count pill + "Reset filter" pill in the summary colours */
#contracts_page .pl-head h4 .badge { background: rgba(102, 88, 221, .12) !important; color: #6658dd !important; }
#contracts_page .pl-head h4 .ct-reset-filter { background: rgba(241, 85, 108, .12) !important; color: #f1556c !important; font-size: 12px; }
#contracts_page .pl-head h4 .ct-reset-filter i { color: inherit !important; font-size: 11px; }
#contracts_page .ct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#contracts_page .pl-toolbar .ct-approvals-btn i { color: #f7b84b; }
#contracts_page .pl-toolbar .ct-approvals-btn.active, #contracts_page .pl-toolbar .ct-approvals-btn.btn-warning { border-color: rgba(247, 184, 75, .6); background: rgba(247, 184, 75, .14); color: #8a5a00; }
#contracts_page .pl-toolbar .ct-approvals-btn .badge { min-width: 20px; padding: 3px 7px; border-radius: var(--ok-r-pill); background: #f1556c !important; color: #fff !important; font-size: 11px; }
#contracts_page .ct-main-tabs { margin-bottom: 18px; }
#contracts_page .ct-main-tabs .nav-link.active i { color: #6658dd; }

/* cards: .an-card / .an-head / .an-body from the .pl-ok skin (4l), same structure as Contract billing (4am);
   icon tile in the summary purple, Export menu in the card head */
#contracts_page .an-head-title > i { background: rgba(102, 88, 221, .12); color: #6658dd; }
#contracts_page .an-head-actions .dropdown-menu { padding: 6px; border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
#contracts_page .an-head-actions .dropdown-item { border-radius: var(--ok-r-sm); font-size: var(--ok-fs); color: var(--ok-text); }
#contracts_page .an-head-actions .dropdown-item:hover { background: var(--ok-fill-2); }
#contracts_page #contract-summary-div .an-head-actions .btn i { color: #6658dd; }

/* Financial overview: Overall / Monthly / Current year as a segmented control in the card head */
#contracts_page .ct-period-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0; border: 1px solid #dcdce0 !important;
    border-radius: var(--ok-r); background: var(--ok-fill); }
#contracts_page .ct-period-tabs .nav-link { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border: 0 !important;
    border-radius: var(--ok-r-sm) !important; background: transparent; color: var(--ok-text-4); font-size: var(--ok-fs); font-weight: 600; }
#contracts_page .ct-period-tabs .nav-link:hover { color: var(--ok-text-2); }
#contracts_page .ct-period-tabs .nav-link.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }

/* chart tiles + legend */
#contracts_page .chart-tile { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: 14px; }
#contracts_page .chart-tile:hover { box-shadow: var(--ok-shadow-lg); }
#contracts_page .chart-tile .chart-tile-head h5 { font-size: 14px; font-weight: 700; color: var(--ok-text); }
#contracts_page .chart-tile .chart-tile-head small { color: var(--ok-text-4); }
#contracts_page .chart-tile .avatar-sm { border-radius: 10px !important; }
#contracts_page .chart-legend { border-top-color: var(--ok-line-2); color: var(--ok-text-3); font-size: var(--ok-fs-sm); }

/* Contract Summary KPI cards: colours untouched, only the corners / border follow the theme cards */
#contracts_page #contract_dashboard .kpi-card { border-color: var(--ok-line-2); border-radius: 14px; }
#contracts_page #contract_dashboard .kpi-card:hover { box-shadow: var(--ok-shadow-lg); }

/* contract tables (bl-* cells keep their look): theme head + rounded box */
#contracts_page .an-card .table-responsive:has(> .contracts-table) { border-color: var(--ok-line-2); border-radius: 12px; }
#contracts_page .contracts-table thead th { background: var(--ok-surface-2) !important; color: var(--ok-text-4); font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em;
    border-bottom-color: var(--ok-line-2); }
#contracts_page .contracts-table tbody td { color: var(--ok-text-2); border-bottom-color: var(--ok-line-3); }

/* Contract Summary tables (green / red / amber rows) keep their colours; head + box follow the theme */
#contracts_page #tblSummary .table-responsive { border: 1px solid var(--ok-line-2); border-radius: 12px; overflow: hidden; }
#contracts_page .summary-table { margin-bottom: 0; }

/* pager */
#contracts_page .contracts-pagination .pagination { gap: 4px; margin: 0 0 16px; }
#contracts_page .contracts-pagination .page-item .page-link { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r-sm) !important; color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: none; }
#contracts_page .contracts-pagination .page-item.active .page-link { background: #6658dd; border-color: #6658dd; color: #fff; }

/* ---- 4ak part 3: modals on the .pl-ok skin (#contracts_modals carries .pl-ok) ----
   The shared skin gives light headers, theme fields and select2; the rules below beat the old dark gradient
   header from part 1 and lay out the Add / Edit contract forms (#contract_form, #old-contract_form). */
#contracts_modals .modal:not(.modal-fullscreen) .modal-content { border-radius: 18px; overflow: hidden; }
#contracts_modals .modal-header .modal-title .text-primary, #contracts_modals .filter-modal-header .modal-title i { color: #6658dd !important; }

/* headers: light, like every other .pl-ok modal (was a dark gradient, .bg-dark + .text-light / .text-white) */
#contracts_modals .modal .modal-header,
#contracts_modals .modal .modal-header.bg-dark { padding: 16px 22px !important; background: var(--ok-surface) !important; background-image: none !important;
    border-bottom: 1px solid var(--ok-line-2) !important; color: var(--ok-text) !important; }
#contracts_modals .modal .modal-header .modal-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; float: none !important; margin: 0 !important;
    font-family: var(--ok-font-display); font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--ok-text) !important; }
#contracts_modals .modal .modal-header .modal-title > i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 !important;
    border-radius: 9px; background: rgba(102, 88, 221, .12); color: #6658dd !important; font-size: 17px; }
#contracts_modals .modal .modal-header .modal-title span:empty { display: none; }
#contracts_modals .modal .modal-header :is(.btn-close, .close, .bootbox-close-button) { float: none !important; margin: 0 0 0 auto !important; filter: none !important;
    color: var(--ok-text) !important; opacity: .5; text-shadow: none; }
#contracts_modals .modal .modal-header :is(.btn-close, .close, .bootbox-close-button):hover { opacity: .9; }

/* add / edit contract + cost to company: body, two-column horizontal form */
#contracts_modals :is(#contract-modal, #old-contract-modal, #cost_to_company_modal) .modal-body { padding: 20px 26px 22px; background: var(--ok-surface); }
#contracts_modals :is(#contract_form, #old-contract_form) { margin-left: 0 !important; }
#contracts_modals :is(#contract_form, #old-contract_form) > br,
#contracts_modals :is(#contract_form, #old-contract_form) > div > br { display: none; }
#contracts_modals :is(#contract_form, #old-contract_form) .row.mt-2 { --bs-gutter-x: 24px; margin-top: 0 !important; }
#contracts_modals :is(#contract_form, #old-contract_form) .row.mt-2 > [class*="col-"] { margin-bottom: 12px; }
#contracts_modals :is(#contract_form, #old-contract_form) .col-form-label { display: flex; align-items: center; min-height: 36px; margin: 0; padding-top: 0; padding-bottom: 0;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track, .02em); text-transform: uppercase; color: var(--ok-text-4); }
#contracts_modals :is(#contract_form, #old-contract_form) .col-form-label .text-danger { margin-left: 2px; color: var(--ok-red) !important; }
#contracts_modals :is(#contract_form, #old-contract_form) label:not(.col-form-label):not(.form-check-label) { font-size: var(--ok-fs-xs); font-weight: 600; text-transform: uppercase;
    letter-spacing: var(--ok-track, .02em); color: var(--ok-text-4); }
#contracts_modals :is(#contract_form, #old-contract_form) #txt_contract_no { margin: 0; line-height: 36px; font-family: var(--ok-font-display); font-size: 15px; color: #6658dd; }
#contracts_modals :is(#contract-modal, #old-contract-modal, #cost_to_company_modal) input[type="text"].readonly,
#contracts_modals :is(#contract-modal, #old-contract-modal, #cost_to_company_modal) .form-control[readonly] { background: var(--ok-fill-2); border-color: var(--ok-line-2); color: var(--ok-text-3); }
#contracts_modals :is(#contract-modal, #old-contract-modal, #cost_to_company_modal) textarea.form-control { border: 1px solid var(--ok-line); border-radius: var(--ok-r); }

/* section titles inside the form: "Billing details", "Billing Items", "Monthly / One Time Costs" */
#contracts_modals .modal-body :is(h4.ct-section, h4.cost-headings) { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px !important; padding: 0 0 10px;
    border-bottom: 1px solid var(--ok-line-2); font-family: var(--ok-font-display); font-size: 15px; font-weight: 700; color: var(--ok-text) !important; }
#contracts_modals .modal-body :is(h4.ct-section, h4.cost-headings)::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: #6658dd; }
#contracts_modals .modal-body h4.ct-section span:empty { display: none; }

/* billing item rows built by the js: small red remove button */
#contracts_modals :is(#contract_form, #old-contract_form) .delete-condition { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: var(--ok-r-sm); background: rgba(241, 85, 108, .12) !important; color: #f1556c !important; box-shadow: none; }
#contracts_modals :is(#contract_form, #old-contract_form) .delete-condition:hover { background: rgba(241, 85, 108, .2) !important; }

/* action bar under the form (#actions_div, repeated in several modals): right aligned, theme buttons */
#contracts_modals .modal-body > #actions_div { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px;
    margin: 22px 0 0 !important; padding: 16px 0 0; border-top: 1px solid var(--ok-line-2); text-align: right; }
#contracts_modals .modal-body #actions_div .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0 !important; padding: 0 16px;
    border-radius: var(--ok-r); font-size: var(--ok-fs); font-weight: 600; box-shadow: none; }
#contracts_modals .modal-body #actions_div .btn i { margin: 0 !important; }
#contracts_modals .modal-body #actions_div .btn-light { border: 1px solid var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2); }
#contracts_modals .modal-body #actions_div .btn-light:hover { background: var(--ok-fill-2); }
#contracts_modals .modal-body #actions_div .btn-primary { border: 1px solid rgba(102, 88, 221, .25); background: rgba(102, 88, 221, .08); color: #6658dd; }
#contracts_modals .modal-body #actions_div .btn-primary:hover { background: rgba(102, 88, 221, .14); }
#contracts_modals .modal-body #actions_div .btn-info { border: 1px solid rgba(79, 198, 225, .4); background: rgba(79, 198, 225, .12); color: #1b8aa3; }
#contracts_modals .modal-body #actions_div .btn-success { border: 0; background: var(--ok-grad); color: #fff; }
#contracts_modals .modal-body #actions_div .btn-success:hover { background: var(--ok-grad-hover); }
#contracts_modals .modal-body #actions_div .btn-success i { color: #fff; }

@media (max-width: 991.98px) {
    #contracts_modals :is(#contract-modal, #old-contract-modal, #cost_to_company_modal) .modal-body { padding: 16px; }
}

@media (max-width: 767.98px) {
    #contracts_page .ct-actions { width: 100%; }
    #contracts_page .an-head-actions:has(> .ct-period-tabs) { width: 100%; }
    #contracts_page .ct-period-tabs { width: 100%; }
}


/* ---- 4al. ATS > Smart CV-JD Match  (modules/smart-cv-jd-match, route smart-cv-jd-match) ------------------
   Mockup: page head, then the drop zone card (left) and the "How it works" card (right, numbered steps,
   Download template | Match now). The later steps (JD, AI match, Job order, Tag CVs) are one white card
   each, under a segmented 5-step bar. Badges / chips / tables come from the js (bg-soft-*, cvs-* kit) and
   are re-toned here. The page links only this file (no slate-headers / dashboard-panels css). */
.scm-ok { padding-top: 8px; }

/* step bar: segmented track; the current step is a white pill, finished steps show a tick */
.scm-ok .scm-steps { display: flex; gap: 3px; margin: 0 0 var(--ok-gap); padding: 4px; overflow-x: auto;
    background: var(--ok-fill); border: 1px solid #dcdce0; border-radius: 14px; }
.scm-ok .scm-step { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 0; border-radius: 11px;
    background: transparent; color: var(--ok-text-4); text-align: left; cursor: pointer; font-family: var(--ok-font);
    transition: background var(--ok-t), color var(--ok-t), box-shadow var(--ok-t); }
.scm-ok .scm-step:not(:disabled):hover { color: var(--ok-text-2); }
.scm-ok .scm-step:disabled { cursor: not-allowed; opacity: .55; }
.scm-ok .scm-step.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
.scm-ok .scm-step-no { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text-4); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scm-ok .scm-step.active .scm-step-no { background: var(--ok-grad); border-color: transparent; color: #fff; }
.scm-ok .scm-step.done .scm-step-no { background: rgba(52, 199, 89, .16); border-color: transparent; color: #248a3d; font-size: 0; }
.scm-ok .scm-step.done .scm-step-no::before { content: "\F012C"; font-family: "Material Design Icons"; font-size: 15px; font-weight: 400; }
.scm-ok .scm-step-text { display: flex; flex-direction: column; min-width: 0; }
.scm-ok .scm-step-label { font-size: var(--ok-fs); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scm-ok .scm-step-sub { font-size: 11.5px; font-weight: 500; color: var(--ok-text-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) { .scm-ok .scm-step-sub { display: none; } }
@media (max-width: 767.98px) {
    .scm-ok .scm-step { flex: 0 0 auto; justify-content: center; }
    .scm-ok .scm-step:not(.active) .scm-step-text { display: none; }
    .scm-ok .scm-step.active { flex: 1 1 auto; }
}

.scm-ok .scm-panel { display: none; }
.scm-ok .scm-panel.active { display: block; }

/* step 1: drop zone card | how it works */
.scm-ok .scm-upload-grid { align-items: start; }
.scm-ok .scm-upload-card { padding: 16px 16px 14px; }
.scm-ok #scm_dropzone { min-height: 200px; padding: 36px 20px; }
.scm-ok #scm_dropzone .ok-dropzone-icon { width: 46px; height: 46px; font-size: 22px; }
.scm-ok #scm_dropzone .ok-dropzone-title { margin-top: 2px; font-size: 15.5px; }
.scm-ok #scm_dropzone .fileinput-button { position: relative; overflow: hidden; height: 36px; margin-top: 12px; padding: 0 18px; cursor: pointer; }
.scm-ok #scm_dropzone .fileinput-button input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 200px; }
.scm-ok .scm-file-name { margin-top: 6px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); cursor: default; }
.scm-ok .scm-file-name:empty { display: none; }
.scm-ok .scm-file-name .text-success { color: var(--ok-green) !important; }
.scm-ok .scm-tip { margin: 12px 2px 0; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.scm-ok .scm-how { padding: 18px 20px 16px; }
.scm-ok .scm-how .ok-card-title { margin-bottom: 8px; }
.scm-ok .scm-how .ok-steps > li { gap: 14px; padding: 9px 0; }
.scm-ok .scm-how .ok-steps > li::before { width: 32px; height: 32px; font-size: 13px; box-shadow: var(--ok-shadow-primary); }
.scm-ok .scm-how .ok-step-title { margin-top: 2px; font-size: 14px; }
.scm-ok .scm-how .ok-step-text { font-size: var(--ok-fs-sm); line-height: 1.5; }
.scm-ok .scm-how .ok-card-foot { gap: 8px; }
.scm-ok .scm-how .ok-card-foot .ok-btn { height: 40px; justify-content: center; border-radius: var(--ok-r-lg); font-size: 14px; }
.scm-ok .scm-how .ok-card-foot .ok-btn:first-child { flex: 1 1 auto; }
.scm-ok .scm-how .ok-card-foot .ok-btn--primary { flex: 0 0 auto; padding: 0 18px; }

/* step cards */
.scm-ok .scm-section { margin-top: var(--ok-gap); }
.scm-ok .scm-panel > .scm-section:first-child { margin-top: 0; }
.scm-ok .scm-pane-head { margin: 0 0 16px; }
.scm-ok .scm-pane-head h5 { margin: 0; font-family: var(--ok-font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text); }
.scm-ok .scm-pane-head p { margin: 2px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }
.scm-ok .scm-pane-head b { color: var(--ok-text-2); }
.scm-ok .scm-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 20px 12px; }
.scm-ok .scm-section.ok-card--flush > .cvs-form-actions { margin: 0; padding: 12px 20px 14px; }
.scm-ok .scm-section.ok-card--flush > .scm-table-wrap { margin: 0 20px; }
.scm-ok .scm-group-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: var(--ok-fs-xs); font-weight: 600;
    letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.scm-ok .scm-group-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ok-line-3); }
.scm-ok form > .scm-group-title:first-child { margin-top: 0; }

/* actions row at the bottom of each card */
.scm-ok .cvs-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-3); }
.scm-ok .cvs-form-actions .cvs-hint { margin-right: auto; }
.scm-ok .cvs-form-actions > .ok-btn:first-child { margin-right: auto; }
.scm-ok .cvs-form-actions > .ok-btn:first-child + .cvs-hint { margin-right: auto; margin-left: 0; }
.scm-ok .cvs-hint { font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.scm-ok .scm-inline-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scm-ok .ok-btn .mdi-arrow-right { margin-left: 2px; }
.scm-ok .ok-btn:disabled { opacity: .45; }
.scm-ok .fileinput-button.ok-btn { position: relative; overflow: hidden; cursor: pointer; }
.scm-ok .fileinput-button.ok-btn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 200px; }

/* summary badges -> status pills */
.scm-ok .scm-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.scm-ok .scm-section-head .scm-stats { margin: 0; }
.scm-ok .scm-stats .badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--ok-r-pill); font-size: 12px; font-weight: 600; }
.scm-ok .badge, .scm-ok .scm-chip { border: 0; box-shadow: none; font-weight: 600; }
.scm-ok .badge { border-radius: var(--ok-r-pill); padding: 4px 9px; }
.scm-ok .bg-soft-success.text-success { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
.scm-ok .bg-soft-danger.text-danger { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }
.scm-ok .bg-soft-warning.text-warning { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
.scm-ok .bg-soft-info.text-info { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
.scm-ok .bg-soft-secondary.text-secondary { background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
.scm-ok .bg-soft-dark.text-dark { background: var(--ok-fill) !important; color: var(--ok-text) !important; }
.scm-ok .scm-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border-radius: var(--ok-r-pill); font-size: 11.5px; }
.scm-ok .cvs-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px; border: 1px solid #dcdce0; border-radius: var(--ok-r-pill);
    background: var(--ok-fill); color: var(--ok-text-2); font-size: 12px; font-weight: 600; }
.scm-ok .scm-cell-err { color: var(--ok-red); }
.scm-ok .scm-cell-warn { color: #c93400; }

/* forms */
.scm-ok .form-label { display: block; margin-bottom: 5px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.scm-ok .form-label small { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ok-text-5); }
.scm-ok .form-label .text-danger { color: var(--ok-red) !important; }
.scm-ok .form-control { border: 1px solid var(--ok-line); border-radius: var(--ok-r); background-color: var(--ok-surface); font-size: var(--ok-fs); color: var(--ok-text); box-shadow: none; }
.scm-ok .form-control:not(textarea):not(.form-control-sm) { height: 38px; }
.scm-ok .form-control-sm { height: 30px; border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); }
.scm-ok .form-control::placeholder { color: var(--ok-text-5); }
.scm-ok .form-control:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.scm-ok textarea.form-control { min-height: 300px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.scm-ok .select2-container .select2-selection--single { height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.scm-ok .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; color: var(--ok-text); }
.scm-ok .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
.scm-ok .select2-container .select2-selection--multiple { min-height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
.scm-ok .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
.scm-ok .select2-container--focus .select2-selection, .scm-ok .select2-container--open .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
.scm-ok .form-check-input { border-color: #c7c7cc; }
.scm-ok .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
.scm-ok .form-check-input:focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
.scm-ok .scm-skill-add.btn { height: 26px; padding: 0 10px; border: 1px dashed #c7c7cc; border-radius: var(--ok-r-pill); background: var(--ok-surface);
    color: var(--ok-text-2); font-size: 12px; font-weight: 600; box-shadow: none; }
.scm-ok .scm-skill-add.btn:hover { border-color: var(--ok-blue); color: var(--ok-blue); }

/* step 2: extracted JD panel */
.scm-ok .cvs-dsec { margin: 0; border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface-2); overflow: hidden; }
.scm-ok .cvs-dsec-title { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--ok-surface); border-bottom: 1px solid var(--ok-line-2);
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.scm-ok .cvs-dsec-title i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; border-radius: 7px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 14px; }
.scm-ok .cvs-dsec-body { padding: 12px 16px; }
.scm-ok .cvs-dl-label { font-size: 10.5px; font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
.scm-ok .cvs-dl-value { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ok-text); word-break: break-word; }
.scm-ok .cvs-empty { padding: 40px 16px !important; text-align: center; color: var(--ok-text-4); }

/* step 3: run + progress, result tools */
.scm-ok .scm-run { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.scm-ok .scm-run > .ok-btn { height: 38px; }
.scm-ok .scm-run-progress { flex: 1 1 260px; min-width: 220px; }
.scm-ok .scm-run-progress .ok-progress-row { font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.scm-ok .scm-progress { height: 6px; border-radius: var(--ok-r-pill); background: var(--ok-fill); }
.scm-ok .scm-progress .progress-bar { background: var(--ok-grad) !important; border-radius: inherit; transition: width .35s var(--ok-ease); }
.scm-ok .scm-results-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.scm-ok .scm-results-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
.scm-ok .scm-min-score { width: 70px; }
.scm-ok .scm-search { position: relative; }
.scm-ok .scm-search > .mdi { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ok-text-4); pointer-events: none; }
.scm-ok .scm-search .form-control { width: 210px; padding-left: 30px; }
@media (max-width: 767.98px) { .scm-ok .scm-results-tools { margin-left: 0; } .scm-ok .scm-search, .scm-ok .scm-search .form-control { width: 100%; } }

/* tables (cvs-grid) */
.scm-ok .scm-table-wrap { overflow: auto; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); }
.scm-ok .cvs-grid { font-size: var(--ok-fs); border-collapse: separate; border-spacing: 0; }
.scm-ok .cvs-grid > thead > tr > th { position: sticky; top: 0; z-index: 2; padding: 11px 14px 9px; white-space: nowrap; background: var(--ok-surface-2) !important;
    color: var(--ok-text-4) !important; border: 0 !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.scm-ok .cvs-grid > tbody > tr > td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--ok-line-3); vertical-align: middle; color: var(--ok-text-2); font-size: var(--ok-fs); }
.scm-ok .cvs-grid > tbody > tr:last-child > td { border-bottom: 0; }
.scm-ok .cvs-grid > tbody > tr:not(.scm-detail):hover > td { background: var(--ok-surface-2); }
.scm-ok .cvs-grid > tbody > tr:has(input[type=checkbox]:checked) > td { background: rgba(0, 122, 255, .05); }
.scm-ok .cvs-grid .fw-semibold.text-dark { color: var(--ok-text) !important; }
.scm-ok .cvs-grid .text-muted { color: var(--ok-text-4) !important; }
.scm-ok .scm-result-row { cursor: pointer; }
.scm-ok .scm-score { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.scm-ok .scm-score-bar { flex: 1; height: 6px; border-radius: var(--ok-r-pill); background: var(--ok-fill); overflow: hidden; }
.scm-ok .scm-score-bar span { display: block; height: 100%; border-radius: inherit; }
.scm-ok .scm-score-val { width: 40px; text-align: right; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.scm-ok .scm-detail > td { background: var(--ok-surface-2) !important; }
.scm-ok .scm-detail ul { margin-bottom: 0; padding-left: 18px; }
.scm-ok .scm-detail .table { margin: 0; border: 1px solid var(--ok-line-2); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--ok-surface); }
.scm-ok .scm-detail .table > thead > tr > th { padding: 8px 12px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important;
    border-bottom: 1px solid var(--ok-line-2) !important; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.scm-ok .scm-detail .table > tbody > tr > td { padding: 7px 12px; border-bottom: 1px solid var(--ok-line-3); font-size: var(--ok-fs-sm); }

/* step 4: created alert */
.scm-ok .scm-alert { border: 0; border-radius: 12px; background: rgba(52, 199, 89, .12); color: #1f7a35; font-size: var(--ok-fs); }

@media (max-width: 575.98px) {
    .scm-ok .scm-how .ok-card-foot { flex-direction: column; align-items: stretch; }
    .scm-ok .cvs-form-actions > * { flex: 1 1 100%; }
    .scm-ok .cvs-form-actions .ok-toolbar .ok-btn { flex: 1 1 auto; justify-content: center; }
}


/* ---- 4am. Billing > Contract billing + Permanent billing  (modules/billing/contract_billing + permanent_billing, routes billing/contract-billing + billing/permanent-billing) --
   Built the same way as Contracts OS (4ak): the page (#contract_billing_page) is on the .pl-ok skin (4l); its modals
   sit in #contract_billing_modals and keep their own look. Both wrappers carry .cb-scope, which takes the Contract
   Summary palette tokens from 4ak part 2. Part 1 is the page's old <style> block, every selector scoped by .cb-scope
   (the unused .c100 circle-progress block was dropped). Part 2 puts the page on the theme layout. Part 3 is the
   search filter drawer look shared with Contracts OS (.ct-filter).
   Permanent billing (#permanent_billing_page / #permanent_billing_modals) had the identical <style> block, so it
   reuses all three parts (its unused .c100 block was dropped too). */

/* ---- 4am part 1: the page's own rules (were a <style> block in contract_billing.html) ---- */
    /* ---------- Contract billing page (Ubold) ---------- */
    .cb-scope input[type="text"].readonly {
        background-color: #f3f4f7;
        border-color: #e3e6ec;
        color: #6c757d;
    }

    .cb-scope .billing-page .page-title-box .page-title {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cb-scope .billing-toolbar .card-body {
        padding: 12px 16px;
    }

    .cb-scope .billing-toolbar .toolbar-actions .btn {
        margin-left: 6px;
    }

    .cb-scope .billing-toolbar .toolbar-actions .btn:first-of-type {
        margin-left: 0;
    }

    .cb-scope .billing-card {
        border: 0;
        border-radius: 8px;
        box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
    }

    .cb-scope .billing-card>.card-header {
        background: transparent;
        border-bottom: 1px solid #f1f3fa;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .cb-scope .billing-card>.card-header .header-title {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cb-scope .billing-card .card-drop {
        line-height: 1;
    }

    .cb-scope .billing-card .card-drop i {
        font-size: 20px;
    }

    /* KPI cards rendered into #billing_dashboard */
    .cb-scope #billing_dashboard .kpi-card {
        position: relative;
        height: 100%;
        background: #fff;
        border: 1px solid #f1f3fa;
        border-radius: 10px;
        padding: 18px 20px 16px;
        overflow: hidden;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .cb-scope #billing_dashboard .kpi-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: var(--kpi-color);
    }

    .cb-scope #billing_dashboard .kpi-card::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -30px;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: var(--kpi-color);
        opacity: .06;
        pointer-events: none;
    }

    .cb-scope #billing_dashboard .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(154, 161, 171, 0.25);
    }

    .cb-scope #billing_dashboard .kpi-primary { --kpi-color: #6658dd; }
    .cb-scope #billing_dashboard .kpi-info { --kpi-color: #4fc6e1; }
    .cb-scope #billing_dashboard .kpi-warning { --kpi-color: #f7b84b; }
    .cb-scope #billing_dashboard .kpi-danger { --kpi-color: #f1556c; }
    .cb-scope #billing_dashboard .kpi-blue { --kpi-color: #4a81d4; }
    .cb-scope #billing_dashboard .kpi-success { --kpi-color: #1abc9c; }

    .cb-scope #billing_dashboard .kpi-label {
        margin: 0 0 4px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #98a6ad;
    }

    .cb-scope #billing_dashboard .kpi-value {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #323a46;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cb-scope #billing_dashboard .kpi-sub {
        font-size: 12px;
        color: #98a6ad;
    }

    /* list table */
    .cb-scope #tblList .table-responsive {
        border: 1px solid #eef0f6;
        border-radius: 10px;
    }

    .cb-scope .billing-table {
        font-size: 13px;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cb-scope .billing-table thead th {
        background: #f8f9fc !important;
        color: #6c757d;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
        border-bottom: 1px solid #e3e6ec;
        padding: 12px 14px;
        vertical-align: middle;
    }

    .cb-scope .billing-table tbody td {
        vertical-align: middle;
        padding: 12px 14px;
        color: #4b5563;
        border-top: 0;
        border-bottom: 1px solid #f1f3fa;
        background-color: #fff;
        transition: background-color .15s ease;
    }

    .cb-scope .billing-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .cb-scope .billing-table tbody tr:hover>* {
        background-color: #f7f6fe;
    }

    .cb-scope .billing-table tbody tr:hover>td:first-child {
        box-shadow: inset 3px 0 0 #6658dd;
    }

    .cb-scope .billing-table .bl-candidate {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 160px;
    }

    .cb-scope .billing-table .bl-avatar {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .cb-scope .billing-table .bl-name,
    .cb-scope .billing-table .bl-client {
        font-weight: 600;
        color: #323a46;
    }

    .cb-scope .billing-table .bl-muted {
        color: #8a94a6;
        font-size: 12.5px;
    }

    .cb-scope .billing-table .bl-chip {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 6px;
        background: #f3f4f7;
        border: 1px solid #e9ebf1;
        color: #495057;
        font-family: SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        white-space: nowrap;
    }

    .cb-scope .billing-table .bl-currency {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        color: #6c757d;
    }

    .cb-scope .billing-table .bl-amount {
        text-align: right;
        font-weight: 700;
        color: #323a46;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .cb-scope .billing-table .badge {
        font-weight: 600;
        padding: 5px 9px;
        border-radius: 50rem;
    }

    .cb-scope .billing-table .bl-pill {
        font-size: 11.5px;
        white-space: nowrap;
    }

    .cb-scope .billing-table .bl-payment h5 {
        margin: 0 0 4px;
    }

    .cb-scope .billing-table .bl-payment h5:last-child {
        margin-bottom: 0;
    }

    /* approval column: approve / reject / stop / send for approval */
    .cb-scope .billing-table .bl-approval-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 150px;
    }

    .cb-scope .billing-table .bl-act-pair {
        display: flex;
        gap: 6px;
    }

    .cb-scope .billing-table .bl-act-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 10px;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.5;
        border-radius: 50rem;
        white-space: nowrap;
        box-shadow: none;
        transition: transform .12s ease, box-shadow .12s ease;
    }

    .cb-scope .billing-table .bl-act-btn i {
        font-size: 14px;
        line-height: 1;
    }

    .cb-scope .billing-table .bl-act-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(50, 58, 70, .15);
    }

    /* count badges on attachment / remark buttons
       (waves-effect sets overflow:hidden, which clips the badge) */
    .cb-scope .billing-table .bl-actions .btn:has(.noti-icon-badge) {
        overflow: visible;
    }

    .cb-scope .billing-table .bl-actions .noti-icon-badge.xs-badge {
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 10.5px;
        line-height: 17px;
        top: -8px;
        right: -6px !important;
        border-radius: 50rem;
        z-index: 3 !important;
        box-shadow: 0 0 0 2px #fff;
    }

    /* keep actions visible while scrolling horizontally */
    .cb-scope .billing-table thead th:last-child,
    .cb-scope .billing-table tbody td.bl-actions {
        position: sticky;
        right: 0;
        z-index: 2;
        white-space: nowrap;
    }

    .cb-scope .billing-table tbody td.bl-actions {
        box-shadow: -6px 0 10px -6px rgba(50, 58, 70, .15);
    }

    .cb-scope .billing-table .bl-empty {
        text-align: center;
        padding: 48px 16px !important;
        color: #98a6ad;
    }

    .cb-scope .billing-table .bl-empty i {
        font-size: 40px;
        display: block;
        margin-bottom: 6px;
        opacity: .6;
    }

    .cb-scope .billing-pagination .pagination {
        margin: 0 0 16px;
    }

    /* comments (remarks) modal */
    .cb-scope #remarkListModal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .cb-scope #remarkListModal .modal-header {
        padding: 16px 24px;
    }

    .cb-scope #remarkListModal .modal-title {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .cb-scope #remarkListModal .rm-count {
        margin-left: 6px;
        min-width: 22px;
        padding: 1px 8px;
        border-radius: 50rem;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .cb-scope #remarkListModal .rm-body {
        padding: 0;
        background: #f8f9fc;
    }

    .cb-scope #remarkListModal .rm-feed {
        max-height: calc(100vh - 330px);
        min-height: 160px;
        overflow-y: auto;
        padding: 18px 24px 6px;
    }

    .cb-scope #remarkListModal .rm-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .cb-scope #remarkListModal .rm-table thead {
        display: none;
    }

    .cb-scope #remarkListModal .rm-table td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .cb-scope #remarkListModal .rm-item {
        display: flex;
        gap: 12px;
        padding: 14px 16px;
        background: #fff;
        border: 1px solid #eef0f6;
        border-radius: 10px;
        transition: box-shadow .15s ease;
    }

    .cb-scope #remarkListModal .rm-item:hover {
        box-shadow: 0 4px 14px rgba(154, 161, 171, .2);
    }

    .cb-scope #remarkListModal .rm-avatar {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .cb-scope #remarkListModal .rm-content {
        flex: 1;
        min-width: 0;
    }

    .cb-scope #remarkListModal .rm-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 10px;
        margin-bottom: 4px;
    }

    .cb-scope #remarkListModal .rm-author {
        font-weight: 700;
        color: #323a46;
    }

    .cb-scope #remarkListModal .rm-date {
        font-size: 12px;
        color: #98a6ad;
    }

    .cb-scope #remarkListModal .rm-delete {
        margin-left: auto;
        padding: 2px 7px;
        border-radius: 6px;
        opacity: .45;
        transition: opacity .15s ease;
    }

    .cb-scope #remarkListModal .rm-item:hover .rm-delete,
    .cb-scope #remarkListModal .rm-delete:focus {
        opacity: 1;
    }

    .cb-scope #remarkListModal .rm-text {
        color: #4b5563;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.55;
    }

    .cb-scope #remarkListModal .rm-empty {
        text-align: center;
        padding: 36px 16px !important;
        color: #98a6ad;
    }

    .cb-scope #remarkListModal .rm-empty i {
        display: block;
        font-size: 40px;
        opacity: .6;
    }

    .cb-scope #remarkListModal .rm-empty div {
        font-weight: 600;
        color: #6c757d;
    }

    .cb-scope #remarkListModal .rm-composer {
        padding: 16px 24px 20px;
        background: #fff;
        border-top: 1px solid #eef0f6;
    }

    .cb-scope #remarkListModal .rm-composer-label {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
    }

    .cb-scope #remarkListModal .rm-composer textarea {
        resize: vertical;
        min-height: 80px;
        border-radius: 8px;
        background: #f8f9fc;
    }

    .cb-scope #remarkListModal .rm-composer textarea:focus {
        background: #fff;
    }

    .cb-scope #remarkListModal .rm-composer-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
    }

    /* attachments modal */
    .cb-scope #attachmentsModal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .cb-scope #attachmentsModal .modal-header {
        padding: 16px 24px;
    }

    .cb-scope #attachmentsModal .modal-title {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .cb-scope #attachmentsModal .at-count {
        margin-left: 6px;
        min-width: 22px;
        padding: 1px 8px;
        border-radius: 50rem;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .cb-scope #attachmentsModal .at-body {
        padding: 0;
        background: #f8f9fc;
    }

    .cb-scope #attachmentsModal .at-list {
        max-height: calc(100vh - 420px);
        min-height: 140px;
        overflow-y: auto;
        padding: 14px 24px 4px;
    }

    .cb-scope #attachmentsModal .at-table {
        border-collapse: separate;
        border-spacing: 0 8px;
    }

    .cb-scope #attachmentsModal .at-table thead {
        display: none;
    }

    .cb-scope #attachmentsModal .at-table tr.at-row td {
        padding: 12px 14px;
        vertical-align: middle;
        background: #fff;
        border-top: 1px solid #eef0f6;
        border-bottom: 1px solid #eef0f6;
        transition: background-color .15s ease;
    }

    .cb-scope #attachmentsModal .at-table tr.at-row td:first-child {
        border-left: 1px solid #eef0f6;
        border-radius: 10px 0 0 10px;
    }

    .cb-scope #attachmentsModal .at-table tr.at-row td:last-child {
        border-right: 1px solid #eef0f6;
        border-radius: 0 10px 10px 0;
    }

    .cb-scope #attachmentsModal .at-table tr.at-row:hover td {
        background: #f7f6fe;
    }

    .cb-scope #attachmentsModal .at-file {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 360px;
    }

    .cb-scope #attachmentsModal .at-file .link-view-file {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
        color: #323a46;
    }

    .cb-scope #attachmentsModal .at-file .link-view-file:hover {
        color: #6658dd;
        text-decoration: underline;
    }

    .cb-scope #attachmentsModal .at-icon {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6c757d;
        background: #eef0f6;
    }

    .cb-scope #attachmentsModal .at-icon.at-pdf { color: #e5484d; background: rgba(229, 72, 77, .12); }
    .cb-scope #attachmentsModal .at-icon.at-img { color: #6658dd; background: rgba(102, 88, 221, .12); }
    .cb-scope #attachmentsModal .at-icon.at-doc { color: #4a81d4; background: rgba(74, 129, 212, .12); }
    .cb-scope #attachmentsModal .at-icon.at-xls { color: #10a37f; background: rgba(26, 188, 156, .14); }
    .cb-scope #attachmentsModal .at-icon.at-ppt { color: #e8803a; background: rgba(232, 128, 58, .14); }

    .cb-scope #attachmentsModal .at-by,
    .cb-scope #attachmentsModal .at-date {
        font-size: 12.5px;
        color: #8a94a6;
        white-space: nowrap;
    }

    .cb-scope #attachmentsModal .at-actions {
        width: 1%;
        white-space: nowrap;
        text-align: right;
    }

    .cb-scope #attachmentsModal .at-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 4px;
        border-radius: 8px;
        font-size: 17px;
        color: #6c757d;
        background: #f3f4f7;
        transition: background-color .15s ease, color .15s ease;
    }

    .cb-scope #attachmentsModal .at-btn i {
        margin: 0;
        font-size: 17px;
    }

    .cb-scope #attachmentsModal .at-btn-view:hover {
        color: #6658dd;
        background: rgba(102, 88, 221, .12);
    }

    .cb-scope #attachmentsModal .at-btn-delete:hover {
        color: #f1556c;
        background: rgba(241, 85, 108, .12);
    }

    .cb-scope #attachmentsModal .at-empty {
        text-align: center;
        padding: 30px 16px !important;
        color: #98a6ad;
        border: 0 !important;
        background: transparent !important;
    }

    .cb-scope #attachmentsModal .at-empty i {
        display: block;
        font-size: 40px;
        opacity: .6;
    }

    .cb-scope #attachmentsModal .at-empty div {
        font-weight: 600;
        color: #6c757d;
    }

    .cb-scope #attachmentsModal .at-upload {
        padding: 16px 24px 20px;
        background: #fff;
        border-top: 1px solid #eef0f6;
    }

    .cb-scope #attachmentsModal .at-upload-title {
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
    }

    /* whole drop box opens the file picker */
    .cb-scope #attachmentsModal .at-drop {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 20px;
        border: 2px dashed #d6d9e6;
        border-radius: 10px;
        background: #f8f9fc;
        color: #6c757d;
        transition: border-color .15s ease, background-color .15s ease;
    }

    .cb-scope #attachmentsModal .at-drop:hover {
        border-color: #6658dd;
        background: rgba(102, 88, 221, .04);
    }

    .cb-scope #attachmentsModal .at-drop-icon {
        font-size: 34px;
        line-height: 1;
        color: #6658dd;
    }

    .cb-scope #attachmentsModal .at-drop small {
        color: #98a6ad;
    }

    .cb-scope #attachmentsModal .at-drop .fileinput-button {
        position: static;
        overflow: visible;
        color: #6658dd;
        text-decoration: underline;
    }

    .cb-scope #attachmentsModal .at-drop .fileinput-button input {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .cb-scope #attachmentsModal .at-pending:not(:empty) {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .cb-scope #attachmentsModal .at-pending .uploadMainContainer {
        margin: 0;
        padding: 10px 12px !important;
        border: 1px solid #eef0f6;
        border-radius: 8px;
        background: #fff;
    }

    .cb-scope #attachmentsModal .at-pending .uploadLabel {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #323a46;
    }

    .cb-scope #attachmentsModal .at-pending .cancel {
        cursor: pointer;
        color: #f1556c;
    }

    .cb-scope #attachmentsModal .at-pending .progress {
        border-radius: 50rem;
        background: #eef0f6;
    }

    .cb-scope #attachmentsModal .at-upload-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px;
    }

    /* payments received modal */
    .cb-scope #amount_received_modal .modal-content {
        border: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .cb-scope #amount_received_modal .modal-header {
        align-items: flex-start;
        padding: 16px 24px;
    }

    .cb-scope #amount_received_modal .pm-head-sub {
        margin-top: 6px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: rgba(255, 255, 255, .75);
    }

    .cb-scope #amount_received_modal .pm-head-chip {
        padding: 2px 8px;
        border-radius: 6px;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        font-family: SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
    }

    .cb-scope #amount_received_modal .pm-head-chip:empty {
        display: none;
    }

    .cb-scope #amount_received_modal .pm-dot {
        opacity: .5;
    }

    .cb-scope #amount_received_modal .pm-body {
        padding: 20px 24px 24px;
        background: #f8f9fc;
    }

    .cb-scope #amount_received_modal .pm-summary,
    .cb-scope #amount_received_modal .pm-form,
    .cb-scope #amount_received_modal .pm-history {
        padding: 16px 18px;
        background: #fff;
        border: 1px solid #eef0f6;
        border-radius: 10px;
    }

    .cb-scope #amount_received_modal .pm-form,
    .cb-scope #amount_received_modal .pm-history {
        margin-top: 16px;
    }

    .cb-scope #amount_received_modal .pm-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .cb-scope #amount_received_modal .pm-stat {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .cb-scope #amount_received_modal .pm-stat-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #98a6ad;
    }

    .cb-scope #amount_received_modal .pm-stat-value {
        font-size: 20px;
        font-weight: 700;
        color: #323a46;
        font-variant-numeric: tabular-nums;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cb-scope #amount_received_modal .pm-stat-received .pm-stat-value {
        color: #10a37f;
    }

    .cb-scope #amount_received_modal .pm-stat-balance .pm-stat-value {
        color: #f1556c;
    }

    .cb-scope #amount_received_modal .pm-stat-balance.pm-zero .pm-stat-value {
        color: #10a37f;
    }

    .cb-scope #amount_received_modal .pm-progress {
        height: 8px;
        margin-top: 14px;
        border-radius: 50rem;
        background: #eef0f6;
    }

    .cb-scope #amount_received_modal .pm-progress .progress-bar {
        border-radius: 50rem;
        background: linear-gradient(90deg, #6658dd, #4fc6e1);
        transition: width .4s ease;
    }

    .cb-scope #amount_received_modal .pm-progress .progress-bar.pm-done {
        background: #1abc9c;
    }

    .cb-scope #amount_received_modal .pm-progress-label {
        display: flex;
        justify-content: space-between;
        margin-top: 6px;
        font-size: 12px;
        color: #8a94a6;
    }

    .cb-scope #amount_received_modal .pm-currency {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        color: #6c757d;
    }

    .cb-scope #amount_received_modal .pm-section-title {
        margin-bottom: 12px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6658dd;
        display: flex;
        align-items: center;
    }

    .cb-scope #amount_received_modal .pm-form .form-label {
        font-weight: 600;
        color: #495057;
    }

    .cb-scope #amount_received_modal .pm-fill-balance {
        display: inline-block;
        margin-top: 6px;
        font-size: 12px;
        color: #6658dd;
    }

    .cb-scope #amount_received_modal .pm-fill-balance:hover {
        text-decoration: underline;
    }

    .cb-scope #amount_received_modal .pm-form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 16px;
    }

    .cb-scope #amount_received_modal .pm-history-count {
        margin-left: 8px;
        min-width: 22px;
        padding: 1px 8px;
        border-radius: 50rem;
        background: rgba(102, 88, 221, .12);
        color: #6658dd;
        font-size: 11px;
        text-align: center;
    }

    .cb-scope #amount_received_modal .pm-table {
        font-size: 13px;
    }

    .cb-scope #amount_received_modal .pm-table thead th {
        background: #f8f9fc;
        color: #6c757d;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
        border-bottom: 1px solid #e3e6ec;
        padding: 10px 12px;
    }

    .cb-scope #amount_received_modal .pm-table tbody td {
        padding: 11px 12px;
        vertical-align: middle;
        border-color: #f1f3fa;
        color: #4b5563;
    }

    .cb-scope #amount_received_modal .pm-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .cb-scope #amount_received_modal .pm-table tbody tr:hover td {
        background: #f7f6fe;
    }

    .cb-scope #amount_received_modal .pm-amt {
        font-weight: 700;
        color: #10a37f;
        font-variant-numeric: tabular-nums;
    }

    .cb-scope #amount_received_modal .pm-bal {
        font-variant-numeric: tabular-nums;
        color: #323a46;
    }

    .cb-scope #amount_received_modal .pm-date,
    .cb-scope #amount_received_modal .pm-by {
        white-space: nowrap;
        color: #8a94a6;
    }

    .cb-scope #amount_received_modal .pm-empty {
        text-align: center;
        padding: 28px 16px !important;
        color: #98a6ad;
    }

    .cb-scope #amount_received_modal .pm-empty i {
        display: block;
        font-size: 36px;
        opacity: .6;
    }

    .cb-scope #amount_received_modal .pm-empty div {
        font-weight: 600;
        color: #6c757d;
    }

    @media (max-width: 575.98px) {
        .cb-scope #amount_received_modal .pm-stats {
            grid-template-columns: 1fr;
        }
    }

    /* modals */
    .cb-scope .modal .modal-header.bg-dark {
        background: linear-gradient(135deg, #323a46 0%, #4b5563 100%) !important;
        border-bottom: 0;
        padding: 16px 24px;
    }

    .cb-scope .modal .modal-header.bg-dark .modal-title {
        font-weight: 600;
        letter-spacing: .02em;
    }

    .cb-scope #right-modal .modal-content {
        border: 0;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(50, 58, 70, .2);
    }

    .cb-scope #right-modal .col-form-label,
    .cb-scope #invoice_form .col-form-label {
        font-weight: 600;
        color: #495057;
    }

/* ---- 4am part 2: theme layout (page head, summary + list cards, table head, pager, modal corners) ---- */
/* page head: count pill + "Reset filter" pill in the summary colours (same as Contracts OS) */
:is(#contract_billing_page, #permanent_billing_page) .pl-head h4 .badge { background: rgba(102, 88, 221, .12) !important; color: #6658dd !important; }
:is(#contract_billing_page, #permanent_billing_page) .pl-head h4 .cb-reset-filter { background: rgba(241, 85, 108, .12) !important; color: #f1556c !important; font-size: 12px; }
:is(#contract_billing_page, #permanent_billing_page) .pl-head h4 .cb-reset-filter i { color: inherit !important; font-size: 11px; }

/* export menu in the list card head */
:is(#contract_billing_page, #permanent_billing_page) .an-head-actions .dropdown-menu { padding: 6px; border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }
:is(#contract_billing_page, #permanent_billing_page) .an-head-actions .dropdown-item { border-radius: var(--ok-r-sm); font-size: var(--ok-fs); color: var(--ok-text); }
:is(#contract_billing_page, #permanent_billing_page) .an-head-actions .dropdown-item:hover { background: var(--ok-fill-2); }

/* Billing Summary KPI cards (built by the js): colours untouched, card + type follow the theme */
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .kpi-card { border-color: var(--ok-line-2); border-radius: 14px; box-shadow: var(--ok-shadow-xs); }
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .kpi-card:hover { box-shadow: var(--ok-shadow-lg); }
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .kpi-label { font-size: 11px; letter-spacing: .06em; color: var(--ok-text-4); }
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .kpi-value { font-family: var(--ok-font-display); font-size: 22px; color: var(--ok-text); font-variant-numeric: tabular-nums; }
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .kpi-sub { color: var(--ok-text-4); }
:is(#contract_billing_page, #permanent_billing_page) #billing_dashboard .avatar-md { width: 44px; height: 44px; border-radius: 12px !important; }

/* billing table (bl-* cells keep their look): theme head + rounded box */
:is(#contract_billing_page, #permanent_billing_page) #tblList .table-responsive { border-color: var(--ok-line-2); border-radius: 12px; }
:is(#contract_billing_page, #permanent_billing_page) .billing-table thead th { background: var(--ok-surface-2) !important; color: var(--ok-text-4); font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em;
    border-bottom-color: var(--ok-line-2); }
:is(#contract_billing_page, #permanent_billing_page) .billing-table tbody td { color: var(--ok-text-2); border-bottom-color: var(--ok-line-3); }
:is(#contract_billing_page, #permanent_billing_page) .billing-table :is(.bl-name, .bl-client, .bl-amount) { color: var(--ok-text); }
:is(#contract_billing_page, #permanent_billing_page) .billing-pagination .pagination { margin: 0 0 16px; }

/* modals: own look kept; only the corners and title accents follow the theme */
:is(#contract_billing_modals, #permanent_billing_modals) .modal:not(.modal-fullscreen) .modal-content { border-radius: 18px; overflow: hidden; }
:is(#contract_billing_modals, #permanent_billing_modals) .modal-header .modal-title .text-primary { color: #6658dd !important; }

/* ---- 4am part 3: search filter drawers, shared with Contracts OS ----------------------------------------------
   #right-modal / #contract-search-modal (Contracts OS) and #right-modal (Contract billing) carry .ct-filter.
   Full-height panel from the right, light header, label above each field (two per row), Reset / Search pinned
   in a footer bar at the bottom of the form. Pure css over the existing col-6 rows, so the form ids are untouched. */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-dialog { position: fixed; top: 0; right: 0; bottom: 0; display: flex; flex-flow: column nowrap;
    width: 640px !important; max-width: 100% !important; height: 100%; margin: 0 !important; background: transparent; transform: none !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-content { display: flex; flex-direction: column; flex: 1 1 auto; height: 100% !important; min-height: 0;
    border: 0; border-radius: 22px 0 0 22px !important; background: var(--ok-surface) !important; box-shadow: var(--ok-shadow-lg); overflow: visible; font-family: var(--ok-font); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-header { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 18px 22px !important;
    background: transparent !important; border-bottom: 1px solid var(--ok-line-2) !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ok-font-display);
    font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ok-text) !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-title > i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 9px; background: rgba(102, 88, 221, .12); color: #6658dd !important; font-size: 16px; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-header .btn-close { position: static !important; margin: 0 0 0 auto; filter: none; opacity: .5; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-header .btn-close:hover { opacity: .9; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 !important; }

/* strip the old wrappers (text-center > row > col-12 > card > card-body) */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body > .text-center { text-align: left !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body > .text-center > .row { margin: 0 !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body > .text-center > .row > .col-12 { padding: 0; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body .card { margin: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-body .card-body { padding: 20px 22px 0; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form > .mb-2 { margin: 0 !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .mb-2 > .col-12.text-sm-left { display: none; }

/* fields: two per row, label above */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2 { --bs-gutter-x: 16px; margin-top: 0 !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2 > [class*="col-"] { margin-bottom: 16px; text-align: left !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter :is(.col-form-label, .form-label) { display: block; flex: none; width: 100% !important; max-width: none;
    padding: 0 !important; margin: 0 0 6px !important; font-size: var(--ok-fs-xs) !important; font-weight: 600 !important; letter-spacing: var(--ok-track);
    text-transform: uppercase; line-height: 1.4; white-space: normal; color: var(--ok-text-4) !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter :is(.col-form-label, .form-label) .text-danger { color: var(--ok-red) !important; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter label:empty { display: none; }
/* "use this filter" checkbox in front of a label (Contracts: created year, start / end date range) */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter [class*="col-"] > .form-check-input:first-child { float: none; margin: 1px 6px 0 0 !important; vertical-align: top; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .form-check-input + :is(.col-form-label, .form-label) { display: inline-block; width: auto !important; }

/* controls */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter :is(.form-control, .form-select) { min-height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background-color: var(--ok-surface); font-size: var(--ok-fs); color: var(--ok-text); box-shadow: none; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .form-control[readonly] { cursor: pointer; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .select2-container .select2-selection--single { height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; color: var(--ok-text); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .select2-container .select2-selection--multiple { min-height: 38px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .select2-selection__choice { border: 1px solid #dcdce0 !important; border-radius: var(--ok-r-pill) !important;
    background: var(--ok-fill) !important; color: var(--ok-text-2) !important; font-size: 12px; font-weight: 600; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }

/* Reset / Search row -> footer bar that stays in view while the fields scroll */
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2:has(button[id$="search_action"]) { position: sticky; bottom: 0; z-index: 3; margin: 4px -22px 0 !important;
    padding: 14px 22px; background: var(--ok-surface-2); border-top: 1px solid var(--ok-line-2); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2:has(button[id$="search_action"]) > [class*="col-"]:not(:has(.btn)) { display: none; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2:has(button[id$="search_action"]) > [class*="col-"]:has(.btn) { display: flex; justify-content: flex-end; gap: 8px;
    flex: 1 1 100%; max-width: 100%; margin: 0 !important; padding: 0; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-family: var(--ok-font); font-size: var(--ok-fs);
    font-weight: 600; box-shadow: var(--ok-shadow-xs); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn i { color: var(--ok-text-3); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn-success { min-width: 110px; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn-success i { color: #fff; }
:is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .btn-success:hover { background: var(--ok-grad-hover); color: #fff; }

@media (max-width: 575.98px) {
    :is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter .modal-content { border-radius: 0 !important; }
    :is(#contracts_modals, #contract_billing_modals, #permanent_billing_modals) .ct-filter form .row.mt-2 > .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ---- 4an. Engagement > Meetings + Summary  (modules/meetings/meetings + meetings-summary, routes meetings + meetings-summary) ----
   Both pages put "ok-page pl-ok" on the wrapper (#meetings_page, #meetings_summary_page), so the 4l skin gives the page head,
   cards, tables, modals and filter buttons. What follows is only what these pages add on top. */

/* .hide helper used by meetings.js (was a <style> block in meetings.html) */
#meetings_page .hide { display: none; }

/* inline search card (#searchPanel, opened / closed by the page js) */
:is(#meetings_page, #meetings_summary_page) #searchPanel .an-body { padding-top: 8px; }
:is(#meetings_page, #meetings_summary_page) .mt-filter-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    color: var(--ok-text-4); font-size: 18px; transition: background var(--ok-t), color var(--ok-t); }
:is(#meetings_page, #meetings_summary_page) .mt-filter-close:hover { background: var(--ok-fill-2); color: var(--ok-text); }
:is(#meetings_page, #meetings_summary_page) .mt-date-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
:is(#meetings_page, #meetings_summary_page) .mt-date-label .form-check-input { margin: 0; float: none; }
:is(#meetings_page, #meetings_summary_page) .mt-filter-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--ok-line-2); }

/* count pill in a card head */
#meetings_page .mt-count { display: inline-flex; align-items: center; min-width: 28px; justify-content: center; padding: 4px 10px; border-radius: var(--ok-r-pill);
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* meeting list rows (built in meetings.js populate_list) */
#meetings_page .mt-list { display: flex; flex-direction: column; gap: 10px; }
#meetings_page .mt-item { padding: 0; border: 1px solid var(--ok-line-2) !important; border-radius: 14px !important; background: var(--ok-surface); list-style: none;
    box-shadow: var(--ok-shadow-xs); transition: box-shadow var(--ok-t), border-color var(--ok-t); }
#meetings_page .mt-item:hover { border-color: rgba(0, 122, 255, .30) !important; box-shadow: var(--ok-shadow); }
#meetings_page .mt-item-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: stretch; }
#meetings_page :is(.mt-item-when, .mt-item-main) { cursor: pointer; }
#meetings_page .mt-item-when { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; border-right: 1px solid var(--ok-line-3);
    border-radius: 14px 0 0 14px; background: var(--ok-surface-2); }
#meetings_page .mt-time { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text); font-variant-numeric: tabular-nums; }
#meetings_page .mt-time i { font-size: 15px; color: var(--ok-green); }
#meetings_page .mt-time-end { color: var(--ok-text-3); }
#meetings_page .mt-time-end i { color: var(--ok-red); }
#meetings_page .mt-item-main { min-width: 0; padding: 14px 18px; }
#meetings_page .mt-item-title { margin-bottom: 8px; font-size: var(--ok-fs-md); font-weight: 700; color: var(--ok-text); line-height: 1.3; overflow-wrap: anywhere; }
#meetings_page .mt-item:hover .mt-item-title { color: var(--ok-blue); }
#meetings_page .mt-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
#meetings_page .mt-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 10px; border-radius: var(--ok-r-pill); background: var(--ok-fill);
    font-size: 12px; font-weight: 600; color: var(--ok-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#meetings_page .mt-chip i { font-size: 14px; color: var(--ok-text-4); }
#meetings_page .mt-item-by { display: flex; align-items: center; gap: 5px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#meetings_page .mt-item-actions { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; border-left: 1px solid var(--ok-line-3); }
#meetings_page .mt-item-actions .btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px; padding: 5px 12px; border: 0; border-radius: var(--ok-r-pill);
    font-size: 12px; font-weight: 600; line-height: 1.3; box-shadow: none; white-space: nowrap; }
#meetings_page .mt-item-actions .btn-warning { background: rgba(255, 149, 0, .14); color: #c93400; }
#meetings_page .mt-item-actions .btn-primary { background: rgba(0, 122, 255, .10); color: var(--ok-blue); }
#meetings_page .mt-item-actions .btn-danger  { background: rgba(255, 59, 48, .12); color: #d70015; }
#meetings_page .mt-item-actions .btn:hover { filter: brightness(.95); }
#meetings_page .list-placeholder { padding: 32px 12px; text-align: center; color: var(--ok-text-4); }
#meetings_page .mt-load-more { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill);
    background: var(--ok-surface); color: var(--ok-text-2); font-size: var(--ok-fs-sm); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#meetings_page .mt-load-more:hover { background: var(--ok-surface-2); }

/* calendar popup */
#meetings_page #calendar-modal .modal-header-actions { margin-left: auto; }
#meetings_page #calendar-modal .modal-header-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: var(--ok-r);
    background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
#meetings_page #calendar-modal .modal-header .btn-close { margin-left: 8px !important; }

/* create / edit form (#new_div) */
#meetings_page #new_div > div { padding: 0; }
#meetings_page .mt-form-card > .an-body { padding: 20px 22px 22px; }
#meetings_page .mt-form-card > .an-body > .row { margin: 0; }
#meetings_page .mt-section { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--ok-line-2);
    background: none; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); text-align: left; }
#meetings_page .mt-section i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(0, 122, 255, .10);
    color: var(--ok-blue); font-size: 15px; }
#meetings_page .mt-section span { text-transform: none; letter-spacing: 0; font-weight: 500; }
#meetings_page .mt-form-card .mt-section:not(:first-child) { margin-top: 24px; }
#meetings_page .mt-form-card hr { margin: 18px 0; border-color: var(--ok-line-2); opacity: 1; }
#meetings_page :is(#new_div, .modal) .col-form-label { font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-3); }
#meetings_page #new_div :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
#meetings_page #new_div :is(.form-control, .form-select):not(textarea) { min-height: 36px; }
#meetings_page #new_div :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#meetings_page #new_div .form-control[readonly] { background: var(--ok-surface); cursor: pointer; }
#meetings_page #new_div .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#meetings_page #new_div .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
#meetings_page #new_div .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#meetings_page #new_div .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#meetings_page #new_div .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
#meetings_page #new_div :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#meetings_page #new_div .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
#meetings_page .mt-agenda-box { margin: 0; padding: 14px 16px 4px; border: 1px dashed var(--ok-line); border-radius: 12px; background: var(--ok-surface-2); }
#meetings_page .mt-agenda-box .fileinput-button { border-radius: var(--ok-r); }

/* Save / Cancel bar under the form */
#meetings_page .mt-form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--ok-gap); padding: 14px 18px;
    border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg); background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#meetings_page .mt-form-actions-right { display: flex; gap: 8px; margin-left: auto; }
#meetings_page .mt-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#meetings_page .mt-form-actions .btn i { color: var(--ok-text-3); }
#meetings_page .mt-form-actions .btn:hover { background: var(--ok-surface-2); }
#meetings_page .mt-form-actions .btn-success { min-width: 110px; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#meetings_page .mt-form-actions .btn-success i { color: #fff; }
#meetings_page .mt-form-actions .btn-success:hover { background: var(--ok-grad-hover); color: #fff; }

/* popups: MoM, email preview, agenda, site visit report, send SVR */
#meetings_page .modal-body { background: var(--ok-surface-2); }
#meetings_page .mt-modal-card { border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#meetings_page .modal .mt-section { margin-top: 18px; }
#meetings_page .modal .form-wizard-header { padding: 3px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill) !important; }
#meetings_page .modal .form-wizard-header .nav-link { border-radius: var(--ok-r-sm) !important; color: var(--ok-text-4); font-weight: 600; }
#meetings_page .modal .form-wizard-header .nav-link.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
#meetings_page .modal .table > tbody > tr > td { vertical-align: middle; border-color: var(--ok-line-3); }

/* Summary: export buttons, detail row (copied under a table row by meetings-summary.js) */
#meetings_summary_page > #div_more_info_parent { display: none; }
#meetings_summary_page .mt-detail { margin: 4px 0; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); overflow: hidden; }
#meetings_summary_page .mt-detail-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(0, 122, 255, .05);
    border-bottom: 1px solid var(--ok-line-2); font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text); }
#meetings_summary_page .mt-detail-head i { color: var(--ok-blue); }
#meetings_summary_page .mt-detail-head a { color: var(--ok-text-4); font-size: 18px; }
#meetings_summary_page .mt-detail-head a:hover { color: var(--ok-text); }
#meetings_summary_page .pl-table td:has(> div > #div_more_info_detail),
#meetings_summary_page .pl-table > tbody > tr:has(.mt-detail) > td { padding: 6px 14px 12px; background: var(--ok-surface-2) !important; }
#meetings_summary_page #pagination_div { display: flex; justify-content: flex-end; }

@media (max-width: 991.98px) {
    #meetings_page .mt-item-row { grid-template-columns: minmax(0, 1fr); }
    #meetings_page .mt-item-when { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; border-right: 0; border-bottom: 1px solid var(--ok-line-3); border-radius: 14px 14px 0 0; }
    #meetings_page .mt-item-actions { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--ok-line-3); }
}


/* ---- 4ao. Disciplinary  (modules/disciplinary/listing_disciplinary, route disciplinary) ---- */
/* The page wrapper carries "ok-page pl-ok", so the 4l skin gives the head, cards, tabs, tables, side search panel and modals.
   These are the page's own rules (were a <style> block in listing_disciplinary.html), moved onto the theme tokens. */

/* read-only fields filled from the employee (reference file, gender) */
#disciplinary_page .disabled_class { background-color: var(--ok-surface-2) !important; border-color: var(--ok-line); color: var(--ok-text-3); cursor: not-allowed; }

/* date filter bar above the list */
#disciplinary_page #filter_div > .an-body { padding: 14px 20px; }
#disciplinary_page .os-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#disciplinary_page .os-filter-row .form-label { margin: 0; }
#disciplinary_page .os-filter-row .ms-auto { margin-left: auto !important; }

/* sub-section head inside a panel: label left, action right (Investigations, Recommendations, Actions taken) */
#disciplinary_page .os-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
#disciplinary_page .os-subhead .pl-group-label { margin: 0; }
#disciplinary_page .pl-filter .os-subhead .btn { height: 32px; padding: 0 12px; font-size: var(--ok-fs-sm); }
#disciplinary_page .os-divider { margin: 18px 0 14px; border-top: 1px solid var(--ok-line-2); }

/* inline add / edit box + its Save / Reset row */
#disciplinary_page .os-form-box { margin-top: 14px; padding: 16px 16px 4px; background: var(--ok-surface-2); border: 1px solid var(--ok-line-2); border-radius: 14px; }
#disciplinary_page .os-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#disciplinary_page .os-form-box .os-form-actions { margin: 0 0 12px; padding-top: 0; border-top: 0; }
#disciplinary_page .os-form-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#disciplinary_page .os-form-actions .btn:hover { background: var(--ok-surface-2); }
#disciplinary_page .os-form-actions :is(.btn-success, .btn-primary) { min-width: 110px; justify-content: center; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#disciplinary_page .os-form-actions :is(.btn-success, .btn-primary) i { color: #fff; }
#disciplinary_page .os-form-actions :is(.btn-success, .btn-primary):hover { background: var(--ok-grad-hover); color: #fff; }

/* "+" next to a lookup select (misconduct type, offence, document type, punishment) and its inline "add new" box */
#disciplinary_page .input-group-text[id^="add_"] { height: 36px; vertical-align: top; cursor: pointer; background: var(--ok-surface); border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); color: var(--ok-blue); transition: border-color var(--ok-t), background var(--ok-t); }
#disciplinary_page .input-group-text[id^="add_"]:hover { border-color: var(--ok-blue); background: rgba(0, 122, 255, .06); }
#disciplinary_page [id^="other_div_"] .btn { height: 30px; padding: 0 10px; border-radius: var(--ok-r-sm); font-size: 12px; font-weight: 600; box-shadow: none; }
#disciplinary_page [id^="other_div_"] .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; }

/* occurrence picker (1st / 2nd / 3rd / 4th) */
#disciplinary_page .os-occurrence { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px; background: var(--ok-surface-2);
    border: 1px solid var(--ok-line-2); border-radius: 12px; }
#disciplinary_page .os-occurrence .form-check { margin: 0; }
#disciplinary_page .os-occurrence .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }

/* "Occurrence" column group over the 1st..4th columns of the list */
#disciplinary_page .pl-table > thead > tr.os-group-row > th { padding: 8px 14px 6px; border-bottom: 0 !important; }
#disciplinary_page .pl-table > thead > tr.os-group-row > th.os-group { background: rgba(255, 59, 48, .10) !important; color: #d70015 !important; text-align: center;
    border-radius: 8px 8px 0 0; }
#disciplinary_page .pl-table > thead > tr:not(.os-group-row) > th:nth-child(n+19):nth-child(-n+22) { background: rgba(255, 59, 48, .05) !important; text-align: center; }

/* wide list tables: horizontal scroll inside the rounded box, pager under the card */
#disciplinary_page .pl-boxed { overflow-x: auto; }
#disciplinary_page .disciplinary-table td .btn { margin: 2px 2px 2px 0 !important; }
#disciplinary_page .dc-pager { display: flex; justify-content: flex-end; }
#disciplinary_page .dc-pager .pagination:empty { display: none; }

/* bulk upload verification popup: wide table with valid / invalid cells */
#disciplinary_page #upload_modal .modal-body { background: var(--ok-surface-2); }
#disciplinary_page #upload_modal #list_upload { border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); }
#disciplinary_page #upload_modal .table > tbody > tr > td { white-space: nowrap; vertical-align: middle; border-color: var(--ok-line-3); }


/* ---- 4ap. Orchestration  (modules/orchestration: checklist, onboarding, offboarding, dashboard) ---- */
/* Routes orchestration_checklist / orchestration_onboarding / orchestration_offboarding / orchestration_db.
   Each page puts "ok-page pl-ok" on its wrapper (#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page,
   #orch_dashboard_page), so the 4l skin gives the page head, cards, tables, badges, row buttons and modals.
   What follows is only what these pages add on top (the <style> blocks that were in checklist / onboarding / offboarding.html
   moved here, scoped). */

:is(#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page, #orch_dashboard_page) .or-page { padding: 0; }

/* section label inside a form card */
#orch_checklist_page .or-section { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ok-line-2);
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#orch_checklist_page .or-section i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 14px; }
#orch_checklist_page .row + .or-section { margin-top: 22px; }

/* form controls in the checklist card (same look as .pl-filter) */
#orch_checklist_page .or-form-card .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#orch_checklist_page .or-form-card :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
#orch_checklist_page .or-form-card :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#orch_checklist_page .or-form-card .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#orch_checklist_page .or-form-card .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
#orch_checklist_page .or-form-card .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#orch_checklist_page .or-form-card .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#orch_checklist_page .or-form-card .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
#orch_checklist_page .or-form-card :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#orch_checklist_page .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
#orch_checklist_page .or-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; min-height: 36px; }
#orch_checklist_page .or-radios .form-check-label { font-size: var(--ok-fs); color: var(--ok-text-2); }

/* item select + "add new" button, and the inline add box it opens */
#orch_checklist_page .or-select-add { display: flex; align-items: stretch; gap: 6px; }
#orch_checklist_page .or-select-add > .select2-container,
#orch_checklist_page .or-select-add > select { flex: 1 1 auto; min-width: 0; }
#orch_checklist_page #add_category { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex: 0 0 36px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-blue); cursor: pointer; }
#orch_checklist_page #add_category:hover { background: rgba(0, 122, 255, .08); }
#orch_checklist_page .or-add-inline { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px; border: 1px dashed var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface-2); }
#orch_checklist_page .or-add-inline #txt_category { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
#orch_checklist_page .or-add-inline .btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: var(--ok-r-sm); font-weight: 600; white-space: nowrap; }
#orch_checklist_page .or-add-inline .btn-success { border-color: transparent; background: var(--ok-grad); color: #fff; }

/* Reset / Add bar */
#orch_checklist_page .or-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
#orch_checklist_page .or-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#orch_checklist_page .or-form-actions .btn:hover { background: var(--ok-surface-2); }
#orch_checklist_page .or-form-actions .btn-success { min-width: 120px; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#orch_checklist_page .or-form-actions .btn-success:hover { background: var(--ok-grad-hover); color: #fff; }

/* configured items table (was the <style> block in checklist.html) */
#orch_checklist_page #tbl_checklist td { vertical-align: middle; }
#orch_checklist_page #tbl_checklist i { cursor: pointer; }
#orch_checklist_page #tbl_checklist :is(.edit_btn, .del_btn) { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
#orch_checklist_page #tbl_checklist .edit_btn { background: rgba(0, 122, 255, .10); }
#orch_checklist_page #tbl_checklist .del_btn  { background: rgba(255, 59, 48, .12); }

/* "+N more" designations tooltip, built by checklist.js / onboarding.js / offboarding.js */
:is(#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page) .role-tooltip-wrapper { position: relative; cursor: pointer; }
:is(#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page) .role-tooltip { position: absolute; bottom: 120%; left: 0; z-index: 9999; width: 420px; max-width: 95vw; max-height: 240px;
    overflow-y: auto; padding: 12px 14px; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); color: var(--ok-text-2); box-shadow: var(--ok-shadow-lg);
    font-size: var(--ok-fs-sm); line-height: 1.6; text-align: left; white-space: normal; word-break: break-word; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
:is(#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page) .role-tooltip::after { content: ""; position: absolute; top: 100%; left: 24px; border-width: 7px; border-style: solid;
    border-color: var(--ok-surface) transparent transparent transparent; }
:is(#orch_checklist_page, #orch_onboarding_page, #orch_offboarding_page) .role-tooltip-wrapper:hover .role-tooltip { opacity: 1; visibility: visible; }

/* Onboarding / Offboarding: filter card + employee list */
:is(#orch_onboarding_page, #orch_offboarding_page) .or-filter-body { padding: 18px 20px; }
:is(#orch_onboarding_page, #orch_offboarding_page) .or-range { width: 100%; }
:is(#orch_onboarding_page, #orch_offboarding_page) .pl-filter #btn_dt_action { min-width: 110px; }
:is(#orch_onboarding_page, #orch_offboarding_page) #candidateTable .button-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
:is(#orch_onboarding_page, #orch_offboarding_page) #candidateTable .button-list br { display: none; }
:is(#orch_onboarding_page, #orch_offboarding_page) #candidateTable .btn { margin: 0 !important; }

/* checklist popup: wide table, row inputs */
:is(#orch_onboarding_page, #orch_offboarding_page) .modal-body { background: var(--ok-surface-2); }
:is(#orch_onboarding_page, #orch_offboarding_page) .modal-body > .pl-table,
:is(#orch_onboarding_page, #orch_offboarding_page) .modal-body > .table-responsive { border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); overflow: hidden; }
:is(#orch_onboarding_page, #orch_offboarding_page) .modal .pl-table > tbody > tr > td { vertical-align: middle; border-color: var(--ok-line-3); }
:is(#orch_onboarding_page, #orch_offboarding_page) .modal .pl-table .form-control { border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); }
:is(#orch_onboarding_page, #orch_offboarding_page) .modal .pl-table .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }

/* attachments popup: upload bar */
:is(#orch_onboarding_page, #orch_offboarding_page) .or-upload-bar { padding: 10px 12px; border: 1px dashed var(--ok-line); border-radius: 12px; background: var(--ok-surface); }
:is(#orch_onboarding_page, #orch_offboarding_page) .or-upload-bar .fileinput-button { border-radius: var(--ok-r-sm); }
:is(#orch_onboarding_page, #orch_offboarding_page) .or-upload-bar #btn_save_attachment { display: inline-flex; align-items: center; gap: 4px; border-color: transparent; border-radius: var(--ok-r);
    background: var(--ok-grad); color: #fff; font-weight: 600; }

/* ---- 4aq. Set up > Public holidays  (modules/public_holidays, route settings/public-holidays) ----------------------
   "ok-page pl-ok" wrapper (#public_holidays_page); the 4l skin does head, cards, tables, filter buttons. */

/* year filter in the page head */
#public_holidays_page .ph-year { display: inline-block; width: 170px; }
#public_holidays_page .pl-toolbar .select2-container .select2-selection--single { background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }

/* search card */
#public_holidays_page .ph-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    color: var(--ok-text-4); font-size: 18px; }
#public_holidays_page .ph-close:hover { background: var(--ok-fill-2); color: var(--ok-text); }
#public_holidays_page .ph-switch { min-height: 36px; display: flex; align-items: center; }
#public_holidays_page .ph-switch .form-check-input { width: 2.4em; height: 1.3em; margin: 0; }
#public_holidays_page .ph-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }

/* list: whole row opens the holiday list */
#public_holidays_page #companies_list tbody tr.clickable-row { cursor: pointer; }
#public_holidays_page #companies_list tbody td:first-child { font-weight: 600; color: var(--ok-text); }

/* holiday list editor */
#public_holidays_page .ph-company { display: block; margin-top: 2px; font-family: var(--ok-font-display); font-size: var(--ok-fs-md); font-weight: 700; color: var(--ok-text); }
#public_holidays_page .ph-total { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-3); }
#public_holidays_page .ph-total .badge { padding: 5px 11px; border-radius: var(--ok-r-pill); background: rgba(255, 149, 0, .14) !important; color: #c93400 !important;
    font-size: 12px; font-weight: 700; }
#public_holidays_page .ph-fields { margin-bottom: 16px; }
#public_holidays_page :is(#holidays_list_div, #new_div) .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#public_holidays_page #holidays_list_div :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
#public_holidays_page #holidays_list_div :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#public_holidays_page #holidays_list_div .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#public_holidays_page #holidays_list_div .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
#public_holidays_page #holidays_list_div .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#public_holidays_page #holiday_master_table > tbody > tr > td { padding: 8px 14px; }
#public_holidays_page #holiday_master_table > tbody > tr > td:first-child { color: var(--ok-text-4); font-variant-numeric: tabular-nums; }
#public_holidays_page #holiday_master_table .form-control { min-height: 34px; }
#public_holidays_page .ph-add-row { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 10px;
    border: 1px dashed var(--ok-line); border-radius: 12px; background: var(--ok-surface-2); color: var(--ok-blue); font-size: var(--ok-fs); font-weight: 600; }
#public_holidays_page .ph-add-row:hover { border-color: var(--ok-blue); background: rgba(0, 122, 255, .05); color: var(--ok-blue); }
#public_holidays_page .ph-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--ok-line-2);
    border-radius: 0 0 var(--ok-r-lg) var(--ok-r-lg); background: var(--ok-surface-2); }

/* Save / Save As New (outside .pl-toolbar / .modal-footer, so not styled by 4l) */
#public_holidays_page .ph-footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#public_holidays_page .ph-footer .btn i { color: var(--ok-text-3); }
#public_holidays_page .ph-footer .btn:hover { background: var(--ok-surface-2); }
#public_holidays_page .ph-footer .btn-success { min-width: 110px; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#public_holidays_page .ph-footer .btn-success i { color: #fff; }
#public_holidays_page .ph-footer .btn-success:hover { background: var(--ok-grad-hover); color: #fff; }

@media (max-width: 767.98px) {
    #public_holidays_page .ph-year { width: 100%; }
}


/* ---- 4ar. ATS > Dashboard / Job portal  (modules/jobportal/jobportal, route jobportal) ----
   The page sits in #jobportal_page (.ok-page .pl-ok .jp-scope), so the 4l skin gives the page head, modals, form controls
   and pager. #add_jd_modal is moved to <body> by jobportal.js, so it carries "pl-ok jp-scope" itself.
   Part 1 is the page's old <style> blocks (six of them), every selector scoped by .jp-scope; things that live
   outside the page in <body> (modal backdrop, the body.right-bar-enabled state, html scrolling) use
   body:has(#jobportal_page) so they only apply while this page is open. Its neutral greys were moved onto the theme
   tokens (text / line / surface); status colours (green, amber, red, cyan, purple) are kept. The dark modal headers
   (.eem-header, .smm-header) and the dark .ajo-table head were dropped in favour of the skin's light header.
   Part 2 puts the dashboard panels, tiles, buttons and job order cards on the theme layout.
   Part 3 puts the popups (buttons, action bars, section titles, old filled popups) on the theme look. */

/* ---- 4ar part 1: the page's own rules (were <style> blocks in jobportal.html) ---- */
/* -- from jobportal.html <style> lines 10-400 -- */
    /* Qualification Information - JD suggestions and the inline "add to list" rows */
    .jp-scope .jd-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
    .jp-scope .jd-suggest-label { font-size: 12px; color: var(--ok-text-4); margin-right: 2px; }
    .jp-scope .jd-suggest-chip { border: 1px dashed #a3e4d7; background: #e8f8f5; color: #148f77; border-radius: 20px; padding: 1px 10px; font-size: 12.5px; font-weight: 500; line-height: 20px; }
    .jp-scope .jd-suggest-chip:hover { background: #1abc9c; border-color: #1abc9c; color: #fff; }
    .jp-scope .jd-suggest-chip:disabled { opacity: .5; }
    .jp-scope .jd-suggest-chip .mdi { margin-right: 3px; }
    .jp-scope .jd-suggest-all { border: 0; background: transparent; color: #1abc9c; font-size: 12px; font-weight: 600; padding: 1px 4px; }
    .jp-scope .jd-suggest-all:hover { text-decoration: underline; color: #148f77; }
    .jp-scope .jd-note { font-size: 12px; color: var(--ok-text-4); margin-top: 6px; }
    .jp-scope .jd-note b { color: var(--ok-text-3); }
    .jp-scope .quali-add { margin-top: 6px; }
    .jp-scope .quali-add .input-group .btn { flex-shrink: 0; }
    .jp-scope .quali-add .help-block { margin: 4px 0 0; }

    /* Job order list buttons (Add New Job Order / JD Analyser / Job Order Report):
       one evenly spaced group that wraps as a whole instead of breaking apart */
    .jp-scope .jo-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; }
    .jp-scope .jo-list-actions .btn { white-space: nowrap; margin: 0; font-size: .8rem; font-weight: 600; padding: .36rem .85rem; border-radius: .3rem; box-shadow: none; border-width: 1px; }
    .jp-scope .jo-list-actions .btn i { font-size: .9rem; }
    .jp-scope .jo-list-actions .btn-blue { background: #d6e3f6; border-color: #a6c1ea; color: #264f8f; }
    .jp-scope .jo-list-actions .btn-blue:hover, .jp-scope .jo-list-actions .btn-blue:focus { background: #4a81d4; border-color: #4a81d4; color: #fff; }
    .jp-scope .jo-list-actions .btn-info { background: #cdeef7; border-color: #99dcec; color: #11657a; }
    .jp-scope .jo-list-actions .btn-info:hover, .jp-scope .jo-list-actions .btn-info:focus { background: #4fc6e1; border-color: #4fc6e1; color: #fff; }
    .jp-scope .jo-list-actions .btn-danger { background: #f1556c; border-color: #f1556c; color: #fff; }
    .jp-scope .jo-list-actions .btn-danger:hover, .jp-scope .jo-list-actions .btn-danger:focus { background: #d8475d; border-color: #d8475d; color: #fff; }

    /* Mandatory Skills side bar (#view_skills_modal) */
    /* the theme hides .right-bar at right:-280px (its 270px width); this bar is wider,
       so it is moved fully off screen and only slides in with .right-bar-enabled */
    .jp-scope #view_skills_modal.jo-skills-bar { background: #fff !important; width: 340px; right: -360px; box-shadow: none; }
    body:has(#jobportal_page).right-bar-enabled #view_skills_modal.jo-skills-bar { right: 0; box-shadow: -6px 0 24px rgba(50,58,70,.15); }
    .jp-scope .jsb-head { padding: 1.1rem 1.1rem .8rem; border-bottom: 1px solid var(--ok-line-2); background: var(--ok-surface-2); }
    .jp-scope .jsb-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #4a81d4; }
    .jp-scope .jsb-title { font-size: 1.05rem; font-weight: 700; color: var(--ok-text); margin: .3rem 0 .25rem; line-height: 1.3; }
    .jp-scope .jsb-jo { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--ok-text); padding: .12rem .5rem; border-radius: .3rem; }
    .jp-scope .jsb-close { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
                 color: var(--ok-text-2); background: #fff; border: 1px solid var(--ok-line); font-size: 1.05rem; flex: 0 0 30px; }
    .jp-scope .jsb-close:hover { background: #f1556c; border-color: #f1556c; color: #fff; }
    .jp-scope .jsb-tools { display: flex; gap: .4rem; margin-top: .8rem; }
    .jp-scope .jsb-search { flex: 1; position: relative; }
    .jp-scope .jsb-search i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--ok-text-4); }
    .jp-scope .jsb-search input { width: 100%; border: 1px solid var(--ok-line); border-radius: .3rem; padding: .3rem .6rem .3rem 1.9rem; font-size: .82rem; background: #fff; }
    .jp-scope .jsb-body { flex: 1; overflow-y: auto; padding: .9rem 1.1rem 1.5rem; }
    .jp-scope .jsb-sec { margin-bottom: 1.1rem; }
    .jp-scope .jsb-sec-title { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; font-weight: 700; text-transform: uppercase;
                     letter-spacing: .4px; color: var(--ok-text-2); margin-bottom: .5rem; padding-bottom: .35rem; border-bottom: 1px solid var(--ok-line-2); }
    .jp-scope .jsb-sec-title .badge { font-size: .7rem; }
    .jp-scope .jsb-list { display: flex; flex-direction: column; gap: .35rem; }
    .jp-scope .jsb-skill { display: flex; align-items: center; gap: .55rem; padding: .38rem .6rem; border: 1px solid var(--ok-line-2); border-radius: .35rem; font-size: .84rem; color: var(--ok-text); background: #fff; }
    .jp-scope .jsb-skill .jsb-n { flex: 0 0 22px; height: 22px; border-radius: 50%; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
    .jp-scope .jsb-mand .jsb-n { background: #c9eee4; color: #0b6b57; }
    .jp-scope .jsb-pref .jsb-n { background: #d6e3f6; color: #264f8f; }
    .jp-scope .jsb-beh .jsb-n { background: #fbd5e5; color: #96305b; }
    .jp-scope .jsb-empty { font-size: .8rem; color: var(--ok-text-4); font-style: italic; }
    .jp-scope .jsb-nomatch { display: none; text-align: center; color: var(--ok-text-4); font-size: .82rem; padding: 1rem 0; }

    /* Status Summary (#status-modal) */
    .jp-scope .ss-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem .9rem; border: 1px solid var(--ok-line-2); border-radius: .45rem; background: var(--ok-surface-2); margin-bottom: 1rem; }
    .jp-scope .ss-total { font-size: 1.6rem; font-weight: 700; color: var(--ok-text); line-height: 1; }
    .jp-scope .ss-total-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text-3); }
    .jp-scope .ss-legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-left: auto; font-size: .74rem; color: var(--ok-text-2); }
    .jp-scope .ss-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
    .jp-scope .ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
    .jp-scope .ss-tile { border: 1px solid var(--ok-line-2); border-left: 4px solid var(--ss); border-radius: .4rem; padding: .55rem .75rem; background: #fff; }
    .jp-scope .ss-tile.ss-zero { opacity: .55; }
    .jp-scope .ss-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
    .jp-scope .ss-name { font-size: .82rem; font-weight: 600; color: #262c35; line-height: 1.25; }
    .jp-scope .ss-count { font-size: 1.15rem; font-weight: 700; color: var(--ss); line-height: 1; }
    .jp-scope .ss-bar { height: 5px; border-radius: 3px; background: var(--ok-line-2); margin-top: .45rem; overflow: hidden; }
    .jp-scope .ss-bar span { display: block; height: 100%; background: var(--ss); border-radius: 3px; }
    .jp-scope .ss-pct { font-size: .7rem; color: var(--ok-text-3); margin-top: .2rem; }

    /* The top panels (Dashboard Summary, CV Status Updated Date, Search) sit in a
       .row nested straight inside #list_div.row, so Bootstrap gave that inner row a
       column's 12px gutters on top of its own - 24px narrower than #tblList.
       Without them every panel lines up with the job order list. */
    .jp-scope #list_div > .row.mt-0 { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
    .jp-scope #list_div > .row.mt-0 > .col-12 > .page-title-box > .card-borders,
    .jp-scope #list_div > .row.mt-0 > .col-12 > .page-title-box > .mp-card,
    .jp-scope #tblList .card-borders { margin-bottom: 12px !important; }
    /* panel headers use the job card header colour (.jo-card-head) */
    .jp-scope #unfilter_info_card, .jp-scope #cv_status_summary_card, .jp-scope #jo_search_panel, .jp-scope #tblList .jo-panel:not([style*="background"]) { border-color: var(--ok-line); }
    .jp-scope #unfilter_info_card > .mp-head,
    .jp-scope #cv_status_summary_card > .dashboard-filter,
    .jp-scope #jo_search_panel > .mp-head,
    .jp-scope #tblList .jo-panel > .mp-head { background: var(--ok-surface-2); border-bottom-color: var(--ok-line); }
    .jp-scope #jo_search_panel.is-collapsed > .mp-head, .jp-scope #tblList .jo-panel > .mp-head:only-child { border-bottom: 0; }
    /* CV Status Updated Date header: same title and button style as the other panel headers */
    .jp-scope #cv_status_date_filter_card .filter-label .form-label { font-size: 14px !important; font-weight: 700; text-transform: uppercase;
                                                            letter-spacing: .4px; color: var(--ok-text) !important; white-space: nowrap; }
    .jp-scope #cv_status_date_filter_card #btn_count_action2 { background: #dcd8f8; border: 1px solid #b3aaee; color: #3f34a0; box-shadow: none; }
    .jp-scope #cv_status_date_filter_card #btn_count_action2:hover { background: #6658dd; border-color: #6658dd; color: #fff; }

    /* "Job Orders" (page actions) and "Job Order Status" panels above the list -
       same white card and header as the Search panel */
    .jp-scope .jo-panel { overflow: visible; }
    .jp-scope .jo-panel > .mp-head { border-radius: 10px 10px 0 0; min-height: 54px; }
    .jp-scope .jo-panel > .mp-head:only-child { border-bottom: 0; border-radius: 10px; }
    .jp-scope .jo-panel .mp-head .jo-list-actions { margin-left: auto; }
    /* "Show [10] per page" beside the Job Orders title */
    .jp-scope .jo-panel .mp-head-title .joborder-pagesize { margin: 0 0 0 14px; padding-left: 14px; border-left: 1px solid var(--ok-line-2); gap: 6px;
                                                 font-size: 12.5px; color: var(--ok-text-2); white-space: nowrap; }
    .jp-scope .jo-panel .mp-head-title .joborder-pagesize .form-label { margin: 0 !important; font-weight: 600; font-size: 12.5px; color: var(--ok-text-2); text-transform: none; letter-spacing: 0; }
    .jp-scope .jo-panel .mp-head-title .joborder-pagesize .ms-1 { margin-left: 0 !important; }
    .jp-scope .jo-panel .mp-head-title .joborder-pagesize select { height: 30px; min-width: 64px; padding: 3px 24px 3px 9px; font-size: 12.5px; border-radius: 6px; border-color: var(--ok-line); }
    .jp-scope .jo-panel .jo-status-body { padding: 10px 14px; }
    /* five equal, evenly spaced chips across the card */
    .jp-scope .jo-panel .jo-status-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
    @media (max-width: 991.98px) { .jp-scope .jo-panel .jo-status-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
    .jp-scope .jo-panel .jo-status-chip { justify-content: space-between; padding: .18rem .3rem .18rem .6rem; font-size: .74rem; border-radius: 2rem; min-width: 0; }
    .jp-scope .jo-panel .jo-status-chip i { width: 7px; height: 7px; flex: 0 0 7px; }
    .jp-scope .jo-panel .jo-status-chip b { min-width: 24px; line-height: 17px; font-size: .7rem; margin-left: auto; }

    /* Job order status counts row (#counts_as_per_data) */
    .jp-scope .jo-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
    .jp-scope .jo-status-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .28rem .22rem .55rem; border-radius: 2rem; white-space: nowrap;
                      background: #fff; border: 1px solid var(--ok-line); font-size: .78rem; font-weight: 600; color: #262c35; box-shadow: 0 1px 2px rgba(50,58,70,.06); }
    .jp-scope .jo-status-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
    .jp-scope .jo-status-chip b { min-width: 24px; padding: 0 .4rem; border-radius: 1rem; font-size: .74rem; line-height: 18px; text-align: center; border: 1px solid transparent; }
    .jp-scope .jo-st-active i { background: #1abc9c; } .jp-scope .jo-st-active b { background: #c9eee4; border-color: #8fd9c6; color: #0b6b57; }
    .jp-scope .jo-st-hold i { background: var(--ok-text-3); }   .jp-scope .jo-st-hold b { background: #dfe2e6; border-color: #bcc3ca; color: var(--ok-text-2); }
    .jp-scope .jo-st-closed i { background: #f1556c; } .jp-scope .jo-st-closed b { background: #fbd3d9; border-color: #f4a3b0; color: #a8283d; }
    .jp-scope .jo-st-client i { background: #f672a7; } .jp-scope .jo-st-client b { background: #fbd5e5; border-color: #f4a8c7; color: #96305b; }
    .jp-scope .jo-st-noresp i { background: #6658dd; } .jp-scope .jo-st-noresp b { background: #dcd8f8; border-color: #b3aaee; color: #3f34a0; }

    /* Job order list card (populate_list_form) */
    .jp-scope .jo-card { border: 1px solid var(--ok-line); border-radius: .5rem; box-shadow: 0 1px 4px rgba(50,58,70,.08); background: #fff; }
    .jp-scope .jo-card:hover { box-shadow: 0 4px 14px rgba(50,58,70,.13); border-color: #c3cdd8; }
    .jp-scope .jo-card:not(.jo-card-priority) { border-left: 4px solid #4a81d4; }
    .jp-scope .jo-card.jo-card-priority { border-left: 4px solid #f7b84b; }
    .jp-scope .jo-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem;
                    padding: .9rem 1.1rem; background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line); border-radius: .5rem .5rem 0 0; }
    .jp-scope .jo-head-main { min-width: 240px; flex: 1 1 280px; }
    .jp-scope .jo-head-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
    .jp-scope .jo-head-top .badge { font-size: .75rem; font-weight: 600; padding: .3em .6em; }
    .jp-scope .jo-head-top .badge.bg-soft-warning { background: #f7b84b !important; color: #fff !important; }
    .jp-scope .jo-no { font-weight: 700; color: #fff; background: var(--ok-text); font-size: .82rem; letter-spacing: .3px; padding: .2rem .55rem; border-radius: .3rem; margin-right: .15rem; }
    .jp-scope .jo-title { font-size: 1.2rem; font-weight: 700; color: var(--ok-text); margin: .4rem 0 .25rem; line-height: 1.3; }
    .jp-scope .jo-sub { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-size: .86rem; color: var(--ok-text); font-weight: 500; }
    .jp-scope .jo-sub i { margin-right: .3rem; color: #4a81d4; }
    .jp-scope .jo-sub .skillwrap { max-width: 320px; }
    .jp-scope .jo-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .45rem; flex: 1 1 420px; padding-top: .1rem; }
    .jp-scope .jo-card .jo-btn { position: relative; font-size: .78rem; font-weight: 600; padding: .32rem .7rem; white-space: nowrap; border-radius: .3rem; box-shadow: none; }
    .jp-scope .jo-card .jo-btn.btn-warning, .jp-scope .jo-card .jo-side-btn.btn-warning { color: #3d2f0b; }
    .jp-scope .jo-card .jo-btn-main { padding-left: .85rem; padding-right: .85rem; }
    .jp-scope .jo-card .jo-btn i { margin-right: .15rem; }
    .jp-scope .jo-card .jo-btn:disabled { opacity: .5; }
    .jp-scope .jo-card .jo-priority { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
    .jp-scope .jo-card .jo-priority .form-check-input { margin: 0; width: .9rem; height: .9rem; }
    .jp-scope .jo-card .jo-btn .psq-badge, .jp-scope .jo-card .jo-btn .noti-icon-badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px;
                    padding: 0 5px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; z-index: 1; box-shadow: 0 0 0 2px #fff; }
    .jp-scope .jo-card .jo-btn .psq-badge.psq-zero { background: var(--ok-text-3); }
    .jp-scope .jo-card-body { padding: .9rem 1.1rem 1rem; }
    .jp-scope .jo-draft-note { background: rgba(241,85,108,.08); border: 1px solid rgba(241,85,108,.2); border-radius: .35rem; padding: .4rem .7rem;
                     margin-bottom: .75rem; font-size: .85rem; font-weight: 600; color: #d63a52; }
    .jp-scope .jo-draft-note .text-sm { font-size: inherit; }
    .jp-scope .jo-metrics { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
    .jp-scope .jo-metric { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ok-line); border-radius: 2rem; padding: .28rem .85rem;
                 font-size: .85rem; font-weight: 600; color: var(--ok-text); background: #f8fafc; }
    .jp-scope .jo-metric b { color: #fff; background: #f1556c; font-weight: 700; border-radius: 1rem; padding: 0 .5rem; min-width: 24px; text-align: center; }
    .jp-scope .jo-metric-link { color: #fff; border-color: #6658dd; background: #6658dd; }
    .jp-scope .jo-metric-link:hover { color: #fff; background: #574bbc; }
    .jp-scope .jo-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem 1.25rem; }
    .jp-scope .jo-info-wide { grid-column: span 2; }
    @media (max-width: 575.98px) { .jp-scope .jo-info-wide { grid-column: auto; } }
    .jp-scope .jo-info-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #5b6670; margin-bottom: .2rem; }
    .jp-scope .jo-info-label i { margin-right: .3rem; color: #4a81d4; font-size: .85rem; }
    .jp-scope .jo-info-value { display: block; font-size: .92rem; font-weight: 500; color: var(--ok-text); word-break: break-word; }
    .jp-scope .jo-skill { display: inline-block; font-size: .78rem; font-weight: 600; color: #0b6b58; background: #d4f3ec; border: 1px solid #8fdcc9; border-radius: 1rem;
                padding: .05rem .55rem; margin: 0 .25rem .25rem 0; }
    .jp-scope .jo-skill-more { color: #fff; background: #4a81d4; border-color: #4a81d4; }
    .jp-scope .jo-attach { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
    .jp-scope .jo-attach .link-view-file { padding: .15rem .45rem; font-size: .75rem; }
    .jp-scope .jo-side { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding-left: 1rem; border-left: 1px solid var(--ok-line); }
    @media (max-width: 991.98px) { .jp-scope .jo-side { padding-left: 0; border-left: 0; padding-top: .85rem; border-top: 1px solid var(--ok-line-2); } }
    .jp-scope .jo-card .jo-side-btn, .jp-scope .jo-card .jo-side-btn.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%;
                    font-size: .85rem; font-weight: 600; padding: .42rem .8rem; text-align: left; border-radius: .3rem; box-shadow: none; }
    .jp-scope .jo-card .jo-side-btn > span:first-child i { width: 1.1rem; margin-right: .4rem; text-align: center; }
    .jp-scope .jo-card .jo-side-btn.dropdown-toggle::after { display: none; }
    .jp-scope .jo-card .jo-side-btn:disabled { opacity: .5; }
    .jp-scope .jo-card .jo-side-btn.nav-link, .jp-scope .jo-card .jo-side-btn.nav-link:hover, .jp-scope .jo-card .jo-side-btn.nav-link:focus { color: #fff; }
    .jp-scope .jo-pill { min-width: 26px; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--ok-text); font-size: .78rem; font-weight: 700;
               line-height: 20px; text-align: center; }
    .jp-scope .jo-icon-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
    .jp-scope .jo-icon-actions .action-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; padding: 0;
                    border: 1px solid #ced6de; border-radius: .35rem; background: #fff; font-size: 1.05rem; color: var(--ok-text-2); }
    .jp-scope .jo-icon-actions .action-icon:hover { background: var(--ok-surface-2); border-color: #4a81d4; }

    /* Light tones for the card buttons: tinted background, deeper text of the same
       hue (readable), solid fill on hover. Sizes a step smaller for a calmer list. */
    .jp-scope .jo-card { margin-bottom: .85rem !important; }
    .jp-scope .jo-head-actions { gap: .4rem; }
    .jp-scope .jo-card .jo-btn { font-size: .72rem; font-weight: 600; padding: .22rem .55rem; line-height: 1.35; border-width: 1px; }
    .jp-scope .jo-card .jo-btn i { font-size: .8rem; }
    .jp-scope .jo-card .jo-btn .psq-badge, .jp-scope .jo-card .jo-btn .noti-icon-badge { top: -7px; right: -7px; min-width: 16px; height: 16px; line-height: 16px; font-size: 9px; padding: 0 4px; }
    .jp-scope .jo-side { gap: .4rem; }
    .jp-scope .jo-card .jo-side-btn, .jp-scope .jo-card .jo-side-btn.nav-link { font-size: .78rem; padding: .3rem .65rem; border-width: 1px; }
    .jp-scope .jo-pill { min-width: 22px; line-height: 17px; font-size: .72rem; padding: 0 6px; }
    .jp-scope .jo-icon-actions .action-icon { width: 28px; height: 28px; font-size: .92rem; }
    .jp-scope .jo-metric { font-size: .8rem; padding: .22rem .75rem; }
    .jp-scope .jo-metric b { background: #fde3e7; color: #c8304a; }
    .jp-scope .jo-metric-link { background: #ebe9fb; border-color: #c9c3f3; color: #4b3fb5; }
    .jp-scope .jo-metric-link:hover { background: #6658dd; border-color: #6658dd; color: #fff; }
    .jp-scope .jo-card .jo-priority .form-check-input { width: .8rem; height: .8rem; }
    .jp-scope .jo-status-menu { min-width: 210px; padding: .35rem 0; border: 1px solid var(--ok-line); border-radius: .45rem; box-shadow: 0 8px 24px rgba(50,58,70,.18); z-index: 1065; }
    .jp-scope .jo-status-menu .dropdown-header { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text-3); padding: .35rem .9rem; }
    .jp-scope .jo-status-menu .jo-st-item { display: flex; align-items: center; gap: .55rem; padding: .42rem .9rem; font-size: .85rem; font-weight: 500; color: var(--ok-text); }
    .jp-scope .jo-status-menu .jo-st-item:hover { background: #f1f5fb; color: var(--ok-text); }
    .jp-scope .jo-status-menu .jo-st-item.active-status { background: var(--ok-surface-2); font-weight: 700; color: var(--ok-text); }
    .jp-scope .jo-status-menu .jo-st-item .mdi-check { color: #1abc9c; font-size: 1rem; }
    .jp-scope .jo-st-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
    /* Pipeline / Submission at the right end of the client · location · date · vacancy line */
    .jp-scope .jo-card .jo-sub { align-items: center; }
    .jp-scope .jo-sub-metrics { display: inline-flex; gap: .4rem; margin-left: auto; }
    /* the client / location / date / vacancy line spans the whole header, under the title and the buttons */
    .jp-scope .jo-card .jo-sub.jo-sub-full { flex: 1 1 100%; order: 3; margin-top: -.15rem; padding-top: .55rem; border-top: 1px dashed var(--ok-line); }
    .jp-scope .jo-sub-metrics .jo-metric { font-size: .74rem; font-weight: 600; padding: .12rem .2rem .12rem .6rem; background: #fff; }
    .jp-scope .jo-sub-metrics .jo-metric i { color: var(--ok-text-3); margin-right: 0; }
    .jp-scope .jo-sub-metrics .jo-metric b { line-height: 17px; }
    .jp-scope .jo-skills-row { margin-top: .9rem; padding-top: .75rem; border-top: 1px dashed var(--ok-line); }
    .jp-scope .jo-skills-row .jo-info-label { margin-bottom: .35rem; }
    .jp-scope .jo-skills-list { display: flex; flex-wrap: wrap; gap: .3rem; }
    .jp-scope .jo-skills-list .jo-skill { margin: 0; }

    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-info      { background: #cdeef7; border-color: #99dcec; color: #11657a; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-blue,
    .jp-scope .jo-card .jo-side-btn.btn-blue.nav-link           { background: #d6e3f6; border-color: #a6c1ea; color: #264f8f; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-dark      { background: #dcdfe4; border-color: #b5bcc5; color: #262c35; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-success   { background: #c9eee4; border-color: #8fd9c6; color: #0b6b57; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-warning   { background: #fbe5bd; border-color: #f2c675; color: #6f4800; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-primary   { background: #dcd8f8; border-color: #b3aaee; color: #3f34a0; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-secondary { background: #dfe2e6; border-color: #bcc3ca; color: var(--ok-text-2); }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-pink      { background: #fbd5e5; border-color: #f4a8c7; color: #96305b; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-info:not(:disabled):hover      { background: #4fc6e1; border-color: #4fc6e1; color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-blue:not(:disabled):hover,
    .jp-scope .jo-card .jo-side-btn.btn-blue.nav-link:hover     { background: #4a81d4; border-color: #4a81d4; color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-dark:not(:disabled):hover      { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-success:not(:disabled):hover   { background: #1abc9c; border-color: #1abc9c; color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-warning:not(:disabled):hover   { background: #f7b84b; border-color: #f7b84b; color: #3d2f0b; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-primary:not(:disabled):hover   { background: #6658dd; border-color: #6658dd; color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-secondary:not(:disabled):hover { background: var(--ok-text-3); border-color: var(--ok-text-3); color: #fff; }
    .jp-scope .jo-card :is(.jo-btn, .jo-side-btn).btn-pink:not(:disabled):hover      { background: #f672a7; border-color: #f672a7; color: #fff; }
    .jp-scope .jo-card .jo-side-btn .jo-pill { box-shadow: 0 0 0 1px rgba(50,58,70,.12); }
    .jp-scope .jo-card .jo-btn.jo-btn-main { background: #f1556c; border-color: #f1556c; color: #fff; }
    .jp-scope .jo-card .jo-btn.jo-btn-main:hover { background: #d8475d; border-color: #d8475d; color: #fff; }

    /* top action buttons: one width, two even rows (columns = half the buttons,
       set per card as --jo-cols); below 1200px they fill the row instead */
    .jp-scope .jo-card .jo-head-actions { display: grid; grid-template-columns: repeat(var(--jo-cols, 5), 124px); gap: .4rem; flex: 0 0 auto;
                                justify-content: end; align-content: start; padding-top: .1rem; }
    .jp-scope .jo-card .jo-head-actions .jo-btn { width: 100%; justify-content: center; text-align: center; overflow: visible; text-overflow: ellipsis; }
    .jp-scope .jo-card .jo-head-actions > .jo-btn { display: inline-flex; align-items: center; gap: .25rem; }
    @media (max-width: 1199.98px) {
        .jp-scope .jo-card .jo-head-actions { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); width: 100%; flex: 1 1 100%; }
    }

    /* side buttons: a narrower fixed column instead of a quarter of the card */
    @media (min-width: 992px) { .jp-scope .jo-card .jo-side { width: 210px; } }
    @media (min-width: 992px) { .jp-scope .jo-card .jo-side .jo-icon-actions { gap: .25rem; justify-content: space-between; flex-wrap: nowrap; } }
    .jp-scope .jo-card .jo-side .jo-icon-actions .action-icon { width: 27px; height: 27px; font-size: .88rem; }
    .jp-scope .jo-card .jo-attach .link-view-file { background: #cdeef7; border: 1px solid #99dcec; color: #11657a; box-shadow: none; }
    .jp-scope .jo-card .jo-attach .link-view-file:hover { background: #4fc6e1; border-color: #4fc6e1; color: #fff; }

    /* Client Information (#client-info-modal) */
    .jp-scope .ci-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--ok-line); border-radius: .5rem;
               background: var(--ok-surface-2); margin-bottom: 1rem; }
    .jp-scope .ci-logo { width: 54px; height: 54px; border-radius: 12px; background: var(--ok-text); color: #fff; font-size: 1.25rem; font-weight: 700;
               display: flex; align-items: center; justify-content: center; flex: 0 0 54px; }
    .jp-scope .ci-name { font-size: 1.25rem; font-weight: 700; color: var(--ok-text); margin: 0 0 .3rem; }
    .jp-scope .ci-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
    .jp-scope .ci-tags .badge { font-size: .72rem; font-weight: 600; padding: .3em .6em; }
    .jp-scope .ci-stats { display: flex; gap: .6rem; margin-left: auto; }
    .jp-scope .ci-stat { min-width: 92px; text-align: center; padding: .45rem .7rem; border: 1px solid var(--ok-line); border-radius: .45rem; background: #fff; }
    .jp-scope .ci-stat b { display: block; font-size: 1.2rem; color: var(--ok-text); line-height: 1.1; }
    .jp-scope .ci-stat span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--ok-text-3); }
    .jp-scope .ci-sec { border: 1px solid var(--ok-line-2); border-radius: .5rem; margin-bottom: 1rem; background: #fff; }
    .jp-scope .ci-sec-title { display: flex; align-items: center; justify-content: space-between; padding: .55rem .9rem; background: var(--ok-surface-2); border-bottom: 1px solid var(--ok-line);
                    border-radius: .5rem .5rem 0 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text); }
    .jp-scope .ci-sec-title i { color: #4a81d4; margin-right: .35rem; }
    .jp-scope .ci-sec-body { padding: .8rem .9rem; }
    .jp-scope .ci-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem 1.25rem; }
    .jp-scope .ci-dl .lbl { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #5b6670; margin-bottom: .15rem; }
    .jp-scope .ci-dl .val { font-size: .88rem; color: var(--ok-text); font-weight: 500; word-break: break-word; }
    .jp-scope .ci-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
    .jp-scope .ci-contact { display: flex; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--ok-line-2); border-radius: .45rem; background: #fff; }
    .jp-scope .ci-contact:hover { border-color: #a6c1ea; box-shadow: 0 2px 8px rgba(50,58,70,.07); }
    .jp-scope .ci-avatar { width: 38px; height: 38px; border-radius: 50%; background: #d6e3f6; color: #264f8f; font-weight: 700; font-size: .8rem;
                 display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
    .jp-scope .ci-cname { font-weight: 700; color: var(--ok-text); font-size: .88rem; }
    .jp-scope .ci-desig { font-size: .76rem; color: var(--ok-text-3); margin-bottom: .3rem; }
    .jp-scope .ci-line { font-size: .8rem; color: var(--ok-text); display: flex; align-items: center; gap: .35rem; word-break: break-all; }
    .jp-scope .ci-line i { color: #4a81d4; }
    .jp-scope .ci-line a { color: #264f8f; }
    .jp-scope .ci-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
    .jp-scope .ci-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #264f8f; background: #e6eef9;
               border: 1px solid #bcd0ef; border-radius: 1rem; padding: .2rem .7rem; }
    .jp-scope .ci-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
    .jp-scope .ci-loc { padding: .5rem .7rem; border: 1px solid var(--ok-line-2); border-radius: .4rem; font-size: .82rem; color: var(--ok-text-2); }
    .jp-scope .ci-loc b { color: var(--ok-text); }
    .jp-scope .ci-about { font-size: .86rem; color: var(--ok-text); white-space: pre-line; }
    .jp-scope .ci-empty { font-size: .82rem; color: var(--ok-text-4); font-style: italic; }

    /* Assigned Job Orders (#today-recruiter-joborder-modal) */
    .jp-scope .ajo-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; padding: .85rem 1rem; margin-bottom: 1rem;
                   border: 1px solid var(--ok-line-2); border-radius: .5rem; background: var(--ok-surface-2); }
    .jp-scope .ajo-field { flex: 1 1 260px; min-width: 220px; }
    .jp-scope .ajo-field-assignee { flex: 1 1 280px; }
    .jp-scope .ajo-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text-2); margin-bottom: .3rem; }
    .jp-scope .ajo-label i { color: #4a81d4; }
    .jp-scope .ajo-filters .form-control { height: 36px; border-radius: 6px; }
    .jp-scope .ajo-filters .select2-container--default .select2-selection--single { height: 36px; border-radius: 6px; border-color: var(--ok-line); }
    .jp-scope .ajo-filters .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; }
    .jp-scope .ajo-filters .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
    .jp-scope .ajo-actions { display: flex; gap: .5rem; }
    .jp-scope .ajo-actions .btn { height: 36px; display: inline-flex; align-items: center; font-weight: 600; font-size: .82rem; border-radius: 6px; box-shadow: none; }
    .jp-scope .ajo-actions .btn-light { border: 1px solid #cfd4d9; }
    .jp-scope .ajo-table-wrap { border: 1px solid var(--ok-line-2); border-radius: .5rem; padding: .75rem; }
    .jp-scope .ajo-table { margin-bottom: .25rem !important; }
    .jp-scope .ajo-table thead th { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
                          border: 0; padding: .6rem .7rem; white-space: nowrap; }
    .jp-scope .ajo-table tbody td { font-size: .84rem; color: var(--ok-text); padding: .55rem .7rem; vertical-align: middle; border-color: var(--ok-line-2); }
    .jp-scope .ajo-table tbody tr:hover td { background: #f5f8fc; }
    .jp-scope .ajo-jo { display: inline-block; font-size: .74rem; font-weight: 700; color: #fff; background: var(--ok-text); padding: .15rem .5rem; border-radius: .3rem; white-space: nowrap; }
    .jp-scope .ajo-pos { font-weight: 600; color: var(--ok-text); }
    .jp-scope .ajo-person { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
    .jp-scope .ajo-avatar { width: 26px; height: 26px; border-radius: 50%; background: #d6e3f6; color: #264f8f; font-size: .68rem; font-weight: 700;
                  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; }
    .jp-scope .ajo-date { white-space: nowrap; color: var(--ok-text-2); }
    .jp-scope .ajo-date small { display: block; color: var(--ok-text-4); font-size: .72rem; }
    .jp-scope #recruiters_joborder_list_data_wrapper .dataTables_filter input { height: 32px; border-radius: 6px; min-width: 260px; }
    .jp-scope #recruiters_joborder_list_data_wrapper .dataTables_length select { height: 32px; border-radius: 6px; }
    .jp-scope #recruiters_joborder_list_data_wrapper .dataTables_info { font-size: .8rem; color: var(--ok-text-3); }

    /* Pre-Screening Questions (job order card button + #psq_modal) */
    .jp-scope .psq-card-btn { position: relative; }
    .jp-scope .psq-badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
                 background: #f1556c; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; z-index: 1; }
    .jp-scope .psq-badge.psq-zero { background: var(--ok-text-4); }
    .jp-scope #psq_modal .modal-body { position: relative; min-height: 360px; }
    .jp-scope .psq-context { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .8rem; color: var(--ok-text-3);
                   border: 1px solid #eceff1; border-radius: .4rem; padding: .5rem .75rem; background: #f7f8f9; margin-bottom: .75rem; }
    .jp-scope .psq-context b { color: var(--ok-text); font-weight: 600; }
    .jp-scope .psq-item { display: flex; gap: .75rem; border: 1px solid #eceff1; border-radius: .4rem; padding: .6rem .75rem; margin-bottom: .5rem; background: #fff; }
    .jp-scope .psq-item:hover { border-color: #d6dde2; }
    .jp-scope .psq-item.psq-ko { border-left: 3px solid #f1556c; }
    .jp-scope .psq-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e8f8f5; color: #148f77; font-weight: 700; font-size: .8rem;
               display: flex; align-items: center; justify-content: center; }
    .jp-scope .psq-body { flex: 1; min-width: 0; }
    .jp-scope .psq-q { font-weight: 600; color: var(--ok-text); }
    .jp-scope .psq-meta { margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
    .jp-scope .psq-opts { margin-top: .35rem; }
    .jp-scope .psq-opts .cvs-chip { margin: 0 .25rem .25rem 0; }
    .jp-scope .psq-opts .cvs-chip.psq-right { background: #e8f8f5; color: #148f77; border-color: #a3e4d7; }
    .jp-scope .psq-ideal { font-size: .8rem; color: var(--ok-text-3); margin-top: .2rem; }
    .jp-scope .psq-actions { flex: 0 0 auto; display: flex; gap: .25rem; align-items: flex-start; }
    .jp-scope .psq-actions .btn { padding: .15rem .45rem; }
    .jp-scope .psq-editor { border: 1px solid #a3e4d7; background: #f6fdfb; border-radius: .4rem; padding: .75rem; margin-bottom: .5rem; }
    .jp-scope .psq-sugg { cursor: pointer; }
    .jp-scope .psq-sugg.psq-off { opacity: .55; }
    .jp-scope .psq-sugg .form-check-input { margin-top: .3rem; }
    .jp-scope .psq-pills .btn-check + .btn { font-size: .8rem; }
    .jp-scope #psq_list .cvs-empty .btn i { display: inline; font-size: inherit; margin-bottom: 0; }

    /* JD Analyser */
    .jp-scope #jd_analyser_modal .modal-body { position: relative; min-height: 320px; }
    .jp-scope .jda-drop { border: 2px dashed var(--ok-line); border-radius: .4rem; padding: 2rem 1rem; text-align: center; background: #f7f8f9; cursor: pointer; transition: border-color .15s, background .15s; }
    .jp-scope .jda-drop:hover, .jp-scope .jda-drop.jda-drop-over { border-color: #1abc9c; background: #e8f8f5; }
    .jp-scope .jda-drop i { font-size: 2.4rem; color: #1abc9c; }
    .jp-scope .jda-drop input[type=file] { display: none; }
    .jp-scope .jda-ring { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                background: conic-gradient(var(--jda-colour) calc(var(--jda-score) * 1%), #eceff1 0); }
    .jp-scope .jda-ring-inner { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .jp-scope .jda-ring-value { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ok-text); }
    .jp-scope .jda-ring-inner small { color: var(--ok-text-4); }
    .jp-scope .jda-stat { border: 1px solid #eceff1; border-radius: .4rem; padding: .4rem; }
    .jp-scope .jda-stat span { display: block; font-size: 1.25rem; font-weight: 700; color: var(--ok-text); }
    .jp-scope .jda-stat small { color: var(--ok-text-4); }
    .jp-scope .jda-table th { background: #f7f8f9; font-weight: 600; }
    .jp-scope .jda-dl th { width: 38%; }
    .jp-scope .jda-issue { border: 1px solid #eceff1; border-left: 3px solid #f7b84b; border-radius: .3rem; padding: .5rem .75rem; margin-bottom: .5rem; }
    .jp-scope .jda-chip { margin: 0 .2rem .3rem 0; }
    .jp-scope .jda-chip-main { background: #e8f8f5; color: #148f77; border-color: #a3e4d7; }
    .jp-scope .jda-doc { border: 1px solid #eceff1; border-radius: .4rem; padding: 1rem 1.25rem; max-height: 55vh; overflow: auto; background: #fff; }
    .jp-scope .jda-doc h2 { font-size: 1.1rem; margin-top: .75rem; }
    .jp-scope .jda-doc h3 { font-size: 1rem; margin-top: .6rem; }
    .jp-scope .jda-original { white-space: pre-wrap; font-size: .85rem; }
    .jp-scope .jda-recent-item:hover { background: #f7f8f9; }
    .jp-scope .jda-recent-score { flex: 0 0 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
/* -- from jobportal.html <style> lines 402-4164 -- */
    .jp-scope .rect-auto, 
    .jp-scope .c100.p51 .slice,
    .jp-scope .c100.p52 .slice,
    .jp-scope .c100.p53 .slice,
    .jp-scope .c100.p54 .slice,
    .jp-scope .c100.p55 .slice,
    .jp-scope .c100.p56 .slice,
    .jp-scope .c100.p57 .slice,
    .jp-scope .c100.p58 .slice,
    .jp-scope .c100.p59 .slice,
    .jp-scope .c100.p60 .slice,
    .jp-scope .c100.p61 .slice,
    .jp-scope .c100.p62 .slice,
    .jp-scope .c100.p63 .slice,
    .jp-scope .c100.p64 .slice,
    .jp-scope .c100.p65 .slice,
    .jp-scope .c100.p66 .slice,
    .jp-scope .c100.p67 .slice,
    .jp-scope .c100.p68 .slice,
    .jp-scope .c100.p69 .slice,
    .jp-scope .c100.p70 .slice,
    .jp-scope .c100.p71 .slice,
    .jp-scope .c100.p72 .slice,
    .jp-scope .c100.p73 .slice,
    .jp-scope .c100.p74 .slice,
    .jp-scope .c100.p75 .slice,
    .jp-scope .c100.p76 .slice,
    .jp-scope .c100.p77 .slice,
    .jp-scope .c100.p78 .slice,
    .jp-scope .c100.p79 .slice,
    .jp-scope .c100.p80 .slice,
    .jp-scope .c100.p81 .slice,
    .jp-scope .c100.p82 .slice,
    .jp-scope .c100.p83 .slice,
    .jp-scope .c100.p84 .slice,
    .jp-scope .c100.p85 .slice,
    .jp-scope .c100.p86 .slice,
    .jp-scope .c100.p87 .slice,
    .jp-scope .c100.p88 .slice,
    .jp-scope .c100.p89 .slice,
    .jp-scope .c100.p90 .slice,
    .jp-scope .c100.p91 .slice,
    .jp-scope .c100.p92 .slice,
    .jp-scope .c100.p93 .slice,
    .jp-scope .c100.p94 .slice,
    .jp-scope .c100.p95 .slice,
    .jp-scope .c100.p96 .slice,
    .jp-scope .c100.p97 .slice,
    .jp-scope .c100.p98 .slice,
    .jp-scope .c100.p99 .slice,
    .jp-scope .c100.p100 .slice {
        clip: rect(auto, auto, auto, auto)
    }

    .jp-scope .pie,
    .jp-scope .c100 .bar,
    .jp-scope .c100.p51 .fill,
    .jp-scope .c100.p52 .fill,
    .jp-scope .c100.p53 .fill,
    .jp-scope .c100.p54 .fill,
    .jp-scope .c100.p55 .fill,
    .jp-scope .c100.p56 .fill,
    .jp-scope .c100.p57 .fill,
    .jp-scope .c100.p58 .fill,
    .jp-scope .c100.p59 .fill,
    .jp-scope .c100.p60 .fill,
    .jp-scope .c100.p61 .fill,
    .jp-scope .c100.p62 .fill,
    .jp-scope .c100.p63 .fill,
    .jp-scope .c100.p64 .fill,
    .jp-scope .c100.p65 .fill,
    .jp-scope .c100.p66 .fill,
    .jp-scope .c100.p67 .fill,
    .jp-scope .c100.p68 .fill,
    .jp-scope .c100.p69 .fill,
    .jp-scope .c100.p70 .fill,
    .jp-scope .c100.p71 .fill,
    .jp-scope .c100.p72 .fill,
    .jp-scope .c100.p73 .fill,
    .jp-scope .c100.p74 .fill,
    .jp-scope .c100.p75 .fill,
    .jp-scope .c100.p76 .fill,
    .jp-scope .c100.p77 .fill,
    .jp-scope .c100.p78 .fill,
    .jp-scope .c100.p79 .fill,
    .jp-scope .c100.p80 .fill,
    .jp-scope .c100.p81 .fill,
    .jp-scope .c100.p82 .fill,
    .jp-scope .c100.p83 .fill,
    .jp-scope .c100.p84 .fill,
    .jp-scope .c100.p85 .fill,
    .jp-scope .c100.p86 .fill,
    .jp-scope .c100.p87 .fill,
    .jp-scope .c100.p88 .fill,
    .jp-scope .c100.p89 .fill,
    .jp-scope .c100.p90 .fill,
    .jp-scope .c100.p91 .fill,
    .jp-scope .c100.p92 .fill,
    .jp-scope .c100.p93 .fill,
    .jp-scope .c100.p94 .fill,
    .jp-scope .c100.p95 .fill,
    .jp-scope .c100.p96 .fill,
    .jp-scope .c100.p97 .fill,
    .jp-scope .c100.p98 .fill,
    .jp-scope .c100.p99 .fill,
    .jp-scope .c100.p100 .fill {
        position: absolute;
        border: 0.08em solid #307bbb;
        width: 0.84em;
        height: 0.84em;
        clip: rect(0em, 0.5em, 1em, 0em);
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    .jp-scope .pie-fill,
    .jp-scope .c100.p51 .bar:after,
    .jp-scope .c100.p51 .fill,
    .jp-scope .c100.p52 .bar:after,
    .jp-scope .c100.p52 .fill,
    .jp-scope .c100.p53 .bar:after,
    .jp-scope .c100.p53 .fill,
    .jp-scope .c100.p54 .bar:after,
    .jp-scope .c100.p54 .fill,
    .jp-scope .c100.p55 .bar:after,
    .jp-scope .c100.p55 .fill,
    .jp-scope .c100.p56 .bar:after,
    .jp-scope .c100.p56 .fill,
    .jp-scope .c100.p57 .bar:after,
    .jp-scope .c100.p57 .fill,
    .jp-scope .c100.p58 .bar:after,
    .jp-scope .c100.p58 .fill,
    .jp-scope .c100.p59 .bar:after,
    .jp-scope .c100.p59 .fill,
    .jp-scope .c100.p60 .bar:after,
    .jp-scope .c100.p60 .fill,
    .jp-scope .c100.p61 .bar:after,
    .jp-scope .c100.p61 .fill,
    .jp-scope .c100.p62 .bar:after,
    .jp-scope .c100.p62 .fill,
    .jp-scope .c100.p63 .bar:after,
    .jp-scope .c100.p63 .fill,
    .jp-scope .c100.p64 .bar:after,
    .jp-scope .c100.p64 .fill,
    .jp-scope .c100.p65 .bar:after,
    .jp-scope .c100.p65 .fill,
    .jp-scope .c100.p66 .bar:after,
    .jp-scope .c100.p66 .fill,
    .jp-scope .c100.p67 .bar:after,
    .jp-scope .c100.p67 .fill,
    .jp-scope .c100.p68 .bar:after,
    .jp-scope .c100.p68 .fill,
    .jp-scope .c100.p69 .bar:after,
    .jp-scope .c100.p69 .fill,
    .jp-scope .c100.p70 .bar:after,
    .jp-scope .c100.p70 .fill,
    .jp-scope .c100.p71 .bar:after,
    .jp-scope .c100.p71 .fill,
    .jp-scope .c100.p72 .bar:after,
    .jp-scope .c100.p72 .fill,
    .jp-scope .c100.p73 .bar:after,
    .jp-scope .c100.p73 .fill,
    .jp-scope .c100.p74 .bar:after,
    .jp-scope .c100.p74 .fill,
    .jp-scope .c100.p75 .bar:after,
    .jp-scope .c100.p75 .fill,
    .jp-scope .c100.p76 .bar:after,
    .jp-scope .c100.p76 .fill,
    .jp-scope .c100.p77 .bar:after,
    .jp-scope .c100.p77 .fill,
    .jp-scope .c100.p78 .bar:after,
    .jp-scope .c100.p78 .fill,
    .jp-scope .c100.p79 .bar:after,
    .jp-scope .c100.p79 .fill,
    .jp-scope .c100.p80 .bar:after,
    .jp-scope .c100.p80 .fill,
    .jp-scope .c100.p81 .bar:after,
    .jp-scope .c100.p81 .fill,
    .jp-scope .c100.p82 .bar:after,
    .jp-scope .c100.p82 .fill,
    .jp-scope .c100.p83 .bar:after,
    .jp-scope .c100.p83 .fill,
    .jp-scope .c100.p84 .bar:after,
    .jp-scope .c100.p84 .fill,
    .jp-scope .c100.p85 .bar:after,
    .jp-scope .c100.p85 .fill,
    .jp-scope .c100.p86 .bar:after,
    .jp-scope .c100.p86 .fill,
    .jp-scope .c100.p87 .bar:after,
    .jp-scope .c100.p87 .fill,
    .jp-scope .c100.p88 .bar:after,
    .jp-scope .c100.p88 .fill,
    .jp-scope .c100.p89 .bar:after,
    .jp-scope .c100.p89 .fill,
    .jp-scope .c100.p90 .bar:after,
    .jp-scope .c100.p90 .fill,
    .jp-scope .c100.p91 .bar:after,
    .jp-scope .c100.p91 .fill,
    .jp-scope .c100.p92 .bar:after,
    .jp-scope .c100.p92 .fill,
    .jp-scope .c100.p93 .bar:after,
    .jp-scope .c100.p93 .fill,
    .jp-scope .c100.p94 .bar:after,
    .jp-scope .c100.p94 .fill,
    .jp-scope .c100.p95 .bar:after,
    .jp-scope .c100.p95 .fill,
    .jp-scope .c100.p96 .bar:after,
    .jp-scope .c100.p96 .fill,
    .jp-scope .c100.p97 .bar:after,
    .jp-scope .c100.p97 .fill,
    .jp-scope .c100.p98 .bar:after,
    .jp-scope .c100.p98 .fill,
    .jp-scope .c100.p99 .bar:after,
    .jp-scope .c100.p99 .fill,
    .jp-scope .c100.p100 .bar:after,
    .jp-scope .c100.p100 .fill {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg)
    }

    .jp-scope .c100 {
        position: relative;
        font-size: 100px;
        width: 1em;
        height: 1em;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
        float: left;
        margin: 0 0.1em 0.1em 0;
        background-color: #bcbcbc
    }

    .jp-scope .c100 *,
    .jp-scope .c100 *:before,
    .jp-scope .c100 *:after {
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        box-sizing: content-box
    }

    .jp-scope .c100.center {
        float: none;
        margin: 0 auto
    }

    .jp-scope .c100.big {
        font-size: 240px
    }

    .jp-scope .c100.small {
        font-size: 80px
    }

    .jp-scope .c100>span {
        position: absolute;
        width: 100%;
        z-index: 1;
        left: 0;
        top: 0;
        width: 5em;
        line-height: 5em;
        font-size: 0.2em;
        color: #bcbcbc;
        display: block;
        text-align: center;
        white-space: nowrap;
        -webkit-transition-property: all;
        -moz-transition-property: all;
        -o-transition-property: all;
        transition-property: all;
        -webkit-transition-duration: 0.2s;
        -moz-transition-duration: 0.2s;
        -o-transition-duration: 0.2s;
        transition-duration: 0.2s;
        -webkit-transition-timing-function: ease-out;
        -moz-transition-timing-function: ease-out;
        -o-transition-timing-function: ease-out;
        transition-timing-function: ease-out
    }

    .jp-scope .c100:after {
        position: absolute;
        top: 0.08em;
        left: 0.08em;
        display: block;
        content: " ";
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
        background-color: whitesmoke;
        width: 0.84em;
        height: 0.84em;
        -webkit-transition-property: all;
        -moz-transition-property: all;
        -o-transition-property: all;
        transition-property: all;
        -webkit-transition-duration: 0.2s;
        -moz-transition-duration: 0.2s;
        -o-transition-duration: 0.2s;
        transition-duration: 0.2s;
        -webkit-transition-timing-function: ease-in;
        -moz-transition-timing-function: ease-in;
        -o-transition-timing-function: ease-in;
        transition-timing-function: ease-in
    }

    .jp-scope .c100 .slice {
        position: absolute;
        width: 1em;
        height: 1em;
        clip: rect(0em, 1em, 1em, 0.5em)
    }

    .jp-scope .c100.p1 .bar {
        -webkit-transform: rotate(3.6deg);
        -moz-transform: rotate(3.6deg);
        -ms-transform: rotate(3.6deg);
        -o-transform: rotate(3.6deg);
        transform: rotate(3.6deg)
    }

    .jp-scope .c100.p2 .bar {
        -webkit-transform: rotate(7.2deg);
        -moz-transform: rotate(7.2deg);
        -ms-transform: rotate(7.2deg);
        -o-transform: rotate(7.2deg);
        transform: rotate(7.2deg)
    }

    .jp-scope .c100.p3 .bar {
        -webkit-transform: rotate(10.8deg);
        -moz-transform: rotate(10.8deg);
        -ms-transform: rotate(10.8deg);
        -o-transform: rotate(10.8deg);
        transform: rotate(10.8deg)
    }

    .jp-scope .c100.p4 .bar {
        -webkit-transform: rotate(14.4deg);
        -moz-transform: rotate(14.4deg);
        -ms-transform: rotate(14.4deg);
        -o-transform: rotate(14.4deg);
        transform: rotate(14.4deg)
    }

    .jp-scope .c100.p5 .bar {
        -webkit-transform: rotate(18deg);
        -moz-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        -o-transform: rotate(18deg);
        transform: rotate(18deg)
    }

    .jp-scope .c100.p6 .bar {
        -webkit-transform: rotate(21.6deg);
        -moz-transform: rotate(21.6deg);
        -ms-transform: rotate(21.6deg);
        -o-transform: rotate(21.6deg);
        transform: rotate(21.6deg)
    }

    .jp-scope .c100.p7 .bar {
        -webkit-transform: rotate(25.2deg);
        -moz-transform: rotate(25.2deg);
        -ms-transform: rotate(25.2deg);
        -o-transform: rotate(25.2deg);
        transform: rotate(25.2deg)
    }

    .jp-scope .c100.p8 .bar {
        -webkit-transform: rotate(28.8deg);
        -moz-transform: rotate(28.8deg);
        -ms-transform: rotate(28.8deg);
        -o-transform: rotate(28.8deg);
        transform: rotate(28.8deg)
    }

    .jp-scope .c100.p9 .bar {
        -webkit-transform: rotate(32.4deg);
        -moz-transform: rotate(32.4deg);
        -ms-transform: rotate(32.4deg);
        -o-transform: rotate(32.4deg);
        transform: rotate(32.4deg)
    }

    .jp-scope .c100.p10 .bar {
        -webkit-transform: rotate(36deg);
        -moz-transform: rotate(36deg);
        -ms-transform: rotate(36deg);
        -o-transform: rotate(36deg);
        transform: rotate(36deg)
    }

    .jp-scope .c100.p11 .bar {
        -webkit-transform: rotate(39.6deg);
        -moz-transform: rotate(39.6deg);
        -ms-transform: rotate(39.6deg);
        -o-transform: rotate(39.6deg);
        transform: rotate(39.6deg)
    }

    .jp-scope .c100.p12 .bar {
        -webkit-transform: rotate(43.2deg);
        -moz-transform: rotate(43.2deg);
        -ms-transform: rotate(43.2deg);
        -o-transform: rotate(43.2deg);
        transform: rotate(43.2deg)
    }

    .jp-scope .c100.p13 .bar {
        -webkit-transform: rotate(46.8deg);
        -moz-transform: rotate(46.8deg);
        -ms-transform: rotate(46.8deg);
        -o-transform: rotate(46.8deg);
        transform: rotate(46.8deg)
    }

    .jp-scope .c100.p14 .bar {
        -webkit-transform: rotate(50.4deg);
        -moz-transform: rotate(50.4deg);
        -ms-transform: rotate(50.4deg);
        -o-transform: rotate(50.4deg);
        transform: rotate(50.4deg)
    }

    .jp-scope .c100.p15 .bar {
        -webkit-transform: rotate(54deg);
        -moz-transform: rotate(54deg);
        -ms-transform: rotate(54deg);
        -o-transform: rotate(54deg);
        transform: rotate(54deg)
    }

    .jp-scope .c100.p16 .bar {
        -webkit-transform: rotate(57.6deg);
        -moz-transform: rotate(57.6deg);
        -ms-transform: rotate(57.6deg);
        -o-transform: rotate(57.6deg);
        transform: rotate(57.6deg)
    }

    .jp-scope .c100.p17 .bar {
        -webkit-transform: rotate(61.2deg);
        -moz-transform: rotate(61.2deg);
        -ms-transform: rotate(61.2deg);
        -o-transform: rotate(61.2deg);
        transform: rotate(61.2deg)
    }

    .jp-scope .c100.p18 .bar {
        -webkit-transform: rotate(64.8deg);
        -moz-transform: rotate(64.8deg);
        -ms-transform: rotate(64.8deg);
        -o-transform: rotate(64.8deg);
        transform: rotate(64.8deg)
    }

    .jp-scope .c100.p19 .bar {
        -webkit-transform: rotate(68.4deg);
        -moz-transform: rotate(68.4deg);
        -ms-transform: rotate(68.4deg);
        -o-transform: rotate(68.4deg);
        transform: rotate(68.4deg)
    }

    .jp-scope .c100.p20 .bar {
        -webkit-transform: rotate(72deg);
        -moz-transform: rotate(72deg);
        -ms-transform: rotate(72deg);
        -o-transform: rotate(72deg);
        transform: rotate(72deg)
    }

    .jp-scope .c100.p21 .bar {
        -webkit-transform: rotate(75.6deg);
        -moz-transform: rotate(75.6deg);
        -ms-transform: rotate(75.6deg);
        -o-transform: rotate(75.6deg);
        transform: rotate(75.6deg)
    }

    .jp-scope .c100.p22 .bar {
        -webkit-transform: rotate(79.2deg);
        -moz-transform: rotate(79.2deg);
        -ms-transform: rotate(79.2deg);
        -o-transform: rotate(79.2deg);
        transform: rotate(79.2deg)
    }

    .jp-scope .c100.p23 .bar {
        -webkit-transform: rotate(82.8deg);
        -moz-transform: rotate(82.8deg);
        -ms-transform: rotate(82.8deg);
        -o-transform: rotate(82.8deg);
        transform: rotate(82.8deg)
    }

    .jp-scope .c100.p24 .bar {
        -webkit-transform: rotate(86.4deg);
        -moz-transform: rotate(86.4deg);
        -ms-transform: rotate(86.4deg);
        -o-transform: rotate(86.4deg);
        transform: rotate(86.4deg)
    }

    .jp-scope .c100.p25 .bar {
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform: rotate(90deg)
    }

    .jp-scope .c100.p26 .bar {
        -webkit-transform: rotate(93.6deg);
        -moz-transform: rotate(93.6deg);
        -ms-transform: rotate(93.6deg);
        -o-transform: rotate(93.6deg);
        transform: rotate(93.6deg)
    }

    .jp-scope .c100.p27 .bar {
        -webkit-transform: rotate(97.2deg);
        -moz-transform: rotate(97.2deg);
        -ms-transform: rotate(97.2deg);
        -o-transform: rotate(97.2deg);
        transform: rotate(97.2deg)
    }

    .jp-scope .c100.p28 .bar {
        -webkit-transform: rotate(100.8deg);
        -moz-transform: rotate(100.8deg);
        -ms-transform: rotate(100.8deg);
        -o-transform: rotate(100.8deg);
        transform: rotate(100.8deg)
    }

    .jp-scope .c100.p29 .bar {
        -webkit-transform: rotate(104.4deg);
        -moz-transform: rotate(104.4deg);
        -ms-transform: rotate(104.4deg);
        -o-transform: rotate(104.4deg);
        transform: rotate(104.4deg)
    }

    .jp-scope .c100.p30 .bar {
        -webkit-transform: rotate(108deg);
        -moz-transform: rotate(108deg);
        -ms-transform: rotate(108deg);
        -o-transform: rotate(108deg);
        transform: rotate(108deg)
    }

    .jp-scope .c100.p31 .bar {
        -webkit-transform: rotate(111.6deg);
        -moz-transform: rotate(111.6deg);
        -ms-transform: rotate(111.6deg);
        -o-transform: rotate(111.6deg);
        transform: rotate(111.6deg)
    }

    .jp-scope .c100.p32 .bar {
        -webkit-transform: rotate(115.2deg);
        -moz-transform: rotate(115.2deg);
        -ms-transform: rotate(115.2deg);
        -o-transform: rotate(115.2deg);
        transform: rotate(115.2deg)
    }

    .jp-scope .c100.p33 .bar {
        -webkit-transform: rotate(118.8deg);
        -moz-transform: rotate(118.8deg);
        -ms-transform: rotate(118.8deg);
        -o-transform: rotate(118.8deg);
        transform: rotate(118.8deg)
    }

    .jp-scope .c100.p34 .bar {
        -webkit-transform: rotate(122.4deg);
        -moz-transform: rotate(122.4deg);
        -ms-transform: rotate(122.4deg);
        -o-transform: rotate(122.4deg);
        transform: rotate(122.4deg)
    }

    .jp-scope .c100.p35 .bar {
        -webkit-transform: rotate(126deg);
        -moz-transform: rotate(126deg);
        -ms-transform: rotate(126deg);
        -o-transform: rotate(126deg);
        transform: rotate(126deg)
    }

    .jp-scope .c100.p36 .bar {
        -webkit-transform: rotate(129.6deg);
        -moz-transform: rotate(129.6deg);
        -ms-transform: rotate(129.6deg);
        -o-transform: rotate(129.6deg);
        transform: rotate(129.6deg)
    }

    .jp-scope .c100.p37 .bar {
        -webkit-transform: rotate(133.2deg);
        -moz-transform: rotate(133.2deg);
        -ms-transform: rotate(133.2deg);
        -o-transform: rotate(133.2deg);
        transform: rotate(133.2deg)
    }

    .jp-scope .c100.p38 .bar {
        -webkit-transform: rotate(136.8deg);
        -moz-transform: rotate(136.8deg);
        -ms-transform: rotate(136.8deg);
        -o-transform: rotate(136.8deg);
        transform: rotate(136.8deg)
    }

    .jp-scope .c100.p39 .bar {
        -webkit-transform: rotate(140.4deg);
        -moz-transform: rotate(140.4deg);
        -ms-transform: rotate(140.4deg);
        -o-transform: rotate(140.4deg);
        transform: rotate(140.4deg)
    }

    .jp-scope .c100.p40 .bar {
        -webkit-transform: rotate(144deg);
        -moz-transform: rotate(144deg);
        -ms-transform: rotate(144deg);
        -o-transform: rotate(144deg);
        transform: rotate(144deg)
    }

    .jp-scope .c100.p41 .bar {
        -webkit-transform: rotate(147.6deg);
        -moz-transform: rotate(147.6deg);
        -ms-transform: rotate(147.6deg);
        -o-transform: rotate(147.6deg);
        transform: rotate(147.6deg)
    }

    .jp-scope .c100.p42 .bar {
        -webkit-transform: rotate(151.2deg);
        -moz-transform: rotate(151.2deg);
        -ms-transform: rotate(151.2deg);
        -o-transform: rotate(151.2deg);
        transform: rotate(151.2deg)
    }

    .jp-scope .c100.p43 .bar {
        -webkit-transform: rotate(154.8deg);
        -moz-transform: rotate(154.8deg);
        -ms-transform: rotate(154.8deg);
        -o-transform: rotate(154.8deg);
        transform: rotate(154.8deg)
    }

    .jp-scope .c100.p44 .bar {
        -webkit-transform: rotate(158.4deg);
        -moz-transform: rotate(158.4deg);
        -ms-transform: rotate(158.4deg);
        -o-transform: rotate(158.4deg);
        transform: rotate(158.4deg)
    }

    .jp-scope .c100.p45 .bar {
        -webkit-transform: rotate(162deg);
        -moz-transform: rotate(162deg);
        -ms-transform: rotate(162deg);
        -o-transform: rotate(162deg);
        transform: rotate(162deg)
    }

    .jp-scope .c100.p46 .bar {
        -webkit-transform: rotate(165.6deg);
        -moz-transform: rotate(165.6deg);
        -ms-transform: rotate(165.6deg);
        -o-transform: rotate(165.6deg);
        transform: rotate(165.6deg)
    }

    .jp-scope .c100.p47 .bar {
        -webkit-transform: rotate(169.2deg);
        -moz-transform: rotate(169.2deg);
        -ms-transform: rotate(169.2deg);
        -o-transform: rotate(169.2deg);
        transform: rotate(169.2deg)
    }

    .jp-scope .c100.p48 .bar {
        -webkit-transform: rotate(172.8deg);
        -moz-transform: rotate(172.8deg);
        -ms-transform: rotate(172.8deg);
        -o-transform: rotate(172.8deg);
        transform: rotate(172.8deg)
    }

    .jp-scope .c100.p49 .bar {
        -webkit-transform: rotate(176.4deg);
        -moz-transform: rotate(176.4deg);
        -ms-transform: rotate(176.4deg);
        -o-transform: rotate(176.4deg);
        transform: rotate(176.4deg)
    }

    .jp-scope .c100.p50 .bar {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg)
    }

    .jp-scope .c100.p51 .bar {
        -webkit-transform: rotate(183.6deg);
        -moz-transform: rotate(183.6deg);
        -ms-transform: rotate(183.6deg);
        -o-transform: rotate(183.6deg);
        transform: rotate(183.6deg)
    }

    .jp-scope .c100.p52 .bar {
        -webkit-transform: rotate(187.2deg);
        -moz-transform: rotate(187.2deg);
        -ms-transform: rotate(187.2deg);
        -o-transform: rotate(187.2deg);
        transform: rotate(187.2deg)
    }

    .jp-scope .c100.p53 .bar {
        -webkit-transform: rotate(190.8deg);
        -moz-transform: rotate(190.8deg);
        -ms-transform: rotate(190.8deg);
        -o-transform: rotate(190.8deg);
        transform: rotate(190.8deg)
    }

    .jp-scope .c100.p54 .bar {
        -webkit-transform: rotate(194.4deg);
        -moz-transform: rotate(194.4deg);
        -ms-transform: rotate(194.4deg);
        -o-transform: rotate(194.4deg);
        transform: rotate(194.4deg)
    }

    .jp-scope .c100.p55 .bar {
        -webkit-transform: rotate(198deg);
        -moz-transform: rotate(198deg);
        -ms-transform: rotate(198deg);
        -o-transform: rotate(198deg);
        transform: rotate(198deg)
    }

    .jp-scope .c100.p56 .bar {
        -webkit-transform: rotate(201.6deg);
        -moz-transform: rotate(201.6deg);
        -ms-transform: rotate(201.6deg);
        -o-transform: rotate(201.6deg);
        transform: rotate(201.6deg)
    }

    .jp-scope .c100.p57 .bar {
        -webkit-transform: rotate(205.2deg);
        -moz-transform: rotate(205.2deg);
        -ms-transform: rotate(205.2deg);
        -o-transform: rotate(205.2deg);
        transform: rotate(205.2deg)
    }

    .jp-scope .c100.p58 .bar {
        -webkit-transform: rotate(208.8deg);
        -moz-transform: rotate(208.8deg);
        -ms-transform: rotate(208.8deg);
        -o-transform: rotate(208.8deg);
        transform: rotate(208.8deg)
    }

    .jp-scope .c100.p59 .bar {
        -webkit-transform: rotate(212.4deg);
        -moz-transform: rotate(212.4deg);
        -ms-transform: rotate(212.4deg);
        -o-transform: rotate(212.4deg);
        transform: rotate(212.4deg)
    }

    .jp-scope .c100.p60 .bar {
        -webkit-transform: rotate(216deg);
        -moz-transform: rotate(216deg);
        -ms-transform: rotate(216deg);
        -o-transform: rotate(216deg);
        transform: rotate(216deg)
    }

    .jp-scope .c100.p61 .bar {
        -webkit-transform: rotate(219.6deg);
        -moz-transform: rotate(219.6deg);
        -ms-transform: rotate(219.6deg);
        -o-transform: rotate(219.6deg);
        transform: rotate(219.6deg)
    }

    .jp-scope .c100.p62 .bar {
        -webkit-transform: rotate(223.2deg);
        -moz-transform: rotate(223.2deg);
        -ms-transform: rotate(223.2deg);
        -o-transform: rotate(223.2deg);
        transform: rotate(223.2deg)
    }

    .jp-scope .c100.p63 .bar {
        -webkit-transform: rotate(226.8deg);
        -moz-transform: rotate(226.8deg);
        -ms-transform: rotate(226.8deg);
        -o-transform: rotate(226.8deg);
        transform: rotate(226.8deg)
    }

    .jp-scope .c100.p64 .bar {
        -webkit-transform: rotate(230.4deg);
        -moz-transform: rotate(230.4deg);
        -ms-transform: rotate(230.4deg);
        -o-transform: rotate(230.4deg);
        transform: rotate(230.4deg)
    }

    .jp-scope .c100.p65 .bar {
        -webkit-transform: rotate(234deg);
        -moz-transform: rotate(234deg);
        -ms-transform: rotate(234deg);
        -o-transform: rotate(234deg);
        transform: rotate(234deg)
    }

    .jp-scope .c100.p66 .bar {
        -webkit-transform: rotate(237.6deg);
        -moz-transform: rotate(237.6deg);
        -ms-transform: rotate(237.6deg);
        -o-transform: rotate(237.6deg);
        transform: rotate(237.6deg)
    }

    .jp-scope .c100.p67 .bar {
        -webkit-transform: rotate(241.2deg);
        -moz-transform: rotate(241.2deg);
        -ms-transform: rotate(241.2deg);
        -o-transform: rotate(241.2deg);
        transform: rotate(241.2deg)
    }

    .jp-scope .c100.p68 .bar {
        -webkit-transform: rotate(244.8deg);
        -moz-transform: rotate(244.8deg);
        -ms-transform: rotate(244.8deg);
        -o-transform: rotate(244.8deg);
        transform: rotate(244.8deg)
    }

    .jp-scope .c100.p69 .bar {
        -webkit-transform: rotate(248.4deg);
        -moz-transform: rotate(248.4deg);
        -ms-transform: rotate(248.4deg);
        -o-transform: rotate(248.4deg);
        transform: rotate(248.4deg)
    }

    .jp-scope .c100.p70 .bar {
        -webkit-transform: rotate(252deg);
        -moz-transform: rotate(252deg);
        -ms-transform: rotate(252deg);
        -o-transform: rotate(252deg);
        transform: rotate(252deg)
    }

    .jp-scope .c100.p71 .bar {
        -webkit-transform: rotate(255.6deg);
        -moz-transform: rotate(255.6deg);
        -ms-transform: rotate(255.6deg);
        -o-transform: rotate(255.6deg);
        transform: rotate(255.6deg)
    }

    .jp-scope .c100.p72 .bar {
        -webkit-transform: rotate(259.2deg);
        -moz-transform: rotate(259.2deg);
        -ms-transform: rotate(259.2deg);
        -o-transform: rotate(259.2deg);
        transform: rotate(259.2deg)
    }

    .jp-scope .c100.p73 .bar {
        -webkit-transform: rotate(262.8deg);
        -moz-transform: rotate(262.8deg);
        -ms-transform: rotate(262.8deg);
        -o-transform: rotate(262.8deg);
        transform: rotate(262.8deg)
    }

    .jp-scope .c100.p74 .bar {
        -webkit-transform: rotate(266.4deg);
        -moz-transform: rotate(266.4deg);
        -ms-transform: rotate(266.4deg);
        -o-transform: rotate(266.4deg);
        transform: rotate(266.4deg)
    }

    .jp-scope .c100.p75 .bar {
        -webkit-transform: rotate(270deg);
        -moz-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        -o-transform: rotate(270deg);
        transform: rotate(270deg)
    }

    .jp-scope .c100.p76 .bar {
        -webkit-transform: rotate(273.6deg);
        -moz-transform: rotate(273.6deg);
        -ms-transform: rotate(273.6deg);
        -o-transform: rotate(273.6deg);
        transform: rotate(273.6deg)
    }

    .jp-scope .c100.p77 .bar {
        -webkit-transform: rotate(277.2deg);
        -moz-transform: rotate(277.2deg);
        -ms-transform: rotate(277.2deg);
        -o-transform: rotate(277.2deg);
        transform: rotate(277.2deg)
    }

    .jp-scope .c100.p78 .bar {
        -webkit-transform: rotate(280.8deg);
        -moz-transform: rotate(280.8deg);
        -ms-transform: rotate(280.8deg);
        -o-transform: rotate(280.8deg);
        transform: rotate(280.8deg)
    }

    .jp-scope .c100.p79 .bar {
        -webkit-transform: rotate(284.4deg);
        -moz-transform: rotate(284.4deg);
        -ms-transform: rotate(284.4deg);
        -o-transform: rotate(284.4deg);
        transform: rotate(284.4deg)
    }

    .jp-scope .c100.p80 .bar {
        -webkit-transform: rotate(288deg);
        -moz-transform: rotate(288deg);
        -ms-transform: rotate(288deg);
        -o-transform: rotate(288deg);
        transform: rotate(288deg)
    }

    .jp-scope .c100.p81 .bar {
        -webkit-transform: rotate(291.6deg);
        -moz-transform: rotate(291.6deg);
        -ms-transform: rotate(291.6deg);
        -o-transform: rotate(291.6deg);
        transform: rotate(291.6deg)
    }

    .jp-scope .c100.p82 .bar {
        -webkit-transform: rotate(295.2deg);
        -moz-transform: rotate(295.2deg);
        -ms-transform: rotate(295.2deg);
        -o-transform: rotate(295.2deg);
        transform: rotate(295.2deg)
    }

    .jp-scope .c100.p83 .bar {
        -webkit-transform: rotate(298.8deg);
        -moz-transform: rotate(298.8deg);
        -ms-transform: rotate(298.8deg);
        -o-transform: rotate(298.8deg);
        transform: rotate(298.8deg)
    }

    .jp-scope .c100.p84 .bar {
        -webkit-transform: rotate(302.4deg);
        -moz-transform: rotate(302.4deg);
        -ms-transform: rotate(302.4deg);
        -o-transform: rotate(302.4deg);
        transform: rotate(302.4deg)
    }

    .jp-scope .c100.p85 .bar {
        -webkit-transform: rotate(306deg);
        -moz-transform: rotate(306deg);
        -ms-transform: rotate(306deg);
        -o-transform: rotate(306deg);
        transform: rotate(306deg)
    }

    .jp-scope .c100.p86 .bar {
        -webkit-transform: rotate(309.6deg);
        -moz-transform: rotate(309.6deg);
        -ms-transform: rotate(309.6deg);
        -o-transform: rotate(309.6deg);
        transform: rotate(309.6deg)
    }

    .jp-scope .c100.p87 .bar {
        -webkit-transform: rotate(313.2deg);
        -moz-transform: rotate(313.2deg);
        -ms-transform: rotate(313.2deg);
        -o-transform: rotate(313.2deg);
        transform: rotate(313.2deg)
    }

    .jp-scope .c100.p88 .bar {
        -webkit-transform: rotate(316.8deg);
        -moz-transform: rotate(316.8deg);
        -ms-transform: rotate(316.8deg);
        -o-transform: rotate(316.8deg);
        transform: rotate(316.8deg)
    }

    .jp-scope .c100.p89 .bar {
        -webkit-transform: rotate(320.4deg);
        -moz-transform: rotate(320.4deg);
        -ms-transform: rotate(320.4deg);
        -o-transform: rotate(320.4deg);
        transform: rotate(320.4deg)
    }

    .jp-scope .c100.p90 .bar {
        -webkit-transform: rotate(324deg);
        -moz-transform: rotate(324deg);
        -ms-transform: rotate(324deg);
        -o-transform: rotate(324deg);
        transform: rotate(324deg)
    }

    .jp-scope .c100.p91 .bar {
        -webkit-transform: rotate(327.6deg);
        -moz-transform: rotate(327.6deg);
        -ms-transform: rotate(327.6deg);
        -o-transform: rotate(327.6deg);
        transform: rotate(327.6deg)
    }

    .jp-scope .c100.p92 .bar {
        -webkit-transform: rotate(331.2deg);
        -moz-transform: rotate(331.2deg);
        -ms-transform: rotate(331.2deg);
        -o-transform: rotate(331.2deg);
        transform: rotate(331.2deg)
    }

    .jp-scope .c100.p93 .bar {
        -webkit-transform: rotate(334.8deg);
        -moz-transform: rotate(334.8deg);
        -ms-transform: rotate(334.8deg);
        -o-transform: rotate(334.8deg);
        transform: rotate(334.8deg)
    }

    .jp-scope .c100.p94 .bar {
        -webkit-transform: rotate(338.4deg);
        -moz-transform: rotate(338.4deg);
        -ms-transform: rotate(338.4deg);
        -o-transform: rotate(338.4deg);
        transform: rotate(338.4deg)
    }

    .jp-scope .c100.p95 .bar {
        -webkit-transform: rotate(342deg);
        -moz-transform: rotate(342deg);
        -ms-transform: rotate(342deg);
        -o-transform: rotate(342deg);
        transform: rotate(342deg)
    }

    .jp-scope .c100.p96 .bar {
        -webkit-transform: rotate(345.6deg);
        -moz-transform: rotate(345.6deg);
        -ms-transform: rotate(345.6deg);
        -o-transform: rotate(345.6deg);
        transform: rotate(345.6deg)
    }

    .jp-scope .c100.p97 .bar {
        -webkit-transform: rotate(349.2deg);
        -moz-transform: rotate(349.2deg);
        -ms-transform: rotate(349.2deg);
        -o-transform: rotate(349.2deg);
        transform: rotate(349.2deg)
    }

    .jp-scope .c100.p98 .bar {
        -webkit-transform: rotate(352.8deg);
        -moz-transform: rotate(352.8deg);
        -ms-transform: rotate(352.8deg);
        -o-transform: rotate(352.8deg);
        transform: rotate(352.8deg)
    }

    .jp-scope .c100.p99 .bar {
        -webkit-transform: rotate(356.4deg);
        -moz-transform: rotate(356.4deg);
        -ms-transform: rotate(356.4deg);
        -o-transform: rotate(356.4deg);
        transform: rotate(356.4deg)
    }

    .jp-scope .c100.p100 .bar {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }

    .jp-scope .c100:hover {
        cursor: default
    }

    .jp-scope .c100:hover>span {
        width: 3.33em;
        line-height: 3.33em;
        font-size: 0.3em;
        color: #307bbb
    }

    .jp-scope .c100:hover:after {
        top: 0.04em;
        left: 0.04em;
        width: 0.92em;
        height: 0.92em
    }

    .jp-scope .c100.dark {
        background-color: #777777
    }

    .jp-scope .c100.dark .bar,
    .jp-scope .c100.dark .fill {
        border-color: #c6ff00 !important
    }

    .jp-scope .c100.dark>span {
        color: #777777
    }

    .jp-scope .c100.dark:after {
        background-color: #666666
    }

    .jp-scope .c100.dark:hover>span {
        color: #c6ff00
    }

    .jp-scope .c100.green .bar,
    .jp-scope .c100.green .fill {
        border-color: #4db53c !important
    }

    .jp-scope .c100.green:hover>span {
        color: #4db53c
    }

    .jp-scope .c100.green.dark .bar,
    .jp-scope .c100.green.dark .fill {
        border-color: #5fd400 !important
    }

    .jp-scope .c100.green.dark:hover>span {
        color: #5fd400
    }

    .jp-scope .c100.orange .bar,
    .jp-scope .c100.orange .fill {
        border-color: #dd9d22 !important
    }

    .jp-scope .c100.orange:hover>span {
        color: #dd9d22
    }

    .jp-scope .c100.orange.dark .bar,
    .jp-scope .c100.orange.dark .fill {
        border-color: #e08833 !important
    }

    .jp-scope .c100.orange.dark:hover>span {
        color: #e08833
    }

    .jp-scope .selected {
        background-color: #307bbb;
    }

    .jp-scope .modal.modal-fullscreen .modal-dialog {
        width: 98%;
        top: 7%;
        margin-left: 1.5% !important;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .jp-scope .modal.modal-fullscreen .modal-content {
        height: auto;
        border-radius: 1px;
        border: none;
        margin-top: auto;
        border: 1px solid #d4baba;
        background-color: #ffffff;
        min-height: 84% !important;
    }

    .jp-scope .modal.modal-fullscreen .modal-body {
        overflow-y: auto;
    }


    body:has(#jobportal_page) .modal-backdrop {
        backdrop-filter: blur(5px);

        background-color: #01223770;
    }

    body:has(#jobportal_page) .modal-backdrop.in {
        opacity: 1 !important;
    }

    .jp-scope .modal.fade.show {
        backdrop-filter: blur(5px);
    }

    /* Background Verification side panel: the panel stays the screen's height and
       its body scrolls inside it - a long References table used to run past the
       white panel onto the backdrop */
    .jp-scope #backgrount_verification_details .modal-dialog { height: 100%; margin: 0; }
    .jp-scope #backgrount_verification_details .modal-content { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 0; }
    .jp-scope #backgrount_verification_details .modal-header { flex: 0 0 auto; }
    .jp-scope #backgrount_verification_details .modal-body { flex: 1 1 auto; overflow-y: auto; }

    .jp-scope #tbl_viewsubmit_list_filter,
    .jp-scope #tbl_viewchangestatus_list_filter {
        text-align: center;
    }

    .jp-scope tfoot input {


        outline: 0 !important;
        color: var(--ok-text-3);
        background-color: #fff;

        border: 1px solid var(--ok-line);

        border-radius: 0.2rem;
        width: 100%;
        padding: 0.4em 0.6em;
        box-sizing: border-box;
        display: table-header-group;

    }

    .jp-scope tfoot button {
        color: #690e46;
    }

    .jp-scope #tbl_search_results_list tbody:hover tr:hover td {
        color: #6658dd;
    }


    body:has(#jobportal_page) {
        overflow-y: scroll;
    }

    .jp-scope #tbl_viewsubmit_list_length {
        margin-left: 0px;
    }

    .jp-scope #tbl_viewsubmit_list_info {
        margin-left: 20px;
    }

    .jp-scope #tbl_viewsubmit_list_paginate {
        margin-right: 50px;
    }

    .jp-scope input[type="text"].readonly {
        background-color: #eaeaea;
    }

    .jp-scope div.dataTables_filter {
        text-align: end !important;
    }

    .jp-scope div.dataTables_paginate {
        margin-right: 0px !important;
    }

    .jp-scope div.dataTables_info {
        margin-left: 0px !important;
    }

    .jp-scope .skillwrap {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
    }

    /* ---- Submitted CV grid (Ubold palette) ---------------------------- */

    .jp-scope #pagin_res {
        gap: 4px;
    }

    .jp-scope #pagin_res .page-link {
        border-radius: 4px;
        border: 1px solid var(--ok-line-2);
        color: var(--ok-text-3);
        padding: 4px 10px;
        font-size: 13px;
        line-height: 20px;
    }

    .jp-scope #pagin_res .page-link:hover {
        background-color: #f1f3fa;
        color: var(--ok-text);
    }

    /* must carry the #id too, otherwise the rule above wins on specificity and
       the current page number goes grey-on-purple */
    .jp-scope #pagin_res .page-link.active,
    .jp-scope #pagin_res .page-link.active:hover,
    .jp-scope a.page-link.active {
        background-color: #6658dd !important;
        border-color: #6658dd !important;
        color: #fff !important;
        font-weight: 600;
    }

    @media (max-width: 768px) {
    .jp-scope #tbl_viewsubmit_list {
        font-size: 12px;
    }

    .jp-scope #tbl_viewsubmit_list td:last-child {
            min-width: 320px; /* more space for buttons */
        }
    }

    .jp-scope .custom-table-wrapper {
        width: 100%;
        max-height: 70vh;      /* keeps the sticky header useful on long lists */
        overflow: auto;
        border: 1px solid #eef2f7;
        border-radius: 6px;
    }

    .jp-scope .custom-table-wrapper::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .jp-scope .custom-table-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--ok-line);
        border-radius: 8px;
    }

    .jp-scope .custom-table-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: var(--ok-text-4);
    }

    .jp-scope #tbl_viewsubmit_list {
        min-width: 1400px; /* important: prevents squeezing */
        margin-bottom: 0;
    }

    .jp-scope #tbl_viewsubmit_list th,
    .jp-scope #tbl_viewsubmit_list td {
        white-space: nowrap; /* keep content in one line */
        vertical-align: middle;
    }

    .jp-scope #tbl_viewsubmit_list th {
        background-color: #f1f3fa; /* softer elegant header */
        color: var(--ok-text);
        font-weight: 600;
        text-align: center;
        position: sticky;   /* header stays put while the grid scrolls */
        top: 0;
        z-index: 3;
        box-shadow: inset 0 -2px 0 var(--ok-line-2); /* border-collapse drops real borders on sticky cells */
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .jp-scope #tbl_viewsubmit_list td {
        text-align: left;
        border-bottom: 1px solid #eef2f7;
    }

    .jp-scope #tbl_viewsubmit_list tbody tr:nth-of-type(even) > td {
        background-color: #fbfcfe;
    }

    .jp-scope #tbl_viewsubmit_list tbody tr:hover > td {
        background-color: #f1f3fa;
    }

    /* Matching score pill - colour comes from the text-* class on the cell */
    .jp-scope #tbl_viewsubmit_list .cv-match-badge {
        display: inline-block;
        min-width: 54px;
        padding: 3px 9px;
        border-radius: 12px;
        background-color: rgba(50, 58, 70, .07);
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        color: inherit;
    }

    .jp-scope #tbl_viewsubmit_list .cv-match-badge:hover {
        background-color: rgba(50, 58, 70, .14);
    }

    /* Actions column fix */
    .jp-scope #tbl_viewsubmit_list td:last-child {
        min-width: 260px;
    }

    /* Action buttons: a fixed 7-per-row grid instead of the hand-tuned negative
       margins that used to overlap. Buttons hidden with display:none drop out of
       the grid flow, so a row always shows 7 usable actions before wrapping. */
    .jp-scope #tbl_viewsubmit_list td .button-list {
        display: grid;
        grid-template-columns: repeat(7, auto);
        justify-content: start;
        align-items: center;
        gap: 4px;
        width: max-content;
        margin: 0 !important;
        white-space: normal;
    }

    @media (max-width: 768px) {
        .jp-scope #tbl_viewsubmit_list td .button-list {
            grid-template-columns: repeat(6, auto);
        }
    }

    .jp-scope #tbl_viewsubmit_list td .button-list br {
        display: none;
    }

    .jp-scope #tbl_viewsubmit_list td .button-list > .btn {
        margin: 0 !important;
        float: none !important;
    }

    /* Status dropdown width */
    .jp-scope #tbl_viewsubmit_list select {
        min-width: 140px;
    }

    /* warm tint so the status picker reads as an editable control, not a label */
    .jp-scope #tbl_viewsubmit_list select.dd_view_current_status:hover {
        background-color: #fbe9cd !important;
        border-color: #e0c896 !important;
    }

    .jp-scope #tbl_viewsubmit_list select.dd_view_current_status:focus {
        outline: none;
        border-color: #f7b84b !important;
        box-shadow: 0 0 0 2px rgba(247, 184, 75, .2);
    }

    /* ---- CV Submission modal shell (#view-submitcv-modal.scv-modal) ---------
       Ubold palette. Header, an action panel for the ticked applicants, a
       sort / search toolbar, then the grid styled above. */
    .jp-scope .modal.scv-modal .modal-content { border-radius: 8px; overflow: hidden; border: 0; box-shadow: 0 12px 40px rgba(50, 58, 70, .25); }
    .jp-scope .modal.scv-modal .modal-header { align-items: center; gap: 12px; padding: 10px 18px; }
    .jp-scope .modal.scv-modal .min-w-0 { min-width: 0; }
    .jp-scope .scv-head { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
    .jp-scope .scv-head-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; display: inline-flex;
        align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.25rem; }
    .jp-scope .modal.scv-modal .modal-title { font-size: 1rem; font-weight: 600; margin: 0; display: flex; align-items: center;
        flex-wrap: wrap; gap: 6px; line-height: 1.4; }
    .jp-scope .scv-count-badge { background: #f7b84b; color: var(--ok-text); font-size: .75rem; font-weight: 700; padding: .3em .65em; }
    .jp-scope .scv-count-badge:empty, .jp-scope .scv-count-badge:empty + .scv-head-sep { display: none; }
    .jp-scope .scv-head-sep { opacity: .6; }
    .jp-scope .scv-head-sub { font-weight: 500; opacity: .9; }
    .jp-scope .scv-head-sub:empty { display: none; }
    .jp-scope .scv-selected-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px;
        border-radius: 50rem; background: rgba(247, 184, 75, .18); border: 1px solid rgba(247, 184, 75, .55);
        color: #ffe3b0; font-size: .78rem; font-weight: 600; white-space: nowrap; }
    .jp-scope .modal.scv-modal .modal-body { background: #f5f6f8; padding: 14px 18px 12px; }

    /* action panel: Client / Applicant groups on the left, Status of CV on the right */
    .jp-scope .scv-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
        background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
    .jp-scope .scv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
    .jp-scope .scv-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .jp-scope .scv-group-label { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; font-size: .68rem;
        font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-text-4); }
    .jp-scope .scv-group-label i { font-size: .9rem; }
    .jp-scope .scv-divider { width: 1px; align-self: stretch; min-height: 26px; background: #e9ecef; }
    .jp-scope .scv-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: .78rem; font-weight: 600;
        line-height: 1.35; border-radius: 6px; border: 1px solid transparent; box-shadow: none; white-space: nowrap; }
    .jp-scope .scv-btn i { font-size: .95rem; line-height: 1; }
    .jp-scope .scv-btn-info    { background: #e3f6fb; border-color: #b8e8f3; color: #1d8aa3; }
    .jp-scope .scv-btn-primary { background: #ecebfc; border-color: #cfcaf6; color: #4c40c4; }
    .jp-scope .scv-btn-success { background: #e1f7f2; border-color: #b0e9dc; color: #148f77; }
    .jp-scope .scv-btn-warning { background: #fef4e4; border-color: #fbdfae; color: #b07a17; }
    .jp-scope .scv-btn-danger  { background: #fde8eb; border-color: #f9c3cb; color: #d03b52; }
    .jp-scope .scv-btn-info:hover, .jp-scope .scv-btn-info:focus       { background: #4fc6e1; border-color: #4fc6e1; color: #fff; }
    .jp-scope .scv-btn-primary:hover, .jp-scope .scv-btn-primary:focus { background: #6658dd; border-color: #6658dd; color: #fff; }
    .jp-scope .scv-btn-success:hover, .jp-scope .scv-btn-success:focus { background: #1abc9c; border-color: #1abc9c; color: #fff; }
    .jp-scope .scv-btn-warning:hover, .jp-scope .scv-btn-warning:focus { background: #f7b84b; border-color: #f7b84b; color: #fff; }
    .jp-scope .scv-btn-danger:hover, .jp-scope .scv-btn-danger:focus   { background: #f1556c; border-color: #f1556c; color: #fff; }

    .jp-scope .scv-status-filter { display: flex; align-items: center; gap: 6px; flex: 0 1 420px; min-width: 280px; margin-left: auto; }
    .jp-scope .scv-status-select { flex: 1 1 auto; min-width: 0; }
    .jp-scope .scv-status-select .select2-container { width: 100% !important; }
    .jp-scope .scv-label { margin: 0; font-size: .75rem; font-weight: 600; color: var(--ok-text-3); white-space: nowrap; }
    .jp-scope .scv-icon-btn { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
        flex: 0 0 34px; border-radius: 6px; }
    .jp-scope .scv-icon-btn.btn-light { border: 1px solid var(--ok-line-2); }

    /* sort / page size / search */
    .jp-scope .scv-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
        margin-bottom: 10px; }
    .jp-scope .scv-toolbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
    .jp-scope .scv-field { display: flex; align-items: center; gap: 6px; }
    .jp-scope .scv-toolbar .form-control { height: 34px; font-size: .8125rem; border-color: var(--ok-line-2); }
    .jp-scope .scv-sort-select { width: 220px; }
    .jp-scope .scv-pagesize { width: 76px; }
    .jp-scope .scv-sort-order { display: inline-flex; border: 1px solid var(--ok-line-2); border-radius: 6px; overflow: hidden; background: #fff; }
    .jp-scope .scv-sort-order .btn { padding: 0; width: 32px; height: 32px; display: inline-flex; align-items: center;
        justify-content: center; border-radius: 0; text-decoration: none; }
    .jp-scope .scv-sort-order .btn + .btn { border-left: 1px solid var(--ok-line-2); }
    .jp-scope .scv-sort-order .btn:hover { background: #f1f3fa; }
    .jp-scope .scv-search { display: flex; align-items: center; gap: 6px; flex: 0 1 480px; min-width: 260px; }
    .jp-scope .scv-search .input-group { flex: 1 1 auto; }
    .jp-scope .scv-search .input-group-text { background: #fff; border-color: var(--ok-line-2); color: var(--ok-text-4); height: 34px; }
    .jp-scope .scv-search .form-control { border-left: 0; }
    .jp-scope .scv-toolbar .form-control:focus { border-color: #6658dd; box-shadow: 0 0 0 2px rgba(102, 88, 221, .12); }

    /* grid card + pager */
    .jp-scope .modal.scv-modal .custom-table-wrapper { background: #fff; border-color: #e9ecef; border-radius: 8px; }
    .jp-scope .scv-pager { display: flex; justify-content: flex-end; margin-top: 10px; }
    .jp-scope .scv-pager #pagin_res:empty { display: none !important; }

    @media (max-width: 991.98px) {
        .jp-scope .scv-divider { display: none; }
        .jp-scope .scv-status-filter, .jp-scope .scv-search { flex-basis: 100%; min-width: 0; }
        .jp-scope .scv-selected-chip { margin-left: 0; }
    }

    /* ---- Overall Progress modal (#cv-submitted-status-modal.csp-modal) ------- */
    .jp-scope .modal.csp-modal .modal-content { border: 0; border-radius: 8px 0 0 8px; }
    .jp-scope .modal.csp-modal .modal-header { align-items: center; padding: 12px 18px; }
    .jp-scope .csp-head { display: flex; align-items: center; gap: 12px; }
    .jp-scope .csp-head-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; display: inline-flex;
        align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.25rem; }
    .jp-scope .modal.csp-modal .modal-title { font-size: 1rem; font-weight: 600; margin: 0; }
    .jp-scope .csp-head-sub { font-size: .75rem; }
    .jp-scope .modal.csp-modal .modal-body { background: #f5f6f8; padding: 16px 18px; }
    .jp-scope .csp-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
    .jp-scope .csp-stat { display: flex; align-items: baseline; gap: 8px; background: #fff; border: 1px solid #e9ecef;
        border-radius: 8px; padding: 10px 14px; }
    .jp-scope .csp-stat-num { font-size: 1.35rem; font-weight: 700; color: var(--ok-text); line-height: 1; }
    .jp-scope .csp-stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ok-text-4); }
    .jp-scope .csp-list { display: flex; flex-direction: column; gap: 8px; }
    .jp-scope .csp-row { background: #fff; border: 1px solid #e9ecef; border-left: 3px solid #e9ecef; border-radius: 8px;
        padding: 10px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
    .jp-scope .csp-row:hover, .jp-scope .csp-row:focus { outline: 0; box-shadow: 0 4px 14px rgba(50, 58, 70, .1); transform: translateY(-1px); }
    .jp-scope .csp-row.csp-primary { border-left-color: #6658dd; }
    .jp-scope .csp-row.csp-success { border-left-color: #1abc9c; }
    .jp-scope .csp-row.csp-warning { border-left-color: #f7b84b; }
    .jp-scope .csp-row.csp-danger  { border-left-color: #f1556c; }
    .jp-scope .csp-row.csp-info    { border-left-color: #4fc6e1; }
    .jp-scope .csp-row.csp-pink    { border-left-color: #f672a7; }
    .jp-scope .csp-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
    .jp-scope .csp-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
    .jp-scope .csp-name { flex: 1 1 auto; min-width: 0; font-size: .8125rem; font-weight: 600; color: var(--ok-text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jp-scope .csp-pct { font-size: .75rem; color: var(--ok-text-4); font-weight: 600; }
    .jp-scope .csp-count { min-width: 40px; text-align: center; padding: 2px 9px; border-radius: 50rem; font-size: .8rem; font-weight: 700; }
    .jp-scope .csp-go { color: var(--ok-line); font-size: 1.1rem; transition: color .15s, transform .15s; }
    .jp-scope .csp-row:hover .csp-go { color: var(--ok-text-3); transform: translateX(2px); }
    .jp-scope .csp-bar { height: 6px; border-radius: 6px; background: #f1f3fa; margin: 0; }
    .jp-scope .csp-bar .progress-bar { border-radius: 6px; }
    .jp-scope .csp-empty { text-align: center; color: var(--ok-text-4); padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--ok-line-2);
        border-radius: 8px; font-size: .85rem; }
    .jp-scope .csp-empty i { display: block; font-size: 2.2rem; color: var(--ok-line); line-height: 1; margin-bottom: .4rem; }
    @media (max-width: 991.98px) {
        .jp-scope #cv-submitted-status-modal .modal-dialog { max-width: 100% !important; }
    }

    /* ---- Job order list pager ----------------------------------------- */

    .jp-scope .joborder-pagesize {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        margin-right: 8px;
        color: var(--ok-text-3);
        font-size: 13px;
        vertical-align: middle;
    }

    .jp-scope .joborder-pagesize select {
        display: inline-block;
        width: auto;
        min-width: 68px;
        padding: 4px 26px 4px 10px;
        font-size: 13px;
        color: var(--ok-text);
        border-color: var(--ok-line-2);
    }

    .jp-scope .joborder-pagesize select:focus {
        border-color: #1abc9c;
        box-shadow: 0 0 0 2px rgba(26, 188, 156, .15);
    }


    .jp-scope .joborder-pager {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 12px;
    }

    .jp-scope .joborder-pager-summary {
        color: var(--ok-text-3);
        font-size: 13px;
    }

    .jp-scope #pagin {
        gap: 4px;
    }

    .jp-scope #pagin .page-link {
        border-radius: 4px;
        border: 1px solid var(--ok-line-2);
        color: var(--ok-text-3);
        padding: 4px 10px;
        font-size: 13px;
        line-height: 20px;
        cursor: pointer;
    }

    .jp-scope #pagin .page-link:hover {
        background-color: #f1f3fa;
        color: var(--ok-text);
    }

    .jp-scope #pagin .page-link.active,
    .jp-scope #pagin .page-link.active:hover {
        background-color: #6658dd !important;
        border-color: #6658dd !important;
        color: #fff !important;
        font-weight: 600;
    }

    .jp-scope #pagin .page-item.disabled .page-link {
        opacity: .45;
        cursor: default;
        background-color: transparent;
    }

    /* ---- E-mail preview modals ---------------------------------------- */

    .jp-scope .email-preview-meta {
        padding: 12px 20px;
        background-color: #f1f3fa;
        border-bottom: 1px solid var(--ok-line-2);
    }

    .jp-scope .email-preview-meta-row {
        display: flex;
        align-items: baseline;
        gap: 10px;
        font-size: 13px;
        line-height: 1.7;
    }

    .jp-scope .email-preview-label {
        flex: 0 0 34px;
        color: var(--ok-text-4);
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .4px;
        font-weight: 600;
    }

    .jp-scope .email-preview-value {
        color: var(--ok-text);
        word-break: break-word;
    }

    /* the e-mail sits on its own sheet so it reads as a message rather than as
       part of the application chrome */
    .jp-scope .email-preview-surface {
        padding: 16px;
        background-color: #eef2f7;
    }

    .jp-scope .email-preview-frame {
        display: block;
        width: 100%;
        height: 420px;
        border: 1px solid var(--ok-line-2);
        border-radius: 4px;
        background-color: #fff;
        box-shadow: 0 1px 2px rgba(50, 58, 70, .08);
    }

    /* Email to Client / Account Lead: "Send email" card; unticked hides the email parts */
    .jp-scope #edit-email-modal .eem-mode, .jp-scope #edit-email-to-lead-modal .eem-mode { margin-bottom: 14px; }
    .jp-scope #edit-email-modal .eem-mode .smm-notify-card, .jp-scope #edit-email-to-lead-modal .eem-mode .smm-notify-card { width: 100%; }
    .jp-scope #edit-email-modal.eem-no-email .eem-email-part, .jp-scope #edit-email-to-lead-modal.eem-no-email .eem-email-part { display: none; }
    .jp-scope #edit-email-modal.eem-no-email .eem-step, .jp-scope #edit-email-to-lead-modal.eem-no-email .eem-step { display: none; }
    /* ---- Email to Client modal ---------------------------------------- */

    .jp-scope #edit-email-modal .eem-content, .jp-scope #edit-email-to-lead-modal .eem-content { border: 0; background: #f5f5f5; max-height: 100vh; overflow: hidden; }
    .jp-scope #edit-email-modal .eem-header, .jp-scope #edit-email-to-lead-modal .eem-header { padding: 16px 24px; border: 0; align-items: center; }
    .jp-scope #edit-email-modal .eem-header-icon, .jp-scope #edit-email-to-lead-modal .eem-header-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(0, 122, 255, .10); color: var(--ok-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 12px; flex-shrink: 0; }
    .jp-scope #edit-email-modal .eem-header .modal-title, .jp-scope #edit-email-to-lead-modal .eem-header .modal-title { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; }
    .jp-scope #edit-email-modal .eem-subtitle, .jp-scope #edit-email-to-lead-modal .eem-subtitle { font-size: 12.5px; opacity: .8; margin: 2px 0 0; }

    .jp-scope #edit-email-modal .eem-header, .jp-scope #edit-email-modal .eem-footer, .jp-scope #edit-email-to-lead-modal .eem-header, .jp-scope #edit-email-to-lead-modal .eem-footer { flex-shrink: 0; }
    .jp-scope #edit-email-modal .eem-body, .jp-scope #edit-email-to-lead-modal .eem-body { padding: 20px 24px; overflow-y: auto; }
    .jp-scope #edit-email-modal .eem-section, .jp-scope #edit-email-to-lead-modal .eem-section { background: #fff; border: 1px solid var(--ok-line-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
    .jp-scope #edit-email-modal .eem-section:last-child, .jp-scope #edit-email-to-lead-modal .eem-section:last-child { margin-bottom: 0; }
    .jp-scope #edit-email-modal .eem-section-title, .jp-scope #edit-email-to-lead-modal .eem-section-title { margin-bottom: 14px; }
    .jp-scope #edit-email-modal .eem-section-title h5, .jp-scope #edit-email-to-lead-modal .eem-section-title h5 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); display: flex; align-items: center; gap: 8px; }
    .jp-scope #edit-email-modal .eem-step, .jp-scope #edit-email-to-lead-modal .eem-step { width: 22px; height: 22px; border-radius: 50%; background: rgba(26, 188, 156, .15); color: #1abc9c; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .jp-scope #edit-email-modal .eem-hint, .jp-scope #edit-email-to-lead-modal .eem-hint { display: block; font-size: 12px; color: var(--ok-text-4); margin: 4px 0 0; }
    .jp-scope #edit-email-modal .eem-section-title .eem-hint, .jp-scope #edit-email-to-lead-modal .eem-section-title .eem-hint { margin: 6px 0 0 30px; }
    .jp-scope #edit-email-modal .col-form-label, .jp-scope #edit-email-to-lead-modal .col-form-label { font-size: 12.5px; font-weight: 600; color: var(--ok-text-3); padding-top: 7px; }

    /* select2 renders its own control, so the bare select only shows before it initialises */
    .jp-scope #edit-email-modal .select2-container--default .select2-selection--multiple, .jp-scope #edit-email-to-lead-modal .select2-container--default .select2-selection--multiple { border-color: var(--ok-line); border-radius: 8px; min-height: 38px; }
    .jp-scope #edit-email-modal .select2-container--default.select2-container--focus .select2-selection--multiple, .jp-scope #edit-email-to-lead-modal .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: #b1bbc4; }
    .jp-scope #edit-email-modal .select2-container--default .select2-selection--multiple .select2-selection__choice, .jp-scope #edit-email-to-lead-modal .select2-container--default .select2-selection--multiple .select2-selection__choice { background: #e8f8f5; border: 1px solid #a3e4d7; color: #148f77; border-radius: 20px; padding: 1px 8px; font-size: 12.5px; }
    .jp-scope #edit-email-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove, .jp-scope #edit-email-to-lead-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #148f77; margin-right: 4px; }

    /* the message sits on its own sheet, the way the preview shows it */
    .jp-scope #edit-email-modal .eem-editor, .jp-scope #edit-email-to-lead-modal .eem-editor { min-height: 220px; max-height: 420px; overflow-y: auto; border: 1px solid var(--ok-line); border-radius: 8px; padding: 14px 16px; background: #fff; font-size: 13.5px; line-height: 1.6; color: var(--ok-text); }
    .jp-scope #edit-email-modal .eem-editor:focus, .jp-scope #edit-email-to-lead-modal .eem-editor:focus { outline: 0; border-color: #b1bbc4; }
    .jp-scope #edit-email-modal .cke_chrome, .jp-scope #edit-email-to-lead-modal .cke_chrome { border-radius: 8px; overflow: hidden; border-color: var(--ok-line) !important; }
    .jp-scope #edit-email-modal .form-check-input:checked, .jp-scope #edit-email-to-lead-modal .form-check-input:checked { background-color: #1abc9c; border-color: #1abc9c; }

    .jp-scope #edit-email-modal .eem-footer, .jp-scope #edit-email-to-lead-modal .eem-footer { background: #fff; border-top: 1px solid var(--ok-line-2); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .jp-scope #edit-email-modal .eem-footer-previews, .jp-scope #edit-email-modal .eem-footer-actions, .jp-scope #edit-email-to-lead-modal .eem-footer-previews, .jp-scope #edit-email-to-lead-modal .eem-footer-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .jp-scope #edit-email-modal .eem-footer .btn, .jp-scope #edit-email-to-lead-modal .eem-footer .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; margin: 0; font-weight: 500; min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
    .jp-scope #edit-email-modal .eem-footer-actions .btn, .jp-scope #edit-email-to-lead-modal .eem-footer-actions .btn { min-width: 130px; }

    @media (max-width: 575.98px) {
        .jp-scope #edit-email-modal .eem-footer, .jp-scope #edit-email-to-lead-modal .eem-footer { flex-direction: column; align-items: stretch; }
        .jp-scope #edit-email-modal .eem-footer-previews, .jp-scope #edit-email-modal .eem-footer-actions, .jp-scope #edit-email-to-lead-modal .eem-footer-previews, .jp-scope #edit-email-to-lead-modal .eem-footer-actions { width: 100%; }
        .jp-scope #edit-email-modal .eem-footer .btn, .jp-scope #edit-email-to-lead-modal .eem-footer .btn { flex: 1 1 auto; min-width: 0; }
    }

    /* ---- CV compliance (quality check) grid --------------------------- */

    /* the body scrolls, so the score summary and the Save bar can stay put */
    .jp-scope #quality_check_items_modal .modal-dialog { margin: 0 auto; }
    .jp-scope #quality_check_items_modal .modal-content { max-height: 100%; overflow: hidden; }
    .jp-scope #quality_check_items_modal .modal-body { padding: 16px 24px; overflow-y: auto; }

    .jp-scope .cvc-summary {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        gap: 20px;
        background: #fff;
        border: 1px solid var(--ok-line-2);
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 14px;
        box-shadow: 0 1px 2px rgba(50, 58, 70, .08);
    }

    .jp-scope .cvc-score { min-width: 120px; padding-right: 18px; border-right: 1px solid var(--ok-line-2); text-align: center; }
    .jp-scope .cvc-score-value { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--ok-text); }
    .jp-scope .cvc-score-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text-4); }
    .jp-scope .cvc-tone-good .cvc-score-value { color: #1abc9c; }
    .jp-scope .cvc-tone-fair .cvc-score-value { color: #f7b84b; }
    .jp-scope .cvc-tone-poor .cvc-score-value { color: #f1556c; }

    .jp-scope .cvc-summary-detail { flex: 1 1 auto; min-width: 0; }
    .jp-scope .cvc-score-points { font-size: 13px; color: var(--ok-text-3); margin-bottom: 6px; }
    .jp-scope .cvc-score-points b { color: var(--ok-text); }

    .jp-scope .cvc-bar { height: 8px; border-radius: 6px; background: #f1f3fa; overflow: hidden; }
    .jp-scope .cvc-bar-fill { height: 100%; border-radius: 6px; background: #1abc9c; transition: width .25s ease; }
    .jp-scope .cvc-fill-good { background: #1abc9c; }
    .jp-scope .cvc-fill-fair { background: #f7b84b; }
    .jp-scope .cvc-fill-poor { background: #f1556c; }

    .jp-scope .cvc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .jp-scope .cvc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: #f1f3fa; color: var(--ok-text-3); }
    .jp-scope .cvc-chip-full { background: #e8f8f5; color: #148f77; }
    .jp-scope .cvc-chip-part { background: #fef5e4; color: #b3801d; }
    .jp-scope .cvc-chip-none { background: #fdeaec; color: #c0392b; }
    .jp-scope .cvc-na-note { display: block; margin-top: 8px; font-size: 11.5px; color: var(--ok-text-4); }

    .jp-scope .cvc-table-wrap { border: 1px solid var(--ok-line-2); border-radius: 10px; background: #fff; }

    .jp-scope #tbl_quality_list_weightage { margin-bottom: 0; }

    .jp-scope #tbl_quality_list_weightage thead th {
        background-color: #f1f3fa;
        color: var(--ok-text);
        font-size: 11.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .3px;
        border-bottom: 2px solid var(--ok-line-2);
        white-space: nowrap;
    }

    .jp-scope #tbl_quality_list_weightage td { vertical-align: top; font-size: 13px; padding: 10px 12px; }
    .jp-scope #tbl_quality_list_weightage tbody tr:hover > td { background-color: #fbfcfe; }

    /* skill lists are long free text - let them wrap instead of stretching
       the modal into a horizontal scroll */
    .jp-scope #tbl_quality_list_weightage td.text-wrap { white-space: normal; word-break: break-word; }

    .jp-scope .cvc-name { font-weight: 600; color: var(--ok-text); }
    .jp-scope .cvc-weight { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ok-text-3); background: #f1f3fa; border-radius: 4px; padding: 1px 7px; }
    .jp-scope .cvc-pill { display: inline-block; margin: 4px 0 0 4px; font-size: 11px; padding: 1px 7px; border-radius: 4px; }
    .jp-scope .cvc-pill-saved { background: #e9ecef; color: var(--ok-text-3); }
    .jp-scope .cvc-pill-muted { background: #f1f3fa; color: var(--ok-text-4); }
    .jp-scope .cvc-na { color: var(--ok-text-4); font-style: italic; }

    /* one chip per thing the job order asks for, ticked when the CV carries it */
    .jp-scope .cvc-chips-list { display: flex; flex-wrap: wrap; gap: 4px; }
    .jp-scope .cvc-req { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 20px; border: 1px solid transparent; max-width: 100%; }
    .jp-scope .cvc-req-full { background: #e8f8f5; border-color: #a3e4d7; color: #148f77; }
    .jp-scope .cvc-req-part { background: #fef5e4; border-color: #f7d9a0; color: #b3801d; }
    .jp-scope .cvc-req-none { background: #fdeaec; border-color: #f5c6cb; color: #c0392b; }
    .jp-scope .cvc-req-plain { background: #f1f3fa; border-color: #e3e7f1; color: var(--ok-text-3); }
    .jp-scope .cvc-req-more { align-self: center; font-size: 11.5px; font-weight: 600; }

    .jp-scope .cvc-match { font-size: 15px; font-weight: 700; line-height: 1.2; }
    .jp-scope .cvc-match-good { color: #1abc9c; }
    .jp-scope .cvc-match-fair { color: #f7b84b; }
    .jp-scope .cvc-match-poor { color: #f1556c; }
    .jp-scope .cvc-bar-sm { height: 5px; margin: 4px 0 6px; }
    .jp-scope .cvc-reason { display: block; font-size: 11.5px; color: var(--ok-text-4); line-height: 1.35; }

    .jp-scope .cvc-calc { font-size: 13px; color: var(--ok-text); }
    .jp-scope .cvc-earned { font-size: 16px; font-weight: 700; }
    .jp-scope .cvc-of { font-size: 12px; color: var(--ok-text-4); }
    .jp-scope .cvc-suggest { display: block; font-size: 11.5px; color: var(--ok-text-4); margin-bottom: 6px; }
    .jp-scope .cvc-options { flex-wrap: wrap; }
    .jp-scope .cvc-options .btn { font-size: 11.5px; padding: 3px 9px; }
    .jp-scope .cvc-options .cvc-opt-val { font-weight: 700; }

    .jp-scope .cvc-row-na > td { background-color: #fbfcfd; }

    .jp-scope .cvc-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        background: #fff;
        border-top: 1px solid var(--ok-line-2);
        margin-top: 14px;
        padding: 12px 2px;
    }

    .jp-scope .cvc-actions-total { font-size: 13px; color: var(--ok-text-3); }
    .jp-scope .cvc-actions-total b { margin-left: 4px; font-size: 16px; color: var(--ok-text); }
    .jp-scope .cvc-actions-buttons { display: flex; gap: 8px; }

    @media (max-width: 767.98px) {
        .jp-scope .cvc-summary { flex-direction: column; align-items: stretch; gap: 12px; }
        .jp-scope .cvc-score { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--ok-line-2); }
    }
    /*  .scrollthin::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 2px rgba(101, 157, 172, 0.5);
    border-radius: 10px;
    background: rgb(132, 191, 203); 
    border: #89d3e6 solid 2px;
    width: 10px;
    max-height:10px ;
    }

    .scrollthin::-webkit-scrollbar-track {
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(227, 239, 242, 0.5);
        background: rgb(236, 232, 232); 
        border: #f9fcfd solid 2px;
        width: 10px;
        max-height:10px ;
    }*/


    .jp-scope .modal::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 0 0 2px rgba(101, 157, 172, 0.5);
        border-radius: 10px;
        background: rgb(132, 191, 203);
        border: #89d3e6 solid 2px;
        width: 10px;
        max-height: 2px;
    }

    .jp-scope .modal::-webkit-scrollbar-track {
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(227, 239, 242, 0.5);
        background: rgb(236, 232, 232);
        border: #f9fcfd solid 2px;
        width: 10px;
        max-height: 10px;
    }

    .jp-scope .disable_paginate {
        pointer-events: none;
        opacity: 0.6;
    }

    .jp-scope .show_paginate {
        display: none;
    }

    .jp-scope .scroll {
        display: block;
        border: 0px solid red;
        padding: 10px;
        margin-top: 5px;
        width: 100%;
        height: 250px;
        overflow-y: scroll;
    }


    /* Chrome, Safari, Edge, Opera */
    .jp-scope input::-webkit-outer-spin-button,
    .jp-scope input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox */
   /*  input[type=number] {
        -moz-appearance: textfield;
    } */

    .jp-scope [data-tooltip] {
        display: inline-block;
        position: relative;
        cursor: help;
        padding: 4px;
        white-space: pre-line;
    }

    /* Tooltip styling */
    .jp-scope [data-tooltip]:before {
        content: attr(data-tooltip);
        display: none;
        position: absolute;
        background: #2e7bef;
        color: #fff;

        padding: 8px 12px;
        font-size: 14px;
        background-color: #6658dd;
        ;
        line-height: 1.4;
        min-width: 220px;
        text-align: left;
        border-radius: 4px;
    }

    /* Dynamic horizontal centering */
    .jp-scope [data-tooltip-position="top"]:before,
    .jp-scope [data-tooltip-position="bottom"]:before {
        left: 50%;
        -ms-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    /* Dynamic vertical centering */
    .jp-scope [data-tooltip-position="right"]:before,
    .jp-scope [data-tooltip-position="left"]:before {
        top: 50%;
        -ms-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .jp-scope [data-tooltip-position="top"]:before {
        bottom: 100%;
        margin-bottom: 6px;
    }

    .jp-scope [data-tooltip-position="right"]:before {
        left: 100%;
        margin-left: 6px;
    }

    .jp-scope [data-tooltip-position="bottom"]:before {
        top: 100%;
        margin-top: 6px;
    }

    .jp-scope [data-tooltip-position="left"]:before {
        right: 100%;
        margin-right: 6px;
    }

    /* Tooltip arrow styling/placement */
    .jp-scope [data-tooltip]:after {
        content: '';
        display: none;
        position: absolute;
        width: 100;
        height: 100;
        border-color: transparent;
        border-style: solid;
    }

    /* Dynamic horizontal centering for the tooltip */
    .jp-scope [data-tooltip-position="top"]:after,
    .jp-scope [data-tooltip-position="bottom"]:after {
        left: 50%;
        margin-left: -6px;
    }

    /* Dynamic vertical centering for the tooltip */
    .jp-scope [data-tooltip-position="right"]:after,
    .jp-scope [data-tooltip-position="left"]:after {
        top: 50%;
        margin-top: -6px;
    }

    .jp-scope [data-tooltip-position="top"]:after {
        bottom: 100%;
        border-width: 6px 6px 0;
        border-top-color: #000;
    }

    .jp-scope [data-tooltip-position="right"]:after {
        left: 100%;
        border-width: 6px 6px 6px 0;
        border-right-color: #000;
    }

    .jp-scope [data-tooltip-position="bottom"]:after {
        top: 100%;
        border-width: 0 6px 6px;
        border-bottom-color: #000;
    }

    .jp-scope [data-tooltip-position="left"]:after {
        right: 100%;
        border-width: 6px 0 6px 6px;
        border-left-color: #000;
    }

    /* Show the tooltip when hovering */
    .jp-scope [data-tooltip]:hover:before,
    .jp-scope [data-tooltip]:hover:after {
        display: block;
        z-index: 50;
    }

   .jp-scope #unfilter_info_div .equal-item {
        width: 24%;              /* 4 items per row */
        min-width: 135px;        /* avoids shrinking too much */
        display: inline-block;
        vertical-align: top;
        margin-bottom: 10px;
        white-space: normal;
        height: 30px;      
        text-align: center;
    }

    .jp-scope .card-borders {

  /* every dashboard panel is the same white card now - the double outline
     and the tinted backgrounds are what made the page look like three
     unrelated screens stacked on top of each other */
  background: #fff;
  border: 1px solid var(--ok-line-2);
  border-radius: 10px;
  overflow: hidden;
}

 .jp-scope .card-div-borders{
 
  border-radius: 1px;
  border: 1px solid #e8dede;
  outline: 1px solid #e8dede;
}

 .jp-scope #qrcode {
            margin-top: 5px;
        }
        .jp-scope .copied {
            color: green;
            margin-top: 8px;
        }


        /* ---- Dashboard surface ------------------------------------------------
   One card language for the whole dashboard: white panels on the page
   background, a var(--ok-surface-2) header strip and the Ubold palette (var(--ok-text),
   #1abc9c, greys, and the theme's four accent colours) for every tile. The
   summary tiles, the status tiles, the filter bars and the My Performance
   card below all share it, so the page reads as one dashboard rather than a
   stack of differently coloured panels. */

.jp-scope .dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

/* Last row automatically left aligned */
.jp-scope .dashboard-summary::after {
    content: "";
}

.jp-scope .summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-left: 3px solid #4a81d4;
    border-radius: 8px;

    padding: 9px 12px;
    min-height: 46px;

    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.jp-scope .summary-card:hover {
    border-color: #1abc9c;
    box-shadow: 0 2px 6px rgba(50, 58, 70, .10);
    transform: translateY(-1px);
}

.jp-scope .summary-title {
    flex: 1;
    min-width: 0;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
    line-height: 15px;
    margin-right: 6px;
}

.jp-scope .summary-value {
    flex-shrink: 0;
    min-width: 22px;

    font-size: 17px;
    font-weight: 700;
    color: var(--ok-text);

    display: flex;
    align-items: center;
    justify-content: center;
}

.jp-scope .summary-value i {
    font-size: 16px;
    color: #1abc9c;
}

/* the date range bar that sits at the top of a dashboard panel */
.jp-scope .dashboard-filter {
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
    padding: 11px 16px;
}

.jp-scope .filter-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.jp-scope .filter-label {
    display: flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
}

.jp-scope .filter-label .form-label {
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit !important;
}

.jp-scope .filter-date {
    width: 320px;
    max-width: 100%;
}

.jp-scope .filter-date .form-control {
    height: 31px;
    border-radius: 6px;
    font-size: 12.5px;
}

.jp-scope .filter-btn {
    width: 34px;
    height: 31px;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Same height as the filter button but sized to its label. margin-left:auto
   parks it at the far end of the row instead of crowding the date range; the
   row already wraps, so it drops onto its own line on a narrow screen. */
.jp-scope .filter-btn-text {
    height: 31px;
    padding: 0 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ok-text);
    border: 1px solid var(--ok-line-2);
    background: #fff;
    white-space: nowrap;
}

.jp-scope .filter-btn-text i { color: #1abc9c; font-size: 14px; }

.jp-scope .filter-btn-text:hover { background: #fff; border-color: #1abc9c; color: var(--ok-text); }

@media (max-width: 767px) {
    .jp-scope .filter-btn-text { margin-left: 0; }
}

.jp-scope .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.jp-scope .status-card {
    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-radius: 8px;

    min-height: 72px;
    padding: 10px 12px;

    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.jp-scope .status-card:hover {
    border-color: #1abc9c;
    box-shadow: 0 2px 6px rgba(50, 58, 70, .10);
    transform: translateY(-1px);
}

.jp-scope .status-title {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
    text-align: center;
    line-height: 15px;
}

/* colour is left to the text-* utility each count carries, so a number keeps
   telling you whether it is progress, a warning or a drop out */
.jp-scope .status-count {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* the search / filter panel under the summary tiles */
/* the key skill / position / status check-dropdowns open below the last
   filter row - card-borders' overflow:hidden would clip them */
.jp-scope .card-borders.dashboard-search { overflow: visible; }
.jp-scope .card-borders.dashboard-search > .mp-head { border-radius: 10px 10px 0 0; }

/* collapse button on the right of a panel header (Search Job Orders & CVs) */
.jp-scope .mp-collapse-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--ok-line); background: #fff; color: var(--ok-text-2);
                   display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; padding: 0; margin-left: auto; }
.jp-scope .mp-collapse-btn:hover, .jp-scope .mp-collapse-btn:focus { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
.jp-scope .dashboard-search.is-collapsed > .mp-body { display: none !important; }
.jp-scope .dashboard-search.is-collapsed > .mp-head { border-bottom: 0; border-radius: 10px; }
.jp-scope .dashboard-search > .mp-head { cursor: default; }

/* search fields: one height, aligned labels, calmer spacing */
.jp-scope .dashboard-search .mp-body { padding: 16px 18px 14px; }
.jp-scope .dashboard-search .mp-body > .col-12 > .row.mt-3 { margin-top: 14px !important; }
.jp-scope .dashboard-search .form-label { display: inline-block; }
.jp-scope .dashboard-search .form-label + label { margin: 0 0 3px 4px; vertical-align: middle; }
.jp-scope .dashboard-search .form-label + label .form-check-input { margin: 0; width: 15px; height: 15px; vertical-align: -2px; cursor: pointer; }
.jp-scope .dashboard-search .form-control:not(textarea), .jp-scope .dashboard-search .form-select:not(.form-select-sm) { height: 36px; border-color: var(--ok-line); }
.jp-scope .dashboard-search .form-control:focus { border-color: #4a81d4; box-shadow: 0 0 0 .15rem rgba(74,129,212,.15); }
.jp-scope .dashboard-search .select2-container--default .select2-selection--single { height: 36px; }
.jp-scope .dashboard-search .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; }
.jp-scope .dashboard-search .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
.jp-scope .dashboard-search .select2-container--default .select2-selection--multiple { min-height: 36px; }

/* bottom bar: applicants found on the left, page size + Search / Reset on the right */
.jp-scope .dashboard-search .jo-search-actions { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid #eef2f7; align-items: center; }
.jp-scope .dashboard-search .jo-search-actions > [class*="col-"] { margin-top: 0 !important; }
.jp-scope .dashboard-search .jo-search-actions .col-8 { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
.jp-scope .dashboard-search .jo-search-actions .input-group-btn .btn { margin-left: 0 !important; }
.jp-scope .dashboard-search .jo-search-actions .btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
                                             font-size: 13px; font-weight: 600; border-radius: 6px; box-shadow: none; }
.jp-scope .dashboard-search #btn_count_action { background: #1abc9c; border-color: #1abc9c; color: #fff; }
.jp-scope .dashboard-search #btn_count_action:hover { background: #16a085; border-color: #16a085; }
.jp-scope .dashboard-search #btn_refresh_action { background: #eceef0; border: 1px solid #cfd4d9; color: var(--ok-text-2); }
.jp-scope .dashboard-search #btn_refresh_action:hover { background: var(--ok-text-3); border-color: var(--ok-text-3); color: #fff; }
.jp-scope .dashboard-search .joborder-pagesize { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ok-text-2); margin-right: 4px; }
.jp-scope .dashboard-search .joborder-pagesize .form-label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; margin: 0; }
.jp-scope .dashboard-search .joborder-pagesize .form-select { height: 34px; width: 72px; border-radius: 6px; }
.jp-scope .dashboard-search #showhideApplicant { height: 34px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; font-weight: 600; box-shadow: none; }

.jp-scope .dashboard-search .form-label {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-2) !important;
    margin-bottom: 3px;
}

.jp-scope .dashboard-search .form-control,
.jp-scope .dashboard-search .form-select {
    border-radius: 6px;
    font-size: 14px;
    color: var(--ok-text);
}

.jp-scope .dashboard-search .form-control::placeholder,
.jp-scope .dashboard-search .jp-cs-placeholder { color: var(--ok-text-3); }

.jp-scope .dashboard-search .select2-container--default .select2-selection__rendered { color: var(--ok-text); font-size: 14px; }

.jp-scope .dashboard-search .select2-container--default .select2-selection--single,
.jp-scope .dashboard-search .select2-container--default .select2-selection--multiple {
    border-radius: 6px;
    border-color: var(--ok-line);
}

/* ---- My Performance: the individual (Talent Champion) dashboard -----
   Same language as the detail view below - white card, var(--ok-surface-2) header, Ubold
   palette only (var(--ok-text), #1abc9c, greys) - so an individual dashboard reads as
   one panel rather than as a loose pile of coloured buttons. */
.jp-scope .mp-card {
    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.jp-scope .mp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 16px;
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
}

.jp-scope .mp-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }

.jp-scope .mp-head-title > i { color: #1abc9c; font-size: 18px; line-height: 1; }

.jp-scope .mp-head-title h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text);
}

.jp-scope .mp-head-sub {
    display: block;
    font-size: 11.5px;
    color: var(--ok-text-4);
    margin-top: 1px;
}

.jp-scope .mp-head-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.jp-scope .mp-head-filter .form-control {
    height: 31px;
    width: 230px;
    border-radius: 6px;
    font-size: 12.5px;
}

.jp-scope #dd_summary_year { height: 31px; width: 100px; border-radius: 6px; font-size: 12.5px; }

.jp-scope .mp-head-filter .btn {
    height: 31px;
    display: flex;
    align-items: center;
}

.jp-scope .mp-body { padding: 14px 16px 16px; }

.jp-scope .mp-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

/* The rule is a divider between sections, so the first one sits flush under the
   card header instead of drawing a second line right below it. */
.jp-scope #my_performance_joborders > .mp-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Job orders assigned to me. Scrolls rather than growing the card: an active
   recruiter can carry forty of these and the status breakdown below has to stay
   reachable without a long scroll past them. About five rows show at once. */
.jp-scope .mp-jo-wrap {
    max-height: 215px;
    overflow: auto;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.jp-scope .mp-jo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.jp-scope .mp-jo thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
    padding: 8px 12px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ok-text-3);
    white-space: nowrap;
}

.jp-scope .mp-jo tbody td {
    padding: 6px 12px;
    border-bottom: 1px solid #f4f6fa;
    color: var(--ok-text);
    vertical-align: middle;
}

.jp-scope .mp-jo tbody tr:last-child td { border-bottom: 0; }

.jp-scope .mp-jo tbody tr { cursor: pointer; transition: .12s; }

.jp-scope .mp-jo tbody tr:hover { background: var(--ok-surface-2); }

.jp-scope .mp-jo-no { font-weight: 600; white-space: nowrap; }

.jp-scope .mp-jo-truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-scope .mp-jo-num { text-align: right; font-weight: 600; white-space: nowrap; }

.jp-scope .mp-jo-date { white-space: nowrap; color: var(--ok-text-2); }

.jp-scope .mp-jo-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.jp-scope .mp-section h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text);
}

.jp-scope .mp-section-note { font-size: 12.5px; color: var(--ok-text-3); }

/* narrows the assigned job orders list - only drawn when it holds more than five */
.jp-scope .mp-jo-filter { position: relative; margin-bottom: 8px; }
.jp-scope .mp-jo-filter i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ok-text-3); font-size: 15px; }
.jp-scope .mp-jo-filter .form-control { padding-left: 30px; font-size: 13.5px; color: var(--ok-text); border-radius: 6px; }
.jp-scope .mp-jo-filter .form-control::placeholder { color: var(--ok-text-3); }
.jp-scope .mp-jo-nomatch td { text-align: center; color: var(--ok-text-3); cursor: default; }
.jp-scope .mp-jo tbody tr.mp-jo-nomatch:hover { background: transparent; }

/* My Recruitment Summary and Status of the CVs share one compact tile: a grey
   panel (as on analytics-recruiter) holding single-line "count  label" tiles
   with the accent on the left border, passed in through --mp-accent. */
.jp-scope .mp-stat-group {
    height: 100%;
    padding: 8px 10px 10px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: #f8fafc;
}

.jp-scope .mp-stat-group-title {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.jp-scope .mp-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

/* status names are longer and there are more of them - as many as fit */
.jp-scope .mp-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 6px;
}

.jp-scope .mp-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #e6e9ef;
    border-left: 3px solid var(--mp-accent, #4a81d4);
    border-radius: 6px;
    background: #fff;
    line-height: 1.25;
}

.jp-scope .mp-stat-count {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.jp-scope .mp-stat-label {
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    color: #64748b;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jp-scope .mp-stat-zero .mp-stat-count { color: #94a3b8; }

.jp-scope .mp-stat-link { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }

.jp-scope .mp-stat-link:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .08); transform: translateY(-1px); }

.jp-scope .mp-empty {
    font-size: 13.5px;
    color: var(--ok-text-3);
    background: var(--ok-surface-2);
    border: 1px dashed var(--ok-line-2);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}



@media (max-width: 767px) {
    .jp-scope .mp-head          { align-items: flex-start; }
    .jp-scope .mp-head-filter   { width: 100%; }
    .jp-scope .mp-head-filter .form-control { width: auto; flex: 1 1 auto; }
}



/* ---- My Performance: the month-wise trend panel ---------------------
   The same recruitment funnel the user analytics screen draws for a user,
   for the signed in employee only, and dressed in the dashboard's own card
   language rather than the analytics one. */

.jp-scope .mp-trend { margin-top: 16px; }

.jp-scope .mp-trend-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.jp-scope .mp-trend-kpi {
    background: var(--ok-surface-2);
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
}

.jp-scope .mp-trend-kpi-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
}

.jp-scope .mp-trend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.jp-scope .mp-trend-kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ok-text);
    line-height: 1.3;
}

.jp-scope .mp-trend-kpi-meta { font-size: 11.5px; color: var(--ok-text-4); }

.jp-scope .mp-trend-card {
    border: 1px solid var(--ok-line-2);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.jp-scope .mp-trend-card:last-child { margin-bottom: 0; }

.jp-scope .mp-trend-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
}

.jp-scope .mp-trend-title {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text);
}

.jp-scope .mp-trend-sub { font-size: 11.5px; color: var(--ok-text-4); margin-top: 1px; }

.jp-scope .mp-trend-view .btn {
    font-size: 12px;
    padding: 3px 10px;
    border-color: var(--ok-line-2);
    color: var(--ok-text-3);
}

.jp-scope .mp-trend-view .btn.active {
    background: var(--ok-text);
    border-color: var(--ok-text);
    color: #fff;
}

.jp-scope .mp-trend-chart {
    position: relative;
    height: 320px;
    padding: 12px 14px;
}

.jp-scope .mp-trend-chart-sm { height: 260px; }

.jp-scope .mp-trend-empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ok-text-4);
    background: rgba(255, 255, 255, .85);
}

.jp-scope .mp-trend-table { padding: 0; overflow-x: auto; }

.jp-scope .mp-trend-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 12.5px;
}

.jp-scope .mp-trend-table th,
.jp-scope .mp-trend-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #f1f3f5;
    white-space: nowrap;
}

.jp-scope .mp-trend-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
    text-align: left;
    background: #fff;
}

.jp-scope .mp-trend-table td { color: var(--ok-text); }

.jp-scope .mp-trend-table tbody tr { cursor: pointer; }

.jp-scope .mp-trend-table tbody tr:hover { background: var(--ok-surface-2); }

.jp-scope .mp-trend-table tfoot td {
    font-weight: 700;
    background: var(--ok-surface-2);
    border-bottom: 0;
}

.jp-scope .mp-trend-rate { color: var(--ok-text-4); font-size: 11px; margin-left: 5px; }

@media (max-width: 1199px) {
    .jp-scope .mp-trend-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .jp-scope .mp-trend-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jp-scope .mp-trend-chart { height: 280px; }
}

@media (max-width: 479px) {
    .jp-scope .mp-trend-kpis { grid-template-columns: 1fr; }
}

/* ---- Detail view: View CV Submission / View Job Order --------------- */
/* Both panels used to be a flat wall of "Label: value" paragraphs. They now
   share one header + card + label/value grid so either record can be scanned
   in a couple of seconds. Ubold palette only: var(--ok-text), #1abc9c, greys. */

.jp-scope .dv-body {
    background: #f1f3fa;
    padding: 16px;
}

.jp-scope .dv-hero {
    background: var(--ok-text);
    color: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
}

.jp-scope .dv-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.jp-scope .dv-hero-mark {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(26, 188, 156, .18);
    color: #1abc9c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.jp-scope .dv-hero-main { flex: 1 1 260px; min-width: 0; }

.jp-scope .dv-hero-title {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}

.jp-scope .dv-hero-sub {
    margin: 3px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
    word-break: break-word;
}

.jp-scope .dv-hero-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jp-scope .dv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(26, 188, 156, .18);
    color: #1abc9c;
    white-space: nowrap;
}

.jp-scope .dv-badge-muted { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }

.jp-scope .dv-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jp-scope .dv-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13.5px;
    color: #fff;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-scope .dv-hero-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.jp-scope .dv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.jp-scope .dv-stat {
    background: rgba(255, 255, 255, .07);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 0;
}

.jp-scope .dv-stat-label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 1px;
}

.jp-scope .dv-stat-value {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.jp-scope .dv-card {
    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.jp-scope .dv-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
}

.jp-scope .dv-card-head i { color: #1abc9c; font-size: 18px; line-height: 1; }

.jp-scope .dv-card-head h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text);
}

.jp-scope .dv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    margin-bottom: -1px;
}

.jp-scope .dv-item {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f3f5;
    min-width: 0;
}

.jp-scope .dv-item-wide { grid-column: 1 / -1; }

.jp-scope .dv-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
    margin-bottom: 3px;
}

.jp-scope .dv-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--ok-text);
    line-height: 1.55;
    word-break: break-word;
}

.jp-scope .dv-value a { color: #1abc9c; }

.jp-scope .dv-value ul { margin: 0; padding-left: 18px; }

.jp-scope .dv-empty { color: #adb5bd; }

.jp-scope .dv-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.jp-scope .dv-tag {
    background: #e8f8f5;
    border: 1px solid #a3e4d7;
    color: #148f77;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 13px;
}

.jp-scope .dv-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 14px 16px;
}

.jp-scope .dv-file-group { min-width: 0; }

.jp-scope .dv-file-group > .dv-label { margin-bottom: 5px; }

.jp-scope .dv-file {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--ok-line-2);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ok-text);
    text-decoration: none;
    background: #fff;
}

.jp-scope .dv-file:hover { border-color: #1abc9c; color: #148f77; }

.jp-scope .dv-file i { color: var(--ok-text-4); flex-shrink: 0; }

.jp-scope .dv-file:hover i { color: #1abc9c; }

.jp-scope .dv-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-scope .dv-file-none { font-size: 13.5px; color: #adb5bd; }

.jp-scope .dv-viewed { font-size: 12px; font-weight: 600; color: #1abc9c; margin-left: 2px; }

@media (max-width: 576px) {
    .jp-scope .dv-body { padding: 10px; }
    .jp-scope .dv-hero { padding: 14px 16px; }
    .jp-scope .dv-hero-title { font-size: 19px; }
}

/* ---- Add / Update Job Order form -------------------------------------- */
/* Same header, card and label look as View Job Order above, so adding or
   editing a job order reads like the record it produces. Field ids, tabs and
   the save flow are unchanged. */

.jp-scope #full-width-modal .modal-body { background: #f1f3fa; padding: 16px; }

.jp-scope #full-width-modal #detail_form { margin-left: 0 !important; }

.jp-scope #full-width-modal #detail_form .nav-pills { margin-bottom: 14px; }

.jp-scope #full-width-modal #detail_form .card {
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 14px;
}

.jp-scope #full-width-modal #detail_form .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--ok-surface-2) !important;
    border-bottom: 1px solid #eef2f7;
    color: var(--ok-text) !important;
}

.jp-scope #full-width-modal #detail_form .card-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text) !important;
}

.jp-scope #full-width-modal .jo-card-icon { color: #1abc9c; font-size: 18px; line-height: 1; }

.jp-scope #full-width-modal #detail_form .col-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ok-text-3);
}

.jp-scope #full-width-modal .jo-hero-hint,
.jp-scope #submitcv-modal .jo-hero-hint { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 8px 0 0; }

/* Edit CV stacked over the open CV list: sit above it and dim it out */
.jp-scope #submitcv-modal.cv-edit-stacked {
    z-index: 1065;
    background-color: rgba(50, 58, 70, .75);
    backdrop-filter: blur(3px);
}

/* ---- Add / Update CV form: same look as View CV ------------------------ */
.jp-scope #submitcv-modal .modal-body { background: #f1f3fa; padding: 16px; }

.jp-scope #submitcv-modal #submitcv_form { margin-left: 0 !important; }

.jp-scope #submitcv-modal #submitcv_form .nav-pills { margin-bottom: 14px; }

.jp-scope #submitcv-modal #submitcv_form .card {
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 14px;
}

.jp-scope #submitcv-modal #submitcv_form .card > .bg-light {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--ok-surface-2) !important;
    border-bottom: 1px solid #eef2f7;
}

.jp-scope #submitcv-modal #submitcv_form .card > .bg-light h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text);
}

.jp-scope #submitcv-modal .jo-card-icon { color: #1abc9c; font-size: 18px; line-height: 1; }

.jp-scope #submitcv-modal #submitcv_form .col-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ok-text-3);
}

/* Tab bar + field look shared by the Add / Update CV form (#submitcv_form)
   and the Add / Update Job Order form (#detail_form) */
.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs {
    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    padding: 5px;
    gap: 5px;
}

.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 7px;
    background: transparent;
    color: var(--ok-text-3);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .3px;
}

.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs .nav-link i { font-size: 17px; line-height: 1; color: var(--ok-text-4); }

.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs .nav-link:hover { color: var(--ok-text); background: var(--ok-surface-2); }

.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs .nav-link.active { background: var(--ok-text); color: #fff; }

.jp-scope :is(#submitcv-modal, #full-width-modal) .cv-tabs .nav-link.active i { color: #1abc9c; }

/* one card can hold several sections: a rule between them */
.jp-scope #submitcv-modal #submitcv_form .card > .bg-light ~ .bg-light { border-top: 1px solid #eef2f7; }

.jp-scope :is(#submitcv_form, #detail_form) .card-body { padding: 12px 16px 14px; }

.jp-scope :is(#submitcv_form, #detail_form) .card-body > .row.mt-2:first-child { margin-top: 0 !important; }

.jp-scope :is(#submitcv_form, #detail_form) .form-control,
.jp-scope :is(#submitcv_form, #detail_form) .input-group-text { border-color: var(--ok-line-2); }

.jp-scope :is(#submitcv_form, #detail_form) .form-control:focus { border-color: #1abc9c; box-shadow: none; }

.jp-scope :is(#submitcv_form, #detail_form) textarea.form-control { resize: vertical; }

.jp-scope :is(#submitcv_form, #detail_form) .help-block li { font-size: 12.5px; margin-top: 3px; }

.jp-scope :is(#submitcv-modal, #full-width-modal) .tab-pane > br { display: none; }

/* ---- Compact, readable fields (CV + Job Order forms) -------------------
   Label and field share one line (label ~1/3, field ~2/3, no dead column),
   rows sit closer together and every control is the same 36px height, so a
   section shows more fields at once. Text is 14px dark on white for
   readability; labels are 13.5px dark grey instead of light grey. */
.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .card { margin-bottom: 12px; }

.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .card-header,
.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .card > .bg-light { padding: 9px 16px; }

/* space between field rows */
.jp-scope :is(#submitcv_form, #detail_form) .card-body .row.mt-2,
.jp-scope :is(#submitcv_form, #detail_form) .card-body .row.mt-3 { margin-top: 8px !important; }

.jp-scope :is(#submitcv_form, #detail_form) .card-body .row.mb-3 { margin-bottom: 0 !important; }

/* label: one readable line where it fits */
.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .col-form-label {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ok-text-2);
    padding-top: 9px;
    padding-bottom: 4px;
}

.jp-scope :is(#submitcv_form, #detail_form) .row > .col-4.col-form-label {
    flex: 0 0 auto;
    width: 34%;
    padding-right: 6px;
}

.jp-scope :is(#submitcv_form, #detail_form) .row > .col-4.col-form-label + :is(.col-7, .col-8) {
    flex: 0 0 auto;
    width: 66%;
}

.jp-scope :is(#submitcv_form, #detail_form) .col-form-label .text-danger { margin-left: 1px; }

/* controls: 14px text, 36px high */
.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .form-control,
.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .form-select {
    font-size: 14px;
    color: var(--ok-text);
    padding: 6px 10px;
    min-height: 36px;
    border-radius: 5px;
}

.jp-scope :is(#submitcv_form, #detail_form) .form-control::placeholder { color: #adb5bd; }

.jp-scope :is(#submitcv_form, #detail_form) .form-control[readonly],
.jp-scope :is(#submitcv_form, #detail_form) .form-control:disabled { background: #f7f8fa; color: var(--ok-text-3); }

.jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .input-group-text {
    padding: 6px 10px;
    font-size: 14px;
    background: #f7f8fa;
    color: var(--ok-text-3);
}

.jp-scope :is(#submitcv_form, #detail_form) textarea.form-control { min-height: 60px; line-height: 1.45; }

/* select2 */
.jp-scope :is(#submitcv_form, #detail_form) .select2-container .select2-selection--single {
    height: 36px;
    border-color: var(--ok-line-2);
}

.jp-scope :is(#submitcv_form, #detail_form) .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    font-size: 14px;
    color: var(--ok-text);
    padding-left: 10px;
}

.jp-scope :is(#submitcv_form, #detail_form) .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }

.jp-scope :is(#submitcv_form, #detail_form) .select2-container .select2-selection--multiple { min-height: 36px; }

.jp-scope :is(#submitcv_form, #detail_form) .select2-container .select2-search--inline .select2-search__field { font-size: 14px; margin-top: 5px; }

/* bootstrap-select (data-width / data-dropup-auto dropdowns) */
.jp-scope :is(#submitcv_form, #detail_form) .bootstrap-select > .dropdown-toggle {
    font-size: 14px;
    color: var(--ok-text);
    padding: 6px 10px;
    min-height: 36px;
    border-color: var(--ok-line-2);
    background: #fff;
}

/* radios / checkboxes sit level with the field line */
.jp-scope :is(#submitcv_form, #detail_form) .form-check { min-height: 36px; display: flex; align-items: center; gap: 6px; margin-bottom: 0; }

.jp-scope :is(#submitcv_form, #detail_form) .form-check-input { margin-top: 0; }

/* narrow screens: label above its field */
@media (max-width: 767px) {
    .jp-scope :is(#submitcv_form, #detail_form) .row > .col-4.col-form-label,
    .jp-scope :is(#submitcv_form, #detail_form) .row > .col-4.col-form-label + :is(.col-7, .col-8) { width: 100%; }

    .jp-scope :is(#submitcv-modal #submitcv_form, #full-width-modal #detail_form) .col-form-label { padding-top: 0; }
}

/* Job Order skills (select2 multi-selects): each chosen skill is a tag */
.jp-scope #detail_form .select2-container--default .select2-selection--multiple {
    border-color: var(--ok-line-2);
    min-height: 38px;
    padding: 2px 4px;
}

.jp-scope #detail_form .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: #1abc9c; }

.jp-scope #detail_form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 3px 4px 3px 0;
    padding: 2px 10px 2px 8px;
    border: 1px solid #a3e4d7;
    border-radius: 20px;
    background: #e8f8f5;
    color: #148f77;
    font-size: 13px;
    font-weight: 500;
}

.jp-scope #detail_form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static;
    order: 2;
    margin: 0 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #148f77;
    font-size: 15px;
    line-height: 1;
}

.jp-scope #detail_form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: #f1556c; background: transparent; }

.jp-scope #detail_form .select2-container--default .select2-selection--multiple .select2-selection__choice__display { padding: 0; }

/* same tag look if a list is a Chosen multi-select instead */
.jp-scope #detail_form .chosen-container-multi .chosen-choices { border-color: var(--ok-line-2); border-radius: .2rem; background: #fff; }

.jp-scope #detail_form .chosen-container-multi .chosen-choices li.search-choice {
    margin: 3px 4px 3px 0;
    padding: 3px 24px 3px 10px;
    border: 1px solid #a3e4d7;
    border-radius: 20px;
    background: #e8f8f5;
    box-shadow: none;
    color: #148f77;
    font-size: 13px;
    font-weight: 500;
}

.jp-scope #detail_form .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 6px; right: 7px; }

/* Skill Details: each job order skill is a tag, ticked = candidate has it */
.jp-scope #submitcv-modal .cv-skill-group {
    height: 100%;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 10px 12px 12px;
    background: var(--ok-surface-2);
}

.jp-scope #submitcv-modal .cv-skill-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
}

.jp-scope #submitcv-modal .cv-skill-group-head small {
    font-size: 11.5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ok-text-4);
}

.jp-scope #submitcv-modal .cv-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.jp-scope #submitcv-modal .cv-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 12px;
    border: 1px solid var(--ok-line-2);
    border-radius: 20px;
    background: #fff;
    color: var(--ok-text);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s, color .15s;
}

.jp-scope #submitcv-modal .cv-skill-tag input { position: absolute; opacity: 0; pointer-events: none; }

.jp-scope #submitcv-modal .cv-skill-tag i { display: none; font-size: 14px; line-height: 1; }

.jp-scope #submitcv-modal .cv-skill-tag:hover { border-color: #1abc9c; color: #148f77; }

.jp-scope #submitcv-modal .cv-skill-tag:has(input:checked) {
    background: #e8f8f5;
    border-color: #1abc9c;
    color: #148f77;
}

.jp-scope #submitcv-modal .cv-skill-tag:has(input:checked) i { display: inline; }

.jp-scope #submitcv-modal .cv-skill-tag:has(input:focus-visible) { box-shadow: 0 0 0 2px rgba(26, 188, 156, .3); }

.jp-scope #submitcv-modal .cv-skill-none { font-size: 13px; color: #adb5bd; }

/* Candidate Status: status change list */
.jp-scope #submitcv-modal .cv-status-table { font-size: 13.5px; }

.jp-scope #submitcv-modal .cv-status-table thead th {
    background: var(--ok-surface-2);
    border-bottom: 1px solid #eef2f7;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
    padding: 9px 16px;
}

.jp-scope #submitcv-modal .cv-status-table td { padding: 9px 16px; border-color: #f1f3f5; color: var(--ok-text); }

.jp-scope #submitcv-modal .cv-status-table td:first-child { font-weight: 600; }

.jp-scope #submitcv-modal .cv-status-table td:last-child { color: var(--ok-text-3); white-space: nowrap; }

.jp-scope #submitcv-modal .cv-status-table td.cv-status-empty { color: #adb5bd; font-weight: 400; }

@media (max-width: 991px) {
    .jp-scope #submitcv-modal .cv-tabs .nav-link { font-size: 12.5px; padding: 8px 6px; }
}

/* CV attachments: one tile per type, files listed inside it */
.jp-scope #submitcv-modal .cv-att-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f1f3fa;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--ok-text-3);
}
.jp-scope #submitcv-modal .cv-att-note > .mdi { color: #1abc9c; font-size: 20px; line-height: 1; }
.jp-scope #submitcv-modal .cv-att-limit { font-size: 12.5px; color: var(--ok-text-4); margin-top: 2px; }

.jp-scope #submitcv-modal .cv-att-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.jp-scope #submitcv-modal .cv-att-tile {
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jp-scope #submitcv-modal .cv-att-tile.parsley-error,
.jp-scope #submitcv-modal .cv-att-tile.has-error { border-color: #f1556c; }

.jp-scope #submitcv-modal .cv-att-head { display: flex; align-items: center; gap: 10px; }

.jp-scope #submitcv-modal .cv-att-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(26, 188, 156, .12);
    color: #1abc9c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.jp-scope #submitcv-modal .cv-att-title { flex: 1 1 auto; min-width: 0; }
.jp-scope #submitcv-modal .cv-att-title h6 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ok-text); }
.jp-scope #submitcv-modal .cv-att-title > span { font-size: 12px; color: var(--ok-text-4); }

.jp-scope #submitcv-modal .cv-att-head .fileinput-button { flex-shrink: 0; position: relative; overflow: hidden; }

.jp-scope #submitcv-modal .cv-att-files { display: flex; flex-direction: column; gap: 6px; }
.jp-scope #submitcv-modal .cv-att-files:empty::before { content: 'No file attached'; font-size: 12.5px; color: #adb5bd; padding: 2px 0; }

/* a saved file */
.jp-scope #submitcv-modal .cv-att-file {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    padding: 6px 8px;
    background: var(--ok-surface-2);
    min-width: 0;
}
.jp-scope #submitcv-modal .cv-att-file > .mdi { font-size: 18px; flex-shrink: 0; }
.jp-scope #submitcv-modal .cv-att-file-main { flex: 1 1 auto; min-width: 0; }
.jp-scope #submitcv-modal .cv-att-file-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ok-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jp-scope #submitcv-modal .cv-att-file-name:hover { color: #1abc9c; }
.jp-scope #submitcv-modal .cv-att-file-meta { font-size: 11.5px; color: var(--ok-text-4); }
.jp-scope #submitcv-modal .cv-att-file-actions { display: flex; gap: 4px; flex-shrink: 0; }
.jp-scope #submitcv-modal .cv-att-file-actions .btn { padding: 1px 6px; }

/* a file picked but not uploaded yet (the app-wide template-upload row) */
.jp-scope #submitcv-modal .cv-att-files .template-upload {
    margin: 0 !important;
    border: 1px dashed #a3e4d7 !important;
    border-radius: 6px;
    background: #f4fbf9;
    padding: 6px 8px !important;
    font-size: 13px;
}
.jp-scope #submitcv-modal .cv-att-files .template-upload .uploadLabel { display: flex; align-items: center; gap: 6px; padding: 0; }
.jp-scope #submitcv-modal .cv-att-files .template-upload .uploadLabel .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ok-text); }
.jp-scope #submitcv-modal .cv-att-files .template-upload .uploadLabel .name::after { content: 'To upload on Save'; margin-left: 8px; font-size: 11px; font-weight: 600; color: #148f77; }
.jp-scope #submitcv-modal .cv-att-files .template-upload .cancel { color: #f1556c; cursor: pointer; }
.jp-scope #submitcv-modal .cv-att-files .template-upload > .col-12:last-child { padding: 4px 0 0 !important; font-size: 12px; color: var(--ok-text-4); }
.jp-scope #submitcv-modal .cv-att-files .template-upload .progress { height: 6px !important; margin-top: 4px; }

.jp-scope #submitcv-modal #actions_div {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 !important;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--ok-line-2);
}

.jp-scope #full-width-modal #actions_div {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 !important;
    padding: 12px 16px !important;
    background: #fff;
    border-top: 1px solid var(--ok-line-2);
}

/* update history: one entry per save, newest first */
.jp-scope .jo-trail { padding: 4px 0; }

.jp-scope .jo-trail-item {
    position: relative;
    margin-left: 7px;
    padding: 0 0 16px 20px;
    border-left: 2px solid #eef2f7;
}

.jp-scope .jo-trail-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.jp-scope .jo-trail-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1abc9c;
}

.jp-scope .jo-trail-item.jo-trail-old::before { border-color: var(--ok-line); }

.jp-scope .jo-trail-meta { font-size: 13.5px; color: var(--ok-text); margin-bottom: 6px; }

.jp-scope .jo-trail-meta .jo-trail-when { color: var(--ok-text-4); margin-left: 6px; }

.jp-scope .jo-trail-notified { font-size: 12.5px; color: var(--ok-text-3); margin-top: 4px; }

.jp-scope .jo-trail-table { margin: 0; font-size: 13.5px; border: 1px solid #eef2f7; }

.jp-scope .jo-trail-table th {
    background: var(--ok-surface-2);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ok-text-3);
}

.jp-scope .jo-trail-table td { vertical-align: top; word-break: break-word; }

.jp-scope .jo-trail-table td:first-child { width: 28%; font-weight: 600; color: var(--ok-text-3); }

.jp-scope .jo-trail-prev { color: var(--ok-text-4); }

.jp-scope .jo-trail-new { color: var(--ok-text); font-weight: 600; }

.jp-scope .jo-trail-added { color: #148f77; font-weight: 600; }

.jp-scope .jo-trail-removed { color: #f1556c; font-weight: 600; }

.jp-scope .jo-trail-empty { color: #adb5bd; font-size: 13.5px; }

/* Update History tab: summary strip, search, created entry */
.jp-scope .jo-trail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.jp-scope .jo-trail-stat {
    background: #fff;
    border: 1px solid var(--ok-line-2);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 0;
}
.jp-scope .jo-trail-stat span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ok-text-4);
}
.jp-scope .jo-trail-stat b { display: block; font-size: 16px; font-weight: 600; color: var(--ok-text); word-break: break-word; }
.jp-scope .jo-trail-stat small { display: block; font-size: 12px; color: var(--ok-text-3); }

.jp-scope .jo-trail-search { position: relative; width: 260px; max-width: 100%; }
.jp-scope .jo-trail-search .mdi { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--ok-text-4); }
.jp-scope .jo-trail-search input { padding-left: 28px; }

.jp-scope .jo-trail-count { font-size: 11.5px; margin-left: 6px; }

.jp-scope .jo-trail-item.jo-trail-created::before { border-color: var(--ok-text); background: var(--ok-text); }

.jp-scope .jo-trail-table mark { background: #fcf3cf; padding: 0 1px; }

/* ---- Other Source CVs list -------------------------------------------- */
.jp-scope .othercv-table td { vertical-align: middle; font-size: 13.5px; }
.jp-scope .othercv-table .othercv-name { color: var(--ok-text); font-weight: 600; }
.jp-scope .othercv-table .othercv-name:hover { color: #1abc9c; }
.jp-scope .othercv-table .othercv-sub { color: var(--ok-text-4); font-size: 12.5px; }
.jp-scope .othercv-table .othercv-contact { line-height: 1.5; white-space: nowrap; }
.jp-scope .othercv-table .othercv-contact i { color: var(--ok-text-4); width: 14px; }
.jp-scope .othercv-table .othercv-actions { white-space: nowrap; text-align: right; }
.jp-scope .othercv-table .othercv-actions .btn { margin-left: 3px; }
.jp-scope .othercv-table select.othercv-recruiter { min-width: 160px; }
.jp-scope .othercv-table .othercv-chk-col { width: 34px; text-align: center; }
.jp-scope .othercv-table .form-check-input { cursor: pointer; }
.jp-scope .othercv-table tr.othercv-row-selected > td { background: #f0fbf8; }
.jp-scope .othercv-table .othercv-match { min-width: 96px; }
.jp-scope .othercv-table .othercv-match .progress { height: 4px; width: 70px; margin-top: 4px; background: #eceff1; }
.jp-scope .othercv-toolbar { flex-wrap: wrap; }
.jp-scope .othercv-toolbar .othercv-selected { color: var(--ok-text-3); font-size: 13px; margin-left: 8px; }
.jp-scope .othercv-toolbar .othercv-toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jp-scope .othercv-hint { padding: 8px 16px; font-size: 13px; color: var(--ok-text-3); background: #fff; border-bottom: 1px solid #eef2f7; }
.jp-scope .othercv-progress { padding: 10px 16px; background: #f7f8f9; border-bottom: 1px solid #eef2f7; }
/* JD match block of the details popup */
.jp-scope .othercv-matchbox { border: 1px solid var(--ok-line-2); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; background: var(--ok-surface-2); }
.jp-scope .othercv-matchbox .othercv-matchscore { font-size: 26px; font-weight: 700; line-height: 1; }
.jp-scope .othercv-matchbox ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.jp-scope .othercv-matchbox ul li { font-size: 13.5px; padding: 2px 0 2px 20px; position: relative; }
.jp-scope .othercv-matchbox ul li i { position: absolute; left: 0; top: 3px; }
.jp-scope .othercv-matchbox .othercv-skilltable td, .jp-scope .othercv-matchbox .othercv-skilltable th { font-size: 13px; padding: 4px 8px; }
/* ---- Other Source CVs: remarks popup ----------------------------------- */
.jp-scope .othercv-actions .othercv-remark-btn .badge { font-size: 10px; padding: 2px 5px; margin-left: 3px; background: rgba(255, 255, 255, .28); }
.jp-scope .othercv-remarks-body { background: #f7f8f9; min-height: 220px; }
.jp-scope .othercv-remark-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.jp-scope .othercv-remark-search { position: relative; flex: 1 1 auto; }
.jp-scope .othercv-remark-search i { position: absolute; left: 9px; top: 5px; color: var(--ok-text-4); }
.jp-scope .othercv-remark-search input { padding-left: 28px; }
.jp-scope .othercv-remark-day { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 11.5px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--ok-text-4); }
.jp-scope .othercv-remark-day:first-child { margin-top: 0; }
.jp-scope .othercv-remark-day::after { content: ''; flex: 1; height: 1px; background: var(--ok-line-2); }
.jp-scope .othercv-remark { display: flex; gap: 10px; margin-bottom: 8px; }
.jp-scope .othercv-remark-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: #eceff1; color: var(--ok-text);
    display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.jp-scope .othercv-remark.othercv-remark-mine .othercv-remark-avatar { background: rgba(26, 188, 156, .18); color: #1abc9c; }
.jp-scope .othercv-remark-card { flex: 1 1 auto; min-width: 0; background: #fff; border: 1px solid var(--ok-line-2); border-radius: 8px; padding: 8px 12px; }
.jp-scope .othercv-remark-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.jp-scope .othercv-remark-head .othercv-remark-author { font-weight: 600; color: var(--ok-text); }
.jp-scope .othercv-remark-head .othercv-remark-time { color: var(--ok-text-4); font-size: 12px; }
.jp-scope .othercv-remark-head .othercv-remark-del { margin-left: auto; padding: 0 5px; line-height: 1.4; border: 0; background: none; color: var(--ok-text-4); }
.jp-scope .othercv-remark-head .othercv-remark-del:hover { color: #f1556c; }
.jp-scope .othercv-remark-text { font-size: 14px; color: var(--ok-text); white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.jp-scope .othercv-remark-text mark { background: #fcf3cf; padding: 0 1px; }
.jp-scope .othercv-remark-empty { text-align: center; color: var(--ok-text-4); padding: 36px 10px; }
.jp-scope .othercv-remark-empty i { font-size: 34px; display: block; margin-bottom: 4px; }
.jp-scope .othercv-remark-composer { display: block; background: #fff; }
.jp-scope .othercv-remark-quick { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 8px; }
/* -- from jobportal.html <style> lines 5038-5098 -- */
  /* ===== AI Resume Match modal (scoped) ===== */
  .jp-scope #aiResumeMatchModal .ai-full-modal { max-width: 98% !important; margin:auto; }
  .jp-scope #aiResumeMatchModal .modal-body { overflow-y:auto; padding:24px 30px; background:#f6f7ff; }

  .jp-scope #aiResumeMatchModal .ai-rm-header {
    background: lightslategray;
    padding: 18px 26px;
  }
  .jp-scope #aiResumeMatchModal .ai-rm-logo {
    width:46px; height:46px; border-radius:13px; background:rgba(255,255,255,.18);
    display:flex; align-items:center; justify-content:center; font-size:26px;
  }

  .jp-scope #aiResumeMatchModal .min-w-0 { min-width:0; }
  .jp-scope #aiResumeMatchModal .ai-rm-stat {
    display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #eceef4;
    border-radius:12px; padding:12px 16px; height:100%; box-shadow:0 1px 2px rgba(16,24,40,.04);
  }
  .jp-scope #aiResumeMatchModal .ai-rm-stat-ico {
    width:44px; height:44px; border-radius:11px; display:flex; align-items:center;
    justify-content:center; font-size:23px; flex:0 0 auto;
  }
  .jp-scope #aiResumeMatchModal .ai-rm-stat small {
    color:#8a93a6; text-transform:uppercase; font-size:11px; font-weight:600; letter-spacing:.03em;
  }
  .jp-scope #aiResumeMatchModal .ai-rm-stat-val { font-size:18px; font-weight:700; line-height:1.25; }

  .jp-scope #aiResumeMatchModal .bg-soft-primary   { background:#eef0ff !important; }
  .jp-scope #aiResumeMatchModal .bg-soft-success   { background:#e7f7ee !important; }
  .jp-scope #aiResumeMatchModal .bg-soft-info      { background:#e6f6fb !important; }
  .jp-scope #aiResumeMatchModal .bg-soft-secondary { background:#eef0f5 !important; }

  /* Uppy full width */
  .jp-scope #aiResumeMatchModal #uppyUploader { width:100% !important; }
  .jp-scope #aiResumeMatchModal .uppy-Dashboard-inner { width:100% !important; height:380px !important; border-radius:12px; }
  .jp-scope #aiResumeMatchModal .uppy-StatusBar-actions { display:none !important; }

  /* Sticky results toolbar */
  .jp-scope #aiResumeMatchModal .ai-rm-toolbar { position:sticky; top:0; z-index:5; }

  /* Accordion */
  .jp-scope #aiResumeMatchModal .ai-rm-accordion .accordion-item {
    border:1px solid #eceef4; border-radius:10px !important; margin-bottom:10px; overflow:hidden;
  }
  .jp-scope #aiResumeMatchModal .ai-rm-accordion .accordion-button:not(.collapsed) {
    background:#eef0ff; color:#3730a3; box-shadow:none;
  }

  /* Score bars */
  .jp-scope #aiResumeMatchModal .score-bar { width:160px; height:8px; background:#eceef4; border-radius:6px; overflow:hidden; }
  .jp-scope #aiResumeMatchModal .score-bar span { height:100%; width:0; transition:width .6s; display:block; }
  .jp-scope #aiResumeMatchModal .score-bar span.green  { background:#22c55e !important; }
  .jp-scope #aiResumeMatchModal .score-bar span.yellow { background:#f59e0b !important; }
  .jp-scope #aiResumeMatchModal .score-bar span.red    { background:#ef4444 !important; }

  /* Skills matrix table */
  .jp-scope #aiResumeMatchModal .rm-table td, .jp-scope #aiResumeMatchModal .rm-table th { vertical-align:middle; font-size:14px; }
  .jp-scope #aiResumeMatchModal .rm-table .badge { font-size:12px; padding:4px 10px; border-radius:20px; }
  .jp-scope #aiResumeMatchModal .table-responsive { overflow-x:auto; }
/* -- from jobportal.html <style> lines 5426-5441 -- */
                .jp-scope #assigned_modal .ja-hero { padding: 14px 18px; }
                .jp-scope #assigned_modal .ja-hero .dv-hero-mark { width: 44px; height: 44px; font-size: 20px; }
                .jp-scope #assigned_modal .ja-hero .dv-hero-title { font-size: 17px; }
                .jp-scope #assigned_modal .ja-add { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
                .jp-scope #assigned_modal .ja-add .ja-pick { flex: 1 1 320px; min-width: 0; }
                .jp-scope #assigned_modal .ja-add .btn { white-space: nowrap; }
                .jp-scope #assigned_modal .ja-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
                .jp-scope #assigned_modal .ja-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(26, 188, 156, .15); color: #1abc9c;
                    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
                .jp-scope #assigned_modal .ja-user { display: flex; align-items: center; gap: 10px; }
                .jp-scope #assigned_modal .ja-row-new { animation: jaFlash 2s ease-out; }
                @keyframes jaFlash { from { background: rgba(26, 188, 156, .18); } to { background: transparent; } }
                .jp-scope #assigned_modal .ja-list-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
                .jp-scope #assigned_modal #ja_filter { max-width: 220px; }
/* -- from jobportal.html <style> lines 13805-13823 -- */
    /* same look as the WhatsApp page: teal header, rounded card, readable text */
    .jp-scope #whatsapp_communication_tab .modal-dialog { max-width: 860px; }
    .jp-scope #whatsapp_communication_tab .wa-modal { height: 85vh; min-height: 480px; display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 14px; box-shadow: 0 18px 48px rgba(11, 20, 26, .28); }
    .jp-scope #whatsapp_communication_tab .wa-header { height: 72px; padding: 12px 14px 12px 20px; background: linear-gradient(120deg, #008069 0%, #00a884 100%); }
    .jp-scope #whatsapp_communication_tab .wa-header .wa-title { color: #fff; font-size: 18px; font-weight: 700; }
    .jp-scope #whatsapp_communication_tab .wa-header .wa-sub { color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 500; }
    .jp-scope #whatsapp_communication_tab .wa-header .wa-avatar { width: 46px; height: 46px; font-size: 17px; font-weight: 700; background: #fff; color: #008069; }
    .jp-scope #whatsapp_communication_tab .wa-header .wa-icon-btn { color: #fff; }
    .jp-scope #whatsapp_communication_tab .wa-header .wa-icon-btn:hover { background: rgba(255, 255, 255, .16); }
    .jp-scope #whatsapp_communication_tab .jp-wa-stats { display: flex; gap: 6px; margin-right: 8px; }
    .jp-scope #whatsapp_communication_tab .jp-wa-stat { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 14px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
    .jp-scope #whatsapp_communication_tab .jp-wa-stat .mdi { font-size: 15px; }
    .jp-scope #whatsapp_communication_tab .jp-wa-stat.unread { background: #fff; color: #00694f; }
    @media (max-width: 575.98px) { .jp-scope #whatsapp_communication_tab .jp-wa-stats { display: none; } }
    /* View CV grid: unread WhatsApp replies on the row's WhatsApp button */
    .jp-scope .jp-wa-btn { position: relative; overflow: visible !important; }
    .jp-scope .jp-wa-count { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f1556c; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); pointer-events: none; }
/* -- from jobportal.html <style> lines 15037-15202 -- */
    .jp-scope #shortlist-mail-modal .smm-content { border: 0; border-radius: 14px; overflow: hidden; background: #f5f5f5; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); }
    .jp-scope #shortlist-mail-modal .smm-header { padding: 18px 24px; border: 0; align-items: center; }
    .jp-scope #shortlist-mail-modal .smm-header-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 149, 0, .14); color: #c93400; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 12px; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .smm-header .modal-title { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; }
    .jp-scope #shortlist-mail-modal .smm-subtitle { font-size: 12.5px; opacity: .9; margin: 2px 0 0; }
    .jp-scope #shortlist-mail-modal #shortlisted_status { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 500; background: rgba(52, 199, 89, .14); color: #148f77; vertical-align: middle; }
    .jp-scope #shortlist-mail-modal #shortlisted_status:empty { display: none; }
    .jp-scope #shortlist-mail-modal .smm-body { padding: 20px 24px; }
    .jp-scope #shortlist-mail-modal .smm-section { background: #fff; border: 1px solid var(--ok-line-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
    .jp-scope #shortlist-mail-modal .smm-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
    .jp-scope #shortlist-mail-modal .smm-section-title h5 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok-text); display: flex; align-items: center; gap: 8px; }
    .jp-scope #shortlist-mail-modal .smm-step { width: 22px; height: 22px; border-radius: 50%; background: rgba(26, 188, 156, .15); color: #1abc9c; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
    .jp-scope #shortlist-mail-modal .smm-hint { font-size: 12px; color: var(--ok-text-4); margin: 0; }
    .jp-scope #shortlist-mail-modal .form-label { font-size: 12.5px; font-weight: 600; color: var(--ok-text-3); margin-bottom: 5px; }
    .jp-scope #shortlist-mail-modal .form-control { border-radius: 8px; border-color: var(--ok-line); min-height: 38px; }
    .jp-scope #shortlist-mail-modal .form-control:focus { border-color: #b1bbc4; box-shadow: none; }
    .jp-scope #shortlist-mail-modal .input-group-text { border-radius: 0 8px 8px 0; background: #f7f8f9; border-color: var(--ok-line); color: var(--ok-text-4); }
    .jp-scope #shortlist-mail-modal .input-group > .form-control { border-radius: 8px 0 0 8px; }


    /* Job order search filters: checkbox dropdown with search (like the hiring manager picker) */
    .jp-scope select.jp-cs-native, .jp-scope select.jp-cs-native + .select2-container { display: none !important; }
    .jp-scope .jp-cs-select { position: relative; }
    .jp-scope .jp-cs-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: auto; text-align: left; background: #fff; cursor: pointer; padding: 4px 10px; min-height: 38px; }
    .jp-scope .jp-cs-toggle:focus, .jp-scope .jp-cs-select.open .jp-cs-toggle { border-color: #b1bbc4; box-shadow: none; outline: 0; }
    .jp-scope .jp-cs-summary { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
    .jp-scope .jp-cs-placeholder { color: var(--ok-text-4); line-height: 28px; }
    .jp-scope .jp-cs-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: #e8f8f5; border: 1px solid #a3e4d7; color: #148f77; border-radius: 20px; padding: 1px 4px 1px 10px; font-size: 12.5px; font-weight: 500; line-height: 20px; }
    .jp-scope .jp-cs-chip { min-width: 0; }
    .jp-scope .jp-cs-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .jp-scope .jp-cs-chip-remove { border: 0; background: transparent; color: #148f77; width: 18px; height: 18px; border-radius: 50%; padding: 0; line-height: 16px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .jp-scope .jp-cs-chip-remove:hover { background: #1abc9c; color: #fff; }
    .jp-scope .jp-cs-caret { color: var(--ok-text-4); font-size: 20px; transition: transform .15s ease; flex-shrink: 0; }
    .jp-scope .jp-cs-select.open .jp-cs-caret { transform: rotate(180deg); }
    .jp-scope .jp-cs-count { background: #1abc9c; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 600; padding: 1px 7px; flex-shrink: 0; }
    .jp-scope .jp-cs-count:empty { display: none; }
    .jp-scope .jp-cs-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px; z-index: 1060; background: #fff; border: 1px solid var(--ok-line-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); overflow: hidden; }
    .jp-scope .jp-cs-select.open .jp-cs-menu { display: block; }
    .jp-scope .jp-cs-search { position: relative; padding: 10px; border-bottom: 1px solid #eceff1; }
    .jp-scope .jp-cs-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--ok-text-4); font-size: 16px; }
    .jp-scope .jp-cs-search input { padding-left: 34px; }
    .jp-scope .jp-cs-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 12px; color: var(--ok-text-4); border-bottom: 1px solid #eceff1; }
    .jp-scope .jp-cs-tools a { color: #1abc9c; font-weight: 600; cursor: pointer; margin-left: 12px; }
    .jp-scope .jp-cs-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
    .jp-scope .jp-cs-option { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; cursor: pointer; font-weight: 400; color: var(--ok-text); }
    .jp-scope .jp-cs-option:hover { background: #f7f8f9; }
    .jp-scope .jp-cs-option input { margin: 0; flex-shrink: 0; }
    .jp-scope .jp-cs-more, .jp-scope .jp-cs-empty { padding: 10px 12px; text-align: center; color: var(--ok-text-4); font-size: 12.5px; }
    .jp-scope .jp-cs-empty { display: none; }
    /* Hiring manager multi-select dropdown */
    .jp-scope #shortlist-mail-modal .smm-hm-select { position: relative; }
    .jp-scope #shortlist-mail-modal .smm-hm-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: #fff; cursor: pointer; padding: 6px 12px; min-height: 42px; }
    .jp-scope #shortlist-mail-modal .smm-hm-toggle:focus, .jp-scope #shortlist-mail-modal .smm-hm-select.open .smm-hm-toggle { border-color: #b1bbc4; box-shadow: none; outline: 0; }
    .jp-scope #shortlist-mail-modal .smm-hm-summary { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
    .jp-scope #shortlist-mail-modal .smm-hm-placeholder { color: var(--ok-text-4); line-height: 28px; }
    .jp-scope #shortlist-mail-modal .smm-hm-chip { display: inline-flex; align-items: center; gap: 4px; background: #e8f8f5; border: 1px solid #a3e4d7; color: #148f77; border-radius: 20px; padding: 2px 4px 2px 10px; font-size: 12.5px; font-weight: 500; line-height: 20px; }
    .jp-scope #shortlist-mail-modal .smm-hm-chip-remove { border: 0; background: transparent; color: #148f77; width: 18px; height: 18px; border-radius: 50%; padding: 0; line-height: 16px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
    .jp-scope #shortlist-mail-modal .smm-hm-chip-remove:hover { background: #1abc9c; color: #fff; }
    .jp-scope #shortlist-mail-modal .smm-hm-caret { color: var(--ok-text-4); font-size: 20px; transition: transform .15s ease; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .smm-hm-select.open .smm-hm-caret { transform: rotate(180deg); }
    .jp-scope #shortlist-mail-modal .smm-hm-count { background: #1abc9c; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 600; padding: 1px 7px; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .smm-hm-count:empty { display: none; }
    .jp-scope #shortlist-mail-modal .smm-hm-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1060; background: #fff; border: 1px solid var(--ok-line-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); overflow: hidden; }
    .jp-scope #shortlist-mail-modal .smm-hm-select.open .smm-hm-menu { display: block; }
    .jp-scope #shortlist-mail-modal .smm-hm-search { position: relative; padding: 10px; border-bottom: 1px solid #eceff1; }
    .jp-scope #shortlist-mail-modal .smm-hm-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--ok-text-4); font-size: 16px; }
    .jp-scope #shortlist-mail-modal .smm-hm-search input { padding-left: 34px; }
    .jp-scope #shortlist-mail-modal .smm-hm-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 12px; color: var(--ok-text-4); border-bottom: 1px solid #eceff1; }
    .jp-scope #shortlist-mail-modal .smm-hm-tools a { color: #1abc9c; font-weight: 600; cursor: pointer; margin-left: 12px; }
    .jp-scope #shortlist-mail-modal .smm-hm-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
    .jp-scope #shortlist-mail-modal .smm-hm-empty { display: none; padding: 14px; text-align: center; color: var(--ok-text-4); font-size: 13px; }
    .jp-scope #shortlist-mail-modal #shortlist, .jp-scope #shortlist-mail-modal #shortlist tbody { display: block; width: 100%; margin: 0; }
    .jp-scope #shortlist-mail-modal #shortlist thead { display: none; }
    .jp-scope #shortlist-mail-modal #table_pic_list tr { display: flex; align-items: center; position: relative; padding: 8px 14px; cursor: pointer; transition: background .12s ease; }
    .jp-scope #shortlist-mail-modal #table_pic_list tr:hover { background: #f0faf8; }
    .jp-scope #shortlist-mail-modal #table_pic_list tr:has(input:checked) { background: #e8f8f5; }
    .jp-scope #shortlist-mail-modal #table_pic_list td { border: 0 !important; padding: 0 !important; background: transparent !important; width: auto !important; font-size: 13.5px; color: var(--ok-text); }
    .jp-scope #shortlist-mail-modal #table_pic_list tr:has(input:checked) td { font-weight: 600; }
    .jp-scope #shortlist-mail-modal #table_pic_list .chklabel { margin: 0 10px 0 0; display: flex; cursor: pointer; }
    .jp-scope #shortlist-mail-modal #table_pic_list .chklabel::after { content: ''; position: absolute; inset: 0; }
    .jp-scope #shortlist-mail-modal #table_pic_list .form-check-input { margin: 0; cursor: pointer; }
    .jp-scope #shortlist-mail-modal #table_pic_list .form-check-input:checked { background-color: #1abc9c; border-color: #1abc9c; }
    .jp-scope #shortlist-mail-modal #table_pic_list td[colspan] { flex: 1; text-align: center; color: var(--ok-text-4); }
    .jp-scope #shortlist-mail-modal #table_pic_list tr:has(td[colspan]) { cursor: default; background: transparent; }

    /* Interview mode toggle cards */
    .jp-scope #shortlist-mail-modal .smm-mode-group { display: flex; gap: 10px; flex-wrap: wrap; }
    .jp-scope #shortlist-mail-modal .smm-mode { flex: 1 1 180px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--ok-line-2); border-radius: 10px; cursor: pointer; background: #fff; transition: all .15s ease; }
    .jp-scope #shortlist-mail-modal .smm-mode:hover { border-color: #b1bbc4; }
    .jp-scope #shortlist-mail-modal .smm-mode:has(input:checked) { border-color: #1abc9c; background: #f0faf8; }
    .jp-scope #shortlist-mail-modal .smm-mode .form-check-input { margin: 0; flex-shrink: 0; cursor: pointer; }
    .jp-scope #shortlist-mail-modal .smm-mode .form-check-input:checked { background-color: #1abc9c; border-color: #1abc9c; }
    .jp-scope #shortlist-mail-modal .smm-mode-icon { width: 36px; height: 36px; border-radius: 8px; background: #eceff1; color: var(--ok-text-3); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
    .jp-scope #shortlist-mail-modal .smm-mode:has(input:checked) .smm-mode-icon { background: #1abc9c; color: #fff; }
    .jp-scope #shortlist-mail-modal .smm-mode-text strong { display: block; font-size: 13.5px; color: var(--ok-text); }
    .jp-scope #shortlist-mail-modal .smm-mode-text small { color: var(--ok-text-4); }

    /* Slots */
    .jp-scope #shortlist-mail-modal .form-switch .form-check-input { width: 2.6em; height: 1.35em; cursor: pointer; margin: 0; float: none; }
    .jp-scope #shortlist-mail-modal .form-switch .form-check-input:checked { background-color: #1abc9c; border-color: #1abc9c; }
    .jp-scope #shortlist-mail-modal .form-switch { display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 0; min-height: 0; }
    .jp-scope #shortlist-mail-modal .smm-slot-list .other_cost_condition { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; padding: 10px 12px; background: #f7f8f9; border: 1px solid #eceff1; border-radius: 10px; }
    .jp-scope #shortlist-mail-modal .smm-slot-list .other_cost_condition > * { width: auto; max-width: none; padding: 0; margin: 0; }
    .jp-scope #shortlist-mail-modal .smm-slot-list .other_cost_condition .smm-slot-no { width: 28px; height: 28px; border-radius: 50%; background: rgba(26, 188, 156, .15); color: #1abc9c; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .smm-slot-list .other_cost_condition .smm-slot-input { flex: 1; min-width: 0; }
    .jp-scope #shortlist-mail-modal .smm-slot-list .other_cost_condition .smm-slot-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .acceptdateshow:empty { display: none; }
    .jp-scope #shortlist-mail-modal .smm-section:has(#chk_clienr_available_slot:checked) .smm-slot-off { display: none; }
    .jp-scope #shortlist-mail-modal .other_cost_delete-condition { width: 36px; height: 36px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
    .jp-scope #shortlist-mail-modal .smm-add-slot { border-radius: 8px; font-size: 13px; padding: 5px 12px; }

    .jp-scope #shortlist-mail-modal .smm-doc-box { min-height: 38px; height: auto; margin: 0; background: #f7f8f9; font-size: 12.5px; font-weight: 500; color: var(--ok-text-3); }
    .jp-scope #shortlist-mail-modal textarea.form-control { resize: vertical; min-height: 38px; }
    .jp-scope #shortlist-mail-modal .smm-notify-group, .jp-scope #edit-email-to-lead-modal .smm-notify-group, .jp-scope #edit-email-modal .smm-notify-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
    .jp-scope #shortlist-mail-modal .smm-notify-card, .jp-scope #edit-email-to-lead-modal .smm-notify-card, .jp-scope #edit-email-modal .smm-notify-card { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--ok-line-2); border-radius: 10px; background: #fff; cursor: pointer; transition: all .15s ease; }
    .jp-scope #shortlist-mail-modal .smm-notify-card:hover, .jp-scope #edit-email-to-lead-modal .smm-notify-card:hover, .jp-scope #edit-email-modal .smm-notify-card:hover { border-color: #b1bbc4; }
    .jp-scope #shortlist-mail-modal .smm-notify-card:has(input:checked), .jp-scope #edit-email-to-lead-modal .smm-notify-card:has(input:checked), .jp-scope #edit-email-modal .smm-notify-card:has(input:checked) { border-color: #1abc9c; background: #f0faf8; }
    .jp-scope #shortlist-mail-modal .smm-notify-card .form-check-input, .jp-scope #edit-email-to-lead-modal .smm-notify-card .form-check-input, .jp-scope #edit-email-modal .smm-notify-card .form-check-input { margin: 0; float: none; flex-shrink: 0; cursor: pointer; }
    .jp-scope #shortlist-mail-modal .smm-notify-card .form-check-input:checked, .jp-scope #edit-email-to-lead-modal .smm-notify-card .form-check-input:checked, .jp-scope #edit-email-modal .smm-notify-card .form-check-input:checked { background-color: #1abc9c; border-color: #1abc9c; }
    .jp-scope #shortlist-mail-modal .smm-notify-icon, .jp-scope #edit-email-to-lead-modal .smm-notify-icon, .jp-scope #edit-email-modal .smm-notify-icon { width: 36px; height: 36px; border-radius: 8px; background: #eceff1; color: var(--ok-text-3); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .jp-scope #shortlist-mail-modal .smm-notify-card:has(input:checked) .smm-notify-icon, .jp-scope #edit-email-to-lead-modal .smm-notify-card:has(input:checked) .smm-notify-icon, .jp-scope #edit-email-modal .smm-notify-card:has(input:checked) .smm-notify-icon { background: #1abc9c; color: #fff; }
    .jp-scope #shortlist-mail-modal .smm-notify-text strong, .jp-scope #edit-email-to-lead-modal .smm-notify-text strong, .jp-scope #edit-email-modal .smm-notify-text strong { display: block; font-size: 13.5px; color: var(--ok-text); }
    .jp-scope #shortlist-mail-modal .smm-notify-text small, .jp-scope #edit-email-to-lead-modal .smm-notify-text small, .jp-scope #edit-email-modal .smm-notify-text small { color: var(--ok-text-4); }
    .jp-scope #shortlist-mail-modal .smm-tag, .jp-scope #edit-email-to-lead-modal .smm-tag, .jp-scope #edit-email-modal .smm-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 600; background: rgba(26, 188, 156, .18); color: #148f77; vertical-align: middle; }
    .jp-scope #shortlist-mail-modal .smm-tag-muted, .jp-scope #edit-email-to-lead-modal .smm-tag-muted, .jp-scope #edit-email-modal .smm-tag-muted { background: #eceff1; color: var(--ok-text-4); }
    .jp-scope #shortlist-mail-modal .smm-wa, .jp-scope #edit-email-to-lead-modal .smm-wa, .jp-scope #edit-email-modal .smm-wa, .jp-scope #individual-whatsapp-modal .smm-wa, .jp-scope #bulk-whatsapp-modal .smm-wa { display: none; border: 1px solid var(--ok-line-2); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
    .jp-scope #shortlist-mail-modal .smm-wa.show, .jp-scope #edit-email-to-lead-modal .smm-wa.show, .jp-scope #edit-email-modal .smm-wa.show, .jp-scope #individual-whatsapp-modal .smm-wa.show, .jp-scope #bulk-whatsapp-modal .smm-wa.show { display: block; }
    .jp-scope #shortlist-mail-modal .smm-wa-head, .jp-scope #edit-email-to-lead-modal .smm-wa-head, .jp-scope #edit-email-modal .smm-wa-head, .jp-scope #individual-whatsapp-modal .smm-wa-head, .jp-scope #bulk-whatsapp-modal .smm-wa-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #f7f8f9; border-bottom: 1px solid var(--ok-line-2); }
    .jp-scope #shortlist-mail-modal .smm-wa-title, .jp-scope #edit-email-to-lead-modal .smm-wa-title, .jp-scope #edit-email-modal .smm-wa-title, .jp-scope #individual-whatsapp-modal .smm-wa-title, .jp-scope #bulk-whatsapp-modal .smm-wa-title { font-size: 13.5px; font-weight: 600; color: var(--ok-text); }
    .jp-scope #shortlist-mail-modal .smm-wa-title .mdi-whatsapp, .jp-scope #edit-email-to-lead-modal .smm-wa-title .mdi-whatsapp, .jp-scope #edit-email-modal .smm-wa-title .mdi-whatsapp, .jp-scope #individual-whatsapp-modal .smm-wa-title .mdi-whatsapp, .jp-scope #bulk-whatsapp-modal .smm-wa-title .mdi-whatsapp { color: #1abc9c; }
    .jp-scope #shortlist-mail-modal .smm-wa-template, .jp-scope #edit-email-to-lead-modal .smm-wa-template, .jp-scope #edit-email-modal .smm-wa-template, .jp-scope #individual-whatsapp-modal .smm-wa-template, .jp-scope #bulk-whatsapp-modal .smm-wa-template { font-weight: 400; color: var(--ok-text-4); font-size: 12px; margin-left: 4px; }
    .jp-scope #shortlist-mail-modal .smm-wa-to, .jp-scope #edit-email-to-lead-modal .smm-wa-to, .jp-scope #edit-email-modal .smm-wa-to, .jp-scope #individual-whatsapp-modal .smm-wa-to, .jp-scope #bulk-whatsapp-modal .smm-wa-to { font-size: 12px; color: var(--ok-text-3); margin-top: 2px; }
    .jp-scope #shortlist-mail-modal .smm-wa-alert, .jp-scope #edit-email-to-lead-modal .smm-wa-alert, .jp-scope #edit-email-modal .smm-wa-alert, .jp-scope #individual-whatsapp-modal .smm-wa-alert, .jp-scope #bulk-whatsapp-modal .smm-wa-alert { display: none; padding: 8px 14px; font-size: 12.5px; background: #fff8e6; color: #8a6100; border-bottom: 1px solid #f5e3b3; }
    .jp-scope #shortlist-mail-modal .smm-wa-alert.show, .jp-scope #edit-email-to-lead-modal .smm-wa-alert.show, .jp-scope #edit-email-modal .smm-wa-alert.show, .jp-scope #individual-whatsapp-modal .smm-wa-alert.show, .jp-scope #bulk-whatsapp-modal .smm-wa-alert.show { display: block; }
    .jp-scope #shortlist-mail-modal .smm-wa-chat, .jp-scope #edit-email-to-lead-modal .smm-wa-chat, .jp-scope #edit-email-modal .smm-wa-chat, .jp-scope #individual-whatsapp-modal .smm-wa-chat, .jp-scope #bulk-whatsapp-modal .smm-wa-chat { background: #f5f5f5; padding: 14px; max-height: 260px; overflow-y: auto; }
    .jp-scope #shortlist-mail-modal .smm-wa-bubble, .jp-scope #edit-email-to-lead-modal .smm-wa-bubble, .jp-scope #edit-email-modal .smm-wa-bubble, .jp-scope #individual-whatsapp-modal .smm-wa-bubble, .jp-scope #bulk-whatsapp-modal .smm-wa-bubble { position: relative; max-width: 520px; background: #e8f8f5; border: 1px solid #c9eee6; color: var(--ok-text); border-radius: 0 10px 10px 10px; padding: 10px 12px; font-size: 13px; line-height: 1.55; white-space: normal; word-break: break-word; }
    .jp-scope #shortlist-mail-modal .smm-wa-bubble.loading, .jp-scope #edit-email-to-lead-modal .smm-wa-bubble.loading, .jp-scope #edit-email-modal .smm-wa-bubble.loading, .jp-scope #individual-whatsapp-modal .smm-wa-bubble.loading, .jp-scope #bulk-whatsapp-modal .smm-wa-bubble.loading { opacity: .55; }
    .jp-scope #individual-whatsapp-modal .wa-template-note, .jp-scope #bulk-whatsapp-modal .wa-template-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--ok-text-4); }
    .jp-scope #individual-whatsapp-modal .smm-wa-to, .jp-scope #bulk-whatsapp-modal .smm-wa-to { white-space: normal; word-break: break-word; }
    /* Applicant Track Details */
    .jp-scope #existing_candidate_modal .act-subtitle { margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .75); }
    .jp-scope #existing_candidate_modal .act-hint { margin: 0 0 10px; font-size: 12.5px; color: var(--ok-text-4); }
    .jp-scope #existing_candidate_modal .act-table-wrap { border: 1px solid var(--ok-line-2); border-radius: 8px; max-height: 60vh; overflow: auto; }
    .jp-scope #existing_candidate_modal .act-table { font-size: 13.5px; color: var(--ok-text); }
    .jp-scope #existing_candidate_modal .act-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ok-surface-2); color: var(--ok-text-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; border-bottom: 1px solid var(--ok-line-2); padding: 9px 12px; }
    .jp-scope #existing_candidate_modal .act-table td { padding: 9px 12px; border-color: #f1f3f5; vertical-align: middle; }
    .jp-scope #existing_candidate_modal .act-table tr.act-current > td { background: #f0fbf8; }
    .jp-scope #existing_candidate_modal .act-status { background: #eef2f7; color: var(--ok-text); font-weight: 600; font-size: 12px; padding: 4px 9px; border-radius: 12px; white-space: normal; text-align: left; }

    .jp-scope #shortlist-mail-modal .smm-footer { background: #fff; border-top: 1px solid var(--ok-line-2); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .jp-scope #shortlist-mail-modal .smm-footer-previews, .jp-scope #shortlist-mail-modal .smm-footer-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .jp-scope #shortlist-mail-modal .smm-footer .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; margin: 0; font-weight: 500; min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
    .jp-scope #shortlist-mail-modal .smm-footer-actions .btn { min-width: 130px; }
    .jp-scope #shortlist-mail-modal .smm-footer .btn:disabled { opacity: .5; cursor: not-allowed; }

    @media (max-width: 575.98px) {
        .jp-scope #shortlist-mail-modal .smm-footer { flex-direction: column; align-items: stretch; }
        .jp-scope #shortlist-mail-modal .smm-footer-previews, .jp-scope #shortlist-mail-modal .smm-footer-actions { width: 100%; }
        .jp-scope #shortlist-mail-modal .smm-footer .btn { flex: 1 1 auto; min-width: 0; }
    }

    @media (max-width: 991.98px) {
        .jp-scope #shortlist-mail-modal .modal-dialog { max-width: 100% !important; }
    }

/* ---- 4ar part 2: theme layout ----
   #jobportal_page (one id) out-ranks the .jp-scope rules of part 1, so these win without !important
   except where part 1 itself used it. Panels become .an-card look, heads the .an-head look, tiles the
   .pl-stat look; buttons the .ok-btn look. Status colours (green / amber / red counts) are left alone. */

/* page head (.pl-head inside the old .page-title-box) */
#jobportal_page .page-title-box { padding: 0; margin: 0; background: none; }
#jobportal_page .jp-head { margin-bottom: 20px; }
#jobportal_page .jp-head #gift_div:empty { display: none !important; }

/* panels -> white 16px cards (Dashboard Summary, My Performance, CV status, Search, Job Orders, status chips) */
#jobportal_page :is(.card-borders, .mp-card) { background: var(--ok-surface); border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-lg);
    box-shadow: var(--ok-shadow); margin-bottom: var(--ok-gap) !important; }
#jobportal_page :is(.card-borders, .mp-card):not(.dashboard-search):not(.jo-panel) { overflow: hidden; }
#jobportal_page #jo_status_panel { background: var(--ok-surface); }
#jobportal_page #jo_status_panel .jo-status-body { padding: 12px 16px; }

/* panel heads -> .an-head: no tinted strip, icon tile, small uppercase title */
#jobportal_page :is(.card-borders, .mp-card) > :is(.mp-head, .dashboard-filter) { min-height: 0; padding: 18px 20px 12px; background: transparent;
    border-bottom: 0; border-radius: 0; }
#jobportal_page .dashboard-search.is-collapsed > .mp-head, #jobportal_page .jo-panel > .mp-head:only-child { padding-bottom: 18px; }
#jobportal_page .mp-head-title > i { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 17px; }
#jobportal_page :is(.mp-head-title h5, #cv_status_date_filter_card .filter-label .form-label) { margin: 0; font-family: var(--ok-font); font-size: var(--ok-fs-xs) !important;
    font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4) !important; }
#jobportal_page .mp-head-sub { font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#jobportal_page :is(.card-borders, .mp-card) > .mp-body { padding: 4px 20px 20px; }
#jobportal_page .jo-panel .mp-head-title .joborder-pagesize { border-left-color: var(--ok-line-2); color: var(--ok-text-3); }
#jobportal_page .jo-panel .mp-head-title .joborder-pagesize select,
#jobportal_page #dd_summary_year { height: 32px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); color: var(--ok-text); }

/* head / filter buttons -> .ok-btn (neutral) and the gradient primary */
#jobportal_page :is(.mp-head-filter .btn, .filter-btn, .filter-btn-text, .jo-list-actions .btn, .jo-search-actions .btn, .mp-collapse-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; margin: 0;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text);
    font-family: var(--ok-font); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); transition: background var(--ok-t), filter var(--ok-t); }
#jobportal_page :is(.mp-head-filter .btn, .filter-btn, .filter-btn-text, .jo-list-actions .btn, .jo-search-actions .btn, .mp-collapse-btn) i { margin: 0 !important; color: var(--ok-text-3); }
#jobportal_page :is(.mp-head-filter .btn, .filter-btn-text, .jo-list-actions .btn, .jo-search-actions .btn, .mp-collapse-btn):hover { background: var(--ok-surface-2); color: var(--ok-text); border-color: var(--ok-line); }
#jobportal_page .filter-btn, #jobportal_page .mp-collapse-btn { width: 36px; padding: 0; }
#jobportal_page :is(#btn_count_action, #btn_count_action2, #btn_my_performance_filter, #add_new_joborder) {
    border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#jobportal_page :is(#btn_count_action, #btn_count_action2, #btn_my_performance_filter, #add_new_joborder) i { color: #fff; }
#jobportal_page :is(#btn_count_action, #btn_count_action2, #btn_my_performance_filter, #add_new_joborder):hover { background: var(--ok-grad); color: #fff; filter: brightness(1.06); }
#jobportal_page .jo-search-actions #btn_refresh_action { background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text); }
#jobportal_page .jo-search-actions #btn_refresh_action:hover { background: var(--ok-surface-2); color: var(--ok-text); border-color: var(--ok-line); }
#jobportal_page .filter-btn-text i, #jobportal_page #btn_jd_analyser i { color: var(--ok-blue); }
#jobportal_page .jo-list-actions { gap: 8px; }

/* date range inputs in heads / filter bars -> .pl-range look */
#jobportal_page :is(.filter-date .form-control, .mp-head-filter .form-control) { height: 36px; padding-left: 12px; border: 1px solid var(--ok-line); border-radius: var(--ok-r);
    background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); cursor: pointer; }

/* Search panel fields -> .pl-filter look */
#jobportal_page .dashboard-search .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs) !important; font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4) !important; }
#jobportal_page .dashboard-search :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
#jobportal_page .dashboard-search :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#jobportal_page .dashboard-search .select2-container .select2-selection { border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#jobportal_page .dashboard-search :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#jobportal_page .dashboard-search .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important; color: var(--ok-text-2) !important;
    border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
#jobportal_page .dashboard-search .jo-search-actions { border-top-color: var(--ok-line-2); }
#jobportal_page .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }

/* summary tiles (#unfilter_info_div .summary-card) and status tiles (.status-card) -> .pl-stat look */
#jobportal_page .dashboard-summary { gap: 12px; }
#jobportal_page :is(.summary-card, .status-card) { position: relative; overflow: hidden; min-height: 64px; padding: 14px 16px 12px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--jp-accent, var(--ok-blue)) 6%, var(--ok-surface)) 0%, var(--ok-surface) 65%);
    border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: var(--ok-shadow-xs);
    transition: transform var(--ok-t) var(--ok-ease), box-shadow var(--ok-t); }
#jobportal_page :is(.summary-card, .status-card)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--jp-accent, var(--ok-blue)); }
/* summary tiles get --jp-accent inline from jobportal.js; status tiles take it from the colour of their count */
#jobportal_page .status-card:has(.text-primary)   { --jp-accent: var(--ok-blue); }
#jobportal_page .status-card:has(.text-info)      { --jp-accent: var(--ok-teal); }
#jobportal_page .status-card:has(.text-success)   { --jp-accent: var(--ok-green); }
#jobportal_page .status-card:has(.text-warning)   { --jp-accent: var(--ok-orange); }
#jobportal_page .status-card:has(.text-danger)    { --jp-accent: var(--ok-red); }
#jobportal_page .status-card:has(.text-pink)      { --jp-accent: var(--ok-pink); }
#jobportal_page .status-card:has(.text-purple)    { --jp-accent: var(--ok-purple); }
#jobportal_page .status-card:has(.text-secondary) { --jp-accent: var(--ok-gray); }
#jobportal_page :is(.summary-card, .status-card):hover { border-color: var(--ok-line-2); transform: translateY(-2px); box-shadow: var(--ok-shadow-lg); }
#jobportal_page :is(.summary-title, .status-title) { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ok-text-4); }
#jobportal_page .summary-value { font-family: var(--ok-font-display); font-size: 22px; color: var(--ok-text); font-variant-numeric: tabular-nums; }
#jobportal_page .summary-value i { color: var(--ok-blue); }
#jobportal_page .status-count { font-family: var(--ok-font-display); font-size: 24px; font-variant-numeric: tabular-nums; }

/* My Performance small stats + job order mini table */
#jobportal_page .mp-stat { border-color: var(--ok-line-2); border-radius: 12px; background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#jobportal_page .mp-stat-count { color: var(--ok-text); }
#jobportal_page .mp-stat-label { color: var(--ok-text-3); }
#jobportal_page .mp-section h6 { font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#jobportal_page .mp-trend-card { border-color: var(--ok-line-2); border-radius: 14px; }
#jobportal_page .mp-trend-view.btn-group { padding: 3px; gap: 2px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
#jobportal_page .mp-trend-view.btn-group > .btn { height: 26px; border: 0; border-radius: var(--ok-r-sm) !important; background: transparent; color: var(--ok-text-4); font-weight: 600; box-shadow: none; }
#jobportal_page .mp-trend-view.btn-group > .btn.active { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }

/* job order cards (#joborder_list .jo-card, built in jobportal.js) */
#jobportal_page .jo-card { border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface); box-shadow: var(--ok-shadow-xs);
    transition: box-shadow var(--ok-t), border-color var(--ok-t); }
#jobportal_page .jo-card:hover { border-color: rgba(0, 122, 255, .30); box-shadow: var(--ok-shadow); }
#jobportal_page .jo-card:not(.jo-card-priority) { border-left: 4px solid var(--ok-blue); }
#jobportal_page .jo-card.jo-card-priority { border-left: 4px solid var(--ok-orange); }
#jobportal_page .jo-card-head { background: var(--ok-surface-2); border-bottom-color: var(--ok-line-2); border-radius: 13px 13px 0 0; }
#jobportal_page .jo-no { background: rgba(0, 122, 255, .10); color: var(--ok-blue); border-radius: var(--ok-r-pill); padding: .2rem .65rem; }
#jobportal_page .jo-title { font-family: var(--ok-font-display); color: var(--ok-text); }
#jobportal_page .joborder-pager { margin-top: 14px; }

/* ---- job order card: buttons and icons, calmer pass ----
   Every action is a white button with its colour on the icon only (set per Bootstrap class as --jt); the counts sit inside
   the button as a tinted pill instead of a badge on the corner. Add CV stays the one filled button. The side column reads
   as a list of rows with a tinted icon tile, and the five icons below it become one segmented bar. */
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn)               { --jt: var(--ok-blue); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-primary   { --jt: var(--ok-indigo); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-info      { --jt: var(--ok-teal); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-success   { --jt: var(--ok-green); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-warning   { --jt: var(--ok-orange); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-secondary { --jt: var(--ok-gray); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-dark      { --jt: var(--ok-text-2); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn).btn-pink      { --jt: var(--ok-pink); }

#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn, .jo-side-btn.nav-link):not(.jo-btn-main) {
    background: var(--ok-surface); border: 1px solid var(--ok-line); color: var(--ok-text-2); box-shadow: var(--ok-shadow-xs);
    transition: background var(--ok-t), border-color var(--ok-t), color var(--ok-t); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn):not(.jo-btn-main) i { color: var(--jt); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn, .jo-side-btn.nav-link):not(.jo-btn-main):not(:disabled):is(:hover, :focus-visible, .show) {
    background: color-mix(in srgb, var(--jt) 8%, var(--ok-surface)); border-color: color-mix(in srgb, var(--jt) 45%, transparent); color: var(--ok-text); }
#jobportal_page .jo-card :is(.jo-btn, .jo-side-btn):disabled { opacity: .55; box-shadow: none; background: var(--ok-surface-2); }

/* top buttons: one height, counts inline */
#jobportal_page .jo-card .jo-head-actions .jo-btn { height: 30px; padding: 0 .55rem; gap: .3rem; border-radius: var(--ok-r-sm); font-size: .74rem; }
#jobportal_page .jo-card .jo-head-actions .jo-btn i { margin: 0; font-size: .9rem; }
#jobportal_page .jo-card .jo-head-actions .jo-btn .psq-badge { position: static; min-width: 18px; height: 17px; padding: 0 5px; margin-left: .1rem; border-radius: var(--ok-r-pill);
    line-height: 17px; font-size: 10px; box-shadow: none; background: color-mix(in srgb, var(--jt) 14%, var(--ok-surface)); color: var(--jt); }
#jobportal_page .jo-card .jo-head-actions .jo-btn .psq-badge.psq-zero { background: var(--ok-fill); color: var(--ok-text-4); }
#jobportal_page .jo-card .jo-btn.jo-btn-main { height: 30px; border: 0; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#jobportal_page .jo-card .jo-btn.jo-btn-main:hover { background: var(--ok-grad-hover); color: #fff; }
#jobportal_page .jo-card .jo-btn.jo-btn-main i { color: #fff; }
/* Priority: the label is the switch - filled orange while ticked */
#jobportal_page .jo-card .jo-priority .form-check-input { width: .85rem; height: .85rem; border-color: color-mix(in srgb, var(--ok-orange) 60%, transparent); }
#jobportal_page .jo-card .jo-priority .form-check-input:checked { background-color: var(--ok-orange); border-color: var(--ok-orange); }
#jobportal_page .jo-card .jo-priority:has(input:checked) { background: color-mix(in srgb, var(--ok-orange) 14%, var(--ok-surface)); border-color: color-mix(in srgb, var(--ok-orange) 50%, transparent); color: #a35200; }
/* Published (btn-success on Publish) reads as a state */
#jobportal_page .jo-card .jo-head-actions .jo-btn.btn-success#btn_publish { background: color-mix(in srgb, var(--ok-green) 10%, var(--ok-surface)); border-color: color-mix(in srgb, var(--ok-green) 35%, transparent); color: #248a3d; }

/* side column: list rows with a tinted icon tile */
#jobportal_page .jo-card .jo-side { gap: .4rem; }
#jobportal_page .jo-card .jo-side-btn, #jobportal_page .jo-card .jo-side-btn.nav-link { height: 36px; padding: 0 .45rem 0 .35rem; border-radius: var(--ok-r); font-size: .8rem; font-weight: 600; }
#jobportal_page .jo-card .jo-side-btn > span:first-child { display: inline-flex; align-items: center; min-width: 0; }
#jobportal_page .jo-card .jo-side-btn > span:first-child i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; margin-right: .55rem;
    border-radius: var(--ok-r-sm); background: color-mix(in srgb, var(--jt) 12%, var(--ok-surface)); font-size: .8rem; }
#jobportal_page .jo-card .jo-side-btn .jo-pill { min-width: 24px; padding: 0 7px; line-height: 19px; border-radius: var(--ok-r-pill); font-size: .72rem; box-shadow: none;
    background: color-mix(in srgb, var(--jt) 14%, var(--ok-surface)); color: var(--jt); }
#jobportal_page .jo-card .jo-side-btn:disabled .jo-pill { background: var(--ok-fill); color: var(--ok-text-4); }
#jobportal_page .jo-card .jo-side-btn > .mdi-chevron-down { color: var(--ok-text-4) !important; transition: transform var(--ok-t); }
#jobportal_page .jo-card .jo-side-btn.show > .mdi-chevron-down { transform: rotate(180deg); }
#jobportal_page .jo-card .jo-side .status { margin-top: .1rem; padding-top: .45rem; border-top: 1px dashed var(--ok-line); }

/* the five icons (QR, view, client, edit, delete) -> one segmented bar */
#jobportal_page .jo-card .jo-side .jo-icon-actions { display: flex; flex-wrap: nowrap; gap: 0; margin-top: .1rem; overflow: hidden;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon { flex: 1 1 0; width: auto; height: 32px; border: 0; border-left: 1px solid var(--ok-line-2); border-radius: 0;
    background: transparent; font-size: .95rem; color: var(--ok-text-3); transition: background var(--ok-t); }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon:first-child { border-left: 0; }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon:hover { background: var(--ok-surface-2); }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon:has(.text-danger):hover { background: color-mix(in srgb, var(--ok-red) 8%, var(--ok-surface)); }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon i { transition: transform var(--ok-t); }
#jobportal_page .jo-card .jo-side .jo-icon-actions .action-icon:hover i { transform: scale(1.12); }

/* status dropdown on the card */
#jobportal_page .jo-status-menu { border-color: var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); padding: .3rem; }
#jobportal_page .jo-status-menu .jo-st-item { border-radius: var(--ok-r-sm); }

/* ---- Share Job Order popup (#generate_qqrcode_modal, QR icon on the card) ---- */
#jobportal_page .qr-dialog { max-width: 440px; }
#jobportal_page .qr-hero { padding: 14px 16px; margin-bottom: 14px; }
#jobportal_page .qr-hero .dv-hero-mark { width: 42px; height: 42px; font-size: 22px; }
#jobportal_page .qr-hero .dv-hero-title { font-size: 17px; }
#jobportal_page .qr-hero .dv-hero-sub { margin: 2px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .3px; opacity: .75; }
#jobportal_page .qr-frame { display: flex; align-items: center; justify-content: center; min-height: 236px; padding: 10px; margin: 0 auto; width: 236px;
    border: 1px solid var(--ok-line-2); border-radius: 14px; background: #fff; box-shadow: var(--ok-shadow-xs); }
#jobportal_page .qr-frame center { display: contents; }
#jobportal_page .qr-frame img { display: block; width: 214px; height: 214px; image-rendering: pixelated; }
#jobportal_page .qr-loading { display: flex; align-items: center; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#jobportal_page .qr-hint { margin: 10px 0 14px; text-align: center; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#jobportal_page .qr-label { display: block; margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#jobportal_page .qr-link .form-control { height: 36px; font-size: var(--ok-fs-sm); color: var(--ok-text-2); background: var(--ok-surface-2); }
#jobportal_page .qr-link #copyBtn { min-width: 92px; border-radius: 0 var(--ok-r) var(--ok-r) 0; }
#jobportal_page .qr-link #copyBtn.qr-copied { background: var(--ok-green); }
#jobportal_page #generate_qqrcode_modal .modal-footer .btn { display: inline-flex; align-items: center; }
#jobportal_page #generate_qqrcode_modal .modal-footer .btn.disabled { opacity: .5; pointer-events: none; }

/* ---- Add / Update Job Order (#full-width-modal) and Add / Update CV (#submitcv-modal): layout pass ----
   CSS only - fields, ids and the save flow are unchanged. Light header card instead of the dark one, the tab bar as a
   segmented control that stays at the top while the form scrolls, section cards with a tinted icon tile and a blue
   accent, blue focus ring, and the Save / Cancel row pinned to the bottom of the screen. */
/* overflow: clip, not hidden - hidden would make the content box the scroller and stop the pinned header / tabs / buttons */
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content { background: var(--ok-bg, #f5f6fa); overflow: clip !important; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-header { position: sticky; top: 0; z-index: 6; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-body { background: transparent; padding: 18px 22px 8px; }

/* header card */
#jobportal_page :is(#jo_form_hero, #cv_form_hero) { position: relative; overflow: hidden; margin-bottom: 14px; padding: 16px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ok-blue) 7%, var(--ok-surface)) 0%, var(--ok-surface) 60%);
    border: 1px solid var(--ok-line-2); border-radius: 14px; color: var(--ok-text); box-shadow: var(--ok-shadow-xs); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok-grad); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-hero-top { align-items: center; }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-hero-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--ok-grad); color: #fff; font-size: 20px;
    box-shadow: var(--ok-shadow-primary); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-hero-title { font-family: var(--ok-font-display); font-size: 19px; font-weight: 700; color: var(--ok-text); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-hero-sub { margin-top: 2px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-hero-sub:empty { display: none; }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-badge { padding: 4px 11px; font-size: 12px; border: 1px solid rgba(0, 122, 255, .22); background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .dv-badge-muted { border-color: var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .jo-hero-hint { margin: 10px 0 0; color: var(--ok-text-3); font-size: var(--ok-fs-sm); }
#jobportal_page :is(#jo_form_hero, #cv_form_hero) .jo-hero-hint:empty { display: none; }

/* tabs: segmented control, pinned under the popup title while scrolling */
#jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs { position: sticky; top: 58px; z-index: 5; margin-bottom: 14px !important; padding: 4px; gap: 4px;
    background: var(--ok-fill); border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .25); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs .nav-link { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; letter-spacing: 0; color: var(--ok-text-3); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs .nav-link:hover { background: rgba(255, 255, 255, .6); color: var(--ok-text); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs .nav-link.active { background: var(--ok-surface); color: var(--ok-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs .nav-link.active i { color: var(--ok-blue); }

/* section cards */
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) .card { margin-bottom: 14px; border: 1px solid var(--ok-line-2); border-radius: 14px;
    background: var(--ok-surface); box-shadow: var(--ok-shadow-xs); }
#jobportal_page :is(#full-width-modal #detail_form .card-header, #submitcv-modal #submitcv_form .card > .bg-light) {
    gap: 10px; padding: 12px 18px; background: var(--ok-surface) !important; border-bottom: 1px solid var(--ok-line-3, #f0f0f3); }
#jobportal_page :is(#full-width-modal #detail_form .card-header h5, #submitcv-modal #submitcv_form .card > .bg-light h4) {
    font-family: var(--ok-font-display); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ok-text) !important; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .jo-card-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px;
    border-radius: 9px; background: rgba(0, 122, 255, .10); color: var(--ok-blue); font-size: 16px; }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) .card-body { padding: 14px 18px 16px; }

/* fields: label beside field as before, blue focus */
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) .col-form-label { color: var(--ok-text-2); font-weight: 600; }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) :is(.form-control, .form-select) { border-color: var(--ok-line); border-radius: var(--ok-r-sm, 8px); }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) .select2-selection { border-color: var(--ok-line); border-radius: var(--ok-r-sm, 8px); }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) .form-check-input:checked { background-color: var(--ok-blue); border-color: var(--ok-blue); }
#jobportal_page :is(#full-width-modal #detail_form, #submitcv-modal #submitcv_form) :is(.parsley-error, .errorClassMultiple) { border-color: var(--ok-red) !important; }

/* Save / Cancel row: pinned to the bottom while the form scrolls */
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 8px; margin: 8px 0 0 !important; padding: 12px 22px !important;
    background: color-mix(in srgb, var(--ok-surface) 92%, transparent); backdrop-filter: blur(8px);
    border-top: 1px solid var(--ok-line-2); box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, .3); }
#jobportal_page #full-width-modal .modal-content > #actions_div > [class*="col-"] { flex: 0 0 auto; width: auto; padding: 0; }
#jobportal_page #full-width-modal .modal-content > #actions_div > .col-md-8 { margin-left: auto; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; margin: 0 0 0 6px !important; padding: 0 18px; border-radius: var(--ok-r); font-size: var(--ok-fs); font-weight: 600; text-transform: none; box-shadow: none; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn i { margin: 0 !important; }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-light { border: 1px solid var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-light:hover { background: var(--ok-surface-2); color: var(--ok-text); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-success { min-width: 110px; border: 0; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-success:hover { background: var(--ok-grad-hover); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-info { margin-left: 0 !important; border: 1px solid rgba(0, 122, 255, .22); background: rgba(0, 122, 255, .08); color: var(--ok-blue); }
#jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div .btn-info:hover { background: rgba(0, 122, 255, .14); }
@media (max-width: 767.98px) {
    #jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-body { padding: 14px 12px 6px; }
    #jobportal_page :is(#full-width-modal, #submitcv-modal) .cv-tabs { top: 52px; }
    #jobportal_page :is(#full-width-modal, #submitcv-modal) .modal-content > #actions_div { padding: 10px 12px !important; }
}

/* tables on the page (job order mini list, report tables) -> light theme headers */
#jobportal_page #list_div .table > thead > tr > th, #jobportal_page #tblList .table > thead > tr > th {
    padding: 12px 14px 10px; background: var(--ok-surface-2) !important; color: var(--ok-text-4) !important; border: 0 !important; border-bottom: 1px solid var(--ok-line-2) !important;
    font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
#jobportal_page .ajo-table thead th { background: var(--ok-surface-2); color: var(--ok-text-4); border-bottom: 1px solid var(--ok-line-2); }

/* modals: the .pl-ok skin (4l) gives the light header; titles and helper text that were white on the old dark headers */
#jobportal_page .modal-header :is(h1, h2, h3, h4, h5, h6, .text-white, label) { color: var(--ok-text) !important; }
#jobportal_page .modal-header :is(small, .eem-subtitle, .smm-subtitle) { color: var(--ok-text-3) !important; opacity: 1; }
#jobportal_page .modal-header :is(.mdi, .fa, .fas, .far, .fe):not(.btn *) { color: var(--ok-blue); }
#jobportal_page .modal-header .btn-close { filter: none; opacity: .5; }
#jobportal_page .modal-header.text-uppercase { text-transform: none; margin: 0 !important; }
#jobportal_page .modal-body > .card, #jobportal_page .modal-body .row > [class*="col-"] > .card { border: 1px solid var(--ok-line-2); border-radius: 14px; box-shadow: none; }


/* ---- 4ar part 3: popups (every .modal in #jobportal_page, plus #add_jd_modal which jobportal.js moves to <body>) ----
   The 4l skin already gives the light header, form fields, table heads and the footer buttons. These rules carry the
   same look into the popup bodies: buttons, action bars, section titles, card heads, and the old "filled" cyan / green
   popups. One gradient primary per bar (.btn-success / .btn-custom / .btn-blue = the main action), secondary actions as
   soft tints (primary / info = blue, warning = orange, danger / pink = red, soft-success = green), Cancel / Close /
   Reset (.btn-light / .btn-secondary) neutral. Row buttons in tables (td .btn, 4l), input-group / btn-group buttons,
   and the page's own button sets (.scv-btn, .scv-icon-btn, .jo-btn) keep their rules. */

/* buttons in the popup body -> .ok-btn look */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:not(.btn-close):not(.btn-link):not(.btn-check):not(.scv-btn):not(.scv-icon-btn):not(.jo-btn):not(.jo-side-btn):not(.dropdown-toggle):not(td *):not(.btn-group > *) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text);
    font-family: var(--ok-font); font-size: var(--ok-fs); font-weight: 600; line-height: 1; text-transform: none; white-space: nowrap;
    box-shadow: var(--ok-shadow-xs); transition: background var(--ok-t), border-color var(--ok-t), color var(--ok-t), filter var(--ok-t); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:not(.btn-close):not(.btn-link):not(.btn-check):not(.scv-btn):not(.scv-icon-btn):not(.jo-btn):not(.jo-side-btn):not(.dropdown-toggle):not(td *):not(.btn-group > *) > i {
    margin: 0 !important; font-size: 15px; line-height: 1; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-sm, .btn-xs):not(.btn-close):not(.btn-link):not(td *) { height: 30px; padding: 0 12px; border-radius: var(--ok-r-sm); font-size: var(--ok-fs-sm); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn.btn-lg:not(.btn-link):not(td *) { height: 42px; padding: 0 22px; font-size: 14px; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:not(.btn-close):not(.btn-link):not(td *):focus-visible { outline: 0; box-shadow: var(--ok-ring); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:not(.btn-close):not(.btn-link):not(td *):is(:disabled, .disabled) { opacity: .5; filter: none; }

/* neutral: Cancel / Close / Reset / copy-open icons */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-light, .btn-secondary, .btn-white, .btn-outline-secondary):not(td *):not(.scv-icon-btn):not(.btn-group > *) {
    border-color: var(--ok-line); background: var(--ok-surface); color: var(--ok-text-2); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-light, .btn-secondary, .btn-white, .btn-outline-secondary):not(td *):not(.scv-icon-btn):not(.btn-group > *) > i { color: var(--ok-text-3); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-light, .btn-secondary, .btn-white, .btn-outline-secondary):not(td *):not(.scv-icon-btn):not(.btn-group > *):hover {
    border-color: #d6d6dc; background: var(--ok-surface-2); color: var(--ok-text); }

/* primary: Save / Send / Submit / Filter / Publish */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-success, .btn-custom, .btn-blue):not(td *):not(.scv-btn):not(.scv-icon-btn):not(.jo-btn):not(.btn-group > *) {
    border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-success, .btn-custom, .btn-blue):not(td *):not(.scv-btn):not(.scv-icon-btn):not(.jo-btn):not(.btn-group > *) > i { color: #fff; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-success, .btn-custom, .btn-blue):not(td *):not(.scv-btn):not(.scv-icon-btn):not(.jo-btn):not(.btn-group > *):hover {
    border-color: transparent; background: var(--ok-grad-hover); color: #fff; }

/* secondary tints */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-primary, .btn-info, .btn-soft-primary, .btn-soft-info, .btn-outline-primary):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *) {
    border-color: rgba(0, 122, 255, .22); background: rgba(0, 122, 255, .08); color: var(--ok-blue); box-shadow: none; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-warning, .btn-soft-warning):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *) {
    border-color: rgba(255, 149, 0, .28); background: rgba(255, 149, 0, .12); color: #c93400; box-shadow: none; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-danger, .btn-pink, .btn-soft-danger, .btn-outline-danger):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *) {
    border-color: rgba(255, 59, 48, .24); background: rgba(255, 59, 48, .08); color: #d70015; box-shadow: none; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-soft-success, .btn-outline-success):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *) {
    border-color: rgba(52, 199, 89, .30); background: rgba(52, 199, 89, .12); color: #248a3d; box-shadow: none; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-primary, .btn-info, .btn-soft-primary, .btn-soft-info, .btn-outline-primary, .btn-warning, .btn-soft-warning,
    .btn-danger, .btn-pink, .btn-soft-danger, .btn-outline-danger, .btn-soft-success, .btn-outline-success):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *) > i { color: currentColor; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .btn:is(.btn-primary, .btn-info, .btn-soft-primary, .btn-soft-info, .btn-outline-primary, .btn-warning, .btn-soft-warning,
    .btn-danger, .btn-pink, .btn-soft-danger, .btn-outline-danger, .btn-soft-success, .btn-outline-success):not(td *):not(.scv-btn):not(.jo-btn):not(.btn-group > *):hover { filter: brightness(.95) saturate(1.2); }

/* buttons joined to an input (Publish links, copy / open): keep the joined corners */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .input-group > .btn { height: auto; min-height: 36px; box-shadow: none; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .input-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .input-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* icon-only buttons on attached CV files (Submit CV, built by jobportal.js) stay compact */
#jobportal_page #submitcv-modal .modal-body .cv-att-file-actions .btn.btn-xs { width: 28px; height: 28px; padding: 0; }

/* Ladda "expand-left" spinner needs its own left padding while loading (body and footer) */
:is(#jobportal_page .modal, #add_jd_modal) :is(.modal-body, .modal-footer) .btn[data-style="expand-left"][data-loading] { padding-left: 52px; }

/* action bars under the forms: right aligned, 8px gaps, a hairline above. Job order (#full-width-modal) and
   Submit CV (#submitcv-modal) keep their sticky bars from part 1 (.row / .d-flex); only their buttons are laid out here. */
:is(#jobportal_page .modal, #add_jd_modal) :is(#actions_div, #actions_technical_div, .form-group.align-right):not(.row):not(.d-flex):not(.smm-footer):has(.btn) {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px;
    margin: 20px 0 0 !important; padding: 16px 22px 18px; border-top: 1px solid var(--ok-line-2); background: var(--ok-surface); text-align: right; }
:is(#jobportal_page .modal, #add_jd_modal) #actions_div:is(.row, .d-flex) > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:is(#jobportal_page .modal, #add_jd_modal) #actions_div.row > .text-end { justify-content: flex-end; }
:is(#jobportal_page .modal, #add_jd_modal) #actions_div.d-flex { gap: 8px; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body :is(#actions_div, #actions_technical_div, .form-group.align-right, .text-end.border-top) .btn { margin: 0 !important; }
/* Remark / comment popups: "text-end" button row under the textarea */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .text-end.border-top:has(> .btn) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-color: var(--ok-line-2) !important; }
:is(#jobportal_page .modal, #add_jd_modal) :is(.modal-body, .modal-body > form) > .text-end:last-child:has(> .btn) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ok-line-2); }
:is(#jobportal_page .modal, #add_jd_modal) :is(.modal-body, .modal-body > form) > .text-end:last-child > .btn { margin: 0 !important; }

/* status chips shown next to a popup title (empty spans built by the js, e.g. #technicalstatus_status) */
#jobportal_page .modal-header .modal-title span:is(.btn-pink, .btn-success, .btn-info, .btn-warning, .btn-primary, .btn-danger):empty { display: none; }
#jobportal_page .modal-header .modal-title span:is(.btn-pink, .btn-success, .btn-info, .btn-warning, .btn-primary, .btn-danger):not(:empty) {
    display: inline-flex; align-items: center; padding: 3px 10px; border: 0; border-radius: var(--ok-r-pill); background: rgba(0, 122, 255, .10) !important;
    color: var(--ok-blue) !important; font-family: var(--ok-font); font-size: 12px; font-weight: 600; }
#jobportal_page .modal-header .modal-title span.btn-pink:not(:empty) { background: rgba(255, 45, 85, .10) !important; color: #d70f4b !important; }
#jobportal_page .modal-header .modal-title span.btn-success:not(:empty) { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }

/* old "filled" popups (.modal-filled.bg-info: CV comments, Technical interviewer, Other documents) -> white like the rest */
#jobportal_page .modal .modal-content.modal-filled { background: var(--ok-surface) !important; color: var(--ok-text-2); }
#jobportal_page .modal .modal-content.modal-filled .modal-body { background: var(--ok-surface); color: var(--ok-text-2) !important; }
#jobportal_page .modal .modal-content.modal-filled :is(.text-light, .text-white):not(.btn):not(.btn *):not(.badge) { color: var(--ok-text) !important; }
#jobportal_page .modal .modal-content.modal-filled .modal-body > .card { border: 1px solid var(--ok-line-2); border-radius: 14px; }
/* WhatsApp message preview (.modal-filled.bg-success): a light green chat bubble on white */
#jobportal_page #whatsapp-preview-modal .modal-content.modal-filled { background: var(--ok-surface) !important; }
#jobportal_page #whatsapp-preview-modal .modal-body > #preview_whatsapp_text { padding: 14px 16px; border: 1px solid rgba(52, 199, 89, .25); border-radius: 14px 14px 14px 4px;
    background: rgba(52, 199, 89, .10); color: var(--ok-text) !important; font-size: var(--ok-fs); line-height: 1.5; }

/* table heads marked .btn-info (old cyan head): the 4l skin colours the th, the thead itself goes plain */
:is(#jobportal_page .modal, #add_jd_modal) .table > thead.btn-info { background: transparent; border: 0; color: inherit; }

/* section titles inside popups (CV view "Sensitive data", CV search groups): accent bar instead of a blue strip */
#jobportal_page .modal .modal-body :is(h4, h5, h6).bg-primary.text-white { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px !important; padding: 0 0 10px !important;
    background: transparent !important; border-bottom: 1px solid var(--ok-line-2); color: var(--ok-text) !important;
    font-family: var(--ok-font-display); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
#jobportal_page .modal .modal-body :is(h4, h5, h6).bg-primary.text-white::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: var(--ok-blue); }

/* card heads inside popups (.card-header.bg-light) -> soft strip with a small uppercase title */
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .card { border-color: var(--ok-line-2); border-radius: 14px; }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .card > .card-header { padding: 10px 16px; background: var(--ok-surface-2) !important; border-bottom: 1px solid var(--ok-line-2);
    border-radius: 13px 13px 0 0; color: var(--ok-text-2); }
:is(#jobportal_page .modal, #add_jd_modal) .modal-body .card > .card-header :is(h4, h5, h6, .card-title) { margin: 0; font-family: var(--ok-font); font-size: var(--ok-fs-xs);
    font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4) !important; }

@media (max-width: 767.98px) {
    :is(#jobportal_page .modal, #add_jd_modal) :is(#actions_div, #actions_technical_div, .form-group.align-right):not(.row):not(.d-flex):not(.smm-footer):has(.btn) { padding: 14px 16px; }
    :is(#jobportal_page .modal, #add_jd_modal) :is(#actions_div, #actions_technical_div, .form-group.align-right) .btn { flex: 1 1 auto; }
}

/* ---- 4as. Job portal analytics  (modules/jobportal/dashboard, route jobportal-dashboard) ---- */
/* Page wrapper #jobportal_dashboard_page carries "ok-page pl-ok", so the 4l skin gives the page head, cards, stat tiles,
   filter buttons, tables and modals. Part 1 is what was kept from the page's old <style> block (scoped; the global rules
   it had - html, .text-muted, .form-control, .modal-title colours, .modal-backdrop blur, tile background colours - are gone).
   Part 2 is the layout added on top. */

/* ---- 4as part 1: kept from the old <style> block ---- */
#jobportal_dashboard_page .selected { background-color: rgba(0, 122, 255, .10); }
#jobportal_dashboard_page .modal.modal-fullscreen .modal-dialog { width: 100vw; height: 100vh; margin: 0; padding: 0; max-width: none; }
#jobportal_dashboard_page .modal.modal-fullscreen .modal-content { height: auto; border-radius: 0 !important; border: none; margin-top: auto; }
#jobportal_dashboard_page .modal.modal-fullscreen .modal-body { overflow-y: auto; }
#jobportal_dashboard_page :is(#tbl_viewsubmit_list_filter, #tbl_viewchangestatus_list_filter) { text-align: center; }
#jobportal_dashboard_page .ct-chart { max-height: 600px !important; width: 920px !important; }
#jobportal_dashboard_page :is(#btn_cvstatus_report, #btn_status_report) { color: #fff !important; }
#jobportal_dashboard_page span.error { color: var(--ok-red); font-size: small; }
#jobportal_dashboard_page .notification-list .notify-item .user-msg { margin-left: 45px; white-space: normal; line-height: 16px; }

/* ---- 4as part 2: theme layout ---- */
/* the three plain wrappers left from the old page-title-box nesting */
#jobportal_dashboard_page #list_div { margin: 0; }

/* page head: gift strip on the right */
#jobportal_dashboard_page .jd-gift { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#jobportal_dashboard_page .jd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--ok-r-pill); font-size: var(--ok-fs-sm);
    font-weight: 600; background: var(--ok-fill); color: var(--ok-text-2); }
#jobportal_dashboard_page .jd-chip-pink { background: color-mix(in srgb, var(--ok-pink) 12%, transparent); color: var(--ok-pink); }

/* Top 3 recruiters strip (spans filled by dashboard.js populate_toprecruiter_list) */
#jobportal_dashboard_page .jd-top-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 var(--ok-gap); padding: 12px 16px;
    border: 1px solid var(--ok-line-2); border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--ok-orange) 8%, var(--ok-surface)) 0%, var(--ok-surface) 70%);
    box-shadow: var(--ok-shadow-xs); }
#jobportal_dashboard_page .jd-top-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
#jobportal_dashboard_page .jd-top-label i { font-size: 16px; color: var(--ok-orange); }
#jobportal_dashboard_page .jd-top-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
#jobportal_dashboard_page .jd-top-list > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 1px solid var(--ok-line-2); border-radius: var(--ok-r-pill);
    background: var(--ok-surface); font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text); }
#jobportal_dashboard_page .jd-top-list > span .mdi-star { color: var(--ok-orange) !important; }

/* filter card */
#jobportal_dashboard_page .jd-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: end; gap: 14px; }
#jobportal_dashboard_page .jd-field { min-width: 0; }
#jobportal_dashboard_page .jd-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#jobportal_dashboard_page .jd-check .form-check-input { float: none; margin: 0; }
#jobportal_dashboard_page .jd-field .pl-range { width: 100%; }
#jobportal_dashboard_page .jd-apply { display: flex; justify-content: flex-end; }
#jobportal_dashboard_page .jd-apply .btn { min-width: 110px; }

/* count tiles */
#jobportal_dashboard_page .jd-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: var(--ok-gap); }
#jobportal_dashboard_page .pl-stat-icon.jd-pink, #jobportal_dashboard_page .pl-stat:has(.jd-pink) { --pl-accent: var(--ok-pink); }

/* cards and charts */
#jobportal_dashboard_page .jd-row { margin-bottom: 0; }
#jobportal_dashboard_page .jd-row > [class*="col-"] { display: flex; }
#jobportal_dashboard_page .jd-row .jd-card { flex: 1 1 auto; }
#jobportal_dashboard_page .jd-card { min-width: 0; }
#jobportal_dashboard_page .jd-card .header-title { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase;
    color: var(--ok-text-4) !important; }
#jobportal_dashboard_page .jd-card .an-head-title > i { flex: 0 0 32px; }
#jobportal_dashboard_page .jd-chart { position: relative; width: 100%; }
#jobportal_dashboard_page .jd-chart canvas { max-width: 100%; }
#jobportal_dashboard_page .jd-chart-pie { max-width: 440px; margin: 0 auto; }
#jobportal_dashboard_page .jd-note { margin: 10px 0 0; text-align: center; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }

/* Reports card: one row per report */
#jobportal_dashboard_page .jd-links { display: flex; flex-direction: column; gap: 8px; }
#jobportal_dashboard_page .jd-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ok-line-2); border-radius: 12px;
    background: var(--ok-surface); color: var(--ok-text); text-decoration: none; transition: background var(--ok-t), border-color var(--ok-t), transform var(--ok-t); }
#jobportal_dashboard_page .jd-link:hover { border-color: rgba(0, 122, 255, .30); background: var(--ok-surface-2); color: var(--ok-text); transform: translateY(-1px); }
#jobportal_dashboard_page .jd-link > .mdi-chevron-right { margin-left: auto; font-size: 18px; color: var(--ok-text-5); }
#jobportal_dashboard_page .jd-link-icon { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    background: color-mix(in srgb, currentColor 14%, transparent); font-size: 16px; }
#jobportal_dashboard_page .jd-link-icon.jd-pink { color: var(--ok-pink); }
#jobportal_dashboard_page .jd-link-text { font-size: var(--ok-fs); font-weight: 600; }
#jobportal_dashboard_page .jd-link-count { margin-left: auto; padding: 2px 10px; border-radius: var(--ok-r-pill); background: rgba(255, 59, 48, .12); color: #d70015;
    font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* small KPI row above a chart (CV trend) and the legend rows on the lower charts */
#jobportal_dashboard_page .jd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
#jobportal_dashboard_page .jd-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface-2); }
#jobportal_dashboard_page .jd-kpi-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-text-4); }
#jobportal_dashboard_page .jd-kpi-label i { font-size: 9px; }
#jobportal_dashboard_page .jd-kpi-value { font-family: var(--ok-font-display); font-size: 24px; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }
#jobportal_dashboard_page .jd-legend { justify-content: center; row-gap: 8px; margin: 14px 0 10px; }
#jobportal_dashboard_page .jd-legend > [class*="col-"]:empty { display: none; }
#jobportal_dashboard_page .jd-legend .text-muted { margin-top: 0 !important; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-text-4) !important; }
#jobportal_dashboard_page .jd-legend h4 { margin-bottom: 0 !important; font-family: var(--ok-font-display); font-size: 20px; font-weight: 700 !important; color: var(--ok-text); }
#jobportal_dashboard_page .jd-legend h4 small { font-size: 10px !important; }

/* filter row inside the lower chart cards */
#jobportal_dashboard_page .jd-card-filter { padding: 12px 14px; margin-bottom: 4px; border: 1px solid var(--ok-line-2); border-radius: 12px; background: var(--ok-surface-2); }
#jobportal_dashboard_page .jd-card-filter > .row { row-gap: 10px; align-items: flex-end; }
#jobportal_dashboard_page .jd-card-filter > .row > [class*="col-2"] { flex: 1 1 180px; max-width: 260px; width: auto; }
#jobportal_dashboard_page .jd-card-filter > .row > .col-3 { flex: 1 1 220px; max-width: 320px; width: auto; }
#jobportal_dashboard_page .jd-card-filter .form-label { margin-bottom: 4px; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#jobportal_dashboard_page .jd-card-filter :is(.form-control, .form-select) { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); background: var(--ok-surface); }
#jobportal_dashboard_page .jd-card-filter .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
#jobportal_dashboard_page .jd-card-filter .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; }
#jobportal_dashboard_page .jd-card-filter .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
#jobportal_dashboard_page .jd-card-filter .jd-apply { display: block; }
#jobportal_dashboard_page :is(.jd-card-filter, .jd-head-range) .btn-success { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0;
    border-radius: var(--ok-r); background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
#jobportal_dashboard_page :is(.jd-card-filter, .jd-head-range) .btn-success:hover { background: var(--ok-grad-hover); color: #fff; }
/* Weekly / Monthly switch on "Job orders based on position" -> segmented control (js swaps btn-secondary / btn-light) */
#jobportal_dashboard_page .jd-card-filter .float-end .btn-group { padding: 3px; gap: 2px; border: 1px solid #dcdce0; border-radius: var(--ok-r); background: var(--ok-fill); }
#jobportal_dashboard_page .jd-card-filter .float-end .btn-group .btn { height: 28px; padding: 0 12px; border: 0; border-radius: var(--ok-r-sm) !important; background: transparent;
    color: var(--ok-text-4); font-weight: 600; box-shadow: none; }
#jobportal_dashboard_page .jd-card-filter .float-end .btn-group .btn.btn-secondary { background: var(--ok-surface); color: var(--ok-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }

/* Recruiters performance: date range in the card head */
#jobportal_dashboard_page .jd-head-range { flex-wrap: wrap; }
#jobportal_dashboard_page .jd-head-range .pl-range { width: 240px; }

/* popups */
#jobportal_dashboard_page .jd-modal-card { border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface); box-shadow: none; }
#jobportal_dashboard_page .modal .table > tbody > tr > td { vertical-align: middle; border-color: var(--ok-line-3); }

@media (max-width: 767.98px) {
    #jobportal_dashboard_page .jd-head-range, #jobportal_dashboard_page .jd-head-range .pl-range { width: 100%; }
    #jobportal_dashboard_page .jd-card-filter > .row > [class*="col-"] { max-width: 100%; flex-basis: 100%; }
}

/* ---- 4at. ATS > Profile  (modules/ats-profile/ats-profile, route ats-profile) ---- */
.atsp .atsp-grid { align-items: start; }

/* identity card: big gradient avatar, name, role, status pill */
.atsp .atsp-id-head { display: flex; align-items: center; gap: 18px; }
.atsp .atsp-avatar { position: relative; width: 68px; height: 68px; font-size: 22px; }
.atsp .atsp-avatar img { position: absolute; inset: 0; }
.atsp .atsp-id-main { min-width: 0; }
.atsp .atsp-name { margin: 0; font-family: var(--ok-font-display); font-size: 20px; font-weight: 700; color: var(--ok-text); letter-spacing: -.01em; }
.atsp .atsp-role { margin: 2px 0 8px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
.atsp .ok-divider { margin: 18px 0 6px; }

/* key / value rows: no dividers, roomier, like the mock */
.atsp .atsp-kv > dt, .atsp .atsp-kv > dd { padding: 8px 0; border-bottom: 0; }
.atsp .atsp-kv > dd.ok-faint { font-weight: 400; }

/* Message (gradient, fills the row) + Edit */
.atsp .atsp-actions { display: flex; gap: 10px; margin-top: 16px; }
.atsp .atsp-btn-message { flex: 1 1 auto; height: 38px; }
.atsp .atsp-actions .ok-btn:not(.atsp-btn-message) { height: 38px; padding: 0 20px; }

/* YTD tiles: bigger numbers, rounder tiles */
.atsp .ok-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.atsp .ok-tile { padding: 12px 8px; border-radius: 16px; }
.atsp .ok-tile-value { font-size: 22px; }
.atsp .atsp-summary { margin: 16px 0 0; font-size: var(--ok-fs); color: var(--ok-text-3); }

.atsp .atsp-chips { gap: 8px; }

@media (max-width: 991.98px) {
    .atsp .atsp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .atsp .ok-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .atsp .atsp-id-head { gap: 14px; }
}


/* ---- 4au. Memo > List of memo + Report, Assets  (modules/notification/notification + notification_report, modules/assets/asset;
   routes notification/list, notification/report, assets/asset) ----
   The page wrappers carry "ok-page pl-ok", so the 4l skin gives the head, filter cards, tables, tabs and pager.
   These are the pages' own rules (were <style> blocks in each .html), moved onto the theme tokens. */

/* count pill next to the title */
:is(#memo_list_page, #memo_report_page, #asset_page) .pl-head h4 .badge { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; border: 0; }

/* Memo list: Pending verification / approval count inside the toolbar button */
#memo_list_page .pl-toolbar .btn .badge { min-width: 22px; padding: 3px 7px; border: 0; border-radius: var(--ok-r-pill); font-size: 11px; font-weight: 700;
    background: rgba(255, 149, 0, .16) !important; color: #c93400 !important; }

/* Memo list: rows built by notification.js as .list-group-item */
#memo_list_page #list_noty { border: 1px solid var(--ok-line-2); border-radius: 12px; overflow: hidden; }
#memo_list_page #list_noty:empty { display: none; }
#memo_list_page #list_noty .list-group-item { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ok-line-3); background: var(--ok-surface); cursor: pointer;
    font-size: var(--ok-fs); color: var(--ok-text-2); transition: background var(--ok-t); }
#memo_list_page #list_noty .list-group-item:last-child { border-bottom: 0; }
#memo_list_page #list_noty .list-group-item:hover { background: var(--ok-surface-2); }
#memo_list_page #list_noty .list-group-item.pl-empty { padding: 32px 12px; cursor: default; color: var(--ok-text-4); }
#memo_list_page #list_noty .list-group-item.pl-empty:hover { background: var(--ok-surface); }
#memo_list_page #list_noty .task-title { font-weight: 600; color: var(--ok-text); }
#memo_list_page #list_noty .task-title.far::before { margin-right: 4px; color: var(--ok-text-4); }
#memo_list_page #list_noty .task-assign { margin-top: 4px; font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#memo_list_page #list_noty .task-assign strong { font-weight: 500; }
#memo_list_page #list_noty .apt-date { font-size: var(--ok-fs-sm); color: var(--ok-text-3); }
#memo_list_page #list_noty :is(.apt-date i, .task-assign i.fa) { margin-right: 4px; color: var(--ok-text-4); }
#memo_list_page #list_noty .badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 9px; border: 0; border-radius: var(--ok-r-pill);
    font-size: 11px; font-weight: 600; font-style: normal; background: rgba(142, 142, 147, .14) !important; color: var(--ok-text-3) !important; }
#memo_list_page #list_noty .badge.bg-soft-primary { background: rgba(0, 122, 255, .10) !important; color: var(--ok-blue) !important; }
#memo_list_page #list_noty .badge.bg-soft-info    { background: rgba(90, 200, 250, .18) !important; color: #0071a4 !important; }
#memo_list_page #list_noty .badge.bg-soft-warning { background: rgba(255, 149, 0, .14) !important; color: #c93400 !important; }
#memo_list_page #list_noty .badge.bg-soft-success { background: rgba(52, 199, 89, .14) !important; color: #248a3d !important; }
#memo_list_page #list_noty .badge.bg-soft-danger  { background: rgba(255, 59, 48, .12) !important; color: #d70015 !important; }

/* add / edit forms that sit in a card (not a .pl-filter / modal): same labels and inputs as the skin's filter forms */
:is(#memo_list_page #detail_form, #asset_page #new_div) .col-form-label { margin-bottom: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track);
    text-transform: uppercase; color: var(--ok-text-4); }
:is(#memo_list_page #detail_form, #asset_page #new_div) :is(.form-control, .form-select) { border: 1px solid var(--ok-line); border-radius: var(--ok-r); font-size: var(--ok-fs); color: var(--ok-text); }
:is(#memo_list_page #detail_form, #asset_page #new_div) :is(.form-control, .form-select):not(textarea) { min-height: 36px; }
:is(#memo_list_page #detail_form, #asset_page #new_div) :is(.form-control, .form-select):focus { border-color: var(--ok-blue); box-shadow: var(--ok-ring); }
:is(#memo_list_page #detail_form, #asset_page #new_div) .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
:is(#memo_list_page #detail_form, #asset_page #new_div) .input-group-text { border-color: var(--ok-line); border-radius: 0 var(--ok-r) var(--ok-r) 0; background: var(--ok-surface-2); color: var(--ok-text-4); }
:is(#memo_list_page #detail_form, #asset_page #new_div) .select2-container .select2-selection--single { height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
:is(#memo_list_page #detail_form, #asset_page #new_div) .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--ok-text); }
:is(#memo_list_page #detail_form, #asset_page #new_div) .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
:is(#memo_list_page #detail_form, #asset_page #new_div) .select2-container .select2-selection--multiple { min-height: 36px; border: 1px solid var(--ok-line); border-radius: var(--ok-r); }
:is(#memo_list_page #detail_form, #asset_page #new_div) .select2-selection__choice { background: var(--ok-fill) !important; border: 1px solid #dcdce0 !important;
    color: var(--ok-text-2) !important; border-radius: var(--ok-r-pill) !important; font-size: 12px; font-weight: 600; }
:is(#memo_list_page #detail_form, #asset_page #new_div) :is(.select2-container--focus, .select2-container--open) .select2-selection { border-color: var(--ok-blue) !important; box-shadow: var(--ok-ring); }
#memo_list_page #detail_form #btn_status { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ok-line);
    border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
#memo_list_page #detail_form #btn_status + .dropdown-menu { padding: 6px; border: 1px solid var(--ok-line-2); border-radius: 12px; box-shadow: var(--ok-shadow-lg); }

/* Browse (attachments) buttons */
:is(#memo_list_page, #asset_page) .fileinput-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-weight: 600; box-shadow: var(--ok-shadow-xs); cursor: pointer; }
:is(#memo_list_page, #asset_page) .fileinput-button:hover { background: var(--ok-surface-2); color: var(--ok-text); }
:is(#memo_list_page, #asset_page) .fileinput-button i { color: var(--ok-blue); }
:is(#memo_list_page, #asset_page) .fileinput-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 200px; }
#asset_page #files_div { margin: 8px 0 0 !important; }
#asset_page #files_div > .row { padding: 0 !important; }

/* Save / Reset / Verify / Approve row under a form */
:is(#memo_list_page, #asset_page) .pl-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--ok-line-2); }
:is(#memo_list_page, #asset_page) .pl-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; margin: 0 !important;
    border: 1px solid var(--ok-line); border-radius: var(--ok-r); background: var(--ok-surface); color: var(--ok-text); font-size: var(--ok-fs); font-weight: 600; box-shadow: var(--ok-shadow-xs); }
:is(#memo_list_page, #asset_page) .pl-form-actions .btn:hover { background: var(--ok-surface-2); color: var(--ok-text); }
:is(#memo_list_page, #asset_page) .pl-form-actions .btn i { margin: 0 !important; color: var(--ok-text-3); }
:is(#memo_list_page, #asset_page) .pl-form-actions :is(.btn-success, .btn-primary) { min-width: 100px; border-color: transparent; background: var(--ok-grad); color: #fff; box-shadow: var(--ok-shadow-primary); }
:is(#memo_list_page, #asset_page) .pl-form-actions :is(.btn-success, .btn-primary):hover { background: var(--ok-grad-hover); color: #fff; }
:is(#memo_list_page, #asset_page) .pl-form-actions :is(.btn-success, .btn-primary) i { color: #fff; }
#memo_list_page .pl-form-actions .btn-blue { color: var(--ok-blue); }
#memo_list_page .pl-form-actions .btn-blue i { color: var(--ok-blue); }
#memo_list_page .pl-form-actions .btn-warning { color: #c93400; }
#memo_list_page .pl-form-actions .btn-warning i { color: var(--ok-orange); }
#memo_list_page .pl-form-actions .btn-danger { color: var(--ok-red); }
#memo_list_page .pl-form-actions .btn-danger i { color: var(--ok-red); }
#memo_list_page .pl-form-actions #verification_switch { display: flex; align-items: center; gap: 8px; }
#memo_list_page .pl-form-actions #verification_switch label { margin: 0 !important; font-size: var(--ok-fs-sm); font-weight: 600; color: var(--ok-text-2); }

/* Report + Assets: JS-built pager; disabled Previous / Next is a .page-link.disabled, not a .page-item.disabled */
:is(#memo_report_page, #asset_page) #pagination_div { margin-top: 12px; }
:is(#memo_report_page, #asset_page) #pagination_div .pagination:empty { display: none; }
:is(#memo_report_page, #asset_page) #pagination_div .page-link.disabled { color: var(--ok-text-5); pointer-events: none; }
:is(#memo_report_page, #asset_page) #tbl_list > tbody > tr > td:first-child { font-weight: 600; color: var(--ok-text); }
#asset_page #tbl_list > tbody > tr { cursor: pointer; }

/* Assets: advanced search rows (cloned from #dynamicContent into #detail_form) */
#asset_page #detail_form .condition-row { margin-bottom: 8px; }
#asset_page .pl-filter .control-label { margin: 0; font-size: var(--ok-fs-xs); font-weight: 600; letter-spacing: var(--ok-track); text-transform: uppercase; color: var(--ok-text-4); }
#asset_page .pl-filter .delete-condition { display: inline-flex; align-items: center; gap: 4px; height: 36px; color: var(--ok-red) !important; }
#asset_page .pl-filter .delete-condition i { color: var(--ok-red) !important; }

/* Assets: Warranty / Assign tabs, assign box, assign list edit icon */
#asset_page #div_sub_details > .an-body { padding-top: 18px; }
#asset_page #new_assign_div { padding: 4px 16px 16px; border: 1px solid var(--ok-line-2); border-radius: 14px; background: var(--ok-surface-2); }
#asset_page #new_assign_div .errorContainer > span[style*="italic"] { display: block; margin-top: 4px; font-size: var(--ok-fs-sm); color: var(--ok-text-4); }
#asset_page #btn_new_access { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--ok-r);
    background: var(--ok-grad); color: #fff; font-weight: 600; box-shadow: var(--ok-shadow-primary); }
#asset_page #btn_new_access:hover { background: var(--ok-grad-hover); }
#asset_page #table_assign_list .btn_edit_payment { padding: 0 4px; border: 0; background: none !important; color: var(--ok-blue) !important; }
#asset_page #table_assign_list .btn_edit_payment:hover { color: var(--ok-teal) !important; }

@media (max-width: 767.98px) {
    :is(#memo_list_page #detail_form, #asset_page #new_div) .col-form-label { padding-bottom: 2px; }
}
