/* Recruitment Operations - Color Theme
   Palette sampled from the user's reference screenshot */
:root{
  /* ---- Brand (from the Provost Contrives mark) ---- */
  --brand:#C62828;
  --brand-hover:#A81F1F;
  --brand-dark:#8E1F1F;
  --brand-darker:#6E1616;
  --brand-deep:#5C0F0F;
  --brand-tint:#FBEAEA;
  --brand-tint-2:#F6D9D9;
  --brand-border:#E0A9A9;
  --brand-border-2:#F0D0D0;
  --on-brand:#FFFFFF;
  --on-brand-soft:#F0C6C6;

  /* ---- Neutrals ---- */
  --page:#F1F1F3;
  --surface:#FFFFFF;
  --surface-2:#FAFAFB;
  --line:#E4E4E6;
  --line-soft:#EEEEEE;
  --line-strong:#D8D8DA;
  --ring-remaining:#D3D6DB;
  --target-grey:#8E9299;
  --ink:#1A1A1A;
  --ink-2:#4A4A4A;
  --ink-soft:#6B6B6B;
  --ink-mute:#9A9A9A;
  --gray:#58585A;

  /* ---- Status (colour carries meaning, nothing else) ---- */
  --success:#1D5A3A;
  --success-mid:#21C77A;
  --success-tint:#E8F5EE;
  --warning:#B7791F;
  --warning-mid:#D9A441;
  --warning-tint:#FDF3E2;
  --danger:#9B1C1C;
  --danger-mid:#D45B5B;
  --danger-tint:#FDECEC;

  /* ---- Back-compat aliases (older rules still reference these) ---- */
  --bg:var(--page);
  --surface-3:var(--brand-tint);
  --border:var(--line);
  --border-soft:var(--line-soft);
  --text:var(--ink);
  --muted:var(--ink-soft);
  --accent:var(--brand);
  --accent-dark:var(--brand-dark);
  --accent-soft:var(--brand-tint);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;background:var(--surface);color:var(--ink)}
body{background:var(--surface)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.app{
  min-height:100vh;
  background:var(--surface);
  padding:0 0 90px;
}

header{
  min-height:92px;
  margin:12px 12px 0;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--brand-border);
  border-radius:12px 12px 0 0;
  border-bottom-color:var(--brand-border);
  background:var(--surface);
}

header small{
  font-size:11px;
  letter-spacing:3px;
  font-weight:600;
  color:var(--brand);
}

header h1{
  margin:6px 0 0;
  font-size:26px;
  font-weight:700;
  letter-spacing:-.3px;
  color:var(--ink);
}

#clock{
  font-size:14px;
  color:var(--ink);
  white-space:nowrap;
}

.summary{
  display:flex;
  gap:10px;
  padding:18px 24px 16px;
  margin:0 12px;
  border-left:1px solid var(--brand-border);
  border-right:1px solid var(--brand-border);
  background:var(--surface);
}

.summary>div{
  width:134px;
  background:var(--surface);
  border:1px solid var(--brand-border);
  border-radius:8px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}

.summary span{
  font-size:10px;
  letter-spacing:.5px;
  color:var(--brand);
}

.summary b{
  font-size:20px;
  color:var(--ink);
}

.board{
  margin:0 12px;
  min-height:635px;
  border:1px solid var(--brand-border);
  background:var(--surface);
  overflow:hidden;
}

.head,.job-row{
  display:grid;
  grid-template-columns:1.05fr 1.35fr 1.05fr 1.35fr 1fr 1fr .95fr .8fr .8fr;
  min-width:900px;
}

.head{
  margin:10px 10px 0;
  background:var(--brand);
  border:0;
}

.head i{
  font-style:normal;
  font-size:10px;
  font-weight:700;
  letter-spacing:.4px;
  color:var(--surface);
  padding:9px 8px;
  border-right:0;
}

#rows{
  margin:0 10px;
  max-height:58vh;
  overflow-y:auto;
}


.loading,.empty{padding:35px;text-align:center;color:var(--brand)}

.alert-open{color:var(--brand)}
.alert-warning{color:var(--warning)}
.alert-overdue{color:var(--danger)}

.alert-bar{
  display:block;
  width:100%;
  min-width:72px;
  padding:4px 8px;
  border-radius:12px;
  text-align:center;
  font-size:10px;
  font-weight:700;
  line-height:1;
}
.alert-green{background:var(--success);color:var(--success-tint)}
.alert-yellow{background:var(--warning);color:var(--warning-tint)}
.alert-red{background:var(--danger);color:var(--danger-tint)}

.status-pill{
  display:inline-block;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:10px;
  color:inherit;
  font-weight:600;
}

.buttons{
  position:fixed;
  right:24px;
  bottom:22px;
  display:flex;
  gap:8px;
}


.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:10;
}

.login-card{
  width:min(400px,95vw);
  background:var(--surface);
  border:1px solid var(--brand-border);
  border-radius:10px;
  padding:28px;
  position:relative;
  box-shadow:0 20px 70px #00000033;
}

.close{
  position:absolute;
  right:12px;
  top:10px;
  background:transparent;
  border:0;
  color:var(--brand);
  font-size:25px;
}

.login-card h2{margin:5px 0 25px;color:var(--ink)}
.login-card small{color:var(--brand);letter-spacing:1px}
.login-card label{display:block;color:var(--brand);font-size:12px;margin:12px 0 6px}

.login-card input,.login-card select{
  width:100%;
  padding:11px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--brand-border);
  border-radius:5px;
}

#loginError{color:var(--danger-mid);min-height:18px;font-size:12px}

.portal-card{
  width:min(1100px,96vw);
  max-height:92vh;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--brand-border);
  border-radius:10px;
}

.portal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  border-bottom:0;
  position:sticky;
  top:0;
  background:var(--surface);
  z-index:2;
}

.portal-head small{color:var(--brand);letter-spacing:1px}
/* Role moved to the top-right profile menu (.mhr-user-role) — no longer
   shown beside the logo, but #portalRole/#portalTitle stay wired up (see
   openPortal() etc.) in case something else ever needs that data. */
#portalRole{display:none}
.portal-head h2{margin:6px 0 0;color:var(--ink)}
.portal-head-brand{display:flex;align-items:center;gap:14px}
.portal-logo{height:42px;width:auto;object-fit:contain}
.portal-content{padding:20px}

.dashboard-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;align-items:stretch;}

.card{
  background:var(--surface);
  border:1px solid var(--brand-border);
  border-radius:8px;
  padding:16px;
}

.card h3{margin:0 0 12px;font-size:14px;color:var(--brand)}
.metric{font-size:28px;font-weight:bold;color:var(--ink)}
.muted{font-size:12px;color:var(--brand)}

/* User-count summary cards (Main HR / Sub-HR) — dedicated grid, not the 8-col dashboard grid */
.usercount-grid{
  grid-template-columns:repeat(auto-fit,minmax(200px,240px)) !important;
  gap:20px !important;
}
.usercount-card{
  position:relative;
  border-left:4px solid var(--brand);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.usercount-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(198,40,40,.14);
}
.usercount-card h3{
  text-transform:uppercase;
  letter-spacing:.5px;
  font-size:12px;
  color:var(--brand-dark);
}
.usercount-card .metric{
  font-size:36px;
  margin:4px 0 2px;
}
.usercount-card .muted{
  color:var(--ink-soft);
  font-weight:600;
}

.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}

.tab{
  background:var(--surface);
  color:var(--brand);
  border:1px solid var(--brand-border);
  border-radius:5px;
  padding:9px 13px;
}

.tab.active{
  background:var(--brand);
  color:var(--surface);
  border-color:var(--brand-dark);
}

.portal-table{
  width:100%;
  border-collapse:collapse;
  min-width:800px;
}

.portal-table th,.portal-table td{
  border:0;
  border-bottom:1px solid var(--line-soft);
  padding:9px;
  text-align:left;
  font-size:12px;
}

.portal-table th{
  background:var(--brand);
  color:var(--surface);
}
/* Sticky column header — shared by every table using .portal-table, so a
   long Tracker List/Master Tracker/Project table etc. always keeps its
   header (Sr. No., Name, Status, Recruiter...) in view while only the rows
   scroll underneath. Reuses the table's own already-solid red header
   background, so rows never show through. Sticks relative to .table-wrap
   below (its nearest bounded scroll ancestor), independently of the
   toolbar's own sticky position relative to the page. */
.portal-table thead th{
  position:sticky;
  top:0;
  z-index:2;
}

.table-wrap{
  overflow:auto;
  border:0;
  border-radius:7px;
  /* Bounds the table so its OWN rows scroll internally (same pattern
     already proven on #projectsTable/.proj-table-wrap) instead of growing
     the whole page — which is what let the toolbar/header scroll out of
     view in the first place. Short tables are unaffected (no scrollbar
     appears unless content actually exceeds this height). */
  max-height:64vh;
}
/* The KPI-detail modal's own table body already sizes itself with flexbox
   inside a fixed-height card (see .kpi-detail-scroll) — this generic cap
   would only fight that layout, so it's excluded here. */
.table-wrap.kpi-detail-scroll{
  max-height:none;
}

/* KPI detail modal (showKpiDetail/showSubHrKpiDetail) — the title/count
   block sits outside the scrolling region so it can never scroll away, and
   only the table body scrolls inside .kpi-detail-scroll, with the header
   row pinned to the top of that scroll area. Scoped to this modal only. */
.kpi-detail-modal{display:flex;flex-direction:column;overflow:hidden;}
.kpi-detail-head{flex:0 0 auto;background:var(--surface);}
.kpi-detail-scroll{flex:1 1 auto;overflow-y:auto;}
.kpi-detail-scroll thead th{position:sticky;top:0;z-index:2;}
/* Profile-KPI candidates modal (showProfileKpiCandidatesModal) — same
   fixed-head/scrolling-body shell as above, but the body here is the real
   Tracker List table component (search bar + .table-wrap), which already
   handles its own sticky toolbar/header and row scrolling — this wrapper
   just lets that table claim the remaining modal height as a flex child. */
.kpi-detail-body{flex:1 1 auto;overflow-y:auto;min-height:0;}

.action-btn{padding:6px 10px;font-size:11px;margin-right:4px}
.danger{background:var(--danger)!important;color:var(--surface)!important;border-color:var(--danger-mid)!important}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.form-grid>div{display:flex;flex-direction:column;gap:5px}
.form-grid .full{grid-column:1/-1}
.form-grid label{font-size:12px;color:var(--brand)}

/* Small helper text under a field (e.g. Assign Requirement's per-field hints) —
   tighter than .report-range-note so it doesn't add unwanted vertical gap
   inside a compact .form-grid row. */
.form-grid .form-hint{margin:0;color:var(--ink-soft);font-size:10.5px;line-height:1.3;letter-spacing:normal;font-weight:400}
/* Read-only "auto-calculated" value (e.g. Positions Fulfilled): the AUTO pill
   makes clear it isn't an editable input despite sitting in the same grid. */
.acct-readonly-value.req-fulfilled-value{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* Assign/Edit Requirement modal (.req-form, the showModal() body wrapper).
   showModal() puts every form inside a generic .login-card, which has NO
   horizontal padding of its own — .login-card input/select/label (further
   down this file) instead each self-margin 32px from the edge, a convention
   written only for the single-column Login/Forgot-Password cards. Wrapped
   here in a two-column .form-grid, that same rule still matched the plain
   <input>/<select> (indenting them 32px) but not their sibling <small> hints,
   the autocomplete wrapper, or the read-only Positions Fulfilled box — none
   of which that old rule ever anticipated — leaving hints flush at 0 next to
   inputs indented 32px, and left the Remarks textarea flush against the
   card's own zero padding. Giving the wrapper real padding and neutralizing
   that stray width/margin for every field here (not the .login-card rule
   itself) fixes the misalignment without touching any other modal that
   still relies on the old per-field convention. */
.req-form{padding:0 32px 6px;box-sizing:border-box}
.req-form .form-grid label{margin:0}
.req-form .form-grid input,
.req-form .form-grid select,
.req-form .form-grid textarea{width:100%;max-width:100%;margin:0;box-sizing:border-box}
.req-form .search-suggest-wrap{width:100%;box-sizing:border-box}
.req-form + .modal-actions{margin:16px 32px 0}

/* Edit Candidate modal (.candidate-edit-form) — same padding-wrapper fix as
   .req-form above, reused rather than duplicated: a real section grid needs
   its own padding since showModal()'s generic .login-card has none, and the
   old per-field 32px self-margin convention doesn't apply cleanly to a two-
   column grid with section headers and mixed input/select/textarea/readonly
   rows. */
.candidate-edit-form{padding:0 28px 6px;box-sizing:border-box}
.candidate-edit-form .form-grid label{margin:0}
.candidate-edit-form .form-grid input,
.candidate-edit-form .form-grid select,
.candidate-edit-form .form-grid textarea{width:100%;max-width:100%;margin:0;box-sizing:border-box}
.candidate-edit-form .form-grid textarea{min-height:56px}
.candidate-edit-form + .modal-actions{margin:14px 28px 0}
/* A section header spans both columns and separates Candidate Information
   from Call Information — the first one sits flush against the modal top
   (no rule/gap above it), later ones get a divider line. */
.candidate-edit-form .form-section-title{
 grid-column:1/-1;
 margin:16px 0 2px;
 padding-top:14px;
 border-top:1px solid var(--line);
 font-size:11.5px;
 font-weight:800;
 letter-spacing:.4px;
 text-transform:uppercase;
 color:var(--brand);
}
.candidate-edit-form .form-section-title:first-child{margin-top:0;padding-top:0;border-top:none}
/* A field's label plus a small secondary action next to it (Add Call
   Remark / Reschedule Follow-up) — compact and outline-styled (like the
   existing .table-filter-btn secondary buttons elsewhere), not a second
   solid-red call-to-action competing with the modal's own Save button. */
.candidate-edit-form .field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0}
.candidate-edit-form .field-label-row label{margin:0}
.field-mini-btn{padding:2px 9px!important;font-size:10.5px!important;font-weight:700;border-radius:999px;margin:0!important}

/* Add Main HR / Add Sub-HR only — 16px between rows specifically for
   these two forms, without changing .form-grid's shared 12px gap used by
   every other form in the app. */
.form-grid.hr-form-grid{row-gap:16px}

/* Add/Edit Main HR + Add/Edit Sub-HR — Password/Confirm Password eye
   toggle and Profile Picture field, shared by both forms. The icon sits
   INSIDE the input, on the right, so the input itself needs room reserved
   for it (padding-right) instead of the icon taking up its own column. */
.pw-input-wrap{position:relative}
.pw-input-wrap input{width:100%;box-sizing:border-box;padding-right:40px}
.pw-eye-btn{
 position:absolute;
 top:50%;
 right:10px;
 transform:translateY(-50%);
 display:flex;
 align-items:center;
 justify-content:center;
 border:0;
 background:transparent;
 padding:0;
 margin:0;
 line-height:0;
 color:var(--ink-soft);
 cursor:pointer;
}
.pw-eye-btn.pw-eye-active{color:var(--brand)}
.profile-pic-field{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.profile-pic-preview-wrap{flex:0 0 auto}
.profile-pic-preview{
 width:56px;
 height:56px;
 border-radius:50%;
 object-fit:cover;
 display:block;
 border:1px solid var(--brand-border);
}
.profile-pic-preview-empty{
 display:grid;
 place-items:center;
 background:var(--brand-tint-2);
 color:var(--brand-dark);
 font-size:22px;
}
.profile-pic-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Adjust Profile Picture modal — the circular look is pure CSS
   (overflow:hidden on a round container) around a plain square canvas,
   matching how every other profile-picture display in this app already
   circle-crops a square image. */
.pic-adjust-viewport{
 width:220px;
 height:220px;
 margin:14px auto 0;
 border-radius:50%;
 overflow:hidden;
 border:1px solid var(--brand-border);
 background:var(--brand-tint-2);
 touch-action:none;
 cursor:grab;
}
.pic-adjust-viewport:active{cursor:grabbing}
.pic-adjust-viewport canvas{display:block;touch-action:none}
.pic-adjust-zoom{width:100%;margin-top:14px}

.form-grid input,
.form-grid select,
.form-grid textarea{
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--brand-border);
  border-radius:5px;
  padding:9px;
}

.form-grid textarea{min-height:80px}
/* Account Settings — read-only view for every non-Admin role. Styled like
   the disabled twin of a real .form-grid input so the layout matches
   Admin's own editable version, just visibly non-interactive. */
.acct-readonly-value{
  background:var(--surface-2);
  color:var(--ink-soft);
  border:1px solid var(--line-strong);
  border-radius:5px;
  padding:9px;
  font-size:13px;
  cursor:default;
}
.acct-readonly-value.pw-cell-inline{display:flex;align-items:center;gap:6px}
.acct-readonly-value .pw-value{color:var(--ink-soft)}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

/* Joined — Submit for Approval modal: own padding/margins so it doesn't
   depend on .login-card's sign-in-form-specific 32px margin convention. */
.joined-approval-card{padding:24px 26px 22px}
.joined-approval-card h2{margin:0 0 6px;padding:0;font-size:19px}
.joined-approval-card .joined-approval-subtitle{margin:0 0 18px;padding:0;color:var(--ink-soft);font-size:13px;line-height:1.4}
.joined-approval-card label{margin:0 0 6px;padding:0}
.joined-approval-card input,
.joined-approval-card .acct-readonly-value{width:100%;margin:0 0 16px;box-sizing:border-box}
.joined-approval-card .joined-approval-note{margin-bottom:0}
.joined-approval-note{
  display:flex;align-items:flex-start;gap:8px;
  margin-top:18px;
  padding:12px 14px;
  background:var(--danger-tint);
  border-radius:8px;
  color:var(--ink-soft);
  font-size:12.5px;
  line-height:1.5;
}
.joined-approval-note svg{flex:none;width:16px;height:16px;margin-top:1px;color:var(--danger)}
.joined-approval-card .modal-actions{margin:22px 0 0;padding-top:16px;border-top:1px solid var(--line)}

@media(max-width:700px){
  header{align-items:flex-start;gap:12px;flex-direction:column}
  header h1{font-size:23px}
  .summary{margin:0 12px;flex-wrap:wrap}
  .summary>div{width:120px}
  .board{margin:0 12px}
  .buttons{right:12px;bottom:12px}
  .form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .dashboard-grid{grid-template-columns:1fr}
}

/* V41 Main HR workspace */
.danger-btn{margin-left:6px;padding:7px 10px;border:1px solid var(--danger);background:var(--danger);color:var(--danger-tint);border-radius:4px;cursor:pointer}


/* V45 — Full viewport role pages. V29 first page remains unchanged. */
html, body{
  width:100%;
  min-width:100%;
  margin:0;
}
#portal.overlay{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:stretch !important;
  z-index:99999 !important;
}
#portal.overlay.hidden{
  display:none !important;
}
#portal .portal-card{
  width:100vw !important;
  height:100vh !important;
  min-width:100vw !important;
  min-height:100vh !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
}
#portal .portal-head{
  width:100% !important;
  flex:0 0 auto !important;
  box-sizing:border-box !important;
}
#portal #portalContent{
  width:100% !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  box-sizing:border-box !important;
}
#portal .portal-content{
  width:100% !important;
  min-height:100% !important;
  box-sizing:border-box !important;
}

/* V49 — Modal dialogs must appear above the full-screen role portal. */
.modal-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:100000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.55) !important;
  backdrop-filter:blur(4px) !important;
  -webkit-backdrop-filter:blur(4px) !important;
  padding:20px !important;
  box-sizing:border-box !important;
}
.modal-overlay .login-card{
  position:relative !important;
  z-index:100001 !important;
}

.logout-confirm-card{
  width:min(360px,92vw) !important;
  text-align:center;
  padding:28px 24px !important;
}
.logout-confirm-icon{
  width:56px;height:56px;margin:0 auto 14px;
  border-radius:50%;
  background:var(--brand-tint-2, rgba(255,159,10,.15));
  color:#f0a31a;
  display:flex;align-items:center;justify-content:center;
  font-size:28px;
}
.logout-confirm-card h2{margin:0 0 8px;color:var(--ink);font-size:18px}
.logout-confirm-text{margin:0 0 20px;color:var(--ink-soft);font-size:13px;white-space:pre-line}
.logout-confirm-text.multiline{text-align:left}
.logout-confirm-actions{display:flex;gap:10px;justify-content:center}
.logout-confirm-actions .action-btn{
  flex:1;
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 14px;
  font-size:12px;
}
.logout-confirm-yes{background:var(--danger,#e5484d) !important;color:#fff !important;border-color:var(--danger,#e5484d) !important}
.logout-confirm-no{background:transparent !important;color:var(--ink) !important;border:1px solid var(--brand-border) !important}
.logout-confirm-icon-success{background:rgba(37,201,111,.15);color:#25c96f}
.logout-confirm-ok{background:var(--brand) !important;color:#fff !important;border-color:var(--brand) !important}

/* V56 — visible tracker grid + direct column editing */
.tracker-main-table{
  overflow-x:auto !important;
  width:100%;
}

/* V57 — all tracker tables are directly editable; no EDIT column */
.direct-edit-wrap{
  width:100%;
  overflow-x:auto !important;
}
.direct-edit-table{
  border-collapse:collapse !important;
  min-width:1100px;
}

/* Project Status Tracker — 19 data columns, several of them free-text notes.
   table-layout is fixed with an explicit width per column: with the default
   "auto" layout, a column's width was decided from whichever rows happened
   to be visible, and company rows collapsing/expanding (or a group row's
   own single spanning cell) changed that set of visible rows — so columns
   visibly resized and the header drifted out of line with the data under
   it. A fixed layout makes every column's width constant no matter which
   rows are shown, which is what keeps the header and data columns locked
   together in every state. */
/* width:max-content (alongside table-layout:fixed) is what keeps every
   column at its declared width even inside a narrower panel — without it, a
   narrow viewport can still squeeze the table to fit, and an <input>/<select>
   inside a data cell has its own floor it won't shrink past while a plain
   text header does, so the two drift apart under exactly that squeeze. The
   table simply becomes wider than the panel and scrolls (.table-wrap already
   handles that), which is the responsive behaviour asked for here. */
#projectsTable{table-layout:fixed;width:max-content;min-width:3100px;}
/* Column width is now what actually sizes each cell, so the input/select
   inside no longer needs its own floor fighting the column for space. */
#projectsTable .direct-cell-input{min-width:0;}
/* Column order: [checkbox] SR. Revision Company ProjectName WhoWorking
   StartDate EndDate TargetDate DueDate CurrentStatus Comp3D Comp2D Priority
   ProgressNotes RiskLevel NextSteps Dependencies Remarks Overall% [Budget] Action
   Widths are set by class, not nth-child position — the checkbox column only
   renders for Project Admin, so every column after it would otherwise land
   one position earlier for the Projects profile and pick up the wrong width. */
#projectsTable .proj-col-sr{width:44px;}
#projectsTable .proj-revision-col{width:76px;text-align:center;}
#projectsTable .proj-col-wide{width:220px;}
#projectsTable .proj-col-date{width:150px;}
#projectsTable .proj-col-status{width:180px;}
#projectsTable .proj-col-pct{width:130px;}
#projectsTable .proj-col-note{width:260px;}
#projectsTable .proj-col-overall{width:110px;}
/* Budget Status (admin-only column) and Action are last, in either order —
   classed instead of nth-child since Budget Status only sometimes renders. */
#projectsTable .proj-budget-col{width:150px;}
#projectsTable .proj-action-col{width:150px;}
/* Fixed layout takes column widths from the FIRST row's cells — the
   checkbox column's own width rule already covers the header/body <td>, so
   only the group row's colspan cell needs to stay out of that calculation
   (it does not carry a width and does not need to). */
#projectsTable th.check-col,#projectsTable td.check-col{width:34px;}
/* Header text stays vertically centered no matter how a title wraps. */
#projectsTable thead th{vertical-align:middle;}
/* Sticky header — scoped to this table's own scrolling container so the
   rest of the app's tables/pages (which just scroll with the page) are
   unaffected. */
.proj-table-wrap{max-height:68vh;overflow:auto;}
#projectsTable thead th{position:sticky;top:0;z-index:5;}
/* Slightly more generous, still compact row padding — this table only. */
#projectsTable td,#projectsTable th{padding:8px 10px !important;}

/* Project Status Tracker — action row. Add Project/Import Excel/Collapse
   All stay together as one visual group; Delete All sits apart on the far
   right behind a divider, so a destructive action is never mistaken for
   one of the routine ones next to it. */
.proj-action-head{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:12px;
 margin-bottom:14px;
}
.proj-actions-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.proj-delete-all-btn{margin-left:auto;padding-left:16px;border-left:1px solid var(--line-strong);}

/* Select toggle, next to the Project Status Tracker's search bar — shows or
   hides every row/group/header checkbox at once. Kept as a small outlined
   button (filled only once active) rather than another full action-btn, so
   it reads as a quiet on/off control, not another command. */
/* This row holds the Select toggle AND the search bar side by side — make
   the whole row sticky (not just .table-search-bar) so both stay together;
   the inner search bar's own sticky is turned back off so it doesn't stick
   a second time independently of its Select-toggle neighbour. */
.proj-search-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;position:sticky;top:0;z-index:3;background:var(--surface);}
.proj-search-row .table-search-bar{margin:0;flex:1 1 auto;position:static;z-index:auto;background:transparent;}
.proj-search-row .table-search-bar .search-suggest-wrap{max-width:520px;flex:0 1 520px;}
.proj-select-toggle-btn{
 display:inline-flex;
 align-items:center;
 gap:6px;
 flex:0 0 auto;
 padding:7px 12px;
 font:inherit;
 font-size:11px;
 font-weight:700;
 letter-spacing:.2px;
 white-space:nowrap;
 background:var(--surface);
 color:var(--ink-soft);
 border:1px solid var(--line-strong);
 border-radius:5px;
 cursor:pointer;
}
.proj-select-toggle-btn:hover{background:var(--brand-tint);border-color:var(--brand-border);color:var(--ink);}
.proj-select-toggle-btn.active{background:var(--brand);color:#fff;border-color:var(--brand);}

/* Project Status Tracker — company-wise grouping. Each company is one
   compact, single-line header row: chevron, name, project count — nothing
   else, so it reads as a row, not a card. Its projects sit underneath as
   indented child rows, collapsed by default, keeping every existing
   column/behaviour once expanded. */
#projectsTable tr.proj-group-row{
 cursor:pointer;
 background:var(--surface-2);
 border-left:3px solid var(--brand-border);
}
#projectsTable tr.proj-group-row:hover{
 background:var(--brand-tint);
 border-left-color:var(--brand);
}
#projectsTable tr.proj-group-row.expanded{
 background:var(--brand-tint);
 border-left-color:var(--brand);
}
#projectsTable tr.proj-group-row td.proj-group-cell{
 padding:7px 16px;
 white-space:nowrap;
 border-bottom:1px solid var(--line);
 display:flex;
 align-items:center;
 gap:8px;
}
.proj-group-chevron{
 width:12px;
 height:12px;
 flex:0 0 auto;
 fill:none;
 stroke:var(--brand);
 stroke-width:2.6;
 stroke-linecap:round;
 stroke-linejoin:round;
 transition:transform .15s ease;
}
#projectsTable tr.proj-group-row.expanded .proj-group-chevron{transform:rotate(90deg);}
.proj-group-name{
 font-weight:700;
 font-size:13px;
 color:var(--ink);
}
.proj-group-count{
 font-size:11px;
 font-weight:500;
 color:var(--ink-soft);
}
.proj-group-count::before{content:"\2022";margin-right:8px;color:var(--line-strong);}

/* Child rows: a slightly deeper indent on the Company cell plus a faint
   left rule reads as "belongs to the group above" without adding another
   full column or a busy tree-line UI. A very light, neutral hover (distinct
   from the stronger brand-tint used for the selected/group-expanded states)
   keeps the effect subtle and easy to tell apart from those. */
#projectsTable tr.proj-child-row{border-left:3px solid transparent;}
#projectsTable tr.proj-child-row td:nth-child(4){padding-left:30px;border-left:2px solid var(--line);}
#projectsTable tbody tr.proj-child-row:hover{background:var(--line-soft) !important;}
#projectsTable tbody tr.proj-child-row.row-selected:hover{background:var(--brand-tint-2) !important;}

/* Selected row — a subtle full-row tint instead of only the checkbox
   showing state, same accent used everywhere else in the tracker. */
#projectsTable tr.proj-child-row.row-selected{background:var(--brand-tint);}
#projectsTable tr.proj-child-row.row-selected:hover{background:var(--brand-tint-2);}
#projectsTable tr.proj-child-row.row-selected td:nth-child(4){border-left-color:var(--brand-border);}

/* Company group checkbox — selects/deselects every project in that company
   at once. Sits before the chevron; stopPropagation on its own onclick (in
   the markup) keeps a checkbox click from also expanding/collapsing the row. */
.proj-group-check{
 width:14px;
 height:14px;
 margin:0;
 accent-color:var(--brand);
 cursor:pointer;
}

/* Compact selection bar — small text + text-style action links instead of
   full toolbar buttons, so an active selection reads as a slim status
   strip next to the other buttons rather than another large button. */
.proj-select-bar{
 display:inline-flex;
 align-items:center;
 gap:7px;
 margin-left:4px;
 padding:4px 10px;
 background:var(--surface);
 border:1px solid var(--brand-border);
 border-radius:5px;
 font-size:11.5px;
}
.proj-select-count{font-weight:700;color:var(--brand-dark);}
.proj-select-sep{color:var(--line-strong);}
.proj-select-link{
 background:none;
 border:none;
 padding:0;
 font:inherit;
 font-weight:600;
 color:var(--brand);
 cursor:pointer;
 text-decoration:underline;
 text-underline-offset:2px;
}
.proj-select-link:hover{color:var(--brand-hover);}

.direct-edit-table th,
.direct-edit-table td{
  border:0 !important;
  border-bottom:1px solid var(--line-soft) !important;
  padding:7px 8px !important;
  vertical-align:middle !important;
}
.direct-edit-table th{
  background:var(--brand) !important;
}
.direct-cell-input{
  width:100%;
  min-width:90px;
  min-height:30px;
  box-sizing:border-box;
  padding:5px 7px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid transparent;
  border-radius:3px;
  font:inherit;
}
.direct-cell-input:hover{
  background:var(--brand-tint);
}
.direct-cell-input:focus{
  border-color:var(--brand);
  outline:none;
  background:var(--surface);
}
/* Editable cells must read as plain table text, not as a grid of input
   boxes. `.portal-table select` (0,1,1) out-specifies `.direct-cell-input`
   (0,1,0), so every dropdown was drawing its own bordered box; these
   two-class selectors win it back. The border only appears on focus, which
   is when it actually tells you something. */
.portal-table .direct-cell-input,
.direct-edit-table .direct-cell-input,
.inline-edit-table .direct-cell-input{
  border:1px solid transparent;
  background:transparent;
  border-radius:3px;
}
.portal-table .direct-cell-input:hover,
.direct-edit-table .direct-cell-input:hover,
.inline-edit-table .direct-cell-input:hover{
  background:var(--brand-tint);
  border-color:transparent;
}
.portal-table .direct-cell-input:focus,
.direct-edit-table .direct-cell-input:focus,
.inline-edit-table .direct-cell-input:focus{
  background:var(--surface);
  border-color:var(--brand);
}

.direct-edit-table td:first-child{
  min-width:45px;
  white-space:nowrap;
}
/* Company Policies — Admin writes them, Main HR and Sub-HR only read. */
.policy-note{
  margin:0 0 14px;
  color:var(--ink-soft);
  font-size:11px;
}
.policy-list{
  display:grid;
  gap:12px;
}
.policy-card{
  background:var(--surface);
  border:1px solid var(--brand-border);
  border-radius:8px;
  padding:16px 18px;
}
.policy-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}
.policy-card-head h3{
  margin:0 0 7px;
  font-size:15px;
  color:var(--ink);
}
.policy-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--ink-soft);
  font-size:10px;
}
.policy-category{
  background:var(--brand-tint);
  color:var(--brand-dark);
  border-radius:20px;
  padding:3px 10px;
  letter-spacing:.3px;
}
.policy-card-actions{
  display:flex;
  gap:6px;
  flex-shrink:0;
}
.policy-text{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line-soft);
  color:var(--ink);
  font-size:12px;
  line-height:1.75;
}
.policy-empty{
  padding:28px;
  text-align:center;
  color:var(--ink-soft);
  font-size:12px;
  border:1px dashed var(--brand-border);
  border-radius:8px;
}

#tasksTable td:nth-child(7){
  max-width:130px;
}
#tasksTable td:nth-child(7) .direct-cell-input{
  width:auto;
  min-width:100px;
  max-width:130px;
}

/* V60 — Admin control center */
.admin-home-note{
  margin-top:18px;
  padding:24px;
  border:1px solid var(--border);
  background:var(--brand-tint);
  border-radius:6px;
}
.admin-home-note h2{margin-top:0}
.alert-card{border-color:var(--danger-mid) !important}
.alert-badge{
  display:inline-block;
  padding:4px 8px;
  border:1px solid var(--border);
  border-radius:3px;
  font-size:11px;
  font-weight:700;
}
.alert-overdue{border-color:var(--danger);color:var(--danger)}
.alert-today{border-color:var(--warning);color:var(--warning)}
.alert-follow-up{border-color:var(--brand);color:var(--brand)}

/* V61 — Admin performance and filtering */
.admin-quick-actions{margin-top:16px}

/* V62 — Daily historical reports */
.section-head{
  margin-bottom:26px;
}
.section-head h2{
  margin:0 0 14px;
}
.report-controls{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-left:auto;
  background:var(--brand-tint);
  border:1px solid var(--brand-border);
  border-radius:8px;
  padding:12px 16px;
}
.report-controls label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.5px;
  color:var(--brand-dark);
  text-transform:uppercase;
  margin-right:2px;
}
.report-controls select,
.report-controls input[type="date"]{
  min-width:170px;
  padding:9px 14px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--brand);
  border-radius:6px;
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  transition:box-shadow .15s ease;
}
.report-controls select:hover,
.report-controls input[type="date"]:hover{
  border-color:var(--brand-dark);
}
.report-controls select:focus,
.report-controls input[type="date"]:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(198,40,40,.15);
}
.report-controls input[type="date"]::-webkit-calendar-picker-indicator{
  filter:invert(20%) sepia(90%) saturate(3000%) hue-rotate(340deg);
  cursor:pointer;
  padding:2px;
}

/* V63 — Daily Call List date history */
.call-date-controls{
 display:flex;
 align-items:center;
 gap:8px;
 margin-left:auto;
 flex-wrap:wrap;
}
.call-date-controls label{
 font-size:11px;
 color:var(--brand);
 font-weight:700;
 letter-spacing:.4px;
}
.call-date-controls input[type="date"]{
 padding:7px 9px;
 background:var(--surface);
 color:var(--ink);
 border:1px solid var(--border);
 border-radius:3px;
}
/* V64 — Backup & Data Management */
.backup-panel{
 margin-top:18px;
 padding:22px;
 border:1px solid var(--border);
 border-radius:6px;
 background:var(--brand-tint);
}
.backup-actions{
 display:flex;
 gap:10px;
 flex-wrap:wrap;
 margin-top:16px;
}
.danger-btn{
 border-color:var(--danger-mid) !important;
 color:var(--danger-mid) !important;
}
/* Joined Approvals (Admin/Main HR) — ACTION column: APPROVE/REJECT stack
   vertically, one per row, instead of colliding side by side in a
   too-narrow cell. */
.joined-approvals-table th:last-child,
.joined-approvals-table td:last-child{
 width:140px;
 min-width:140px;
}
.joined-approval-actions{
 display:flex;
 flex-direction:column;
 gap:8px;
}
.joined-approval-actions .action-btn{
 width:100%;
 margin:0;
 text-align:center;
}
/* Admin Master Tracker — Select Profile: a compact nested dropdown, not a
   page. Level 1 opens directly under the button; picking Main HR/Sub-HR
   opens level 2 as its own small box positioned to the right, like a
   standard nested menu. */
.admin-tracker-profile-hint-row{display:flex;align-items:center;gap:12px;margin:-14px 0 14px}
.admin-tracker-profile-hint{color:var(--ink-soft);font-size:12px}
.admin-tracker-profile-hint b{color:var(--ink)}
/* KPI tiles for whichever profile Admin has drilled into — same tile
   markup/classes as Main HR's own dashboard, just a shorter row and a
   little breathing room above/below since it sits between the profile bar
   and the tracker table rather than a full dashboard. */
.admin-tracker-kpi-grid{margin:2px 0 14px;grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:900px){.admin-tracker-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.admin-tracker-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.admin-tracker-kpi-grid{grid-template-columns:1fr}}
/* Candidate Target Distribution (Main HR → Assign Target) — was an inline
   style locking it to 5 columns, so it couldn't respond to any of
   .mhr-kpi-grid's own breakpoints at all on a narrower window. */
.admin-profile-dropdown{
 position:absolute;
 top:calc(100% + 4px);
 left:0;
 z-index:20;
 min-width:150px;
 padding:4px;
 background:var(--surface);
 border:1px solid var(--line-strong);
 border-radius:7px;
 box-shadow:0 6px 18px rgba(0,0,0,.14);
}
.admin-dd-item{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 width:100%;
 padding:7px 10px;
 border:0;
 border-radius:5px;
 background:none;
 color:var(--ink);
 font:inherit;
 font-size:12px;
 text-align:left;
 cursor:pointer;
 white-space:nowrap;
}
.admin-dd-item:hover{background:var(--brand-tint)}
/* Candidate Target tables' compact 3-dot row-action menu — trigger reuses
   the existing .action-btn.table-filter-btn look (white/red outline), the
   menu itself reuses .admin-dd-item rows; positioned `fixed` via JS
   (toggleRowActionMenu()) so it escapes the table's own scroll clipping. */
.row-action-wrap{display:inline-flex}
/* The History dropdown trigger's chevron (.pp-chev is normally sized only
   inside .pp-wrap's own "Select Profile" picker) -- same 14px here. */
.row-action-wrap .pp-chev{width:14px;height:14px;flex:0 0 auto;margin-left:2px}
/* Bare icon trigger, no box/border/background/shadow -- just black,
   slightly bold dots with a transparent hit area and a subtle hover tint
   (never a border, so it never reads as a bordered button). */
.row-action-trigger{
 display:inline-flex;align-items:center;justify-content:center;
 width:28px;height:28px;padding:0;
 border:0;background:transparent;box-shadow:none;border-radius:6px;
 color:var(--ink);cursor:pointer;
}
.row-action-trigger:hover{background:var(--surface-2)}
.row-action-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.row-action-trigger svg{color:inherit}
.row-action-menu{
 z-index:2000;
 min-width:180px;
 padding:4px;
 background:var(--surface);
 border:1px solid var(--line-strong);
 border-radius:7px;
 box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.row-action-menu.hidden{display:none}
.row-action-menu .admin-dd-item{justify-content:flex-start}
.row-action-menu .admin-dd-item svg{flex:none;width:15px;height:15px}
.row-action-menu .admin-dd-item.danger{color:var(--danger)}
.row-action-menu .admin-dd-item.danger:hover{background:var(--brand-tint)}

.backup-meta{
 margin-top:18px;
 color:var(--ink-soft);
 font-size:12px;
}

/* V77 — Holidays module: unified table, year/filter toolbar, inline row dots */
.holidays-head{margin-bottom:14px}
.holidays-head h2{margin:0;font-size:22px;line-height:1.15;color:var(--ink)}
.holidays-head p{margin:3px 0 0;font-size:12px;color:var(--ink-soft)}
.holidays-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:14px}
.holidays-year-select{height:34px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);font-size:12.5px;font-weight:600}
.holidays-toolbar .status-filter-list{margin:0}
.holidays-toolbar .action-btn{margin-left:auto}
.holiday-type-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.3px}
.holiday-type-pill.holiday-type-national{background:var(--brand-tint);color:var(--brand)}
.holiday-type-pill.holiday-type-company{background:var(--success-tint,#E3F6EC);color:var(--success-mid)}
.holiday-day-cell{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* V68 — Admin Report Center */
.report-range-note{
  margin:10px 0 14px;
  color:var(--ink-soft);
  font-size:12px;
}

/* V73 — export controls in HR/Sub-HR/Admin portal header only */
.portal-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.export-head-btn{
  border:1px solid var(--border);
  background:transparent;
  color:var(--brand);
  padding:8px 12px;
  border-radius:3px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.export-head-btn:hover{
  background:var(--brand-tint);
}

/* V75 — Account Settings */

/* Leave Management — pending-approval hint under the status pill */
.leave-note{display:block;margin-top:4px;font-size:9px;color:var(--ink-soft)}

/* Leave Management — status badges */
.leave-status{
 display:inline-block;padding:3px 9px;border-radius:12px;
 font-size:10px;font-weight:700;letter-spacing:.3px;
}
.leave-status.leave-pending{background:var(--warning-tint);color:var(--warning)}
.leave-status.leave-approved{background:var(--success-tint);color:var(--success)}
.leave-status.leave-rejected{background:var(--brand-tint);color:var(--danger)}
.leave-status.leave-cancelled{background:var(--surface-2);color:var(--ink-mute)}

/* Leave Management — balance cards */
.leave-balance-card .metric{display:flex;align-items:baseline;gap:4px}
.leave-balance-total{font-size:14px;font-weight:600;color:var(--ink-soft)}

/* Leave Management — calendar */
.leave-cal-weekdays{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;
 margin-bottom:6px;font-size:10px;font-weight:700;color:var(--ink-soft);
 text-align:center;letter-spacing:.4px;
}
.leave-cal-grid{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;
}
.leave-cal-cell{
 min-height:108px;border:1px solid var(--brand-border);border-radius:6px;
 padding:6px;background:var(--surface);overflow:hidden;
}
.leave-cal-cell.leave-cal-empty{border:0;background:transparent}
.leave-cal-daynum{font-size:11px;font-weight:700;color:var(--ink);margin-bottom:4px}
.leave-cal-chip{
 font-size:11px;font-weight:600;line-height:1.35;
 padding:3px 7px;margin-bottom:3px;border-radius:4px;
 background:var(--brand);color:var(--surface);
 border-left:3px solid var(--brand-darker);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.leave-cal-more{font-size:10px;font-weight:600;color:var(--brand-dark)}
@media (max-width:900px){
 .leave-cal-weekdays,.leave-cal-grid{grid-template-columns:repeat(7,minmax(28px,1fr))}
 .leave-cal-cell{min-height:52px;padding:4px}
 .leave-cal-chip{display:none}
}

/* Work Management — priority and status badges */
.task-priority{
 display:inline-block;padding:3px 9px;border-radius:12px;
 font-size:10px;font-weight:700;letter-spacing:.3px;
}
.task-priority-low{background:var(--success-tint);color:var(--success)}
.task-priority-medium{background:var(--warning-tint);color:var(--warning)}
.task-priority-high{background:var(--brand-tint);color:var(--danger)}
.task-status{
 display:inline-block;padding:3px 9px;border-radius:12px;
 font-size:10px;font-weight:700;letter-spacing:.3px;
}
.task-status-pending{background:var(--warning-tint);color:var(--warning)}
.task-status-in-progress{background:var(--brand-tint);color:var(--brand-dark)}
.task-status-completed{background:var(--success-tint);color:var(--success)}
/* Daily Call List — a row whose call is locked/done for the viewed date
   (see dailyCallListRows()); tinted so a completed call is obviously
   distinct from a still-pending one at a glance. */
.call-row-done{background:var(--success-tint)}
.task-overdue-note{color:var(--danger)}

/* Admin user table — password reveal */
.pw-cell{white-space:nowrap}
.pw-value{
 display:inline-block;min-width:72px;
 font-family:"Courier New",monospace;font-size:12px;font-weight:700;color:var(--ink);
 letter-spacing:1px;
}

/* Per-table live search bar — sticky at the top of the page's own scroll
   area (.mhr-main) so it never scrolls away, independently of the table's
   own sticky column header below it (see .portal-table thead th). Needs a
   solid background of its own since rows can scroll up underneath it. */
.table-search-bar{
 display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;
 /* position:sticky establishes its own stacking context, so this z-index is
    only compared against other elements OUTSIDE that context — e.g. the
    Tracker List's own sticky pinned-column header cells further down this
    file (z-index:4 there). It must stay higher than any of those or the
    autocomplete dropdown living inside this bar (its own z-index:60 is
    trapped inside this same context) gets painted underneath the table
    instead of above it. */
 position:sticky;top:0;z-index:10;background:var(--surface);
}
.table-search-bar input{
 width:100%;box-sizing:border-box;padding:8px 11px;
 background:var(--surface);color:var(--ink);
 border:1px solid var(--border);border-radius:4px;font-size:12px;
}
.table-search-bar .search-suggest-wrap{max-width:420px;min-width:200px;flex:0 1 420px}
.table-search-count{font-size:10px;color:var(--ink-soft);white-space:nowrap}

/* Filter button and the status list it opens on tracker lists. The list is a
   normal in-flow row, not a floating menu: an absolutely positioned dropdown
   was being clipped by the scrolling main panel and never appeared. */
/* Selectors are two classes deep on purpose. `.action-btn` is defined later
   in this file, and Admin paints every `button` white — single-class rules
   lost to both, so Admin's status chips were white text on white. */
.action-btn.table-filter-btn{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 padding:7px 11px;
 background:var(--surface);
 border-color:var(--brand-border);
 color:var(--brand);
}
.action-btn.table-filter-btn:hover{
 background:var(--brand-tint);
 border-color:var(--brand);
 color:var(--brand);
}
.filter-icon line{stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
.filter-icon circle{stroke:currentColor;stroke-width:2.1;fill:var(--surface)}
.action-btn.table-filter-btn:hover .filter-icon circle{fill:var(--brand-tint)}
.action-btn.table-filter-btn.active,
.action-btn.table-filter-btn.active:hover{
 background:var(--brand);
 border-color:var(--brand);
 color:var(--surface);
}
.action-btn.table-filter-btn.active .filter-icon circle{fill:var(--brand)}
.status-filter-list{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:6px;
 margin:0 0 12px;
}
.status-filter-list .status-filter-label{
 font-size:9px;
 letter-spacing:1.2px;
 color:var(--ink-soft);
 margin-right:2px;
}
.status-filter-list .status-chip{
 padding:5px 11px;
 border:1px solid var(--brand-border);
 border-radius:20px;
 background:var(--surface);
 color:var(--ink);
 font:inherit;
 font-size:11px;
 cursor:pointer;
 white-space:nowrap;
}
/* V83 — the Tracker List Filter button's status panel. Only the menus built by
   statusFilterList() carry .table-filter-menu, so the plain in-flow chip rows
   (Gantt, Report Center, Holidays, User Management) keep their own layout. */
.status-filter-list.table-filter-menu{
 position:fixed;
 z-index:2000;
 margin:0;
 max-width:min(330px,calc(100vw - 24px));
 padding:10px;
 gap:6px;
 background:var(--surface);
 border:1px solid var(--line-strong);
 border-radius:9px;
 box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.status-filter-list.table-filter-menu.hidden{display:none}
.status-filter-list.table-filter-menu .status-filter-label{width:100%;margin:0 0 2px}
.status-filter-list .status-chip:hover{background:var(--brand-tint);color:var(--ink)}
.status-filter-list .status-chip.selected,
.status-filter-list .status-chip.selected:hover{
 background:var(--brand);
 border-color:var(--brand);
 color:var(--surface);
}
/* Admin gives every input a brand border; keep the search box like HR's. */
.admin-dashboard-shell .table-search-bar input{border-color:var(--border)}

/* Search suggestions (type-ahead) */
.search-suggest-wrap{position:relative;flex:1;min-width:220px;max-width:700px}
.search-suggest-wrap input{width:100%;box-sizing:border-box;padding-left:30px}
/* Plain form-field autocomplete (e.g. Add Project's Company field) reuses
   this same wrapper for its suggestion dropdown + outside-click-to-close
   behavior, but has no search icon — keep its input's normal padding. */
.form-grid .search-suggest-wrap{min-width:0;max-width:none;flex:none}
.form-grid .search-suggest-wrap input{padding-left:9px}
.search-suggest-wrap .search-icon{
 position:absolute;left:10px;top:50%;transform:translateY(-50%);
 pointer-events:none;color:var(--ink-soft);
}
.search-suggest-wrap .search-icon circle{fill:none;stroke:currentColor;stroke-width:2}
.search-suggest-wrap .search-icon line{stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* Small "×" control shown once a Job Title suggestion is picked (Tracker
   List search bars) — the box itself still shows the selected title as its
   text; this just clears that exact-match filter back to a normal search. */
.search-suggest-wrap.job-title-active input{padding-right:26px}
.job-title-filter-chip{
 position:absolute;top:50%;right:8px;transform:translateY(-50%);
 display:flex;align-items:center;justify-content:center;
 width:18px;height:18px;border:0;border-radius:50%;
 background:var(--brand-tint);color:var(--brand);
 font-size:13px;line-height:1;padding:0;cursor:pointer;
}
.job-title-filter-chip:hover{background:var(--brand);color:var(--surface)}
/* Small caps heading above the Job Title suggestions, same look as the
   STATUS filter's own label. */
.search-suggestion-group-label{
 padding:8px 14px 2px;font-size:9px;letter-spacing:1.2px;
 color:var(--ink-soft);font-weight:700;
}
/* One shared suggestion-dropdown look for every search bar in the app —
   Every table search bar, and the Add Project Company
   autocomplete all render into a ".search-suggestions" box full of
   ".search-suggestion" buttons, so styling these here applies everywhere
   at once. */
.search-suggestions{
 position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:60;
 background:var(--surface);border:1px solid var(--brand-border);border-radius:8px;
 box-shadow:0 8px 20px rgba(0,0,0,.10);overflow:hidden;max-height:224px;overflow-y:auto;
}
.search-suggestion{
 display:flex;align-items:flex-start;gap:10px;
 width:100%;text-align:left;background:transparent;
 border:0;
 padding:9px 14px;min-height:42px;box-sizing:border-box;
 cursor:pointer;
}
.search-suggestion:hover,.search-suggestion:focus-visible{background:var(--brand-tint);outline:none}
.search-suggestion-icon{flex:0 0 16px;margin-top:2px;display:flex;align-items:center;justify-content:center;color:var(--ink-soft)}
.search-suggestion-icon svg{stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.search-suggestion-body{min-width:0;flex:1}
.search-suggestion-top{display:flex;align-items:baseline;gap:8px}
.search-suggestion-type{
 font-size:8px;font-weight:bold;letter-spacing:.4px;color:var(--brand);
 white-space:nowrap;flex:0 0 auto;
}
.search-suggestion-label{font-size:12px;font-weight:600;color:var(--ink)}
.search-suggestion-label mark{background:none;color:var(--brand);font-weight:700}
.search-suggestion small{display:block;color:var(--ink-soft);font-size:10px;margin-top:3px}
.search-suggestion.active{background:var(--brand-tint)}
/* Optional per-suggestion count (e.g. Add Project's Company field showing
   how many existing projects use that company). */
.search-suggestion-count{
 flex:0 0 auto;margin-left:auto;align-self:center;
 font-size:10px;font-weight:700;color:var(--ink-soft);
 background:var(--line-soft);padding:2px 7px;border-radius:10px;
}
/* "No match" state — an informational line plus one explicit action to
   accept the typed text as a brand-new value. */
.search-suggestion-empty{padding:9px 14px 4px;font-size:11px;color:var(--ink-soft)}
.search-suggestion-add .search-suggestion-label{color:var(--brand)}

/* V79 — Alert Center */
.alert-center-note{margin:10px 0;color:var(--ink-soft);font-size:12px}

/* V80 — Print controls only; V64 main page remains unchanged */

/* V81 — Admin Maintenance / Google Sheet Connection */
.backup-panel input,
.backup-panel select{
 width:100%;
 box-sizing:border-box;
 padding:9px 11px;
 background:var(--surface);
 color:var(--ink);
 border:1px solid var(--border);
 border-radius:3px;
}

/* V82 — Keep the Admin navigation usable when many tabs exist */
.admin-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  overflow-x:visible;
}
.admin-tabs .tab{
  flex:0 0 auto;
  white-space:nowrap;
}

/* V88 — compact Google Sheet sync indicator */
.cloud-sync-indicator{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0 8px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.2px;
  vertical-align:middle;
  white-space:nowrap;
  background:var(--surface);
}
.cloud-sync-indicator .sync-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
  background:var(--ink-mute);
  box-shadow:0 0 0 2px rgba(123,135,153,.12);
}
.cloud-sync-indicator.sync-ok{
  border-color:var(--success);
}
.cloud-sync-indicator.sync-ok .sync-dot{
  background:var(--success-mid);
  box-shadow:0 0 8px rgba(32,196,106,.75);
}
.cloud-sync-indicator.sync-ok .sync-label{
  color:var(--success-mid);
}
.cloud-sync-indicator.sync-bad{
  border-color:var(--danger-mid);
}
.cloud-sync-indicator.sync-bad .sync-dot{
  background:var(--danger-mid);
  box-shadow:0 0 8px rgba(239,75,85,.75);
}
.cloud-sync-indicator.sync-bad .sync-label{
  color:var(--danger-mid);
}
.cloud-sync-indicator.sync-busy{
  border-color:var(--warning);
}
.cloud-sync-indicator.sync-busy .sync-dot{
  background:var(--warning-mid);
  box-shadow:0 0 8px rgba(240,200,75,.7);
}
.cloud-sync-indicator.sync-busy .sync-label{
  color:var(--warning-mid);
}
.cloud-sync-indicator.sync-off .sync-label{
  color:var(--ink-soft);
}

/* V88 fixed — header sync indicator */
.portal-head-actions .cloud-sync-indicator{
  margin-right:0;
  margin-left:0;
  flex:0 0 auto;
}

.delete-row-btn{
  background:var(--danger);
  border:1px solid var(--danger-mid);
  color:var(--surface);
  border-radius:4px;
  padding:5px 9px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.delete-row-btn:hover{
  background:var(--danger-mid);
}

.portal-table select{
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--brand-border);
  border-radius:4px;
  padding:6px 8px;
}

.sync-toggle-btn{margin-left:8px;padding:8px 14px;border:1px solid var(--brand-border);border-radius:5px;background:var(--surface);color:var(--ink);cursor:pointer;font-weight:700;font-size:12px;}
.sync-toggle-on{border-color:var(--success-mid);color:var(--success-mid);}
.sync-toggle-off{border-color:var(--ink-mute);color:var(--ink-soft);}

.sync-save-btn{border-color:var(--success-mid);color:var(--success-mid);}
.sync-load-btn{border-color:var(--brand);color:var(--brand);}


.status-summary-grid{margin-top:14px;}
.status-summary-grid .card{min-height:92px;}


/* V109: detailed job-level table is the primary view */

/* V112: all eight Main HR summary cards in one line on desktop */
@media (min-width:1101px){
  .dashboard-grid{
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
    width:100%;
  }
  .dashboard-grid .card{
    min-width:0;
    overflow:hidden;
  }
  .dashboard-grid .card h3{
    white-space:nowrap;
    font-size:12px;
  }
  .dashboard-grid .card p{
    white-space:nowrap;
  }
}

/* V113 FINAL: Main HR summary = exactly 1 row × 8 columns */
@media (min-width: 900px) {
  .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dashboard-grid > * {
    grid-column: auto !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .dashboard-grid .card {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .dashboard-grid h3 {
    white-space: nowrap !important;
    font-size: 11px !important;
  }
}

/* V114: Main HR top summary is ONE grid containing all 8 cards */
@media (min-width: 900px){
  .portal-content > .dashboard-grid{
    display:grid !important;
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
    grid-template-rows:1fr !important;
    gap:10px !important;
  }
  .portal-content > .dashboard-grid > .card{
    grid-column:auto !important;
    grid-row:1 !important;
    min-width:0 !important;
    width:auto !important;
  }
}

/* V115: clear gap between the 8 summary cards and navigation tabs */
.portal-content > .dashboard-grid:first-child{
  margin-bottom: 24px !important;
}
.portal-content > .tabs{
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  clear: both !important;
}

/* V116: Main HR, Sub-HR and Admin summary cards — one row where 8 cards exist */
@media (min-width: 1000px){
  .dashboard-grid{
    display:grid !important;
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
    grid-template-rows:1fr !important;
    gap:10px !important;
    width:100% !important;
  }
  .dashboard-grid > .card{
    grid-column:auto !important;
    grid-row:1 !important;
    min-width:0 !important;
    width:auto !important;
    overflow:hidden !important;
  }
  .dashboard-grid .card h3{
    white-space:nowrap !important;
    font-size:11px !important;
  }
}

/* Keep a visible gap between dashboard cards and navigation */
.dashboard-grid{
  margin-bottom:24px !important;
}
.tabs{
  margin-top:0 !important;
  margin-bottom:16px !important;
}

/* V117 VERIFIED: Sub-HR top summary is ONE grid with exactly 8 cards. */
/* V117 VERIFIED: Admin primary summary is one grid with exactly 8 cards. */
/* V118 VERIFIED: Sub-HR uses one actual 8-card container */
/* V119: target is controlled by Main HR only; Sub-HR sees a read-only value. */

.direct-edit-table .action-btn,.direct-edit-table .delete-row-btn{margin:2px;white-space:nowrap;}


/* MAIN HR DASHBOARD V1 - approved UI direction */
.mhr-dashboard{
 display:grid;
 grid-template-columns:208px minmax(0,1fr);
 height:calc(100vh - 120px);
 background:var(--surface);
 border:1px solid var(--brand-border);
 border-radius:10px;
 overflow:hidden;
 box-shadow:0 18px 60px rgba(0,0,0,.22);
}
.mhr-sidebar{
 background:linear-gradient(180deg,var(--brand-dark) 0%,var(--brand-deep) 100%);
 border-right:1px solid var(--brand-darker);
 padding:18px 10px;
 display:flex;
 flex-direction:column;
 min-height:100%;
 overflow-y:auto;
}
.mhr-main{min-height:0;overflow-y:auto;}
.mhr-brand{display:flex;gap:10px;align-items:center;padding:2px 8px 18px;border-bottom:1px solid var(--brand-darker)}
.mhr-brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));display:grid;place-items:center;font-size:25px;color:var(--surface);box-shadow:0 8px 24px rgba(54,104,255,.28)}
/* Sidebar's own avatar when a real profile picture exists — same slot/size
   as .mhr-brand-mark, but genuinely circular (the mark itself is a
   rounded square) since this is a real photo, not a glyph. */
.mhr-brand-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 38px;box-shadow:0 8px 24px rgba(54,104,255,.28)}
.mhr-brand strong{display:block;font-size:13px;letter-spacing:.4px;color:var(--surface)}
.mhr-brand small{display:block;color:var(--on-brand-soft);font-size:8px;margin-top:3px;letter-spacing:.8px}
.mhr-side-title{font-size:9px;color:var(--on-brand-soft);letter-spacing:1.6px;padding:18px 10px 7px}
.mhr-side-item{width:100%;border:0;background:transparent;color:var(--on-brand-soft);text-align:left;padding:10px 10px;border-radius:7px;margin:2px 0;font-size:12px;display:flex;gap:11px;align-items:center}
.mhr-side-item:hover{background:var(--brand-darker);color:var(--surface)}
.mhr-side-item.active{background:linear-gradient(90deg,var(--brand),var(--brand-dark));color:var(--surface);box-shadow:0 6px 18px rgba(142,31,31,.22)}
.mhr-side-item span{flex:1}
.mhr-side-item svg{color:inherit;flex:none}
.mhr-side-item svg *{color:inherit}
.mhr-side-spacer{flex:1}
.mhr-main{padding:18px 20px 28px;min-width:0;background:radial-gradient(circle at 55% -10%,rgba(198,40,40,.06),transparent 36%),var(--surface)}
.mhr-dashboard-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.mhr-dashboard-title>div:first-child span{font-size:10px;color:var(--brand);letter-spacing:2px}
.mhr-dashboard-title h2{margin:4px 0 2px;font-size:25px;letter-spacing:.3px}
.mhr-dashboard-title p{margin:0;color:var(--ink-soft);font-size:11px}
.mhr-title-right{display:flex;align-items:center;gap:18px;margin-left:auto}
.mhr-user{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:11px}
.mhr-user b{display:block;font-size:13px;font-weight:700;color:var(--ink);line-height:1.25}
.mhr-user small{display:block;color:var(--ink-soft);font-size:10px;font-weight:600;letter-spacing:.2px;margin-top:2px}
.mhr-user-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--brand-tint-2);color:var(--brand-dark);font-size:10px;object-fit:cover}
/* Top-right user block — no avatar (kept sidebar-only); clicking opens a
   small dropdown holding Logout, reusing the admin-profile-dropdown look.
   Plain text, no boxed/pill background — just the red caret hints it's
   clickable. */
.mhr-user-menu-wrap{position:relative}
.mhr-user-toggle{display:flex;align-items:center;gap:8px;height:36px;padding:0 8px;border-radius:8px;cursor:pointer;user-select:none;color:var(--ink)}
.mhr-user-toggle:hover{background:var(--surface-2)}
.mhr-user-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mhr-user-ico{flex:0 0 auto;width:18px;height:18px;color:var(--ink-2)}
.mhr-user-text{display:flex;flex-direction:column;line-height:1.2}
.mhr-user-name{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
.mhr-user-role{font-size:10.5px;font-weight:600;color:var(--ink);white-space:nowrap}
.mhr-user-chev{flex:0 0 auto;width:14px;height:14px;color:var(--ink-soft)}
/* top-bar slot (right of the SERVER pill) the user menu is mounted into */
.portal-user-slot{display:flex;align-items:center;margin-left:14px}
.portal-user-slot:empty{display:none}
.mhr-user-dropdown{top:calc(100% + 8px);left:auto;right:0;min-width:150px;padding:6px;box-shadow:0 10px 26px rgba(0,0,0,.16);border-color:var(--brand-border)}
@keyframes mhrUserDropdownIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.mhr-user-dropdown:not(.hidden){animation:mhrUserDropdownIn .15s ease}
/* Logout reads as the destructive action it is — subtle red text/icon,
   stronger red tint only on hover — without overpowering the dropdown. */
.mhr-user-logout{justify-content:flex-start;gap:9px;padding:9px 12px;color:var(--danger-mid);font-weight:700}
.mhr-user-logout svg{flex:0 0 auto}
.mhr-user-logout:hover{background:rgba(239,75,85,.1);color:var(--danger-mid)}
.mhr-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
.mhr-kpi{min-width:0;border:1px solid var(--brand-border);border-radius:9px;padding:12px;background:var(--brand-tint);display:flex;gap:10px;align-items:center;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.mhr-kpi-clickable{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.mhr-kpi-clickable:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.18);border-color:var(--brand)}
.mhr-kpi-icon{width:36px;height:36px;flex:0 0 36px;border-radius:9px;display:grid;place-items:center;font-size:18px;color:var(--surface)}
.mhr-kpi small{display:block;color:var(--ink-soft);font-size:8px;font-weight:bold;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mhr-kpi b{display:block;color:var(--ink);font-size:23px;line-height:1.15;margin-top:4px}
.mhr-kpi em{display:block;font-style:normal;color:var(--success-mid);font-size:8px;margin-top:4px;white-space:nowrap}
.mhr-kpi.blue .mhr-kpi-icon{background:var(--brand)}.mhr-kpi.purple .mhr-kpi-icon{background:var(--brand-dark)}.mhr-kpi.orange .mhr-kpi-icon{background:var(--warning-mid)}.mhr-kpi.green .mhr-kpi-icon{background:var(--success)}.mhr-kpi.cyan .mhr-kpi-icon{background:var(--gray)}.mhr-kpi.red .mhr-kpi-icon{background:var(--danger-mid)}.mhr-kpi.red em{color:var(--brand)}
.mhr-three-grid{display:grid;grid-template-columns:1.05fr 1.25fr .95fr;gap:12px;margin-bottom:12px}
/* Admin Dashboard's "Main/Sub-HR Performance" panel (the CENTER column of
   the Quick Actions / Main-Sub-HR Performance / Candidate Target Progress
   row) — a compact row per profile (avatar, name, role,
   target/completed/remaining, progress bar) reusing .admin-bar-track for
   the bar itself. Fixed preview — capped to 3 rows in JS
   (renderHrPerformanceList) so a further profile is never rendered; the
   rest is reachable only via VIEW ALL (showHrPerformanceModal()), which removes the cap
   (.hr-perf-list-full below) since it's an overlay, not this row. */
.hr-perf-list{display:flex;flex-direction:column}
.hr-perf-list.hr-perf-list-full{max-height:none;overflow:visible}
/* The preview renders exactly 3 rows, so nothing needs clipping or
   scrolling here; the separator that used to be the 4th row's top border
   is now the 3rd row's own bottom border so it stays visible. */
.hr-perf-list:not(.hr-perf-list-full) .hr-perf-row:last-child{border-bottom:1px solid var(--brand-border)}
/* padding-bottom is the gap between the progress bar (each row's last
   element) and the separator border below it — that gap didn't exist
   before (only the border-to-next-row gap did, via padding-top), which is
   why the bar and border looked merged together. */
.hr-perf-row{padding-bottom:12px}
.hr-perf-row+.hr-perf-row{padding-top:12px;border-top:1px solid var(--brand-border)}
/* VIEW ALL overlay — wider than the standard .login-card form width since
   this holds a data list, not a form, with its own internal scroll so a
   long list scrolls inside the overlay instead of growing past the
   viewport. */
.hr-perf-modal-card{width:min(560px,92vw);max-height:82vh;overflow:auto}
.hr-perf-modal-card .hr-perf-list-full{max-height:60vh;overflow:auto}
/* Spacing only, between the standalone Recruitment Funnel card and the
   Quick Actions / Main-Sub-HR Performance / Candidate Target Progress row
   below it — .mhr-panel itself carries no margin, so with nothing here
   the two sections sat flush against each other. */
.admin-funnel-panel{margin-bottom:20px}
.hr-perf-row-top{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hr-perf-row-id{flex:1;min-width:0;line-height:1.3}
.hr-perf-row-id b{display:block;font-size:11px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-perf-row-id small{display:block;color:var(--ink-soft);font-size:9px}
.hr-perf-pct{font-size:11px;font-weight:700;color:var(--brand);flex:0 0 auto}
.hr-perf-row-stats{font-size:9px;color:var(--ink-soft);margin-bottom:5px}
.hr-perf-row-stats b{color:var(--ink)}
.mhr-panel{background:var(--brand-tint);border:1px solid var(--brand-border);border-radius:9px;padding:13px;min-width:0;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.mhr-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.mhr-panel-head h3{margin:0;color:var(--ink);font-size:12px;letter-spacing:.3px}
.mhr-panel-head span{font-size:8px;color:var(--brand)}
/* "LIVE" / "LIVE DATA" — same visual language as the green SERVER: CONNECTED
   indicator: solid green dot on the left, green bold text, vertically centred. */
.mhr-panel-head .live-badge{display:inline-flex;align-items:center;gap:5px;color:var(--success-mid);font-weight:700;letter-spacing:.4px;line-height:1}
.mhr-panel-head .live-badge::before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:var(--success-mid);box-shadow:0 0 6px rgba(32,196,106,.6)}
.mhr-panel-head button,.mhr-link-btn{border:0;background:transparent;color:var(--brand);font-size:9px;font-weight:bold;cursor:pointer;padding:0}
.mhr-donut-wrap{display:flex;align-items:center;justify-content:center;gap:24px;min-height:154px}
.mhr-donut{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;position:relative}
.mhr-donut:after{content:"";position:absolute;inset:28px;border-radius:50%;background:var(--surface)}
.mhr-donut>div{position:relative;z-index:1;text-align:center}.mhr-donut b{display:block;font-size:28px}.mhr-donut small{color:var(--ink-soft);font-size:10px}
.mhr-legend{min-width:125px}.mhr-legend div{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--ink-2);padding:5px 0}.mhr-legend b{margin-left:auto;color:var(--ink)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.blue{background:var(--brand)}.dot.orange{background:var(--warning-mid)}.dot.purple{background:var(--brand-dark)}.dot.green{background:var(--success-mid)}.dot.grey{background:var(--target-grey)}.dot.grey-soft{background:var(--ring-remaining)}
.mhr-bars{height:154px;display:flex;align-items:flex-end;justify-content:space-around;gap:8px;padding:10px 8px 0;border-bottom:1px solid var(--brand-border)}
.mhr-bar-group{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.mhr-bar-value{position:absolute;top:0;color:var(--ink);font-size:9px}
.mhr-bar-set{height:115px;display:flex;align-items:flex-end;gap:4px}.mhr-bar-set span{width:10px;min-height:5px;border-radius:3px 3px 0 0}.mhr-bar-set .join{background:var(--success-mid)}.mhr-bar-group small{font-size:9px;color:var(--ink-soft);margin-top:6px}
.mhr-client-list{min-height:155px}.mhr-client-row{display:grid;grid-template-columns:1.2fr 1fr 20px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--brand-border-2)}.mhr-client-name{font-size:10px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mhr-client-bar{height:5px;background:var(--line-soft);border-radius:5px;overflow:hidden}.mhr-client-bar span{display:block;height:100%;background:var(--brand);border-radius:5px}.mhr-client-row b{font-size:10px;text-align:right}.mhr-table-wrap{overflow:auto}.mhr-table{width:100%;border-collapse:collapse;min-width:560px}.mhr-table th,.mhr-table td{padding:8px 6px;border-bottom:1px solid var(--brand-border-2);text-align:left;font-size:9px;white-space:nowrap}.mhr-table th{color:var(--ink-soft);font-size:8px;letter-spacing:.3px}.mhr-table td{color:var(--ink)}.mhr-table tbody tr:hover{background:rgba(198,40,40,.06)}
.mhr-empty-note,.empty{color:var(--ink-soft);font-size:10px;padding:15px;text-align:center}
.mhr-activity-row{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--brand-border-2)}.mhr-activity-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);margin-top:4px;flex:0 0 7px}.mhr-activity-row b{display:block;color:var(--ink);font-size:9px;font-weight:normal}.mhr-activity-row small{display:block;color:var(--ink-soft);font-size:8px;margin-top:3px}
.mhr-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.mhr-actions button{border:1px solid var(--brand-border);background:var(--brand-tint);color:var(--ink-2);border-radius:8px;padding:12px 5px;min-height:84px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;cursor:pointer}.mhr-actions button:hover{background:var(--brand-tint-2);border-color:var(--brand)}.mhr-actions span{font-size:22px;color:var(--brand)}.mhr-actions b{font-size:8px;color:var(--ink-2)}
@media(max-width:1200px){
 .mhr-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mhr-three-grid{grid-template-columns:1fr 1fr}.mhr-three-grid>.mhr-panel:last-child{grid-column:1/-1}
}
@media(max-width:800px){
 .mhr-dashboard{grid-template-columns:1fr}.mhr-sidebar{display:none}.mhr-main{padding:14px}.mhr-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mhr-three-grid,.mhr-bottom-grid{grid-template-columns:1fr}.mhr-three-grid>.mhr-panel:last-child{grid-column:auto}.mhr-title-right{display:none}.mhr-actions{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
 .mhr-kpi-grid{grid-template-columns:1fr}.mhr-dashboard-title h2{font-size:20px}.mhr-donut-wrap{gap:10px}.mhr-donut{width:120px;height:120px}.mhr-donut:after{inset:23px}.mhr-legend{min-width:105px}.mhr-actions{grid-template-columns:1fr 1fr}
}

/* Main HR integrated navigation tabs */
/* V124 — Main HR sidebar drives the right-side workspace */
.hidden{display:none !important;}
.mhr-main{position:relative;}
.mhr-right-page{min-height:calc(100vh - 160px);}
.mhr-sidebar .mhr-side-item{cursor:pointer;}
.mhr-sidebar .mhr-side-item[data-hr-tab].active{background:linear-gradient(90deg,var(--brand),var(--brand-dark));}
.mhr-sidebar .mhr-side-item[data-hr-tab]:focus-visible,.mhr-sidebar .mhr-side-item:focus-visible{outline:2px solid var(--brand);outline-offset:1px;}
@media(max-width:800px){
 .mhr-right-page{min-height:auto;}
}
@media print{
 body{font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;padding:24px;color:#111}
 h1{font-size:20px;margin-bottom:18px}
 table{width:100%;border-collapse:collapse;margin-top:18px}
 th,td{border:1px solid #999;padding:7px;text-align:left;font-size:11px}
 th{font-weight:700;background:#eee}
 .card{display:inline-block;margin:0 8px 8px 0;padding:12px;border:1px solid #999;min-width:120px}
 button{display:none}
}
 
.tracker-main-table{overflow-x:auto;width:100%;}
.tracker-main-table table{min-width:2200px;}
.tracker-main-table th,.tracker-main-table td{white-space:nowrap;}




/* Tracker List usability — keep Checkbox/Sr.No./Job Title/Date/Name pinned
   on the left while the many remaining columns scroll underneath. The
   original column widths/spacing (plain table-layout:auto, sized from
   content exactly as before) are deliberately untouched here — an earlier
   version of this fix set table-layout:fixed with an explicit width per
   column to get stable sticky offsets, but that changed the table's
   density/spacing, which turned out to be unwanted. Because column widths
   are content-driven again, a fixed `left` per column can't be hardcoded
   in CSS (a column's actual width isn't known until it renders) — so only
   the parts that don't depend on measured width live here (background,
   stacking order, hover, the divider after the last pinned column); the
   `left` offset itself is computed from each column's real rendered width
   and applied inline by applyTrackerStickyColumns() in app.js, right after
   trackerView()/renderCandidateTableReadOnly() render. #trackerTable is
   the ONE trackerView() table shared by Admin's Master Tracker, Main HR's
   own Tracker List and Sub-HR's own Tracker List. #subHrReadOnlyTrackerTable
   (Main HR's read-only "Sub-HR Tracker List" drill-down) has the same
   column shape minus the checkbox/Action, so it gets its own block below. */
#trackerTable th:nth-child(-n+5),
#trackerTable td:nth-child(-n+5){
  position:sticky;
  background:var(--surface);
  z-index:3;
}
#trackerTable thead th:nth-child(-n+5){
  background:var(--brand);
  z-index:4;
}
#trackerTable tbody tr:hover td:nth-child(-n+5){background:var(--brand-tint)!important}
#trackerTable th:nth-child(5),#trackerTable td:nth-child(5){border-right:1px solid var(--line-soft);}


#trackerTable th:nth-child(2),#trackerTable td:nth-child(2){min-width:55px;}
#trackerTable th:nth-child(3),#trackerTable td:nth-child(3){min-width:140px;}
#trackerTable th:nth-child(4),#trackerTable td:nth-child(4){min-width:100px;}
#trackerTable th:nth-child(5),#trackerTable td:nth-child(5){min-width:170px;}
#trackerTable th:nth-child(6),#trackerTable td:nth-child(6){min-width:200px;}
#trackerTable th:nth-child(7),#trackerTable td:nth-child(7){min-width:116px;}
#trackerTable th:nth-child(8),#trackerTable td:nth-child(8){min-width:106px;}
#trackerTable th:nth-child(9),#trackerTable td:nth-child(9){min-width:110px;}
#trackerTable th:nth-child(10),#trackerTable td:nth-child(10){min-width:106px;}
#trackerTable th:nth-child(11),#trackerTable td:nth-child(11){min-width:106px;}
#trackerTable th:nth-child(12),#trackerTable td:nth-child(12){min-width:150px;}
#trackerTable th:nth-child(13),#trackerTable td:nth-child(13){min-width:106px;}
#trackerTable th:nth-child(14),#trackerTable td:nth-child(14){min-width:106px;}
#trackerTable th:nth-child(15),#trackerTable td:nth-child(15){min-width:110px;}
#trackerTable th:nth-child(16),#trackerTable td:nth-child(16){min-width:110px;}
#trackerTable th:nth-child(17),#trackerTable td:nth-child(17){min-width:90px;}
#trackerTable th:nth-child(18),#trackerTable td:nth-child(18){min-width:170px;}
#trackerTable th:nth-child(19),#trackerTable td:nth-child(19){min-width:200px;}
#trackerTable th:nth-child(20),#trackerTable td:nth-child(20){min-width:106px;}
#trackerTable th:nth-child(21),#trackerTable td:nth-child(21){min-width:150px;}

#subHrReadOnlyTrackerTable th:nth-child(-n+4),
#subHrReadOnlyTrackerTable td:nth-child(-n+4){
  position:sticky;
  background:var(--surface);
  z-index:3;
}
#subHrReadOnlyTrackerTable thead th:nth-child(-n+4){
  background:var(--brand);
  z-index:4;
}
#subHrReadOnlyTrackerTable tbody tr:hover td:nth-child(-n+4){background:var(--brand-tint)!important}
#subHrReadOnlyTrackerTable th:nth-child(4),#subHrReadOnlyTrackerTable td:nth-child(4){border-right:1px solid var(--line-soft);}
#subHrReadOnlyTrackerTable th:nth-child(1),#subHrReadOnlyTrackerTable td:nth-child(1){min-width:55px;}
#subHrReadOnlyTrackerTable th:nth-child(2),#subHrReadOnlyTrackerTable td:nth-child(2){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(3),#subHrReadOnlyTrackerTable td:nth-child(3){min-width:140px;}
#subHrReadOnlyTrackerTable th:nth-child(4),#subHrReadOnlyTrackerTable td:nth-child(4){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(5),#subHrReadOnlyTrackerTable td:nth-child(5){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(6),#subHrReadOnlyTrackerTable td:nth-child(6){min-width:116px;}
#subHrReadOnlyTrackerTable th:nth-child(7),#subHrReadOnlyTrackerTable td:nth-child(7){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(8),#subHrReadOnlyTrackerTable td:nth-child(8){min-width:110px;}
#subHrReadOnlyTrackerTable th:nth-child(9),#subHrReadOnlyTrackerTable td:nth-child(9){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(10),#subHrReadOnlyTrackerTable td:nth-child(10){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(11),#subHrReadOnlyTrackerTable td:nth-child(11){min-width:150px;}
#subHrReadOnlyTrackerTable th:nth-child(12),#subHrReadOnlyTrackerTable td:nth-child(12){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(13),#subHrReadOnlyTrackerTable td:nth-child(13){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(14),#subHrReadOnlyTrackerTable td:nth-child(14){min-width:110px;}
#subHrReadOnlyTrackerTable th:nth-child(15),#subHrReadOnlyTrackerTable td:nth-child(15){min-width:110px;}
#subHrReadOnlyTrackerTable th:nth-child(16),#subHrReadOnlyTrackerTable td:nth-child(16){min-width:90px;}
#subHrReadOnlyTrackerTable th:nth-child(17),#subHrReadOnlyTrackerTable td:nth-child(17){min-width:170px;}
#subHrReadOnlyTrackerTable th:nth-child(18),#subHrReadOnlyTrackerTable td:nth-child(18){min-width:106px;}
#subHrReadOnlyTrackerTable th:nth-child(19),#subHrReadOnlyTrackerTable td:nth-child(19){min-width:106px;}
.admin-dashboard-shell .admin-main{min-width:0;}
.admin-sidebar{overflow-y:auto;}
.admin-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));}

/* Admin Dashboard top KPI row — 4 consolidated cards (replacing the old
   9-tile .admin-kpi-grid/.mhr-kpi row above, which is left in place only
   because .subhr-kpi-grid still shares some of those same rules). */
/* Admin Control Center — 8 KPI cards. These reused the old flat
   pink ".mhr-kpi" tile style, which looked inconsistent with the
   rest of the (white-card) dashboard and had low-contrast text.
   Restyle just this grid: white card, subtle border, a colored
   left accent bar that matches the icon color. */
.admin-kpi-grid .mhr-kpi,
.subhr-kpi-grid .mhr-kpi{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 3px 12px rgba(0,0,0,.05);
  padding:16px;
  position:relative;
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.admin-kpi-grid .mhr-kpi::before,
.subhr-kpi-grid .mhr-kpi::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
}
.admin-kpi-grid .mhr-kpi:hover,
.subhr-kpi-grid .mhr-kpi:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.admin-kpi-grid .mhr-kpi-icon,
.subhr-kpi-grid .mhr-kpi-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:10px;
  font-size:19px;
}
.mhr-kpi-icon svg{
  width:20px;
  height:20px;
  display:block;
}
.admin-kpi-grid .mhr-kpi small,
.subhr-kpi-grid .mhr-kpi small{
  color:var(--ink-soft);
  font-size:9px;
}
.admin-kpi-grid .mhr-kpi b,
.subhr-kpi-grid .mhr-kpi b{
  color:var(--ink);
  font-size:26px;
}
.admin-kpi-grid .mhr-kpi em,
.subhr-kpi-grid .mhr-kpi em{
  font-size:9px;
}
.admin-kpi-grid .mhr-kpi.blue::before,
.subhr-kpi-grid .mhr-kpi.blue::before{background:var(--brand);}
.admin-kpi-grid .mhr-kpi.purple::before,
.subhr-kpi-grid .mhr-kpi.purple::before{background:var(--brand-dark);}
.admin-kpi-grid .mhr-kpi.orange::before,
.subhr-kpi-grid .mhr-kpi.orange::before{background:var(--warning-mid);}
.admin-kpi-grid .mhr-kpi.green::before,
.subhr-kpi-grid .mhr-kpi.green::before{background:var(--success);}
.admin-kpi-grid .mhr-kpi.cyan::before,
.subhr-kpi-grid .mhr-kpi.cyan::before{background:var(--gray);}
.admin-kpi-grid .mhr-kpi.red::before,
.subhr-kpi-grid .mhr-kpi.red::before{background:var(--danger-mid);}
.admin-graph-grid{grid-template-columns:1.1fr 1.4fr 1fr;}
.admin-funnel{display:flex;flex-direction:column;gap:10px;padding:12px 4px;}
.admin-funnel>div{display:grid;grid-template-columns:1fr 55px 100px;align-items:center;gap:10px;}
.admin-funnel i{display:block;height:14px;border-radius:10px;background:linear-gradient(90deg,var(--brand),var(--brand-dark));min-width:12px;}
.admin-funnel b{font-size:18px;text-align:right;}
.admin-funnel span{font-size:11px;color:var(--ink-soft);white-space:nowrap;}
.admin-bar-row{display:grid;grid-template-columns:110px 1fr 35px;gap:10px;align-items:center;margin:11px 0;font-size:11px;}
.admin-bar-track{height:9px;background:var(--line-soft);border-radius:20px;overflow:hidden;}
.admin-bar-track i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-dark));border-radius:20px;}
.admin-bar-row b{text-align:right;}

@media(max-width:1100px){
  .admin-kpi-grid,
  .admin-graph-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px){
  .admin-kpi-grid,
  .admin-graph-grid{
    grid-template-columns:1fr;
  }
}


/* =====================================================
   ADMIN DASHBOARD TEXT VISIBILITY FIX
   ===================================================== */

.admin-dashboard-shell,
.admin-dashboard-shell *{
  color:var(--ink);
}

/* Main headings */
.admin-dashboard-shell h1,
.admin-dashboard-shell h2,
.admin-dashboard-shell h3,
.admin-dashboard-shell h4,
.admin-dashboard-shell strong,
.admin-dashboard-shell b{
  color:var(--ink);
}

/* Normal descriptive text */
.admin-dashboard-shell p,
.admin-dashboard-shell span,
.admin-dashboard-shell small,
.admin-dashboard-shell label{
  color:var(--ink-soft);
}

/* KPI icon squares must stay white regardless of the blanket color
   override above — otherwise the icon glyph goes near-black and
   disappears on darker tile backgrounds (purple/cyan/green). */
.admin-dashboard-shell .mhr-kpi-icon,
.admin-dashboard-shell .mhr-kpi-icon *{
  color:var(--surface) !important;
}

/* Sidebar */
.admin-dashboard-shell .mhr-side-title{
  color:var(--on-brand-soft);
}

.admin-dashboard-shell .mhr-side-item{
  color:var(--on-brand-soft);
}

.admin-dashboard-shell .mhr-side-item span{
  color:inherit;
}
              
.admin-dashboard-shell .mhr-side-item.active{
  color:var(--surface);
}

/* Dashboard title */
.admin-dashboard-shell .mhr-dashboard-title h2{
  color:var(--ink);
}

.admin-dashboard-shell .mhr-dashboard-title p{
  color:var(--ink-soft);
}


/* KPI cards */
.admin-dashboard-shell .card h3{
  color:var(--ink);
}

.admin-dashboard-shell .card .metric{
  color:var(--ink);
}

/* Panels */
.admin-dashboard-shell .mhr-panel h3{
  color:var(--ink);
}

.admin-dashboard-shell .mhr-panel p{
  color:var(--ink-soft);
}

/* Tables */
.admin-dashboard-shell table,
.admin-dashboard-shell th,
.admin-dashboard-shell td{
  color:var(--ink);
}

.admin-dashboard-shell th{
  color:var(--ink);
}

.admin-dashboard-shell td b,
.admin-dashboard-shell td strong{
  color:var(--ink);
}

/* Activity */
.admin-dashboard-shell .mhr-activity-row b{
  color:var(--ink);
}

.admin-dashboard-shell .mhr-activity-row small{
  color:var(--ink-soft);
}

/* Graph / funnel */
.admin-dashboard-shell .admin-funnel span,
.admin-dashboard-shell .admin-bar-row span{
  color:var(--ink-soft);
}

.admin-dashboard-shell .admin-funnel b,
.admin-dashboard-shell .admin-bar-row b{
  color:var(--ink);
}

/* Activity statistics */


/* Inputs */
.admin-dashboard-shell input,
.admin-dashboard-shell select,
.admin-dashboard-shell textarea{
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--brand-border);
}

.admin-dashboard-shell input::placeholder,
.admin-dashboard-shell textarea::placeholder{
  color:var(--ink-mute);
}

.admin-dashboard-shell option{
  color:var(--ink);
  background:var(--surface);
}

/* Buttons */
.admin-dashboard-shell button{
  color:var(--surface);
}

.admin-dashboard-shell button b{
  color:var(--surface);
}

/* Outline / link-style buttons intentionally use colored text on a
   light background, not white-on-white — the blanket rule above was
   overriding them and making their labels invisible. */
.admin-dashboard-shell .delete-row-btn{
  color:var(--danger);
}
.admin-dashboard-shell .export-head-btn,
.admin-dashboard-shell .sync-toggle-btn{
  color:var(--brand);
}
.admin-dashboard-shell .mhr-actions button,
.admin-dashboard-shell .mhr-actions button b{
  color:var(--ink-2);
}
.admin-dashboard-shell .mhr-link-btn,
.admin-dashboard-shell .mhr-panel-head button{
  color:var(--brand);
}
.admin-dashboard-shell .search-suggestion{
  color:var(--ink);
}

/* The sidebar brand block sits on a dark red background, so its
   heading and caption need light text — the blanket rules above
   were forcing them to dark ink, making the caption unreadable. */
.admin-dashboard-shell .mhr-brand strong{
  color:var(--surface);
}
.admin-dashboard-shell .mhr-brand small{
  color:var(--on-brand-soft);
}

/* Empty states */
.admin-dashboard-shell .empty,
.admin-dashboard-shell .mhr-empty-note{
  color:var(--ink-soft);
}

/* Backup panel */
.admin-dashboard-shell .backup-panel h3{
  color:var(--ink);
}

.admin-dashboard-shell .backup-panel p{
  color:var(--ink-soft);
}

/* Master Tracker — Select Profile dropdown. Same issue as the other button
   overrides above: the blanket "button{color:var(--surface)}" rule assumes
   a dark/colored button background, but these sit on the dropdown's plain
   white box, so it was rendering the menu text white-on-white. */
.admin-dashboard-shell .admin-dd-item{
  color:var(--ink);
}
.admin-dashboard-shell .admin-dd-item span{
  color:inherit;
}
/* Keep the subtle-red destructive treatment on Admin's own Logout item too
   — without this it would fall back to the plain-ink color above, since
   that rule has the same specificity and comes after .mhr-user-logout. */
.admin-dashboard-shell .mhr-user-logout,
.admin-dashboard-shell .mhr-user-logout:hover{
  color:var(--danger-mid);
}
.admin-dashboard-shell .admin-tracker-profile-hint{
  color:var(--ink-soft);
}
.admin-dashboard-shell .admin-tracker-profile-hint b{
  color:var(--ink);
}

/* Links */
.admin-dashboard-shell a{
  color:var(--brand);
}


/* =========================================================
   V120 — POLISHED WHITE + RED HR DASHBOARD
   Goal: cleaner KPI cards, less visual clutter, professional
   corporate SaaS look while preserving existing functionality.
   ========================================================= */

/* Core palette */


/* Dashboard / portal canvas */
#portal .portal-card{
  background:var(--surface-2) !important;
}

#portal .portal-head{
  background:var(--surface) !important;
  border-bottom:1px solid var(--line-soft) !important;
  padding:18px 24px !important;
  box-shadow:0 1px 3px rgba(0,0,0,.03);
}

#portal .portal-content{
  background:var(--surface-2) !important;
  padding:24px !important;
}

/* Main summary: 8 cards -> clean 4 x 2 layout on desktop */
.dashboard-grid,
.subhr-main-summary-grid,
.subhr-summary-grid,
.admin-summary-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-template-rows:auto !important;
  gap:14px !important;
  width:100% !important;
  margin:0 0 24px !important;
}

.dashboard-grid > .card,
.subhr-main-summary-grid > .card,
.subhr-summary-grid > .card,
.admin-summary-grid > .card{
  grid-column:auto !important;
  grid-row:auto !important;
  width:auto !important;
  min-width:0 !important;
  min-height:112px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  position:relative;
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  padding:18px 18px 16px !important;
  box-shadow:0 3px 12px rgba(0,0,0,.045) !important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

/* Small red accent instead of full red/pink cards */
.dashboard-grid > .card::before,
.subhr-main-summary-grid > .card::before,
.subhr-summary-grid > .card::before,
.admin-summary-grid > .card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:var(--brand);
  border-radius:12px 0 0 12px;
}

.dashboard-grid > .card:hover,
.subhr-main-summary-grid > .card:hover,
.subhr-summary-grid > .card:hover,
.admin-summary-grid > .card:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong) !important;
  box-shadow:0 8px 20px rgba(0,0,0,.07) !important;
}

/* KPI typography */
.dashboard-grid .card h3,
.subhr-main-summary-grid .card h3,
.subhr-summary-grid .card h3,
.admin-summary-grid .card h3{
  margin:0 0 12px !important;
  color:var(--ink-soft) !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.55px !important;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dashboard-grid .card .metric,
.subhr-main-summary-grid .card .metric,
.subhr-summary-grid .card .metric,
.admin-summary-grid .card .metric{
  color:var(--brand) !important;
  font-size:30px !important;
  line-height:1 !important;
  font-weight:750 !important;
  margin:0 !important;
}

.dashboard-grid .card .muted,
.subhr-main-summary-grid .card .muted,
.subhr-summary-grid .card .muted,
.admin-summary-grid .card .muted{
  color:var(--ink-soft) !important;
  font-size:10px !important;
  margin-top:7px;
}

/* Keep old one-row desktop rules from forcing cramped cards */
@media (min-width:900px){
  .dashboard-grid,
  .subhr-main-summary-grid,
  .subhr-summary-grid,
  .admin-summary-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    grid-template-rows:auto !important;
  }

  .dashboard-grid > *,
  .subhr-main-summary-grid > *,
  .subhr-summary-grid > *,
  .admin-summary-grid > *{
    grid-column:auto !important;
    grid-row:auto !important;
  }
}

/* Navigation tabs — lighter and cleaner */
.tabs,
.mhr-main-tabs{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  box-shadow:0 2px 8px rgba(0,0,0,.035) !important;
  padding:8px !important;
}

.tab,
.mhr-main-tab{
  background:var(--surface) !important;
  color:var(--ink-soft) !important;
  border:1px solid transparent !important;
  border-radius:7px !important;
  padding:9px 13px !important;
  font-size:11px !important;
  font-weight:650 !important;
}

.tab:hover,
.mhr-main-tab:hover{
  background:var(--brand-tint) !important;
  color:var(--brand) !important;
  border-color:var(--brand-border-2) !important;
}

.tab.active,
.mhr-main-tab.active{
  background:var(--brand) !important;
  color:var(--surface) !important;
  border-color:var(--brand) !important;
  box-shadow:0 3px 8px rgba(198,40,40,.18) !important;
}

/* Tables */
.portal-table th,
.direct-edit-table th,
.inline-edit-table th{
  background:var(--brand) !important;
  color:var(--surface) !important;
  border-color:var(--brand) !important;
}

.portal-table td,
.direct-edit-table td,
.inline-edit-table td{
  background:var(--surface);
  border-color:var(--line-soft) !important;
}

.portal-table tbody tr:hover,
.direct-edit-table tbody tr:hover,
.inline-edit-table tbody tr:hover{
  background:var(--brand-tint) !important;
}

/* Generic cards/panels used elsewhere */
.card,
.mhr-panel{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  box-shadow:0 3px 12px rgba(0,0,0,.04);
}

.card h3,
.mhr-panel h3{
  color:var(--ink) !important;
}

/* Filters / notes / secondary panels: don't flood the UI with pink */
.filter-bar,
.backup-panel,
.admin-home-note{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
}

.filter-bar input,
.filter-bar select,
.backup-panel input,
.backup-panel select,
.form-grid input,
.form-grid select,
.form-grid textarea{
  border:1px solid var(--line-strong) !important;
  border-radius:7px !important;
  background:var(--surface) !important;
}

.filter-bar input:focus,
.filter-bar select:focus,
.backup-panel input:focus,
.backup-panel select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus{
  outline:none;
  border-color:var(--brand) !important;
  box-shadow:0 0 0 3px rgba(198,40,40,.08);
}

/* Admin dashboard panels */
.admin-dashboard-shell{
  background:var(--surface-2) !important;
}

.admin-dashboard-shell .mhr-panel,
.admin-dashboard-shell .card{
  background:var(--surface) !important;
  border-color:var(--line) !important;
  box-shadow:0 3px 12px rgba(0,0,0,.04) !important;
}

/* Remove the dark/navy remnants from older dashboard styling */

.admin-dashboard-shell .admin-bar-track{
  background:var(--page) !important;
}

/* Sidebar stays branded red, but cleaner */
.mhr-sidebar{
  background:linear-gradient(180deg,var(--brand-hover) 0%,var(--brand-darker) 100%) !important;
  border-right:0 !important;
}

.mhr-brand{
  border-bottom:1px solid rgba(255,255,255,.16) !important;
}

.mhr-side-item{
  color:var(--brand-tint) !important;
  border-radius:8px !important;
}

.mhr-side-item:hover{
  background:rgba(255,255,255,.10) !important;
}

.mhr-side-item.active{
  background:var(--brand) !important;
  box-shadow:0 5px 14px rgba(0,0,0,.12) !important;
}

/* Workspace headings */


/* Responsive KPI layout */
@media(max-width:1100px){
  .dashboard-grid,
  .subhr-main-summary-grid,
  .subhr-summary-grid,
  .admin-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:700px){
  #portal .portal-content{
    padding:16px !important;
  }

  .dashboard-grid,
  .subhr-main-summary-grid,
  .subhr-summary-grid,
  .admin-summary-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .dashboard-grid > .card,
  .subhr-main-summary-grid > .card,
  .subhr-summary-grid > .card,
  .admin-summary-grid > .card{
    min-height:100px !important;
  }
}


/* ============================================================
   BRAND REFRESH — logo, landing screen, sign-in
   Brand gray (var(--gray)) is taken from the Provost Contrives mark
   and used as the structural neutral so the UI reads as branded
   rather than red-on-white only.
   ============================================================ */

html, body{
  background:var(--page);
}

/* ---------- Header with logo ---------- */
header{
  border-bottom:3px solid var(--brand);
  border-radius:12px 12px 0 0;
  gap:20px;
}
header small{
  display:block;
  font-size:10px;
  letter-spacing:2.4px;
  font-weight:700;
  color:var(--gray);
}
header h1{
  font-size:27px;
  letter-spacing:-.4px;
}
#clock{
  font-size:13px;
  font-weight:600;
  color:var(--gray);
  white-space:nowrap;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
}

/* ---------- Summary tiles: colour encodes urgency ---------- */
.summary{
  gap:14px;
  padding:20px 24px 18px;
}
.summary>div{
  width:160px;
  border:1px solid var(--line);
  border-left-width:4px;
  border-radius:8px;
  padding:12px 14px;
  gap:2px;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.summary>div span{
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  color:var(--gray);
}
.summary>div b{
  font-size:30px;
  line-height:1.1;
  color:var(--ink);
}

/* ---------- Job board ---------- */
.board{
  border-radius:0 0 12px 12px;
  border-top:0;
}

/* ---------- Landing sign-in button ---------- */
.buttons button{
  padding:13px 30px;
  border-radius:8px;
  letter-spacing:.6px;
  box-shadow:0 6px 18px rgba(198,40,40,.28);
}

/* ---------- Sign-in overlay ---------- */
.overlay{
  background:rgba(32,32,35,.62);
  backdrop-filter:blur(3px);
}

.login-card{
  width:min(420px,95vw);
  border:1px solid var(--line);
  border-top:4px solid var(--brand);
  border-radius:12px;
  padding:0 0 30px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  overflow:hidden;
}


.login-card h2{
  margin:26px 32px 4px;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.2px;
  color:var(--ink);
}

.login-card label{
  display:block;
  margin:16px 32px 6px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.1px;
  color:var(--gray);
}
.login-card input,
.login-card select{
  width:calc(100% - 64px);
  margin:0 32px;
  padding:12px 14px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line-strong);
  border-radius:8px;
  font-size:14px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.login-card input::placeholder{
  color:var(--ink-mute);
}
.login-card input:focus,
.login-card select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(198,40,40,.14);
}


#loginError{
  margin:14px 32px 0;
  font-size:13px;
  color:var(--danger);
}
#loginError:not(:empty){
  padding:10px 12px;
  background:var(--danger-tint);
  border-left:3px solid var(--danger);
  border-radius:4px;
}

@media (max-width:640px){
  header{ flex-wrap:wrap; gap:12px; }
}


/* ============================================================
   BUTTONS — single source of truth
     primary      .action-btn / .login-btn / .buttons button / .portal-head button
     secondary    .export-head-btn / .sync-toggle-btn
     destructive  .delete-row-btn / .danger
   Size and layout overrides stay with their own components.
   ============================================================ */

.buttons button,
.login-btn,
.portal-head button,
.action-btn{
  border:1px solid var(--brand);
  background:var(--brand);
  color:var(--on-brand);
  border-radius:7px;
  padding:9px 18px;
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition:background .15s ease, border-color .15s ease;
}
.buttons button:hover,
.login-btn:hover,
.portal-head button:hover,
.action-btn:hover{
  background:var(--brand-hover);
  border-color:var(--brand-hover);
  color:var(--on-brand);
}

.export-head-btn,
.sync-toggle-btn{
  background:var(--surface);
  color:var(--brand);
  border:1px solid var(--brand-border);
  border-radius:7px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.export-head-btn:hover,
.sync-toggle-btn:hover{
  background:var(--brand-tint);
  border-color:var(--brand);
}

.delete-row-btn{
  background:var(--surface);
  color:var(--danger);
  border:1px solid var(--danger);
  border-radius:6px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.delete-row-btn:hover{
  background:var(--danger);
  color:var(--on-brand);
}

/* Keyboard focus must always be visible */
.buttons button:focus-visible,
.login-btn:focus-visible,
.portal-head button:focus-visible,
.action-btn:focus-visible,
.export-head-btn:focus-visible,
.sync-toggle-btn:focus-visible,
.delete-row-btn:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}

/* Restore the sign-in button's own layout (it is full-width in the card) */

/* Sub-HR dashboard has no sidebar, so its logged-in username gets its
   own tag at the top of the content — same idea as the Main HR sidebar
   brand line, adapted to a layout with no sidebar to put it in. */

/* ---------------------------------------------------------------
   Tracker List — row selection (checkboxes + Shift+Click range
   select) and the bulk-action bar that appears once rows are
   selected.
   --------------------------------------------------------------- */
.candidate-row-check,
#candidateSelectAll,
.project-row-check,
#projectSelectAll{
  width:16px;
  height:16px;
  accent-color:var(--brand);
  cursor:pointer;
}
.direct-edit-table td.check-col,
.direct-edit-table th.check-col{
  width:34px;
  text-align:center;
  white-space:nowrap;
}
.tracker-select-hint{
  color:var(--ink-mute);
  font-size:11px;
  align-self:center;
  margin-left:4px;
}
.tracker-selection-bar{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-left:4px;
  padding:6px 12px;
  background:var(--brand-tint);
  border:1px solid var(--brand-border);
  border-radius:7px;
  font-size:12px;
}
.tracker-selection-bar b{
  color:var(--brand-dark);
  font-size:12px;
}

/* Dashboard panels that open their full data in a popup on click. */
.mhr-panel-clickable{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.mhr-panel-clickable:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.14)}
.admin-dashboard-shell .mhr-panel-clickable:hover{box-shadow:0 12px 26px rgba(0,0,0,.14) !important}
/* The four stat boxes inside Admin's Today's Activity each open their own list.
   Admin pins these boxes' border with !important, hence the one below. */

/* Report Center: period chips on the left, export / print on the right. */
.report-center-head{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 margin:0 0 10px;
}
.status-filter-list.report-period-filter{margin:0}
.report-actions{display:flex;flex-wrap:wrap;gap:6px}
.report-controls.report-custom-range{
 margin:0 0 10px;
 width:fit-content;
 max-width:100%;
}

/* ============================================================
   LOGIN / LANDING PAGE
   Red backdrop with soft waves, one wide card: brand + illustration on the
   left, the form on the right. Uses its own class names, and everything is
   scoped to #loginScreen, because .overlay and .login-card are shared with
   every popup in the app.
   ============================================================ */
#loginScreen.login-page{
 background:linear-gradient(125deg, #7E0F14 0%, #B3161D 38%, #D0222A 62%, #E0353A 100%);
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
 overflow:auto;
 padding:32px 20px;
}
#loginScreen .login-waves{
 position:fixed;
 inset:0;
 width:100%;
 height:100%;
 pointer-events:none;
}
#loginScreen .login-dots{
 position:fixed;
 background-image:radial-gradient(rgba(255,255,255,.42) 1.3px, transparent 1.8px);
 background-size:26px 26px;
 opacity:.55;
 pointer-events:none;
}
#loginScreen .login-dots-tl{top:34px;left:14px;width:110px;height:156px}
#loginScreen .login-dots-r{top:46%;right:26px;width:130px;height:130px}
#loginScreen .login-dots-bl{bottom:28px;left:14px;width:110px;height:104px}

#loginScreen .login-shell{
 position:relative;
 z-index:1;
 margin:auto;
 width:min(860px,100%);
 display:grid;
 grid-template-columns:1fr 1fr;
 background:var(--surface);
 border-radius:22px;
 overflow:hidden;
 box-shadow:0 40px 100px rgba(40,0,4,.45), 0 0 0 1px rgba(255,255,255,.10);
 animation:loginCardIn .45s ease-out both;
}

/* left: brand + illustration */
#loginScreen .login-intro{
 display:flex;
 flex-direction:column;
 padding:52px 44px 0;
 background:linear-gradient(180deg,#FBF8F8 0%,#F6F0F0 100%);
}
#loginScreen .login-intro-logo{width:240px;max-width:100%;height:auto}
#loginScreen .login-intro h1{
 margin:54px 0 12px;
 font-size:34px;
 line-height:1.1;
 font-weight:800;
 letter-spacing:-.6px;
 color:var(--ink);
}
#loginScreen .login-intro p{
 margin:0;
 max-width:240px;
 font-size:16px;
 line-height:1.6;
 color:var(--ink-2);
}
#loginScreen .login-illustration{
 display:block;
 width:calc(100% + 24px);
 margin:auto -12px 0;
 padding-top:34px;
}

/* right: the form */
#loginScreen .login-form{
 display:flex;
 flex-direction:column;
 justify-content:center;
 padding:56px 52px 52px;
}
#loginScreen .login-label{
 display:block;
 margin:0 0 9px;
 font-size:11px;
 font-weight:700;
 letter-spacing:.9px;
 color:var(--brand);
}
#loginScreen .login-select{
 position:relative;
 margin-bottom:28px;
 border-bottom:2px solid var(--brand);
}
#loginScreen .login-select select{
 width:100%;
 padding:6px 30px 11px 2px;
 border:0;
 background:transparent;
 color:var(--ink);
 font-size:15px;
 appearance:none;
 -webkit-appearance:none;
 cursor:pointer;
}
#loginScreen .login-select select:focus{outline:none}
#loginScreen .login-chevron{
 position:absolute;
 right:2px;
 top:50%;
 width:18px;
 height:18px;
 transform:translateY(-60%);
 fill:none;
 stroke:var(--brand);
 stroke-width:2.6;
 stroke-linecap:round;
 stroke-linejoin:round;
 pointer-events:none;
}
#loginScreen .login-field{position:relative;margin-bottom:24px}
#loginScreen .login-field input{
 width:100%;
 padding:14px 46px 14px 48px;
 background:var(--surface);
 color:var(--ink);
 border:1px solid #DCD5D5;
 border-radius:9px;
 font-size:15px;
 transition:border-color .15s ease, box-shadow .15s ease;
}
#loginScreen .login-field input::placeholder{color:var(--ink-mute)}
#loginScreen .login-field input:hover{border-color:#C9BFBF}
#loginScreen .login-field input:focus{
 outline:none;
 border-color:var(--brand);
 box-shadow:0 0 0 4px rgba(198,40,40,.11);
}
#loginScreen .login-icon{
 position:absolute;
 left:16px;
 top:50%;
 width:19px;
 height:19px;
 transform:translateY(-50%);
 fill:none;
 stroke:#55555A;
 stroke-width:1.8;
 stroke-linecap:round;
 stroke-linejoin:round;
 pointer-events:none;
}
#loginScreen .login-eye{
 position:absolute;
 right:8px;
 top:50%;
 width:36px;
 height:36px;
 transform:translateY(-50%);
 display:grid;
 place-items:center;
 padding:0;
 border:0;
 border-radius:8px;
 background:transparent;
 color:#3A3A3F;
}
#loginScreen .login-eye:hover{background:var(--brand-tint);color:var(--brand)}
#loginScreen .login-eye svg{
 width:20px;
 height:20px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.8;
 stroke-linecap:round;
 stroke-linejoin:round;
}
#loginScreen .login-eye .eye-closed{display:none}
#loginScreen .login-eye.showing .eye-open{display:none}
#loginScreen .login-eye.showing .eye-closed{display:block}

#loginScreen .login-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin:-6px 0 26px;
}
#loginScreen .login-remember{
 display:flex;
 align-items:center;
 gap:9px;
 font-size:14px;
 color:var(--ink-2);
 cursor:pointer;
}
#loginScreen .login-remember input{
 width:16px;
 height:16px;
 margin:0;
 accent-color:var(--brand);
 cursor:pointer;
}

#loginScreen .login-submit{
 position:relative;
 display:flex;
 align-items:center;
 justify-content:center;
 width:100%;
 padding:15px 48px;
 border:0;
 border-radius:9px;
 background:#B81C22;
 color:var(--on-brand);
 font-size:16px;
 font-weight:700;
 letter-spacing:.2px;
 box-shadow:0 12px 26px rgba(184,28,34,.32);
 transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
}
#loginScreen .login-submit:hover{
 background:#9E161C;
 transform:translateY(-1px);
 box-shadow:0 16px 32px rgba(184,28,34,.40);
}
#loginScreen .login-submit svg{
 position:absolute;
 right:20px;
 width:20px;
 height:20px;
 fill:none;
 stroke:currentColor;
 stroke-width:2.2;
 stroke-linecap:round;
 stroke-linejoin:round;
}
#loginScreen #loginError{margin:16px 0 0;min-height:0}

@keyframes loginCardIn{
 from{opacity:0;transform:translateY(16px)}
 to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
 #loginScreen .login-shell{animation:none}
}
@media (max-width:860px){
 #loginScreen .login-shell{grid-template-columns:1fr;width:min(460px,100%)}
 #loginScreen .login-intro{padding:34px 34px 0;text-align:center;align-items:center}
 #loginScreen .login-intro h1{margin:24px 0 6px;font-size:26px}
 #loginScreen .login-intro p{max-width:none;font-size:14px}
 #loginScreen .login-illustration{display:none}
 #loginScreen .login-form{padding:30px 34px 36px}
 #loginScreen .login-dots{display:none}
}
@media (max-width:420px){
 #loginScreen.login-page{padding:16px 12px}
 #loginScreen .login-intro{padding:28px 22px 0}
 #loginScreen .login-intro-logo{width:210px}
 #loginScreen .login-form{padding:26px 22px 30px}
}

/* Sub-HR dashboard: six KPI cards in two rows of three. The extra class beats
   the responsive .mhr-kpi-grid column rules, so its own breakpoints follow. */
/* Quick action tiles (Admin and Sub-HR). The base .mhr-actions grid has five
   columns sized for Main HR's wide panel; four buttons in a narrow panel came
   out as tiny squares with clipped 8px labels. */
.mhr-actions.quick-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mhr-actions.quick-tiles button{
 min-height:98px;
 padding:14px 10px;
 gap:10px;
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:12px;
 box-shadow:0 2px 8px rgba(0,0,0,.04);
 transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mhr-actions.quick-tiles button:hover{
 background:var(--surface);
 border-color:var(--brand);
 transform:translateY(-2px);
 box-shadow:0 10px 22px rgba(198,40,40,.14);
}
.mhr-actions.quick-tiles span{
 display:grid;
 place-items:center;
 width:42px;
 height:42px;
 border-radius:50%;
 background:var(--brand-tint);
 color:var(--brand);
 font-size:19px;
 line-height:1;
}
.mhr-actions.quick-tiles b{
 font-size:12px;
 font-weight:700;
 line-height:1.3;
 text-align:center;
 color:var(--ink-2);
}
/* Main HR has five actions: three on top, two centred underneath, so no tile
   is left hanging alone in a row. */
/* ============================================================
   PROJECTS — management dashboard, styled as a dense "control center"
   rather than a generic KPI-card page: thin accent chips instead of big
   icon-block cards, single-line strips instead of padded panels, and
   one main data table as the dashboard's dominant section.
   ============================================================ */
.proj-section-label{font-size:10px;font-weight:700;letter-spacing:.6px;color:var(--ink-soft);margin:0 0 6px;padding:0 2px}

.proj-kpi-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.proj-kpi-chip{
 flex:1 1 170px;
 display:flex;
 align-items:center;
 gap:9px;
 padding:8px 12px;
 border:1px solid var(--brand-border);
 border-left:3px solid var(--brand);
 border-radius:6px;
 background:var(--surface);
 cursor:pointer;
 font:inherit;
 text-align:left;
 transition:transform .12s ease,box-shadow .12s ease;
}
.proj-kpi-chip:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.10)}
.proj-kpi-chip-icon{width:22px;height:22px;flex:0 0 22px;border-radius:6px;display:grid;place-items:center;font-size:11px;color:var(--surface);background:var(--brand)}
.proj-kpi-chip-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.proj-kpi-chip-text small{font-size:8px;font-weight:700;letter-spacing:.3px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.proj-kpi-chip-text b{font-size:16px;color:var(--ink)}
.proj-kpi-chip.green{border-left-color:var(--success-mid)}.proj-kpi-chip.green .proj-kpi-chip-icon{background:var(--success-mid)}
.proj-kpi-chip.orange{border-left-color:var(--warning-mid)}.proj-kpi-chip.orange .proj-kpi-chip-icon{background:var(--warning-mid)}
.proj-kpi-chip.purple{border-left-color:var(--brand-dark)}.proj-kpi-chip.purple .proj-kpi-chip-icon{background:var(--brand-dark)}
.proj-kpi-chip.red{border-left-color:var(--danger-mid)}.proj-kpi-chip.red .proj-kpi-chip-icon{background:var(--danger-mid)}

.proj-kpi-chip-spark{display:block;height:3px;margin-top:5px;background:var(--line-soft);border-radius:3px;overflow:hidden}
.proj-kpi-chip-spark i{display:block;height:100%;background:currentColor;opacity:.55;border-radius:3px}
.proj-kpi-chip.blue .proj-kpi-chip-spark i{background:var(--brand)}
.proj-kpi-chip.green .proj-kpi-chip-spark i{background:var(--success-mid)}
.proj-kpi-chip.orange .proj-kpi-chip-spark i{background:var(--warning-mid)}
.proj-kpi-chip.purple .proj-kpi-chip-spark i{background:var(--brand-dark)}
.proj-kpi-chip.red .proj-kpi-chip-spark i{background:var(--danger-mid)}

.proj-perf-strip{
 display:flex;
 flex-wrap:wrap;
 gap:18px;
 align-items:center;
 padding:10px 14px;
 border:1px solid var(--brand-border);
 border-radius:7px;
 background:var(--surface);
 margin-bottom:12px;
}
.proj-perf-item{flex:1 1 180px;display:flex;align-items:center;gap:9px;font-size:11px}
.proj-perf-item span{flex:0 0 90px;color:var(--ink-soft);font-weight:700;font-size:9px;letter-spacing:.3px}
.proj-perf-item .admin-bar-track{flex:1}
.proj-perf-item b{flex:0 0 36px;text-align:right;color:var(--ink);font-size:15px}
.proj-perf-item b.danger{color:var(--danger-mid)}
.proj-perf-item b.warn{color:var(--warning-mid)}
.proj-delivery-strip .proj-perf-item{justify-content:space-between}

.proj-analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.proj-chart-panel{margin-bottom:0}

.proj-dash .table-panel{margin-bottom:12px}
.proj-progress-cell{display:flex}
.proj-progress-ring{position:relative;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 32px}
.proj-progress-ring::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--surface)}
.proj-progress-ring span{position:relative;z-index:1;font-size:8px;font-weight:700;color:var(--ink)}

.proj-status-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:9px;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.proj-status-badge.completed{background:var(--success-tint);color:var(--success-mid)}
.proj-status-badge.inprogress{background:var(--brand-tint);color:var(--brand)}
.proj-status-badge.approval{background:var(--warning-tint);color:#8A5A0F}
.proj-status-badge.atrisk{background:var(--danger-tint);color:var(--danger-mid)}
.proj-status-badge.other{background:var(--line-soft);color:var(--ink-soft)}

.proj-attention-panel{margin-bottom:12px}
.proj-attention-head h3{color:var(--danger)}
.proj-attention-head span{color:var(--danger-mid);font-weight:700}

.proj-action-bar{display:flex;flex-wrap:wrap;gap:8px}

/* Sharper, denser card shell for this dashboard only — every other
   profile keeps the app's default rounder .mhr-panel. */
.proj-dash .mhr-panel{border-radius:6px;padding:12px}
.proj-dash .mhr-panel-head{margin-bottom:9px}


@media (max-width:1100px){
 .proj-analytics-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
 .proj-kpi-chip{flex-basis:100%}
}

/* ============================================================
   PROJECTS — Gantt Chart. Reuses .status-chip / .status-filter-list
   (already used by the tracker's status filter and Report Center's
   period picker) for the status/zoom controls, and the same
   .modal-overlay/.login-card popup pattern used everywhere else in
   the app for the view/edit dialogs.
   ============================================================ */
.gantt-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.gantt-mode-badge{
 display:inline-flex;
 align-items:center;
 flex:0 0 auto;
 padding:6px 14px;
 border-radius:20px;
 font-size:10px;
 font-weight:700;
 letter-spacing:.6px;
 white-space:nowrap;
}
.gantt-mode-badge.view{background:var(--line-soft);color:var(--ink-soft)}
.gantt-mode-badge.edit{background:var(--brand);color:var(--on-brand)}
.gantt-search-wrap{max-width:260px;min-width:170px;flex:0 1 260px}
.gantt-status-filter,.gantt-zoom-filter{margin:0}

.gantt-wrap{
 overflow-x:auto;
 border:1px solid var(--line);
 border-radius:8px;
 background:var(--surface);
 scroll-behavior:smooth;
 -webkit-overflow-scrolling:touch;
}
.gantt-row{
 display:flex;
 align-items:stretch;
 min-height:56px;
 border-bottom:1px solid var(--line-soft);
 /* A flex row with no explicit width only ever fills .gantt-wrap's visible
    width, even though its track child is far wider — so position:sticky on
    the PROJECT label (bounded by this row, not the full scroll width) ran
    out of room and slid off-screen once scrolled past that point. Sizing
    the row to its own content keeps it exactly as wide as the timeline,
    which keeps the sticky label correctly pinned at every scroll position. */
 width:max-content;
 min-width:100%;
}
.gantt-row:last-child{border-bottom:0}
/* Zebra striping — the header row (always child 1) keeps its own background
   below, so this only ever lands on the data rows. */
.gantt-row:nth-child(even){background:var(--surface-2)}
.gantt-row:nth-child(even) .gantt-label{background:var(--surface-2)}
.gantt-row:nth-child(even) .gantt-label:hover{background:var(--brand-tint)}
.gantt-header-row{
 height:38px;
 background:var(--surface-2);
 border-bottom:1px solid var(--line);
 box-shadow:0 1px 0 rgba(0,0,0,.04);
}
.gantt-label{
 position:sticky;
 left:0;
 z-index:2;
 width:280px;
 flex:0 0 280px;
 padding:8px 14px;
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:2px;
 background:var(--surface);
 border-right:1px solid var(--line);
 cursor:pointer;
}
.gantt-label b{font-size:12px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gantt-label small{font-size:10px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gantt-label .gantt-deps{color:var(--brand)}
.gantt-label:hover{background:var(--brand-tint)}
.gantt-date-tags{display:flex;flex-wrap:wrap;gap:6px;white-space:normal!important}
.gantt-tag{font-size:9px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
.gantt-tag-due{color:var(--ink-soft)}
.gantt-tag-due.overdue{color:var(--danger);font-weight:700}
.gantt-tag-milestone{color:var(--brand)}
.gantt-label-head{
 font-size:9px;
 font-weight:700;
 letter-spacing:1px;
 color:var(--ink-soft);
 cursor:default;
 background:var(--surface-2);
}
.gantt-label-head:hover{background:var(--surface-2)}

.gantt-track{position:relative;flex:0 0 auto;min-width:100%}
.gantt-track-empty{
 display:flex;
 align-items:center;
 padding-left:14px;
 font-size:11px;
 color:var(--ink-mute);
 white-space:nowrap;
}
.gantt-tick{
 position:absolute;
 top:0;
 bottom:0;
 border-left:1px solid var(--line-soft);
 padding:5px 5px;
 font-size:9px;
 color:var(--ink-soft);
 white-space:nowrap;
}
/* Header-row ticks are the Month/Week/Day separators — a slightly stronger
   line than the ones behind the bars in the body, so the scale reads
   clearly without darkening every row underneath. */
.gantt-header-row .gantt-tick{
 border-left:1px solid var(--line-strong);
 font-weight:700;
 letter-spacing:.3px;
 color:var(--ink);
 padding-top:12px;
}
.gantt-today-line{
 position:absolute;
 top:0;
 bottom:0;
 width:2px;
 background:var(--brand);
 opacity:.7;
 z-index:3;
 pointer-events:none;
}
.gantt-today-label{
 position:absolute;
 top:-1px;
 left:4px;
 font-size:8px;
 font-weight:700;
 letter-spacing:.4px;
 color:var(--surface);
 background:var(--brand);
 padding:1px 4px;
 border-radius:3px;
 white-space:nowrap;
}
.gantt-bar{
 position:absolute;
 top:12px;
 height:28px;
 border-radius:7px;
 border:1px solid rgba(0,0,0,.08);
 overflow:hidden;
 cursor:pointer;
 display:flex;
 align-items:center;
 box-shadow:0 1px 4px rgba(0,0,0,.15);
 transition:filter .12s ease, box-shadow .12s ease;
}
.gantt-bar:hover{filter:brightness(1.08);box-shadow:0 4px 10px rgba(0,0,0,.24)}
.gantt-bar-fill{position:absolute;left:0;top:0;bottom:0;background:rgba(255,255,255,.32)}
.gantt-bar-label{position:relative;z-index:1;font-size:10px;font-weight:700;color:#fff;padding:0 8px;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.35)}
/* Milestone diamond — sits at the Target Date's exact x-position, centered
   on the bar's own vertical middle (bar top:12px, height:28px → 26px). */
.gantt-milestone{
 position:absolute;
 top:26px;
 width:11px;
 height:11px;
 background:var(--brand-dark);
 border:2px solid var(--surface);
 border-radius:2px;
 transform:translate(-50%,-50%) rotate(45deg);
 box-shadow:0 1px 3px rgba(0,0,0,.25);
 z-index:2;
 pointer-events:none;
}
/* Overdue: a project past its Due Date and not Completed gets a dashed
   outline on top of whatever its status color already is, so "overdue"
   reads as its own signal rather than being folded into the status color. */
.gantt-bar-overdue{
 outline:2px dashed var(--danger);
 outline-offset:2px;
}
.gantt-detail-rows{display:flex;flex-direction:column;gap:2px;margin:4px 0 4px}
.gantt-detail-row{
 display:flex;
 justify-content:space-between;
 gap:14px;
 padding:8px 0;
 border-bottom:1px solid var(--line-soft);
 font-size:12px;
}
.gantt-detail-row span{color:var(--ink-soft)}
.gantt-detail-row b{color:var(--ink);text-align:right}

@media (max-width:720px){
 .gantt-label{width:160px;flex-basis:160px}
 .gantt-search-wrap{flex-basis:100%;max-width:none}
}

/* =================================================================
   Top toolbar controls (AUTO SAVE / EXPORT CSV / EXPORT EXCEL / SERVER pill)
   Presentation only — same buttons, ids and handlers. One height, radius,
   padding and icon spacing so the four read as a single toolbar. Icons are CSS
   masks so nothing in the markup or in updateAutoSyncButton() had to change.
   ================================================================= */
#portal .portal-head-actions{gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* --- Export CSV / Export Excel: compact white button, thin red border --- */
#portal .portal-head-actions .export-head-btn{
  box-sizing:border-box;height:44px;margin:0;padding:0 18px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-size:13.5px;font-weight:600;letter-spacing:.2px;line-height:1;white-space:nowrap;
  width:auto;flex:0 0 auto;box-shadow:none;
  background:var(--surface);border:1px solid var(--brand);color:var(--brand);
  transition:background .15s ease,border-color .15s ease;
}
#portal .portal-head-actions .export-head-btn:hover{
  background:var(--brand-tint);border-color:var(--brand);color:var(--brand);
}
#portal .portal-head-actions .export-head-btn::before{
  content:"";flex:0 0 auto;width:17px;height:17px;background:currentColor;
  -webkit-mask:var(--tb-icon) center/contain no-repeat;mask:var(--tb-icon) center/contain no-repeat;
}
#exportCsvBtn{
  --tb-icon:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 11l5 5 5-5M5 20h14'/></svg>");
}
#exportExcelBtn{
  --tb-icon:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><path d='M4 10h16M4 15h16M10 4v16'/></svg>");
}

/* --- Auto Save: a STATUS chip, not a primary action button.
   Same button, same id, same toggleAutoSync() handler — only the
   presentation changes. The leading dot replaces the old floppy icon
   (mask explicitly cleared) and carries the on/off state colour. --- */
#portal .portal-head-actions .sync-toggle-btn{
  box-sizing:border-box;height:44px;margin:0;padding:0 16px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-size:13.5px;font-weight:600;letter-spacing:.2px;line-height:1;white-space:nowrap;
  width:auto;flex:0 0 auto;cursor:pointer;box-shadow:none;
  border:1px solid transparent;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
#portal .portal-head-actions .sync-toggle-btn::before{
  content:"";flex:0 0 auto;width:9px;height:9px;border-radius:50%;
  -webkit-mask:none;mask:none;background:currentColor;
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-on{
  background:var(--success-tint);border-color:#CFE8DC;color:var(--ink);
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-on::before{
  background:var(--success-mid);box-shadow:0 0 0 3px rgba(32,196,106,.18);
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-on:hover{
  background:#E2F3EA;border-color:#BFE0D0;
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-off{
  background:var(--surface-2);border-color:var(--line-strong);color:var(--ink-soft);
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-off::before{
  background:var(--ink-mute);box-shadow:none;
}
#portal .portal-head-actions .sync-toggle-btn.sync-toggle-off:hover{
  background:var(--surface);border-color:var(--ink-mute);color:var(--ink-2);
}

/* Server status stays a plain inline indicator — no box, border or background.
   Only its height is aligned with the controls beside it. */
#portal .portal-head-actions .cloud-sync-indicator{
  box-sizing:border-box;background:transparent;border:0;border-radius:0;
  padding:0 2px;margin:0;height:44px;
  display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;white-space:nowrap;
}
#portal .portal-head-actions .cloud-sync-indicator .sync-dot{width:8px;height:8px;flex:0 0 auto}
#portal .portal-head-actions .cloud-sync-indicator .sync-label{font-size:12.5px;font-weight:600;letter-spacing:.3px}

/* Narrow screens: wrap onto the next line instead of overflowing. */
@media(max-width:900px){
  #portal .portal-head-actions{gap:10px;justify-content:flex-start}
  #portal .portal-head-actions .sync-toggle-btn,
  #portal .portal-head-actions .export-head-btn{height:40px;padding:0 14px;font-size:13px}
}

/* =================================================================
   Admin → Maintenance (compact control-panel look). Green = healthy,
   grey = informational, amber = warning, red = a real problem.
   ================================================================= */
.mt-page{display:flex;flex-direction:column;gap:14px;max-width:100%;min-width:0}
.mt-page *{box-sizing:border-box}
.mt-page-head{display:flex;align-items:center;gap:14px}
.mt-page-head h2{margin:0;font-size:22px;line-height:1.15;color:var(--ink)}
.mt-page-head p{margin:3px 0 0;font-size:12px;color:var(--ink-soft)}
.mt-badge{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:grid;place-items:center}
.mt-badge svg,.mt-badge svg *{color:inherit}
.mt-badge .mt-ic{width:18px;height:18px}
.mt-badge-lg{width:46px;height:46px}
.mt-badge-lg .mt-ic{width:24px;height:24px}
.mt-ic{width:16px;height:16px;flex:0 0 auto}
.mt-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.mt-card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mt-titles{flex:1 1 220px;min-width:0}
.mt-titles h3{margin:0;font-size:15px;color:var(--ink)}
.mt-titles p{margin:2px 0 0;font-size:11.5px;color:var(--ink-soft)}
.mt-head-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
.mt-meta{font-size:11px;color:var(--ink-soft);white-space:nowrap}
.mt-meta+.mt-meta{padding-left:12px;border-left:1px solid var(--line)}
/* status colours */
.mt-dot{flex:0 0 auto;display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ink-mute)}
.mt-ok .mt-dot{background:var(--success-mid);box-shadow:0 0 6px rgba(32,196,106,.6)}
.mt-warn .mt-dot{background:var(--warning-mid);box-shadow:0 0 6px rgba(217,164,65,.6)}
.mt-bad .mt-dot{background:var(--danger-mid);box-shadow:0 0 6px rgba(239,75,85,.6)}
.mt-val{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.mt-ok>.mt-val,.mt-val.mt-ok{color:var(--success-mid)}
.mt-warn>.mt-val{color:var(--warning-mid)}
.mt-bad>.mt-val,.mt-val.mt-bad{color:var(--danger-mid)}
.mt-val.mt-plain{color:var(--ink)}
.mt-page .mt-val span{color:inherit}
.mt-summary{display:flex;align-items:center;gap:7px;margin-top:3px;font-size:12px;font-weight:600;color:var(--ink-soft)}
.mt-summary.mt-ok{color:var(--success-mid)}
.mt-summary.mt-warn{color:var(--warning-mid)}
.mt-summary.mt-bad{color:var(--danger-mid)}
/* health metrics: one compact panel, hairline dividers that survive wrapping */
.mt-metrics-wrap{margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.mt-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin:0 -1px -1px 0}
.mt-metric{padding:12px 16px;min-width:0;box-shadow:inset -1px -1px 0 var(--line)}
.mt-metric-top{display:flex;align-items:center;gap:9px;margin-bottom:8px;font-size:12px;color:var(--ink-2)}
.mt-ic-wrap{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:grid;place-items:center}
.mt-metric small,.mt-field small,.mt-lan-col small{display:block;margin-top:3px;font-size:11px;line-height:1.35;color:var(--ink-soft)}
/* buttons (scoped so the app's blanket button colour rules can't override them) */
.mt-page .mt-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 14px;border-radius:8px;font-size:12px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap;margin:0;transition:background .15s ease,border-color .15s ease}
.mt-page .mt-btn .mt-ic{width:15px;height:15px}
.mt-page .mt-btn span{color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0}
.mt-page .mt-btn-primary{background:var(--brand);border:1px solid var(--brand);color:var(--on-brand)}
.mt-page .mt-btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:var(--on-brand)}
.mt-page .mt-btn-outline{background:var(--surface);border:1px solid var(--brand);color:var(--brand)}
.mt-page .mt-btn-outline:hover{background:var(--brand-tint);color:var(--brand)}
.mt-page .mt-btn-ghost{background:var(--surface);border:1px solid var(--line-strong);color:var(--ink)}
.mt-page .mt-btn-ghost:hover{background:var(--surface-2);color:var(--ink)}
.mt-page .mt-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* connection form row */
.mt-conn-row{display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(150px,1fr) minmax(190px,1fr) auto;gap:14px 24px;align-items:start;margin-top:14px}
.mt-field{min-width:0}
.mt-field>label,.mt-lan-col label{display:block;margin:0 0 5px;font-size:12px;font-weight:600;color:var(--ink-2)}
.mt-field .mt-val{min-height:36px}
.mt-input{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink-soft)}
.mt-input:focus-within{border-color:var(--brand)}
.mt-input input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;font-size:13px;color:var(--ink)}
.mt-select{height:36px;min-width:90px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-size:13px;font-weight:700;color:var(--ink)}
.mt-select:focus{outline:0;border-color:var(--brand)}
.mt-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:21px}
.mt-actions.mt-actions-row{padding-top:0;margin-top:14px}
.mt-adv{margin-left:auto;font-size:12px;color:var(--ink-soft)}
.mt-adv summary{cursor:pointer;list-style:none;padding:6px 2px;user-select:none}
.mt-adv summary::-webkit-details-marker{display:none}
.mt-adv summary::after{content:" ⌄";font-size:11px}
.mt-adv[open] summary::after{content:" ⌃"}
.mt-adv-body{display:flex;align-items:center;gap:8px;margin-top:4px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.mt-adv-body code{font-size:11px;color:var(--ink)}
/* LAN access: 3 compact columns */
.mt-lan{display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(200px,1fr) minmax(220px,1fr);margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.mt-lan-col{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;min-width:0}
.mt-lan-col+.mt-lan-col{border-left:1px solid var(--line)}
.mt-grow{flex:1;min-width:0}
.mt-copyrow{display:flex;gap:8px;align-items:center}
.mt-copyrow input{flex:1;min-width:0;height:34px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-size:13px;color:var(--ink)}
.mt-lan-col .mt-val{font-size:13px}
@media(max-width:1100px){
  .mt-conn-row{grid-template-columns:1fr 1fr}
  .mt-conn-row .mt-grow{grid-column:1/-1}
  .mt-actions{padding-top:0}
  .mt-lan{grid-template-columns:1fr}
  .mt-lan-col+.mt-lan-col{border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:560px){
  .mt-conn-row{grid-template-columns:1fr}
  .mt-head-tools{margin-left:0}
  .mt-meta+.mt-meta{padding-left:0;border-left:0}
}

/* =================================================================
   "Select Profile" picker (Admin Master Tracker / Main HR Sub-HR Tracker List)
   Compact red button + searchable dropdown. Selectors are scoped under
   .pp-wrap so the Admin area's blanket button/text colour rules can't win.
   ================================================================= */
.pp-wrap{position:relative;display:inline-block}
.pp-wrap svg,.pp-wrap svg *{color:inherit}
.pp-wrap .pp-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--brand);border-radius:8px;background:var(--brand);color:var(--on-brand);font-size:13px;font-weight:600;line-height:1;cursor:pointer;margin:0;white-space:nowrap;transition:background .15s ease}
.pp-wrap .pp-btn:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
/* A secondary (white/red-outline) variant of the same trigger, for pages
   where it sits beside an actual primary action (e.g. Target Records next
   to + Assign Target) and shouldn't compete with it for attention. */
.pp-wrap .pp-btn.pp-btn-outline{background:var(--surface);color:var(--brand);border-color:var(--brand-border)}
.pp-wrap .pp-btn.pp-btn-outline:hover{background:var(--brand-tint);border-color:var(--brand)}
.pp-wrap .pp-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pp-wrap .pp-btn span{color:inherit}
.pp-wrap .pp-ic{width:16px;height:16px;flex:0 0 auto}
.pp-wrap .pp-chev{width:14px;height:14px;flex:0 0 auto;transition:transform .18s ease}
.pp-wrap .pp-btn[aria-expanded="true"] .pp-chev{transform:rotate(180deg)}
.pp-wrap .pp-dropdown{position:absolute;left:0;top:calc(100% + 8px);z-index:60;box-sizing:border-box;width:400px;max-width:calc(100vw - 24px);padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.16)}
.pp-wrap .pp-dropdown:not(.hidden){animation:mhrUserDropdownIn .14s ease}
.pp-wrap .pp-search{display:flex;align-items:center;gap:10px;height:40px;margin:2px 4px 6px;padding:0 6px;color:var(--ink-soft);cursor:text}
.pp-wrap .pp-search input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;font-size:14px;color:var(--ink)}
.pp-wrap .pp-search input::placeholder{color:var(--ink-soft)}
.pp-wrap .pp-list{display:flex;flex-direction:column;gap:2px;max-height:300px;overflow-y:auto}
.pp-wrap .pp-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:9px 12px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer;margin:0}
.pp-wrap .pp-row:hover,.pp-wrap .pp-row.pp-active{background:var(--surface-2)}
.pp-wrap .pp-row.pp-selected{background:var(--brand-tint)}
.pp-wrap .pp-row:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.pp-wrap .pp-avatar{flex:0 0 auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;object-fit:cover;font-size:13px;font-weight:700;color:#fff}
.pp-wrap .pp-avatar-main{background:var(--brand)}
.pp-wrap .pp-avatar-sub{background:#8A94A6}
.pp-wrap .pp-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pp-wrap .pp-name{font-size:14px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-wrap .pp-sub{font-size:12px;color:var(--ink-soft)}
.pp-wrap .pp-check{flex:0 0 auto;width:16px;height:16px;color:var(--brand)}
.pp-wrap .pp-empty{padding:14px 12px;font-size:13px;color:var(--ink-soft);text-align:center}
.pp-wrap .pp-footer{margin:8px 4px 0;padding-top:6px;border-top:1px solid var(--line)}
.pp-wrap .pp-manage{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:9px 8px;border:0;border-radius:8px;background:transparent;color:var(--brand);font-size:13px;font-weight:600;cursor:pointer;margin:0}
.pp-wrap .pp-manage:hover{background:var(--brand-tint)}
.pp-wrap .pp-manage span{color:inherit}
.pp-wrap .pp-manage .mt-ic{width:16px;height:16px}

/* ---- Delete All: button + confirmation popup ---- */
.delete-row-btn.del-all-btn{
  display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;
  border-radius:10px;border:1px solid var(--danger);background:var(--surface);color:var(--danger);
  font-size:12px;font-weight:700;letter-spacing:.3px;cursor:pointer;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.delete-row-btn.del-all-btn:hover{background:var(--danger);color:#fff;box-shadow:0 2px 8px rgba(198,40,40,.25)}
.admin-dashboard-shell .delete-row-btn.del-all-btn{color:var(--danger)}
.admin-dashboard-shell .delete-row-btn.del-all-btn:hover{color:#fff}
.del-all-btn .del-ico,.confirm-modal .del-ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:inherit}
.del-all-btn .del-ico *,.confirm-modal .del-ico *{color:inherit}
.del-all-btn span{color:inherit}

.confirm-modal.logout-confirm-card{width:min(400px,92vw) !important;border-radius:14px !important;padding:28px 26px 22px !important;box-shadow:0 18px 48px rgba(0,0,0,.28) !important}
.confirm-modal .logout-confirm-icon{width:56px;height:56px;background:var(--brand-tint);color:var(--danger);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:0}
.confirm-modal .logout-confirm-icon .del-ico{width:26px;height:26px}
.confirm-modal h2{font-size:18px;font-weight:700;margin:0 0 8px}
.confirm-modal .logout-confirm-text{font-size:13.5px;line-height:1.5;margin:0 0 22px}
.confirm-modal .logout-confirm-actions{display:flex;gap:10px;justify-content:center}
.confirm-modal .logout-confirm-actions .action-btn{flex:1;height:40px;border-radius:10px;font-size:12.5px;font-weight:700;letter-spacing:.3px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.confirm-modal .logout-confirm-yes{background:var(--danger) !important;border:1px solid var(--danger) !important;color:#fff !important}
.confirm-modal .logout-confirm-yes:hover{filter:brightness(.92)}
.confirm-modal .logout-confirm-no{background:var(--surface) !important;border:1px solid var(--line-strong,#d6d6d6) !important;color:var(--ink) !important}
.confirm-modal .logout-confirm-no:hover{background:#f5f5f5 !important}
.confirm-modal .logout-confirm-actions .action-btn:focus-visible{outline:2px solid var(--danger);outline-offset:2px}
@media (max-width:420px){.confirm-modal .logout-confirm-actions{flex-direction:column-reverse}}

/* ---- Admin → User Management (content area only; scoped under .um-page) ---- */
.um-page .um-head{margin-bottom:12px}
.um-page .um-head .muted{color:var(--ink-soft);font-size:12px}
.um-page .um-head .action-btn{height:34px;border-radius:8px;font-size:11.5px}

.um-page .usercount-grid.um-cards{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;margin:0 0 14px}
.um-page .um-card{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--line);border-left:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.05);cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease}
.um-page .um-card:hover{transform:none;box-shadow:0 3px 10px rgba(198,40,40,.12);border-color:var(--brand-border)}
.um-page .um-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.um-page .um-card-ico{width:44px;height:44px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center}
.um-page .um-card-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.um-page .um-card-ico svg *{color:inherit}
.um-page .um-ico-main{background:var(--brand-tint);color:var(--brand)}
.um-page .um-ico-sub{background:#EEE8FA;color:#6B3FC4}
.um-page .um-ico-proj{background:#E4EEFB;color:#1F62C4}
.um-page .um-card-body{flex:1;min-width:0}
.um-page .um-card h3{margin:0;font-size:11.5px;letter-spacing:.6px;color:var(--ink);font-weight:700}
.um-page .um-card .metric{font-size:26px;line-height:1.15;margin:2px 0 0}
.um-page .um-card .muted{font-size:11.5px;font-weight:500;color:var(--ink-soft)}
.um-page .um-chev{width:16px;height:16px;flex:none;fill:none;stroke:var(--ink-soft);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.um-page .table-search-bar{gap:10px;margin:0 0 10px;padding:0}
.um-page .table-search-bar .search-suggest-wrap{flex:1 1 420px;max-width:640px}
.um-page .table-search-bar input{height:38px;border-radius:8px;font-size:12.5px;padding:0 12px 0 36px}
.um-page .table-search-bar .action-btn{height:38px;border-radius:8px}
.um-page .table-filter-btn{width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.um-page .status-filter-list{margin:0 0 10px}

.um-page .um-table-wrap{border:1px solid var(--line);border-radius:10px;background:var(--surface);max-height:calc(100vh - 380px);min-height:160px}
.um-page .um-table{min-width:860px;table-layout:fixed}
.um-page .um-table thead th,
.um-page .portal-table th{background:var(--brand-tint) !important;color:var(--brand-dark) !important;border:0 !important;border-bottom:1px solid var(--brand-border-2) !important;font-size:11.5px;font-weight:800;letter-spacing:.5px;padding:11px 12px;white-space:nowrap}
.um-page .um-table td{padding:8px 12px;vertical-align:middle;border-bottom:1px solid var(--line-soft) !important;font-size:12.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.um-page .um-table th:nth-child(1),.um-page .um-table td:nth-child(1){width:72px}
.um-page .um-table th:nth-child(2){width:150px}
.um-page .um-table th:nth-child(5){width:120px}
.um-page .um-table th:nth-child(6){width:190px}
.um-page .um-table tbody tr:hover td{background:var(--surface-2)}
.um-page .um-table tbody tr:hover{background:transparent !important}
.um-page .um-table .pw-value{letter-spacing:2px;color:var(--ink-soft)}

.um-page .um-badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 4px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.4px;white-space:nowrap}
.um-page .um-badge-ico{width:18px;height:18px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.um-page .um-badge-ico svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.um-page .um-badge-ico svg *{color:inherit}
.um-page .um-badge-main{background:var(--brand-tint);color:var(--brand)}
.um-page .um-badge-sub{background:#EEE8FA;color:#6B3FC4}
.um-page .um-badge-proj{background:#E4EEFB;color:#1F62C4}

.um-page .um-actions{white-space:nowrap}
.um-page .um-actions .action-btn,.um-page .um-actions .delete-row-btn{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:7px;font-size:11.5px;font-weight:700;margin:0 6px 0 0;cursor:pointer}
.um-page .um-actions .um-edit{background:var(--brand);border:1px solid var(--brand);color:#fff}
.um-page .um-actions .um-edit:hover{filter:brightness(.92)}
.um-page .um-actions .um-del{background:var(--surface);border:1px solid var(--danger);color:var(--danger)}
.um-page .um-actions .um-del:hover{background:var(--brand-tint)}
.um-page .um-actions span{color:inherit}
.um-page .um-ico,.um-page .um-del .del-ico{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:inherit}
.um-page .um-ico *,.um-page .um-del .del-ico *{color:inherit}

.um-page .um-foot{padding:10px 4px 0;font-size:12px;color:var(--ink-soft)}
.um-page .um-assign{margin-top:14px !important;padding:14px 16px;border-radius:10px}
.um-page .um-assign h3{font-size:13px}
@media (max-width:900px){.um-page .usercount-grid.um-cards{grid-template-columns:1fr !important}}
.um-page .um-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px}
.um-page .um-head .backup-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0}

/* ---- Icon Edit / Delete row buttons — same look everywhere (from User Management) ---- */
.action-btn.um-edit,.delete-row-btn.um-del{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:7px;font-size:11.5px;font-weight:700;letter-spacing:.2px;margin:2px 6px 2px 0;cursor:pointer;white-space:nowrap;vertical-align:middle}
.action-btn.um-edit{background:var(--brand);border:1px solid var(--brand);color:#fff}
.action-btn.um-edit:hover{filter:brightness(.92);background:var(--brand);color:#fff}
.delete-row-btn.um-del{background:var(--surface);border:1px solid var(--danger);color:var(--danger)}
.delete-row-btn.um-del:hover{background:var(--brand-tint);color:var(--danger)}
.admin-dashboard-shell .action-btn.um-edit,.admin-dashboard-shell .action-btn.um-edit span{color:#fff}
.admin-dashboard-shell .delete-row-btn.um-del,.admin-dashboard-shell .delete-row-btn.um-del:hover,.admin-dashboard-shell .delete-row-btn.um-del span{color:var(--danger)}
.um-edit span,.um-del span{color:inherit}
.um-edit .um-ico,.um-del .del-ico{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:inherit}
.um-edit .um-ico *,.um-del .del-ico *{color:inherit}

/* Phone fields: highlight after a failed 10-digit check */
input.input-invalid{border-color:var(--danger) !important;box-shadow:0 0 0 2px rgba(198,40,40,.15)}

/* Phone validation: inline error box (white + red theme) */
.phone-error{display:flex;align-items:flex-start;gap:8px;margin-top:6px;padding:8px 10px;background:var(--brand-tint);border:1px solid var(--brand);border-radius:8px;font-size:12px;line-height:1.35;font-weight:600;color:var(--danger);text-align:left;white-space:normal}
.phone-error span{color:var(--danger)}
.phone-error .phone-error-ico{width:16px;height:16px;flex:none;margin-top:1px;fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.phone-error .phone-error-ico *{color:inherit}
.admin-dashboard-shell .phone-error,.admin-dashboard-shell .phone-error span{color:var(--danger)}
.direct-edit-table td:has(> input[data-phone]){position:relative}
.phone-error.phone-error-cell{position:absolute;left:8px;top:calc(100% - 6px);z-index:6;min-width:230px;max-width:280px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
input[data-phone].input-invalid{border-color:var(--brand) !important;box-shadow:0 0 0 2px rgba(198,40,40,.12)}

/* Duplicate-candidate warning (reuses the .confirm-modal popup) */
.dup-card .logout-confirm-icon{background:var(--brand-tint)}
.dup-card .logout-confirm-text{margin-bottom:14px}
.dup-list{margin:0 0 20px;padding:10px 12px;background:var(--brand-tint);border:1px solid var(--brand-border);border-radius:10px;text-align:left}
.dup-row{display:grid;grid-template-columns:52px 1fr;gap:4px 10px;font-size:13px;padding:2px 0}
.dup-row+.dup-row{margin-top:8px;padding-top:8px;border-top:1px solid var(--brand-border-2)}
.dup-k{color:var(--ink-soft);font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;align-self:center}
.dup-row b{color:var(--ink);font-weight:700;word-break:break-word}
.dup-more{margin-top:8px;font-size:12px;color:var(--ink-soft)}

/* ---- Main HR → Candidate Target Distribution (scoped under .td-page) ---- */
.td-page{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px 18px}
.td-page svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.td-page svg *{color:inherit}
.td-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.td-head-main{display:flex;align-items:center;gap:12px;min-width:0}
.td-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* "My Target History" is longer text than this button style usually
   carries -- keep it on one line and let the whole button wrap to its own
   row (the container already does flex-wrap) rather than the text
   wrapping inside a squeezed button. */
.td-head-actions .action-btn{white-space:nowrap}
.td-head-ico{width:44px;height:44px;flex:none;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center}
.td-head-ico svg{width:22px;height:22px}
.td-head h3{margin:0;font-size:19px;font-weight:800;color:var(--ink);letter-spacing:0;text-transform:none}
.td-head p{margin:2px 0 0;font-size:12.5px;color:var(--ink-soft)}
.td-page .td-assign{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 16px;border-radius:8px;font-size:12.5px;font-weight:700}
.td-assign svg{width:15px;height:15px;stroke-width:2.4}
.td-assign span{color:inherit}
.td-period{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;font-size:13px;color:var(--ink-soft)}
.td-period .td-cal{width:16px;height:16px;color:var(--brand)}
.td-period b{color:var(--ink);font-weight:700}
.td-period .td-arrow{width:14px;height:14px;color:var(--ink-soft)}
.td-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}
.td-kpi{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#fff,#FFF7F7)}
.td-kpi-ico{width:40px;height:40px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center}
.td-kpi-ico svg{width:20px;height:20px}
.td-kpi-blue .td-kpi-ico,.td-kpi-purple .td-kpi-ico{background:var(--brand-tint);color:var(--brand)}
.td-kpi-red .td-kpi-ico{background:var(--brand-tint);color:var(--brand)}
.td-kpi-green .td-kpi-ico{background:#DDF3E7;color:#1E9E5A}
.td-kpi-orange .td-kpi-ico{background:#FCEBD3;color:#D9901A}
.td-kpi-body{min-width:0;display:flex;flex-direction:column}
.td-kpi small{font-size:10.5px;font-weight:700;letter-spacing:.3px;color:var(--ink-soft);line-height:1.25}
.td-kpi b{font-size:26px;line-height:1.15;color:var(--ink);font-weight:800}
.td-kpi em{font-style:normal;font-size:11.5px;color:var(--ink-soft)}
.td-banner{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:10px 14px;background:var(--brand-tint);border:1px solid var(--brand-border);border-radius:10px;color:var(--danger)}
.td-banner svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--brand)}
.td-banner p{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink)}
.td-banner p b{color:var(--danger)}
.td-table-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.td-page .td-table-wrap{border:0;border-radius:0;max-height:none}
.td-page .td-table{min-width:1000px;width:100%}
.td-page .td-table thead th{background:var(--brand-tint) !important;color:var(--brand-dark) !important;border:0 !important;border-bottom:1px solid var(--brand-border-2) !important;font-size:11px;font-weight:800;letter-spacing:.4px;padding:12px 14px;white-space:nowrap}
.td-page .td-table td{padding:12px 14px;vertical-align:middle;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line-soft) !important;white-space:nowrap}
.td-page .td-table tbody tr:last-child td{border-bottom:0 !important}
.td-page .td-table tbody tr:hover td{background:var(--surface-2)}
.td-page .td-table tbody tr:hover{background:transparent !important}
.td-person{display:flex;align-items:center;gap:10px}
.td-avatar{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;object-fit:cover}
.td-avatar-1{background:#E57373}.td-avatar-2{background:#8E44D6}.td-avatar-3{background:#6C3FD1}.td-avatar-4{background:#7A3FCB}.td-avatar-5{background:#5B3FC9}
.td-person-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.td-person-text b{font-weight:600;font-size:13px}
.td-person-text small{font-size:11.5px;color:var(--ink-soft)}
.td-progress{display:flex;align-items:center;gap:8px;min-width:140px}
.td-bar{flex:1;height:8px;border-radius:999px;background:#EEEEF0;overflow:hidden;display:block}
.td-bar i{display:block;height:100%;min-width:0;background:var(--success-mid,#20c997);border-radius:999px}
/* First ("my own") KPI card in a row — a thicker brand-colored left edge,
   same idea as .login-card's own top accent, to set it apart from the
   rest (which are all about someone/something else). */
.td-kpi-highlight{border-left:3px solid var(--brand)}
/* Main HR/Sub-HR's own target pages want a neutral light-grey table header
   (a plain, professional-SaaS look) instead of the pink-tinted header every
   other .td-table (including Admin's Assign Target page) already uses —
   scoped to this one modifier so Admin's page is untouched. */
.td-page .td-table.td-table-neutral-head thead th{background:var(--surface-2) !important;color:var(--ink-soft) !important;border-bottom:1px solid var(--line) !important}
.td-avatar-cell{display:flex;justify-content:center}
.td-table-toolbar{padding:14px 14px 0}
.td-table-toolbar .table-search-bar{position:static}
/* A per-row "Assigned by / Assigned on / Last updated" strip, directly
   under that row, on the same light grey as the neutral table header —
   reads straight off the row's own record, never a separate store. */
.td-meta-row td{background:var(--surface-2) !important;padding:10px 14px !important}
.td-meta-strip{display:flex;gap:28px;flex-wrap:wrap;white-space:normal}
.td-meta-item{display:flex;align-items:center;gap:8px}
.td-meta-item svg{width:16px;height:16px;color:var(--ink-mute);flex:none}
.td-meta-item-text{display:flex;flex-direction:column;line-height:1.3}
.td-meta-item-text small{font-size:11px;color:var(--ink-soft)}
.td-meta-item-text b{font-size:12.5px;color:var(--ink);font-weight:700}
.td-progress em{font-style:normal;font-size:12px;color:var(--ink-soft);min-width:32px;text-align:right}
.td-pill{display:inline-flex;align-items:center;height:24px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:600;background:#EEEEF0;color:#6B6B6B}
.td-pill-active{background:#DDF3E7;color:#1B8A4E}
.td-pill-completed{background:#D3EEDD;color:#137A43}
.td-pill-expired{background:var(--brand-tint);color:var(--danger)}
.td-pill-not-set{background:#EEEEF0;color:#6B6B6B}
.td-pill-deleted{background:var(--brand-tint);color:var(--danger)}
.td-pill-edited{background:#EEEEF0;color:#6B6B6B}
.td-actions{white-space:nowrap}
/* Target History: a prior (superseded) version of a record, shown just
   above its current row — dimmed so the live row stays the visual focus. */
.td-history-prior td{color:var(--ink-soft);font-style:italic}
.td-foot{padding:12px 16px;font-size:12px;color:var(--ink-soft);border-top:1px solid var(--line-soft)}
@media (max-width:1100px){.td-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.td-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.td-page{padding:12px}}
@media (max-width:400px){.td-kpis{grid-template-columns:1fr}}

/* Candidate target pages: shared extras (Sub-HR "My Candidate Target", Admin "Assign Target") */
.td-kpis.td-kpis-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.td-kpis.td-kpis-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:400px){.td-kpis.td-kpis-4{grid-template-columns:1fr}}
.td-pill.td-pill-lg{height:30px;padding:0 16px;font-size:13px}
.td-banner.td-banner-info{background:#F4F6FA;border-color:#DCE2EE}
.td-banner.td-banner-info svg{color:#5B6B8C}
.td-progress-card{display:flex;align-items:center;gap:24px;padding:18px 20px;flex-wrap:wrap}
.td-donut{width:120px;height:120px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;position:relative}
.td-donut::before{content:"";position:absolute;inset:14px;border-radius:50%;background:var(--surface)}
.td-donut>div{position:relative;text-align:center;display:flex;flex-direction:column;line-height:1.2}
.td-donut b{font-size:22px;color:var(--ink);font-weight:800}
.td-donut small{font-size:11px;color:var(--ink-soft)}
.td-progress-side{flex:1;min-width:240px}
.td-progress-side .td-progress{min-width:0}
.td-progress-side .td-bar{height:10px}
.td-timeline{margin-top:16px}
.td-timeline-label{font-size:11.5px;font-weight:600;color:var(--ink-soft);margin-bottom:6px}
.td-bar-time i{background:#8A94A6}
.td-timeline-dates{display:flex;justify-content:space-between;font-size:11.5px;color:var(--ink-soft);margin-top:6px}
.td-muted{margin:12px 0 0;font-size:12.5px;color:var(--ink-soft)}
.admin-dashboard-shell .td-avatar{color:#fff}

/* Confirmation dialog variants (showConfirmModal): danger = default red, warning, normal */
.confirm-modal.cm-warning .logout-confirm-icon,.confirm-modal.cm-normal .logout-confirm-icon{background:var(--brand-tint);color:var(--brand)}
.confirm-modal.cm-normal .logout-confirm-yes{background:var(--brand) !important;border-color:var(--brand) !important}
.confirm-modal.cm-warning .logout-confirm-yes{background:var(--brand) !important;border-color:var(--brand) !important}
.confirm-modal .logout-confirm-actions .action-btn span{color:inherit}

/* ---- Sub-HR dashboard home (scoped under .sd-page) ---- */
.sd-page svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sd-page svg *{color:inherit}
.sd-top{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:14px;margin-bottom:14px}
.sd-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sd-kpi{position:relative;display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#FFF8F8);cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease;min-width:0}
.sd-kpi:hover{box-shadow:0 4px 14px rgba(198,40,40,.12);border-color:var(--brand-border)}
.sd-kpi:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.sd-kpi-ico{width:46px;height:46px;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}
.sd-kpi-ico svg{width:22px;height:22px}
.sd-kpi-red .sd-kpi-ico{background:#D2232A}.sd-kpi-slate .sd-kpi-ico{background:#374151}.sd-kpi-maroon .sd-kpi-ico{background:#7A1420}
.sd-kpi-amber .sd-kpi-ico{background:#E5A02A}.sd-kpi-green .sd-kpi-ico{background:#1E6B3E}.sd-kpi-rose .sd-kpi-ico{background:#E5384A}
.sd-kpi-body{display:flex;flex-direction:column;min-width:0}
.sd-kpi small{font-size:11.5px;font-weight:700;letter-spacing:.4px;color:var(--ink-soft)}
.sd-kpi b{font-size:28px;line-height:1.15;font-weight:800;color:var(--ink)}
.sd-kpi em{font-style:normal;font-size:12px;color:var(--ink-soft)}
.sd-chev{position:absolute;right:14px;top:16px;width:16px;height:16px;color:var(--brand)}
.sd-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;min-width:0}
.sd-panel h3{margin:0 0 12px;font-size:16px;font-weight:800;color:var(--ink);text-transform:none;letter-spacing:0;display:flex;align-items:center;gap:8px}
.sd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.sd-panel-head h3{margin:0}
.sd-panel-head>span{font-size:11px;font-weight:800;letter-spacing:.3px;color:var(--brand)}
.sd-head-ico{width:26px;height:26px;border-radius:7px;background:var(--brand-tint);color:var(--brand);display:inline-flex;align-items:center;justify-content:center}
.sd-head-ico svg{width:15px;height:15px}
.sd-donut-row{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.sd-donut{width:132px;height:132px;flex:none;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center}
.sd-donut::before{content:"";position:absolute;inset:16px;border-radius:50%;background:var(--surface)}
.sd-donut>div{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.2}
.sd-donut b{font-size:24px;font-weight:800;color:var(--ink)}
.sd-donut small{font-size:11px;color:var(--ink-soft)}
.sd-legend{display:flex;flex-direction:column;gap:12px;flex:1;min-width:130px;font-size:13px;color:var(--ink)}
.sd-legend>div{display:flex;align-items:center;gap:9px}
.sd-legend i{width:9px;height:9px;border-radius:50%;flex:none;display:inline-block}
.sd-legend b{margin-left:auto;font-weight:700}
.sd-row3{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:14px;margin-bottom:14px}
.sd-bars{display:flex;flex-direction:column;gap:11px}
.sd-bar-row{display:grid;grid-template-columns:104px 1fr 34px;align-items:center;gap:12px;font-size:13px;color:var(--ink)}
.sd-bar-track{height:9px;border-radius:999px;background:#ECECEE;overflow:hidden}
.sd-bar-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8E1F1F,#C62828)}
.sd-bar-row b{text-align:right;font-weight:700}
.sd-row4{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:14px;align-items:start}
.sd-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.sd-table-wrap{overflow:auto;border-radius:10px}
.sd-table{width:100%;border-collapse:collapse;min-width:560px}
.sd-table th{background:var(--brand-tint);color:var(--brand-dark);font-size:11.5px;font-weight:800;letter-spacing:.4px;text-align:left;padding:11px 14px;white-space:nowrap}
.sd-table td{padding:11px 14px;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line-soft);vertical-align:middle}
.sd-table tbody tr:last-child td{border-bottom:0}
.sd-pill{display:inline-flex;height:24px;align-items:center;padding:0 12px;border-radius:999px;background:var(--brand-tint);color:var(--danger);font-size:12px;font-weight:700}
.sd-view{height:30px;padding:0 20px;border:1px solid var(--brand);border-radius:7px;background:var(--surface);color:var(--brand);font-size:12px;font-weight:700;cursor:pointer}
.sd-view:hover{background:var(--brand-tint)}
.sd-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sd-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer;transition:box-shadow .15s,border-color .15s}
.sd-actions button:hover{box-shadow:0 4px 12px rgba(198,40,40,.12);border-color:var(--brand-border)}
.sd-actions button span{width:40px;height:40px;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center}
.sd-actions button span svg{width:19px;height:19px}
.sd-actions button b{font-size:13px;font-weight:700;color:var(--ink)}
.admin-dashboard-shell .sd-page b,.admin-dashboard-shell .sd-page .sd-kpi b{color:var(--ink)}
@media (max-width:900px){.sd-row4{grid-template-columns:1fr}}
/* ---- Sub-HR dashboard: fill the viewport (no scroll, no bottom gap) ----
   .sd-page takes all the height left under the title row; its three rows share
   it in proportion and every panel stretches, so sizes follow the screen height
   (clamp() on vh) instead of the whole page being scaled. */
.mhr-main:has(> .sd-page:not(.hidden)){display:flex;flex-direction:column}
.sd-page{--sd-gap:14px;flex:1 1 auto;min-height:520px;display:grid;grid-template-rows:minmax(0,1.1fr) minmax(0,1.45fr) minmax(0,1.3fr);gap:var(--sd-gap)}
.sd-page.hidden{display:none}
.sd-top,.sd-row3,.sd-row4{margin:0;min-height:0;gap:var(--sd-gap)}
.sd-top{grid-template-columns:minmax(0,3fr) minmax(230px,1fr)}
.sd-kpis{gap:var(--sd-gap);grid-template-rows:repeat(2,minmax(0,1fr));min-height:0}
.sd-kpi{padding:0 18px;gap:14px;border-radius:14px}
.sd-kpi-ico{width:clamp(38px,5.6vh,52px);height:clamp(38px,5.6vh,52px);border-radius:12px}
.sd-kpi-ico svg{width:50%;height:50%}
.sd-kpi small{font-size:11.5px}
.sd-kpi b{font-size:clamp(22px,3.5vh,32px);line-height:1.1}
.sd-kpi em{font-size:12px}
.sd-chev{top:12px;right:14px;width:15px;height:15px}
.sd-panel{display:flex;flex-direction:column;min-height:0;padding:clamp(10px,1.8vh,18px) 18px;border-radius:14px}
.sd-panel h3{font-size:15px;margin:0 0 clamp(6px,1.2vh,12px)}
.sd-panel-head{margin-bottom:clamp(6px,1.2vh,12px)}
.sd-panel-head>span{font-size:10.5px}
.sd-donut::before{inset:12%}
.sd-donut b{font-size:clamp(18px,3vh,26px)}
.sd-bars{flex:1;min-height:0;justify-content:space-between;gap:4px}
.sd-bar-row{font-size:13px;line-height:1.2;grid-template-columns:104px 1fr 30px}
.sd-bar-track{height:clamp(7px,1.1vh,10px)}
.sd-row4{grid-template-columns:minmax(0,2fr) minmax(250px,1fr);align-items:stretch}
.sd-stack{display:grid;grid-template-rows:minmax(0,1.15fr) minmax(0,1fr);gap:var(--sd-gap);min-height:0}
.sd-table-wrap{flex:1;min-height:0;overflow:auto}
.sd-table{min-width:0;height:100%}
.sd-table th{padding:clamp(6px,1vh,10px) 12px;font-size:11px}
.sd-table td{padding:clamp(4px,1vh,10px) 12px;font-size:13px}
.sd-table .td-avatar{width:clamp(26px,4vh,34px);height:clamp(26px,4vh,34px);font-size:11.5px}
.sd-table td:nth-child(4){white-space:nowrap}
.sd-view{height:clamp(26px,3.6vh,32px);padding:0 18px;font-size:12px}
.sd-pill{height:clamp(22px,3vh,26px);font-size:12px}
.sd-actions{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr);gap:clamp(6px,1.2vh,12px)}
.sd-actions button{flex-direction:row;justify-content:flex-start;gap:10px;padding:0 12px;min-height:0}
.sd-actions button span{width:clamp(26px,3.8vh,34px);height:clamp(26px,3.8vh,34px);flex:none}
.sd-actions button span svg{width:52%;height:52%}
.sd-actions button b{font-size:13px;text-align:left}
.sd-page .mhr-activity{flex:1;min-height:0;overflow:hidden}
.sd-page .mhr-activity-row{padding:4px 0}
.sd-page .mhr-empty-note{padding:6px 0;font-size:12.5px}
/* on shorter screens keep the spare rows out so nothing gets squeezed */
/* narrower windows: normal flowing page (scrolls) instead of the fixed-height grid */
@media (max-width:1250px){
 .sd-page{display:block;min-height:0}
 .sd-top,.sd-row3,.sd-row4{margin-bottom:var(--sd-gap)}
 .sd-top{grid-template-columns:1fr}
 .sd-kpis{grid-template-rows:none}
 .sd-kpi{padding:12px 16px}
 .sd-row3{grid-template-columns:1fr 1fr}.sd-row3>:nth-child(2){grid-column:1/-1;order:3}
 .sd-donut-row{flex:none}
 
}
@media (max-width:900px){.sd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-row3{grid-template-columns:1fr}.sd-row3>:nth-child(2){order:0}}
@media (max-width:480px){.sd-kpis{grid-template-columns:1fr}.sd-bar-row{grid-template-columns:88px 1fr 30px}}

/* rebalance: give the bottom row (table, actions, tasks) the room it needs */
.sd-page{grid-template-rows:minmax(0,.95fr) minmax(0,1.2fr) minmax(0,1.45fr)}
.sd-actions{flex:none;grid-auto-rows:clamp(30px,4.6vh,44px)}
.sd-actions button b,.sd-table td:nth-child(2) b,.sd-table td:nth-child(3){white-space:nowrap}
.sd-actions button{padding:0 10px}
.sd-page .mhr-activity{display:flex;flex-direction:column;justify-content:center}
@media (max-width:1250px){.sd-actions{grid-auto-rows:44px}}

/* smaller laptop heights (≤820px): same layout, tighter internals so nothing is clipped */
.sd-table td:nth-child(3){white-space:normal;min-width:96px}
.sd-table th,.sd-table td{padding-left:10px;padding-right:10px}
@media (max-height:940px){
 .sd-page{--sd-gap:10px}
 .sd-panel{padding:8px 14px}
 .sd-panel h3{font-size:14px;margin-bottom:4px}
 .sd-panel-head{margin-bottom:4px}
 .sd-kpi small{font-size:10.5px}
 .sd-kpi em{font-size:11px}
 .sd-bars{gap:2px}
 .sd-bar-row{font-size:12px;line-height:1.1}
 .sd-donut-row{gap:14px}
 .sd-legend{gap:5px;font-size:12.5px}
 .sd-table th{padding-top:4px;padding-bottom:4px}
 .sd-table td{padding-top:3px;padding-bottom:3px;font-size:12.5px}
 .sd-table .td-avatar{width:24px;height:24px;font-size:10px}
 .sd-table td small{font-size:10.5px;line-height:1.1}
 .sd-view{height:24px;padding:0 12px}
 .sd-pill{height:20px;font-size:11px;padding:0 9px}
 .sd-actions{grid-auto-rows:30px;gap:6px}
 .sd-actions button span{width:22px;height:22px}
 .sd-actions button b{font-size:12px}
 .sd-page .mhr-activity-row{padding:1px 0}
 .sd-page .mhr-activity-row small{font-size:10.5px}
}
@media (max-width:1250px){.sd-page .mhr-activity>*:nth-child(n+2){display:flex}}

/* Sub-HR dashboard: KPI block now spans the full width (3 x 2) */
.sd-top,.sd-top{grid-template-columns:minmax(0,1fr)}
@media (max-width:1250px){.sd-top{grid-template-columns:minmax(0,1fr)}}

/* Today's Interviews: header "View All" + modal */
.sd-head-right{display:flex;align-items:center;gap:12px}
.sd-head-right>span{font-size:10.5px;font-weight:800;letter-spacing:.3px;color:var(--brand)}
.sd-viewall{border:0;background:none;padding:0;font-size:12.5px;font-weight:700;color:var(--brand);cursor:pointer;text-decoration:none}
.sd-viewall:hover{color:var(--brand-dark)}
.sd-modal .sd-table{width:100%;height:auto;min-width:640px}
.sd-modal .sd-table th{background:var(--brand-tint);color:var(--brand-dark);position:sticky;top:0;z-index:2;padding:10px 14px}
.sd-modal .sd-table td{padding:10px 14px;font-size:13px;white-space:nowrap}
.sd-modal .kpi-detail-head h2{margin-bottom:2px}

/* Interview modals: clickable rows + details */
.sd-row-click{cursor:pointer}
.sd-table tbody tr.sd-row-click:hover td{background:var(--brand-tint)}
.sd-table tbody tr.sd-row-click:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.sd-id-head{display:flex;align-items:center;gap:14px}
.sd-id-head h2{margin:0}
.sd-id-avatar{width:48px;height:48px;font-size:16px;flex:none}
.sd-id-body{padding:4px 2px 10px}
.sd-id-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}
.sd-id-item{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);min-width:0}
.sd-id-item small{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-soft)}
.sd-id-item b{font-size:13.5px;font-weight:600;color:var(--ink);word-break:break-word}
.sd-id-wide{grid-column:1/-1}
@media (max-width:520px){.sd-id-grid{grid-template-columns:1fr}}


/* ====================================================================
   One dashboard design system (Admin, Main HR, Projects, Project Admin).
   Sub-HR's home uses the same tokens through its own .sd-* classes.
   ==================================================================== */
/* Shared date (top-right of every dashboard) */
.dash-date{display:inline-flex;align-items:center;gap:6px;color:#5F6368;font-size:12.5px;font-weight:500;line-height:1;background:none;border:0;padding:0;white-space:nowrap}
.dash-date-ico{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.admin-dashboard-shell .dash-date,.admin-dashboard-shell .dash-date span{color:#5F6368}
.dash-date-ico *{color:inherit}

/* KPI cards */
.mhr-dashboard .mhr-main .mhr-kpi{display:flex;align-items:center;gap:14px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#FFF8F8);box-shadow:none;min-height:0}
.mhr-dashboard .mhr-main .mhr-kpi::before{display:none}
.mhr-dashboard .mhr-main .mhr-kpi:hover{box-shadow:0 4px 14px rgba(198,40,40,.12);border-color:var(--brand-border);transform:none}
.mhr-dashboard .mhr-main .mhr-kpi-icon{width:44px;height:44px;flex:0 0 44px;border-radius:12px;font-size:19px;color:#fff}
.mhr-dashboard .mhr-main .mhr-kpi-icon svg{width:22px;height:22px}
.mhr-dashboard .mhr-main .mhr-kpi.blue .mhr-kpi-icon{background:#D2232A}
.mhr-dashboard .mhr-main .mhr-kpi.cyan .mhr-kpi-icon{background:#374151}
.mhr-dashboard .mhr-main .mhr-kpi.purple .mhr-kpi-icon{background:#7A1420}
.mhr-dashboard .mhr-main .mhr-kpi.orange .mhr-kpi-icon{background:#E5A02A}
.mhr-dashboard .mhr-main .mhr-kpi.green .mhr-kpi-icon{background:#1E6B3E}
.mhr-dashboard .mhr-main .mhr-kpi.red .mhr-kpi-icon{background:#E5384A}
.mhr-dashboard .mhr-main .mhr-kpi small{font-size:11px;font-weight:700;letter-spacing:.4px;color:var(--ink-soft);white-space:normal;line-height:1.25}
.mhr-dashboard .mhr-main .mhr-kpi b{font-size:26px;font-weight:800;line-height:1.1;margin-top:2px;color:var(--ink)}
.mhr-dashboard .mhr-main .mhr-kpi em{font-size:11.5px;color:var(--ink-soft);margin-top:2px}
.mhr-dashboard .mhr-main .mhr-kpi-grid{gap:12px}

/* Panels + section headers */
.mhr-dashboard .mhr-main .mhr-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:none}
.mhr-dashboard .mhr-main .mhr-panel-head{margin-bottom:12px}
.mhr-dashboard .mhr-main .mhr-panel-head h3{font-size:15px;font-weight:800;letter-spacing:0;text-transform:none;color:var(--ink)}
.mhr-dashboard .mhr-main .mhr-panel-head>span{font-size:10.5px;font-weight:800;letter-spacing:.3px;color:var(--brand)}
.mhr-dashboard .mhr-main .mhr-panel-head .live-badge{color:var(--success-mid)}
.mhr-dashboard .mhr-main .mhr-panel-head button,.mhr-dashboard .mhr-main .mhr-link-btn{font-size:12.5px;font-weight:700;color:var(--brand);text-decoration:none}
.mhr-dashboard .mhr-main .mhr-panel-clickable:hover{box-shadow:0 4px 14px rgba(198,40,40,.10)}
.mhr-dashboard .mhr-main .mhr-three-grid{gap:14px;margin-bottom:14px}

/* Quick action tiles */
.mhr-dashboard .mhr-main .mhr-actions button{border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mhr-dashboard .mhr-main .mhr-actions button:hover{border-color:var(--brand-border);box-shadow:0 4px 12px rgba(198,40,40,.10)}

/* Projects KPI chips */
.mhr-dashboard .mhr-main .proj-kpi-chip{border:1px solid var(--line);border-left:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#FFF8F8);padding:12px 16px;gap:12px}
.mhr-dashboard .mhr-main .proj-kpi-chip-icon{width:36px;height:36px;flex:0 0 36px;border-radius:10px;font-size:15px}
.mhr-dashboard .mhr-main .proj-kpi-chip-text small{font-size:11px;letter-spacing:.4px}
.mhr-dashboard .mhr-main .proj-kpi-chip-text b{font-size:22px;font-weight:800}
.proj-dash .mhr-panel{border-radius:14px;padding:16px 18px}

/* keep the shared date immune to the title row's generic span styling */
.mhr-dashboard .mhr-dashboard-title .dash-date span{color:#5F6368;font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none}
.mhr-dashboard .mhr-main .mhr-panel-head>span,.mhr-dashboard .mhr-main .mhr-panel-head button{white-space:nowrap}
.mhr-dashboard .mhr-main .mhr-panel-head button,.mhr-dashboard .mhr-main .mhr-link-btn{font-size:11.5px}

/* ---- match the reference: 6 vertical quick-action tiles (3 x 2), task rows with chevrons ---- */
.sd-viewall span{font-size:13px}
.sd-stack{grid-template-rows:minmax(0,1.35fr) minmax(0,1fr)}
.sd-actions,.sd-page .sd-actions{flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(6px,1.1vh,12px)}
.sd-actions button{flex-direction:column;justify-content:center;align-items:center;gap:clamp(3px,.8vh,8px);padding:4px 6px;border-radius:12px;text-align:center}
.sd-actions button span{width:clamp(24px,4.2vh,38px);height:clamp(24px,4.2vh,38px)}
.sd-actions button b{font-size:12px;text-align:center;line-height:1.2;white-space:normal}
.sd-page .mhr-activity{justify-content:flex-start}
.sd-page .mhr-activity-row{position:relative;align-items:center;gap:10px;padding:clamp(3px,.7vh,8px) 22px clamp(3px,.7vh,8px) 0;border-bottom:1px solid var(--line-soft)}
.sd-page .mhr-activity-row:last-child{border-bottom:0}
.sd-page .mhr-activity-row b{font-size:12.5px}
.sd-page .mhr-activity-row small{font-size:11px;color:var(--ink-soft)}
.sd-task-chev{position:absolute;right:0;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--brand);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* fewer task rows as the screen gets shorter, so the page never scrolls */
@media (max-height:1000px){.sd-page .mhr-activity>*:nth-child(n+3){display:none}}
@media (max-width:1250px){.sd-actions{grid-auto-rows:auto}.sd-actions button{padding:12px 6px}}

/* rebalance rows for the taller bottom section (quick actions x6 + tasks) */
.sd-page{grid-template-rows:minmax(0,.9fr) minmax(0,1.05fr) minmax(0,1.65fr)}
.sd-stack{grid-template-rows:auto minmax(0,1fr)}
.sd-actions,.sd-page .sd-actions{flex:none;grid-auto-rows:clamp(50px,7.2vh,86px)}
.sd-actions button{min-height:0;padding:4px 4px}
.sd-actions button span{width:clamp(22px,3.8vh,36px);height:clamp(22px,3.8vh,36px)}
@media (max-height:940px){
 .sd-panel{padding:8px 12px}
 .sd-actions,.sd-page .sd-actions{grid-auto-rows:clamp(46px,6.4vh,60px);gap:6px}
 .sd-actions button b{font-size:11.5px}
 .sd-stack{gap:8px}
}
@media (max-width:1250px){.sd-page{grid-template-rows:none}.sd-stack{grid-template-rows:none}.sd-actions,.sd-page .sd-actions{grid-auto-rows:auto}}
@media (max-height:1100px){.sd-page .mhr-activity>*:nth-child(n+3){display:none}}
@media (max-height:900px){.sd-page .mhr-activity>*:nth-child(n+2){display:none}}
@media (max-width:1250px){.sd-page .mhr-activity>*{display:flex !important}}
@media (max-height:800px){
 .sd-donut{width:clamp(64px,10.5vh,96px);height:clamp(64px,10.5vh,96px)}
 .sd-donut::before{inset:10px}
 .sd-donut b{font-size:17px}
 .sd-legend{gap:4px}
 .sd-actions,.sd-page .sd-actions{grid-auto-rows:clamp(40px,6vh,52px)}
 .sd-actions button{gap:2px}
 .sd-actions button b{font-size:11px}
}
.sd-row4{grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr)}
.sd-actions,.sd-page .sd-actions{grid-auto-rows:clamp(48px,6vh,68px)}
@media (max-width:1400px){.sd-actions button b{font-size:11px;white-space:nowrap}}
@media (max-height:940px){.sd-actions,.sd-page .sd-actions{grid-auto-rows:clamp(44px,6vh,58px)}}
@media (max-height:800px){.sd-actions,.sd-page .sd-actions{grid-auto-rows:clamp(40px,6vh,50px)}}
@media (max-width:1250px){.sd-row4{grid-template-columns:1fr}}
.sd-page .mhr-activity-row:last-child{padding-bottom:0}
.sd-page .mhr-activity{padding-bottom:2px}

/* Main HR wraps its dashboard in .portal-content (24px padding + grey background), which
   pushed it 24px below/right of the header. Admin, Sub-HR and Projects mount the dashboard
   directly in the portal card, so make Main HR sit exactly the same way. */
#portal .portal-content:has(> .mhr-dashboard){padding:0 !important;background:transparent !important}

/* ====================================================================
   Main HR dashboard on the shared .sd-* design system (same layout rhythm
   as the reference): fitted first screen (.mh-fit) + a "more" band below.
   ==================================================================== */
.mh-fit{flex:none;height:calc(100vh - 200px);min-height:520px}
.sd-page .sd-viewall{white-space:nowrap}
.sd-panel-head .sd-viewall{font-size:12.5px}
.sd-viewall-foot{margin-top:auto;align-self:flex-start;padding-top:8px}
.sd-clients{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(4px,1vh,10px);overflow:hidden}
.sd-clients .mhr-client-row{display:grid;grid-template-columns:minmax(80px,1.1fr) 2fr auto;align-items:center;gap:10px;font-size:13px;color:var(--ink)}
.sd-clients .mhr-client-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-clients .mhr-client-bar{height:8px;border-radius:999px;background:#ECECEE;overflow:hidden;display:block}
.sd-clients .mhr-client-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8E1F1F,#C62828)}
.sd-clients .mhr-client-row b{font-weight:700}
.sd-clients .mhr-empty-note{padding:8px 0;color:var(--ink-soft);font-size:12.5px;text-align:center}
.mh-fit .sd-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.mh-fit .mhr-activity>*:nth-child(n+4){display:none}
@media (max-height:1100px){.mh-fit .mhr-activity>*:nth-child(n+3){display:none}}
@media (max-height:900px){.mh-fit .mhr-activity>*:nth-child(n+2){display:none}}
@media (max-width:1250px){.mh-fit{height:auto;min-height:0}.mh-fit .mhr-activity>*{display:flex !important}}
.sd-clients .mhr-client-name{font-size:13px}
@media (max-height:900px){.sd-clients .mhr-client-row:nth-child(n+4){display:none}}
@media (max-width:1250px){.sd-clients .mhr-client-row:nth-child(n+4){display:grid}}
.sd-viewall-foot{padding-top:4px}
@media (max-height:760px){.sd-clients .mhr-client-row:nth-child(n+3){display:none}}
@media (max-width:1250px){.sd-clients .mhr-client-row:nth-child(n+3){display:grid}}
.sd-clients .mhr-client-row{padding:clamp(2px,.6vh,6px) 0;border-bottom:0}
.sd-clients{min-height:0}

/* Sub-HR Management: 5-column variant of the User Management table */
.um-page .um-t5{min-width:640px}
.um-page .um-t5 th:nth-child(1),.um-page .um-t5 td:nth-child(1){width:72px}
.um-page .um-t5 th:nth-child(2){width:150px}
.um-page .um-t5 th:nth-child(5){width:190px}
.um-page .um-t5 td:nth-child(3){white-space:nowrap}
.um-page .um-card-static{cursor:default}
.um-page .um-card-static:hover{box-shadow:0 1px 3px rgba(0,0,0,.05);border-color:var(--line)}
.um-page .um-t5 th:nth-child(5){width:230px}
.um-page .um-t5 td.um-actions{overflow:visible}

/* Today's Interviews table: rows flow from the top, directly under the header.
   (The table used to be height:100% of its card, which stretched the rows to fill it
   and made a single interview look vertically centred.) */
.sd-page .sd-table{height:auto}
.sd-page .sd-table-wrap{align-self:stretch}
.sd-page .sd-table tbody td{padding-top:clamp(5px,1vh,11px);padding-bottom:clamp(5px,1vh,11px)}

/* ---- Main HR: one-screen layout = KPIs / analytics / Today's Interviews / Urgent Requirements + Quick Actions ---- */
.mh-fit{grid-template-rows:minmax(0,.9fr) minmax(0,1.05fr) minmax(0,1.1fr) minmax(0,1fr)}
.mh-bottom{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr);gap:var(--sd-gap);min-height:0}
.mh-bottom>.sd-panel,.mh-today{min-height:0}
.mh-fit .sd-table{height:auto}
.mh-fit .sd-table-wrap{flex:1;min-height:0;overflow:hidden}
.mh-fit .sd-table th{padding:clamp(4px,.8vh,8px) 12px}
.mh-fit .sd-table td{padding-top:clamp(3px,.8vh,9px);padding-bottom:clamp(3px,.8vh,9px);font-size:12.5px}
.mh-fit .mh-urgent td{white-space:nowrap}
.mh-fit .mh-urgent td.empty{text-align:center;color:var(--ink-soft);white-space:normal}
.mh-fit .sd-actions{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr);grid-template-columns:repeat(3,minmax(0,1fr))}
.mh-fit .sd-actions button{flex-direction:row;justify-content:flex-start;gap:8px;padding:0 10px}
.mh-fit .sd-actions button span{width:clamp(22px,3.4vh,30px);height:clamp(22px,3.4vh,30px)}
.mh-fit .sd-actions button b{text-align:left;font-size:12px;white-space:normal}
/* show fewer rows on shorter screens so nothing is cut off */
@media (max-height:1000px){.mh-today .sd-table tbody tr:nth-child(n+3){display:none}.mh-urgent tbody tr:nth-child(n+3){display:none}}
@media (max-height:820px){.mh-today .sd-table tbody tr:nth-child(n+2){display:none}.mh-urgent tbody tr:nth-child(n+2){display:none}}
@media (max-width:1250px){
 .mh-fit .sd-table-wrap{overflow:auto}
 .mh-bottom{grid-template-columns:1fr}
 .mh-fit .sd-actions{grid-auto-rows:auto}
 .mh-fit .sd-actions button{padding:10px}
 .mh-today,.mh-bottom{margin-bottom:var(--sd-gap)}
}
@media (max-height:1100px){.mh-today .sd-table tbody tr:nth-child(n+3){display:none}.mh-urgent tbody tr:nth-child(n+3){display:none}}
@media (max-width:1250px){.mh-today .sd-table tbody tr,.mh-urgent tbody tr{display:table-row !important}}
.mh-fit .sd-donut{width:clamp(64px,11vh,112px);height:clamp(64px,11vh,112px)}
.mh-fit .sd-donut::before{inset:11px}
.mh-fit .sd-legend{gap:clamp(3px,.8vh,10px)}
@media (max-height:760px){.mh-fit{min-height:600px}}
@media (max-width:1250px){.mh-fit{min-height:0}}


/* Forgot Password / Admin recovery code */
#loginScreen .login-forgot{border:0;background:none;padding:0;font:inherit;font-size:14px;font-weight:600;color:var(--brand);cursor:pointer}
#loginScreen .login-forgot:hover{color:var(--brand-dark);text-decoration:underline}
.rc-card{padding:26px 26px 20px}
.rc-card h2{margin:0 0 6px;font-size:20px}
.rc-note{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--ink-soft)}
.rc-field{margin-bottom:12px;display:flex;flex-direction:column;gap:5px}
.rc-field label{font-size:11px;font-weight:700;letter-spacing:.4px;color:var(--ink-2)}
.rc-card input{width:100%;box-sizing:border-box}
.rc-code-input{font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:2px;text-transform:uppercase}
.rc-actions{margin-top:16px}
.rc-error{margin:2px 0 0}
.rc-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:24px;font-weight:700;letter-spacing:3px;text-align:center;padding:16px 10px;margin:8px 0 12px;border:1px dashed var(--brand);border-radius:10px;background:var(--brand-tint);color:var(--brand-dark);user-select:all;word-break:break-all}
.rc-card .logout-confirm-icon{margin:0 auto 10px}
.rc-status{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;color:var(--ink-soft)}
.rc-pill{display:inline-flex;height:22px;align-items:center;padding:0 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.3px}
.rc-pill-on{background:#DDF3E7;color:#1B8A4E}
.rc-pill-off{background:#EEEEF0;color:#6B6B6B}
.rc-pill-info{background:var(--brand-tint);color:var(--brand)}
.rc-card .rc-field input,.rc-card .pw-input-wrap input{margin:0 !important;width:100% !important;box-sizing:border-box}
.rc-card .pw-input-wrap{margin:0;width:100%}
.rc-card .rc-error{margin-left:0 !important;margin-right:0 !important}

#loginScreen .login-forgot[hidden]{display:none !important}

/* Interview Mode — compact badge/pill used in every interview KPI/detail
   table and the interview detail card. Same 3-enum values + "Not specified"
   fallback everywhere, styled like the existing .rc-pill/.status-pill badges. */
.iv-mode-pill{display:inline-flex;height:20px;align-items:center;padding:0 9px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.iv-mode-online{background:#DCEBFF;color:#1959B8}
.iv-mode-phone{background:#FDECC8;color:#9A6400}
.iv-mode-office{background:#DDF3E7;color:#1B8A4E}
.iv-mode-unset{background:#EEEEF0;color:#6B6B6B}

/* Main HR dashboard — Candidate Target Progress card's status note (replaces
   the old Top Clients by Active Requirements card in the same grid slot).
   Colour follows candidateTargetStatus() exactly like every other status
   pill in the app — never a fixed colour regardless of state. */
.mhr-target-note{margin-top:10px;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:700;text-align:center}
.mhr-target-note-ok{background:var(--success-tint);color:var(--success)}
.mhr-target-note-done{background:var(--success-tint);color:var(--success)}
.mhr-target-note-warn{background:var(--warning-tint);color:var(--warning)}
.mhr-target-note-off{background:var(--line-soft);color:var(--ink-soft)}

/* Main HR / Sub-HR Account Settings — redesigned profile page (header card
   + Profile Photo panel + Personal Information grid), matching the
   reference design. Admin's own Account Settings (the editable form) and
   Projects' simple read-only layout are untouched — these classes are new,
   used only by accountSettingsView()'s Main HR/Sub-HR branch. */
.acct-page{display:flex;flex-direction:column;gap:16px}
.acct-page-head h2{margin:0 0 4px;font-size:22px}
.acct-page-head p{margin:0;color:var(--ink-soft);font-size:13px}
.acct-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}
.acct-header-row{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.acct-avatar-wrap{position:relative;flex:none}
.acct-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;display:block;background:var(--brand-tint)}
.acct-avatar-empty{display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;color:var(--brand)}
.acct-cam-btn{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:50%;background:#22232A;color:#fff;border:2px solid var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.acct-cam-btn svg{width:15px;height:15px}
.acct-head-info{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px}
.acct-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.acct-name-row h3{margin:0;font-size:19px}
.acct-badge-active{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:800;background:var(--success-tint);color:var(--success)}
.acct-meta-row{display:flex;align-items:center;gap:8px;color:var(--ink-soft);font-size:13px}
.acct-meta-row svg{width:16px;height:16px;flex:none}
.acct-photo-panel{flex:none;width:230px;background:var(--brand-tint);border-radius:12px;padding:14px 16px}
.acct-photo-panel h4{margin:0 0 4px;font-size:14px}
.acct-photo-panel p{margin:0 0 10px;font-size:12px;color:var(--ink-soft)}
.acct-photo-btn{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--brand);color:var(--brand);font-weight:700;font-size:12.5px;padding:8px 14px;border-radius:8px;cursor:pointer}
.acct-photo-btn svg{width:14px;height:14px}
.acct-photo-panel small{display:block;margin-top:8px;color:var(--ink-mute);font-size:11px}
.acct-card-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.acct-card-head svg{width:18px;height:18px;color:var(--ink-soft)}
.acct-card-head h3{margin:0;font-size:16px}
.acct-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.acct-field{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line-soft);border-radius:10px;padding:12px 14px;min-width:0}
.acct-field-ico{flex:none;width:18px;height:18px;color:var(--ink-soft)}
.acct-field-ico svg{width:18px;height:18px;display:block}
.acct-field-text{min-width:0}
.acct-field-text small{display:block;color:var(--ink-soft);font-size:11.5px}
.acct-field-text b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:720px){
 .acct-header-row{flex-direction:column}
 .acct-photo-panel{width:100%}
 .acct-grid{grid-template-columns:1fr}
}

/* Admin -> Backup & Data Management (redesigned; scoped under .bkp-page).
   Built on the existing .td-page/.td-head/.td-kpi/.td-table-card design
   system (already used by Candidate Target pages) rather than a new one —
   only the handful of classes below (2-col grid, dropzone, data-management
   row links, danger zone) are new, and none of them touch any other page. */
.td-kpis.td-kpis-5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.td-kpis.td-kpis-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.td-kpis.td-kpis-5{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bkp-page .td-kpi b.bkp-val{font-size:16px}
.bkp-status{display:flex;align-items:stretch;padding:12px 18px;margin-bottom:14px;border:1px solid var(--success-tint);border-radius:12px;background:var(--success-tint)}
.bkp-status-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:2px 10px;text-align:center;min-width:0}
.bkp-status-item+.bkp-status-item{border-left:1px solid rgba(29,90,58,.16)}
.bkp-status-item small{font-size:10.5px;font-weight:700;letter-spacing:.3px;color:var(--success)}
.bkp-status-item b:not(.bkp-onoff){font-size:13.5px;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width:700px){.bkp-status{flex-wrap:wrap;gap:10px 0}.bkp-status-item{flex:1 1 45%}.bkp-status-item+.bkp-status-item{border-left:none}}
.bkp-onoff{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:800}
.bkp-onoff.on{background:var(--success-tint);color:var(--success)}
.bkp-onoff.off{background:var(--line-soft);color:var(--ink-soft)}
.bkp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
@media (max-width:900px){.bkp-grid-2{grid-template-columns:1fr}}
.bkp-card{padding:18px 20px}
.bkp-card-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.bkp-card-ico{width:44px;height:44px;flex:none;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:19px}
.bkp-card-ico-danger{background:var(--danger-tint);color:var(--danger)}
.bkp-card-head h3{margin:0;font-size:15px;font-weight:800;color:var(--ink)}
.bkp-card-head p{margin:2px 0 0;font-size:12px;color:var(--ink-soft)}
.bkp-card-actions{display:flex;flex-wrap:wrap;gap:10px}
.bkp-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px;margin-bottom:12px;border:2px dashed var(--line-strong);border-radius:12px;background:var(--surface-2);text-align:center;font-size:13px;color:var(--ink-soft);transition:border-color .15s,background .15s}
.bkp-dropzone.drag{border-color:var(--brand);background:var(--brand-tint)}
.bkp-dropzone-ico{font-size:20px;color:var(--brand)}
.bkp-dropzone a{color:var(--brand);font-weight:700;text-decoration:underline;cursor:pointer}
.bkp-warning{margin:10px 0 0;font-size:12px;color:var(--warning)}
.bkp-datamgmt{margin-top:12px;margin-bottom:0}
.bkp-row-link{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);cursor:pointer;font:inherit;text-align:left}
.bkp-row-link:hover{border-color:var(--brand-border);background:var(--brand-tint)}
.bkp-row-ico{width:36px;height:36px;flex:none;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:16px}
.bkp-row-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.bkp-row-text b{font-size:13.5px;color:var(--ink)}
.bkp-row-text small{font-size:11.5px;color:var(--ink-soft)}
.bkp-row-chev{color:var(--ink-soft);font-size:18px;flex:none}
.bkp-danger{margin-top:14px;padding:18px 20px;border:1px solid var(--danger);border-radius:12px;background:var(--danger-tint)}
.bkp-danger h3{margin:0 0 4px;font-size:15px;font-weight:800;color:var(--danger)}
.bkp-danger p{margin:0 0 14px;font-size:12.5px;color:var(--ink)}
.bkp-danger .danger-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;color:#fff!important;border-color:var(--danger)!important}
.bkp-danger .danger-btn span{color:#fff!important}
.bkp-danger .danger-btn .del-ico{width:16px;height:16px;flex:none}

/* =================================================================
   V85 — Report Center: enterprise analytics layout. Visual only; every
   number is produced by buildPeriodReport() from the app's existing
   calculation helpers. Icons reuse kpiIcon(); colours reuse the brand vars.
   ================================================================= */
:root{--rc-red:#C62828;--rc-orange:#E5A02A;--rc-grey:#8E9299;--rc-green:#1E6B3E}
.rc-page{display:flex;flex-direction:column;gap:16px;min-width:0}
.rc-page *{box-sizing:border-box}

/* ---- top bar: title, live dot, range, period pills, exports ---- */
.rc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.rc-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rc-bar .rc-actions{margin-left:auto}
.rc-title{display:flex;align-items:center;gap:11px}
.rc-title-ico{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:var(--brand);display:grid;place-items:center}
.rc-title-ico svg{width:20px;height:20px;color:#fff;stroke:#fff}
.rc-title h2{margin:0;font-size:21px;line-height:1.15;color:var(--ink)}
.rc-title p{margin:2px 0 0;font-size:12px;color:var(--ink-soft)}
.rc-live{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:.4px;color:var(--success-mid);white-space:nowrap}
.rc-live i{width:8px;height:8px;border-radius:50%;background:var(--success-mid);box-shadow:0 0 8px rgba(32,196,106,.7)}
.rc-range{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border:1px solid var(--brand-border);border-radius:9px;background:var(--surface);font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}
.rc-range svg{width:14px;height:14px;color:var(--brand);stroke:var(--brand)}
.rc-chips{display:flex;gap:6px;flex-wrap:wrap}
.rc-chip{height:34px;padding:0 13px;border:1px solid var(--brand-border);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.rc-chip:hover{background:var(--brand-tint)}
.rc-chip.selected,.rc-chip.selected:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.rc-custom{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px}
.rc-custom input{height:34px;border:1px solid var(--line-strong);border-radius:8px;padding:0 9px}

/* ---- KPI row ---- */
.rc-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:stretch}
@media(max-width:1250px){.rc-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:860px){.rc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rc-kpi{display:flex;align-items:flex-start;gap:11px;min-width:0;height:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.03);overflow:hidden}
.rc-kpi-ico{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center}
.rc-kpi-ico svg{width:19px;height:19px;color:#fff;stroke:#fff}
.rc-kpi-red .rc-kpi-ico{background:var(--brand)}
.rc-kpi-green .rc-kpi-ico{background:var(--rc-green)}
.rc-kpi-amber .rc-kpi-ico{background:var(--rc-orange)}
.rc-kpi-body{min-width:0;flex:1;overflow:hidden}
.rc-kpi-body small{display:block;font-size:9.5px;font-weight:700;letter-spacing:.5px;color:var(--ink-soft);text-transform:uppercase;line-height:1.25}
.rc-kpi-body b{display:block;font-size:26px;line-height:1.1;margin-top:4px;color:var(--ink)}
.rc-delta{display:block;font-style:normal;font-size:10px;line-height:1.3;margin-top:4px;white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:26px}
.rc-up{color:var(--success-mid)}.rc-down{color:var(--rc-orange)}.rc-flat{color:var(--ink-mute)}

/* ---- section cards ---- */
.rc-row{display:grid;gap:16px;min-width:0}
.rc-row-wide{grid-template-columns:1.45fr 1fr}
.rc-row-even{grid-template-columns:1fr 1fr}
@media(max-width:1100px){.rc-row-wide,.rc-row-even{grid-template-columns:1fr}}
.rc-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.03);min-width:0}
.rc-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:13px}
.rc-card-head h3{margin:0;font-size:14px;letter-spacing:.3px;color:var(--ink)}
.rc-card-head span{font-size:11px;color:var(--ink-soft)}

/* ---- pipeline: progression steps (width = share of the first stage) ---- */
.rc-funnel{display:flex;flex-direction:column;gap:9px}
.rc-step{min-width:0}
/* Exactly two treatments, so no stage can end up with pale text on a pale
   fill: the dominant stage is a solid brand-red bar with white 700 text, and
   every other stage is a light tint with dark text (muted dark-grey %). */
.rc-step-bar{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;width:var(--rc-w,100%);min-width:190px;padding:9px 13px;border-radius:8px;
 background:var(--brand-tint);border:1px solid var(--brand-border);color:var(--ink)}
.rc-step-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}
.rc-step-bar b{font-size:15px;font-weight:700;color:inherit;text-align:right}
.rc-step-bar em{font-style:normal;font-size:11px;font-weight:600;color:var(--ink-soft);min-width:38px;text-align:right}
.rc-step-active .rc-step-bar{background:var(--brand);border-color:var(--brand);color:#fff}
.rc-step-active .rc-step-name,.rc-step-active .rc-step-bar b{color:#fff;font-weight:700}
.rc-step-active .rc-step-bar em{color:#fff;font-weight:700}
.rc-step-meta{margin-top:3px;padding-left:2px}
.rc-step-meta em{font-style:normal;font-size:10.5px;color:var(--ink-soft)}
.rc-step-conv{color:var(--brand)}

/* ---- requirement donut ---- */
.rc-donut-wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.rc-donut{position:relative;width:140px;height:140px;flex:0 0 140px;border-radius:50%}
.rc-donut-empty{background:var(--surface-2)}
.rc-donut-hole{position:absolute;inset:26px;border-radius:50%;background:var(--surface);display:grid;place-items:center;text-align:center}
.rc-donut-hole b{display:block;font-size:24px;color:var(--ink);line-height:1.1}
.rc-donut-hole small{display:block;font-size:9.5px;color:var(--ink-soft);letter-spacing:.4px}
.rc-legend{display:flex;flex-direction:column;gap:9px;flex:1;min-width:150px}
.rc-leg-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;font-size:12px;color:var(--ink)}
.rc-leg-row b{font-weight:700}
.rc-leg-row em{font-style:normal;font-size:11px;color:var(--ink-soft);min-width:34px;text-align:right}
.rc-dot{width:9px;height:9px;border-radius:50%}
.rc-dot-red{background:var(--rc-red)}.rc-dot-orange{background:var(--rc-orange)}
.rc-dot-grey{background:var(--rc-grey)}.rc-dot-green{background:var(--rc-green)}

/* ---- interview overview ---- */
.rc-minis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}
@media(max-width:700px){.rc-minis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rc-mini{border:1px solid var(--line);border-radius:9px;padding:9px 10px;background:var(--surface)}
.rc-mini small{display:block;font-size:9.5px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-mini b{display:block;font-size:19px;margin-top:3px;color:var(--ink)}
.rc-trend{width:100%;height:132px;display:block}
.rc-trend-x{font-size:9px;fill:var(--ink-soft)}
.rc-empty{padding:16px;text-align:center;color:var(--ink-soft);font-size:12px;background:var(--surface-2);border-radius:9px}
.rc-empty-sm{padding:12px;font-size:11.5px}

/* ---- candidate status bars ---- */
.rc-bars{display:flex;flex-direction:column;gap:10px}
.rc-bar-row{display:grid;grid-template-columns:110px 1fr auto auto;align-items:center;gap:10px}
.rc-bar-name{font-size:12px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-bar-track{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.rc-bar-track i{display:block;height:100%;background:var(--brand);border-radius:999px}
.rc-bar-row b{font-size:12.5px;min-width:26px;text-align:right}
.rc-bar-row em{font-style:normal;font-size:11px;color:var(--ink-soft);min-width:34px;text-align:right}

/* ---- recruiter performance (list, not a raw table) ---- */
.rc-perf{display:flex;flex-direction:column}
.rc-perf-head,.rc-perf-row{display:grid;grid-template-columns:minmax(160px,2fr) repeat(3,minmax(60px,.7fr)) minmax(140px,1.2fr);gap:12px;align-items:center}
.rc-perf-head{font-size:9.5px;font-weight:700;letter-spacing:.5px;color:var(--ink-soft);padding:0 2px 9px;border-bottom:1px solid var(--line)}
.rc-perf-head span:not(:first-child),.rc-perf-row .rc-perf-n{text-align:center}
.rc-perf-row{padding:11px 2px;border-bottom:1px solid var(--line)}
.rc-perf-row:last-child{border-bottom:0}
.rc-perf-who{display:flex;align-items:center;gap:10px;min-width:0}
.rc-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:grid;place-items:center;font-size:11px;font-weight:700;font-style:normal}
.rc-perf-who b{display:block;font-size:12.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-perf-who small{display:block;font-size:10.5px;color:var(--ink-soft)}
.rc-perf-n{font-size:13px;color:var(--ink)}
.rc-perf-prog{display:flex;align-items:center;gap:9px}
.rc-progress{flex:1;height:7px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.rc-progress b{display:block;height:100%;background:var(--success-mid);border-radius:999px}
.rc-perf-prog em{font-style:normal;font-size:11.5px;color:var(--ink-soft);min-width:36px;text-align:right}

/* ---- activity + insights ---- */
.rc-activity{display:flex;flex-direction:column;gap:11px}
.rc-act-row{display:flex;gap:10px;align-items:flex-start}
.rc-act-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);margin-top:6px;flex:0 0 auto}
.rc-act-row b{display:block;font-size:12px;font-weight:600;color:var(--ink)}
.rc-act-row small{display:block;font-size:10.5px;color:var(--ink-soft);margin-top:2px}
.admin-dashboard-shell .rc-chip{color:var(--ink)}
.admin-dashboard-shell .rc-chip.selected{color:#fff}
.admin-dashboard-shell .rc-card-head h3,.admin-dashboard-shell .rc-title h2{color:var(--ink)}

/* ---- candidate distribution: one stacked composition bar + legend ---- */
.rc-stack{display:flex;width:100%;height:16px;border-radius:999px;overflow:hidden;background:var(--surface-2);margin-bottom:14px}
.rc-seg{display:block;height:100%}
.rc-legend-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.rc-s1{background:#C62828}.rc-s2{background:#D2434A}.rc-s3{background:#DE6A6A}
.rc-s4{background:#1E6B3E}.rc-s5{background:#E5A02A}.rc-s6{background:#21C77A}.rc-s7{background:#8E9299}
i.rc-s1,i.rc-s2,i.rc-s3,i.rc-s4,i.rc-s5,i.rc-s6,i.rc-s7{display:block}

.rc-range b{margin-right:6px;color:var(--brand)}
.rc-actions-bar{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}
.rc-actions-bar .action-btn{height:34px;padding:0 13px;font-size:11px;border-radius:9px;display:inline-flex;align-items:center}

/* =================================================================
   V90 — Target Records modal. Presentation only: the calculations,
   permissions and history logic behind these rows are untouched.
   ================================================================= */
.td-hist-card h2{margin:0 0 4px;font-size:18px}
.td-hist-note{margin:0 0 14px;font-size:11.5px;line-height:1.45;color:var(--ink-soft)}
.td-hist-table{width:100%;table-layout:fixed}
/* Every column is centred so the numbers scan down a straight line; only
   ASSIGNED BY stays left-aligned since it is a name, not a figure. */
.td-hist-table th,.td-hist-table td{text-align:center;vertical-align:middle;padding:10px 8px;white-space:nowrap}
.td-hist-table th{font-size:9.5px;letter-spacing:.4px}
.td-hist-table td{font-size:12.5px;border-bottom:1px solid var(--line)}
.td-hist-table tbody tr:last-child td{border-bottom:0}
.td-hist-table th:nth-child(9),.td-hist-table td:nth-child(9){text-align:left}
.td-hist-table th:nth-child(1),.td-hist-table td:nth-child(1){width:62px}
.td-hist-table th:nth-child(2),.td-hist-table td:nth-child(2){width:72px}
.td-hist-table th:nth-child(3),.td-hist-table td:nth-child(3),
.td-hist-table th:nth-child(4),.td-hist-table td:nth-child(4){width:108px}
.td-hist-table th:nth-child(5),.td-hist-table td:nth-child(5),
.td-hist-table th:nth-child(6),.td-hist-table td:nth-child(6){width:92px}
.td-hist-table th:nth-child(7),.td-hist-table td:nth-child(7){width:84px}
.td-hist-table th:nth-child(8),.td-hist-table td:nth-child(8){width:104px}
.td-hist-table th:nth-child(10),.td-hist-table td:nth-child(10){width:70px}
.td-hist-table td:nth-child(9){white-space:normal;overflow-wrap:anywhere}
.td-hist-table .td-pill{display:inline-block}
.td-hist-table .td-actions{text-align:center}
.td-hist-table .td-actions .row-action-wrap{justify-content:center}
.td-hist-table .td-history-prior td{background:var(--surface-2);color:var(--ink-soft);font-size:11.5px}

/* V92 — Daily Call List REMARKS column. The rest of the row stays on one
   line (.tracker-main-table-style nowrap elsewhere); remarks is the one cell
   allowed to wrap so longer notes stay readable without squeezing the table. */
#callsTable th:nth-child(8),.kpi-detail-modal th:nth-child(8){min-width:220px}
.call-remark-cell{min-width:220px;max-width:340px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;color:var(--ink)}

/* ===============================================================
   V93 — ALERT CENTER
   Reuses the existing surface/line/brand/status tokens and the shared
   .row-action-* 3-dot menu, so nothing here introduces a second visual
   language. Severity is carried by the left rail, the icon tile and the
   badge only — never by flooding the whole row with colour.
   =============================================================== */
.al-page{display:flex;flex-direction:column;gap:14px;min-width:0}
.al-page *{box-sizing:border-box}

.al-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.al-head-text h2{margin:0;font-size:22px;letter-spacing:.2px;color:var(--ink)}
.al-head-text p{margin:4px 0 0;font-size:12px;color:var(--ink-soft)}
.al-head-right{display:flex;align-items:center;gap:14px}
.al-head-right .live-badge{display:inline-flex;align-items:center;gap:6px;color:var(--success-mid);font-size:11px;font-weight:700;letter-spacing:.5px;line-height:1}
.al-head-right .live-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--success-mid);box-shadow:0 0 6px rgba(32,196,106,.6)}
.al-markall{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:1px solid var(--brand);border-radius:9px;background:var(--surface);color:var(--brand);font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.3px;cursor:pointer}
.al-markall:hover{background:var(--brand-tint)}
.al-markall svg{width:14px;height:14px;flex:none;color:inherit}
.al-markall svg *{color:inherit}

/* Compact summary strip — deliberately NOT dashboard-size KPI cards. */
.al-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:11px;overflow:hidden}
.al-sum-cell{background:var(--surface);padding:11px 14px;min-width:0}
.al-sum-cell small{display:block;font-size:10px;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-soft)}
.al-sum-cell b{display:block;margin-top:3px;font-size:19px;color:var(--ink);line-height:1.1}
.al-sum-cell b.sev-critical{color:var(--danger)}
.al-sum-cell b.sev-high{color:#B45309}
.al-sum-cell b.sev-medium{color:var(--warning)}

.al-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.al-search{position:relative;display:flex;align-items:center;flex:1 1 260px;min-width:200px}
.al-search .search-icon{position:absolute;left:11px;width:14px;height:14px;color:var(--ink-mute);pointer-events:none}
.al-search input{width:100%;height:36px;padding:0 12px 0 32px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12.5px}
.al-search input:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
.al-chips{display:flex;gap:6px;flex-wrap:wrap}
.al-chip{height:36px;padding:0 13px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.al-chip:hover{background:var(--brand-tint);border-color:var(--brand-border)}
.al-chip.selected,.al-chip.selected:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.al-select{height:36px;padding:0 10px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:600;cursor:pointer;max-width:170px}
.al-select:focus{outline:0;border-color:var(--brand)}
.al-clear{height:36px;padding:0 14px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink-2);font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.3px;cursor:pointer}
.al-clear:hover{background:var(--surface-2);border-color:var(--brand-border);color:var(--brand)}

.al-count{font-size:11px;color:var(--ink-soft);padding:0 2px 6px}
.al-list{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:visible;box-shadow:0 1px 2px rgba(0,0,0,.03)}

.al-row{display:grid;grid-template-columns:3px 38px minmax(200px,1.5fr) minmax(130px,.95fr) 118px 92px auto;
  align-items:center;gap:13px;padding:13px 15px 13px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.al-row:last-child{border-bottom:0}
.al-row:hover{background:var(--surface-2)}
/* Left severity rail — the only full-height colour on the row. */
.al-dot{align-self:stretch;border-radius:0 3px 3px 0;background:var(--line-strong)}
.al-row.sev-critical .al-dot{background:var(--brand)}
.al-row.sev-high .al-dot{background:#E08A3C}
.al-row.sev-medium .al-dot{background:var(--warning-mid)}
.al-row.sev-normal .al-dot{background:#7E93C4}
.al-ico{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--ink-2);border:1px solid var(--line)}
.al-ico svg{width:18px;height:18px;color:inherit}
.al-ico svg *{color:inherit}
.al-row.sev-critical .al-ico{background:var(--danger-tint);border-color:#F3C9C9;color:var(--danger)}
.al-row.sev-high .al-ico{background:#FDF0E2;border-color:#F0D6B5;color:#B45309}
.al-row.sev-medium .al-ico{background:var(--warning-tint);border-color:#F0DFBC;color:var(--warning)}
.al-row.sev-normal .al-ico{background:#EEF2FB;border-color:#D3DCF0;color:#3B5591}

.al-main{min-width:0}
.al-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.al-main b{font-size:13px;color:var(--ink);font-weight:600}
.al-row.is-unread .al-main b{font-weight:800}
.al-main p{margin:3px 0 0;font-size:11.5px;color:var(--ink-soft);line-height:1.4;overflow-wrap:anywhere}
.al-type{font-size:9.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-soft);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:2px 8px;white-space:nowrap}
.al-new{display:inline-flex;align-items:center;gap:5px;font-size:9.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--brand)}
.al-new::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--brand)}

.al-entity,.al-when{min-width:0}
.al-entity b,.al-when b{display:block;font-size:12px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al-entity small,.al-when small{display:block;margin-top:2px;font-size:10.5px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.al-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.2px;white-space:nowrap;border:1px solid transparent}
.al-badge.sev-critical{background:var(--danger-tint);border-color:#F0C4C4;color:var(--danger)}
.al-badge.sev-high{background:#FDF0E2;border-color:#EFD3AE;color:#9A4A09}
.al-badge.sev-medium{background:var(--warning-tint);border-color:#EEDCB6;color:#8A5A10}
.al-badge.sev-normal{background:#EEF2FB;border-color:#D3DCF0;color:#33498A}

.al-act{display:flex;align-items:center;gap:4px;justify-content:flex-end}
.al-action-btn{height:30px;padding:0 14px;border:1px solid var(--brand-border);border-radius:8px;background:var(--surface);color:var(--brand);font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.2px;cursor:pointer;white-space:nowrap}
.al-action-btn:hover{background:var(--brand);border-color:var(--brand);color:#fff}

/* Read rows settle back to neutral; unread keep a very subtle tint only. */
.al-row.is-unread{background:#FDFBFB}
.al-row.is-unread:hover{background:var(--surface-2)}
.al-row.is-read .al-main b{color:var(--ink-2)}

.al-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:52px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:center}
.al-empty-ico{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--success-tint);color:var(--success);border:1px solid #CDE6D9}
.al-empty-ico svg{width:22px;height:22px;color:inherit}
.al-empty-ico svg *{color:inherit}
.al-empty b{font-size:14px;color:var(--ink)}
.al-empty small{font-size:11.5px;color:var(--ink-soft)}

@media(max-width:1180px){
 .al-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
 .al-row{grid-template-columns:3px 38px minmax(180px,1.4fr) 110px 86px auto}
 .al-entity{display:none}
}
@media(max-width:820px){
 .al-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .al-row{grid-template-columns:3px 38px 1fr auto;row-gap:8px}
 .al-when,.al-sev{grid-column:3/5}
 .al-when{display:flex;gap:8px;align-items:baseline}
 .al-when b,.al-when small{display:inline}
}

/* V93a — two inherited-style fixes caught in the rendered page.
   1) SEARCH_ICON ships with no stroke/fill of its own: the existing rules
      that paint it are scoped to .search-suggest-wrap, so inside the Alert
      Center toolbar it fell back to a solid black blob. Same two rules,
      scoped to this wrapper.
   2) The Admin shell paints every bare <button> white
      (.admin-dashboard-shell button, specificity 0-1-1) for its red
      dashboard cards. Alert Center's controls sit on the white workspace,
      so they restate their own colour at matching specificity — exactly the
      fix already used for Report Center's .rc-chip. */
.al-search .search-icon circle{fill:none;stroke:currentColor;stroke-width:2}
.al-search .search-icon line{stroke:currentColor;stroke-width:2;stroke-linecap:round}

.admin-dashboard-shell .al-chip{color:var(--ink)}
.admin-dashboard-shell .al-chip.selected,.admin-dashboard-shell .al-chip.selected:hover{color:#fff}
.admin-dashboard-shell .al-clear{color:var(--ink-2)}
.admin-dashboard-shell .al-clear:hover{color:var(--brand)}
.admin-dashboard-shell .al-action-btn{color:var(--brand)}
.admin-dashboard-shell .al-action-btn:hover{color:#fff}
.admin-dashboard-shell .al-markall,.admin-dashboard-shell .al-markall span{color:var(--brand)}
.admin-dashboard-shell .al-row .row-action-trigger{color:var(--ink)}

/* V95 — Alert Center: MARK ALL AS READ is disabled when nothing is active. */
.al-markall:disabled{border-color:var(--line-strong);color:var(--ink-mute);background:var(--surface-2);cursor:default}
.al-markall:disabled:hover{background:var(--surface-2)}
.admin-dashboard-shell .al-markall:disabled,
.admin-dashboard-shell .al-markall:disabled span{color:var(--ink-mute)}

/* ===============================================================
   V96 — PASSWORD POLICY
   Live requirement checklist shown under every "set a password" field.
   Deliberately compact: one line per rule, no card, no extra spacing,
   so it never makes the surrounding form bulky.
   =============================================================== */
.pw-rules{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px}
.pw-rules li{display:flex;align-items:center;gap:6px;font-size:10.5px;line-height:1.5;color:var(--ink-soft);white-space:nowrap}
.pw-rule-ico{flex:0 0 auto;width:11px;height:11px;border-radius:50%;border:1.5px solid var(--line-strong);background:transparent;position:relative}
/* Untouched field: plain requirements, nothing flagged red yet. */
.pw-rules li.ok{color:var(--success)}
.pw-rules li.ok .pw-rule-ico{border-color:var(--success-mid);background:var(--success-mid)}
.pw-rules li.ok .pw-rule-ico::after{content:"";position:absolute;left:3px;top:.5px;width:3px;height:6px;border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.pw-rules li.bad{color:var(--danger)}
.pw-rules li.bad .pw-rule-ico{border-color:var(--danger-mid)}
.pw-mismatch{margin:6px 0 0;font-size:10.5px;font-weight:600;color:var(--danger)}
@media(max-width:640px){ .pw-rules{grid-template-columns:1fr} }

/* V97 — danger variant of the shared confirm/success card icon, used by the
   "Operation stopped" message when the pre-delete safety backup fails. */
.logout-confirm-icon-danger{background:var(--danger-tint);color:var(--danger);font-size:28px;font-weight:700}

/* V100 — "server unreachable" is its own indicator state: the red treatment of
   sync-bad, but worded SERVER: OFFLINE. sync-bad stays for save/permission
   failures (SERVER: ERROR) and sync-off for the neutral pre-connection state. */
.cloud-sync-indicator.sync-offline{border-color:var(--danger-mid)}
.cloud-sync-indicator.sync-offline .sync-dot{background:var(--danger-mid);box-shadow:0 0 8px rgba(239,75,85,.75)}
.cloud-sync-indicator.sync-offline .sync-label{color:var(--danger-mid)}

/* ===== Marketing (marketing.js) ===== */
.um-page .um-ico-mkt,.um-page .um-badge-mkt{background:#FDEBDD;color:#C2570C}
.mk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-bottom:14px}
.mk-progress{display:flex;flex-direction:column;gap:14px;padding:4px 2px}
.mk-progress-label{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--ink)}
.mk-progress-label small{color:var(--ink-soft);font-weight:500}
.mk-progress-track{height:8px;border-radius:99px;background:var(--line-soft,#eee);overflow:hidden;margin-top:5px}
.mk-progress-track i{display:block;height:100%;border-radius:99px;background:var(--brand,#c8202a)}
.mk-progress-track i.done{background:#1f9d55}.mk-progress-track i.mid{background:#e08a00}.mk-progress-track i.low{background:var(--brand,#c8202a)}
.mk-progress-sm{height:5px;margin-top:4px;max-width:120px}
.mk-progress-note{font-size:11px;color:var(--ink-soft)}
.mk-note{margin:12px 2px 0;font-size:12px;color:var(--ink-soft)}
.mk-exp-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mk-exp-summary div{background:var(--surface-soft,#faf7f7);border:1px solid var(--line-soft,#eee);border-radius:10px;padding:10px 12px}
.mk-exp-summary span{display:block;font-size:11px;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.03em}
.mk-exp-summary b{font-size:16px}
.mk-mini-strip{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 12px;font-size:13px;color:var(--ink-soft)}
.mk-mini-strip b{color:var(--ink)}
.mk-green{color:#1f9d55!important}.mk-orange{color:#c46f00!important}.mk-red{color:#c8202a!important}
.mk-pill{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap}
.mk-pill-green{background:#e3f5ea;color:#1a7f45}.mk-pill-blue{background:#e4eefb;color:#1f62c4}
.mk-pill-orange{background:#fdf0dc;color:#b06100}.mk-pill-red{background:#fde4e4;color:#b3141d}
.mk-pill-gray{background:#efefef;color:#555}
.mk-search{min-width:240px;padding:8px 12px;border:1px solid var(--line,#ddd);border-radius:8px;font-size:13px}
.mk-remarks{max-width:240px;white-space:normal;font-size:12px}
.mk-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.mk-btn{border:1px solid var(--line,#ddd);background:#fff;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.mk-btn-ok{border-color:#1f9d55;color:#1a7f45}.mk-btn-ok:hover{background:#e3f5ea}
.mk-btn-no{border-color:#c8202a;color:#b3141d}.mk-btn-no:hover{background:#fde4e4}
.mk-link{background:none;border:0;padding:0;color:var(--brand,#c8202a);font-weight:700;cursor:pointer;text-decoration:underline}
.mk-badge{display:inline-block;min-width:18px;padding:0 5px;border-radius:99px;background:var(--brand,#c8202a);color:#fff;font-size:10px;line-height:18px;text-align:center}
.mk-total{font-size:13px;color:var(--ink-soft)}
.mk-toolbar-right{margin-left:auto;display:flex;gap:8px}
.holidays-toolbar .mk-toolbar-right .action-btn{margin-left:0}
@media (max-width:700px){.mk-exp-summary{grid-template-columns:repeat(2,1fr)}.mk-search{min-width:0;width:100%}}
/* Admin's shell paints every button's text white; Marketing's light buttons need dark text. */
.admin-dashboard-shell .proj-kpi-chip .proj-kpi-chip-text b,.admin-dashboard-shell .proj-kpi-chip .proj-kpi-chip-text small{color:var(--ink)}
.admin-dashboard-shell .proj-kpi-chip .proj-kpi-chip-text small{color:var(--ink-soft)}
.admin-dashboard-shell .proj-kpi-chip .proj-kpi-chip-icon{color:#fff}
.admin-dashboard-shell button.mk-btn{color:var(--ink)}
.admin-dashboard-shell button.mk-btn-ok{color:#1a7f45}
.admin-dashboard-shell button.mk-btn-no{color:#b3141d}
.admin-dashboard-shell button.mk-link{color:var(--brand,#c8202a)}
.admin-dashboard-shell .status-chip .mk-badge,.admin-dashboard-shell .mk-badge{color:#fff}
.admin-dashboard-shell .mk-green{color:#1f9d55!important}
.mk-sub{color:var(--ink-soft)!important;font-size:11.5px}
.admin-dashboard-shell .mk-sub{color:var(--ink-soft)!important}
