/* ==========================================================================
   GLO SERVICE after-sales — visual system
   Follows the GLO SERVICE platform screens: deep-navy sidebar with a blue active pill, white top bar,
   soft cards, blue primary actions, coloured state pills. Bootstrap 5 (RTL build) provides behaviour and
   accessible components; this file provides the identity. Logical properties throughout (RTL first).
   ========================================================================== */

/* ---- Font: IBM Plex Sans Arabic (Arabic + Latin subsets) for everything. ---- */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Tokens ---- */
:root {
  --ink: #172033;
  --ink-soft: #5a6785;
  --brand: #1d6fe8;
  --brand-deep: #1559c4;
  --brand-night: #0f3f91;
  --navy: #101d47;
  --navy-deep: #0a1434;
  --tint: #eaf1fe;
  --tint-strong: #d3e2fb;
  --canvas: #f3f6fc;
  --paper: #ffffff;
  --line: #e1e7f2;

  /* Signals: reserved for state, never for decoration. */
  --amber: #f08a12;
  --amber-text: #a45a00;
  --red: #d63b45;
  --green: #1f9254;
  --blue: #2b6fd6;
  --grey: #6f7b95;

  --sidebar-text: #d6ddf0;
  --sidebar-muted: #93a1c6;

  --radius-panel: 14px;
  --radius-control: 10px;
  --shadow-card: 0 1px 2px rgba(16, 29, 71, 0.05), 0 8px 24px rgba(16, 29, 71, 0.05);
  --font-body: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: var(--font-body);

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 0.96875rem;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-link-color-rgb: 29, 111, 232;
  --bs-link-hover-color-rgb: 21, 89, 196;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-control);
  --bs-focus-ring-color: rgba(29, 111, 232, 0.28);
}

html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.65; font-feature-settings: "kern"; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.4; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sidebar :focus-visible { outline-color: #fff; }

.visually-hidden-focusable:focus { outline: 2px solid var(--brand); }
.skip-link { position: absolute; inset-inline-start: -999px; top: 0.5rem; z-index: 2000; background: var(--paper); color: var(--ink); padding: 0.5rem 1rem; border-radius: var(--radius-control); }
.skip-link:focus { inset-inline-start: 0.5rem; }

/* Latin values (serials, emails, codes, user names) inside RTL text keep their own direction. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.input-ltr { direction: ltr; text-align: left; }

/* ---- Buttons and form controls ---- */
.btn { border-radius: var(--radius-control); font-weight: 500; padding: 0.5rem 1rem; }
.btn-sm { padding: 0.3rem 0.75rem; }
.btn-primary { box-shadow: 0 4px 12px rgba(29, 111, 232, 0.22); }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-deep); --bs-btn-hover-border-color: var(--brand-deep); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-night); --bs-btn-active-border-color: var(--brand-night); --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 29, 111, 232;
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--tint); --bs-btn-hover-border-color: var(--tint-strong); --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--tint-strong); --bs-btn-active-border-color: var(--tint-strong); --bs-btn-active-color: var(--ink);
}
.btn-quiet { background: transparent; border: 0; color: var(--brand); padding: 0.25rem 0.5rem; font-weight: 500; }
.btn-quiet:hover { background: var(--tint); color: var(--brand-deep); }
.btn-quiet.is-danger { color: var(--red); }
.btn-quiet.is-danger:hover { background: #fde6e7; color: var(--red); }
.btn-icon { background: transparent; border: 0; font-size: 1.5rem; line-height: 1; color: inherit; padding: 0.25rem 0.5rem; border-radius: var(--radius-control); }

.form-control, .form-select { border-color: #cdd6e8; border-radius: var(--radius-control); background-color: var(--paper); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(29, 111, 232, 0.18); background-color: var(--paper); }
.form-check-input { border-color: #8a97b3; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(29, 111, 232, 0.18); }
.form-label { font-weight: 500; margin-block-end: 0.35rem; }
legend.form-label { float: none; width: auto; padding: 0; font-size: inherit; line-height: inherit; }
.form-text { color: var(--ink-soft); }
.input-validation-error { border-color: var(--red) !important; }
.field-validation-error, .validation-summary-errors { color: var(--red); font-size: 0.875rem; }
.field-validation-error { display: block; margin-block-start: 0.25rem; }
.validation-summary-errors { background: #fde9ea; border: 1px solid #f4c6c9; border-radius: var(--radius-control); padding: 0.6rem 0.9rem; margin-block-end: 1rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
.validation-summary-valid { display: none; }

.password-field { position: relative; }
.password-field .form-control { padding-inline-end: 2.75rem; }
.password-toggle { position: absolute; inset-inline-end: 0.35rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--ink-soft); padding: 0.35rem 0.55rem; border-radius: var(--radius-control); }
.password-toggle:hover { color: var(--brand); background: var(--tint); }

/* ---- App shell ---- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1 1 auto; width: 100%; max-width: 82rem; padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 2rem; margin-inline: auto; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1rem clamp(1rem, 3vw, 2.25rem) 1.5rem; color: var(--ink-soft); font-size: 0.8125rem; }
.app-shell.is-collapsed .sidebar { display: none !important; }

/* ---- Sidebar: a deep-navy panel, the active screen as a blue pill ---- */
.sidebar { --bs-offcanvas-width: 17rem; --bs-offcanvas-bg: transparent; border: 0; }
.sidebar-inner { display: flex; flex-direction: column; min-height: 100%; height: 100%; width: 17rem; max-width: 100vw; background: linear-gradient(180deg, #14245a 0%, var(--navy-deep) 100%); color: var(--sidebar-text); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
@media (min-width: 992px) {
  .sidebar { flex: 0 0 18rem; width: 18rem !important; position: sticky !important; top: 0; height: 100vh !important; padding: 0.75rem; }
  .sidebar-inner { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(10, 20, 52, 0.25); }
}

.sidebar-brand { display: flex; align-items: center; gap: 0.8rem; padding: 1.25rem 1.1rem 1rem; color: #fff; text-decoration: none; }
.sidebar-brand:hover { color: #fff; }
.brand-mark { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 12px; }
.brand-name { font-weight: 700; font-size: 1.1rem; line-height: 1.3; display: block; letter-spacing: 0.02em; }
.brand-tagline { display: block; font-size: 0.8125rem; color: var(--sidebar-muted); font-weight: 400; line-height: 1.4; }

.rail-nav { flex: 1 1 auto; padding: 0.25rem 0.75rem 0.75rem; display: grid; gap: 0.15rem; align-content: start; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.rail-link, .nav-summary { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; color: var(--sidebar-text); text-decoration: none; border-radius: 12px; font-weight: 400; background: transparent; border: 0; width: 100%; text-align: start; cursor: pointer; }
.rail-link > i:first-child, .nav-summary > i:first-child { font-size: 1.15rem; opacity: 0.92; flex: 0 0 auto; }
.rail-link:hover, .nav-summary:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.rail-link.is-active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(29, 111, 232, 0.4); }
.rail-link.is-soon { cursor: not-allowed; }
.rail-link.is-soon:hover { background: transparent; color: var(--sidebar-text); }
.rail-link.is-soon > span { opacity: 0.72; }

.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-chevron { margin-inline-start: auto; font-size: 0.8rem; opacity: 0.7; transition: transform 0.15s; }
.nav-group[open] > .nav-summary .nav-chevron { transform: rotate(180deg); }
.nav-group[open] > .nav-summary { color: #fff; }
.nav-sub { list-style: none; margin: 0.15rem 0 0.4rem; margin-inline: 1.6rem 0; padding: 0; padding-inline: 0.6rem 0; border-inline-start: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 0.1rem; }
.nav-sub .rail-link { padding-block: 0.5rem; font-size: 0.9rem; border-radius: 10px; }
.nav-sub .rail-link > i:first-child { display: none; }

.rail-heading { font-size: 0.8125rem; color: var(--sidebar-muted); margin: 1.1rem 0.85rem 0.35rem; font-weight: 500; }
.shortcut-list .rail-link { padding-block: 0.45rem; font-size: 0.9rem; }
.shortcut-list .rail-link > i:first-child { font-size: 1.05rem; }

.sidebar-foot { position: sticky; inset-block-end: 0; padding: 0.75rem 0.75rem 1rem; border-block-start: 1px solid rgba(255, 255, 255, 0.08); margin-block-start: 0.5rem; background: var(--navy-deep); }
.sidebar-foot form { margin: 0; }
.sidebar-legal { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.85rem 0; color: var(--sidebar-muted); font-size: 0.75rem; }
.sidebar :focus-visible { outline-color: #fff; }

/* The "not ready yet" mark: an hourglass in an amber disc. Used wherever an element is planned but not built. */
.soon-mark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(240, 138, 18, 0.2); color: #ffb454; font-size: 0.72rem; line-height: 1; margin-inline-start: auto; }
.rail-link .soon-mark { margin-inline-start: auto; }
.soon-mark.is-light { background: #fdeed8; color: var(--amber-text); }
.soon-mark.is-corner { position: absolute; inset-block-start: -0.3rem; inset-inline-end: -0.3rem; width: 1.15rem; height: 1.15rem; font-size: 0.6rem; margin: 0; }
.is-soon-block { position: relative; border-style: dashed !important; background: transparent !important; box-shadow: none !important; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0.5rem clamp(1rem, 3vw, 2.25rem); background: var(--paper); border-block-end: 1px solid var(--line); }
.topbar-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: transparent; border: 0; border-radius: 10px; color: var(--ink); font-size: 1.5rem; }
.topbar-toggle:hover { background: var(--tint); color: var(--brand-deep); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; color: var(--ink-soft); font-size: 0.875rem; min-width: 0; }
.crumbs a { color: var(--brand-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { opacity: 0.55; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.topbar-tools { display: flex; align-items: center; gap: 0.6rem; }
.topbar-search { position: relative; flex: 0 1 26rem; margin-inline-start: auto; display: none; align-items: center; }
@media (min-width: 768px) { .topbar-search { display: flex; } .topbar-tools { margin-inline-start: 0; } }
@media (max-width: 767.98px) { .topbar-tools { margin-inline-start: auto; } }
.tool-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #f3f6fc; border: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; }
.tool-button.is-soon { cursor: not-allowed; color: var(--ink-soft); }
.user-chip { display: flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0.5rem 0.25rem 0.75rem; background: transparent; border: 0; border-radius: 999px; color: var(--ink); text-align: start; }
.user-chip:hover, .user-chip[aria-expanded="true"] { background: var(--tint); }
.user-avatar { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.25rem; }
.user-text { display: flex; flex-direction: column; line-height: 1.3; }
.user-text strong { font-size: 0.9rem; font-weight: 600; }
.user-text small { color: var(--ink-soft); font-size: 0.75rem; }
.user-chip > .bi-chevron-down { font-size: 0.75rem; color: var(--ink-soft); }
.user-menu { position: relative; }
.user-menu .dropdown-menu { inset-block-start: calc(100% + 0.35rem); inset-inline-end: 0; inset-inline-start: auto; min-width: 13rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); }
.user-menu .dropdown-item { display: flex; align-items: center; gap: 0.6rem; border-radius: 8px; padding: 0.5rem 0.75rem; }
.user-menu .dropdown-item:hover { background: var(--tint); color: var(--brand-deep); }
.user-menu form { margin: 0; }
@media (max-width: 575.98px) { .user-text, .user-chip > .bi-chevron-down, .crumbs { display: none; } }

/* ---- Page structure: flat panels, hairline borders, no shadows ---- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-block-end: 1.25rem; }
.page-header h1 { font-size: 1.65rem; margin: 0; }
.page-lead { color: var(--ink-soft); max-width: 62ch; margin: 0.3rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb-back { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-soft); text-decoration: none; font-size: 0.875rem; margin-block-end: 0.5rem; }
.breadcrumb-back:hover { color: var(--brand); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); }
.panel-body { padding: 1.25rem 1.4rem; }
.panel-title { font-size: 1.05rem; margin: 0 0 0.9rem; }
.form-panel { max-width: 46rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-block-start: 0.5rem; }
.field { margin-block-end: 1.1rem; }
.notice { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--tint); border: 1px solid var(--tint-strong); border-radius: var(--radius-control); padding: 0.65rem 0.9rem; margin-block-end: 1.1rem; color: var(--ink); }
.notice i { color: var(--brand); margin-block-start: 0.2rem; }

.filter-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); margin-block-end: 1rem; }
.filter-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 10.5rem; }
.filter-field.grow { flex: 1 1 15rem; }
.filter-field label { font-size: 0.8125rem; color: var(--ink); font-weight: 600; }

/* ---- Tables: the rows are the product. Light header, hairline rows, soft hover. ---- */
.table-panel { overflow: hidden; }
/* position: relative makes the scroller the containing block of absolutely positioned cell content such as
   Bootstrap's .visually-hidden header text; otherwise that text escapes the scroller and widens the whole page. */
.table-scroll { overflow-x: auto; position: relative; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th { background: #f6f8fd; color: var(--ink); font-weight: 600; font-size: 0.8125rem; text-align: start; padding: 0.8rem 1rem; border-block-end: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 0.8rem 1rem; border-block-end: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-block-end: 0; }
.data-table tbody tr:hover td { background: #f6f9fe; }
.data-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.data-table .cell-actions { white-space: nowrap; text-align: end; }
.data-table .cell-muted { color: var(--ink-soft); }
.sort-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.sort-link i { font-size: 0.7rem; opacity: 0.45; }
.sort-link.is-active i { opacity: 1; color: var(--brand); }
.sort-link:hover { color: var(--brand); }
#list { transition: opacity 0.12s; }
#list.is-loading { opacity: 0.55; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-block-start: 1px solid var(--line); background: var(--paper); }
.pager-summary { color: var(--ink-soft); font-size: 0.875rem; }
.pager .pagination { margin: 0; gap: 0.2rem; }
.pager .page-link { border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 2.25rem; text-align: center; }
.pager .page-link:hover { background: var(--tint); }
.pager .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .page-item.disabled .page-link { color: #a8b3cc; background: transparent; }

.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--ink-soft); }
.empty-state i { display: block; font-size: 2rem; color: var(--brand); margin-block-end: 0.6rem; }
.empty-state strong { display: block; color: var(--ink); font-family: var(--font-display); margin-block-end: 0.25rem; }

.data-table bdi.ltr, .phone-link { white-space: nowrap; }

/* ---- Status pills: soft tint, dot and text; colour carries state, never decoration ---- */
.status { --tone-bg: #eef1f7; --tone-fg: var(--ink-soft); --tone-dot: var(--grey); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; background: var(--tone-bg); color: var(--tone-fg); white-space: nowrap; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tone-dot); }
.status.is-ok { --tone-bg: #e2f5ea; --tone-fg: #17663c; --tone-dot: var(--green); }
.status.is-new { --tone-bg: #e3edfd; --tone-fg: #1b57bd; --tone-dot: var(--blue); }
.status.is-warn { --tone-bg: #fdeed8; --tone-fg: var(--amber-text); --tone-dot: var(--amber); }
.status.is-bad { --tone-bg: #fde6e7; --tone-fg: #a8232c; --tone-dot: var(--red); }
.status.is-off { --tone-bg: #eceff6; --tone-fg: #4c5977; --tone-dot: var(--grey); }
.tag { display: inline-block; font-size: 0.75rem; padding: 0.05rem 0.5rem; border-radius: 4px; background: var(--tint); color: var(--brand-deep); font-weight: 500; }

/* ---- Flash messages ---- */
.flash { border-radius: var(--radius-control); border: 1px solid; padding: 0.7rem 1rem; margin-block-end: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.flash-success { background: #e2f5ea; border-color: #b7e0c7; color: #17663c; }
.flash-error { background: #fde9ea; border-color: #f4c6c9; color: #a8232c; }
.flash .btn-close { margin-inline-start: auto; font-size: 0.75rem; }

/* ---- Home ---- */
.section-title { font-size: 1rem; margin: 0 0 0.75rem; color: var(--ink); font-family: var(--font-body); font-weight: 600; }

/* ---- Roles matrix ---- */
.role-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.role-tabs a { display: block; padding: 0.55rem 0.9rem; border-radius: var(--radius-control); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.role-tabs a:hover { background: var(--tint); }
.role-tabs a.is-active { background: var(--tint); border-color: var(--tint-strong); font-weight: 600; color: var(--brand-deep); }
.perm-group + .perm-group { margin-block-start: 1.4rem; }
.perm-group h3 { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; }
.perm-item { display: flex; gap: 0.6rem; align-items: center; padding: 0.4rem 0; }

/* ---- Audit detail ---- */
.diff-table { width: 100%; border-collapse: collapse; }
.diff-table th, .diff-table td { padding: 0.55rem 0.8rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.diff-table th { background: var(--tint); font-size: 0.8125rem; font-weight: 600; }
.diff-old { color: #a8232c; }
.diff-new { color: #17663c; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0; }
.kv dt { color: var(--ink-soft); font-weight: 500; }
.kv dd { margin: 0; }


/* ---- Client 360, tabs and forms ---- */
.client-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-block-end: 1.25rem; }
.client-head h1 { font-size: 1.6rem; margin: 0; }
.client-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-block-start: 0.35rem; color: var(--ink-soft); }

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-block-end: 1px solid var(--line); margin-block-end: 1.25rem; }
.tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: var(--radius-control) var(--radius-control) 0 0; }
.tab:hover { color: var(--brand); background: var(--tint); }
.tab.is-active { color: var(--brand-deep); border-block-end-color: var(--brand); font-weight: 600; }
.tab i { font-size: 1.05rem; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; border-block-end: 1px solid var(--line); }
.panel-head .panel-title { margin: 0; }
.panel-body-flush { padding: 0; }
.empty-inline { padding: 1.5rem 1.25rem; color: var(--ink-soft); }
.panel-body:not(.panel-body-flush) > .empty-inline { padding-inline: 0; }
.row-link { font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.phone-link { color: inherit; text-decoration: none; }
.phone-link:hover { color: var(--brand); }
.filter-check { align-self: center; padding-block-start: 1.35rem; }

.form-panel-wide { max-width: 56rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.field-grid > .field-span { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
[data-company-only][hidden] { display: none !important; }

/* Two-way choice shown as one control (individual / company). */
.segmented { display: inline-flex; border: 1px solid #cdd6e8; border-radius: var(--radius-control); overflow: hidden; background: var(--paper); }
.segment { padding: 0.5rem 1.4rem; cursor: pointer; margin: 0; font-weight: 500; color: var(--ink-soft); }
.btn-check + .segment { border-inline-start: 1px solid #cdd6e8; }
.segmented > .btn-check:first-child + .segment { border-inline-start: 0; }
.btn-check:checked + .segment { background: var(--brand); color: #fff; }
.btn-check:focus-visible + .segment { outline: 2px solid var(--brand); outline-offset: -3px; }

/* Documents */
.upload-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-block-end: 0.5rem; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0; border-block-start: 1px solid var(--line); }
.doc-list li:first-child { border-block-start: 0; }
.doc-main { flex: 1 1 auto; min-width: 0; }
.doc-main a { font-weight: 500; overflow-wrap: anywhere; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; color: var(--ink-soft); font-size: 0.8125rem; }
.thumb { flex: 0 0 auto; width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--tint); }
.thumb-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.5rem; }

/* ---- Sign-in: brand and features beside a white card, as on the GLO SERVICE platform ---- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: 2rem clamp(1.25rem, 6vw, 6rem); background: radial-gradient(120% 90% at 100% 0%, #dfeafd 0%, #f5f8fe 45%, #ffffff 100%); }
.auth-brand-panel { display: grid; gap: 1.5rem; max-width: 34rem; justify-self: end; }
.auth-logo { display: flex; align-items: center; gap: 1rem; }
.auth-logo img { width: 4.5rem; height: 4.5rem; border-radius: 18px; box-shadow: 0 10px 24px rgba(29, 111, 232, 0.3); }
.auth-wordmark { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--brand); letter-spacing: 0.02em; }
.auth-wordmark small { display: block; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.auth-tagline { font-size: 1.25rem; font-weight: 600; color: var(--brand-night); margin: 0; }
.auth-lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0; max-width: 32rem; }
.auth-features { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.auth-features li { display: flex; gap: 0.9rem; align-items: flex-start; }
.auth-features .tile { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-card); color: var(--brand); font-size: 1.3rem; }
.auth-features strong { display: block; font-weight: 600; }
.auth-features span { color: var(--ink-soft); font-size: 0.9rem; }
.auth-card-wrap { display: grid; gap: 1rem; max-width: 30rem; width: 100%; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(16, 29, 71, 0.1); padding: clamp(1.5rem, 4vw, 2.25rem); }
.auth-title { font-size: 1.6rem; margin: 0 0 1.5rem; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-block-end: 1.25rem; }
.auth-row .form-check { margin: 0; }
.auth-soon-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); font-size: 0.875rem; cursor: not-allowed; }
.auth-soon-link .soon-mark { margin: 0; }
.auth-help { display: flex; gap: 0.6rem; align-items: center; color: var(--ink-soft); font-size: 0.875rem; margin: 1.25rem 0 0; }
.auth-help i { color: var(--brand); font-size: 1.1rem; }
.auth-legal { text-align: center; color: var(--ink-soft); font-size: 0.8125rem; margin: 0; }
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 1.5rem; }
  .auth-brand-panel { justify-self: center; text-align: center; max-width: 30rem; }
  .auth-logo { justify-content: center; }
  .auth-lead, .auth-features { display: none; }
}

/* ---- Error pages ---- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--canvas); }
.error-card { max-width: 30rem; text-align: center; }
.error-card .error-code { font-family: var(--font-display); font-size: 3.5rem; color: var(--brand); line-height: 1.2; display: block; }
.error-card h1 { font-size: 1.4rem; }
.error-card p { color: var(--ink-soft); }
.error-ref { font-size: 0.8125rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .filter-strip, .pager, .skip-link { display: none !important; }
  body { background: #fff; }
  .app-content { max-width: none; padding: 0; }
  .panel { border-color: #999; }
}

/* ---- Contracts, warranties and the clause library ---- */
.stack > * + * { margin-block-start: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.kv dd { overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mt-4 { margin-block-start: 1.5rem; }
.panel-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 0.9rem; }
.panel-head-inline .panel-title { margin: 0; }
.row-muted td { color: var(--ink-soft); }
.row-muted td a { color: var(--ink-soft); }

/* The articles read like the printed contract: a heading, then the text as written. */
.articles { display: grid; gap: 1.1rem; }
.article h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.article-body { margin: 0; white-space: pre-line; line-height: 1.75; max-width: 75ch; }
.article + .article { margin-block-start: 1.1rem; }

/* Lifecycle actions: each action that needs a reason opens its own small form; no script needed. */
.action-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.action-details, .confirm-details { position: relative; }
.action-details > summary, .confirm-details > summary { list-style: none; cursor: pointer; }
.action-details > summary::-webkit-details-marker, .confirm-details > summary::-webkit-details-marker { display: none; }
.action-details[open] > form { margin-block-start: 0.6rem; padding: 0.9rem 1rem; min-width: min(22rem, 80vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.confirm-details { display: inline-block; }
.confirm-details[open] > form { position: absolute; inset-inline-end: 0; z-index: 5; margin-block-start: 0.35rem; padding: 0.8rem 1rem; width: 16rem; text-align: start; white-space: normal; background: var(--paper); border: 1px solid #f4c6c9; border-radius: var(--radius-panel); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }

.check-list { display: grid; gap: 0.35rem; max-height: 14rem; overflow-y: auto; padding: 0.4rem 0.2rem; }
.check-list-inline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; max-height: none; overflow: visible; }
.coverage-table td:not(:first-child), .coverage-table th:not(:first-child) { text-align: center; width: 6.5rem; }

/* Clause library */
.clause-editor { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .clause-editor { grid-template-columns: minmax(0, 1fr); } }
.clause-editor .form-panel { max-width: none; }
.clause-body { line-height: 1.7; }
.placeholder-list { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.55rem; }
.placeholder-chip { background: var(--tint); border: 1px solid var(--tint-strong); color: var(--brand-deep); border-radius: var(--radius-control); padding: 0.1rem 0.55rem; font-size: 0.8125rem; cursor: pointer; }
.placeholder-chip:hover { background: var(--tint-strong); }
.clause-table .col-order { width: 4rem; text-align: center; }
.order-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.clause-preview { max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.articles + .article { margin-block-start: 1.1rem; }

/* ==========================================================================
   After-sales requests (Phase 3)
   ========================================================================== */

/* Small helpers */
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-block-start: 0.25rem; }
.subhead { font-size: 0.95rem; margin: 1.1rem 0 0.5rem; color: var(--ink-soft); }
.text-important { color: var(--red); }
.text-signed { color: var(--brand); }
.stack-form { display: grid; gap: 0.75rem; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.field-grid-tight { column-gap: 0.6rem; }
.btn.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-lg { padding-block: 0.7rem; padding-inline: 1.4rem; font-size: 1.05rem; }

/* Status stepper: the eleven steps of the path, current one emphasised. It scrolls on its own, never the page. */
.stepper { display: flex; gap: 0; list-style: none; margin: 0 0 1.25rem; padding: 0.9rem 0.5rem 0.6rem; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.step { flex: 1 0 5.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; position: relative; text-align: center; color: var(--ink-soft); }
.step::before { content: ""; position: absolute; inset-block-start: 0.95rem; inset-inline: 50% -50%; height: 2px; background: var(--line); z-index: 0; }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--brand); }
.step-dot { position: relative; z-index: 1; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 2px solid var(--line); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-current .step-dot { border-color: var(--brand); color: var(--brand-deep); box-shadow: 0 0 0 4px var(--tint-strong); }
.step-label { font-size: 0.78rem; line-height: 1.35; padding-inline: 0.2rem; }
.step.is-current .step-label { color: var(--brand-deep); font-weight: 600; }

/* Next-step actions and what still blocks them */
.step-panel { margin-block-end: 1.25rem; }
.step-action { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; max-width: 22rem; }
.blockers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; font-size: 0.8125rem; color: var(--amber-text); }
.blockers i { margin-inline-end: 0.15rem; }

/* Detail page: work on the left in LTR / right in RTL, history beside it */
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .request-grid { grid-template-columns: minmax(0, 1fr); } }

/* Interventions inside a request */
.intervention-list { display: grid; gap: 0.9rem; }
.intervention { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 0.85rem 1rem; background: #fafbfe; }
.intervention header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block-end: 0.25rem; }
.intervention p { margin: 0.5rem 0 0; }
.intervention.is-cancelled { opacity: 0.65; }
.intervention.is-cancelled header strong { text-decoration: line-through; }
.intervention-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-block-start: 0.6rem; }

/* Comments and timeline */
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.comment-list li { padding-block-end: 0.75rem; border-block-end: 1px solid var(--line); }
.comment-list li:last-child { border-block-end: 0; padding-block-end: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.timeline li { position: relative; padding-inline-start: 1.4rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0.2rem; inset-block-start: 0.55rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: calc(0.2rem + 0.3rem - 1px); inset-block-start: 1.3rem; inset-block-end: -1.1rem; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

/* New / edit request: form with the live warranty and contract card beside it */
.request-form { display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 20rem); gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .request-form { grid-template-columns: minmax(0, 1fr); } }
.context-panel-wrap { position: sticky; inset-block-start: 1rem; }
@media (max-width: 1000px) { .context-panel-wrap { position: static; } }
.context-card .panel-title { margin-block-end: 0.6rem; }
.context-warranty { margin-block-end: 0.6rem; }
.context-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* Technician "my work": one large card per visit, big touch targets */
.work-list { display: grid; gap: 1rem; max-width: 40rem; }
.work-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1rem 1.15rem; }
.work-card.is-running { border-inline-start: 6px solid var(--amber); }
.work-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.work-card h2 { font-size: 1.2rem; margin: 0.5rem 0 0.15rem; }
.work-number { font-weight: 600; color: var(--ink-soft); }
.work-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-block-start: 0.5rem; }
.complete-box { background: var(--tint); border: 1px solid var(--tint-strong); border-radius: var(--radius-control); padding: 0.9rem 1rem; margin-block-start: 1rem; }
.part-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }

/* Technician profile */
.workload { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-block-end: 1.25rem; }
.workload-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.workload-item strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.workload-item span { font-size: 0.8125rem; color: var(--ink-soft); }
.time-off { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-control); }
.time-off.is-current { background: #fdeed8; }

/* ==========================================================================
   Planning and the cash desk (Phase 4)
   ========================================================================== */

/* ---- Cash desk */
.payment-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; margin-block-end: 1.25rem; }
.payment-total { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 0.85rem 1.1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.payment-total span { font-size: 0.8125rem; color: var(--ink-soft); }
.payment-total strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.payment-total small { color: var(--ink-soft); }
.payment-total.is-received { border-inline-start: 5px solid var(--brand); }
.payment-total.is-received strong { color: var(--brand-deep); }
.payment-total.is-voided { border-inline-start: 5px solid var(--grey); }
.payment-total.is-voided strong { color: var(--ink-soft); }
.cell-amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
tr.is-voided .cell-amount, dd.is-voided { text-decoration: line-through; color: var(--ink-soft); }
/* text-decoration does not reach inline-block children, and the number wrapper is one */
tr.is-voided .cell-amount bdi, dd.is-voided bdi, .payment-line.is-voided strong bdi { text-decoration: line-through; }
.notice.is-voided { background: #eceff6; border-color: #d5dbe8; }
.notice.is-voided i { color: var(--grey); }
.notice.is-billable { background: #fdeed8; border-color: #f2d9a8; align-items: center; }
.notice.is-billable i { color: var(--amber); margin-block-start: 0; }
.notice.is-billable > span { flex: 1 1 auto; }
.panel-foot { padding: 0.75rem 1.25rem; border-block-start: 1px solid var(--line); background: #fafbfe; }
.payment-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.payment-line.is-voided strong { text-decoration: line-through; color: var(--ink-soft); }
.form-text.is-warn { color: var(--amber-text); }

/* ---- Planner: technicians as rows, days as columns; scrolls inside its own panel, never the page */
.planner-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block-end: 1rem; }
.planner-range { margin-inline-start: 0.5rem; font-variant-numeric: tabular-nums; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.planner-queue .plain-list { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 1.5rem; }
.planner { width: 100%; min-width: 64rem; border-collapse: collapse; table-layout: fixed; }
.planner th, .planner td { border: 1px solid var(--line); vertical-align: top; padding: 0.4rem 0.45rem; }
.planner thead th { background: #f6f8fd; font-weight: 600; text-align: center; font-size: 0.875rem; }
.planner thead th span { display: block; }
.planner thead th.is-today { background: var(--tint); color: var(--brand-deep); }
.planner thead th.is-weekend { color: var(--ink-soft); }
.planner .planner-who { width: 9.5rem; text-align: start; background: #fafbfe; font-weight: 500; position: sticky; inset-inline-start: 0; z-index: 1; }
.planner .planner-who .status { margin-block-start: 0.25rem; }
.planner-cell { min-height: 4.5rem; height: 4.5rem; }
.planner-cell.is-today { background: #f2f6fd; }
.planner-cell.is-rest { background: repeating-linear-gradient(135deg, #f3f5fa, #f3f5fa 6px, #eceff6 6px, #eceff6 12px); }
.planner-cell.is-off { background: #fdf3e0; }
.planner-off { display: block; font-size: 0.75rem; color: var(--amber-text); margin-block-end: 0.3rem; }
.visit { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--tint-strong); border-inline-start: 4px solid var(--brand); border-radius: 4px; padding: 0.25rem 0.4rem; margin-block-end: 0.3rem; font-size: 0.8125rem; line-height: 1.4; }
.visit:hover { background: var(--tint); }
.visit.is-running { border-inline-start-color: var(--amber); }
.visit.is-done { border-inline-start-color: var(--grey); color: var(--ink-soft); background: #f6f8fd; }
.visit.is-conflict { border-color: #eeb9bd; border-inline-start-color: var(--red); background: #fdecee; }
.visit-time { display: flex; align-items: center; gap: 0.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.visit-time bdi { white-space: nowrap; }
.visit-client { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-number { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.text-conflict { color: var(--red); }
.text-hours { color: var(--amber-text); }
.planner-queue .panel-title { margin-block-end: 0.6rem; }
.queue-item { padding-block: 0.6rem; border-block-end: 1px solid var(--line); }
.queue-item:last-child { border-block-end: 0; }

/* ---- Live check under the plan form */
.plan-check { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 0.6rem 0.85rem; margin-block-end: 1.1rem; background: #fafbfe; }
.plan-check.is-clear { color: var(--brand-deep); background: var(--tint); border-color: var(--tint-strong); }
.plan-check-item { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-check-item + .plan-check-item { margin-block-start: 0.4rem; }
.plan-check-item i { color: var(--amber); margin-block-start: 0.2rem; }
.plan-check-item.is-conflict i { color: var(--red); }
.plan-check:has(.is-conflict) { background: #fdecee; border-color: #eeb9bd; }

/* ---- Weekly hours editor */
.weekly-hours { gap: 0.5rem; margin-block-end: 0.9rem; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem; gap: 0.6rem; align-items: center; }
@media (max-width: 520px) { .hours-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hours-row > .form-check { grid-column: 1 / -1; } }

/* ==========================================================================
   Quality: surveys, questionnaire designer, suggestions (Phase 5)
   ========================================================================== */

/* ---- The questions of a survey: one card per question, big targets so it works with a thumb */
.survey-section { margin-block-end: 1.5rem; }
.survey-section-title { font-size: 1.05rem; margin: 0 0 0.75rem; padding-block-end: 0.4rem; border-block-end: 2px solid var(--tint-strong); color: var(--brand-deep); }
.survey-question { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
.survey-q-text { font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.6; margin-block-end: 0.5rem; padding: 0; float: none; width: auto; }
.required-mark { color: var(--red); font-weight: 700; margin-inline-start: 0.2rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-group.is-stacked { flex-direction: column; align-items: stretch; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); min-height: 2.75rem; }
.choice-group.is-stacked .choice { border-radius: var(--radius-control); }
.choice:hover { background: var(--tint); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--tint); color: var(--brand-deep); font-weight: 600; }
.choice input { accent-color: var(--brand); width: 1.15rem; height: 1.15rem; margin: 0; }
.rating-scale { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.rating-choice { position: relative; display: inline-flex; cursor: pointer; }
.rating-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating-choice span { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rating-choice:hover span { background: var(--tint); }
.rating-choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.rating-choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.rating-ends { display: flex; justify-content: space-between; max-width: 20rem; font-size: 0.8125rem; color: var(--ink-soft); margin-block-start: 0.25rem; }

/* ---- Scores, notices, links */
.score { display: inline-flex; align-items: center; padding: 0.05rem 0.55rem; border-radius: 999px; background: #e2f5ea; color: #17663c; font-weight: 600; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.score.is-low { background: #fde6e7; color: #a8232c; }
.notice.is-low { background: #fde6e7; border-color: #f0c0c4; }
.notice.is-low i { color: var(--red); }
.tag.is-complaint { background: #fde6e7; color: #a8232c; }
.tag.is-required { background: #fdeed8; color: var(--amber-text); }
.link-box { border-inline-start: 5px solid var(--brand); margin-block-end: 1.25rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.link-row input { flex: 1 1 18rem; min-width: 0; }
.qa { margin: 0; display: grid; gap: 0.15rem; }
.qa dt { color: var(--ink-soft); font-weight: 500; margin-block-start: 0.7rem; }
.qa dt:first-child { margin-block-start: 0; }
.qa dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stack-form-plain { display: grid; gap: 0.6rem; }

/* ---- The designer */
.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: q; }
.question-item { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 0.75rem 1rem; background: #fafbfe; counter-increment: q; }
.question-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.question-head::before { content: counter(q); display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.question-text { font-weight: 500; flex: 1 1 14rem; }
.option-list { margin: 0.4rem 0 0; padding-inline-start: 2.6rem; color: var(--ink-soft); font-size: 0.875rem; }
.question-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.25rem; margin-block-start: 0.5rem; }

/* ---- The client's own page: nothing but the questions, readable on any phone */
.public-shell { max-width: 38rem; margin-inline: auto; padding: 1.5rem 1rem 3rem; }
.public-head { text-align: center; margin-block-end: 1.5rem; }
.public-head h1 { font-size: 1.6rem; margin: 0.4rem 0 0.75rem; }
.public-brand { font-family: var(--font-display); color: var(--brand-deep); font-weight: 700; }
.public-lead { color: var(--ink-soft); margin: 0 0 0.4rem; }
.public-ticket { font-size: 0.875rem; color: var(--ink-soft); }
.public-shell .survey-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1rem 1.15rem 0.25rem; }
.public-message { text-align: center; padding-block: 4rem; }
.public-message > i { display: block; font-size: 3rem; color: var(--brand); margin-block-end: 0.5rem; }
.public-message h1 { font-size: 1.5rem; margin: 0.5rem 0; }
.public-decline { text-align: center; margin-block-start: 1.25rem; }
.public-decline .btn-link { color: var(--ink-soft); }

/* ==========================================================================
   Dashboard (Phase 6): figures that open the lists they count
   ========================================================================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin-block-end: 1.25rem; }
.kpi-card { --tone: var(--brand); --tone-bg: var(--tint); display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon body" "go go"; gap: 0.5rem 0.9rem; align-items: center; padding: 1.1rem 1.2rem 0.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.kpi-card:hover { border-color: var(--tone); transform: translateY(-2px); color: var(--ink); }
.kpi-card.is-orange { --tone: var(--amber); --tone-bg: #fdeed8; }
.kpi-card.is-red { --tone: var(--red); --tone-bg: #fde6e7; }
.kpi-card.is-green { --tone: var(--green); --tone-bg: #e2f5ea; }
.kpi-card.is-purple { --tone: #6f5bd1; --tone-bg: #ece9fb; }
.kpi-card.is-grey { --tone: var(--grey); --tone-bg: #eceff6; }
.kpi-icon { grid-area: icon; display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: 14px; background: var(--tone-bg); color: var(--tone); font-size: 1.5rem; }
.kpi-body { grid-area: body; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.kpi-count { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-label { color: var(--ink-soft); font-size: 0.9rem; }
.kpi-sub { color: var(--tone); font-weight: 600; font-size: 0.8125rem; }
.kpi-go { grid-area: go; color: var(--brand-deep); font-size: 0.8125rem; font-weight: 500; }
.kpi-go i { font-size: 0.8rem; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; margin-block-end: 1.25rem; align-items: start; }
@media (max-width: 992px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-grid .panel-title i { color: var(--brand); margin-inline-end: 0.3rem; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.8rem 1.25rem; border-block-start: 1px solid var(--line); }
.recent-list li:first-child { border-block-start: 0; }
.recent-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; min-width: 0; }
.recent-main .cell-muted { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-side { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }

.donut-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.25rem; }
.donut-wrap { position: relative; width: 10.5rem; height: 10.5rem; flex: 0 0 auto; }
.donut { width: 100%; height: 100%; transform: rotate(0deg); }
.donut-track { stroke: #eaeff8; }
.donut-arc { stroke: var(--grey); }
.donut-arc.is-urgent, .dot.is-urgent { stroke: var(--red); background: var(--red); }
.donut-arc.is-high, .dot.is-high { stroke: var(--amber); background: var(--amber); }
.donut-arc.is-normal, .dot.is-normal { stroke: var(--brand); background: var(--brand); }
.donut-arc.is-low, .dot.is-low { stroke: #9aa7c2; background: #9aa7c2; }
.donut-total { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.donut-total strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.donut-total span { color: var(--ink-soft); font-size: 0.8125rem; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; min-width: 11rem; width: 100%; max-width: 15rem; }
.legend a { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.legend a:hover { background: var(--tint); }
.legend .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: 0 0 auto; }
.legend strong { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.trend-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); padding: 1rem 1.2rem 0.8rem; }
.trend-head { display: flex; align-items: center; gap: 0.7rem; }
.trend-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--tint); color: var(--brand); font-size: 1.15rem; }
.trend-label { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.trend-label small { color: var(--ink-soft); font-weight: 400; font-size: 0.75rem; }
.trend-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin-block: 0.6rem 0.2rem; }
.trend-figure strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.trend-change { font-size: 0.8125rem; font-weight: 600; }
.trend-change.is-up { color: var(--green); }
.trend-change.is-down { color: var(--red); }
.spark { display: block; width: 100%; height: 2.4rem; }
.spark-line { stroke: var(--brand); }
.trend-note { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.75rem; }

/* ==========================================================================
   Search (Phase 6)
   ========================================================================== */
.topbar-search > i { position: absolute; inset-inline-start: 0.85rem; color: var(--ink-soft); pointer-events: none; }
.topbar-search-input { width: 100%; height: 2.5rem; padding-inline: 2.4rem 4rem; background: #f3f6fc; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9rem; }
.topbar-search-input:focus { outline: none; background: var(--paper); border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(29, 111, 232, 0.18); }
.topbar-search-key { position: absolute; inset-inline-end: 0.8rem; padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-family: inherit; font-size: 0.7rem; pointer-events: none; }
.search-quick { position: absolute; inset-block-start: calc(100% + 0.4rem); inset-inline: 0; z-index: 1030; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 29, 71, 0.16); max-height: 70vh; overflow-y: auto; }
.search-quick:empty { display: none; }
.quick-group { padding: 0.6rem 0.6rem 0.2rem; }
.quick-group + .quick-group { border-block-start: 1px solid var(--line); }
.quick-group-title { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.5rem 0.25rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.quick-group ul { list-style: none; margin: 0; padding: 0; }
.quick-group a, .search-hits a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; padding: 0.5rem 0.6rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.quick-group a:hover, .search-hits a:hover, .quick-group a:focus-visible { background: var(--tint); }
.hit-title { font-weight: 600; }
.hit-sub { color: var(--ink-soft); font-size: 0.875rem; }
.quick-all { display: block; padding: 0.7rem 1rem; border-block-start: 1px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
.quick-empty { padding: 1rem; color: var(--ink-soft); text-align: center; }

.search-page-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-end: 1.25rem; }
.search-field { position: relative; flex: 1 1 22rem; }
.search-field > i { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-field .form-control { padding-inline-start: 2.8rem; border-radius: 999px; }
.search-group .panel-title i { color: var(--brand); margin-inline-end: 0.3rem; }
.search-hits { list-style: none; margin: 0; padding: 0.4rem 0.6rem 0.6rem; }
.search-hits li + li { border-block-start: 1px solid var(--line); }

/* ==========================================================================
   Notifications (Phase 6)
   ========================================================================== */
.notify-menu { position: relative; }
.bell-count { position: absolute; inset-block-start: -0.3rem; inset-inline-end: -0.3rem; min-width: 1.2rem; height: 1.2rem; padding-inline: 0.28rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1.2rem; text-align: center; border: 2px solid var(--paper); box-sizing: content-box; }
.notify-menu .dropdown-menu { inset-block-start: calc(100% + 0.4rem); inset-inline-end: 0; inset-inline-start: auto; width: min(24rem, 92vw); padding: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 29, 71, 0.16); overflow: hidden; }
.notify-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 1rem; border-block-end: 1px solid var(--line); }
.notify-head form { margin: 0; }
.notify-empty { margin: 0; padding: 1.4rem 1rem; text-align: center; color: var(--ink-soft); }
.notify-all { display: block; padding: 0.7rem 1rem; border-block-start: 1px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
.notice-item { margin: 0; }
.notice-item button { display: flex; align-items: flex-start; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; background: transparent; border: 0; border-block-end: 1px solid var(--line); text-align: start; color: var(--ink); }
.notice-item button:hover { background: var(--tint); }
.notice-item.is-unread button { background: #f5f9ff; }
.notice-dot { flex: 0 0 auto; width: 0.6rem; height: 0.6rem; margin-block-start: 0.45rem; border-radius: 50%; background: transparent; }
.is-unread .notice-dot { background: var(--brand); }
.notice-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.notice-text strong { font-weight: 600; font-size: 0.9rem; }
.notice-text small { color: var(--ink-soft); font-size: 0.8125rem; overflow-wrap: anywhere; }
.notice-time { flex: 0 0 auto; color: var(--ink-soft); font-size: 0.75rem; white-space: nowrap; }
.notice-list { overflow: hidden; }
.notice-list .notice-item:last-child button { border-block-end: 0; }
@media (max-width: 575.98px) {
  /* On a phone the panel spans the top bar instead of hanging off the bell, which sits near the screen's edge. */
  .notify-menu { position: static; }
  .notify-menu .dropdown-menu { inset-inline: 0.5rem; inset-block-start: calc(100% + 0.25rem); width: auto; }
}

/* ==========================================================================
   Forms in a dialog: the same views as the full pages, drawn without the page chrome
   ========================================================================== */
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 29, 71, 0.28); }
.modal-header { border-block-end: 1px solid var(--line); padding: 1rem 1.4rem; }
.modal-title { font-size: 1.2rem; margin: 0; }
.modal-body { padding: 1.25rem 1.4rem 0.5rem; }
.modal-footer { border-block-start: 1px solid var(--line); }
.modal-backdrop.show { --bs-backdrop-opacity: 0.45; }
[data-modal-body] > .breadcrumb-back, [data-modal-body] .form-panel > .breadcrumb-back { display: none; }
/* The title is already in the dialog's header; only the page's own action buttons (e.g. "reset password") stay, as a row above the form. */
[data-modal-body] > .page-header { display: block; margin: 0; }
[data-modal-body] > .page-header > :not(.page-actions) { display: none; }
[data-modal-body] > .page-header > .page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-block-end: 0.85rem; }
[data-modal-body] .form-panel, [data-modal-body] .form-panel-wide { max-width: none; }
[data-modal-body] .panel { box-shadow: none; }
[data-modal-body] .request-form, [data-modal-body] .clause-editor { grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); }
@media (max-width: 991.98px) { [data-modal-body] .request-form, [data-modal-body] .clause-editor { grid-template-columns: minmax(0, 1fr); } }
[data-modal-body] .context-panel-wrap { position: static; }
/* The buttons stay in view however long the form is. */
[data-modal-body] .form-actions { position: sticky; inset-block-end: 0; z-index: 2; margin-inline: -1.4rem; padding: 0.85rem 1.4rem; background: var(--paper); border-block-start: 1px solid var(--line); }
[data-modal-body] .filter-strip { box-shadow: none; }
@media (max-width: 575.98px) {
  .modal-body { padding-inline: 1rem; }
  [data-modal-body] .form-actions { margin-inline: -1rem; padding-inline: 1rem; }
}

/* ---- Guided tour: a floating "?" button, a dimming backdrop and a card next to the highlighted element. ---- */
.tour-fab {
  position: fixed; inset-inline-end: 1.25rem; inset-block-end: 1.25rem; z-index: 1045;
  width: 3rem; height: 3rem; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; font-size: 1.15rem; box-shadow: 0 6px 18px rgba(16, 29, 71, 0.28);
}
.tour-fab:hover, .tour-fab:focus-visible { background: var(--brand-deep); }
.tour-backdrop { position: fixed; inset: 0; z-index: 1046; background: rgba(10, 16, 36, 0.55); }
.tour-target { position: relative; z-index: 1047; outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-control); background: var(--paper); }
.tour-card {
  position: fixed; z-index: 1048; width: min(22rem, calc(100vw - 2rem));
  background: var(--paper); border-radius: var(--radius-panel); box-shadow: 0 16px 40px rgba(16, 29, 71, 0.3);
  padding: 1rem 1.1rem;
}
.tour-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.tour-card-head strong { font-size: 1.05rem; }
.tour-card p { margin: 0.5rem 0 0.85rem; color: var(--ink-soft); }
.tour-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tour-card-step { color: var(--ink-soft); font-size: 0.85rem; }
.tour-card-buttons { display: flex; gap: 0.5rem; }
@media (max-width: 575.98px) {
  .tour-fab { inset-inline-end: 1rem; inset-block-end: 1rem; }
}

/* ---- Searchable combo (Activity, Specialty…): type to filter, or add the typed value on the spot. ---- */
.combo { position: relative; }
.combo-list {
  position: absolute; inset-block-start: calc(100% + 0.3rem); inset-inline: 0; z-index: 20; margin: 0; padding: 0.3rem;
  list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control);
  box-shadow: 0 12px 30px rgba(16, 29, 71, 0.16); max-height: 14rem; overflow-y: auto;
}
.combo-list li { padding: 0.45rem 0.6rem; border-radius: 8px; cursor: pointer; color: var(--ink); }
.combo-list li:hover, .combo-list li.is-active { background: var(--tint); }
.combo-list li[data-combo-add] { color: var(--brand-deep); font-weight: 500; border-block-start: 1px solid var(--line); margin-block-start: 0.2rem; padding-block-start: 0.55rem; }
