/* ==========================================================================
   HRMS — design system
   Light admin theme: white sidebar with grouped sections, floating top bar,
   royal-blue accent, soft white cards, tinted badges and icon chips.

   Ported from design/mockups/assets/app.css. Selectors are the mockups' own,
   so a screen built from a mockup needs no markup changes, with these
   exceptions where a mockup name collides with Bootstrap, which the module
   screens still use:

     mockup .row  ->  .hstack    (Bootstrap's .row is the form grid)
     mockup .col  ->  .kb-col    (Bootstrap's .col is a grid column)
     mockup .btn  ->  unchanged, but not applied to a .btn carrying one of
                      Bootstrap's or the app's colour variants (btn-theme,
                      btn-outline, btn-icon …), which are drawn further down.

   Plus Jakarta Sans is linked from the layout head, not @imported here.
   ========================================================================== */

:root {
  --primaryColor: #2d5bf0;
  --primary-600:  #2449cf;
  --primary-soft: #eef2fe;
  --primary-line: #c9d5fc;

  /* Older names, kept so inline styles in the screens still resolve. */
  --navy:        #2d5bf0;
  --navy-600:    #2449cf;
  --navy-400:    #5b82f5;
  --sky:         #0ea5e9;

  --bg:          #f4f6fa;
  --card:        #ffffff;
  --border:      #eef0f4;
  --border-2:    #e5e8ee;

  --head:        #111827;
  --title:       #111827;
  --text:        #4b5563;
  --muted:       #8a94a6;
  --faint:       #b8c0cc;
  --th:          #374151;
  --label:       #374151;

  --green:       #16a34a;
  --red:         #ef4444;
  --amber:       #f59e0b;
  --blue:        #2d5bf0;
  --purple:      #7c5cff;
  --inverse:     #4b5563;
  --grey:        #6b7280;

  --green-bg:    #e8f7ee;
  --red-bg:      #fdecec;
  --amber-bg:    #fef4e2;
  --blue-bg:     #eef2fe;
  --purple-bg:   #f0edff;
  --slate-bg:    #eef1f6;

  --rail:        250px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 1px 2px rgba(16,24,40,.04);
  --shadow-pop:  0 12px 32px -4px rgba(16,24,40,.14), 0 2px 6px rgba(16,24,40,.06);
  --font:        'Plus Jakarta Sans', 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 13.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4,h5,h6 { margin: 0; font-family: inherit; font-weight: 600; line-height: 1.25; color: var(--head); }
a { color: var(--primaryColor); text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
::selection { background: #c9d5fc; text-shadow: none; }
* { outline: none; }

/* ----------------------------------------------------------------- sidebar */

.app-nav {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 1009;
  width: var(--rail);
  display: flex; flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
}

.app-nav .navbar-brand {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 22px 22px 18px;
  color: var(--head);
}
.app-nav .navbar-brand .logo-full { display: block; height: 36px; width: auto; }
.app-nav .navbar-brand .mark { display: none; width: 38px; height: 38px; }

.app-nav .main-nav-wrap {
  flex: 1 1 auto; min-height: 0;
  padding: 4px 14px 24px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #e3e7ee transparent;
}

.app-nav .nav-section {
  margin: 18px 10px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primaryColor);
}
.app-nav .nav-section:first-child { margin-top: 4px; }

.app-nav .nav-link {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 2px; padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #374151; font-size: 13.5px; font-weight: 500; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.app-nav .nav-link i { width: 18px; font-size: 14px; text-align: center; color: #6b7280; transition: color .15s ease; }
.app-nav .nav-link span { flex: 1 1 auto; }
.app-nav .nav-link .chev { width: auto; font-size: 10px; color: #9ca3af; transition: transform .2s ease; }
.app-nav .nav-link:hover { background: var(--bg); color: var(--head); }
.app-nav .nav-link:hover i { color: var(--primaryColor); }
.app-nav .nav-link.active {
  background: var(--primaryColor); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(45,91,240,.6);
}
.app-nav .nav-link.active i, .app-nav .nav-link.active .chev { color: #fff; }
.app-nav .nav-group.open > .nav-link .chev { transform: rotate(90deg); }
.app-nav .nav-link .count {
  flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}

.app-nav .nav-sub { display: none; padding: 2px 0 8px 32px; position: relative; }
.app-nav .nav-sub::before {
  content: ""; position: absolute; left: 21px; top: 4px; bottom: 10px; width: 1px; background: var(--border-2);
}
.app-nav .nav-group.open > .nav-sub { display: block; }
.app-nav .nav-sub a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  color: #6b7280; font-size: 13px; font-weight: 500;
}
.app-nav .nav-sub a i { width: 15px; font-size: 12px; text-align: center; color: #9ca3af; transition: color .15s ease; }
.app-nav .nav-sub a:hover { color: var(--primaryColor); background: var(--bg); }
.app-nav .nav-sub a:hover i { color: var(--primaryColor); }
.app-nav .nav-sub a.active { color: var(--primaryColor); font-weight: 600; background: var(--primary-soft); }
.app-nav .nav-sub a.active i { color: var(--primaryColor); }

/* ------------------------------------------------------------ content wrap */

.app-content-wrap {
  margin-left: var(--rail);
  min-height: 100vh;
  background-color: var(--bg);
  transition: margin-left .2s ease;
}

/* floating top bar */
.topbar-wrap {
  position: sticky; top: 0; z-index: 900;
  padding: 16px 24px 0;
  background: var(--bg);
}
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.topbar .spacer { flex: 1 1 auto; }
.topbar .tb-search { position: relative; width: 300px; max-width: 40vw; }
.topbar .tb-search i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: #9ca3af; pointer-events: none;
}
.topbar .tb-search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px;
  font: 400 13px var(--font); color: var(--head);
  background: #f8f9fc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.topbar .tb-search input::placeholder { color: #9ca3af; }
.topbar .tb-search input:focus { border-color: var(--primaryColor); box-shadow: 0 0 0 3px rgba(45,91,240,.12); background: #fff; }

.tb-ico {
  position: relative; flex: 0 0 auto;
  width: 38px; height: 38px; border: 0; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #6b7280; font-size: 16px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tb-ico:hover { background: var(--bg); color: var(--primaryColor); }
.tb-ico .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff;
}
.tb-sep { width: 1px; height: 26px; background: var(--border); margin: 0 4px; }

.app-nav-toggler {
  width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: var(--radius-sm);
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  background: transparent; cursor: pointer;
}
.app-nav-toggler:hover { background: var(--bg); }
.app-nav-toggler span { display: block; height: 2px; background: #6b7280; border-radius: 2px; }

/* account menu */
.dropdown-menu {
  display: none; position: absolute; z-index: 1100;
  min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-pop);
}
.dropdown-menu.show { display: block; }
.dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  color: #374151; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.dropdown-menu .dropdown-item i { width: 18px; font-size: 14px; text-align: center; color: #6b7280; }
.dropdown-menu .dropdown-item:hover { background: var(--bg); color: var(--primaryColor); }
.dropdown-menu .dropdown-item:hover i { color: var(--primaryColor); }
.dropdown-menu .dropdown-divider { height: 0; margin: 6px 0; border-top: 1px solid var(--border); }

.user-dropdown { position: relative; }
.user-dropdown > .btn {
  position: relative;
  width: 38px; height: 38px; min-height: 0; padding: 0; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #5b82f5, #2d5bf0); color: #fff;
  font: 700 15px/38px var(--font); cursor: pointer;
}
.user-dropdown > .btn::before {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background-color: #22c55e; border: 2px solid #fff;
}
.user-dropdown > .dropdown-menu { right: 0; top: 48px; width: 240px; }
.user-dropdown .user-info { gap: 10px; padding: 8px 10px 10px; }
.user-dropdown .user-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primaryColor); color: #fff; font-size: 15px; font-weight: 700;
}
.user-dropdown .user-ac-info h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--head); }
.user-dropdown .user-ac-info p { margin: 0; font-size: 12px; color: var(--muted); }

/* page title and breadcrumb */
.page-head { padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ph-main { min-width: 0; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--head); }
.ph-title { display: flex; align-items: center; gap: 10px; }
.ph-back { flex: none; margin-top: 2px; white-space: nowrap; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.crumb a, .crumb .c { color: var(--primaryColor); font-weight: 500; }
.crumb .sep { color: #c3c9d4; }

/* the old floating chat button: chat now opens from the top bar */
.fab-chat, .chat-toggle { display: none !important; }

.page { padding: 0 24px 40px; }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-head {
  padding: 16px 20px 12px;
  display: flex; align-items: center; gap: 12px;
}
.card-head > :first-child { flex: 1 1 auto; min-width: 0; }
.card-head h2 { font-size: 15px; font-weight: 600; color: var(--head); flex: 1 1 auto; }
.card-head h2 i { margin-right: 4px; }
.card-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.card-body { padding: 8px 20px 20px; }
.card-body.tight { padding: 0; }
.card-foot {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

/* ------------------------------------------------------------------- grids */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0,1fr) 340px; }
.g-side { grid-template-columns: 300px minmax(0,1fr); }
@media (max-width: 1280px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3, .g-main, .g-side { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .g2, .g4 { grid-template-columns: minmax(0,1fr); }
}

/* ------------------------------------------------------------------- stats
   gradient-filled KPI cards; two translucent circles sit behind the content.
   default = blue, .red = peach→pink, .green = mint→teal, .amber, .purple */

.stat {
  --g1: #90caf9; --g2: #047edf;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(to right, var(--g1), var(--g2));
  border: none; border-radius: var(--radius);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--g2) 60%, transparent);
  padding: 22px 22px 20px;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--g2) 70%, transparent); }
.stat::before, .stat::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  background: rgba(255,255,255,.15); pointer-events: none;
}
.stat::before { width: 190px; height: 190px; top: -60px; right: -75px; }
.stat::after  { width: 210px; height: 210px; bottom: -125px; right: -10px; }
.stat.red    { --g1: #ffbf96; --g2: #fe7096; }
.stat.green  { --g1: #84d9d2; --g2: #07cdae; }
.stat.amber  { --g1: #fcd07a; --g2: #f59e0b; }
.stat.purple { --g1: #da8cff; --g2: #9a55ff; }

.stat h3 { margin: 2px 0 12px; font-size: 14.5px; font-weight: 600; color: #fff; padding-right: 44px; }
.stat .n { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.stat .cap { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.92); }
.stat .ghost {
  position: absolute; right: 22px; top: 22px;
  font-size: 20px; color: rgba(255,255,255,.92);
}
.stat .bar { height: 4px; margin-top: 14px; background: rgba(255,255,255,.3); border-radius: 4px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
a.stat, a.stat:hover { color: #fff; display: block; }   /* a card that opens its screen (the dashboard) */

/* ------------------------------------------------------------------ tables */

.t-wrap { overflow-x: auto; background: #fff; padding: 0 12px 8px; border-radius: 0 0 var(--radius) var(--radius); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
table.tbl th {
  padding: 11px 12px;
  text-align: left; vertical-align: middle; white-space: nowrap;
  font-size: 12.5px; font-weight: 600;
  color: var(--th); background: #f6f7fb;
  border: none;
}
table.tbl th:first-child { border-radius: 8px 0 0 8px; }
table.tbl th:last-child  { border-radius: 0 8px 8px 0; }
table.tbl td {
  padding: 12px;
  background-color: #fff;
  border-bottom: 1px solid #f0f2f6;
  vertical-align: middle; font-size: 13px; color: #374151;
  transition: background-color .12s ease;
}
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover td { background: #fafbfd; }
/* a row's open arrow stays in view while a wide table scrolls sideways; the
   12px white shadow covers .t-wrap's padding so scrolled cells don't show past it */
table.tbl td:last-child:has(> a.ico-btn:only-child) { position: sticky; right: 0; z-index: 1; box-shadow: -12px 0 12px -12px rgba(16,24,40,.12), 12px 0 0 #fff; }
table.tbl:has(td:last-child > a.ico-btn:only-child) thead th:last-child { position: sticky; right: 0; z-index: 1; box-shadow: 12px 0 0 #fff; }
table.tbl tr.rc-off > td:last-child:has(> a.ico-btn:only-child) { opacity: 1; }
table.tbl tr.rc-off > td:last-child > a.ico-btn:only-child { opacity: .65; }
table.tbl td .who { display: flex; align-items: center; gap: 10px; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.t-strong { font-weight: 600; color: var(--head); }
.t-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* row actions: one outline button of a steady width, then the open arrow */
table.tbl td .btn.sm { min-width: 92px; }
.acts { display: inline-flex; align-items: center; gap: 8px; }

/* contact channels: tinted round badges (.chans > .chan.call/.wa/.mail/.sms) */
.chans { display: inline-flex; gap: 6px; }
.chan {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-bg); color: var(--primaryColor); font-size: 12px;
}
.chan.wa   { background: #e6f9ee; color: #1fb855; font-size: 14px; }
.chan.mail { background: var(--amber-bg); color: #d97706; }
.chan.sms  { background: var(--purple-bg); color: var(--purple); }

/* a channel named in a table cell ("Zoom", "WhatsApp", "Push") gets its colour */
table.tbl td > i.fa-whatsapp { color: #25d366; }
table.tbl td > i.fa-phone, table.tbl td > i.fa-video { color: var(--primaryColor); }
table.tbl td > i.fa-envelope, table.tbl td > i.fa-bell { color: var(--amber); }
table.tbl td > i.fa-sms { color: var(--purple); }
table.tbl td > i.fa-map-marker { color: var(--red); }
table.tbl td > i { margin-right: 4px; }

/* ---------------------------------------------------------------- avatars */

.av-sm, .av-md {
  border-radius: 50%; background: var(--primaryColor); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; flex: 0 0 auto;
}
.av-sm { width: 30px; height: 30px; font-size: 11.5px; }
.av-md { width: 40px; height: 40px; font-size: 16px; }
.av-sm.c2, .av-md.c2 { background: var(--purple); }
.av-sm.c3, .av-md.c3 { background: var(--sky); }
.av-sm.c4, .av-md.c4 { background: #22c55e; }
.av-sm.c5, .av-md.c5 { background: #ec4899; }
.av-sm.c6, .av-md.c6 { background: var(--amber); }

/* ------------------------------------------------------------------ badges
   soft tinted pills */

.bdg {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; line-height: 1.1; white-space: nowrap;
  background: #f1f3f7; color: #4b5563;
}
.bdg i { font-size: 11px; }
.bdg.green  { background: var(--green-bg);  color: var(--green); }
.bdg.red    { background: var(--red-bg);    color: #dc2626; }
.bdg.amber  { background: var(--amber-bg);  color: #d97706; }
.bdg.blue   { background: var(--blue-bg);   color: var(--primaryColor); }
.bdg.purple { background: var(--purple-bg); color: var(--purple); }
.bdg.solid  { background: var(--red); color: #fff; }
.bdg.dark   { background: var(--primaryColor); color: #fff; }

/* filter chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; min-height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: #fff;
  font: 500 12.5px var(--font); color: #374151; cursor: pointer;
  transition: .15s ease;
}
.chip:hover { border-color: var(--primary-line); color: var(--primaryColor); }
.chip.on { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primaryColor); font-weight: 600; }
.chip .ct { background: #f1f3f7; color: #4b5563; border-radius: 5px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.chip.on .ct { background: var(--primaryColor); color: #fff; }

/* ----------------------------------------------------------------- buttons */

.btn:where(:not(.btn-theme, .btn-primary, .btn-theme-outline, .btn-outline, .btn-default, .btn-white, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-icon, .btn-link, .btn-close, .btn-search, .btn-filter-dropdown, [class*="btn-outline-"])) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 14px; min-height: 34px;
  border: 1px solid var(--primaryColor); border-radius: var(--radius-sm);
  font: 600 12.5px/1.4 var(--font); text-align: center; vertical-align: middle;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  background-color: var(--primaryColor); color: #fff;
  box-shadow: 0 1px 2px rgba(45,91,240,.2);
  transition: .15s ease;
}
.btn > i { font-size: 12.5px; line-height: 1; }
.btn.icon-only { padding: 6px 10px; }
.btn:where(:not(.btn-theme, .btn-primary, .btn-theme-outline, .btn-outline, .btn-default, .btn-white, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-icon, .btn-link, .btn-close, .btn-search, .btn-filter-dropdown, [class*="btn-outline-"])):hover, .btn:where(:not(.btn-theme, .btn-primary, .btn-theme-outline, .btn-outline, .btn-default, .btn-white, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-icon, .btn-link, .btn-close, .btn-search, .btn-filter-dropdown, [class*="btn-outline-"])):focus { background-color: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn.ghost { background-color: #fff; border-color: var(--border-2); color: #374151; box-shadow: none; }
.btn.ghost:hover, .btn.ghost:focus { background-color: #f7f9ff; border-color: var(--primary-line); color: var(--primaryColor); }
.btn.ghost > i { color: var(--primaryColor); }
/* icons carry their meaning in outline buttons */
.btn.ghost > .fa-whatsapp { color: #25d366; font-size: 14px; }
.btn.ghost > .fa-file-pdf { color: #e5484d; }
.btn.ghost > .fa-trash, .btn.ghost > .fa-power-off { color: var(--red); }
.btn.ghost > .fa-exclamation-triangle, .btn.ghost > .fa-bell,
.btn.ghost > .fa-calendar-plus, .btn.ghost > .fa-calendar-check,
.btn.ghost > .fa-calendar-alt { color: var(--amber); }
.btn.ghost > .fa-save, .btn.ghost > .fa-check, .btn.ghost > .fa-check-double { color: var(--green); }
.btn.danger { background-color: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.btn.danger:hover { background-color: #dc2626; border-color: #dc2626; }
.btn.ok { background-color: #16a34a; border-color: #16a34a; color: #fff; box-shadow: none; }
.btn.ok:hover { background-color: #15803d; border-color: #15803d; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .6; pointer-events: none; }

.ico-btn {
  width: 30px; height: 30px; padding: 0; border-radius: var(--radius-sm); border: 0;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  transition: .15s ease;
}
.ico-btn:hover { color: var(--primaryColor); background: var(--primary-soft); }

/* open-record arrow at the end of a table row (marked .row-go by shell.js):
   a visible blue chip that fills solid when hovered; the row itself is not a link */
.ico-btn.row-go {
  width: 32px; height: 32px;
  background: var(--primary-soft); color: var(--primaryColor);
  border: 1px solid var(--primary-line);
  font-size: 13px;
}
.ico-btn.row-go:hover, .ico-btn.row-go:focus {
  background: var(--primaryColor); border-color: var(--primaryColor); color: #fff;
  box-shadow: 0 4px 10px -3px rgba(45,91,240,.5);
}
.ico-btn.row-go:hover i { transform: translateX(1px); }
.ico-btn.row-go i { transition: transform .15s ease; }

/* ------------------------------------------------------------------- forms */

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  color: var(--label); font-weight: 500; font-size: 12.5px;
}
.field label .req { color: var(--red); }
.inp, select.inp, textarea.inp {
  display: block; width: 100%; min-height: 38px;
  padding: 7px 12px;
  font: 400 13px/1.5 var(--font); color: var(--head);
  background-color: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.inp {
  -webkit-appearance: none; appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3e%3cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3e%3c/svg%3e");
  background-position: center right 10px; background-repeat: no-repeat; background-size: 16px;
}
.inp::placeholder { color: #9ca3af; }
.inp:focus { border-color: var(--primaryColor); box-shadow: 0 0 0 3px rgba(45,91,240,.12); }
textarea.inp { resize: vertical; min-height: 84px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search i {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 13px; pointer-events: none;
}
.search .inp { height: 36px; min-height: 36px; padding: 5px 12px 5px 34px; font-size: 13px; }

.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 20px;
}
.toolbar .spacer { flex: 1 1 auto; }

.switch {
  width: 2.1em; height: 1.2em; font-size: 18px; border-radius: 2em;
  background: #e5e8ee; border: none;
  position: relative; display: inline-block; flex: 0 0 auto; cursor: pointer;
  transition: background-color .15s ease;
}
.switch::after {
  content: ''; position: absolute; top: .15em; left: .15em;
  width: .9em; height: .9em; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: left .15s ease;
}
.switch.on { background: var(--primaryColor); }
.switch.on::after { left: 1.05em; }

/* -------------------------------------------------------------------- tabs */

.tabs {
  display: flex; gap: 4px; overflow-x: auto;
  border-bottom: 1px solid var(--border); padding: 6px 20px 0;
}
.tabs a {
  position: relative; padding: 8px 12px 11px; white-space: nowrap;
  color: #6b7280; font-size: 13px; font-weight: 500;
}
.tabs a:hover { color: var(--head); }
.tabs a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background-color: var(--primaryColor);
  transform: scaleX(0); transition: transform .2s ease;
}
.tabs a.on { font-weight: 600; color: var(--primaryColor); }
.tabs a.on::before { transform: scaleX(1); }

/* ------------------------------------------------------------------ kanban */

.board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.kb-col {
  flex: 0 0 272px; background: #f7f8fb; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: 640px;
}
.col-head {
  padding: 13px 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--head);
}
.col-head .ct { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; font-size: 11px; color: var(--text); }
.col-head .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--primaryColor); }
.col-body { padding: 0 10px 10px; overflow-y: auto; }
.kcard {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 13px;
  margin-bottom: 10px; box-shadow: var(--shadow);
  border-left: 3px solid var(--primaryColor);
}
.kcard .kt { font-size: 13px; font-weight: 600; color: var(--head); }
.kcard .km { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.kcard .kf { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.kcard.red { border-left-color: var(--red); }
.kcard.green { border-left-color: var(--green); }
.kcard.amber { border-left-color: var(--amber); }
.kcard.purple { border-left-color: var(--purple); }

/* ---------------------------------------------------------------- timeline */

.tl { position: relative; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; border-left: 1px dashed #d6dbe4; }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item::before {
  content: ''; position: absolute; left: -25px; top: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primaryColor);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.tl-item.ok::before  { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.tl-item.now::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.tl-item .tl-t { font-size: 13px; font-weight: 600; color: var(--head); }
.tl-item .tl-m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- stepper
   filled like the stat cards: done = mint→teal, current = blue with a glow,
   failed = peach→pink; the rail fills with the same gradients up to "now". */

.steps { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 0 2px; }
.step { flex: 1 1 0; min-width: 118px; text-align: center; position: relative; }
.step::before {
  content: ''; position: absolute; left: calc(-50% + 22px); right: calc(50% + 22px); top: 15px;
  height: 4px; border-radius: 4px; background: var(--slate-bg);
}
.step:first-child::before { display: none; }
.step .sb {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 10px;
  background: #fff; border: 2px solid #dfe3ea; color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; position: relative; z-index: 1;
}
.step .sl { font-size: 12.5px; font-weight: 600; color: #374151; line-height: 1.3; }
.step .sd { font-size: 11px; color: var(--muted); margin-top: 3px; }

.step.done .sb {
  border: none; color: #fff;
  background: linear-gradient(135deg, #84d9d2, #07cdae);
  box-shadow: 0 6px 12px -5px rgba(7,205,174,.6);
}
.step.done::before { background: linear-gradient(to right, #84d9d2, #07cdae); }
.step.on .sb {
  border: none; color: #fff;
  background: linear-gradient(135deg, #90caf9, #047edf);
  box-shadow: 0 0 0 5px rgba(4,126,223,.14), 0 8px 16px -6px rgba(4,126,223,.6);
}
.step.on::before { background: linear-gradient(to right, #07cdae, #047edf); }
.step.on .sl { color: #047edf; font-weight: 700; }
.step.fail .sb {
  border: none; color: #fff;
  background: linear-gradient(135deg, #ffbf96, #fe7096);
  box-shadow: 0 0 0 5px rgba(254,112,150,.14), 0 8px 16px -6px rgba(254,112,150,.6);
}
.step.fail::before { background: linear-gradient(to right, #07cdae, #fe7096); }
.step.fail .sl { color: #e0476f; font-weight: 700; }

/* ------------------------------------------------------------------- misc */

.kv { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 400; }
.kv dd { margin: 0; color: var(--head); font-weight: 600; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 40px; color: #d6dbe4; display: block; margin-bottom: 12px; }

.note {
  background: var(--blue-bg); border: 1px solid var(--primary-line); color: #1e3a8a;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 12.5px;
}
.note.warn { background: var(--amber-bg); border-color: #fcdca0; color: #92400e; }
.note.bad  { background: var(--red-bg); border-color: #f9c4c4; color: #991b1b; }
.note.good { background: var(--green-bg); border-color: #b7e4c7; color: #166534; }
.note strong { font-weight: 700; }

.meter { height: 6px; border-radius: 6px; background: var(--slate-bg); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--primaryColor); border-radius: 6px; }
.meter i.green { background: var(--green); }
.meter i.red { background: var(--red); }
.meter i.amber { background: var(--amber); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: #374151; }
.legend b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.mut { color: var(--muted); }
.sm { font-size: 12px; }
.xs { font-size: 11px; }
.b  { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; }
.hstack { display: flex; align-items: center; gap: 10px; }
.hstack.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------------- responsive
   The menu button collapses the sidebar to an icon rail on desktop and slides
   it in on narrow screens. */

.nav-fly-title { display: none; }
.app-nav .nav-sub.tip { display: none; }
.app-nav { transition: width .2s ease, transform .2s ease; }

@media (min-width: 992px) {
  body.nav-mini { --rail: 76px; }
  body.nav-mini .app-nav .navbar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  body.nav-mini .app-nav .navbar-brand .logo-full { display: none; }
  body.nav-mini .app-nav .navbar-brand .mark { display: block; }
  body.nav-mini .app-nav .main-nav-wrap { padding: 4px 12px 24px; scrollbar-width: none; }
  body.nav-mini .app-nav .main-nav-wrap::-webkit-scrollbar { display: none; }
  body.nav-mini .app-nav .nav-section { height: 1px; margin: 12px 8px; font-size: 0; background: var(--border); }
  body.nav-mini .app-nav .nav-section:first-child { display: none; }
  body.nav-mini .app-nav .nav-link { justify-content: center; padding: 11px 0; }
  body.nav-mini .app-nav .nav-link i { font-size: 16px; }
  body.nav-mini .app-nav .nav-link span,
  body.nav-mini .app-nav .nav-link .chev { display: none; }
  body.nav-mini .app-nav .nav-group:hover > .nav-link:not(.active) { background: var(--bg); }
  body.nav-mini .app-nav .nav-group:hover > .nav-link:not(.active) i { color: var(--primaryColor); }

  /* the sub-list turns into a fly-out beside the rail */
  body.nav-mini .app-nav .nav-group.open > .nav-sub { display: none; }
  body.nav-mini .app-nav .nav-group.fly > .nav-sub {
    display: block; position: fixed; left: calc(var(--rail) + 6px); z-index: 1100;
    min-width: 210px; padding: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow-pop);
  }
  body.nav-mini .app-nav .nav-group.fly > .nav-sub::before { display: none; }
  body.nav-mini .app-nav .nav-group.fly > .nav-sub::after {
    content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 12px;   /* hover bridge */
  }
  body.nav-mini .nav-fly-title {
    display: block; padding: 6px 10px 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primaryColor);
  }
  body.nav-mini .app-nav .nav-sub a { padding: 7px 10px; }
  body.nav-mini .app-nav .nav-sub a.active { background: var(--primary-soft); }

  /* a single screen's fly-out is just a dark name label */
  body.nav-mini .app-nav .nav-group.fly > .nav-sub.tip {
    min-width: 0; padding: 6px 10px; background: #111827; border-color: #111827;
  }
  body.nav-mini .app-nav .nav-sub.tip .nav-fly-title {
    padding: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap;
  }
}
@media (max-width: 991px) {
  .app-nav { transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .app-nav { transform: none; box-shadow: var(--shadow-pop); }
  .app-content-wrap { margin-left: 0; }
  .topbar-wrap, .page-head, .page { padding-left: 16px; padding-right: 16px; }
  .topbar .tb-search { display: none; }
}

/* a card body straight under tabs or a toolbar needs its own top room */
.tabs + .card-body:not(.tight), .toolbar + .card-body:not(.tight) { padding-top: 18px; }

/* ==========================================================================
   Application wiring
   Pieces the mockups draw as static markup but the application has to make
   work: the notification bell and its panel.
   ========================================================================== */

/* the top bar outranks page content and the legacy sticky section titles */
.topbar-wrap { z-index: 1000; }

/* ----------------------------------------------------------- notification bell
   A .tb-ico in the top bar. Its panel is filled and polled by
   partials/notifications-js.blade.php, which finds these by selector. */

.notification-dropdown { position: relative; }
.notification-dropdown .notification-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; border: 2px solid #fff;
  font-size: 9.5px; font-weight: 700; line-height: 13px; text-align: center;
}
.notification-dropdown .notification-badge.hidden { display: none; }

/* Bootstrap stamps [data-bs-popper] on a menu when Popper is off, with its
   own top/left; matching it here keeps the panel where this rule puts it. */
.notification-panel,
.notification-panel[data-bs-popper] {
  top: 48px; right: 0; left: auto; margin: 0;
  width: 360px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto;
  padding: 0;
}
.notification-panel-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.notification-panel-header h4 { font-size: 14px; font-weight: 700; color: var(--head); }
.notification-panel .notification-item {
  display: block; padding: 11px 16px; border-bottom: 1px solid #f0f2f6;
  color: var(--text); text-decoration: none; transition: background-color .12s ease;
}
.notification-panel .notification-item:hover { background: #fafbfd; }
.notification-panel .notification-item.is-unread { background: var(--primary-soft); }
.notification-panel .notification-item-title { display: block; font-size: 13px; font-weight: 600; color: var(--head); }
.notification-panel .notification-item-body,
.notification-panel .notification-item-time { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notification-panel-footer { padding: 10px 16px; text-align: center; font-size: 12.5px; }
.notification-empty { padding: 20px 16px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 991px) {
  .notification-dropdown { position: static; }
  .notification-panel,
  .notification-panel[data-bs-popper] { position: fixed; top: 86px; right: 16px; left: 16px; width: auto; max-width: none; }
}

/* the toast stack used to sit above two floating corner buttons */
.notification-toast-stack { bottom: 20px !important; }

/* ==========================================================================
   Application components
   Module screens not yet rebuilt from a mockup use Bootstrap markup plus a
   handful of the application's own components: the slide-in create/edit
   panel, the inline-editable list table, the section title bar with its
   actions, the button variants. They are drawn here in this design's
   tokens. A screen rebuilt from a mockup uses the classes above instead.
   ========================================================================== */

.hidden { display: none !important; }

/* ------------------------------------------------------------------ loader */

.app-loader { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 22; }
.app-loader.is-absolute { position: absolute; inset: 0; }
.app-loader > div:last-child { position: relative; width: 80px; height: 15px; margin: 1em auto; }
.app-loader > div:last-child > div {
  position: absolute; top: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--primaryColor); animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.app-loader > div:last-child > div:nth-child(1) { left: 8px;  animation: app-loader-1 .6s infinite; }
.app-loader > div:last-child > div:nth-child(2) { left: 8px;  animation: app-loader-2 .6s infinite; }
.app-loader > div:last-child > div:nth-child(3) { left: 32px; animation: app-loader-2 .6s infinite; }
.app-loader > div:last-child > div:nth-child(4) { left: 56px; animation: app-loader-3 .6s infinite; }
@keyframes app-loader-1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes app-loader-2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }
@keyframes app-loader-3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }

/* ------------------------------------------------------- section title bar
   A module screen opens with .app-sec-title: icon, h2 and its actions. The
   page head above it already carries the title and breadcrumb, so at the top
   of a screen only the actions stay, as the toolbar row over the content.
   Deeper copies (in panels and cards) are real section titles. */

.app-entry-form-wrap > .container-fluid { padding-left: 0; padding-right: 0; }
.page > .container-fluid { padding-left: 0; padding-right: 0; }

.page > .container-fluid > .app-entry-form-wrap > .app-sec-title {
  /* floated so the search / columns row below sits beside it: one toolbar */
  float: right;
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px;
  padding-left: 8px !important;   /* padding, not margin: the markup's .m-0 zeroes margins with !important */
}
.page > .container-fluid > .app-entry-form-wrap > .container-fluid > :not(.search-filter-wrap-sticky) { clear: both; }
.page > .container-fluid > .app-entry-form-wrap > .app-sec-title > h2,
.page > .container-fluid > .app-entry-form-wrap > .app-sec-title > .app-sec-title-icon { display: none; }

.app-sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-sec-title h2 { flex: 1 1 auto; font-size: 15px; font-weight: 600; color: var(--head); }
.app-sec-title .app-sec-title-icon { font-size: 16px; color: var(--primaryColor); }
.app-sec-title .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.app-sec-title .actions > * { margin: 0 !important; }

.section-title { font-size: 15px; font-weight: 600; color: var(--head); margin-bottom: 14px; }
.app-entry-form-section {
  padding: 18px 20px 12px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ----------------------------------------------------------------- buttons
   btn-theme, btn-primary and btn-theme-outline (the app's Add New / Save)
   = the filled primary; the outline family, and the secondary controls
   beside a primary action (Columns / Filter dropdowns, Export) = .ghost,
   btn-danger = .danger, btn-success = .ok, btn-icon = .ico-btn. */

.btn.btn-theme, .btn.btn-primary,
.btn.btn-theme-outline, .btn.btn-outline, .btn.btn-default, .btn.btn-white, .btn.btn-secondary,
.btn.btn-danger, .btn.btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 6px 14px;
  border: 1px solid var(--primaryColor); border-radius: var(--radius-sm);
  font: 600 12.5px/1.4 var(--font); white-space: nowrap;
  box-shadow: none; transition: .15s ease;
}
.btn.btn-sm, .btn.btn-xs { min-height: 30px; padding: 4px 10px; font-size: 12px; }

.btn.btn-theme, .btn.btn-primary, .btn.btn-theme-outline {
  background-color: var(--primaryColor); border-color: var(--primaryColor); color: #fff;
  box-shadow: 0 1px 2px rgba(45,91,240,.2);
}
.btn.btn-theme:hover, .btn.btn-theme:focus, .btn.btn-primary:hover, .btn.btn-primary:focus,
.btn.btn-theme-outline:hover, .btn.btn-theme-outline:focus {
  background-color: var(--primary-600); border-color: var(--primary-600); color: #fff;
}

.btn.btn-outline, .btn.btn-default, .btn.btn-white, .btn.btn-secondary,
.btn.btn-theme.dropdown-toggle, a.btn.btn-theme[href$="/export"] {
  background-color: #fff; border-color: var(--border-2); color: #374151; box-shadow: none;
}
.btn.btn-outline > i, .btn.btn-default > i,
.btn.btn-white > i, .btn.btn-secondary > i,
.btn.btn-theme.dropdown-toggle > i, a.btn.btn-theme[href$="/export"] > i { color: var(--primaryColor); }
.btn.btn-theme.dropdown-toggle:hover, .btn.btn-theme.dropdown-toggle:focus, .btn.btn-theme.dropdown-toggle.show,
a.btn.btn-theme[href$="/export"]:hover, a.btn.btn-theme[href$="/export"]:focus,
.btn.btn-outline:hover, .btn.btn-outline:focus,
.btn.btn-default:hover, .btn.btn-default:focus,
.btn.btn-white:hover, .btn.btn-white:focus,
.btn.btn-secondary:hover, .btn.btn-secondary:focus {
  background-color: #f7f9ff; border-color: var(--primary-line); color: var(--primaryColor);
}

.btn.btn-danger { background-color: var(--red); border-color: var(--red); color: #fff; }
.btn.btn-danger:hover, .btn.btn-danger:focus { background-color: #dc2626; border-color: #dc2626; color: #fff; }
.btn.btn-success { background-color: #16a34a; border-color: #16a34a; color: #fff; }
.btn.btn-success:hover, .btn.btn-success:focus { background-color: #15803d; border-color: #15803d; color: #fff; }

.btn.btn-icon {
  width: 30px; height: 30px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-sm); background: transparent; box-shadow: none;
  color: #9ca3af; font-size: 14px; transition: .15s ease;
}
.btn.btn-icon:hover, .btn.btn-icon:focus { background: var(--primary-soft); color: var(--primaryColor); }
.btn.btn-icon.text-danger:hover { background: var(--red-bg); }

.btn.btn-link { color: var(--primaryColor); font-weight: 600; text-decoration: none; box-shadow: none; }

/* ------------------------------------------------------------------- forms
   Bootstrap's .form-control, drawn as the design's .inp. */

.form-control, .form-select {
  min-height: 38px; padding: 7px 12px;
  font: 400 13px/1.5 var(--font); color: var(--head);
  background-color: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.form-control {
  -webkit-appearance: none; appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3e%3cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3e%3c/svg%3e");
  background-position: center right 10px; background-repeat: no-repeat; background-size: 16px;
}
.form-control::placeholder { color: #9ca3af; }
.form-control:focus, .form-select:focus { border-color: var(--primaryColor); box-shadow: 0 0 0 3px rgba(45,91,240,.12); }
.form-group { margin-bottom: 16px; }
.form-group > label, .col-form-label, .form-label {
  display: block; margin-bottom: 6px; color: var(--label); font-size: 12.5px; font-weight: 500;
}
.form-check-input:checked { background-color: var(--primaryColor); border-color: var(--primaryColor); }
.form-check-input:focus { border-color: var(--primary-line); box-shadow: 0 0 0 3px rgba(45,91,240,.12); }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 38px; border-color: var(--border-2); border-radius: var(--radius-sm);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; font-size: 13px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primaryColor); box-shadow: 0 0 0 3px rgba(45,91,240,.12);
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--primaryColor); }
.select2-dropdown { border-color: var(--border-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); font: 400 13px var(--font); }

/* ------------------------------------------------ list: filters and search */

.search-filter-wrap-sticky { gap: 8px; }
.card-search-widget .form-control, .input-search { height: 36px; min-height: 36px; }
.search-filters-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; padding-left: 24px; position: relative; }
.search-filters-wrap .search-filters-wrap { padding-left: 0; margin: 0; }
.search-filters-wrap .filter-icon { position: absolute; left: 0; top: 7px; font-size: 14px; color: var(--primaryColor); }
.search-filters-wrap .filter-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primaryColor);
  font-size: 12px; font-weight: 500;
}
.search-filters-wrap .filter-item b { font-weight: 700; }
.search-filters-wrap .filter-item .btn { padding: 0; width: 16px; height: 16px; min-height: 0; border: 0; box-shadow: none; background: none; color: inherit; }
.search-filters-wrap .filter-item .dropdown-toggle::after { display: none; }
.search-filters-wrap .filter-item .dropdown-menu { min-width: 220px; }
.search-filters-wrap .filter-item .dropdown-menu .checkbox-container { margin: 4px; max-height: 400px; overflow-y: auto; }

/* --------------------------------------------------- list: editable table
   The design's .tbl in a card. A row in .editing swaps its read-only labels
   for inputs and its edit/delete buttons for save/cancel. */

.editable-table-wrap {
  margin-bottom: 20px; padding: 6px 12px 8px; overflow-x: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.editable-table-wrap .table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
/* Not sticky: the card scrolls sideways for wide tables, which makes it the
   header's scroll container, and a sticky header inside it drifts over rows. */
.editable-table-wrap .table thead { position: static; }
.editable-table-wrap .table thead th {
  padding: 11px 12px; white-space: nowrap; vertical-align: middle;
  background: #f6f7fb; border: none;
  font-size: 12.5px; font-weight: 600; color: var(--th);
}
.editable-table-wrap .table thead tr:first-child th:first-child { border-radius: 8px 0 0 8px; }
.editable-table-wrap .table thead tr:first-child th:last-child  { border-radius: 0 8px 8px 0; }
.editable-table-wrap .table thead th .form-control { min-height: 30px; height: 30px; padding: 3px 9px; font-size: 12.5px; }
.editable-table-wrap .table tbody td {
  padding: 12px; background: #fff; border: none; border-bottom: 1px solid #f0f2f6;
  font-size: 13px; color: #374151; vertical-align: middle;
}
.editable-table-wrap .table tbody tr:hover td { background: #fafbfd; }
.editable-table-wrap .table tbody td a { color: var(--head); }
.editable-table-wrap .table tbody .badge { padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }

.editable-table-wrap .table tbody td .form-control { display: none; min-height: 30px; height: 30px; padding: 3px 9px; font-size: 12.5px; }
.editable-table-wrap .table tbody tr.editing td { background: var(--primary-soft); }
.editable-table-wrap .table tbody tr.editing td .td-label { display: none; }
.editable-table-wrap .table tbody tr.editing td .form-control { display: block; }
.editable-table-wrap .table tbody tr.editing td .select2 { display: block; width: 100% !important; z-index: 11 !important; }
.editable-table-wrap .table tbody tr.editing .actions .saveRowButton,
.editable-table-wrap .table tbody tr.editing .actions .cancelRowButton { display: inline-flex !important; }
.editable-table-wrap .table tbody tr:not(.editing) .actions .saveRowButton,
.editable-table-wrap .table tbody tr:not(.editing) .actions .cancelRowButton,
.editable-table-wrap .table tbody tr.editing .actions .editRowButton,
.editable-table-wrap .table tbody tr.editing .actions .deleteRowButton { display: none !important; }

/* the actions column stays in view while the table scrolls sideways */
.editable-table-wrap .table .fixed-col { position: sticky; right: 0; z-index: 2; white-space: nowrap; }
/* sticky pins 12px inside the card (its padding); the white 12px shadow
   covers that strip so scrolled cells do not show past the pinned column */
.editable-table-wrap .table td.fixed-col { background: #fff; box-shadow: -12px 0 12px -12px rgba(16,24,40,.12), 12px 0 0 #fff; }
.editable-table-wrap .table th.fixed-col { box-shadow: 12px 0 0 #fff; }
.editable-table-wrap .table td.actions .btn + .btn { margin-left: 2px; }

/* pager row */
.editable-table-wrap .table tbody tr.table-pagination-row td { border-bottom: none; padding-top: 14px; }
.entry-list-length, .result-count { font-size: 12px; color: var(--muted); }
.entry-list-length label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.entry-list-length select.form-control { display: inline-block; width: auto; min-height: 30px; height: 30px; padding: 2px 28px 2px 10px; font-size: 12px; }

.pagination { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pagination .page-link {
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-sm) !important;
  font-size: 12.5px; font-weight: 600; color: #6b7280; background: transparent;
}
.pagination .page-link:hover { background: var(--primary-soft); color: var(--primaryColor); }
.pagination .page-item.active .page-link { background: var(--primaryColor); color: #fff; }
.pagination .page-item.disabled .page-link { background: transparent; color: var(--faint); }

.empty-content, .app-detail-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-content h3 { font-size: 15px; margin-bottom: 4px; }

/* ------------------------------------------------ slide-in panel
   Create, edit and preview open from the right; list scripts toggle
   .is-active and body.preview-popup-opened. */

.entry-preview-popup {
  position: fixed; top: 0; right: 0; z-index: 1200;
  width: 60%; height: 100%;
  background: var(--bg); box-shadow: var(--shadow-pop); outline: none;
  opacity: 0; transform: translateX(20%); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.entry-preview-popup.is-active { opacity: 1; transform: none; pointer-events: all; z-index: 5555; }
/* Every create / edit / preview panel opens at the same side-panel width,
   including the views that ask for .preview-popup-fullscreen; phones still
   get the full width (below). */
.entry-preview-popup.preview-popup-fullscreen { width: 60%; }
.entry-preview-popup .preview-content { height: 100vh; overflow-y: auto; }
.entry-preview-popup .preview-content .preview-toolbar {
  position: sticky; top: 0; z-index: 222;
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 10px 24px;
  background: #fff; box-shadow: inset 0 -1px 0 0 var(--border);
}
.entry-preview-popup .preview-content .preview-toolbar .preview-title label {
  display: block; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primaryColor);
}
.entry-preview-popup .preview-content .preview-toolbar .preview-title span { font-size: 15px; font-weight: 700; color: var(--head); }
.entry-preview-popup .preview-content .preview-toolbar .preview-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.entry-preview-popup .preview-content .preview-body-header { display: flex; align-items: center; padding: 20px 24px; background: #fff; box-shadow: inset 0 -1px 0 0 var(--border); }
.entry-preview-popup .preview-body-content, .entry-preview-popup .preview-body-wrap { padding: 20px 24px; }
.entry-preview-popup .preview-content .preview-body-header .preview-meta .item { display: flex; min-height: 28px; margin-bottom: 8px; }
.entry-preview-popup .preview-content .preview-body-header .preview-meta .item label { flex: 0 0 180px; color: var(--muted); font-weight: 500; }
.entry-preview-popup .preview-content .preview-body-header .preview-meta .item span { color: var(--head); font-weight: 600; }
.popup-backdrop { position: fixed; inset: 0; z-index: 1100; display: none; }
.preview-popup-opened .popup-backdrop { display: block; }
@media (max-width: 991px) { .entry-preview-popup, .entry-preview-popup.preview-popup-fullscreen { width: 100%; } }

/* ---------------------------------------------------------- Bootstrap bits */

.modal-content { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { font-size: 15px; font-weight: 700; color: var(--head); }

.nav-tabs { gap: 4px; border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link { border: 0; color: #6b7280; font-size: 13px; font-weight: 500; }
.nav-tabs .nav-link:hover { color: var(--head); }
.nav-tabs .nav-link.active { color: var(--primaryColor); font-weight: 600; background: transparent; box-shadow: inset 0 -2px 0 var(--primaryColor); }

.badge { border-radius: 6px; font-weight: 600; }
.alert { border-radius: var(--radius-sm); font-size: 12.5px; }
.text-primary, .text-theme { color: var(--primaryColor) !important; }
.text-muted { color: var(--muted) !important; }
.bg-primary { background-color: var(--primaryColor) !important; }
.progress-bar { background-color: var(--primaryColor); }

#toast-container > div, .swal-modal { font-family: var(--font); }
.swal-button { background-color: var(--primaryColor); color: #fff; border: 1px solid var(--primaryColor); border-radius: var(--radius-sm); font-family: var(--font); box-shadow: none; }
.swal-button:not([disabled]):hover { background-color: var(--primary-600); }
.swal-button:focus { box-shadow: 0 0 0 3px rgba(45,91,240,.2); }
.swal-button--cancel { background-color: #fff; border-color: var(--border-2); color: #374151; }
.swal-button--cancel:not([disabled]):hover { background-color: #f7f9ff; border-color: var(--primary-line); color: var(--primaryColor); }
.swal-button--danger { background-color: var(--red); border-color: var(--red); }
.swal-button--danger:not([disabled]):hover { background-color: #dc2626; }
.swal-title { font-family: var(--font); color: var(--head); }
.swal-text { font-family: var(--font); color: var(--text); }

/* ------------------------------------------------------- list: toolbar row
   Search on the left, column picker on the right, beside the actions. */

.search-filter-wrap-sticky { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 16px !important; }
.card-search-widget { position: relative; flex: 0 1 340px; min-width: 0 !important; margin: 0 !important; }
.card-search-widget .form-control { padding-left: 34px; }
.card-search-widget .btn-search {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; box-shadow: none; color: #9ca3af; font-size: 13px;
}
.card-filter-dropdown-wrap { gap: 8px; }
.card-filter-dropdown-wrap .btn { height: 34px !important; }
.btn.dropdown-toggle.btn-theme::after, .btn.dropdown-toggle.btn-theme-outline::after { margin-left: 2px; }

/* column picker */
.adv-search-wrap.dropdown-menu { width: 360px; max-width: calc(100vw - 32px); padding: 14px 16px; }
.adv-search-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.adv-search-header h4 { font-size: 13px; font-weight: 700; color: var(--head); }
.adv-search-header .btn { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; background: none; color: #9ca3af; box-shadow: none; }
.adv-search-header .btn:hover { color: var(--primaryColor); background: var(--primary-soft); }
.adv-search-form-wrap .form-check { margin-bottom: 6px; font-size: 12.5px; }
.adv-search-form-wrap .btn { min-height: 30px; padding: 4px 12px; font-size: 12px; }

/* hidden columns (the column picker toggles .hide / .show on th and td) */
.editable-table-wrap .table th.hide, .editable-table-wrap .table td.hide { display: none; }

/* per-column filter and sort controls in the header */
.editable-table-wrap .table thead th .d-inlin-flex { display: inline-flex; align-items: center; gap: 2px; }
.editable-table-wrap .table thead th .labelclass { margin-right: 4px; }
.editable-table-wrap .table thead th .filter-icon { margin-right: 4px; font-size: 11px; color: var(--primaryColor); }
.editable-table-wrap .table thead th .dropdown-toggle::after { display: none; }
.editable-table-wrap .table thead th .btn-filter-dropdown,
.editable-table-wrap .table thead th .app-more-dropdown .btn {
  width: 22px; height: 22px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; box-shadow: none;
  color: #9ca3af; font-size: 10px;
}
.editable-table-wrap .table thead th .btn-filter-dropdown:hover,
.editable-table-wrap .table thead th .app-more-dropdown .btn:hover,
.editable-table-wrap .table thead th .show > .btn { background: var(--primary-soft); color: var(--primaryColor); }
.editable-table-wrap .table thead th .dropdown-menu {
  min-width: 230px; padding: 6px; font-weight: 400; white-space: normal; text-align: left;
}
.editable-table-wrap .table thead th .dropdown-filter-search { margin: 4px 4px 6px; }
.editable-table-wrap .table thead th .dropdown-filter-search .form-control { min-height: 32px; height: 32px; }
.editable-table-wrap .table thead th .checkbox-container { max-height: 260px; overflow-y: auto; margin: 0 4px; font-size: 12.5px; color: var(--text); }
.editable-table-wrap .table thead th .checkbox-container label { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-weight: 500; }
.editable-table-wrap .table thead th .dropdown-footer .btn { min-height: 30px; font-size: 12px; }
.dropdown-menu .dropdown-title {
  padding: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primaryColor);
}
.dropdown-menu .dropdown-item-with-icon { width: 100%; border: 0; background: none; text-align: left; }

/* photos and images in list cells are thumbnails, not previews */
.editable-table-wrap .table tbody td img {
  width: 36px !important; height: 36px !important; object-fit: cover !important;
  border-radius: 50%; border: 1px solid var(--border); background: #f6f7fb;
}

/* The pager row: list views position it absolutely under the table from an
   inline style block; only its old grey slab is taken back here. */
.editable-table-wrap .table .table-pagination-row td { background-color: transparent !important; border-bottom: none; }

/* --------------------------------------------------------- chat panel
   admin.chat.messages ships inline styles in the old navy; bring its
   accents onto the primary. */
.chat-widget .chat-header { background: var(--primaryColor); font-family: var(--font); }
.chat-widget .avatar { color: var(--primaryColor); }
.chat-widget .me .bubble { background: var(--primaryColor); }
.chat-widget .chat-footer button,
.chat-widget .upload-btn,
.chat-widget .upload-btn:hover,
.chat-widget .chat-new-pill { background: var(--primaryColor); }
.chat-widget .mention { color: var(--primaryColor); }
.chat-widget { font-family: var(--font); }


/* panel title with a leading icon, and the panel's footer buttons */
.entry-preview-popup .preview-title-with-icon { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.entry-preview-popup .preview-title-with-icon > i { grid-row: span 2; font-size: 16px; }
.entry-preview-popup .preview-footer-wrap { gap: 8px; padding: 0 24px; }
.entry-preview-popup .preview-footer-wrap .btn { margin: 0 !important; }

/* ------------------------------------------------------------ stacked list
   .entry-list-wrap > .list-item-wrap > .item-inner > .inner-cell: rows of
   label-over-value cells (permissions, settings, masters, menu admin). Drawn
   as the design's table rows inside a card. */

.entry-list-wrap {
  margin-bottom: 20px; padding: 4px 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.entry-list-wrap .entry-list-wrap { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.list-item-wrap { border-bottom: 1px solid #f0f2f6; transition: background-color .12s ease; }
.list-item-wrap:last-child { border-bottom: 0; }
.list-item-wrap:hover, .list-item-wrap.is-selected { background: #fafbfd; }
.list-item-wrap .item-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.list-item-wrap .inner-cell { flex: 1 1 0; min-width: 0; }
.list-item-wrap .inner-cell.text-end, .list-item-wrap .inner-cell.text-right, .list-item-wrap .inner-cell.cell-actions {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}
.list-item-wrap .item-detail label { display: block; margin: 0 0 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.list-item-wrap .item-detail span { display: block; font-size: 13px; font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.list-item-wrap .item-detail-with-image { display: flex; align-items: center; gap: 10px; }
.list-item-wrap .item-image {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primaryColor); font-size: 12px; font-weight: 700;
}
.list-item-wrap .list-item-wrap .item-inner { padding-left: 44px; }
@media (max-width: 820px) {
  .list-item-wrap .item-inner { flex-wrap: wrap; }
  .list-item-wrap .inner-cell { flex: 1 1 45%; }
}

/* ----------------------------------------------------------------- profile */

.profile-wrap > .row { row-gap: 20px; }
.profile-aside, .profile-edit-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.profile-aside { padding: 24px 20px; text-align: center; }
.profile-avatar img {
  width: 112px !important; height: 112px !important; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--primary-soft); background: #f6f7fb;
}
.profile-info .name { margin: 14px 0 12px; font-size: 18px; font-weight: 700; color: var(--head); }
.profile-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.profile-buttons > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; }
.profile-buttons .custom-file-input { display: none; }
.profile-edit-card { padding: 20px; }
.profile-edit-card .app-sec-title { margin-bottom: 18px; }
.profile-edit-card .col-form-label { text-align: left !important; }

/* ------------------------------------------------------ notification centre
   The full inbox list, drawn as a card of rows like the mockup's inbox. */
.notification-table {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); border-collapse: separate !important; border-spacing: 0 !important; overflow: hidden;
}
.table.notification-table tbody tr { box-shadow: none; transform: none; }
.table.notification-table tbody td { padding: 14px 20px; background: #fff; border: 0; border-bottom: 1px solid #f0f2f6; border-radius: 0; }
.table.notification-table tbody tr:last-child td { border-bottom: 0; }
.table.notification-table tbody tr:hover td { background: #fafbfd; }
.table.notification-table tbody tr.is-unread td { background: var(--primary-soft); }
.notification-table .notification-item { color: var(--head); font-weight: 600; }

/* ---------------------------------------------------------------- calendar
   FullCalendar v3, in a card, with the design's buttons and grid lines. */
#calendar.fc {
  padding: 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.fc .fc-toolbar h2 { font-size: 18px; font-weight: 700; color: var(--head); }
.fc .fc-button {
  height: 34px; padding: 0 12px; background: #fff; background-image: none;
  border: 1px solid var(--border-2); box-shadow: none; text-shadow: none;
  font: 600 12.5px var(--font); color: #374151; text-transform: capitalize;
}
.fc .fc-button:hover { background: #f7f9ff; border-color: var(--primary-line); color: var(--primaryColor); }
.fc .fc-state-active, .fc .fc-state-active:hover { background: var(--primaryColor); border-color: var(--primaryColor); color: #fff; }
.fc .fc-state-disabled { opacity: .5; }
.fc .fc-corner-left { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.fc .fc-corner-right { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.fc td, .fc th, .fc .fc-row, .fc .fc-divider, .fc thead, .fc tbody, .fc hr { border-color: var(--border) !important; }
.fc th.fc-day-header { padding: 9px 0; background: #f6f7fb; font-size: 12.5px; font-weight: 600; color: var(--th); }
.fc .fc-day-number { padding: 6px 8px !important; font-size: 12px; color: var(--text); }
.fc .fc-other-month .fc-day-number { color: var(--faint); }
.fc .fc-today { background: var(--primary-soft) !important; }
.fc .fc-event { border-radius: 6px; padding: 1px 4px; font-size: 11.5px; font-weight: 600; }
.calendar-legend { font-size: 12.5px; color: var(--text); }

/* a form section inside a modal: the modal is already the card */
.modal .app-entry-form-section { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.modal-footer { gap: 8px; }
.modal-footer > * { margin: 0; }

/* ------------------------------------------------------------ menu tree
   Menus admin (litepie.menu.admin.index): sections as band rows, modules
   and screens indented under them, collapsible. */
.menu-tree tr.mt-section td {
  padding: 10px 12px; background: #f9fafc; border-bottom: 1px solid var(--border);
}
.menu-tree tr.mt-section:hover td { background: #f6f7fb; }
.menu-tree .mt-section-name {
  margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--primaryColor);
}
.menu-tree .mt-name { display: flex; align-items: center; gap: 10px; padding-left: calc(var(--depth, 0) * 28px); }
.menu-tree .mt-caret, .menu-tree .mt-caret-space {
  width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
}
.menu-tree .mt-caret {
  padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 10px; transition: background-color .15s ease, color .15s ease;
}
.menu-tree .mt-caret:hover { background: var(--primary-soft); color: var(--primaryColor); }
.menu-tree .mt-caret i { transition: transform .15s ease; }
.menu-tree tr.is-closed .mt-caret i { transform: rotate(-90deg); }
.menu-tree tr.mt-section .mt-caret { margin-right: 4px; vertical-align: middle; }
.menu-tree .mt-icon {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primaryColor); font-size: 13px;
}
.menu-tree tr.depth-2 .mt-icon { width: 28px; height: 28px; background: #f3f4f7; color: #6b7280; font-size: 12px; }
.menu-tree .mt-url {
  padding: 3px 8px; border-radius: 6px; background: #f6f7fb; color: var(--head);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.menu-tree .ico-btn[disabled] { opacity: .35; cursor: not-allowed; background: transparent; }
.menu-tree .ico-btn .fa-trash { color: var(--red); }
.menu-tree td:last-child { width: 1%; white-space: nowrap; }

/* a page search driven from the top bar (shell.js) is not shown twice */
.is-proxied { display: none !important; }

/* the form card inside every create / edit panel (preview-edit-card-wrap >
   .card.edit-card), drawn as a design card with its own padding and title */
.entry-preview-popup .preview-body-content { padding: 24px; }
.entry-preview-popup .content-section.border-bottom { border-bottom: 0 !important; }
.preview-edit-card-wrap .card.edit-card { padding: 20px 20px 4px; margin-bottom: 20px; }
.preview-edit-card-wrap .card.edit-card .card-heading { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.preview-edit-card-wrap .card.edit-card .card-title { font-size: 15px; font-weight: 600; color: var(--head); margin: 0; }
.preview-edit-card-wrap .card.edit-card .card-body { padding: 0; }

/* ------------------------------------------------------ role permissions
   The Modify Permissions panel (litepie.role.role.permission): a toolbar,
   then a card per permission group with a switch per permission. */
.perm-panel { padding: 20px 24px; }
.perm-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.perm-toolbar .spacer { flex: 1 1 auto; }
.perm-count { font-size: 12.5px; color: var(--muted); }
.perm-count b { color: var(--head); }
.perm-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.perm-grid > .empty { grid-column: 1 / -1; }
.perm-group {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.perm-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #f9fafc; border-bottom: 1px solid var(--border);
}
.perm-group-name { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--head); cursor: pointer; }
.perm-group-name .t-sub { display: block; font-weight: 400; }
.perm-group-count { flex: 0 0 auto; }
.perm-items { padding: 4px 0; }
.perm-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 9px 16px; cursor: pointer; transition: background-color .12s ease;
}
.perm-item:hover { background: #fafbfd; }
.perm-item + .perm-item { border-top: 1px solid #f3f4f7; }
.perm-item-name { display: block; font-size: 13px; font-weight: 500; color: var(--head); }
.perm-item-slug { display: block; margin-top: 1px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.perm-panel .form-switch { padding-left: 2.6em; min-height: 0; }
.perm-panel .form-switch .form-check-input { width: 2.1em; height: 1.2em; margin-top: 0; cursor: pointer; }
.perm-panel .form-check-input:indeterminate { background-color: var(--primary-line); border-color: var(--primary-line); }

/* the panel's own footer (Save Changes / Cancel) sits under the content */
#editPermissions .preview-footer-wrap { position: sticky; bottom: 0; margin: 0 !important; padding: 12px 24px; background: #fff; border-top: 1px solid var(--border); }
#editPermissions .preview-body-wrap { background: var(--bg) !important; }

/* file drop areas (dropzone) in create / edit panels */
.entry-preview-popup .dropzone {
  min-height: 140px; padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  border: 1.5px dashed var(--primary-line); border-radius: var(--radius-sm); background: #fafbff;
  color: var(--muted); font-size: 12.5px; transition: border-color .15s ease, background-color .15s ease;
}
.entry-preview-popup .dropzone:hover, .entry-preview-popup .dropzone.dz-drag-hover { border-color: var(--primaryColor); background: var(--primary-soft); }
.entry-preview-popup .dropzone .dz-message { margin: 0; }
.entry-preview-popup .dropzone .dz-message::before {
  content: "\f093"; display: block; margin-bottom: 6px; font: 900 18px/1 "Font Awesome 6 Free"; color: var(--primaryColor); text-align: center;
}
.entry-preview-popup .upload-wraper { padding: 0; border: 0; background: transparent; }

/* ------------------------------------------------------------ my profile */

.profile-page .profile-fields { gap: 0 20px; }
.profile-page .profile-fields .field input[type="date"] { width: 100%; }
.profile-id { text-align: center; padding-top: 24px; }
.profile-id h2 { margin: 14px 0 4px; font-size: 18px; font-weight: 700; color: var(--head); }
.profile-photo {
  position: relative; display: inline-block; width: 96px; height: 96px; margin: 0;
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.profile-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--slate-bg); }
.profile-photo-edit {
  position: absolute; right: 0; bottom: 2px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--primaryColor); color: #fff; font-size: 12px;
  transition: background-color .15s ease;
}
.profile-photo:hover .profile-photo-edit { background: var(--primary-600); }
.profile-meta { border-top: 1px solid var(--border); padding-top: 16px; }
.profile-meta .kv { grid-template-columns: 110px minmax(0,1fr); }
.profile-meta .kv dd { overflow-wrap: anywhere; }
.profile-page .password-fields { max-width: 440px; }
.pw-field { position: relative; }
.pw-field .form-control { width: 100%; padding-right: 40px; }
.pw-toggle {
  position: absolute; top: 0; right: 0; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #9ca3af; font-size: 13px; cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus { color: var(--primaryColor); }

/* ------------------------------------------------------------- users list
   design/mockups/users/users.html. The table keeps .editable-table-wrap for
   its column filter menus, drawn flat inside the card; the pager is the last
   row of the table because displayList() reloads only the rows. */

.user-list .toolbar .dropdown { display: inline-flex; }
.user-list .toolbar .dropdown-toggle::after { display: none; }
.user-list-filters { padding: 0 20px; }
.user-list-filters .search-filters-wrap:empty { display: none; }
.user-list .editable-table-wrap {
  margin: 0; padding: 0 12px 4px;
  border: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none;
}
.user-list .editable-table-wrap .table { padding-bottom: 0 !important; }
.user-list .table td.name { min-width: 220px; }
.user-list .table td .who { display: flex; align-items: center; gap: 10px; }
.user-list .table td .acts { justify-content: flex-end; gap: 2px; }
.user-av { position: relative; overflow: hidden; width: 34px; height: 34px; font-size: 12px; }
.user-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }  /* no background: the initials show until a photo loads */
.user-list-empty { padding: 40px 12px !important; text-align: center; color: var(--muted) !important; }
.user-list .table tbody tr.table-pagination-row td,
.user-list .table tbody tr.table-pagination-row:hover td {
  padding: 12px 8px 8px; background: #fff; border-bottom: 0;
}
.user-list-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.user-list-foot .spacer { flex: 1 1 auto; }
.user-list-limit { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.user-list-limit select.form-control {
  display: inline-block; width: auto; min-height: 30px; height: 30px; padding: 2px 28px 2px 10px; font-size: 12px;
}

/* users list: column menus and column picker, in the design's popover style.
   The markup is the shared search/linear/list view; only its look changes. */

/* header: the filter and sort buttons sit quietly until the column is hovered
   or focused, and stay lit while that column is filtered */
.user-list .editable-table-wrap .table thead th { position: relative; }
.user-list .editable-table-wrap .table thead th .d-inlin-flex { gap: 4px; }
.user-list .editable-table-wrap .table thead th .labelclass { margin-right: 2px; }
.user-list .editable-table-wrap .table thead th .filter-icon { display: none !important; }
.user-list .editable-table-wrap .table thead th .btn-filter-dropdown,
.user-list .editable-table-wrap .table thead th .app-more-dropdown .btn {
  width: 24px; height: 24px; border-radius: 6px; font-size: 0; color: #b8c0cc;
  opacity: 0; transition: opacity .12s ease, background-color .12s ease, color .12s ease;
}
.user-list .editable-table-wrap .table thead th .btn-filter-dropdown > i,
.user-list .editable-table-wrap .table thead th .app-more-dropdown .btn > i { display: none; }
.user-list .editable-table-wrap .table thead th .btn-filter-dropdown::before,
.user-list .editable-table-wrap .table thead th .app-more-dropdown .btn::before {
  font: 900 11px/1 "Font Awesome 6 Free";
}
.user-list .editable-table-wrap .table thead th .btn-filter-dropdown::before { content: "\f0b0"; }          /* filter */
.user-list .editable-table-wrap .table thead th .app-more-dropdown .btn::before { content: "\f0dc"; }       /* sort */
.user-list .editable-table-wrap .table thead th:hover .btn-filter-dropdown,
.user-list .editable-table-wrap .table thead th:hover .app-more-dropdown .btn,
.user-list .editable-table-wrap .table thead th:focus-within .btn-filter-dropdown,
.user-list .editable-table-wrap .table thead th:focus-within .app-more-dropdown .btn,
.user-list .editable-table-wrap .table thead th .show > .btn { opacity: 1; }
.user-list .editable-table-wrap .table thead th .btn-filter-dropdown:hover,
.user-list .editable-table-wrap .table thead th .app-more-dropdown .btn:hover,
.user-list .editable-table-wrap .table thead th .show > .btn { background: #e9edfb; color: var(--primaryColor); }
/* a filtered column: the (hidden) filter icon loses .hidden */
.user-list .editable-table-wrap .table thead th .filter-icon:not(.hidden) ~ .dropdown .btn-filter-dropdown {
  opacity: 1; background: var(--primary-soft); color: var(--primaryColor);
}
.user-list .editable-table-wrap .table thead th .filter-icon:not(.hidden) ~ .labelclass { color: var(--primaryColor); }
@media (hover: none) {
  .user-list .editable-table-wrap .table thead th .btn-filter-dropdown,
  .user-list .editable-table-wrap .table thead th .app-more-dropdown .btn { opacity: 1; }
}

/* the popovers */
.user-list .editable-table-wrap .table thead th .dropdown-menu,
.user-list .col-picker .dropdown-menu {
  min-width: 260px; padding: 0; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  font: 400 13px/1.45 var(--font); color: var(--text); text-transform: none; letter-spacing: 0;
}
.user-list .editable-table-wrap .table thead th .dropdown-filter-search {
  margin: 0; padding: 10px 10px 8px; border-bottom: 1px solid var(--border);
}
.user-list .editable-table-wrap .table thead th .dropdown-filter-search .form-control {
  width: 100%; height: 34px; min-height: 34px; padding-left: 32px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%239ca3af'%3e%3cpath d='M416 208c0 45.9-14.9 88.3-40 122.7l126.6 126.7a32 32 0 0 1-45.3 45.3L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3e%3c/svg%3e") no-repeat 11px center / 13px;
}
.user-list .editable-table-wrap .table thead th .checkbox-container {
  max-height: 240px; margin: 0; padding: 6px; overflow-y: auto; font-size: 13px;
}
.user-list .editable-table-wrap .table thead th .checkbox-container:empty { display: none; }
.user-list .editable-table-wrap .table thead th .checkbox-container small { display: block; padding: 8px; color: var(--muted); font-size: 12px; }
.user-list .editable-table-wrap .table thead th .checkbox-container .dropdown-divider { margin: 4px 2px; }
.user-list .dropdown-filter-item.form-check,
.user-list .col-picker-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 0; margin: 0; padding: 7px 8px; border-radius: 6px; cursor: pointer;
}
.user-list .dropdown-filter-item.form-check:hover,
.user-list .col-picker-item:hover { background: var(--bg); }
.user-list .dropdown-filter-item label,
.user-list .editable-table-wrap .table thead th .checkbox-container .dropdown-filter-item label {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #374151; font-weight: 500; cursor: pointer;
}
.user-list .dropdown-filter-item .form-check-input,
.user-list .col-picker-item .form-check-input {
  flex: 0 0 auto; float: none; width: 16px; height: 16px; margin: 0;
  border: 1.5px solid #cfd5df; border-radius: 4px; cursor: pointer;
}
.user-list .dropdown-filter-item .form-check-input:checked,
.user-list .col-picker-item .form-check-input:checked { border-color: var(--primaryColor); }
.user-list .editable-table-wrap .table thead th .dropdown-footer {
  margin: 0; padding: 8px 10px 10px !important; border-top: 1px solid var(--border);
}
.user-list .editable-table-wrap .table thead th .dropdown-footer .dropdown-divider { display: none; }
.user-list .editable-table-wrap .table thead th .dropdown-footer .btn {
  width: 100% !important; min-height: 32px; padding: 6px 12px !important;
}

/* sort menu: the shared view titles it "Settings"; here it is just the two sorts */
.user-list .editable-table-wrap .table thead th .app-more-dropdown .dropdown-menu { min-width: 190px; padding: 6px; }
.user-list .editable-table-wrap .table thead th .app-more-dropdown .dropdown-title { display: none; }
.user-list .editable-table-wrap .table thead th .app-more-dropdown .dropdown-item { font-size: 13px; }

/* column picker */
.user-list .col-picker .dropdown-menu { width: 300px; }
.user-list .pop-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid var(--border);
}
.user-list .pop-head > div { flex: 1 1 auto; }
.user-list .pop-head h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--head); }
.user-list .col-picker-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.user-list .pop-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: #fafbfd;
}
.user-list .pop-foot .spacer { flex: 1 1 auto; }
.user-list .pop-foot .col-picker-all { padding: 4px 6px; font-size: 12.5px; }

/* applied filters row above the table */
.user-list-filters .search-filters-wrap { margin: 0 0 12px; }
.user-list-filters .clear-all-btn.btn.btn-danger {
  min-height: 28px; padding: 3px 10px; margin: 0 !important;
  background: transparent; border-color: transparent; color: var(--red); font-size: 12px;
}
.user-list-filters .clear-all-btn.btn.btn-danger:hover { background: var(--red-bg); color: #dc2626; }

/* users list: toolbar filters, cells and row actions */
.user-list .toolbar { row-gap: 10px; }
.user-status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.user-list .user-dept-filter { width: 170px; height: 34px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.user-list .table td.mobile,
.user-list .table td.department_id,
.user-list .table td.location { white-space: nowrap; }
.user-list .table td.roles { white-space: nowrap; }
.user-role { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.user-role-more { margin-left: 4px; padding: 2px 7px; vertical-align: middle; cursor: default; }
.user-list .table td.fixed-col .acts { gap: 6px; }
.user-list .table td.fixed-col .dropdown-menu { min-width: 170px; }
.user-list .table td.fixed-col .dropdown-item { width: 100%; border: 0; background: none; text-align: left; }
.user-list .table td.fixed-col .dropdown-item.text-danger,
.user-list .table td.fixed-col .dropdown-item.text-danger i { color: var(--red) !important; }
.user-list .table td.fixed-col .dropdown-item.text-danger:hover { background: var(--red-bg); }
@media (max-width: 820px) {
  .user-list .user-dept-filter { width: 100%; }
}

/* ------------------------------------------------------- permission matrix
   design/mockups/users/permissions.html. The grid scrolls inside the card so
   the header row and the module column can stay put while it does. */

.perm-matrix .toolbar { row-gap: 10px; }
.pm-chips { display: flex; gap: 6px; }
.pm-wrap { max-height: calc(100vh - 330px); min-height: 320px; overflow: auto; padding: 0 12px 8px 0; }   /* no left gap: the sticky first column must meet the edge */
table.pm-table { border-collapse: separate; border-spacing: 0; }
table.pm-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f6f7fb; box-shadow: 0 1px 0 var(--border);
}
table.pm-table thead th:first-child, table.pm-table thead th:last-child { border-radius: 0; }
table.pm-table .pm-first {
  position: sticky; left: 0; z-index: 2;
  min-width: 260px; max-width: 320px; background: #fff;
  box-shadow: 1px 0 0 var(--border);
}
table.pm-table thead .pm-first { z-index: 4; background: #f6f7fb; }
table.pm-table th.pm-role {
  min-width: 92px; max-width: 110px; padding: 10px 8px;
  text-align: center; white-space: normal; vertical-align: bottom;
}
.pm-role-name { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--th); overflow-wrap: anywhere; }
.pm-role-count { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.pm-role-count i { font-size: 10px; }
th.pm-role.is-locked .pm-role-name { color: var(--muted); }

table.pm-table td { padding: 8px; }
table.pm-table td.pm-first { padding: 8px 8px 8px 14px; }
table.pm-table thead th.pm-first { padding-left: 20px; }
table.pm-table tbody.pm-group > tr.pm-module > td { border-top: 1px solid #eef0f4; background: #fff; }
table.pm-table tbody.pm-group.is-open > tr.pm-module > td { background: #fbfcfe; }
table.pm-table tbody.pm-group > tr.pm-action > td { background: #fff; border-bottom: 0; }
table.pm-table tbody tr:hover > td,
table.pm-table tbody tr:hover > td.pm-first { background: #f7f9fe; }
table.pm-table tbody.pm-group:first-of-type > tr.pm-module > td { border-top: 0; }

.pm-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pm-label { flex: 1 1 auto; min-width: 0; }
.pm-label > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-action .pm-label > div:first-child { color: #374151; font-weight: 500; }
.pm-action .pm-name { padding-left: 26px; }
.pm-fold, .pm-fold-space { flex: 0 0 26px; width: 26px; height: 26px; }
.pm-fold {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: #9ca3af; cursor: pointer;
}
.pm-fold:hover { background: var(--primary-soft); color: var(--primaryColor); }
.pm-fold i { transition: transform .15s ease; }
.pm-group.is-open .pm-fold i { transform: rotate(90deg); }
.pm-action .pm-fold-space { display: none; }
.pm-menu { flex: 0 0 auto; opacity: 0; transition: opacity .12s ease; }
tr:hover .pm-menu, .pm-menu:focus-within, .pm-menu .show { opacity: 1; }
.pm-menu .dropdown-menu { min-width: 180px; }
.pm-menu .dropdown-item { width: 100%; border: 0; background: none; text-align: left; }
.pm-menu .dropdown-item.text-danger, .pm-menu .dropdown-item.text-danger i { color: var(--red) !important; }
.pm-menu .dropdown-item.text-danger:hover { background: var(--red-bg); }
@media (hover: none) { .pm-menu { opacity: 1; } }

/* a tick: the checkbox is the control, the two icons are what shows */
td.pm-cell-td { text-align: center; }
.pm-cell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0; border-radius: 8px; cursor: pointer;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.pm-cell:hover { background: var(--primary-soft); }
.pm-cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.pm-cell .pm-yes { display: none; font-size: 19px; color: var(--green); }
.pm-cell .pm-no { font-size: 15px; color: #cfdae4; }
.pm-cell input:checked ~ .pm-yes { display: inline-block; }
.pm-cell input:checked ~ .pm-no { display: none; }
.pm-cell input:focus-visible ~ i { outline: 2px solid var(--primaryColor); outline-offset: 3px; border-radius: 50%; }
.pm-cell.is-changed { background: var(--amber-bg); box-shadow: inset 0 0 0 1.5px #f5c46b; }
.pm-cell.is-locked { cursor: not-allowed; }
.pm-cell.is-locked:hover { background: transparent; }
.pm-cell.is-locked .pm-yes { color: #86c9a0; }
.pm-part { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; line-height: 1; color: var(--faint); }
.pm-part.is-some { color: var(--amber); }
.pm-part.is-all { color: var(--green); }
.pm-empty td { padding: 40px 12px !important; text-align: center; color: var(--muted); }
.pm-unsaved { color: #b45309; font-weight: 600; }
.pm-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.pm-modal .modal-body { padding: 16px 18px 4px; }
.pm-modal .modal-footer { padding: 12px 18px; }
@media (max-width: 820px) {
  table.pm-table .pm-first { min-width: 150px; max-width: 180px; }
  .pm-wrap { max-height: none; padding: 0 8px 8px 0; }
}

/* ------------------------------------------------- a user's own permissions
   The Permissions panel on the users list. Each action: what the roles give,
   and a three-way Roles / Allow / Deny switch for this user alone. */

#userPermissions .preview-body-wrap { padding: 0; background: var(--bg); }
#userPermissions .preview-footer-wrap {
  position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px;
  margin: 0; padding: 12px 24px; background: #fff; border-top: 1px solid var(--border);
}
.user-perm-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.user-perm-head .user-av { width: 42px; height: 42px; font-size: 14px; }
.user-perm-who { flex: 1 1 160px; min-width: 0; }
.user-perm-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.user-perm .perm-toolbar { flex-wrap: wrap; }
.uperm-chips { display: flex; gap: 6px; }
.uperm-allowed b, .uperm-allowed { color: var(--green); }
.uperm-denied b, .uperm-denied { color: var(--red); }
.user-perm-legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; font-size: 12px; color: var(--muted);
}
.user-perm-legend b { color: var(--head); font-weight: 600; }
.seg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 2px; border-radius: 50%; background: #cfd5df; vertical-align: middle; }
.seg-dot.allow { background: var(--green); }
.seg-dot.deny { background: var(--red); }

.uperm-item { align-items: center; cursor: default; }
.uperm-item:hover { background: #fafbfd; }
.uperm-text { flex: 1 1 auto; min-width: 0; }
.uperm-source { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.uperm-source i { margin-right: 3px; font-size: 10.5px; }
.uperm-right { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.uperm-effect i { font-size: 16px; }
.uperm-effect .yes { display: none; color: var(--green); }
.uperm-effect .no { color: #cfdae4; }
.uperm-item.holds .uperm-effect .yes { display: inline-block; }
.uperm-item.holds .uperm-effect .no { display: none; }
.uperm-item.is-allow { background: #f3fbf6; }
.uperm-item.is-deny { background: #fef6f6; }
.uperm-item.is-changed { box-shadow: inset 3px 0 0 #f5c46b; }

.seg {
  display: inline-flex; padding: 2px; gap: 2px;
  background: #f1f3f7; border-radius: 8px;
}
.seg-opt { position: relative; margin: 0; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: inline-block; min-width: 50px; padding: 4px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; text-align: center; color: #6b7280;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.seg-opt:hover span { color: var(--head); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--primaryColor); outline-offset: 1px; }
.seg-inherit input:checked + span { background: #fff; color: var(--head); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg-allow input:checked + span { background: var(--green); color: #fff; }
.seg-deny input:checked + span { background: var(--red); color: #fff; }
@media (max-width: 600px) {
  .uperm-item { flex-wrap: wrap; }
  .uperm-right { width: 100%; justify-content: space-between; }
}

/* roles table: row menu */
#role-table .dropdown-menu { min-width: 170px; }
#role-table .dropdown-item { width: 100%; border: 0; background: none; text-align: left; }
#role-table .dropdown-item.text-danger, #role-table .dropdown-item.text-danger i { color: var(--red) !important; }
#role-table .dropdown-item.text-danger:hover { background: var(--red-bg); }

/* matrix: a module row's switch for all of its actions */
.pm-cell.pm-all { padding: 0; border: 0; background: transparent; font: inherit; }
.pm-cell.pm-all:disabled { cursor: not-allowed; }
.pm-cell .pm-some { display: none; font-size: 18px; color: var(--amber); }
.pm-all[data-state="all"] .pm-yes { display: inline-block; }
.pm-all[data-state="all"] .pm-no, .pm-all[data-state="some"] .pm-no { display: none; }
.pm-all[data-state="some"] .pm-some { display: inline-block; }
.pm-all:focus-visible { outline: 2px solid var(--primaryColor); outline-offset: 2px; }

/* ------------------------------------------------------ the user form
   Create / edit panels on the users list (user-detail.html): a summary of
   the person, then a card per group of fields. */

.user-form .card { margin-bottom: 16px; }
.user-form .card.mb0 { margin-bottom: 0; }
.user-form .card-body { padding: 8px 20px 18px; }
.user-form-fields { gap: 0 18px; }
.user-form-fields .field { min-width: 0; }
.user-form .field .form-control { width: 100%; }
.user-form-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px;
  margin-bottom: 16px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.user-form-summary .user-av { width: 48px; height: 48px; font-size: 16px; }
.user-form-who { flex: 1 1 180px; min-width: 0; }
.user-form-who .t-strong { font-size: 15px; }
.user-form-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.user-form-since { flex: 0 0 100%; }
.user-form-password { display: flex; gap: 8px; }
.user-form-password .form-control { flex: 1 1 auto; }
.user-form-password .form-control:disabled { background: #f6f7fb; color: var(--muted); }
.user-form-docs { margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--border-2); }
.user-form-doc-name { display: flex; align-items: flex-end; padding-bottom: 10px; }
.user-form-doc-name span { font-size: 12.5px; color: var(--muted); }
.hint.expiry-bad  { color: #dc2626; font-weight: 600; }
.hint.expiry-warn { color: #b45309; font-weight: 600; }
.hint.expiry-ok   { color: var(--green); }
.hint i { margin-right: 3px; }
.user-form .select2-container { width: 100% !important; }
.user-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 6px; color: var(--primaryColor); font-size: 12px; font-weight: 600;
}
.user-form-photo .dropzone, .user-form-photo .upload-wraper .drop-zone {
  min-height: 120px; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  border: 1.5px dashed var(--primary-line); border-radius: var(--radius-sm); background: #fafbff; color: var(--muted); font-size: 12.5px;
}
.entry-preview-popup .preview-toolbar .preview-actions .btn { min-height: 34px; }
@media (max-width: 820px) { .user-form-doc-name { display: none; } }

/* ---------------------------------------------------- form modals (roles) */
.form-modal .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.form-modal .modal-header .t-sub { margin-top: 2px; }
.form-modal .modal-body { padding: 16px 20px 6px; }
.form-modal .modal-footer { padding: 12px 20px; }
.form-modal .field .form-control { width: 100%; }
.form-modal textarea.form-control { min-height: 84px; resize: vertical; }
.inp-static { display: flex; align-items: center; background: #f6f7fb; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ------------------------------------------------------------------ masters
   Admin / Masters (Categories first; the other masters are copies): a card
   with toolbar, table and footer, and a side panel to add or edit one. */

.master-list .toolbar { row-gap: 10px; }
.master-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.master-chips .chip i { font-size: 11px; }
.master-filters { padding: 0 20px; }
.master-filters .search-filters-wrap:empty { display: none; }
.master-filters .search-filters-wrap { margin: 0 0 12px; }
.master-filters .clear-all-btn.btn.btn-danger {
  min-height: 28px; padding: 3px 10px; margin: 0 !important;
  background: transparent; border-color: transparent; color: var(--red); font-size: 12px;
}
table.master-table th.sortable { cursor: pointer; user-select: none; }
table.master-table th.sortable::after {
  content: "\f0dc"; margin-left: 6px; font: 900 10px/1 "Font Awesome 6 Free"; color: #c3c9d4;
}
table.master-table th.sortable.asc::after { content: "\f0de"; color: var(--primaryColor); }
table.master-table th.sortable.desc::after { content: "\f0dd"; color: var(--primaryColor); }
table.master-table th.sortable:hover { color: var(--primaryColor); }
table.master-table td.master-name { min-width: 220px; }
table.master-table .bdg i { margin-right: 2px; }
.master-flag { color: var(--green); font-weight: 600; font-size: 12.5px; }
.master-empty { padding: 44px 12px !important; text-align: center; }
.master-empty > i { display: block; margin-bottom: 10px; font-size: 22px; color: var(--primary-line); }
table.master-table tbody tr.master-foot-row td, table.master-table tbody tr.master-foot-row:hover td {
  padding: 12px 8px 8px; background: #fff; border-bottom: 0;
}
.master-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.master-foot .spacer { flex: 1 1 auto; }
.master-limit { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.master-limit select.form-control { width: auto; min-height: 30px; height: 30px; padding: 2px 28px 2px 10px; font-size: 12px; }

.master-form .card { margin-bottom: 16px; }
.master-form .card.mb0 { margin-bottom: 0; }
.master-form .card-body { padding: 8px 20px 18px; }
.master-fields { gap: 0 18px; }
.master-form .form-control { width: 100%; }
.master-form textarea.form-control { min-height: 96px; resize: vertical; }
.master-seg .seg-opt span { min-width: 84px; padding: 6px 12px; font-size: 12.5px; }
.master-seg .seg-opt span i { margin-right: 3px; font-size: 11px; }
.master-switch { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; cursor: pointer; font-size: 13px; color: #374151; }
.master-switch .form-switch { padding-left: 2.6em; min-height: 0; }
.master-switch .form-switch .form-check-input { width: 2.1em; height: 1.2em; margin-top: 0; cursor: pointer; }
.master-form .kv code { font-size: 12px; color: var(--head); background: #f6f7fb; padding: 2px 6px; border-radius: 5px; }

/* ------------------------------------------------------ masters: records
   Admin / Masters (design/mockups/masters/master-records.html). */

.masters-screen { align-items: start; }
.mrail { padding-bottom: 8px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.mrail-search { padding: 14px 14px 6px; }
.mrail-search .search { max-width: none; }
.mrail-group { padding: 14px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primaryColor); }
.mrail-item {
  display: flex; align-items: center; gap: 10px; margin: 1px 8px; padding: 8px 10px; border-radius: 8px;
  color: #374151; font-size: 13px; font-weight: 500; text-decoration: none;
}
.mrail-item > i:first-child { width: 16px; text-align: center; color: #9ca3af; font-size: 13px; }
.mrail-item > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrail-item > b { font-size: 11px; font-weight: 600; color: var(--muted); background: #f1f3f7; padding: 1px 7px; border-radius: 10px; }
.mrail-item .mrail-lock { font-size: 10px; color: #b8c0cc; }
.mrail-item:hover { background: var(--bg); color: var(--head); }
.mrail-item.on { background: var(--primary-soft); color: var(--primaryColor); font-weight: 600; }
.mrail-item.on > i:first-child { color: var(--primaryColor); }
.mrail-item.on > b { background: var(--primaryColor); color: #fff; }
.mrail-none { padding: 10px 18px; font-size: 12.5px; color: var(--muted); }
.ct-inline { margin-left: 4px; padding: 0 6px; border-radius: 5px; background: #f1f3f7; font-size: 11px; color: #4b5563; }
.tabs a.on .ct-inline { background: var(--primary-soft); color: var(--primaryColor); }

.mtable .mhandle { color: #c3c9d4; cursor: grab; text-align: center; }
.mtable .mhandle:active { cursor: grabbing; }
.mtable .center { text-align: center; }
.mtable tr.madd td { background: #fafbff; }
.mtable tr.madd .inp { min-height: 32px; height: 32px; padding: 4px 10px; font-size: 12.5px; }
.mtable tr.madd .madd-actions { display: flex; align-items: center; gap: 8px; }
.mtable tr.madd .madd-actions > span { flex: 1; min-width: 0; }
.mtable tr.madd .madd-save { min-width: 0; }
.mtable tr.madd .madd-save:disabled { opacity: .5; cursor: not-allowed; }
.mtable tr.is-open td { background: var(--primary-soft); }
.mtable tr.is-retired td { color: var(--muted); }
.mtable tr.is-retired .t-strong { color: var(--muted); text-decoration: line-through; text-decoration-color: #d0d5dd; }
.mtable tr.sortable-ghost td { background: var(--primary-soft); opacity: .7; }
.mtable td a { color: var(--primaryColor); font-weight: 600; text-decoration: none; }
.mtable .mv-used { color: var(--primaryColor); font-weight: 600; cursor: help; }
.mtable tbody tr.mv-foot-row td, .mtable tbody tr.mv-foot-row:hover td { padding: 12px 8px 8px; background: #fff; border-bottom: 0; }
button.switch { border: 0; padding: 0; }
button.switch:focus-visible { outline: 2px solid var(--primaryColor); outline-offset: 2px; }

.mv-bulk {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 20px 12px; padding: 8px 12px;
  background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--radius-sm); font-size: 13px; color: var(--head);
}
.mv-bulk .spacer { flex: 1 1 auto; }
.mv-merge, .mv-merge-pick { display: inline-flex; align-items: center; gap: 6px; }
.mv-merge-pick .inp { width: 200px; min-height: 30px; height: 30px; padding: 3px 10px; font-size: 12.5px; }
.mv-source { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mv-source:last-child { border-bottom: 0; }
.mv-source > i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary-soft); color: var(--primaryColor); }

/* the drawer */
.mdrawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; width: 460px; max-width: 100%;
  background: var(--bg); box-shadow: -18px 0 40px -18px rgba(16,24,40,.35);
  transform: translateX(100%); transition: transform .22s ease; visibility: hidden;
}
.mdrawer.open { transform: none; visibility: visible; }
.mdrawer-inner { height: 100%; display: flex; flex-direction: column; }
.mdrawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border); }
.mdrawer-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdrawer-kicker { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primaryColor); }
.mdrawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }
.mdrawer-body .card { margin-bottom: 14px; }
.mdrawer-body .card.mb0 { margin-bottom: 0; }
.mdrawer-body .card-body { padding: 8px 18px 16px; }
.mdrawer-backdrop { position: fixed; inset: 0; z-index: 1290; background: rgba(16,24,40,.18); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mdrawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mv-fields { gap: 0 14px; }
.mv-fields .form-control { width: 100%; }
.mv-field-bool { display: flex; align-items: flex-end; }
/* a yes / no field: the switch in its own box beside the label text (it
   outranks .field label's block caption and Bootstrap's floated check) */
.field label.mv-switch { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; cursor: pointer; font-size: 13px; color: #374151; }
.mv-switch .form-switch { display: inline-flex; align-items: center; flex: none; padding-left: 0; min-height: 0; }
.mv-switch .form-switch .form-check-input { float: none; position: static; width: 2.1em; height: 1.2em; margin: 0; cursor: pointer; }
.mv-actions { display: flex; flex-direction: column; gap: 10px; }
.mv-merge-one { display: flex; gap: 8px; }
.mv-merge-one .inp { flex: 1 1 auto; }
.form-control.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.hint.mv-error { color: #dc2626; font-weight: 600; }
@media (max-width: 1280px) { .mrail { position: static; max-height: none; } }
@media (max-width: 600px) { .mv-fields { grid-template-columns: minmax(0,1fr); } }

/* ------------------------------------------------------ the master builder
   design/mockups/masters/master-builder.html (MasterDefinitionController). */

.mrail-new { display: block; margin: 12px 18px 6px; font-size: 12.5px; font-weight: 600; color: var(--primaryColor); text-decoration: none; }
.master-define { align-items: start; }
.md-grid { gap: 0 16px; }
.master-define .form-control { width: 100%; }
.md-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.form-control[readonly] { background: #f6f7fb; color: var(--muted); }
.md-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.md-icon { margin: 0; cursor: pointer; }
.md-icon input { position: absolute; opacity: 0; pointer-events: none; }
.md-icon span {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 8px; color: #6b7280; font-size: 13px; transition: .12s ease;
}
.md-icon:hover span { border-color: var(--primary-line); color: var(--primaryColor); }
.md-icon input:checked + span { border-color: var(--primaryColor); background: var(--primary-soft); color: var(--primaryColor); }
.md-icon input:focus-visible + span { outline: 2px solid var(--primaryColor); outline-offset: 2px; }
.md-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; font-size: 13px; color: #374151; }
.md-toggle > span:nth-child(3), .md-toggle > span:last-child:not(.form-check) { flex: 1 1 auto; }
.md-toggle b { display: block; font-weight: 600; color: var(--head); }
.md-toggle .t-sub { display: block; }
.md-toggle.is-fixed { cursor: default; }
.md-toggle .bdg { flex: 0 0 auto; }
.md-toggle-inline { align-items: center; align-self: end; min-height: 38px; }
.md-toggle .form-switch, .md-toggle-inline .form-switch { padding-left: 2.6em; min-height: 0; margin-top: 1px !important; }
.md-toggle .form-switch .form-check-input { width: 2.1em; height: 1.2em; margin-top: 0; cursor: pointer; }

table.md-fields td { vertical-align: top; }
table.md-fields .center { text-align: center; }
table.md-fields td.center { padding-top: 20px; }
table.md-fields .md-drag { padding-top: 20px; cursor: grab; color: #c3c9d4; text-align: center; }
table.md-fields tr.md-fixed td { color: var(--muted); background: #fafbfd; vertical-align: middle; padding-top: 12px; }
.md-label-cell { min-width: 210px; }
.md-label-cell .form-control + .form-control { margin-top: 6px; }
.md-label-cell .md-fkey, .md-label-cell .md-hint-input { min-height: 30px; height: 30px; padding: 3px 10px; font-size: 12px; }
.md-type-cell { min-width: 170px; }
.md-type-cell .md-options, .md-type-cell .md-target { margin-top: 6px; }
.md-type-cell textarea.form-control { min-height: 56px; font-size: 12.5px; }
.md-fixed-note { margin-top: 4px; }
.md-mini { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: #374151; cursor: pointer; }
.md-check { width: 16px; height: 16px; accent-color: var(--primaryColor); cursor: pointer; }
.md-check:disabled { opacity: .35; cursor: not-allowed; }
table.md-fields tr.md-bad td { background: #fef6f6; }
table.md-fields tr.sortable-ghost td { background: var(--primary-soft); opacity: .7; }
.md-types { flex-wrap: wrap; row-gap: 6px; }
.md-side { position: relative; }
.md-preview td { vertical-align: middle; }
.md-sample { font-weight: 600; color: var(--head); }
.md-sample-bar { display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: #eef0f4; }
@media (min-width: 1281px) { .master-define > div:last-child { position: sticky; top: 16px; } }

/* Admin / Masters / All masters (design/mockups/masters/masters.html) */
/* hub: a group heading, then a grid of master tiles */
.mgroup + .mgroup { margin-top: 26px; }
.mgroup-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; color: var(--head);
}
.mgroup-head > i { color: var(--primaryColor); width: 16px; text-align: center; }
.mgroup-head .mut { font-weight: 500; margin-left: 4px; }
.mgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mtile {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mtile:hover { border-color: var(--primary-line); box-shadow: 0 8px 20px -10px rgba(45,91,240,.35); transform: translateY(-1px); }
.mtile.is-picked { border-color: var(--primaryColor); box-shadow: 0 0 0 3px var(--primary-soft); }
.mtile-top { display: flex; gap: 12px; align-items: flex-start; }
.mtile-top > div { min-width: 0; }
.mtile-top .t-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtile-ico {
  flex: 0 0 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primaryColor); font-size: 15px;
}
.mtile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.mtile-meta b { color: var(--head); font-size: 14px; }
.mtile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.mtile-more, .mtile-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; min-height: 150px; }
.mtile-more > i, .mtile-new > i { font-size: 18px; color: var(--primaryColor); }
.mtile-new { background: #fafbff; }

.mtile.is-custom .mtile-ico { background: var(--purple-bg); color: var(--purple); }
.mtile-hit { font-size: 12px; color: var(--primaryColor); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgroup[hidden], .mtile[hidden] { display: none; }
.mrail-more { display: block; margin: 10px 18px 4px; font-size: 12.5px; font-weight: 600; color: var(--primaryColor); text-decoration: none; }
.mrail-more + .mrail-new { margin-top: 2px; }

/* a master's history: one tinted icon per kind of change, on a dashed line */
.mlog { position: relative; }
.mlog::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; border-left: 1px dashed #d6dbe4; }
.mlog-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding-bottom: 18px; }
.mlog-item:last-child { padding-bottom: 0; }
.mlog-body { min-width: 0; padding-top: 6px; }
.mlog-ico {
  position: relative; flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
  background: var(--primary-soft); color: var(--primaryColor); box-shadow: 0 0 0 3px #fff;
}
.mlog-ico.green  { background: var(--green-bg);  color: var(--green); }
.mlog-ico.amber  { background: var(--amber-bg);  color: #d97706; }
.mlog-ico.red    { background: var(--red-bg);    color: #dc2626; }
.mlog-ico.purple { background: var(--purple-bg); color: var(--purple); }
.mlog-ico.grey   { background: #f1f3f7;          color: #6b7280; }
.mo-find { flex: 1 1 420px; max-width: 480px; gap: 8px; }
.mo-find .search { max-width: none; }
.mo-find .search .inp { padding-right: 32px; }
.mo-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; text-decoration: none; }
.mo-clear:hover { color: var(--head); }
.mo-clear i { position: static; width: auto; height: auto; color: inherit; pointer-events: auto; }

/* ---- Leads (hrm/lead: leads/leads.html, leads/lead-detail.html) ---- */
.ld-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 20px 12px; padding: 8px 12px;
  background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--radius-sm); font-size: 13px; color: var(--head); }
.ld-bulk .spacer { flex: 1 1 auto; }
.ld-bulk .inp { width: 220px; min-height: 30px; height: 30px; padding: 3px 10px; font-size: 12.5px; }
.ld-table td .t-strong a { color: inherit; text-decoration: none; }
/* the unassigned queue: a green check (assigned) or red cross (unassigned)
   at the start of the row, and Assign under "Unassigned" in the Owner cell */
.ld-table .ld-mark-col { width: 28px; padding-left: 0; padding-right: 0; text-align: center; }
.ld-mark { font-size: 17px; vertical-align: middle; }
.ld-mark.ok { color: var(--green); }
.ld-mark.no { color: #dc2626; }
.ld-queue { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ld-assign { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; cursor: pointer; border: 1px solid var(--primary-line); background: #fff; color: var(--primaryColor); }
.ld-assign i { font-size: 10.5px; }
.ld-assign:hover, .ld-assign:focus-visible { background: var(--primaryColor); border-color: var(--primaryColor); color: #fff; }
.ld-assign-pop { position: absolute; z-index: 1050; width: 280px; display: grid; gap: 8px; padding: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 30px -10px rgba(16,24,40,.25); }
.ld-assign-pop[hidden] { display: none; }
.ld-assign-err { font-size: 12px; color: var(--red); }
.ld-table td .t-strong a:hover { color: var(--primaryColor); }
.ld-table tr.ld-foot-row td, .ld-table tr.ld-foot-row:hover td { padding: 12px 8px 8px; background: #fff; border-bottom: 0; }
.mdrawer.wide { width: 560px; }
.ld-check { display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; font-size: 13px; color: #374151; cursor: pointer; }
.ld-reveal { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--primaryColor); cursor: pointer; background: none; border: 0; padding: 0; }
.ld-reveal:disabled { color: var(--muted); cursor: default; }
.ld-panel { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fafbff; }
.ld-panel .field { margin-bottom: 10px; }
.ld-panel .inp, .ld-panel .form-control { width: 100%; }
.tl-item.bad::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.tl-item.fu-step-off { opacity: .55; }
.tl-item .tl-note { margin-top: 6px; font-size: 12.5px; color: #374151; white-space: pre-line; }
.ld-dup { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ld-dup:last-child { border-bottom: 0; }
/* ---- Candidates (hrm/candidate: recruitment/candidates.html) ---- */
.cd-table tr.cd-foot-row td, .cd-table tr.cd-foot-row:hover td { padding: 12px 8px 8px; background: #fff; border-bottom: 0; }
.cd-table .t-sub { white-space: nowrap; }
.cd-table td .t-strong a { color: inherit; text-decoration: none; }
.cd-table td .t-strong a:hover { color: var(--primaryColor); }
/* the profile (candidate-detail.html) */
.cp-row { display: flex; align-items: center; gap: 10px; }
.cp-row > i { font-size: 20px; flex: 0 0 auto; }
.cp-row .cp-act { font-size: 11.5px; font-weight: 600; color: var(--primaryColor); background: none; border: 0; padding: 0; cursor: pointer; }
.cp-row .cp-act:hover { text-decoration: underline; }
.candidates-screen .card-foot { flex-wrap: wrap; gap: 8px; }
/* the profile's CV line: a long file name ends in … inside the card */
.cp-row.cp-cv { gap: 6px; min-width: 0; }
.cp-row.cp-cv > i { font-size: 14px; }
.cp-row.cp-cv > a, .cp-row.cp-cv > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* deduplication (leads/duplicates.html): the queue, the signals and the side-by-side */
.dq-list { max-height: 640px; overflow-y: auto; }
.dq-item { display: block; padding: 13px 18px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; color: inherit; text-decoration: none; }
.dq-item:hover { background: #fafbfd; color: inherit; text-decoration: none; }
.dq-item.on { background: var(--primary-soft); border-left-color: var(--primaryColor); }
.dq-item .names { font-size: 13px; font-weight: 600; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-item .why { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dq-key { flex: 0 0 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--red-bg); color: #dc2626; font-size: 12px; }
.dq-key.pp { background: var(--purple-bg); color: var(--purple); }
.dq-flag { color: #d97706; font-weight: 600; }
.sig { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text); }
.sig b { font-weight: 700; font-size: 11px; }
.sig.hit { border-color: #b7e4c7; background: var(--green-bg); color: #166534; }
.sig.near { border-color: #fcdca0; background: var(--amber-bg); color: #92400e; }
.sig.miss { border-color: #f9c4c4; background: var(--red-bg); color: #991b1b; }
.sig.none { color: var(--faint); }
.dq-compare { border: 1px solid var(--border); border-radius: 9px; overflow-x: auto; }
table.dq-mrg { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dq-mrg th { text-align: left; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.dq-mrg th a { color: inherit; }
table.dq-mrg th a:hover { color: var(--primaryColor); }
table.dq-mrg td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--head); }
table.dq-mrg tbody tr:last-child td { border-bottom: 0; }
table.dq-mrg td.f { color: var(--muted); width: 130px; }
table.dq-mrg tr.same td.v { color: var(--muted); }
table.dq-mrg tr.same td.v i { margin-right: 6px; }
table.dq-mrg tr.diff td { background: #fffcf5; }
table.dq-mrg label { display: flex; gap: 8px; align-items: flex-start; margin: 0; cursor: pointer; font-weight: 500; }
table.dq-mrg input[type=radio] { margin-top: 3px; accent-color: var(--primaryColor); }
.kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--th); background: #fff; text-align: center; }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 820px) {
  table.dq-mrg td.f { width: 84px; }
  table.dq-mrg th, table.dq-mrg td { padding: 9px 10px; }
  table.dq-mrg th .av-sm { display: none; }
  .dq-keys { display: none; }
}
/* lead import (imports/bulk-import.html) */
.li-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; margin: 0; cursor: pointer;
  border: 2px dashed var(--primary-line); border-radius: var(--radius-sm); background: var(--primary-soft); text-align: center; }
.li-drop > i { font-size: 28px; color: var(--primaryColor); }
.li-drop:hover { border-color: var(--primaryColor); }
.li-setting { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-weight: normal; }
.li-setting input { margin-top: 3px; }
a.chip { text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---- CV parsing (hrm/candidate: recruitment/cv-parsing.html) ---- */
.cv-grid { grid-template-columns: 340px minmax(0,1fr); align-items: start; }
.cv-inbox { position: relative; position: sticky; top: 16px; }
.cv-inbox .card-head { gap: 8px; }
.cv-tools { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); }
.cv-tools .search { max-width: none; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 2px; }
.cv-chips .chip { flex: 0 0 auto; min-height: 30px; padding: 3px 10px; font-size: 12px; }
.cv-list { max-height: calc(100vh - 260px); min-height: 220px; overflow-y: auto; }
.cv-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; color: inherit; text-decoration: none; transition: background-color .12s ease; }
.cv-item:hover { background: #fafbfd; color: inherit; text-decoration: none; }
.cv-item.on { background: var(--primary-soft); border-left-color: var(--primaryColor); }
.cv-ficon { font-size: 20px; flex: 0 0 auto; width: 20px; text-align: center; }
.cv-item-main { flex: 1; min-width: 0; }
.cv-fname { color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item.on .cv-fname { color: var(--primaryColor); }
.cv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.cv-item .bdg { flex: 0 0 auto; }
.cv-more-row { padding: 12px; text-align: center; }
.cv-dropmask { display: none; position: absolute; inset: 0; z-index: 5; border-radius: inherit; border: 2px dashed var(--primaryColor); background: rgba(238,242,254,.94);
  align-items: center; justify-content: center; text-align: center; color: var(--primaryColor); pointer-events: none; }
.cv-dropmask i { font-size: 34px; margin-bottom: 8px; }
.cv-inbox.drag .cv-dropmask { display: flex; }
#cv-detail { transition: opacity .15s ease; }
#cv-detail.is-loading { opacity: .55; pointer-events: none; }
.cv-head { align-items: center; gap: 14px; }
.card-head > .cv-ftile:first-child, .cv-ftile { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.cv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-tabs { display: flex; align-items: center; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.cv-tabs button { border: 0; background: none; padding: 11px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.cv-tabs button:hover { color: var(--head); }
.cv-tabs button.on { color: var(--primaryColor); border-bottom-color: var(--primaryColor); font-weight: 600; }
.cv-tabs button i { margin-right: 4px; font-size: 12px; }
.cv-open-file { font-size: 12.5px; font-weight: 600; color: var(--primaryColor); }
.cv-h3 { font-size: 13px; font-weight: 700; color: var(--head); margin: 0 0 10px; }
.cv-lowcount { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--amber-bg); color: #b45309; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cv-field label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cv-field .bdg.xs { font-weight: 700; }
.cv-field .cv-nf { background: #f1f3f7; color: var(--faint, #9aa3b2); }
.cv-field.low .inp { border-color: var(--amber); background: #fffcf5; box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 14%, transparent); }
.cv-field.low.touched .inp { border-color: var(--border-2); background: #fff; box-shadow: none; }
.cv-field.missing .inp { background: #fafbfc; }
.cv-field .hint.cv-warn { color: #b07a00; }
.cv-field .hint i { margin-right: 3px; }
.cv-suffix { position: relative; }
.cv-suffix .inp { padding-right: 56px; }
.cv-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); pointer-events: none; }
.cv-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-checks .chip { cursor: pointer; margin: 0; font-weight: 500; }
.cv-checks .chip input { margin: 0 4px 0 0; accent-color: var(--primaryColor); }
.cv-more-fields { margin: 2px 0 6px; }
.cv-more-fields > summary, .cv-history > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--head); padding: 6px 0; user-select: none; }
.cv-more-fields > summary::-webkit-details-marker, .cv-history > summary::-webkit-details-marker { display: none; }
.cv-more-fields > summary i { font-size: 11px; margin-right: 6px; transition: transform .15s ease; color: var(--muted); }
.cv-more-fields[open] > summary i { transform: rotate(90deg); }
.cv-match { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #fcdca0; background: #fffbf2; border-radius: 9px; }
.cv-match a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-2); }
.cv-vacancies { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--border-2); border-radius: 9px; color: var(--muted); }
.cv-vacancies > i { font-size: 20px; color: #c3cad6; }
.cv-foot { flex-wrap: wrap; gap: 8px; }
.cv-locked { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px; background: #f8f9fc; border: 1px solid var(--border); }
.cv-locked > i { font-size: 22px; color: #9aa3b2; width: 26px; text-align: center; }
.cv-request { font-size: 13px; line-height: 1.55; padding: 12px 14px; border-radius: 10px 10px 10px 2px; background: #e9f9ef; border: 1px solid #c7ecd5; color: #14532d; }
.cv-reading { text-align: center; padding: 40px 20px; }
.cv-scan { position: relative; width: 64px; height: 78px; margin: 0 auto 16px; border-radius: 8px; background: var(--primary-soft); color: var(--primaryColor);
  display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; }
.cv-scan span { position: absolute; left: 0; right: 0; height: 3px; background: var(--primaryColor); box-shadow: 0 0 10px var(--primaryColor); animation: cv-scan 1.4s ease-in-out infinite alternate; }
@keyframes cv-scan { from { top: 6px; } to { top: 70px; } }
@media (prefers-reduced-motion: reduce) { .cv-scan span { animation: none; top: 38px; } }
.cv-preview { padding: 0; background: #f4f5f8; }
.cv-preview iframe { display: block; width: 100%; height: 760px; border: 0; }
.cv-preview img { display: block; max-width: 100%; margin: 0 auto; }
.cv-text { margin: 0; padding: 18px; max-height: 760px; overflow: auto; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #374151; white-space: pre-wrap; word-break: break-word; background: #fafbfc; }
.cv-done { display: flex; align-items: center; gap: 14px; }
.cv-history { border-top: 1px solid var(--border); padding: 10px 18px 12px; }
.cv-history > summary i { margin-right: 6px; color: var(--muted); }
.cv-timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.cv-timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.cv-timeline li:last-child { border-bottom: 0; }
.cv-picked { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cv-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.cv-pick > i { font-size: 18px; color: var(--primaryColor); width: 20px; text-align: center; }
.cv-pick.bad { border-color: #f9c4c4; background: var(--red-bg); }
.cv-pick.bad > i { color: #dc2626; }
.cv-pick-name { flex: 1; min-width: 0; }
.cv-pick-name .b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-drop.drag { border-color: var(--primaryColor); background: #e3eafd; }
.cv-consent-box { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfd; }
.progress-line { height: 4px; margin-top: 14px; border-radius: 4px; background: var(--primary-soft); overflow: hidden; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--primaryColor); transition: width .2s ease; }
.cv-num { display: inline-block; width: 52px; height: 26px; min-height: 26px; padding: 2px 6px; font-size: 12.5px; text-align: center; vertical-align: baseline; }
@media (max-width: 1100px) { .cv-grid { grid-template-columns: 300px minmax(0,1fr); } }
@media (max-width: 820px) {
  .cv-grid { grid-template-columns: minmax(0,1fr); }
  .cv-inbox { position: relative; top: 0; }
  .cv-list { max-height: 360px; min-height: 0; }
  .cv-keys { display: none; }
  .cv-preview iframe { height: 520px; }
  .cv-match { flex-wrap: wrap; }
}
/* ---------------------------------------------------------------- CV wizard
   recruitment/cv-wizard.html: three steps (Add, Read & review, Done); the
   rail on top, then a two-column body per step. */
.wz-rail { display: flex; align-items: center; gap: 0; padding: 14px 18px; margin-bottom: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.wz-seg { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.wz-seg + .wz-seg::before { content: ''; flex: 0 0 48px; height: 3px; margin: 0 14px 0 0; border-radius: 3px; background: var(--slate-bg); }
.wz-seg.done + .wz-seg::before, .wz-seg.done + .wz-seg.on::before { background: linear-gradient(90deg, #84d9d2, #07cdae); }
.wz-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--slate-bg); color: #9aa3b2; }
.wz-seg.on .wz-ico { color: #fff; background: linear-gradient(135deg, #90caf9, #047edf); box-shadow: 0 8px 16px -6px rgba(4,126,223,.55); }
.wz-seg.done .wz-ico { color: #fff; background: linear-gradient(135deg, #84d9d2, #07cdae); }
.wz-seg .t { font-size: 13.5px; font-weight: 700; color: var(--head); white-space: nowrap; }
.wz-seg:not(.on):not(.done) .t { color: var(--muted); }
.wz-seg .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-rail .wz-batch { flex: 0 0 auto; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--border); text-align: right; }
.wz-batch .n { font-size: 20px; font-weight: 800; color: var(--head); line-height: 1; }

.wz-body { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 20px; align-items: start; }
.wz-body.review { grid-template-columns: 320px minmax(0,1fr); }
.wz-side { position: sticky; top: 16px; }

/* step 1: the drop zone */
.wz-dz { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 250px; padding: 30px 20px; margin: 0;
  border: 2px dashed var(--primary-line); border-radius: 14px; cursor: pointer; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #eef2fe 0%, #f8faff 55%, #fff 100%); transition: border-color .15s, background .15s; }
.wz-dz:hover, .wz-dz.drag { border-color: var(--primaryColor); background: radial-gradient(120% 90% at 50% 0%, #e2e9fd 0%, #f1f5ff 60%, #fff 100%); }
.wz-dz .big { font-size: 17px; font-weight: 700; color: var(--head); }
.wz-types { display: flex; gap: 10px; margin-bottom: 6px; }
.wz-type { width: 46px; height: 56px; border-radius: 8px; background: #fff; box-shadow: 0 8px 18px -8px rgba(16,24,40,.25); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; transform: rotate(var(--r, 0deg)); }
.wz-type i { font-size: 18px; }
.wz-keys { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.wz-files { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.wz-file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.wz-file:last-child { border-bottom: 0; }
.wz-file > i { font-size: 20px; width: 22px; text-align: center; }
.wz-file .nm { flex: 1; min-width: 0; }
.wz-file .nm .b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-file.bad { background: #fff8f8; }
.wz-files-foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fafbfd; font-size: 12px; color: var(--muted); }

/* step 1: the batch settings */
.wz-h { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.wz-src { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.wz-src label { margin: 0; cursor: pointer; }
.wz-src input { position: absolute; opacity: 0; pointer-events: none; }
.wz-src span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; border: 1.5px solid var(--border-2); border-radius: 10px;
  font-size: 11px; font-weight: 600; color: var(--text); text-align: center; transition: all .12s; }
.wz-src span i { font-size: 17px; color: var(--muted); }
.wz-src label:hover span { border-color: var(--primary-line); }
.wz-src input:checked + span { border-color: var(--primaryColor); background: var(--primary-soft); color: var(--primaryColor); }
.wz-src input:checked + span i { color: var(--primaryColor); }
.wz-src input:focus-visible + span { outline: 2px solid var(--primaryColor); outline-offset: 2px; }
.wz-src .fa-whatsapp { color: #25d366 !important; }
.wz-consent { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #fafbfd; }
.wz-consent.on { border-color: #b7e4c7; background: #f3fbf6; }
.wz-consent .top { display: flex; align-items: flex-start; gap: 12px; }
.wz-ways { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.wz-ways .chip { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.wz-go { width: 100%; justify-content: center; min-height: 46px; font-size: 14px; border-radius: 10px; }
.wz-go:disabled, .wz-go[disabled] { background-color: var(--primaryColor); border-color: var(--primaryColor); color: #fff; opacity: .45; }
.wz-go .kbd { margin-left: 6px; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }

/* step 2: the batch list beside the review card */
.card-head > .wz-ring:first-child, .wz-ring { --p: 50; width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(#07cdae calc(var(--p) * 1%), var(--slate-bg) 0); }
.wz-ring b { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--head); }
.wz-item { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; cursor: pointer; }
.wz-item:hover { background: #fafbfd; }
.wz-item.on { background: var(--primary-soft); border-left-color: var(--primaryColor); }
.wz-item.dim { opacity: .6; cursor: default; }
.wz-item > i { font-size: 18px; width: 20px; text-align: center; }
.wz-item .nm { flex: 1; min-width: 0; }
.wz-item .nm .b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-meter { height: 4px; margin-top: 6px; border-radius: 4px; background: var(--slate-bg); overflow: hidden; }
.wz-meter i { display: block; height: 100%; border-radius: 4px; }
.wz-tick { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }

/* step 3: done */
.wz-hero { display: flex; align-items: center; gap: 18px; padding: 26px 24px; border-radius: var(--radius); color: #fff; margin-bottom: 20px;
  background: linear-gradient(120deg, #07cdae 0%, #23b7c9 45%, #047edf 100%); box-shadow: 0 16px 32px -16px rgba(4,126,223,.55); }
.wz-hero .ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.wz-hero h2 { margin: 0; font-size: 21px; font-weight: 800; color: #fff; }
.wz-hero .s { font-size: 13px; opacity: .92; margin-top: 3px; }
.wz-tally { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.wz-tile2 { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.wz-tile2 .n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.wz-tile2 .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wz-tile2.g .n { color: var(--green); } .wz-tile2.a .n { color: #d97706; } .wz-tile2.r .n { color: #dc2626; } .wz-tile2.p .n { color: var(--purple); }

@media (max-width: 1100px) { .wz-body, .wz-body.review { grid-template-columns: minmax(0,1fr); } .wz-side { position: static; } }
@media (max-width: 820px) {
  .wz-rail { padding: 12px; } .wz-seg .d, .wz-rail .wz-batch { display: none; } .wz-seg + .wz-seg::before { flex-basis: 16px; margin-right: 8px; }
  .wz-seg .t { font-size: 12px; } .wz-ico { flex-basis: 34px; width: 34px; height: 34px; }
  .wz-tally { grid-template-columns: repeat(2, minmax(0,1fr)); } .wz-src { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.wz-step[hidden], .wz-body [hidden] { display: none !important; }
.wz-src .fa-brands { font-size: 18px; }

/* ---- Passport scan (hrm/candidate: recruitment/passport-scan.html); the queue reuses the CV inbox's .cv-* list ---- */
.pp-grid { grid-template-columns: 340px minmax(0,1fr); align-items: start; }
.pp-queue { position: relative; }
.pp-queue .card-head { gap: 8px; }
.pp-queue.drag .cv-dropmask { display: flex; }
#pp-detail { transition: opacity .15s ease; }
#pp-detail.is-loading { opacity: .55; pointer-events: none; }
.pp-below { align-items: start; }
.pp-below:has(> #pp-plan-slot:empty) { grid-template-columns: 1fr; }
.pp-split { gap: 22px; align-items: start; }
/* the data page as read: boxes say where each value came from */
.pp { background: #f3efe4; border-radius: 8px; padding: 16px 16px 0; box-shadow: 0 4px 18px rgba(16,40,72,.12); font-size: 11px; color: #3b3a36; position: relative; overflow: hidden; }
.pp-top { display: flex; gap: 14px; }
.pp-photo { width: 78px; height: 96px; border-radius: 4px; background: linear-gradient(160deg,#c9d3df,#9fb0c1); display: flex; align-items: flex-end; justify-content: center; color: #fff; font-size: 44px; flex: none; }
.pp-f { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; flex: 1; min-width: 0; }
.pp-f span { display: block; font-size: 9px; color: #8a8577; text-transform: uppercase; letter-spacing: .04em; }
.pp-f b { font-size: 11.5px; word-break: break-word; }
.pp-box { outline: 2px solid rgba(45,91,240,.55); outline-offset: 1px; border-radius: 2px; }
.pp-box.amb { outline-color: rgba(245,158,11,.75); }
.pp-box.bad { outline-color: rgba(220,38,38,.7); }
.pp-mrz { margin: 14px -16px 0; padding: 10px 16px 12px; background: #ebe5d4; font-family: 'OCR B','Courier New',monospace; font-size: 10.6px; line-height: 1.6;
  white-space: nowrap; overflow-x: auto; position: relative; border-top: 1px dashed #cfc6ae; }
.pp-mrz::before { content: 'MRZ'; position: absolute; right: 8px; top: 4px; background: var(--primaryColor); color: #fff; font: 700 9px 'Plus Jakarta Sans',sans-serif; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.pp-ck { background: rgba(22,163,74,.18); color: #15803d; border-radius: 2px; padding: 0 1px; }
.pp-ck.bad { background: rgba(220,38,38,.16); color: #b91c1c; }
.pp-legend { gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.pp-key { display: inline-block; width: 10px; height: 10px; outline: 2px solid rgba(45,91,240,.55); margin-right: 6px; vertical-align: -1px; }
.pp-key.amb { outline-color: rgba(245,158,11,.75); }
.pp-page { background: #f4f5f8; border-radius: 8px; overflow: hidden; }
.pp-page img { display: block; max-width: 100%; margin: 0 auto; }
.pp-page iframe { display: block; width: 100%; height: 420px; border: 0; }
.pp-type { margin-top: 16px; padding: 14px; border: 1px dashed var(--border-2); border-radius: 10px; background: #fafbfc; }
.pp-mrz-inp { font: 12.5px/1.4 'Courier New', ui-monospace, monospace; letter-spacing: .02em; }
.pp-ocr { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfd; }
.pp-ocr-auto { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; margin: 0; }
#pp-ocr-status.pp-warn { color: #b07a00; }
.pp-chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pp-chk:last-of-type { border-bottom: 0; }
.pp-chk > i { margin-top: 2px; width: 16px; text-align: center; }
.pp-whose { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.pp-newlead { margin-top: 14px; }
.pp-picker { position: relative; }
.pp-attach-picker { margin-top: 4px; max-width: 520px; }
.pp-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,40,72,.12); max-height: 280px; overflow-y: auto; }
.pp-result { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pp-result:hover { background: var(--primary-soft); }
.pp-result.none { cursor: default; }
.pp-picked { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--primary-soft); font-weight: 600; font-size: 13px; }
.pp-picked span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-drop-wrap { position: relative; }
/* both boxes one fixed height, chosen or not: the thumbnail and a long file name fit inside it */
.pp-drop { height: 236px; position: relative; justify-content: center; padding: 34px 16px 14px; box-sizing: border-box; overflow: hidden; }
.pp-drop .pp-drop-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.pp-drop .pp-drop-ok { display: none; }
.pp-drop.has-file { border-style: solid; border-color: var(--green); background: #f0fbf4; }
.pp-drop.has-file .pp-drop-ico { display: none; }
.pp-drop.has-file .pp-drop-ok { display: inline-flex; align-items: center; gap: 5px; position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px;
  background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; }
.pp-drop.has-file .pp-drop-name { color: #166534; font-weight: 600; word-break: break-all; }
.pp-thumb { display: block; max-width: 100%; max-height: 104px; margin: 0 auto 4px; flex: 0 0 auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(16,40,72,.18); object-fit: contain; }
.pp-thumb-ico { font-size: 46px !important; color: var(--red) !important; box-shadow: none; }
.pp-drop-clear { position: absolute; top: 8px; right: 8px; z-index: 2; border: 1px solid var(--border-2); background: #fff; border-radius: 6px; padding: 2px 8px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pp-drop-clear:hover { color: var(--red); border-color: var(--red); }
.pp-cmp td { vertical-align: middle; }
.pp-cmp .was { color: var(--muted); text-decoration: line-through; }
.pp-cmp .src { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pp-cmp tr.low .inp { border-color: var(--amber); background: #fffcf5; }
.pp-cmp .inp { min-width: 0; }
.pp-pair { gap: 6px; flex-wrap: nowrap; }
.pp-pair .inp { max-width: 150px; }
.pp-choice { border: 0; cursor: pointer; }
.pp-choice i { font-size: 9px; margin-left: 2px; opacity: .7; }
@media (max-width: 1100px) { .pp-grid { grid-template-columns: 300px minmax(0,1fr); } }
@media (max-width: 991px) { .pp-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 820px) { .pp-split { grid-template-columns: 1fr; } .pp-below { grid-template-columns: 1fr; } .pp-f { grid-template-columns: 1fr; } .pp-pair { flex-wrap: wrap; } }

/* branded CV (design/mockups/recruitment/branded-cv.html): the document as the employer receives it, on a page */
.cvdoc { background: #fff; border: 1px solid var(--border-2); border-radius: 6px; box-shadow: var(--shadow-pop);
  max-width: 760px; margin: 0 auto; padding: 34px 38px; color: #1f2937; font-size: 12.5px; }
.cvdoc-head { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 16px; border-bottom: 3px solid #0f5132; }
.cvdoc-head .cv-photo { flex: 0 0 86px; height: 104px; border-radius: 4px; background: var(--slate-bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #6b7280; }
.cvdoc-head .cv-photo img { width: 100%; height: 100%; object-fit: cover; }
.cvdoc-head .cv-photo.cv-gap { outline: 1px dashed var(--amber); background: var(--amber-bg); color: #92400e; }
.cvdoc-head h2 { font-size: 20px; letter-spacing: .02em; margin: 0 0 4px; color: #0f5132; }
.cvdoc-brand { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); }
.cvdoc-brand b { display: block; font-size: 12.5px; color: #1f2937; }
.cvdoc h4 { display: flex; justify-content: space-between; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: #0f5132; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-2); }
.cvdoc h4 [lang="ar"] { text-transform: none; letter-spacing: 0; font-size: 13px; }
.cvdoc table { width: 100%; border-collapse: collapse; }
.cvdoc th, .cvdoc td { text-align: left; padding: 5px 8px 5px 0; vertical-align: top; }
.cvdoc th { width: 34%; font-weight: 600; color: #4b5563; }
.cvdoc thead th { width: auto; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); }
.cvdoc .cv-gap { background: var(--amber-bg); outline: 1px dashed var(--amber); border-radius: 3px; padding: 0 4px; color: #92400e; }
.cvdoc .cv-flag { background: var(--red-bg); outline: 1px dashed var(--red); border-radius: 3px; padding: 0 4px; color: #b91c1c; }
.cvdoc-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--border-2); display: flex; gap: 12px;
  justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.bcv-preview { background: var(--bg); }
.bcv-preview.loading .cvdoc { opacity: .55; transition: opacity .15s; }
.bcv-check { display: flex; align-items: flex-start; gap: 10px; }
.bcv-check > i { font-size: 17px; margin-top: 1px; flex: 0 0 auto; }
.bcv-check > span { flex: 1; min-width: 0; }
.toolbar .inp.bcv-vac { width: 260px; flex: 0 1 260px; max-width: 100%; }
.bcv-who .av-sm img, .bcv-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bcv-av { overflow: hidden; }
.cp-photo { position: relative; display: inline-block; }
.cp-photo img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; }
@media (max-width: 820px) {
  .cvdoc { padding: 22px 18px; } .cvdoc-head { flex-wrap: wrap; } .cvdoc-brand { margin-left: 0; text-align: left; }
  .cvdoc .cv-jobs { display: block; overflow-x: auto; }
  .toolbar .inp.bcv-vac { width: 100%; flex-basis: 100%; }
}

/* branded CV landing: clickable cards, vacancy tiles with a segmented progress bar, CV state lines */
a.stat.bcv-stat, a.stat.bcv-stat:hover { color: #fff; text-decoration: none; display: block; }
.bcv-vacs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bcv-vtile { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.bcv-vtile:hover { color: inherit; text-decoration: none; border-color: var(--primary-line); box-shadow: 0 10px 22px -14px rgba(37,99,235,.45); transform: translateY(-1px); }
.bcv-vtile.on { border-color: var(--primaryColor); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.bcv-emp { font-size: 13px; font-weight: 600; color: var(--head); margin: 8px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcv-seg { display: flex; gap: 2px; height: 8px; border-radius: 6px; overflow: hidden; background: var(--slate-bg); margin-bottom: 7px; }
.bcv-seg i, .bcv-k { display: block; }
.bcv-seg i.sent, .bcv-k.sent { background: #3b82f6; }
.bcv-seg i.shortlisted, .bcv-k.shortlisted { background: var(--purple); }
.bcv-seg i.draft, .bcv-k.draft { background: var(--amber); }
.bcv-seg i.none, .bcv-k.none { background: #d5dbe5; }
.legend b.bcv-k { border-radius: 3px; }
.bcv-ref { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primaryColor); background: var(--primary-soft);
  border-radius: 6px; padding: 3px 8px; letter-spacing: .01em; }
a.bcv-ref:hover { text-decoration: none; background: var(--primary-line); }
.bcv-ref i { font-size: 10.5px; opacity: .8; }
.bcv-state { display: flex; align-items: center; gap: 10px; }
.bcv-state > i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; background: var(--slate-bg); color: var(--muted); }
.bcv-state.amber > i { background: var(--amber-bg); color: #d97706; }
.bcv-state.purple > i { background: var(--purple-bg); color: var(--purple); }
.bcv-state.blue > i { background: var(--blue-bg); color: #2563eb; }
.bcv-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #15803d; }
.bcv-no { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #dc2626; }
#bcv-list td { vertical-align: middle; }
#bcv-list .btn.sm { white-space: nowrap; }
@media (max-width: 820px) { .bcv-vacs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.bcv-emp.none { color: var(--faint); font-weight: 500; font-style: italic; }
.bcv-ref, .bcv-state .b { white-space: nowrap; }
#bcv-list { min-width: 820px; }
@media (max-width: 520px) { .bcv-vacs { grid-template-columns: minmax(0,1fr); } }

/* Recruitment / Employers (recruitment/employers.html): a blacklisted employer's row is dimmed */
.em-table tr.em-off > td { opacity: .65; }
.av-sm.em-av-off, .av-md.em-av-off { background: #9fb0c1; }
.em-table { min-width: 900px; }
.em-drawer .note.bad { margin-bottom: 14px; }
.btn.em-danger { color: #dc2626; }
@media (max-width: 600px) { .mdrawer.wide { width: 100%; } .em-drawer .g3 { grid-template-columns: minmax(0,1fr); } }
/* the employer's page (recruitment/employer-detail.html) */
.employer-page .em-big { font-size: 30px; font-weight: 800; color: var(--head); line-height: 1.1; }
.employer-page .em-big.mut { color: var(--muted); }
.av-md.em-av-off { background: #9fb0c1; }
.employer-page .em-summary .kv dd { font-weight: 600; }

/* Recruitment (vacancies, applications, interviews, offers, placements, journeys) */
.tbl tr.rc-off > td { opacity: .65; }
.rc-big { font-size: 30px; font-weight: 800; color: var(--head); line-height: 1.1; }
.vc-board .kb-col { flex: 0 0 248px; }
.vc-board .kcard .kt a { color: inherit; }
.vc-board .kcard[data-stage="applied"], .vc-board .kcard[data-stage="screened"] { cursor: grab; }
.vc-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.vc-act { font-size: 11px; font-weight: 600; color: var(--primaryColor); background: var(--primary-soft); border: 0; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
a.vc-act:hover { text-decoration: none; background: var(--primary-line); }
.vc-act.bad { color: #dc2626; background: var(--red-bg); }
.btn.vc-act { font-size: 12px; padding: 4px 10px; color: inherit; background: transparent; }
.rc-dialog .inp { display: block; }
.sortable-ghost { opacity: .4; }
@media (max-width: 600px) { .vc-board .kb-col { flex-basis: 232px; } }
.empty .btn i { font-size: inherit; display: inline; margin: 0; color: inherit; }

/* Vacancy: required documents, screening calls, suggested matches */
.vc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vc-meta .vc-lastcall { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
button.vc-docs { border: 0; cursor: pointer; font: inherit; }
button.bdg.vc-docs { font-size: 11px; font-weight: 600; }
.vc-match { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.vc-match + .vc-match { border-top: 1px solid var(--border); }
.vc-match:first-child { padding-top: 0; }
.vc-match-main { flex: 1; min-width: 0; }
.vc-match-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-match-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.vc-match-acts { display: flex; gap: 2px; flex: 0 0 auto; }
.vc-match-acts .ico-btn { width: 30px; height: 30px; }
.vc-match-chip { display: inline-block; margin-top: 4px; }
.vc-match-chip:hover { text-decoration: none; }
.vc-docs-card .vc-docs-group + .vc-docs-group { margin-top: 14px; }
.vc-docs-card .ld-check { min-height: 30px; }
@media (max-width: 600px) { .vc-docs-card .grid.g2 { grid-template-columns: 1fr; } }

/* ==== Vacancy page: command view (design/mockups/recruitment/vacancy-command.html) ==== */

.vx-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px; color: #fff; margin-bottom: 22px;
  background: radial-gradient(120% 140% at 100% 0%, #5b82f5 0%, #2d5bf0 38%, #1c3aa8 100%); box-shadow: 0 18px 40px -18px rgba(45,91,240,.55); }
.vx-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); }
.vx-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none; }
.vx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; }
.vx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vx-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(4px); }
.vx-tag.hot { background: #fff4d6; color: #92580a; border-color: transparent; }
.vx-hero h1 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.vx-hero .vx-emp { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.88); }
.vx-hero .vx-emp a { color: #fff; font-weight: 700; }
.vx-emp-logo { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #2d5bf0; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; }
.vx-terms { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; }
.vx-term { padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(255,255,255,.18); }
.vx-term:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.vx-term .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.65); font-weight: 600; }
.vx-term .v { font-size: 15px; font-weight: 700; color: #fff; margin-top: 3px; }
.vx-hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.vx-btn-w { background: #fff; color: #1c3aa8; border: 0; font-weight: 700; }
.vx-btn-w:hover { background: #eef2fe; color: #1c3aa8; }
.vx-btn-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.vx-btn-g:hover { background: rgba(255,255,255,.2); color: #fff; }

.vx-gauge { display: flex; gap: 22px; align-items: center; }
.vx-ring { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.vx-ring svg { transform: rotate(-90deg); }
.vx-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vx-ring .n { font-size: 34px; font-weight: 800; line-height: 1; }
.vx-ring .s { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.vx-stats { display: grid; gap: 12px; min-width: 190px; }
.vx-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 14px; }
.vx-stat .k { font-size: 11px; color: rgba(255,255,255,.7); font-weight: 600; }
.vx-stat .v { font-size: 20px; font-weight: 800; margin-top: 2px; display: flex; align-items: baseline; gap: 6px; }
.vx-stat .v small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.vx-pace { height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: 8px; position: relative; overflow: hidden; }
.vx-pace i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #ffd166; }
.vx-pace b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; }

/* the funnel */
.vx-funnel { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; margin-bottom: 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.vx-step { position: relative; padding: 18px 20px 16px; border-right: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.vx-step:last-child { border-right: 0; }
.vx-step:hover { background: #fafbfe; }
.vx-step.on { background: var(--primary-soft); }
.vx-step.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--primaryColor); }
.vx-step .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vx-step .lbl i { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.vx-step .num { font-size: 28px; font-weight: 800; color: var(--head); margin-top: 10px; letter-spacing: -.02em; }
.vx-step .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.vx-conv { position: absolute; right: -15px; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-2); font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--text); }
.vx-conv.leak { background: var(--red-bg); color: #b91c1c; border-color: #f7c6c6; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.vx-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 10px; }
.vx-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--primary-line); }

/* today */
.vx-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vx-task { border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; }
.vx-task .top { display: flex; align-items: center; gap: 10px; }
.vx-task .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 34px; }
.vx-task .t { font-weight: 700; color: var(--head); font-size: 13.5px; }
.vx-task .d { font-size: 11.5px; color: var(--muted); }
.vx-task .n { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--head); }
.vx-faces { display: flex; align-items: center; }
.vx-faces .av-sm { width: 26px; height: 26px; font-size: 10px; border: 2px solid #fff; margin-left: -7px; }
.vx-faces .av-sm:first-child { margin-left: 0; }
.vx-faces .more { font-size: 11px; color: var(--muted); margin-left: 8px; font-weight: 600; }
.vx-task .go { margin-top: auto; }

/* board */
.vx-board { display: grid; grid-template-columns: repeat(4, minmax(232px,1fr)); gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.vx-col { background: #f7f8fb; border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-width: 232px; }
.vx-col-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; font-weight: 700; font-size: 13px; color: var(--head); }
.vx-col-h .pip { width: 8px; height: 8px; border-radius: 50%; }
.vx-col-h .ct { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.vx-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: box-shadow .15s, transform .15s; }
.vx-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.vx-card .row1 { display: flex; align-items: center; gap: 10px; }
.vx-card .nm { font-weight: 700; color: var(--head); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-card .mt { font-size: 11.5px; color: var(--muted); }
.vx-fit { position: relative; width: 34px; height: 34px; flex: 0 0 34px; margin-left: auto; }
.vx-fit svg { transform: rotate(-90deg); }
.vx-fit span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--head); }
.vx-docs { display: flex; gap: 3px; margin-top: 10px; align-items: center; }
.vx-docs i { width: 16px; height: 6px; border-radius: 3px; background: var(--border-2); }
.vx-docs i.ok { background: #22c55e; } .vx-docs i.warn { background: #f59e0b; } .vx-docs i.bad { background: #ef4444; }
.vx-docs em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.vx-call { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; margin-top: 9px; padding: 3px 8px; border-radius: 6px; }
.vx-triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-2); }
.vx-triage button { border: 1px solid var(--border-2); background: #fff; border-radius: 7px; font: inherit; font-size: 10.5px; font-weight: 700; padding: 5px 0; cursor: pointer; color: var(--text); }
.vx-triage button:hover { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primaryColor); }
.vx-triage .y { color: #15803d; } .vx-triage .x { color: #b91c1c; }

/* readiness matrix */
.vx-matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.vx-matrix th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.vx-matrix th:first-child, .vx-matrix td:first-child { text-align: left; padding-left: 22px; }
.vx-matrix td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center; font-size: 13px; }
.vx-matrix tr:last-child td { border-bottom: 0; }
.vx-cell { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; font-size: 12px; }
.vx-cell.ok { background: var(--green-bg); color: #15803d; }
.vx-cell.warn { background: var(--amber-bg); color: #b45309; }
.vx-cell.bad { background: var(--red-bg); color: #b91c1c; }
.vx-cell.none { background: #f3f4f6; color: #9ca3af; }
.vx-ready { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }

/* rail */
.vx-match { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.vx-match:last-child { border-bottom: 0; padding-bottom: 0; }
.vx-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.vx-why span { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #f3f4f6; color: var(--text); }
.vx-why span.y { background: var(--green-bg); color: #15803d; }
.vx-why span.n { background: var(--red-bg); color: #b91c1c; }
.vx-pool { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; margin-bottom: 4px;
  background: linear-gradient(135deg, #eef2fe 0%, #f5f0ff 100%); border: 1px solid #e0e6fd; }
.vx-pool .big { font-size: 30px; font-weight: 800; color: var(--primaryColor); line-height: 1; }
.vx-spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-left: auto; }
.vx-spark span { width: 6px; border-radius: 2px; background: #a5b8fa; }
.vx-spark span:last-child { background: var(--primaryColor); }
.vx-chipdoc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--head); background: #fff; }
.vx-chipdoc i { color: var(--primaryColor); }
.vx-margin { height: 10px; border-radius: 6px; overflow: hidden; display: flex; margin: 10px 0 8px; }
.vx-margin i:nth-child(1) { background: #c9d5fc; } .vx-margin i:nth-child(2) { background: var(--green); }
.vx-tl { position: relative; padding-left: 20px; }
.vx-tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.vx-tl div { position: relative; padding-bottom: 14px; font-size: 12.5px; color: var(--text); }
.vx-tl div::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--primaryColor); }
.vx-tl div.g::before { border-color: var(--green); } .vx-tl div.r::before { border-color: var(--red); }
.vx-tl small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.vx-seg { display: inline-flex; padding: 3px; background: #f3f4f6; border-radius: 9px; }
.vx-seg a { font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 7px; }
.vx-seg a.on { background: #fff; color: var(--head); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.vx-matrix .who { display: flex; align-items: center; gap: 10px; }
.vx-row { display: flex; align-items: center; gap: 10px; }
.vx-row > :first-child { flex: 1; }
.vx-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted); }
.vx-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.vx-main.vx-wide { grid-template-columns: minmax(0,1fr); }
.vx-main.vx-wide > div:last-child { display: none; }
.vx-tbl .t-strong { white-space: nowrap; }
.vx-funnel a.vx-step { color: inherit; text-decoration: none; display: block; }
.vx-step .go { position: absolute; right: 14px; top: 16px; font-size: 11px; color: var(--faint); opacity: 0; transition: opacity .15s; }
.vx-step:hover .go { opacity: 1; }
.vx-ph { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.vx-ph .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 42px; }
.vx-ph h2 { font-size: 18px; font-weight: 800; }
.vx-ph .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vx-close { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-2); white-space: nowrap; }
.vx-close:hover { color: var(--head); background: #f7f8fb; }
.vx-bar { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-chips span { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: #f3f4f6; color: var(--text); cursor: pointer; }
.vx-chips span b { margin-left: 4px; color: var(--muted); }
.vx-chips span.on { background: var(--head); color: #fff; } .vx-chips span.on b { color: rgba(255,255,255,.7); }
.vx-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vx-pick { font-size: 12.5px; font-weight: 700; color: var(--head); border: 1px solid var(--border-2); border-radius: 8px; padding: 5px 10px; }
.vx-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: var(--primary-soft); border-bottom: 1px solid var(--primary-line); flex-wrap: wrap; font-size: 13px; }
.vx-bulk label { display: flex; align-items: center; gap: 8px; margin: 0; }
.vx-tbl td { vertical-align: middle; }
.vx-tbl tr.sel td { background: #fafbff; }
.vx-tbl tr.due td { background: #f5f8ff; }
.vx-tbl tr.due td:first-child { box-shadow: inset 3px 0 0 var(--primaryColor); }
.vx-tbl .who { display: flex; align-items: center; gap: 10px; }
.vx-n { font-weight: 800; color: var(--faint); width: 30px; }
.vx-fitbar { display: inline-block; width: 46px; height: 6px; border-radius: 4px; background: var(--border-2); vertical-align: middle; overflow: hidden; margin-right: 4px; }
.vx-fitbar i { display: block; height: 100%; background: #22c55e; }
.vx-tri { display: inline-flex; gap: 3px; vertical-align: middle; }
.vx-tri button { border: 1px solid var(--border-2); background: #fff; border-radius: 7px; font: inherit; font-size: 11px; font-weight: 700; padding: 5px 8px; cursor: pointer; color: var(--text); }
.vx-tri button:hover { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primaryColor); }
.vx-tri .y { color: #15803d; } .vx-tri .x { color: #b91c1c; }
.vx-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.vx-kpis { display: flex; align-items: center; gap: 28px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.vx-kpis div b { display: block; font-size: 24px; font-weight: 800; color: var(--head); line-height: 1.1; }
.vx-kpis div span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vx-kpis .btn { margin-left: auto; }
.vx-split { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.vx-gate { border-radius: 12px; padding: 12px 14px; background: #f7f8fb; border: 1px solid var(--border); }
.vx-gate b { font-size: 24px; font-weight: 800; color: var(--head); display: block; line-height: 1.1; }
.vx-gate span { font-weight: 700; color: var(--head); font-size: 13px; }
.vx-gate small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.vx-gate.ok { background: var(--green-bg); border-color: #bbf7d0; } .vx-gate.ok b { color: #15803d; }
.vx-gate.warn { background: var(--amber-bg); border-color: #fde3b0; } .vx-gate.warn b { color: #b45309; }
.vx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.vx-week div { position: relative; text-align: center; padding: 10px 0; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.vx-week span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.vx-week b { font-size: 18px; font-weight: 800; color: var(--head); }
.vx-week i { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #f0a500; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.vx-week .on { background: var(--head); border-color: var(--head); } .vx-week .on b, .vx-week .on span { color: #fff; }
.vx-week .off { opacity: .45; }
.vx-iv { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.vx-iv:first-child { padding-top: 0; } .vx-iv:last-child { border-bottom: 0; padding-bottom: 0; }
.vx-iv .when { width: 64px; flex: 0 0 64px; text-align: center; padding: 8px 0; border-radius: 10px; background: var(--amber-bg); }
.vx-iv .when b { display: block; font-size: 14px; font-weight: 800; color: #92580a; } .vx-iv .when span { font-size: 11px; color: #b45309; font-weight: 600; }
.vx-iv.past .when { background: #f3f4f6; } .vx-iv.past .when b, .vx-iv.past .when span { color: var(--muted); }
.vx-iv .body { flex: 1; min-width: 0; } .vx-iv .lx { display: flex; align-items: center; gap: 10px; }
.vx-iv .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vx-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.vx-of { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.vx-of.hot { border-color: #fde3b0; box-shadow: 0 0 0 4px #fef8ec; }
.vx-of .lx { display: flex; align-items: center; gap: 10px; }
.vx-of-amt { font-size: 22px; font-weight: 800; color: var(--head); margin-top: 14px; } .vx-of-amt small { font-size: 12px; font-weight: 600; color: var(--muted); }
.vx-cd { height: 6px; border-radius: 4px; background: var(--border-2); margin-top: 12px; overflow: hidden; } .vx-cd i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #ef4444); }
.vx-of-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.vx-declines { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-2); }
.vx-journey td { text-align: center; } .vx-journey td:first-child, .vx-journey th:first-child { text-align: left; } .vx-journey td:last-child { text-align: left; }
.vx-journey th { text-align: center; }
i.d { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-2); background: #fff; vertical-align: middle; }
i.d.ok { background: #22c55e; border-color: #22c55e; } i.d.now { background: #fff; border-color: var(--primaryColor); box-shadow: 0 0 0 4px var(--primary-soft); }
i.d.bad { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 0 4px var(--red-bg); }
.vx-journey tr.done td { background: #fbfefc; }
.vx-legend-dot { margin: 0 4px 0 12px; width: 10px; height: 10px; } .vx-legend-dot:first-child { margin-left: 0; }
@media (max-width: 640px) {
  .vx-split { grid-template-columns: 1fr; } .vx-week { gap: 4px; padding: 12px; } .vx-week b { font-size: 15px; }
  .vx-iv { flex-wrap: wrap; } .vx-iv .acts { width: 100%; justify-content: flex-start; }
  .vx-ph { flex-wrap: wrap; } .vx-tbl-wrap, [data-panel] .card-body.tight { overflow-x: auto; }
  .vx-kpis { gap: 18px; } .vx-kpis .btn { margin-left: 0; width: 100%; }
  .vx-cards thead { display: none; }
  .vx-cards, .vx-cards tbody { display: block; width: 100%; }
  .vx-cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .vx-cards td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; }
  .vx-cards td.vx-n { display: none; }
  .vx-cards td:nth-child(2) { flex: 1 1 calc(100% - 80px); }
  .vx-cards td.right { width: 100%; text-align: left; white-space: normal; }
  .vx-cards .vx-tri { flex-wrap: wrap; }
  .vx-cards tr.due { box-shadow: inset 3px 0 0 var(--primaryColor); }
}
.vx-sec { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.vx-sec h2 { font-size: 16px; font-weight: 700; }
.vx-sec .sub { font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .vx-hero-grid { grid-template-columns: 1fr; }
  .vx-funnel { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .vx-step:nth-child(3) { border-right: 0; } .vx-step:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .vx-step:nth-child(3) .vx-conv { display: none; }
}
@media (max-width: 640px) {
  .vx-hero { padding: 22px 18px; border-radius: 14px; } .vx-hero h1 { font-size: 26px; }
  .vx-gauge { flex-direction: column; align-items: stretch; } .vx-ring { margin: 0 auto; }
  .vx-term { border-right: 0; margin-right: 0; padding-right: 16px; margin-bottom: 10px; }
  .vx-funnel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vx-step { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); }
  .vx-step:nth-child(2n) { border-right: 0 !important; } .vx-conv { display: none; }
  .vx-today { grid-template-columns: 1fr; }
  .vx-matrix-wrap { overflow-x: auto; }
}

/* live page additions */
.vx-matrix .t-strong, .vx-matrix .t-sub { white-space: nowrap; }
.vx-page .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vx-page .who .av-sm { flex: 0 0 auto; }
.vx-journey td:last-child { min-width: 220px; }
.vx-journey td:last-child .bdg { white-space: normal; text-align: left; line-height: 1.35; }
.vx-of .lx .who { flex: 1; }
.vx-page .vx-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: flex-start; }
.vx-page .vx-board .kb-col { flex: 0 0 258px; min-width: 258px; background: #f7f8fb; border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.vx-page .vx-board .col-head { padding: 4px 4px 10px; font-weight: 700; }
.vx-board .vc-acts { gap: 3px; }
.vx-board .vc-acts .vc-act { font-size: 10.5px; padding: 2px 6px; }
.vx-board .kcard .av-sm { width: 26px; height: 26px; font-size: 10px; flex: 0 0 26px; }
.vx-page .vx-hero h1 { line-height: 1.1; }
.vx-hero .vx-btn-g.sm, .vx-hero .vx-btn-w.sm { padding: 6px 12px; font-size: 12.5px; }
.vx-term .v small { font-size: 12px; font-weight: 600; opacity: .8; }
.vx-ring .c .s + .s { margin-top: 0; }
.vx-step.off { cursor: default; opacity: .6; }
.vx-step.off .go { display: none; }
.vx-task.done { opacity: .7; }
.vx-task .go { margin-top: auto; align-self: stretch; text-align: center; }
.vx-board .kcard { padding: 12px; border-radius: 12px; }
.vx-board .kcard .row1 { display: flex; align-items: center; gap: 10px; }
.vx-board .kcard .kt { font-weight: 700; font-size: 13px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vx-board .vc-acts .vc-act.ico { padding: 2px 7px; }
.vx-board .kcard .mt { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-board .kcard .km { margin-top: 10px; }
.vx-board .vc-meta { margin-top: 8px; }
.vx-board .vc-meta:empty { display: none; }
.vx-docs-btn { border: 0; background: none; padding: 0; margin: 10px 0 0; cursor: pointer; display: block; font: inherit; }
.vx-docs-btn .vx-docs { margin-top: 0; }
.vx-docs-btn:hover .vx-docs em { color: var(--primaryColor); }
.vx-tbl .vx-docs-btn { margin: 0; }
.vx-call { margin-top: 0; }
.vx-triage .vc-act, .vx-tri .vc-act { font-size: 10.5px; }
.vx-kv { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 8px 12px; font-size: 12.5px; margin: 0; }
.vx-kv dt { color: var(--muted); font-weight: 500; }
.vx-kv dd { margin: 0; color: var(--head); font-weight: 600; }
.vx-cell.sm { width: 18px; height: 18px; font-size: 9px; border-radius: 5px; }
.vx-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.vx-dot { width: 10px; height: 10px; margin: 0 4px 0 12px; } .vx-foot .vx-dot:first-child { margin-left: 0; }
.vx-scroll { overflow-x: auto; }
.vx-tabcard .tabs a:first-child { color: var(--muted); }
.vx-sent .who { flex: 1; }
.vx-sent .who .t-strong { font-size: 13px; }
.vx-match .vx-why { margin-top: 6px; }
.vc-match .vx-fit { margin: 0; }
.vx-tl { max-height: 280px; overflow: hidden; }
@media (max-width: 640px) {
  .vx-hero-actions .btn { flex: 1 1 auto; }
}

/* ==== Leads list: command view (design/mockups/leads/leads-command.html) ==== */
.lq-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 28px 20px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 150% at 0% 0%, #5b82f5 0%, #2d5bf0 40%, #1c3aa8 100%); box-shadow: 0 18px 40px -18px rgba(45,91,240,.55); }
.lq-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(270deg, transparent 0%, #000 75%); -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 75%); }
.lq-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -110px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.lq-hero > * { position: relative; z-index: 1; }
.lq-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.lq-hero > .lq-top { z-index: 3; }   /* the ··· menu opens over the pulse tiles */
.lq-hero h2 { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.lq-hero .lq-sub { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 4px; }
.lq-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.lq-more { position: relative; }
.lq-more .dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 210px; z-index: 1060; }
.btn.lq-btn-w { background: #fff; color: #1c3aa8; border: 0; font-weight: 700; }
.btn.lq-btn-w:hover { background: #eef2fe; color: #1c3aa8; }
.btn.lq-btn-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn.lq-btn-g:hover { background: rgba(255,255,255,.2); color: #fff; }
.lq-pulse { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.lq-p { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.lq-p .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.lq-p .v { font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #fff; }
.lq-p .d { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(34,197,94,.25); color: #bbf7d0; }
.lq-p .d.dn { background: rgba(239,68,68,.25); color: #fecaca; }
.lq-p .c { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.lq-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 8px; }
.lq-spark span { flex: 1; background: rgba(255,255,255,.35); border-radius: 2px; }
.lq-spark span:last-child { background: #ffd166; }
.lq-funnel { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.lq-fs { text-align: left; background: transparent; border: 0; color: #fff; padding: 8px 10px; border-radius: 12px; cursor: pointer; font: inherit; min-width: 0; }
.lq-fs:hover { background: rgba(255,255,255,.08); }
.lq-fs.on { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.lq-fs .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 8px; }
.lq-fs .bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.lq-fs.on .bar i { background: linear-gradient(90deg, #fff, #ffd166); }
.lq-fs .t { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lq-fs .n { font-size: 20px; font-weight: 800; margin-top: 2px; }
.lq-fs .r { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-out { display: flex; flex-direction: column; gap: 5px; justify-content: center; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.16); }
.lq-out button { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.14); color: rgba(255,255,255,.88);
  white-space: nowrap; cursor: pointer; border: 0; text-align: left; }
.lq-out button.on { background: #fff; color: #1c3aa8; }
.lq-now { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.lq-q { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; min-width: 0; }
.lq-q::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--qc); }
.lq-q .h { display: flex; align-items: center; gap: 12px; }
.lq-q .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 40px; background: var(--qbg); color: var(--qc); }
.lq-q .n { font-size: 24px; font-weight: 800; color: var(--head, #111827); line-height: 1; }
.lq-q .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.lq-q .go { margin-left: auto; white-space: nowrap; }
.lq-faces { display: flex; align-items: center; min-height: 30px; }
.lq-faces .av-sm { border: 2px solid #fff; margin-left: -8px; }
.lq-faces .av-sm:first-child { margin-left: 0; }
.lq-faces .more { font-size: 12px; color: var(--muted); margin-left: 8px; }
.lq-q .foot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lq-q.red { --qc: #ef4444; --qbg: #fdecec; }
.lq-q.amber { --qc: #f59e0b; --qbg: #fff4d6; }
.lq-q.purple { --qc: #8b5cf6; --qbg: #f1ebfe; }
.lq-q.calm { --qc: #22c55e; --qbg: #e8f8ee; }
.lq-list { overflow: visible; }
.lq-views { display: flex; align-items: center; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.lq-v { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px 12px; border: 0; border-bottom: 2px solid transparent; background: none;
  white-space: nowrap; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lq-v .ct { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #f3f4f6; color: var(--text, #374151); }
.lq-v.on { color: var(--primaryColor); border-bottom-color: var(--primaryColor); }
.lq-v.on .ct { background: var(--primary-soft); color: var(--primaryColor); }
.lq-v.add { color: var(--faint, #9ca3af); }
.lq-v .x { margin-left: 2px; opacity: .5; font-size: 11px; }
.lq-v .x:hover { opacity: 1; color: var(--red); }
.lq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; }
.lq-bar .search { flex: 1 1 260px; }
.lq-fchip { position: relative; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 10px;
  border: 1px dashed var(--border-2, #d1d5db); color: var(--text, #374151); background: #fff; cursor: pointer; }
.lq-fchip.set { border-style: solid; border-color: var(--primary-line); background: var(--primary-soft); color: var(--primaryColor); }
.lq-fchip .x { opacity: .6; }
.lq-pop { position: absolute; z-index: 1050; width: 260px; max-height: 340px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(17,24,39,.25); }
.lq-pop[hidden] { display: none; }
.lq-pop .o { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border-radius: 8px; font: inherit; font-size: 13px; text-align: left; border: 0; background: none; cursor: pointer; color: var(--text, #374151); }
.lq-pop .o:hover { background: #f5f7fb; }
.lq-pop .o.on { color: var(--primaryColor); font-weight: 700; }
.lq-pop .o.on::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 11px; }
.lq-pop .acts { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 4px 2px; border-top: 1px solid var(--border); margin-top: 6px; }
.lq-seg { display: inline-flex; background: #f3f4f6; border-radius: 10px; padding: 3px; }
.lq-seg button { font: inherit; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; color: var(--muted); cursor: pointer; border: 0; background: none; }
.lq-seg button.on { background: #fff; color: var(--head, #111827); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lq-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lq-table th { padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; border-bottom: 1px solid var(--border); }
.lq-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; min-width: 0; }
.lq-table .c-pick { width: 44px; padding-left: 18px; padding-right: 0; }
.lq-table .c-who { width: 27%; }
.lq-table .c-src { width: 17%; }
.lq-table .c-int { width: 19%; }
.lq-table .c-stage { width: 14%; }
.lq-table .c-due { width: 15%; }
.lq-table .c-qa { width: 100px; text-align: right; padding-right: 18px; }
.lq-table tr.lq-row:hover td { background: #fafbfe; }
.lq-table tr.lq-row.sel td { background: var(--primary-soft); }
.lq-table tr.lq-row.late td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.lq-table tr.lq-grp td { padding: 10px 18px; background: #f7f8fb; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lq-table tr.lq-grp .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lq-table tr.lq-grp .ct { color: var(--head, #111827); letter-spacing: 0; margin-left: 6px; }
.lq-table .t-strong a { color: inherit; text-decoration: none; }
.lq-table .t-strong a:hover { color: var(--primaryColor); }
.lq-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lq-ring { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.lq-ring svg { transform: rotate(-90deg); position: absolute; inset: 0; }
.lq-ring .av-sm { position: absolute; inset: 5px; width: 34px; height: 34px; font-size: 12px; font-weight: 800; }
.lq-ring .sc { position: absolute; right: -6px; bottom: -4px; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); color: var(--head, #111827); line-height: 1.4; }
.lq-name { font-weight: 700; color: var(--head, #111827); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-name .new { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: #ffd166; color: #5a3a00; margin-left: 6px; vertical-align: 2px; }
.lq-meta { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-src { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lq-src .ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 32px; }
.lq-src .t { font-size: 13px; font-weight: 600; color: var(--head, #111827); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-src .m { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-int .t { font-size: 13px; font-weight: 600; color: var(--head, #111827); }
.lq-int .t.none { color: var(--muted); font-weight: 500; }
.lq-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lq-tags span { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #f3f4f6; color: var(--text, #374151); }
.lq-tags span.ok { background: var(--green-bg, #e8f8ee); color: #15803d; }
.lq-tags span.warn { background: var(--amber-bg, #fff4d6); color: #b45309; }
.lq-tags span.bad { background: var(--red-bg, #fdecec); color: #b91c1c; }
.lq-stage .lbl { font-size: 12.5px; font-weight: 700; color: var(--head, #111827); display: flex; align-items: center; gap: 6px; }
.lq-stage .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.lq-pips { display: flex; gap: 3px; margin-top: 6px; }
.lq-pips i { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; }
.lq-pips i.d { background: var(--pc); }
.lq-stage .why { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-due { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.lq-due.late { background: #fdecec; color: #b91c1c; }
.lq-due.today { background: #fff4d6; color: #b45309; }
.lq-due.soon { background: var(--primary-soft); color: var(--primaryColor); }
.lq-due.none { background: #f3f4f6; color: var(--muted); font-weight: 600; }
.lq-owner { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.lq-owner .av-sm { width: 20px; height: 20px; font-size: 9px; }
.lq-qa { display: flex; justify-content: flex-end; gap: 6px; }
.lq-qa .ico-btn.call { background: var(--primaryColor); color: #fff; border-color: var(--primaryColor); }
.lq-table .ld-assign { border-style: dashed; white-space: nowrap; }
.lq-table .ld-assign .sug { font-weight: 600; opacity: .7; }
.lq-table .ld-assign:hover .sug { opacity: 1; }
.lq-held { font-size: 12px; font-weight: 600; color: #6d28d9; }
.ld-bulk.lq-bulk { position: sticky; bottom: 16px; z-index: 5; margin: 0 16px 16px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #111827; color: #fff; border: 0; box-shadow: 0 16px 36px -12px rgba(17,24,39,.55); }
.ld-bulk.lq-bulk[hidden] { display: none; }
.ld-bulk.lq-bulk .btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.ld-bulk.lq-bulk .btn.pri { background: var(--primaryColor); border-color: var(--primaryColor); }
.ld-bulk.lq-bulk .inp { background: #1f2937; color: #fff; border-color: rgba(255,255,255,.2); }
.ld-bulk.lq-bulk .ico-btn { color: #fff; background: transparent; border-color: rgba(255,255,255,.2); }
.lq-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.lq-board.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.lq-board .card { margin-bottom: 0; }
.lq-sbars { display: grid; gap: 12px; }
.lq-sb .top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lq-sb .top b { color: var(--head, #111827); }
.lq-sb .top .r { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lq-sb .tr { height: 8px; border-radius: 6px; background: #f1f3f8; margin-top: 6px; display: flex; overflow: hidden; }
.lq-sb .tr i { display: block; height: 100%; }
.lq-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.lq-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.lq-team { display: grid; gap: 12px; }
.lq-tm { display: flex; align-items: center; gap: 10px; }
.lq-tm .nm { font-size: 13px; font-weight: 600; color: var(--head, #111827); }
.lq-tm .cap { font-size: 11.5px; color: var(--muted); }
.lq-tm .meter2 { width: 90px; height: 6px; border-radius: 4px; background: #f1f3f8; overflow: hidden; margin-left: auto; flex: 0 0 90px; }
.lq-tm .meter2 i { display: block; height: 100%; border-radius: 4px; background: #22c55e; }
.lq-tm.busy .meter2 i { background: #f59e0b; }
.lq-tm.full .meter2 i { background: #ef4444; }
.lq-tm .pct { font-size: 12px; font-weight: 700; width: 40px; text-align: right; }
.lq-tm.full .pct { color: #b91c1c; }
.lq-ready { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.lq-ready:last-child { border-bottom: 0; }
.lq-ready:hover { background: #fafbfe; text-decoration: none; }
@media (max-width: 1280px) {
  .lq-table .c-int { display: none; }
  .lq-table .c-who { width: 32%; }
}
@media (max-width: 1100px) {
  .lq-board, .lq-board.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lq-pulse, .lq-now { grid-template-columns: 1fr 1fr; }
  .lq-funnel { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lq-out { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-left: 0; padding-left: 0; }
  .lq-table { table-layout: auto; }
  .lq-table thead { display: none; }
  .lq-table .c-src, .lq-table .c-stage { display: none; }
  .lq-table td.c-who { width: 100%; max-width: 0; }
  .lq-table .c-due { width: 150px; }
}
@media (max-width: 640px) {
  .lq-hero { padding: 18px 16px; }
  .lq-pulse, .lq-now { grid-template-columns: 1fr; }
  .lq-funnel { grid-template-columns: 1fr 1fr; }
  .lq-acts { margin-left: 0; }
  .lq-table .c-due { display: none; }
  .lq-table .c-pick { padding-left: 12px; width: 34px; }
  .lq-table .c-qa { width: 84px; padding-right: 12px; }
  .ld-bulk.lq-bulk { flex-wrap: wrap; }
}

/* ==== Lead 360: command view (design/mockups/leads/lead-command.html) ==== */

.lx-page .card { margin-bottom: 18px; }
.lx-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 30px 22px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 150% at 0% 0%, #5b82f5 0%, #2d5bf0 40%, #1c3aa8 100%); box-shadow: 0 18px 40px -18px rgba(45,91,240,.55); }
.lx-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(270deg, transparent 0%, #000 75%); -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 75%); }
.lx-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -110px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.lx-hero > * { position: relative; z-index: 1; }
.lx-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 22px; align-items: center; }
.lx-av { width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(135deg, #ffd166, #f59e0b); color: #5a3a00; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); position: relative; }
.lx-av .on { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; border: 3px solid #2449cf;
  display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; }
.lx-hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; overflow-wrap: anywhere; }
.lx-meta { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.85); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lx-meta i { opacity: .75; margin-right: 5px; }
.lx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lx-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.lx-tag.ok { background: rgba(34,197,94,.22); border-color: rgba(134,239,172,.45); }
.lx-tag.warn { background: #fff4d6; color: #92580a; border-color: transparent; }
.lx-score { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 12px 16px 12px 12px; }
.lx-ring { position: relative; width: 84px; height: 84px; flex: 0 0 84px; }
.lx-ring svg { transform: rotate(-90deg); display: block; }
.lx-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lx-ring .n { font-size: 24px; font-weight: 800; line-height: 1; }
.lx-ring .s { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.lx-ring.sm { width: 64px; height: 64px; flex-basis: 64px; }
.lx-ring.sm .n { font-size: 17px; color: var(--head); }
.lx-score .arc { stroke: #ffd166; }
.lx-score.lx-hot .arc { stroke: #fb923c; }
.lx-score.lx-cold .arc { stroke: #cbd5e1; }
.lx-score ul { list-style: none; margin: 0; padding: 0; font-size: 12px; display: grid; gap: 4px; color: rgba(255,255,255,.9); }
.lx-score li i { width: 14px; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lx-btn-w { background: #fff; color: #1c3aa8; border: 0; font-weight: 700; }
.lx-btn-w:hover, .lx-btn-w:focus { background: #eef2fe; color: #1c3aa8; }
.lx-btn-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.lx-btn-g:hover, .lx-btn-g:focus { background: rgba(255,255,255,.2); color: #fff; }
.lx-track { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.lx-st { position: relative; padding-right: 10px; min-width: 0; }
.lx-st .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); margin-bottom: 10px; overflow: hidden; }
.lx-st .bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.lx-st.now .bar i { background: linear-gradient(90deg, #fff, #ffd166); }
.lx-st .t { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lx-st .d { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.lx-st .lx-of { display: none; }
.lx-st.todo .t { color: rgba(255,255,255,.6); }
.lx-st .t .ck { width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #2d5bf0; font-size: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; }
.lx-st.now .t .ck { background: #ffd166; color: #5a3a00; }
.lx-closed { margin-top: 14px; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.12); display: inline-block; }

.lx-alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(90deg, #fdecec 0%, #fff7ed 100%); border: 1px solid #f7c6c6; }
.lx-alert .ic { width: 40px; height: 40px; border-radius: 12px; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 0 0 6px rgba(239,68,68,.12); flex: 0 0 40px; }
.lx-alert .t { font-weight: 700; color: #991b1b; }
.lx-alert .d { font-size: 12.5px; color: #9a3412; }
.lx-alert .acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.lx-alert.soon { background: linear-gradient(90deg, #eef2fe 0%, #f7f8fb 100%); border-color: var(--primary-line); }
.lx-alert.soon .ic { background: var(--primaryColor); box-shadow: 0 0 0 6px var(--primary-soft); }
.lx-alert.soon .t { color: var(--head); }
.lx-alert.soon .d { color: var(--muted); }

/* the record tabs */
.lx-tabs.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: #f7f8fb; border-radius: var(--radius) var(--radius) 0 0; }
.lx-tabs.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--border-2); transition: background .15s, color .15s, border-color .15s; }
.lx-tabs.tabs a::before { display: none; }
.lx-tabs.tabs a:hover { border-color: var(--primary-line); color: var(--primaryColor); }
.lx-tabs.tabs a > i { font-size: 13px; color: var(--muted); }
.lx-tabs.tabs a.on { background: var(--primaryColor); border-color: var(--primaryColor); color: #fff; box-shadow: 0 6px 14px -6px rgba(45,91,240,.6); }
.lx-tabs.tabs a.on > i { color: rgba(255,255,255,.85); }
.lx-tabs .ct-inline { margin-left: 0; font-weight: 700; }
.lx-tabs a.on .ct-inline { background: rgba(255,255,255,.22); color: #fff; }
.lx-tabs .ct-inline.red { background: var(--red-bg); color: #b91c1c; }
.lx-tabs .ct-inline.amber { background: var(--amber-bg); color: #b45309; }
.lx-rec { container-type: inline-size; }
@container (max-width: 900px) { .lx-tabs.tabs { gap: 5px; } .lx-tabs.tabs a { padding: 8px 10px; } .lx-tabs.tabs a > i { display: none; } }
.lx-pane { display: none; }
.lx-pane.on { display: block; }
.lx-tabs + .lx-pane { padding-top: 18px; }
.lx-pane-head { margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.lx-pane-head .sub { font-size: 12.5px; color: var(--muted); }
.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border-2); background: #fff; color: var(--text); cursor: pointer; }
.lx-chip.on { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primaryColor); }

/* timeline by day */
.lx-day { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.lx-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.lx-day:first-child { margin-top: 0; }
.lx-ev { display: flex; gap: 14px; padding: 6px 0 14px; }
.lx-ev .ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; font-size: 14px; }
.lx-ev .t { font-weight: 700; color: var(--head); font-size: 13.5px; }
.lx-ev .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lx-ev .ic.blue, .lx-o i.blue { background: var(--blue-bg); color: var(--primaryColor); }
.lx-ev .ic.green, .lx-o i.green { background: var(--green-bg); color: #15803d; }
.lx-ev .ic.red, .lx-o i.red { background: var(--red-bg); color: #b91c1c; }
.lx-ev .ic.amber, .lx-o i.amber { background: var(--amber-bg); color: #b45309; }
.lx-ev .ic.purple, .lx-o i.purple { background: #f0edff; color: #7c5cff; }
.lx-ev .ic.grey, .lx-o i.grey { background: #f3f4f6; color: var(--grey); }
.lx-o i.mute { background: #f3f4f6; color: #9ca3af; }
.lx-quote { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--primary-line); background: #fafbfe; font-size: 12.5px; color: var(--text); border-radius: 0 8px 8px 0; white-space: pre-line; }
.lx-play { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border-2); background: #f7f8fb; color: var(--primaryColor); cursor: pointer; }
.lx-ev .lx-play i { width: 22px; height: 22px; border-radius: 50%; background: var(--primaryColor); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
.btn.lx-play { margin-top: 0; padding: 4px 10px; border-radius: 8px; }
.lx-audio { display: block; width: 100%; max-width: 360px; height: 36px; margin-top: 8px; }

/* details, follow-ups, documents, duplicates */
.lx-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.lx-sec h3, .lx-h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.lx-h3 { margin-top: 18px; }
.lx-kv { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 11px 12px; font-size: 13px; margin: 0; }
.lx-kv dt { color: var(--muted); font-weight: 400; }
.lx-kv dd { margin: 0; color: var(--head); font-weight: 600; }
.lx-late td { background: #fff7f7; }
.lx-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.lx-stats b { color: var(--head); }
.lx-papers { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #f7f8fb; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--head); }
.lx-papers > i { color: var(--primaryColor); }
.lx-vault { margin: 0 -20px; }
.lx-cmp-wrap { margin: 4px 0 16px; }
.lx-cmp .same td { background: var(--amber-bg); }
.lx-cmp td:first-child { width: 130px; }

/* the disposition */
.lx-out { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.lx-o { font: inherit; text-align: left; border: 1.5px solid var(--border-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; display: block; width: 100%; }
.lx-o:hover { border-color: var(--primary-line); }
.lx-o.on { border-color: var(--primaryColor); box-shadow: 0 0 0 4px var(--primary-soft); }
.lx-o .h { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--head); font-size: 13.5px; }
.lx-o .h i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.lx-o .s { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.lx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lx-lbl { font-size: 12px; font-weight: 700; color: var(--label); margin: 16px 0 8px; display: block; }
.lx-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-code { font: inherit; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--border-2); background: #fff; color: var(--text); cursor: pointer; }
.lx-code b { color: var(--muted); font-weight: 700; margin-right: 5px; }
.lx-code.on { background: var(--primaryColor); border-color: var(--primaryColor); color: #fff; }
.lx-code.on b { color: rgba(255,255,255,.75); }
.lx-note { min-height: 70px; resize: vertical; }
.lx-when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lx-when { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-when button { font: inherit; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 0; background: #f3f4f6; color: var(--text); cursor: pointer; }
.lx-when button.on { background: var(--green-bg); color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }
.lx-when-row > .inp { width: 210px; }
.lx-via { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.lx-via .inp { width: 170px; }
.lx-d-foot { margin-top: 18px; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* the rail */
.lx-ready { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.lx-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.lx-check li { display: flex; align-items: center; gap: 10px; }
.lx-check li .b { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; flex: 0 0 20px; }
.lx-check li.y .b { background: var(--green-bg); color: #15803d; }
.lx-check li.n .b { background: var(--red-bg); color: #b91c1c; }
.lx-check li.w .b { background: var(--amber-bg); color: #b45309; }
.lx-check li a, .lx-check li .lx-link { margin-left: auto; font-size: 12px; font-weight: 600; }
.lx-link { font: inherit; background: none; border: 0; padding: 0; color: var(--primaryColor); cursor: pointer; }
.card-foot.lx-convert { display: block; }
.lx-convert .hint { margin-top: 8px; }
.lx-vac { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.lx-vac:last-child { margin-bottom: 0; }
a.lx-vac:hover { border-color: var(--primary-line); text-decoration: none; }
.lx-vac .flag { width: 38px; height: 38px; border-radius: 10px; background: #eef2fe; color: var(--primaryColor); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.lx-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.lx-mini { background: #f7f8fb; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.lx-mini .k { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lx-mini .v { font-size: 13px; font-weight: 700; color: var(--head); margin-top: 2px; overflow-wrap: anywhere; }
.lx-qa { display: grid; gap: 8px; }
.lx-qa .q { font-size: 11.5px; color: var(--muted); }
.lx-qa .a { display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--head); background: var(--primary-soft); padding: 3px 10px; border-radius: 8px; }

@media (max-width: 1100px) {
  .lx-top { grid-template-columns: auto minmax(0,1fr); }
  .lx-score { grid-column: 1 / -1; }
  .lx-out { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .lx-hero { padding: 20px 18px; border-radius: 14px; } .lx-hero h1 { font-size: 24px; }
  .lx-top { grid-template-columns: 1fr; } .lx-av { width: 60px; height: 60px; font-size: 22px; border-radius: 18px; }
  .lx-actions .btn { flex: 1 1 auto; }
  .lx-track { gap: 4px; }
  .lx-st { padding-right: 0; }
  .lx-st .t, .lx-st .d { display: none; }
  .lx-st.now .t { display: flex; white-space: nowrap; }
  .lx-st.now .lx-of { display: block; font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; }
  .lx-alert { flex-wrap: wrap; } .lx-alert .acts { margin-left: 0; width: 100%; }
  .lx-tabs.tabs { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
  .lx-sec { grid-template-columns: 1fr; }
  .lx-pane-head .sub { flex: 1 1 100% !important; }
  .lx-kv { grid-template-columns: 96px minmax(0,1fr); }
  .lx-out { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .lx-o { padding: 10px; } .lx-o .s { display: none; } .lx-o .h { font-size: 12.5px; gap: 8px; }
  .lx-o .h i { width: 26px; height: 26px; flex: 0 0 26px; }
  .lx-when-row > .inp, .lx-via, .lx-via .inp { width: 100%; margin-left: 0; }
  .lx-vault { margin: 0 -16px; }
}

/* ==== Command view: shared pieces (design/mockups/assets/command.css) ====
   The rest of the mockups' command.css: the hero's strip and step track, the
   generic grid list set by --cols / --cols-md / --cols-sm (.hm hides a cell
   below 1360px, .hs on phones), list + side rail frames, category rails,
   bar rows and the dark dock. The hero, pulse, queues and chips are above. */
.lq-p .d.wn { background: rgba(245,158,11,.25); color: #fde68a; }
.lq-prog { height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: 16px; overflow: hidden; display: flex; }
.lq-prog i { display: block; height: 100%; }
.lq-prog i.y { background: linear-gradient(90deg, #fff, #ffd166); border-radius: 4px; }
.lq-strip { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0,1fr)) auto; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.lq-strip.flat { grid-template-columns: repeat(var(--n, 4), minmax(0,1fr)); }
.lq-out span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.14); color: rgba(255,255,255,.88); white-space: nowrap; }
.lq-steps { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0,1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.lq-st { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; min-width: 0; color: #fff; }
.lq-st .b { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.28); }
.lq-st .l { font-size: 12.5px; font-weight: 700; }
.lq-st .s { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-st.done .b { background: #22c55e; border-color: #22c55e; color: #fff; }
.lq-st.on { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.lq-st.on .b { background: #fff; color: #1c3aa8; border-color: #fff; }
.lq-st.todo { opacity: .65; }
.lq-now.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.lq-now.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.lq-q.blue { --qc: #2d5bf0; --qbg: #eef2fe; }
.lq-q.green { --qc: #22c55e; --qbg: #e3f9ec; }
.lq-q .foot a { font-weight: 600; }
a.lq-q:hover { text-decoration: none; border-color: var(--primary-line); }
.lq-title { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 800; color: var(--head, #111827); margin-right: 6px; }
.lq-title .ct { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primaryColor); margin-left: 6px; vertical-align: 2px; }
.lq-title .ct.red { background: #fdecec; color: #b91c1c; }
.lq-bar.ruled { border-bottom: 1px solid var(--border); }
.lq-fsel { width: auto; max-width: 220px; font-size: 12.5px; font-weight: 600; padding: 6px 10px; height: auto; border-radius: 10px; border: 1px dashed var(--border-2, #d1d5db); background-color: #fff; color: var(--text, #374151); cursor: pointer; }
.lq-fsel.set { border-style: solid; border-color: var(--primary-line); background-color: var(--primary-soft); color: var(--primaryColor); }
.lq-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 18px; background: #f7f8fb; border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lq-grp .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gc, var(--muted)); }
.lq-grp .ct { font-weight: 700; color: var(--head, #111827); letter-spacing: 0; }
.lq-grp .why { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lq-due.ok { background: var(--green-bg, #e8f8ee); color: #15803d; }
.lq-name a { color: inherit; }
.lq-name a:hover { color: var(--primaryColor); text-decoration: none; }
.lq-ring .av { position: absolute; inset: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.lq-rows { --cols-sm: minmax(0,1fr) auto; }
.lq-lh, .lq-lr { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 13px 18px; }
.lq-lh { padding: 10px 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.lq-lr { border-bottom: 1px solid var(--border); position: relative; transition: background .12s; }
.lq-lr:hover { background: #fafbfe; }
.lq-lr.sel { background: var(--primary-soft); }
.lq-lr.late::before, .lq-lr.warnl::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #ef4444; }
.lq-lr.warnl::before { background: #f59e0b; }
.lq-lr > * { min-width: 0; }
.lq-who .av-sm { width: 36px; height: 36px; font-size: 12px; flex: 0 0 36px; }
.lq-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 36px; background: var(--ibg, #f3f4f6); color: var(--ic, #4b5563); }
.lq-t { font-size: 13px; font-weight: 600; color: var(--head, #111827); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-t a { color: inherit; }
.lq-t a:hover { color: var(--primaryColor); text-decoration: none; }
.lq-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-meter { height: 6px; border-radius: 4px; background: #eef0f4; overflow: hidden; display: flex; }
.lq-meter i { display: block; height: 100%; background: var(--primaryColor); }
.lq-pips i.bad { background: #ef4444; }
.lq-pips i.off { background: repeating-linear-gradient(45deg, #e5e7eb 0 3px, #fff 3px 6px); }
.lq-qa { align-items: center; }
.lq-qa .ico-btn.pri { background: var(--primaryColor); color: #fff; border-color: var(--primaryColor); }
.lq-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #f3f4f6; color: var(--text, #374151); }
.lq-pill.green { background: var(--green-bg, #e8f8ee); color: #15803d; }
.lq-pill.amber { background: #fff4d6; color: #b45309; }
.lq-pill.red { background: #fdecec; color: #b91c1c; }
.lq-pill.blue { background: var(--primary-soft); color: var(--primaryColor); }
.lq-pill.purple { background: #f1ebfe; color: #6d28d9; }
.lq-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; font-size: 12.5px; color: var(--muted); }
.lq-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.lq-empty > i { font-size: 26px; color: #22c55e; margin-bottom: 8px; display: block; }
.lq-empty .t { font-weight: 700; color: var(--head, #111827); font-size: 14px; }
.lq-act { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 10px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; }
.lq-act.call { background: var(--primaryColor); color: #fff; }
.lq-act.call:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.lq-act.msg { background: #e3f9ec; color: #15803d; border-color: #bbf0cf; }
.lq-act.msg:hover { color: #15803d; text-decoration: none; filter: brightness(.98); }
.lq-act.ghost { background: #fff; color: var(--text, #374151); border-color: var(--border); }
.lq-act.ghost:hover { border-color: var(--primary-line); color: var(--primaryColor); text-decoration: none; }
.lq-main { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; align-items: start; }
.lq-main.left { grid-template-columns: 280px minmax(0,1fr); }
.lq-main > * { min-width: 0; }
.lq-main > div > .card { margin-bottom: 18px; }
.lq-cats { padding: 6px 0; }
.lq-cat { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; color: var(--text, #374151); cursor: pointer; background: none; border: 0; width: 100%; text-align: left; font: inherit; }
.lq-cat:hover { background: #fafbfe; color: var(--head, #111827); text-decoration: none; }
.lq-cat.on { background: var(--primary-soft); color: var(--primaryColor); font-weight: 700; }
.lq-cat i { width: 18px; text-align: center; color: var(--muted); }
.lq-cat.on i { color: var(--primaryColor); }
.lq-cat .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lq-cat .w { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #fdecec; color: #b91c1c; }
.lq-hbars { display: grid; gap: 11px; }
.lq-hb { display: grid; grid-template-columns: 120px minmax(0,1fr) 46px; gap: 10px; align-items: center; font-size: 12.5px; }
.lq-hb > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-hb .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; display: flex; }
.lq-hb .tr i { display: block; height: 100%; background: var(--primaryColor); }
.lq-hb b { text-align: right; color: var(--head, #111827); }
.lq-dock { position: sticky; bottom: 16px; z-index: 5; margin: 0 16px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #111827; color: #fff; box-shadow: 0 16px 36px -12px rgba(17,24,39,.55); font-size: 13px; }
.lq-dock[hidden] { display: none; }
.lq-dock .btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.lq-dock .btn.pri { background: var(--primaryColor); border-color: var(--primaryColor); }
.lq-dock .btn[disabled] { opacity: .45; cursor: not-allowed; }
.lq-dock .mut { color: rgba(255,255,255,.65); }
.lq-dock .inp { background: #1f2937; color: #fff; border-color: rgba(255,255,255,.2); }
/* the selection docks (Candidates list, a vacancy's Suggested): up only while rows are ticked */
.cd-dock, .vx-dock { margin-top: 12px; }
@media (max-width: 640px) { .cd-dock-hint, .vx-dock-hint { display: none; } .cd-dock .btn, .vx-dock .btn { flex: 1 1 auto; } }
.lq-rail { margin-top: 18px; }
.lq-rail .card { margin-bottom: 0; }
.lq-steplist { display: grid; }
.lq-step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 16px; }
.lq-step:last-child { padding-bottom: 0; }
.lq-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #eef0f4; }
.lq-step:last-child::before { display: none; }
.lq-step .b { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--sbg, #f3f4f6); color: var(--sc, #4b5563); }
.lq-step .w { font-size: 13px; font-weight: 700; color: var(--head, #111827); }
.lq-step .w .off { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #f3f4f6; color: var(--muted); margin-left: 4px; }
.lq-step .m { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lq-step .n { font-size: 13px; font-weight: 800; color: var(--head, #111827); padding: 3px 9px; border-radius: 999px; background: #f3f4f6; }
.lq-step.is-off { opacity: .55; }
.lq-legend.mt { margin-top: 14px; }
@media (max-width: 1360px) {
  .lq-lh, .lq-lr { grid-template-columns: var(--cols-md, var(--cols)); }
  .lq-lh > .hm, .lq-lr > .hm { display: none; }
}
@media (max-width: 1200px) { .lq-main, .lq-main.left { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1100px) { .lq-rail { grid-template-columns: 1fr; } .lq-now.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .lq-strip, .lq-strip.flat { grid-template-columns: 1fr 1fr; }
  .lq-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lq-lh { display: none; }
  .lq-lr { grid-template-columns: var(--cols-sm); }
  .lq-lr > .hs { display: none; }
  .lq-now.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lq-steps { grid-template-columns: 1fr 1fr; }
  .lq-now.four { grid-template-columns: 1fr; }
  .lq-hb { grid-template-columns: 90px minmax(0,1fr) 40px; }
}

/* ==== Follow-ups: command view (design/mockups/leads/followups-command.html) ==== */
.fu-ahead span:last-child { background: rgba(255,255,255,.35); }
.fu-ahead span:first-child { background: #ffd166; }
.fu-late .t i { color: #fecaca; }
.fu-list { --cols: 150px minmax(220px,1.5fr) minmax(200px,1.3fr) minmax(150px,.9fr) minmax(130px,.8fr) 150px;
  --cols-md: 140px minmax(200px,1.5fr) minmax(170px,1.2fr) minmax(130px,.8fr) 150px; }
.fu-when { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.fu-prom .t { font-size: 13px; font-weight: 600; color: var(--head, #111827); display: flex; align-items: center; gap: 6px; min-width: 0; }
.fu-prom .code { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #f3f4f6; color: var(--muted); }
.fu-note { font-size: 12px; color: var(--muted); margin-top: 3px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-ladder .lq-pips { margin-top: 0; }
.fu-ladder .lq-pips i { height: 6px; }
.fu-ladder .lq-pips i.d { background: var(--pc, #f59e0b); }
.fu-ladder .lbl { font-size: 12px; font-weight: 700; color: var(--head, #111827); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-ladder .nx { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-list .lq-owner { font-size: 12.5px; color: var(--head, #111827); font-weight: 600; margin-top: 0; }
.fu-list .lq-owner .av-sm { width: 24px; height: 24px; font-size: 10px; }
.fu-tries { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.fu-tries .hot { color: #b45309; font-weight: 700; }
.fu-unowned { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 9px; border: 1px dashed #c4b5fd; color: #6d28d9; background: #faf5ff; }
.fu-foot { border-top: 0; }
.fu-team { display: grid; gap: 14px; }
.fu-tm { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.fu-tm .av-sm { width: 28px; height: 28px; font-size: 10px; }
.fu-tm .nm { font-size: 13px; font-weight: 700; color: var(--head, #111827); }
.fu-tm .cap { font-size: 11.5px; color: var(--muted); }
.fu-tm .tr { height: 6px; border-radius: 4px; background: #f1f3f8; margin-top: 5px; display: flex; overflow: hidden; }
.fu-tm .tr i { display: block; height: 100%; }
.fu-tm .kr { font-size: 12px; font-weight: 800; text-align: right; }
.fu-tm .kr small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.fu-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; align-items: end; height: 150px; }
.fu-day { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.fu-day .fu-bar { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 6px; overflow: hidden; }
.fu-day .fu-bar i { display: block; }
.fu-day .n { font-size: 12px; font-weight: 800; color: var(--head, #111827); }
.fu-day .d { font-size: 11px; color: var(--muted); font-weight: 600; }
.fu-day.today .d { color: var(--primaryColor); font-weight: 800; }
#fu-title .fu-unqueue { width: 26px; height: 26px; margin-left: 4px; vertical-align: 1px; }
@media (max-width: 900px) {
  .fu-list .lq-lr > .c-due { grid-column: 1 / -1; order: -1; display: flex; align-items: center; gap: 10px; }
  .fu-list .lq-lr > .c-due .fu-when { margin-top: 0; }
}

/* ==== Deduplication: command view (design/mockups/leads/duplicates-command.html) ==== */
a.lq-fs { display: block; text-decoration: none; }
a.lq-fs:hover { color: #fff; text-decoration: none; }
a.lq-v { text-decoration: none; }
a.lq-v:hover { text-decoration: none; color: var(--head, #111827); }
.dq-tabs .lq-views { border-bottom: 0; }
.dd-main { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 18px; align-items: start; }
.dd-main > * { min-width: 0; }
.dq-pending .dq-list { max-height: 720px; overflow-y: auto; }
.dd-pair { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border);
  position: relative; cursor: pointer; color: inherit; text-decoration: none; }
.dd-pair:hover { background: #fafbfe; color: inherit; text-decoration: none; }
.dd-pair.on { background: var(--primary-soft); }
.dd-pair.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primaryColor); }
.dd-faces { position: relative; width: 52px; height: 36px; }
.dd-faces .av-sm { position: absolute; top: 0; width: 34px; height: 34px; font-size: 11px; border: 2px solid #fff; }
.dd-faces .av-sm:first-child { left: 0; }
.dd-faces .av-sm:nth-child(2) { left: 18px; }
.dd-faces .k { position: absolute; right: -4px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: #dc2626; }
.dd-faces .k.pp { color: var(--purple, #8b5cf6); }
.dd-pair .nm { font-size: 13px; font-weight: 700; color: var(--head, #111827); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-pair .why { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.dd-pair .why .fl { color: #b45309; font-weight: 700; }
.dd-agree { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.dd-agree.hi { background: var(--green-bg, #e8f8ee); color: #15803d; }
.dd-agree.md { background: #fff4d6; color: #b45309; }
.dd-agree.lo { background: #fdecec; color: #b91c1c; }
.dq-head .dq-sub { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: -2px; }
.dq-head .ico-btn.disabled { opacity: .4; pointer-events: none; }
.dd-who { display: grid; grid-template-columns: minmax(0,1fr) 120px minmax(0,1fr); gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.dd-p { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dd-p.r { flex-direction: row-reverse; text-align: right; }
.dd-p .av-sm { width: 48px; height: 48px; font-size: 15px; flex: 0 0 48px; }
.dd-p .tag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-top: 5px; }
.dd-p .tag.keep { background: var(--green-bg, #e8f8ee); color: #15803d; }
.dd-p .tag.close { background: #f1ebfe; color: #6d28d9; }
.dd-p .tag.gone { background: #fdecec; color: #b91c1c; }
.dd-ring { position: relative; width: 96px; height: 96px; justify-self: center; }
.dd-ring svg { transform: rotate(-90deg); position: absolute; inset: 0; }
.dd-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dd-ring .c b { font-size: 16px; font-weight: 800; color: var(--head, #111827); line-height: 1; }
.dd-ring .c span { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.dd-sigs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.dd-sigs .lb { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.dq-dock .kbd { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
@media (max-width: 1100px) { .dd-main { grid-template-columns: minmax(0,1fr); } .dq-pending .dq-list { max-height: 360px; } }
@media (max-width: 600px) {
  .dd-who { grid-template-columns: 1fr; text-align: left; }
  .dd-p.r { flex-direction: row; text-align: left; }
  .dd-ring { justify-self: start; }
}

/* ==== Bulk import: command view (design/mockups/imports/bulk-import-command.html) ====
   Leads (leads/import) and Candidates (applications/import) share these. */
.bi-hero h2.bi-file { font-size: 24px; overflow-wrap: anywhere; }
.lq-tags a { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f3f4f6; color: var(--text, #374151); text-decoration: none; }
.lq-tags a.bad { background: #fdecec; color: #b91c1c; }
.lq-tags a.warn { background: var(--amber-bg, #fff4d6); color: #b45309; }
.lq-tags a:hover { filter: brightness(.96); text-decoration: none; }
.lq-seg a { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.lq-seg a.on { background: #fff; color: var(--head, #111827); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lq-seg a:hover { text-decoration: none; color: var(--head, #111827); }
.lq-fchip .x { margin-left: 2px; }
a.lq-fchip:hover { text-decoration: none; }
.bi-list { --cols: 56px minmax(150px,1fr) minmax(130px,1fr) minmax(190px,1.6fr) 90px; --cols-sm: 48px minmax(0,1fr) auto; }
.bi-rn { font-size: 12px; font-weight: 800; color: var(--muted); background: #f3f4f6; border-radius: 8px; padding: 4px 8px; justify-self: start; }
.bi-cell { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  padding: 4px 8px; border-radius: 8px; background: #fdecec; color: #b91c1c; border: 1px solid #fbd0d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-cell.warn { background: #fff4d6; color: #b45309; border-color: #fde6a8; }
.bi-cell .f { font-family: inherit; font-weight: 700; opacity: .7; }
.bi-cell.empty { font-style: italic; }
.bi-prob { min-width: 0; }
.bi-prob .t { font-size: 13px; font-weight: 700; color: var(--head, #111827); }
.bi-prob .t.ok { color: #15803d; }
.bi-prob .m { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.bi-acts { display: flex; justify-content: flex-end; gap: 6px; }
a.lq-pill:hover { text-decoration: none; filter: brightness(.97); }
.bi-map { display: grid; grid-template-columns: minmax(150px,1fr) 18px minmax(170px,1fr) minmax(130px,.9fr); gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.bi-map:last-child { border-bottom: 0; }
.bi-map .bi-cn { min-width: 0; }
.bi-map .h { font-size: 13px; font-weight: 700; color: var(--head, #111827); overflow-wrap: anywhere; }
.bi-map .s { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-map .arr { color: var(--faint, #9ca3af); }
.bi-map select.inp { width: 100%; min-width: 0; }
.bi-map.skip .bi-cn, .bi-map.skip .arr { opacity: .55; }
.bi-conf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bi-conf .m { width: 52px; height: 6px; border-radius: 4px; background: #eef0f4; overflow: hidden; flex: 0 0 52px; }
.bi-conf .m i { display: block; height: 100%; border-radius: 4px; }
.bi-conf .w { font-size: 11.5px; color: var(--muted); }
.bi-conf .w b { color: var(--head, #111827); }
.li-tabs tr.on td { background: var(--primary-soft); }
.bi-types { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bi-type { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--head, #111827); }
.bi-type .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primaryColor); flex: 0 0 30px; }
.bi-type.on { border-color: var(--primary-line); background: var(--primary-soft); }
.bi-type.off { color: var(--muted); font-weight: 500; }
.bi-type.off .ic { background: #f3f4f6; color: var(--muted); }
.bi-type > a:last-child, .bi-type > .xs { margin-left: auto; font-size: 11.5px; }
.bi-type a.nm { color: inherit; }
.bi-hist { display: grid; gap: 12px; }
.bi-h { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: start; color: inherit; text-decoration: none; }
.bi-h:hover { text-decoration: none; color: inherit; }
.bi-h:hover .t { color: var(--primaryColor); }
.bi-h .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bi-h .t { font-size: 13px; font-weight: 700; color: var(--head, #111827); }
.bi-h .m { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.bi-h .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-h .bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: #eef0f4; }
.bi-h .bar i { display: block; height: 100%; }
.bi-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 16px; }
.bi-tab { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.bi-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tc, #22c55e); }
.bi-tab .top { display: flex; align-items: center; gap: 8px; }
.bi-tab .nm { font-size: 13.5px; font-weight: 800; color: var(--head, #111827); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-tab .rows { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bi-tab .reads { font-size: 12px; color: var(--muted); }
.bi-tab .hr { font-size: 11px; color: var(--muted); }
.bi-tab.split { --tc: #f59e0b; }
.bi-tab.new { --tc: #2d5bf0; }
.bi-tab.skip { --tc: #9ca3af; opacity: .7; }
.bi-tab select.inp { width: 100%; }
@media (max-width: 900px) {
  .bi-list .lq-lr > .bi-prob { grid-column: 2 / -1; }
  .bi-map { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .bi-map .arr { display: none; }
}
#bi-rows { scroll-margin-top: 90px; }

/* ==== Candidates: command view (design/mockups/recruitment/candidates-command.html) ==== */
.lq-cnt { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.2); margin-left: 4px; }
.cd-list { --cols: 26px minmax(210px,1.5fr) minmax(150px,1fr) 130px 110px minmax(150px,1fr) 80px 40px;
  --cols-md: 26px minmax(200px,1.5fr) minmax(140px,1fr) 130px minmax(140px,1fr) 40px; --cols-sm: 26px minmax(0,1fr) auto; }
.cd-stage .lbl { font-size: 12.5px; font-weight: 700; color: var(--head, #111827); display: flex; align-items: center; gap: 6px; }
.cd-stage .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.cd-stage .lq-pips { margin-top: 6px; }
.cd-stage .lq-pips i.d { background: var(--pc); }
.cd-stage .why { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cd-tags span { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #f3f4f6; color: var(--text, #374151); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-scope { border-bottom: 1px solid var(--border); }
.cd-scope .cd-queue-title { margin-left: auto; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: #b91c1c; padding-bottom: 6px; }
.cd-scope .cd-queue-title[hidden] { display: none; }
.cd-scope .cd-unqueue { width: 26px; height: 26px; }
.cd-cv { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.cd-cv:last-child { border-bottom: 0; }
.cd-cv:hover { background: #fafbfe; text-decoration: none; color: inherit; }
.cd-cv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==== Candidate profile: command view (design/mockups/recruitment/candidate-command.html); the mockup's cd- classes are c3- here ==== */
.c3-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 30px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 150% at 0% 0%, #5b82f5 0%, #2d5bf0 40%, #1c3aa8 100%); box-shadow: 0 18px 40px -18px rgba(45,91,240,.55); }
.c3-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(270deg, transparent 0%, #000 75%); -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 75%); }
.c3-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -240px; border-radius: 50%; background: rgba(255,255,255,.07); }
.c3-hero > * { position: relative; z-index: 1; }
.c3-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 24px; align-items: center; }
.c3-photo { position: relative; width: 112px; height: 132px; border-radius: 18px; background: linear-gradient(160deg, #ffd166, #f59e0b); color: #5a3a00;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.c3-photo small { font-size: 10px; font-weight: 700; margin-top: 6px; color: #7c5300; opacity: .8; display: flex; align-items: center; gap: 4px; }
.c3-photo .ok { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: #22c55e; border: 3px solid #2449cf; font-size: 10px; color: #fff; display: flex; align-items: center; justify-content: center; }
.c3-hero h2 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.c3-meta { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.85); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.c3-meta i { opacity: .75; margin-right: 5px; }
.c3-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.c3-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.c3-tag.ok { background: rgba(34,197,94,.22); border-color: rgba(134,239,172,.45); }
.c3-tag.hot { background: #fff4d6; color: #92580a; border-color: transparent; }
.c3-tag.bad { background: #fee2e2; color: #991b1b; border-color: transparent; }
.c3-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn.c3-btn-w { background: #fff; color: #1c3aa8; border: 0; font-weight: 700; } .btn.c3-btn-w:hover { background: #eef2fe; color: #1c3aa8; }
.btn.c3-btn-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); } .btn.c3-btn-g:hover { background: rgba(255,255,255,.2); color: #fff; }
.c3-btn-wa { background: #25d366; color: #063d1c; border: 0; font-weight: 700; }
.c3-ready { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 14px 18px 14px 14px; min-width: 300px; }
.c3-ring { position: relative; width: 92px; height: 92px; flex: 0 0 92px; }
.c3-ring svg { transform: rotate(-90deg); }
.c3-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.c3-ring .n { font-size: 24px; font-weight: 800; line-height: 1; }
.c3-ring .s { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.c3-ready h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.c3-ready ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; }
.c3-ready li i { width: 16px; color: #fca5a5; }
.c3-ready li.ok i { color: #86efac; }
.c3-ready a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* the numbers */
.c3-kpis { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.c3-kpi { padding: 16px 18px; border-right: 1px solid var(--border); }
.c3-kpi:last-child { border-right: 0; }
.c3-kpi .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.c3-kpi .k i { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.c3-kpi .v { font-size: 24px; font-weight: 800; color: var(--head); margin-top: 8px; letter-spacing: -.02em; }
.c3-kpi .v small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.c3-kpi .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.c3-mini { height: 5px; border-radius: 4px; background: var(--border-2); margin-top: 8px; overflow: hidden; display: flex; gap: 2px; }
.c3-mini i { display: block; height: 100%; }

/* journey */
.c3-journey { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.c3-journey .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.c3-steps { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0,1fr)); gap: 6px; }
.c3-s .bar { height: 6px; border-radius: 4px; background: var(--border-2); margin-bottom: 8px; }
.c3-s.done .bar { background: #22c55e; } .c3-s.now .bar { background: linear-gradient(90deg, #22c55e, #2d5bf0); }
.c3-s .t { font-size: 12.5px; font-weight: 700; color: var(--head); display: flex; align-items: center; gap: 6px; }
.c3-s .d { font-size: 11px; color: var(--muted); margin-top: 1px; }
.c3-s.todo .t { color: var(--faint); }
.c3-s.now .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primaryColor); box-shadow: 0 0 0 4px var(--primary-soft); }

/* tabs */
.c3-tabs { display: flex; gap: 4px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px; overflow-x: auto; position: sticky; top: 8px; z-index: 4; box-shadow: var(--shadow); }
.c3-tabs a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; }
.c3-tabs a .ct { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #f3f4f6; color: var(--muted); }
.c3-tabs a .ct.bad { background: var(--red-bg); color: #b91c1c; }
.c3-tabs a.on { background: var(--head); color: #fff; } .c3-tabs a.on .ct { background: rgba(255,255,255,.18); color: #fff; }

/* passport data page */
.c3-pass { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #c9d5fc; background: linear-gradient(135deg, #f3f6ff 0%, #eaf0ff 60%, #f6f2ff 100%); }
.c3-pass::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(45,91,240,.05) 14px 15px); }
.c3-pass .band { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #1c3aa8; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.c3-pass .band .exp { margin-left: auto; background: #ef4444; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.c3-pass .body { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 18px; padding: 18px; }
.c3-pass .ph { width: 96px; height: 116px; border-radius: 10px; background: linear-gradient(160deg, #ffd166, #f59e0b); color: #5a3a00; font-weight: 800; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.c3-pass dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 16px; margin: 0; }
.c3-pass dt { font-size: 10px; font-weight: 700; color: #6b7a9c; text-transform: uppercase; letter-spacing: .06em; }
.c3-pass dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--head); }
.c3-pass dd.bad { color: #b91c1c; }
.c3-mrz { position: relative; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: .14em; color: #334155; background: rgba(255,255,255,.7); padding: 10px 18px; border-top: 1px dashed #c9d5fc; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.c3-pass-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--red-bg); border: 1px solid #f7c6c6; margin-top: 12px; font-size: 12.5px; color: #991b1b; }
.c3-pass-note b { color: #7f1d1d; }

/* work history */
.c3-work { position: relative; padding-left: 26px; }
.c3-work::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.c3-job { position: relative; padding: 0 0 18px; }
.c3-job:last-child { padding-bottom: 0; }
.c3-job::before { content: ""; position: absolute; left: -23px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primaryColor); }
.c3-job.gulf::before { border-color: #f0a500; }
.c3-job .t { font-weight: 700; color: var(--head); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c3-job .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.c3-job .chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.c3-flag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--amber-bg); color: #92580a; }
.c3-flag.in { background: var(--blue-bg); color: var(--primaryColor); }
.c3-yrs { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 4px 0 14px; }
.c3-lic { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.c3-licc { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.c3-licc .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 38px; }

/* applications */
.c3-app { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.c3-app:last-child { margin-bottom: 0; }
.c3-app.live { border-color: var(--primary-line); background: #fafbff; }
.c3-app .flag { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primaryColor); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.c3-fit { position: relative; width: 40px; height: 40px; flex: 0 0 40px; }
.c3-fit svg { transform: rotate(-90deg); }
.c3-fit span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--head); }

/* activity */
.c3-act > div { display: flex; gap: 12px; padding: 0 0 14px; }
.c3-act > div:last-child { padding-bottom: 0; }
.c3-act .ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 32px; font-size: 13px; }
.c3-act .t { font-size: 13px; font-weight: 600; color: var(--head); }
.c3-act .m { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* rail */
.c3-kv { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 10px 12px; font-size: 12.5px; margin: 0; }
.c3-kv dt { color: var(--muted); } .c3-kv dd { margin: 0; color: var(--head); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.c3-cons > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.c3-cons > div:last-child { border-bottom: 0; }
.c3-cons .t { font-size: 13px; font-weight: 700; color: var(--head); }
.c3-cons .m { font-size: 11.5px; color: var(--muted); }
.c3-sw { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: #22c55e; position: relative; flex: 0 0 38px; }
.c3-sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.c3-sw.off { background: var(--border-2); } .c3-sw.off::after { right: auto; left: 3px; }
.c3-orig > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.c3-orig > div:last-child { border-bottom: 0; }
.c3-orig .ic { width: 34px; height: 40px; border-radius: 6px; background: linear-gradient(160deg, #fef4e2, #fde3b0); color: #b45309; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.c3-orig .ic.back { background: #f3f4f6; color: var(--faint); }
.c3-cv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.c3-cv .th { width: 36px; height: 44px; border-radius: 6px; background: linear-gradient(160deg, #eef2fe, #dbe4fd); display: flex; align-items: center; justify-content: center; color: var(--primaryColor); flex: 0 0 36px; }
.c3-fitv { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.c3-fitv:last-child { border-bottom: 0; }

/* profile form */
.c3-sec { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.c3-sec:last-child { border-bottom: 0; }
.c3-sec h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.c3-sec h3 i { width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); color: var(--primaryColor); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.c3-form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 16px; }
.c3-form .f label { display: block; font-size: 12px; font-weight: 600; color: var(--label); margin-bottom: 5px; }
.c3-form .f .inp { width: 100%; }
.c3-form .f.span2 { grid-column: span 2; } .c3-form .f.span3 { grid-column: 1 / -1; }


@media (max-width: 1200px) { .c3-kpis { grid-template-columns: repeat(3, 1fr); } .c3-kpi:nth-child(3) { border-right: 0; } .c3-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--border); } }
@media (max-width: 1100px) { .c3-top { grid-template-columns: auto minmax(0,1fr); } .c3-ready { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .c3-hero { padding: 20px 18px; border-radius: 14px; } .c3-hero h2 { font-size: 24px; }
  .c3-top { grid-template-columns: 1fr; } .c3-photo { width: 84px; height: 100px; font-size: 28px; } .c3-ready { min-width: 0; }
  .c3-kpis { grid-template-columns: repeat(2, 1fr); } .c3-kpi { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); } .c3-kpi:nth-child(2n) { border-right: 0 !important; }
  .c3-steps { grid-template-columns: repeat(7, minmax(54px, 1fr)); overflow-x: auto; } .c3-s .d { display: none; }
  .c3-pass .body { grid-template-columns: 1fr; } .c3-pass .ph { display: none; } .c3-pass dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .c3-lic { grid-template-columns: 1fr; } .c3-form { grid-template-columns: 1fr; } .c3-form .f.span2 { grid-column: auto; }
  .c3-app { flex-wrap: wrap; }
}
.c3-hero::after { pointer-events: none; }
.c3-hero h2 { line-height: 1.15; overflow-wrap: anywhere; }
.c3-photo { overflow: hidden; }
.c3-photo.has { background: #fff; }
.c3-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c3-photo .c3-photo-act { position: absolute; left: 0; right: 0; bottom: 0; border: 0; padding: 5px 0; font: inherit; font-size: 10.5px; font-weight: 700;
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.c3-photo .c3-photo-act:hover { background: rgba(0,0,0,.5); }
.c3-photo .c3-photo-x { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; cursor: pointer; }
.c3-photo .ok { z-index: 2; }
.c3-tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.c3-ready li.more { padding-left: 22px; opacity: .75; }
.c3-pass .band .exp.green { background: #22c55e; }
.c3-pass .band .exp.amber { background: #f59e0b; }
.c3-pass .ph { overflow: hidden; position: relative; }
.c3-pass .ph img { width: 100%; height: 100%; object-fit: cover; }
.c3-pass-note.warn { background: var(--amber-bg); border-color: #fde6a8; color: #92400e; }
.c3-pass-note.warn b { color: #78350f; }
.c3-app .flag.off { background: #f3f4f6; color: var(--muted); }
.c3-tabs a:hover { text-decoration: none; background: #f3f4f6; }
.c3-tabs a.on:hover { background: var(--head, #111827); }
.c3-tabs { top: 70px; }
.c3-journey .head .b { overflow-wrap: anywhere; }

/* ==== Vacancies: command view (design/mockups/recruitment/vacancies-command.html) ==== */
.vc-list { --cols: minmax(200px,1.4fr) minmax(150px,1fr) minmax(130px,.9fr) minmax(140px,1fr) 100px 36px 90px 32px;
  --cols-md: minmax(190px,1.4fr) minmax(140px,1fr) minmax(140px,1fr) 100px 90px 32px; --cols-sm: minmax(0,1fr) auto; }
.vc-ref { font-size: 11px; font-weight: 800; color: var(--primaryColor); background: var(--primary-soft); border-radius: 6px; padding: 2px 7px; margin-right: 6px; vertical-align: 1px; }
.vc-fill .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; }
.vc-fill .tr i { display: block; height: 100%; border-radius: 5px; }
.vc-fill .m { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }
.vc-fill .m b { color: var(--head, #111827); }
.vc-fill .vc-match-chip { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primaryColor); }
.vc-money .t { font-size: 13px; font-weight: 700; color: var(--head, #111827); }
.vc-money .m { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-money .m b { color: #15803d; }
.vc-agent { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #f1ebfe; color: #6d28d9; margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-lr.rc-off { opacity: .6; }

/* ==== Employers: command view (design/mockups/recruitment/employers-command.html) ==== */
.em-list { --cols: minmax(220px,1.5fr) minmax(130px,.9fr) 90px minmax(130px,1fr) 130px 100px 100px 32px;
  --cols-md: minmax(210px,1.5fr) 90px minmax(130px,1fr) 130px 100px 32px; --cols-sm: minmax(0,1fr) auto; }
.em-watch { --cols: minmax(0,1.2fr) minmax(0,1.2fr) 110px 90px; --cols-md: minmax(0,1.2fr) minmax(0,1.2fr) 110px 90px; --cols-sm: minmax(0,1fr) auto; }
.em-logo { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex: 0 0 40px; }
.em-num { font-size: 15px; font-weight: 800; color: var(--head, #111827); }
.em-open a:hover .em-num { color: var(--primaryColor); }
.em-bar .tr { height: 6px; border-radius: 4px; background: #eef0f4; overflow: hidden; margin-top: 4px; }
.em-bar .tr i { display: block; height: 100%; background: var(--primaryColor); border-radius: 4px; }
.lq-lr.em-off { opacity: .75; }
.em-fmt { display: grid; grid-template-columns: 40px minmax(0,1.3fr) minmax(0,1fr) 120px 70px 32px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.em-fmt > * { min-width: 0; }
@media (max-width: 900px) { .em-fmt { grid-template-columns: 40px minmax(0,1fr) 32px; } .em-fmt > .hs { display: none; } }

/* ==== Agents & B2B: command view (design/mockups/recruitment/agents-command.html) ==== */
.ag-list { --cols: minmax(170px,1.4fr) 50px 60px 56px 130px 32px; --cols-md: minmax(170px,1.4fr) 50px 60px 56px 130px 32px; --cols-sm: minmax(0,1fr) auto; }
.ag-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.ag-k { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.ag-k i { font-size: 16px; margin-top: 2px; }
.ag-k b { color: #fff; }
.ag-bal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ag-bal.owe { background: #fff4d6; color: #b45309; }
.ag-bal.due { background: var(--green-bg, #e8f8ee); color: #15803d; }
.ag-bal.none { background: #f3f4f6; color: var(--muted); font-weight: 600; }
.ag-balance { display: flex; flex-wrap: wrap; gap: 4px; }
.ag-n { font-size: 14px; font-weight: 800; color: var(--head, #111827); }
.ag-set { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,1fr) 70px minmax(150px,1fr) 130px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.ag-set > * { min-width: 0; }
.ag-set-h { padding: 10px 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ag-money { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #eef0f4; }
.ag-money i { display: block; height: 100%; }
.ag-ml { display: flex; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.ag-ml b { color: var(--head, #111827); }
@media (max-width: 900px) { .ag-kinds { grid-template-columns: 1fr; } .ag-set { grid-template-columns: minmax(0,1fr) auto; } .ag-set > .hs { display: none; } }

/* ==== Applications: command view (design/mockups/recruitment/applications-command.html) ==== */
.ap-list { --cols: 26px minmax(190px,1.3fr) 44px minmax(160px,1.1fr) minmax(140px,1fr) minmax(140px,1fr) auto;
  --cols-md: 26px minmax(180px,1.3fr) 44px minmax(150px,1.1fr) minmax(140px,1fr) auto; --cols-sm: 26px minmax(0,1fr) auto; }
.ap-fit { position: relative; width: 40px; height: 40px; display: block; }
.ap-fit svg { transform: rotate(-90deg); position: absolute; inset: 0; }
.ap-fit b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--head, #111827); }
.ap-stage .lbl { font-size: 12.5px; font-weight: 700; color: var(--head, #111827); display: flex; align-items: center; gap: 6px; }
.ap-stage .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.ap-stage .lq-pips { margin-top: 6px; }
.ap-stage .lq-pips i.d { background: var(--pc); }
.ap-stage .why { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sh { display: grid; gap: 10px; }
.ap-sh div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ap-sh i { font-size: 16px; }
.ap-queue-title { font-size: 13px; color: #b45309; display: inline-flex; align-items: center; gap: 6px; }
.ap-queue-title[hidden] { display: none; }
.lq-out button { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.14); color: rgba(255,255,255,.88); white-space: nowrap; cursor: pointer; border: 0; text-align: left; }
.lq-out button.on { background: #fff; color: #1c3aa8; }

/* ==== Interviews: command view (design/mockups/recruitment/interviews-command.html) ==== */
.iv-list { --cols: 64px minmax(170px,1.2fr) minmax(150px,1fr) minmax(150px,1fr) minmax(130px,1fr) auto;
  --cols-md: 64px minmax(170px,1.2fr) minmax(150px,1fr) minmax(130px,1fr) auto; --cols-sm: 64px minmax(0,1fr) auto; }
.iv-when { width: 64px; text-align: center; border-radius: 12px; padding: 6px 4px; background: #f3f4f6; }
.iv-when b { display: block; font-size: 15px; font-weight: 800; color: var(--head, #111827); line-height: 1.1; }
.iv-when span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.iv-when.now { background: var(--primary-soft); }
.iv-when.now b, .iv-when.now span { color: var(--primaryColor); }
.iv-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.iv-type.panel { background: var(--primary-soft); color: var(--primaryColor); }
.iv-type.test { background: #f1ebfe; color: #6d28d9; }
.iv-type.tel { background: #f3f4f6; color: var(--text, #374151); }
.iv-mode { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-res { display: grid; gap: 12px; }
.iv-r { display: grid; grid-template-columns: 120px minmax(0,1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.iv-r .tr { height: 10px; border-radius: 6px; background: #eef0f4; overflow: hidden; display: flex; }
.iv-r .tr i { display: block; height: 100%; }
.iv-r b { text-align: right; color: var(--head, #111827); }
.iv-queue-title { color: #b45309; font-size: 13px; }
.iv-queue-title[hidden] { display: none; }

/* ==== Offers: command view (design/mockups/recruitment/offers-command.html) ==== */
.of-list { --cols: minmax(170px,1.3fr) minmax(110px,.8fr) 90px minmax(130px,1fr) 32px; --cols-md: minmax(170px,1.3fr) minmax(110px,.8fr) 90px minmax(130px,1fr) 32px; --cols-sm: minmax(0,1fr) auto; }
.of-no { font-size: 12px; font-weight: 800; color: var(--muted); }
.of-sal { font-size: 13px; font-weight: 800; color: var(--head, #111827); }
.of-why { display: grid; gap: 10px; }
.of-w { display: grid; grid-template-columns: 150px minmax(0,1fr) 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.of-w > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-w .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; }
.of-w .tr i { display: block; height: 100%; border-radius: 5px; }
.of-w b { text-align: right; color: var(--head, #111827); }
.of-queue-title { color: #b91c1c; font-size: 13px; }
.of-queue-title[hidden] { display: none; }

/* ==== Placements: command view (design/mockups/recruitment/placement-command.html) ==== */
.pl-list { --cols: minmax(190px,1.3fr) minmax(150px,1fr) minmax(150px,1.1fr) minmax(110px,.8fr) 120px auto;
  --cols-md: minmax(180px,1.3fr) minmax(140px,1fr) minmax(150px,1.1fr) 120px auto; --cols-sm: minmax(0,1fr) auto; }
.pl-g .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; }
.pl-g .tr i { display: block; height: 100%; border-radius: 5px; }
.pl-g .m { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.pl-g .m b { color: var(--head, #111827); }
.pl-fee { font-size: 13px; font-weight: 800; color: var(--head, #111827); }
.pl-terms { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 10px 14px; font-size: 13px; margin: 0; }
.pl-terms dt { color: var(--muted); font-weight: 500; }
.pl-terms dd { margin: 0; color: var(--head, #111827); font-weight: 600; }

/* ==== Credentialing / Deployment trackers: command view (recruitment/credentialing-command.html, deployment-command.html) ==== */
.pr-stages { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0,1fr)); gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.pr-s { text-align: left; background: transparent; border: 0; color: #fff; padding: 8px 10px; border-radius: 12px; cursor: pointer; font: inherit; position: relative; min-width: 0; }
.pr-s:hover { background: rgba(255,255,255,.08); }
.pr-s.on { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.pr-s .t { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 54px; }
.pr-s .n { font-size: 22px; font-weight: 800; margin-top: 2px; }
.pr-s .d { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.75); margin-top: 6px; min-height: 13px; }
.pr-s .d i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); }
.pr-s .d i.hot { background: #fca5a5; }
.pr-s .st { position: absolute; top: 6px; right: 8px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(239,68,68,.35); color: #fee2e2; }
.pr-note { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.82); display: flex; gap: 8px; align-items: flex-start; }
.pr-note a { color: #fff; text-decoration: underline; }
.pr-note b { color: #fff; }
.inp.pr-hero-sel { width: 220px; background-color: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.inp.pr-hero-sel option { color: var(--head, #111827); }
.kb-col.pr-hl { box-shadow: 0 0 0 2px var(--primaryColor); border-radius: 12px; transition: box-shadow .2s; }
.pr-stuck-list { --cols: minmax(0,1.2fr) 70px minmax(0,1.2fr); --cols-md: minmax(0,1.2fr) 70px minmax(0,1.2fr); --cols-sm: minmax(0,1fr) auto; }
@media (max-width: 900px) { .pr-stages { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 600px) { .pr-stages { grid-template-columns: 1fr 1fr; } .inp.pr-hero-sel { width: 100%; } }

/* ==== CV inbox: command view (design/mockups/recruitment/cv-parsing-command.html) ==== */
.cv-hero .lq-strip { margin-top: 18px; }

/* ==== CV wizard: command view (design/mockups/recruitment/cv-wizard-command.html) ==== */
.w2-hero h2 { font-size: 26px; }
.w2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.w2-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.w2-tally { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.w2-tally > div { text-align: center; }
.w2-tally b { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.w2-tally span { font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.w2-hero .wz-rail.w2-track { background: transparent; border: 0; box-shadow: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.16); border-radius: 0; }
.w2-hero .wz-seg .t { color: #fff; }
.w2-hero .wz-seg:not(.on):not(.done) .t { color: rgba(255,255,255,.7); }
.w2-hero .wz-seg .d { color: rgba(255,255,255,.75); }
.w2-hero .wz-ico { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.w2-hero .wz-seg.on .wz-ico { background: #fff; color: #1c3aa8; box-shadow: none; }
.w2-hero .wz-seg.done .wz-ico { background: #22c55e; color: #fff; }
.w2-hero .wz-seg + .wz-seg::before { background: rgba(255,255,255,.2); }
.w2-hero .wz-seg.done + .wz-seg::before { background: linear-gradient(90deg, #86efac, #fff); }
@media (max-width: 900px) { .w2-tally { margin-left: 0; } }

/* ==== Document Vault: command view (design/mockups/vault/documents-command.html) ==== */
.vt-list { --cols: 26px minmax(200px,1.5fr) minmax(130px,1fr) minmax(100px,.8fr) 110px minmax(110px,.8fr) 32px;
  --cols-md: 26px minmax(190px,1.5fr) minmax(120px,1fr) 110px minmax(100px,.8fr) 32px; --cols-sm: 26px minmax(0,1fr) auto; }
#vt-upload-card.vt-hl { box-shadow: 0 0 0 2px var(--primaryColor); transition: box-shadow .2s; }

/* ==== Call logs: command view (design/mockups/telephony/call-logs-command.html) ==== */
.cl-list { --cols: 32px 64px minmax(110px,.8fr) minmax(170px,1.3fr) minmax(100px,.8fr) 110px minmax(120px,.9fr) 90px;
  --cols-md: 32px 64px minmax(110px,.8fr) minmax(170px,1.3fr) 110px minmax(120px,.9fr) 90px; --cols-sm: 32px minmax(0,1fr) auto; }
.cl-hours { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin-top: 12px; }
.cl-hours div { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-width: 0; background: rgba(255,255,255,.12); }
.cl-hours i { display: block; }
.cl-hours i.o { background: rgba(255,255,255,.7); }
.cl-hours i.n { background: #ffd166; }
.cl-hl { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.65); margin-top: 4px; }
.cl-dir { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cl-dir.out { background: var(--primary-soft); color: var(--primaryColor); }
.cl-dir.in { background: #f1ebfe; color: #6d28d9; }
.cl-dir.miss { background: #fdecec; color: #b91c1c; }
.cl-time { font-size: 12.5px; font-weight: 800; color: var(--head, #111827); white-space: nowrap; }
.cl-agent .av-sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: 10px; }
.cl-dur .tr { height: 6px; border-radius: 4px; background: #eef0f4; overflow: hidden; }
.cl-dur .tr i { display: block; height: 100%; border-radius: 4px; background: var(--primaryColor); }
.cl-dur .m { font-size: 12px; font-weight: 700; color: var(--head, #111827); margin-bottom: 4px; }
a.lq-pill { text-decoration: none; }

/* ==== Number masking: command view (design/mockups/telephony/masking-command.html) ==== */
.mk-log { --cols: 64px minmax(160px,1fr) minmax(170px,1.3fr) minmax(110px,.9fr) minmax(90px,.8fr) 80px;
  --cols-md: 64px minmax(150px,1fr) minmax(110px,.9fr) minmax(90px,.8fr) 80px; --cols-sm: minmax(0,1fr) auto; }
.mk-log .lq-who .av-sm { width: 30px; height: 30px; flex: 0 0 30px; font-size: 10px; }
.mk-when { color: var(--head, #111827); font-size: 12.5px; white-space: nowrap; }
.lq-pill.dark { background: #111827; color: #fff; }

/* ---- Roles: command view (users/roles-command.html) ---- */
#role-table .rl-perm .n { font-size: 12px; font-weight: 800; color: var(--head); }
#role-table .rl-perm .tr { height: 6px; border-radius: 4px; background: #eef0f4; overflow: hidden; margin-top: 4px; }
#role-table .rl-perm .tr i { display: block; height: 100%; border-radius: 4px; background: var(--primaryColor); }
#role-table .rl-users { font-size: 15px; font-weight: 800; color: var(--head); }
#role-table .rl-users.none { color: var(--muted); font-weight: 600; }
#role-table .lq-qa { display: flex; gap: 4px; justify-content: flex-end; }

/* ---- Master records: command header (masters/master-records-command.html) ---- */
.mx-hero { margin-bottom: 18px; }
.mx-pulse .lq-p { cursor: pointer; }
.mx-pulse .lq-p:hover { background: rgba(255,255,255,.14); }
.mx-hero h2 i { margin-right: 8px; }

/* ---- Dashboard: command view (dashboard-command.html); db- classes are its own ---- */
.db-hello { display: flex; align-items: center; gap: 14px; }
.db-hello .av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; border: 1px solid rgba(255,255,255,.3); }

.db-today { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.db-t { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; color: inherit; }
.db-t:hover { border-color: var(--primary-line); color: inherit; text-decoration: none; box-shadow: 0 8px 20px -14px rgba(45,91,240,.5); }
.db-t::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--qc); }
.db-t .top { display: flex; align-items: center; gap: 10px; }
.db-t .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--qbg); color: var(--qc); flex: 0 0 34px; }
.db-t .n { font-size: 22px; font-weight: 800; color: var(--head); line-height: 1; }
.db-t .l { font-size: 12.5px; font-weight: 700; color: var(--head); }
.db-t .m { font-size: 11.5px; color: var(--muted); }
.db-t .go { font-size: 12px; font-weight: 700; color: var(--primaryColor); margin-top: auto; }
.db-t.red { --qc: #ef4444; --qbg: #fdecec; }
.db-t.amber { --qc: #f59e0b; --qbg: #fff4d6; }
.db-t.blue { --qc: #2d5bf0; --qbg: #eef2fe; }
.db-t.purple { --qc: #8b5cf6; --qbg: #f1ebfe; }
.db-t.slate { --qc: #64748b; --qbg: #f1f5f9; }

.db-main { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; align-items: start; }
.db-main > div { min-width: 0; }
.db-main > div > .card { margin-bottom: 18px; }

.db-pipe { display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); gap: 8px; align-items: end; height: 210px; padding-top: 10px; }
.db-st { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.db-st .n { font-size: 14px; font-weight: 800; color: var(--head); }
.db-st .bar2 { width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #5b82f5, #2d5bf0); }
.db-st.warn .bar2 { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.db-st.done .bar2 { background: linear-gradient(180deg, #4ade80, #22c55e); }
.db-st .l { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.25; min-height: 28px; }
.db-st .stuck { font-size: 10.5px; font-weight: 800; color: #b91c1c; background: #fdecec; border-radius: 999px; padding: 1px 6px; }

.db-vac { display: grid; grid-template-columns: 64px minmax(120px,1.2fr) minmax(0,1fr) minmax(110px,1fr) 96px 80px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.db-vac:hover { background: #fafbfe; }
.db-vac .ref { font-size: 12px; font-weight: 800; color: var(--primaryColor); }
.db-fill .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; }
.db-fill .tr i { display: block; height: 100%; border-radius: 5px; }
.db-fill .m { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.db-fill .m b { color: var(--head); }

.db-bars { display: grid; gap: 11px; }
.db-b { display: grid; grid-template-columns: 110px minmax(0,1fr) 50px; gap: 10px; align-items: center; font-size: 13px; }
.db-b .tr { height: 8px; border-radius: 5px; background: #eef0f4; overflow: hidden; }
.db-b .tr i { display: block; height: 100%; border-radius: 5px; background: var(--primaryColor); }
.db-b b { text-align: right; color: var(--head); }

.db-donut { display: flex; align-items: center; gap: 18px; }
.db-legend { display: grid; gap: 9px; font-size: 12.5px; flex: 1; }
.db-legend span { display: flex; align-items: center; gap: 8px; }
.db-legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.db-legend b { margin-left: auto; color: var(--head); }

@media (max-width: 1200px) { .db-main { grid-template-columns: minmax(0,1fr); } .db-today { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .db-today { grid-template-columns: 1fr 1fr; }
  .db-pipe { grid-template-columns: repeat(9, 56px); overflow-x: auto; }
  .db-vac { grid-template-columns: 70px minmax(0,1fr) 90px; }
  .db-vac > .c-emp, .db-vac > .c-target { display: none; }
}
@media (max-width: 600px) { .db-today { grid-template-columns: 1fr; } .db-donut { flex-direction: column; align-items: stretch; } }
.lq-pulse a.lq-p { color: inherit; text-decoration: none; }
.lq-pulse a.lq-p:hover { background: rgba(255,255,255,.14); }
.db-pipe { grid-template-columns: repeat(var(--n, 9), minmax(0,1fr)); }
.db-st { color: inherit; text-decoration: none; }
.db-st:hover { text-decoration: none; color: inherit; }
.db-st:hover .bar2 { filter: brightness(1.08); }
a.db-vac { color: inherit; text-decoration: none; }
.db-iv { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.db-iv:last-child { border-bottom: 0; }
.db-iv:hover { background: #fafbfe; color: inherit; text-decoration: none; }
.db-b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-t.db-none { --qc: #22c55e; --qbg: #e8f8ee; grid-column: 1 / -1; }
@media (max-width: 900px) { .db-pipe { grid-template-columns: repeat(var(--n, 9), 56px); } }
.db-today { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 600px) { .db-vac > .lq-pill { display: none; } }
#pp-rules-card { scroll-margin-top: 90px; }

/* ---- Branded CV desk: command view (recruitment/branded-cv-desk-command.html) ---- */
.lq-out a.bcv-out { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.14); color: rgba(255,255,255,.88); white-space: nowrap; text-decoration: none; }
.lq-out a.bcv-out:hover { color: #fff; text-decoration: none; }
.lq-out a.bcv-out.on { background: #fff; color: #1c3aa8; }
#bcv-list .bcv-ref { font-size: 12.5px; font-weight: 800; }
#bcv-list { min-width: 0; }

/* ---- Branded CV: command view (recruitment/branded-cv-command.html) ---- */
.bcv-hero .bcv-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bcv-hero .bcv-who .av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; border: 1px solid rgba(255,255,255,.3); flex: 0 0 52px; overflow: hidden; color: #fff; }
.bcv-hero select.bcv-vac { font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 3px 10px; margin-left: 4px; max-width: 100%; cursor: pointer; }
.bcv-hero select.bcv-vac option { color: #111827; }
.bcv-hero .lq-btn-g:disabled, .bcv-hero .lq-btn-w:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Employer page: command view (recruitment/employer-command.html) ---- */
.em-hero .em-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.em-hero .em-who .av, .cx-who .av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; border: 1px solid rgba(255,255,255,.3); flex: 0 0 52px; color: #fff; }
.em-hero .em-tags, .lq-hero .lq-tags-w { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lq-hero .lq-pill { background: rgba(255,255,255,.16); color: #fff; }
.lq-hero .lq-pill.green { background: rgba(34,197,94,.28); color: #fff; }
.lq-hero .lq-pill.amber { background: rgba(245,158,11,.34); color: #fff; }
.lq-hero .lq-pill.red { background: rgba(239,68,68,.38); color: #fff; }
.lq-hero .lq-pill.blue, .lq-hero .lq-pill.purple { background: rgba(255,255,255,.22); color: #fff; }

/* ---- Processing file: command view (recruitment/processing-file-command.html) ---- */
.pr-file-hero .em-who .av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; border: 1px solid rgba(255,255,255,.3); flex: 0 0 52px; color: #fff; }
.pr-file-hero .em-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pr-file-hero .em-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-track { overflow-x: auto; }
.pr-track a.lq-st { text-decoration: none; }
.pr-track a.lq-st:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.pr-track .lq-st .l, .pr-track .lq-st .s { display: block; }
.pr-track .lq-st.fail .b { background: #ef4444; border-color: #ef4444; color: #fff; }
.pr-track .lq-st.pr-sel { box-shadow: inset 0 0 0 2px #fff; }
@media (max-width: 900px) { .pr-track { grid-template-columns: repeat(var(--n), 150px) !important; } }

/* ---- shared by the detail pages' heroes (employer, processing file, vault document …) ---- */
.lq-hero .em-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lq-hero .em-who .av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; border: 1px solid rgba(255,255,255,.3); flex: 0 0 52px; color: #fff; }
.lq-hero .em-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lq-hero .em-who h2 { overflow-wrap: anywhere; }
#jt-rules { scroll-margin-top: 90px; }

/* a long subtitle wraps inside the title block instead of pushing the actions to a row of their own */
.lq-top > :first-child:not(.lq-acts) { flex: 1 1 380px; min-width: 0; }
.lq-top > .lq-acts { flex: 0 1 auto; }
.cal-hero .lq-pulse { grid-template-columns: repeat(3, minmax(0,1fr)); } .cal-hero .em-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .cal-hero .lq-pill .fa-square { font-size: 9px; }

/* a group header that is a table row (the Leads list) stays a table row: the shared .lq-grp
   is display:flex for the div lists, and a flex <tr> squeezes its colspan cell into the first column */
tr.lq-grp { display: table-row; padding: 0; background: none; border-bottom: 0; }
.db-main.one { grid-template-columns: minmax(0,1fr); }
.db-main.one > div:last-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.db-main.one > div:last-child > .card { margin-bottom: 0; }
