/* =====================================================================
   Solaris TimeOff — Stylesheet
   Colours matched to the official Solaris website:
     Navy   #1B2C51  (top bar, sidebar, headers)
     Orange #E0663F  (logo, highlights, accents) · #C9502A for buttons (AA contrast)
     Bronze #915D1E  (small accent text, statistics)
     Sun    #F19F43  (warm highlights)
     Light grey #F2F2F2 panels on white
   Green / amber / red are kept only for status meaning (approved, pending, declined).
   ===================================================================== */

:root {
  /* Solaris navy */
  --navy-950: #121E39;
  --navy-900: #172647;
  --navy-800: #1B2C51;
  --navy-700: #263B66;
  --navy-600: #34507F;
  --navy-500: #4D6896;
  --navy-200: #CBD3E2;
  --navy-100: #E7EBF3;
  --navy-50:  #F4F6FA;

  /* Solaris orange (brand accent) */
  --orange-800: #9C3A17;
  --orange-700: #B0431F;   /* hover / orange text on white (5.4:1) */
  --orange-600: #C9502A;   /* buttons with white text (4.7:1) */
  --orange-500: #E0663F;   /* exact website orange — decorative */
  --orange-300: #F2A285;
  --orange-100: #FCE6DC;
  --orange-50:  #FFF5F0;
  --bronze:     #915D1E;
  --sun:        #F19F43;

  /* Status colours (meaning only) */
  --green-700: #17703F;
  --green-600: #1F8A4F;
  --green-500: #2FA866;
  --green-100: #DCF2E4;
  --green-50:  #F0FAF3;

  --amber-700: #8A4B0B;
  --amber-600: #D17A0E;
  --amber-100: #FDEFD6;
  --amber-50:  #FFF9EE;

  --red-700: #B42318;
  --red-600: #D92D20;
  --red-100: #FEE4E2;
  --red-50:  #FEF3F2;

  --blue-700: #1F4A8A;
  --blue-600: #2E62B0;
  --blue-100: #DFE8F6;
  --blue-50:  #F1F5FB;

  /* Leave-type colours: navy-blue, orange-rose and slate, harmonised with the brand */
  --vl: #2E62B0;  --vl-bg: #E2EAF7;  --vl-ink: #1F4180;
  --sl: #C2410C;  --sl-bg: #FDE8DD;  --sl-ink: #8A2E0A;
  --ul: #6B7280;  --ul-bg: #EFEFF1;  --ul-ink: #374151;

  --text: #16181D;
  --text-2: #3D4250;
  --muted: #646B78;
  --border: #E6E7EA;
  --border-2: #D3D6DC;
  --bg: #F5F5F5;
  --panel: #F2F2F2;
  --card: #FFFFFF;
  --heading: #121418;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05);
  --shadow: 0 1px 3px rgba(22, 24, 29, .05), 0 8px 24px rgba(22, 24, 29, .06);
  --shadow-lg: 0 24px 60px rgba(18, 30, 57, .28);
  --focus: rgba(224, 102, 63, .45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: var(--orange-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--heading); letter-spacing: -0.015em; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ico { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-accent { background: var(--orange-600); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--orange-700); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--green-700); }
.btn-warning { background: var(--amber-600); color: #fff; }
.btn-warning:hover:not(:disabled) { background: #B45309; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red-700); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--border-2); }
.btn-outline-brand { background: #fff; color: var(--orange-700); border-color: var(--orange-500); }
.btn-outline-brand:hover:not(:disabled) { background: var(--orange-50); }
.btn-ghost:hover:not(:disabled) { background: var(--orange-50); border-color: var(--orange-300); color: var(--orange-800); }
.btn-danger-ghost { background: #fff; color: var(--red-700); border-color: #F5C2C2; }
.btn-danger-ghost:hover:not(:disabled) { background: var(--red-50); }
.btn-link { background: none; border: 0; color: var(--orange-700); padding: 0; height: auto; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--navy-800); cursor: pointer;
}
.icon-btn:hover { background: var(--navy-50); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: 13.5px; color: var(--navy-900); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red-700); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); background: var(--red-50); }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], input[type=month], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 10px;
  font: 400 14.5px var(--font); color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(224, 102, 63, .18); }
.input-group { display: flex; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon {
  border: 1px solid var(--border-2); border-left: 0; background: var(--navy-50); color: var(--navy-700);
  padding: 0 14px; border-radius: 0 10px 10px 0; font: 600 13px var(--font); cursor: pointer;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.char-count { font-size: 12px; color: var(--muted); text-align: right; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--orange-600); }

/* Segmented control */
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--orange-700); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--orange-500); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; border: 1px solid; margin-bottom: 12px; }
.alert .ico { margin-top: 1px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert-error { background: var(--red-50); border-color: #F8CACA; color: var(--red-700); }
.alert-warning { background: var(--amber-50); border-color: #F6DE9C; color: var(--amber-700); }
.alert-info { background: var(--blue-50); border-color: #C7DAFE; color: var(--blue-700); }
.alert-success { background: var(--green-50); border-color: #B7E8D3; color: var(--green-700); }
.alert-neutral { background: var(--navy-50); border-color: var(--border); color: var(--text-2); }

/* ---------- Badges ---------- */
.type-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.type-VL { background: var(--vl-bg); color: var(--vl-ink); }
.type-SL { background: var(--sl-bg); color: var(--sl-ink); }
.type-UL { background: var(--ul-bg); color: var(--ul-ink); }
.type-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--amber-100); color: var(--amber-700); }
.status-approved { background: var(--green-100); color: var(--green-700); }
.status-declined { background: var(--red-100); color: var(--red-700); }
.status-cancelled { background: var(--ul-bg); color: var(--ul-ink); }
.status-active { background: var(--green-100); color: var(--green-700); }
.status-inactive { background: var(--ul-bg); color: var(--ul-ink); }
.demo-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #FDF6EC; color: var(--bronze); border: 1px dashed #D9B98F; vertical-align: middle; margin-left: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.pill-demo { background: var(--panel); color: var(--bronze); border: 1px solid var(--border); }
.role-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--navy-100); color: var(--navy-700); }
.role-pill.admin { background: var(--orange-100); color: var(--orange-800); }

/* Avatars */
.avatar { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.avatar.has-photo { color: transparent; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #F2F2F2; }
.avatar-xl { width: 96px; height: 96px; font-size: 30px; box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(18, 30, 57, .12); }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 13px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-name { font-weight: 600; color: var(--navy-900); }
.person-sub { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   App shell
   ===================================================================== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--navy-800); color: #C9D2E3;
  display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.brand-name span { color: var(--orange-500); }
.brand-tag { font-size: 12px; color: #93A4BF; margin-top: 1px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6F82A3; padding: 6px 12px 8px; font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: #C8D3E6; font-weight: 500; font-size: 14.5px; text-decoration: none !important; position: relative;
}
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link.active { background: rgba(224, 102, 63, .16); color: #fff; }
.nav-link.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange-500); }
.nav-link.active .ico { color: var(--orange-300); }
.nav-badge { margin-left: auto; background: var(--orange-500); color: #fff; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: #93A4BF; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); padding: 10px; border-radius: 10px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.user-meta { min-width: 0; }
.user-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 12px; color: #93A4BF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-sidebar { background: transparent; color: #C8D3E6; border: 1px solid rgba(255, 255, 255, .14); width: 100%; }
.btn-sidebar:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 32px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.topbar { box-shadow: inset 0 3px 0 var(--navy-800); }
.topbar-title { font-weight: 600; color: var(--muted); font-size: 14px; }
.topbar-title b { color: var(--heading); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-logout { gap: 6px; }

/* Keep the sidebar Log out button visible on shorter laptop screens */
.sidebar-foot { position: sticky; bottom: -20px; background: var(--navy-800); padding-bottom: 20px; margin-bottom: -20px; }
@media (max-height: 760px) {
  .brand { padding-bottom: 14px; }
  .nav-link { padding: 8px 12px; }
  .demo-note { display: none; }
  .sidebar-foot { gap: 8px; padding-top: 12px; }
}
.menu-btn { display: none; }
.scrim { display: none; }
.page { padding: 28px 32px 40px; max-width: 1360px; width: 100%; }
.app-foot { margin-top: auto; padding: 18px 32px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); background: #fff; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 720px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head .count { background: var(--orange-50); color: var(--orange-700); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.card-body { padding: 18px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); }
.section { margin-bottom: 24px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.layout-even { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Welcome banner */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px; margin-bottom: 24px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, rgba(241, 159, 67, .30) 0%, rgba(241, 159, 67, 0) 55%), linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border-bottom: 4px solid var(--orange-500);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero h1 { color: #fff; font-size: 26px; font-weight: 800; }
.hero p { color: #D3DAE8; margin-top: 6px; }
.hero .btn-accent { height: 46px; padding: 0 20px; font-size: 15px; box-shadow: 0 8px 20px rgba(201, 80, 42, .35); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); height: 46px; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .18); }

/* Balance cards */
.balances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.bal-card { padding: 22px; position: relative; overflow: hidden; }
.bal-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; opacity: .55; }
.bal-VL::after { background: var(--vl-bg); }
.bal-SL::after { background: var(--sl-bg); }
.bal-UL::after { background: var(--ul-bg); }
.bal-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.bal-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.bal-VL .bal-icon { background: var(--vl-bg); color: var(--vl); }
.bal-SL .bal-icon { background: var(--sl-bg); color: var(--sl); }
.bal-UL .bal-icon { background: var(--ul-bg); color: var(--ul); }
.bal-title { font-weight: 700; color: var(--navy-900); }
.bal-code { font-size: 12px; color: var(--muted); }
.bal-figure { margin: 18px 0 12px; display: flex; align-items: baseline; gap: 8px; position: relative; z-index: 1; }
.bal-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--heading); line-height: 1; }
.bal-unit { color: var(--muted); font-weight: 500; }
.bal-text { font-size: 18px; font-weight: 700; color: var(--navy-900); margin: 18px 0 6px; }
.progress { height: 8px; border-radius: 99px; background: var(--panel); overflow: hidden; display: flex; }
.progress span { display: block; height: 100%; }
.bal-VL .progress .used { background: var(--vl); }
.bal-SL .progress .used { background: var(--sl); }
.progress .pend { background: repeating-linear-gradient(45deg, #F5B53F, #F5B53F 4px, #FAD27F 4px, #FAD27F 8px); }
.bal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.bal-meta b { display: block; font-size: 15px; color: var(--navy-900); }
.bal-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.navy { background: var(--navy-100); color: var(--navy-700); }
.stat-icon.amber { background: #FDF0DF; color: var(--bronze); }
.stat-icon.green { background: var(--orange-100); color: var(--orange-700); }
.stat-icon.blue { background: var(--blue-100); color: var(--blue-600); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--bronze); line-height: 1.1; margin-top: 2px; letter-spacing: -0.02em; }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: var(--navy-900); }
.list-sub { font-size: 12.5px; color: var(--muted); }
.empty { padding: 28px 22px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .ico { color: var(--orange-300); margin-bottom: 6px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--panel); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FBFAF9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }
.table .reason-cell { max-width: 260px; color: var(--text-2); }
.table .group-head { text-align: center; border-left: 1px solid var(--border); }
.table .bl { border-left: 1px solid var(--border); }
.strong-num { font-weight: 800; color: var(--navy-900); }
.neg { color: var(--red-700); }
.pos { color: var(--green-700); }
tr.row-highlight td { background: var(--orange-50) !important; }

/* Toolbar / filters */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.toolbar .field { margin: 0; min-width: 150px; flex: 1; }
.toolbar .field label { font-size: 12px; color: var(--muted); }
.toolbar input, .toolbar select { height: 38px; font-size: 13.5px; }
.toolbar .btns { display: flex; gap: 8px; }
.tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { background: none; border: 0; padding: 14px 12px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--orange-700); }
.tab.active { color: var(--heading); border-bottom-color: var(--orange-500); }
.tab .count { background: var(--panel); color: var(--muted); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.tab.active .count { background: var(--orange-100); color: var(--orange-800); }
.summary-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: #FAFAFA; }
.chip-stat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); }
.chip-stat b { color: var(--navy-900); }

/* Request cards (owner) */
.req-list { display: flex; flex-direction: column; }
.req-card { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.req-card:last-child { border-bottom: 0; }
.req-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.req-top .person { flex: 1; }
.req-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 14px; margin: 16px 0 12px; padding: 14px; background: var(--panel); border-radius: 10px; }
.req-grid dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.req-grid dd { margin: 0; font-weight: 600; color: var(--navy-900); font-size: 13.5px; }
.req-reason { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.req-reason span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; display: block; margin-bottom: 2px; }
.req-flags .alert { margin-bottom: 8px; padding: 9px 12px; font-size: 13px; }
.req-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* Apply form */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form-card { padding: 26px; }
.form-section-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--bronze); font-weight: 700; margin-bottom: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.summary-card { position: sticky; top: 88px; overflow: hidden; }
.summary-days { padding: 22px; background: var(--navy-800); color: #fff; border-bottom: 4px solid var(--orange-500); }
.summary-days .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-300); font-weight: 700; }
.summary-days .big { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.summary-days .big small { font-size: 16px; font-weight: 600; color: #C8D6EE; margin-left: 6px; letter-spacing: 0; }
.summary-days .note { font-size: 13px; color: #C8D6EE; margin-top: 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 22px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; color: var(--navy-900); }
.summary-msgs { padding: 16px 22px 6px; }
.away-list { padding: 0 22px 18px; }
.away-list h4 { font-size: 13px; margin: 6px 0 8px; color: var(--navy-900); }
.away-row { display: flex; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.away-row:last-child { border-bottom: 0; }
.away-row b { min-width: 92px; color: var(--navy-900); font-weight: 600; }

/* =====================================================================
   Calendar
   ===================================================================== */
.cal-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cal-title { font-size: 20px; font-weight: 800; color: var(--navy-900); min-width: 190px; }
.cal-nav { display: flex; gap: 6px; }
.cal-filters { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cal-filters select { height: 36px; width: auto; min-width: 180px; font-size: 13.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); background: #FAFAFA; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .06); }
.lg-free { background: #fff; border: 1px solid var(--green-500) !important; box-shadow: inset 0 3px 0 var(--green-500); }
.lg-partial { background: var(--amber-50); box-shadow: inset 0 3px 0 #F5B53F; }
.lg-full { background: var(--red-50); box-shadow: inset 0 3px 0 var(--red-600); }
.lg-weekend { background: repeating-linear-gradient(45deg, #EEF1F6, #EEF1F6 3px, #F7F9FC 3px, #F7F9FC 6px); }
.lg-pending { background: #fff; border: 1.5px dashed var(--amber-600) !important; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--border); }
.cal-dow.we { color: #9CA3AF; }
.cal-day {
  position: relative; min-height: 124px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 5px; min-width: 0; outline-offset: -3px;
  transition: background .12s;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: #FCFAF8; }
.cal-day.full { background: var(--red-50); }
.cal-day.weekend { background: repeating-linear-gradient(45deg, #F3F3F4, #F3F3F4 4px, #FAFAFA 4px, #FAFAFA 8px); cursor: default; }
.cal-day.other { opacity: .42; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cal-num { font-weight: 700; font-size: 13.5px; color: var(--heading); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--orange-600); color: #fff; }
.cal-cap { font-size: 10.5px; font-weight: 700; color: var(--red-700); letter-spacing: .02em; }
.cal-chips { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 6px 4px 7px; border-radius: 6px; line-height: 1.25; cursor: pointer; min-width: 0; border-left: 3px solid; }
.chip:hover { filter: brightness(.96); }
.chip:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 1px; }
.chip-full, .chip-first { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-first { display: none; }
.chip-type { font-size: 10px; font-weight: 800; letter-spacing: .03em; opacity: .75; }
.chip-VL { background: var(--vl-bg); color: var(--vl-ink); border-left-color: var(--vl); }
.chip-SL { background: var(--sl-bg); color: var(--sl-ink); border-left-color: var(--sl); }
.chip-UL { background: var(--ul-bg); color: var(--ul-ink); border-left-color: var(--ul); }
.chip.pending { background: #fff; border: 1.5px dashed var(--amber-600); color: var(--amber-700); }
.chip.mine { box-shadow: inset 0 0 0 1.5px currentColor; }
.chip-more { font-size: 11.5px; color: var(--orange-700); font-weight: 600; padding-left: 4px; }
.lg-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-dot.VL { background: var(--vl); } .lg-dot.SL { background: var(--sl); } .lg-dot.UL { background: var(--ul); }

/* Availability strip */
.avail-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 18px 22px; }
.avail-day { border-radius: 10px; padding: 10px 6px; text-align: center; border: 1px solid var(--border); background: #fff; text-decoration: none !important; color: inherit; }
.avail-day:hover { border-color: var(--navy-200); }
.avail-day .d1 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.avail-day .d2 { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.avail-day .d3 { font-size: 11px; font-weight: 700; margin-top: 2px; }
.avail-day.free { background: var(--green-50); border-color: #B7E8D3; }
.avail-day.free .d3 { color: var(--green-700); }
.avail-day.partial { background: var(--amber-50); border-color: #F6DE9C; }
.avail-day.partial .d3 { color: var(--amber-700); }
.avail-day.full { background: var(--red-50); border-color: #F8CACA; }
.avail-day.full .d3 { color: var(--red-700); }

/* =====================================================================
   Login & guide pages
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 56px;
  background: radial-gradient(80% 60% at 90% 8%, rgba(241, 159, 67, .28) 0%, rgba(241, 159, 67, 0) 60%),
              radial-gradient(70% 60% at 0% 100%, rgba(224, 102, 63, .18) 0%, rgba(224, 102, 63, 0) 70%),
              linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: flex;
}
.auth-brand::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02); }
.auth-brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 520px; }
.brand-lg .logo-mark { width: 52px; height: 52px; }
.brand-lg .brand-name { font-size: 26px; }
.brand-lg .brand-tag { font-size: 14px; }
.auth-brand h2 { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.18; margin: 56px 0 26px; letter-spacing: -0.02em; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #D5DFEF; font-size: 15px; }
.auth-points .tick { width: 26px; height: 26px; border-radius: 50%; background: rgba(224, 102, 63, .22); color: var(--orange-300); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-foot { margin-top: auto; padding-top: 48px; font-size: 12.5px; color: #8EA0BE; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 6px 0 26px; }
.guide-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 10px; border: 1px solid var(--orange-500); font-weight: 600; background: #fff; color: var(--orange-700); }
.guide-link:hover { background: var(--orange-50); text-decoration: none; }
.security-note { display: flex; gap: 10px; margin-top: 22px; padding: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.security-note .ico { margin-top: 2px; color: var(--bronze); }

.guide { max-width: 1080px; margin: 0 auto; padding: 32px 24px 60px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.guide-top .brand { padding: 0; }
.guide-top .brand-name { color: var(--heading); }
.guide-top .brand-tag { color: var(--muted); }
.guide h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.guide .lead { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; max-width: 760px; }
.cred-owner td { background: var(--orange-50); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--panel); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; color: var(--navy-800); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding: 0 0 18px 46px; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-600); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps > li b { color: var(--navy-900); }
.steps ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.test-block { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.test-block:last-child { border-bottom: 0; }
.test-block h3 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.test-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--navy-800); color: #fff; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px 22px; }
.rule { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.rule .ico { color: var(--orange-600); margin-top: 2px; }

/* Access denied / errors */
.empty-state { text-align: center; padding: 64px 24px; max-width: 560px; margin: 32px auto; }
.empty-state .ico { color: var(--orange-500); margin-bottom: 14px; }
.empty-state h2 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 10px; }
.empty-state .btn { margin-top: 14px; }

/* =====================================================================
   Modal & toasts
   ===================================================================== */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(7, 20, 39, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-head .icon-btn { width: 34px; height: 34px; border: 0; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); background: #FAFAFA; border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 16px; }
.detail-grid dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.detail-grid dd { margin: 2px 0 0; font-weight: 600; color: var(--navy-900); }
.preview-box { display: flex; align-items: center; justify-content: space-around; gap: 12px; padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); margin: 6px 0 14px; text-align: center; }
.preview-box .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.preview-box .val { font-size: 24px; font-weight: 800; color: var(--navy-900); }
.preview-box .arrow { color: var(--muted); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 16px; border-radius: 12px; background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: pop .2s ease; border-left: 4px solid #4CC38A; }
.toast-success .ico:first-child { color: #4CC38A; }
.toast-error { border-left-color: #F87171; }
.toast-error .ico:first-child { color: #F87171; }
.toast-warning { border-left-color: #FBBF24; }
.toast-warning .ico:first-child { color: #FBBF24; }
.toast-info { border-left-color: #60A5FA; }
.toast-info .ico:first-child { color: #60A5FA; }
.toast-msg { flex: 1; line-height: 1.45; }
.toast-x { background: none; border: 0; color: #93A4BF; cursor: pointer; padding: 0; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .layout-2, .layout-even, .apply-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .balances { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 36px 28px; }
  .auth-brand h2 { font-size: 26px; margin: 28px 0 18px; }
  .auth-foot { padding-top: 24px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(7, 20, 39, .45); z-index: 30; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px 32px; }
  .app-foot { padding: 16px; }
  .cal-day { min-height: 92px; padding: 6px 4px; }
  .chip { font-size: 11px; padding: 3px 4px 3px 5px; gap: 3px; }
  .chip-full { display: none; }
  .chip-first { display: block; }
  .cal-cap { font-size: 9.5px; }
  .cal-filters { margin-left: 0; width: 100%; }
  .cal-filters select { flex: 1; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .balances, .stats { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .hero h1, .page-head h1 { font-size: 22px; }
  .topbar-right .pill-demo, .topbar-right .role-pill { display: none; }
  .topbar-logout span { display: none; }
  .avail-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 14px; }
  .cal-dow { padding: 8px 4px; font-size: 10px; letter-spacing: .02em; text-align: center; }
  .cal-day { min-height: 76px; padding: 4px 2px; gap: 3px; }
  .chip { font-size: 9.5px; padding: 2px 3px; border-left-width: 2px; }
  .chip-type { display: none; }
  .cal-cap { display: none; }
  .cal-num { width: 22px; height: 22px; font-size: 12px; }
  .we-label { display: none; }
  .req-actions .btn { flex: 1; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Print (reports) */
@media print {
  .sidebar, .topbar, .app-foot, .page-actions, .toolbar, .toasts, .btn { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; }
}

/* =====================================================================
   Time-based leave form
   ===================================================================== */
.hours-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.hours-note .ico { color: var(--bronze); margin-top: 2px; }
.time-rows { display: flex; flex-direction: column; gap: 10px; }
.time-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.time-row .field { margin: 0; }
.time-row .field label { font-size: 12px; color: var(--muted); }
.time-row input { height: 40px; }
.row-dur { display: flex; flex-direction: column; justify-content: center; min-height: 40px; font-size: 14px; color: var(--heading); }
.row-dur b { font-size: 15px; }
.row-del { width: 40px; height: 40px; }
.row-del:disabled { opacity: .35; cursor: not-allowed; }
input.is-invalid, select.is-invalid { border-color: var(--red-600) !important; background: var(--red-50); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.range-box { margin-top: 12px; padding: 14px; border: 1px dashed var(--orange-300); border-radius: 12px; background: var(--orange-50); }
.range-box .field { margin-bottom: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.range-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary-days .big { font-size: 40px; }
.summary-days .note b { color: #fff; }
.kv-list span:last-child div { font-weight: 500; white-space: nowrap; }
.kv-list span:last-child b { margin-left: 6px; }

/* Requested time slots (owner review, history, pop-ups) */
.slot-list { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.slot-list > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.slot-list > div > span:first-child { min-width: 92px; color: var(--muted); }
.slot-list > div > b { color: var(--heading); }
.req-times { margin-bottom: 12px; }
.req-times > span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; display: block; margin-bottom: 4px; }
.modal .slot-list { padding: 12px 14px; background: var(--panel); border-radius: 10px; margin-bottom: 14px; }

/* Working-hours editor */
.day-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-2); font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; background: #fff; }
.day-pick input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.day-pick input:focus-visible + span { outline: 3px solid var(--focus); }
.break-row { display: grid; grid-template-columns: 1.3fr 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.break-row input { height: 38px; }
.sched-total { padding: 10px 12px; border-radius: 10px; background: var(--orange-50); border: 1px solid var(--orange-100); font-size: 13.5px; color: var(--text-2); }

/* Photos & team directory */
.hero-who { display: flex; align-items: center; gap: 18px; }
.hero .avatar-xl { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.person-card { padding: 26px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person-card .avatar-xl { width: 112px; height: 112px; font-size: 34px; margin-bottom: 12px; }
.person-card.me { border-color: var(--orange-300); }
.pc-name { font-weight: 700; font-size: 16px; color: var(--heading); }
.pc-pos { color: var(--text-2); font-size: 14px; }
.pc-dept { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .time-row { grid-template-columns: 1fr 1fr; }
  .time-row .field:first-child { grid-column: 1 / -1; }
  .row-dur { grid-column: 1 / 2; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-who { gap: 12px; }
  .hero .avatar-xl { width: 64px; height: 64px; font-size: 22px; }
  .break-row { grid-template-columns: 1fr 1fr; }
  .break-row input[data-bk="label"] { grid-column: 1 / -1; }
  .break-row > span { display: none; }
}

.no-reason { font-style: normal; }

/* Full day / Half day rows */
.time-row.day-row { grid-template-columns: 1.4fr 1.2fr .8fr auto; }
.row-dur .small { display: block; }
.ye-table th, .ye-table td { white-space: nowrap; }
.ye-table td.num { font-variant-numeric: tabular-nums; }
#balMgmt .card-head, #creditHist .card-head { gap: 10px; }
#balMgmt .card-head h2, #creditHist .card-head h2 { margin-right: auto; }
@media (max-width: 860px) {
  .time-row.day-row { grid-template-columns: 1fr 1fr auto; }
  .time-row.day-row .field:first-child { grid-column: 1 / -1; }
}
