/* Croco IT design system — ported from noon-integration and mapped onto
   Dawamy's existing markup classes (.sidebar/.card/.btn/.badge/table/...).
   Tokens are verbatim; component values follow the Croco components.css. */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/croco/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/croco/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/croco/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/croco/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/croco/ibm-plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/croco/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/croco/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/croco/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  /* ---- Brand: Croco Cyan ---- */
  --cyan-50:  #ECF8FE; --cyan-100: #D2EFFC; --cyan-200: #A8E0F8; --cyan-300: #6FCDF1;
  --cyan-400: #31B5E7; --cyan-500: #0EA5DC; --cyan-600: #058CC0; --cyan-700: #0A7199;
  --cyan-800: #0F5A7B; --cyan-900: #134A66;

  /* ---- Slate / ink neutrals ---- */
  --slate-0: #FFFFFF; --slate-25: #F8FAFC; --slate-50: #F1F5F8; --slate-100: #E5ECF1;
  --slate-200: #D2DCE3; --slate-300: #B1BFC9; --slate-400: #8595A2; --slate-500: #5F6F7D;
  --slate-600: #45545F; --slate-700: #34424E; --slate-800: #2A3742; --slate-900: #1B2832;
  --slate-950: #0F1A22;

  /* ---- Deep teal-navy (sidebar) ---- */
  --navy-700: #0E2C3D; --navy-800: #0A2230; --navy-900: #071824;

  /* ---- Amber accent ---- */
  --amber-50: #FEF6E9; --amber-100: #FBE7C2; --amber-300: #F4C36B;
  --amber-500: #F2A024; --amber-600: #D9870F; --amber-700: #A9670B;

  /* ---- Semantic status ---- */
  --green-50: #E9F7F0; --green-500: #1F9D6B; --green-600: #16855A;
  --red-50: #FCEDED; --red-500: #E04646; --red-600: #C5343A;
  --amber-warn-50: #FDF3E5; --amber-warn-500: #E08A1E; --amber-warn-600: #C0740F;

  /* ---- Semantic aliases ---- */
  --bg-base: var(--slate-25); --surface: var(--slate-0); --surface-sunken: var(--slate-50);
  --ink: var(--slate-900); --ink-strong: var(--slate-950); --ink-muted: var(--slate-600); --ink-subtle: var(--slate-400);
  --ink-on-dark: #EAF2F6; --ink-on-dark-muted: #9DB2BE;
  --border: var(--slate-200); --border-strong: var(--slate-300); --border-subtle: var(--slate-100);
  --border-on-dark: rgba(255,255,255,0.12);
  --primary: var(--cyan-500); --primary-hover: var(--cyan-600); --primary-active: var(--cyan-700);
  --primary-soft: var(--cyan-50); --primary-ink: var(--cyan-700);
  --accent: var(--amber-500);
  --link: var(--cyan-700); --link-hover: var(--cyan-800);
  --success: var(--green-500); --danger: var(--red-500);
  --focus-ring: rgba(14, 165, 220, 0.45);

  /* Arabic-capable fallbacks after the Croco Latin faces */
  --font-display: "Space Grotesk", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15,26,34,0.06);
  --shadow-sm: 0 1px 2px rgba(15,26,34,0.06), 0 2px 6px rgba(15,26,34,0.05);
  --shadow-focus: 0 0 0 3px var(--focus-ring);
  --shadow-brand: 0 8px 24px rgba(14,165,220,0.28);

  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 120ms; --dur: 200ms;

  /* Dawamy legacy aliases (views reference these) */
  --primary-2: var(--cyan-600);
  --bg: var(--bg-base);
  --card: var(--surface);
  --text: var(--ink);
  --muted: var(--ink-muted);
}

/* ============================================================ base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--bg-base); min-height: 100vh; display: flex;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.015em; color: var(--ink-strong); }
::selection { background: var(--cyan-200); color: var(--ink-strong); }
:focus-visible { outline: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-300); background-clip: content-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================ sidebar (Croco navy shell) */
.sidebar {
  width: 248px; background: var(--navy-800); color: var(--ink-on-dark);
  /* fixed height (not min-height) so the nav scrolls instead of overflowing the viewport */
  height: 100vh; height: 100dvh; position: fixed; right: 0; top: 0; padding: 0 0 1rem;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(157,178,190,0.35) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(157,178,190,0.28); border-radius: var(--radius-pill); border: 2px solid transparent; background-clip: content-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(14,165,220,0.55); background-clip: content-box; }

.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; margin-bottom: .6rem; }
.sidebar .brand img { width: 30px; height: auto; flex: none; }
.sidebar .brand .brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #fff; display: block; }
.sidebar .brand .brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-on-dark-muted); }
.sidebar .brand span.accent { color: var(--cyan-400); }

.sidebar nav { padding: 4px 12px 16px; flex: 1; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px;
  border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-on-dark-muted);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.sidebar nav a:hover { color: #fff; }
.sidebar nav a.active { background: rgba(14,165,220,0.18); color: #fff; }
.sidebar .section {
  padding: 16px 8px 6px; margin: 0; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.14em; color: var(--ink-on-dark-muted);
}
/* short screens: tighten spacing so more items fit before scrolling */
@media (max-height: 820px) {
  .sidebar .brand { padding: 12px 18px 8px; margin-bottom: .2rem; }
  .sidebar nav { padding-bottom: 8px; }
  .sidebar nav a { padding: 6px 10px; margin-bottom: 1px; }
  .sidebar .section { padding: 10px 8px 4px; }
}

/* ============================================================ main / topbar */
.main { flex: 1; padding: 1.5rem 2rem 3rem; max-width: 100%; }
.sidebar ~ .main, .menu-toggle ~ .main { margin-right: 248px; max-width: calc(100% - 248px); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.topbar h1 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); }
.userbox { display: flex; align-items: center; gap: .9rem; }
.userbox .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan-700); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.userbox .muted { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }

/* ============================================================ badges (Croco badge) */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; white-space: nowrap; }
.badge.blue  { background: var(--cyan-50); color: var(--cyan-700); }
.badge.green { background: var(--green-50); color: var(--green-600); }
.badge.red   { background: var(--red-50); color: var(--red-600); }
.badge.amber { background: var(--amber-warn-50); color: var(--amber-warn-600); }
.badge.gray  { background: var(--slate-100); color: var(--slate-700); }

/* ============================================================ cards / stats (Croco surface) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin-bottom: 1.3rem; box-shadow: var(--shadow-xs); }
.card h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink-strong); margin-bottom: .9rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.2rem; box-shadow: var(--shadow-xs); }
.stat .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-strong); }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); margin-top: 4px; }

/* ============================================================ tables (Croco table skin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink); }
th {
  text-align: right; padding: 12px 16px; font-family: var(--font-mono); font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.1em; color: var(--ink-subtle);
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
tbody tr { transition: background var(--dur-fast) var(--ease-standard); }
tr:hover td { background: var(--slate-25); }
.table-wrap { overflow-x: auto; }

/* ============================================================ buttons (Croco btn) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  line-height: 1; letter-spacing: -0.01em; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; user-select: none;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-xs);
  transition: background var(--dur) var(--ease-standard), border-color var(--dur) var(--ease-standard),
    color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.btn:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(1px); background: var(--primary-active); }
.btn:focus-visible { box-shadow: var(--shadow-focus); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn.green { background: var(--success); }
.btn.green:hover { background: var(--green-600); box-shadow: var(--shadow-xs); }
.btn.red { background: var(--danger); }
.btn.red:hover { background: var(--red-600); box-shadow: var(--shadow-xs); }
.btn.gray { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: none; }
.btn.gray:hover { border-color: var(--primary); color: var(--primary-ink); background: var(--primary-soft); }
.btn.outline { background: transparent; color: var(--primary-ink); border-color: var(--border-strong); box-shadow: none; }
.btn.outline:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
form.inline { display: inline; }

/* ============================================================ forms (Croco input/select) */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; height: 40px; padding: 0 12px; font-family: var(--font-sans); font-size: 14px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); outline: none;
  transition: border-color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard);
}
textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { height: auto; width: auto; accent-color: var(--primary); }
input[type="file"] { padding: 7px 12px; }
input::placeholder { color: var(--ink-subtle); }
input:hover, select:hover, textarea:hover { border-color: var(--slate-400); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--shadow-focus); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: end; }
.toggle { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.toggle input { transform: scale(1.3); }

/* ============================================================ alerts (Croco flash) */
.alert { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: 13px; border: 1px solid transparent; }
.alert.success { background: var(--green-50); color: var(--green-600); border-color: var(--green-500); }
.alert.error, .alert.warning { background: var(--red-50); color: var(--red-600); border-color: var(--red-500); }
.alert.warning { background: var(--amber-warn-50); color: var(--amber-warn-600); border-color: var(--amber-warn-500); }
.muted { color: var(--ink-muted); font-size: 13px; }
code { font-family: var(--font-mono); font-size: 12px; background: var(--slate-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 2px 6px; }

/* notifications bell */
.bell { position: relative; }
.bell .dot { position: absolute; top: -4px; left: -4px; background: var(--danger); color: #fff; font-size: .65rem; border-radius: 50%; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* pagination (Laravel default markup) */
nav[role="navigation"] svg { width: 16px; height: 16px; }

/* ============================================================ searchable select */
.ss { position: relative; width: 100%; }
/* The native select stays focusable (for `required` bubbles) but invisible. */
.ss > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ss-toggle { width: 100%; text-align: right; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); height: 40px; line-height: 38px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 28px; transition: border-color var(--dur) var(--ease-standard); }
.ss-toggle::after { content: '▾'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-subtle); font-size: 11px; }
.ss-toggle:hover { border-color: var(--slate-400); }
.ss.open .ss-toggle { border-color: var(--primary); box-shadow: var(--shadow-focus); }
.ss-toggle.placeholder { color: var(--ink-subtle); }
.ss-panel { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md, 0 8px 24px rgba(15,23,42,.12)); padding: 6px; display: flex; flex-direction: column; }
/* An author `display` wins over the UA rule for [hidden], so restate it. */
.ss-panel[hidden] { display: none; }
/* flex:none — the panel is a flex column, so the box must not shrink. */
.ss-search { width: 100%; margin-bottom: 6px; font-size: 13.5px; flex: none; }
.ss-list { overflow-y: auto; flex: 1; min-height: 0; }
.ss-opt { padding: 9px 11px; border-radius: var(--radius-sm); font-size: 13.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-opt:hover, .ss-opt.active { background: var(--slate-100, #f1f5f9); }
.ss-opt.selected { color: var(--primary); font-weight: 700; }
.ss-empty { padding: 10px; text-align: center; color: var(--ink-subtle); font-size: 12.5px; }

/* ============================================================ unified list footer */
.list-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border-subtle); }
.list-footer-meta { display: flex; align-items: center; gap: 1rem; }
.per-page { display: flex; align-items: center; gap: .4rem; margin: 0; }
.per-page select { width: auto; padding: 4px 8px; font-size: 12.5px; }
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-btn { min-width: 32px; padding: 5px 10px; text-align: center; font-size: 12.5px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: all var(--dur) var(--ease-standard); }
a.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .45; cursor: default; }
.page-gap { padding: 0 2px; color: var(--ink-subtle); }

/* ============================================================ mobile */
.menu-toggle { display: none; position: fixed; top: .8rem; right: .8rem; z-index: 60; background: var(--navy-800); color: #fff; border: none; border-radius: var(--radius-md); padding: .5rem .8rem; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .sidebar { transform: translateX(100%); transition: transform var(--dur) var(--ease-standard); z-index: 50; }
  .sidebar.open { transform: translateX(0); }
  .main, .sidebar ~ .main, .menu-toggle ~ .main { margin-right: 0; max-width: 100%; padding: 3.4rem 1rem 3rem; }
}

/* ============================================================ login (Croco login) */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; width: 100%; }
.login-inner { width: 400px; max-width: 100%; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; text-align: center; }
.login-brand img { width: 52px; height: auto; }
.login-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-strong); }
.login-sub { font-size: 13.5px; color: var(--ink-muted); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.login-foot { text-align: center; margin-top: 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-subtle); }

/* ---- Bidirectional support: the layout is authored RTL, these flip it ---- */
[dir="ltr"] .sidebar { right: auto; left: 0; }
[dir="ltr"] .sidebar ~ .main,
[dir="ltr"] .menu-toggle ~ .main { margin-right: 0; margin-left: 248px; }
[dir="ltr"] .menu-toggle { right: auto; left: .8rem; }
[dir="ltr"] .ss-toggle { text-align: left; padding-left: 12px; padding-right: 28px; }
[dir="ltr"] .alert-list { margin-left: 1rem; margin-right: 0; }
.alert-list { margin-right: 1rem; }

@media (max-width: 900px) {
  [dir="ltr"] .sidebar ~ .main,
  [dir="ltr"] .menu-toggle ~ .main { margin-left: 0; }
  /* Off-canvas drawer slides in from the left when reading left-to-right. */
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  [dir="ltr"] .sidebar.open { transform: translateX(0); }
}

/* ---- Language switcher ---- */
.lang-switch { display: inline-flex; gap: 2px; background: var(--surface-2, #f1f5f9); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
.lang-btn { border: 0; background: transparent; color: var(--ink-subtle); font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: calc(var(--radius-sm) - 2px); cursor: pointer; }
.lang-btn:hover:not(.active) { color: var(--ink); }
.lang-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.08); cursor: default; }

/* ---- Report tabs ---- */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-subtle); text-decoration: none; border: 1px solid transparent; border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: -1px; transition: color var(--dur) var(--ease-standard); }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }

/* ---- Shift type guidance ---------------------------------------------- */
/* Sits full width under the field grid, so the grid keeps its columns.    */
.shift-help { margin: 0 0 1rem; }

.shift-help-body {
  background: linear-gradient(0deg, var(--surface-2, #f7f9fc), var(--surface-2, #f7f9fc));
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--navy-800, #1e3a5f);
  border-radius: var(--radius-md, 10px);
  padding: .85rem 1rem;
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--ink);
}

.shift-help-head { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-bottom: .7rem; }
.shift-help-badge {
  flex: none;
  background: var(--navy-800, #1e3a5f); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  padding: 2px 10px; border-radius: 999px;
}

/* Three facts side by side on desktop, stacked on narrow screens. */
.shift-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem .9rem; }
.shift-help-item { display: flex; align-items: flex-start; gap: .45rem; }
.shift-help-icon { flex: none; line-height: 1.5; opacity: .75; }

.shift-help-example {
  margin-top: .7rem; padding-top: .6rem;
  border-top: 1px dashed var(--border);
  color: var(--ink-subtle); font-size: 12.3px;
}

/* Rules that hold for every type, kept visually quieter than the panel. */
.shift-notes { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: 12.3px; line-height: 1.75; color: var(--ink-subtle); }
.shift-notes li { position: relative; padding-inline-start: 1.05rem; }
.shift-notes li::before { content: "•"; position: absolute; inset-inline-start: .25rem; color: var(--ink-subtle); }
.shift-notes b { color: var(--ink); font-weight: 600; }

/* ---- Folded secondary tool ---- */
.collapsible { border: 1px solid var(--border); border-radius: var(--radius-md, 10px); background: var(--surface-2, #f7f9fc); }
.collapsible > summary {
  cursor: pointer; list-style: none; padding: .7rem .9rem;
  font-size: 13px; font-weight: 600; color: var(--ink-subtle);
  display: flex; align-items: center; gap: .5rem;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::before { content: "▸"; font-size: 11px; transition: transform var(--dur) var(--ease-standard); }
.collapsible[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] .collapsible > summary::before { content: "◂"; }
[dir="rtl"] .collapsible[open] > summary::before { transform: rotate(-90deg); }
.collapsible > summary:hover { color: var(--ink); }
.collapsible[open] > summary { border-bottom: 1px solid var(--border); }
.collapsible-body { padding: .9rem; background: var(--surface); border-radius: 0 0 var(--radius-md, 10px) var(--radius-md, 10px); }
