/* ============== HERO ============== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -16px rgba(15, 23, 42, 0.08);
  padding: 20px 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  /* Allow Select dropdowns / popovers inside actions to escape the card. */
  overflow: visible;
}
.heroLeft {
  min-width: 0;
  flex: 1 1 320px;
}
.heroLeft h2 {
  font-size: 23.1px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.heroLeft p {
  font-size: 14.3px;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}
.heroRight {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============== STAT PILLS ============== */
.statPill {
  background: linear-gradient(
    135deg,
    rgba(0, 73, 202, 0.06) 0%,
    rgba(0, 73, 202, 0.14) 100%
  );
  border: 1px solid rgba(0, 73, 202, 0.18);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 73, 202, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.statPill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(0, 73, 202, 0.22);
  border-color: rgba(0, 73, 202, 0.32);
}
.statPill b {
  font-size: 24.2px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.statPill span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

.statPillSuccess {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.06) 0%,
    rgba(34, 197, 94, 0.14) 100%
  );
  border-color: rgba(34, 197, 94, 0.22);
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.04);
}
.statPillSuccess:hover {
  box-shadow: 0 6px 16px -8px rgba(21, 128, 61, 0.22);
  border-color: rgba(34, 197, 94, 0.4);
}
.statPillSuccess b {
  color: #15803d;
}

.statPillDanger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.06) 0%,
    rgba(239, 68, 68, 0.14) 100%
  );
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.04);
}
.statPillDanger:hover {
  box-shadow: 0 6px 16px -8px rgba(185, 28, 28, 0.22);
  border-color: rgba(239, 68, 68, 0.4);
}
.statPillDanger b {
  color: #b91c1c;
}

.statPillAmber {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.06) 0%,
    rgba(245, 158, 11, 0.16) 100%
  );
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.04);
}
.statPillAmber:hover {
  box-shadow: 0 6px 16px -8px rgba(180, 83, 9, 0.22);
  border-color: rgba(245, 158, 11, 0.4);
}
.statPillAmber b {
  color: #b45309;
}

/* ============== UNIFIED BUTTON SYSTEM ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn i {
  font-size: 1.05em;
  line-height: 1;
}

/* sizes */
.btnSm {
  font-size: 13.2px;
  padding: 7px 13px;
}
.btnMd {
  font-size: 14.3px;
  padding: 9px 16px;
}
.btnBlock {
  width: 100%;
}

/* variant: primary (solid brand) */
.btnPrimary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btnPrimary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btnPrimary:active {
  transform: translateY(0);
}

/* variant: secondary (light surface + border) */
.btnSecondary {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btnSecondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* variant: ghost (text only) */
.btnGhost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btnGhost:hover {
  background: var(--surface-alt);
  color: var(--text-main);
}

/* variant: danger */
.btnDanger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  box-shadow: var(--shadow-sm);
}
.btnDanger:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btnSpin {
  display: inline-block;
  animation: btnspin 0.8s linear infinite;
}
@keyframes btnspin {
  to {
    transform: rotate(360deg);
  }
}

/* legacy aliases — map old class names onto the unified primary/secondary look */
.addBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-size: 14.3px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.addBtn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.lightBtn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 14.3px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lightBtn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.primaryBtn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-size: 14.3px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.primaryBtn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============== TOOLBAR ============== */
.toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.searchInputWrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.searchInputWrap i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-main);
  opacity: 0.45;
  font-size: 15.4px;
}
.searchInput {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.3px;
  background: var(--background);
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}
.searchInput:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.toggleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.2px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  transition: all 0.15s ease;
}
.toggleWrap:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.toggleWrap input {
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============== TABLE WRAP ============== */
.tableWrap {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px -18px rgba(15, 23, 42, 0.18);
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.tableWrap:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 36px -20px rgba(15, 23, 42, 0.22);
}

/* ============== INFO BANNER ============== */
.infoBanner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.2px;
  margin-bottom: 14px;
  background: var(--primary-light);
  border: 1px solid rgba(94, 114, 228, 0.25);
  color: var(--text-main);
}
.infoBanner i {
  color: var(--primary);
}

/* ============== SECTION CARD ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 0;
  position: relative;
  /* Equal-height across Bootstrap row/col-xl-N siblings */
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cardHead + * {
  /* Let the body grow to fill remaining card height — useful when
   * neighbouring cards in a row are taller (charts + tables side by side). */
  flex: 1 1 auto;
  min-height: 0;
}
.cardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.cardTitle {
  font-size: 15.4px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}
.cardSub {
  font-size: 12.1px;
  color: var(--text-muted);
  margin: 2px 0 0;
  font-weight: 600;
}
.cardLink {
  font-size: 12.1px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.cardLink:hover {
  text-decoration: underline;
}

/* ============== KPI / STAT TILE ============== */
.kpiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

/* ============================================================
 * KPI card — light multi-tinted body + matching solid icon chip.
 * Each accent has its own light tint + saturated chip color.
 * Compact layout: label, value, trend (left) / icon (right).
 * ============================================================ */

/* Default tones (primary) */
.kpiCard {
  --kpi-tint: #eaf2ff;
  --kpi-border: #cfdfff;
  --kpi-solid: #0049ca;
  --kpi-delta: #1f2a44;

  border-radius: 14px;
  padding: 16px 16px 14px;
  position: relative;
  height: 100%;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--kpi-tint);
  border: 1px solid var(--kpi-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kpiCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.22);
}

/* Accent palette — each card gets its own tone (light tint + bold chip). */
.kpi_primary {
  --kpi-tint: #eaf2ff;
  --kpi-border: #cfdfff;
  --kpi-solid: #2563eb;
}
.kpi_success {
  --kpi-tint: #e6f8ee;
  --kpi-border: #c4ebd1;
  --kpi-solid: #16a34a;
}
.kpi_amber {
  --kpi-tint: #fff1de;
  --kpi-border: #ffd9aa;
  --kpi-solid: #ea580c;
}
.kpi_danger {
  --kpi-tint: #ffe9e9;
  --kpi-border: #ffc7c7;
  --kpi-solid: #dc2626;
}
.kpi_info {
  --kpi-tint: #e0f4fb;
  --kpi-border: #b6e1f0;
  --kpi-solid: #0e7490;
}
.kpi_purple {
  --kpi-tint: #f1ebff;
  --kpi-border: #d8c8ff;
  --kpi-solid: #7c3aed;
}
.kpi_neutral {
  --kpi-tint: #eef1f7;
  --kpi-border: #d3d9e4;
  --kpi-solid: #475569;
}

.kpiBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.kpiLabel {
  font-size: 12.1px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.kpiValue {
  font-size: 24.2px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text-main);
}

.kpiTrend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12.1px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.kpiBadgeUp,
.kpiBadgeDown,
.kpiBadgeFlat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.kpiBadgeUp {
  color: #16a34a;
}
.kpiBadgeDown {
  color: #dc2626;
}
.kpiBadgeFlat {
  color: #64748b;
}

.kpiHint {
  color: var(--text-muted);
}

/* Right-side solid icon chip — accent-colored square. */
.kpiIconChip {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--kpi-solid);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--kpi-solid) 55%, transparent);
}

.kpiViz {
  width: 90px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ============== STATUS BADGE ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badgeNeutral {
  background: var(--background);
  color: var(--text-muted);
}
.badgePrimary {
  background: var(--primary-light);
  color: var(--primary);
}
.badgeSuccess {
  background: var(--success-light);
  color: #15803d;
}
.badgeWarning {
  background: var(--warning-light);
  color: #b45309;
}
.badgeDanger {
  background: var(--error-light);
  color: #b91c1c;
}
.badgeInfo {
  background: var(--info-light);
  color: #0e7490;
}
.badgePurple {
  background: rgba(124, 92, 255, 0.12);
  color: #6d28d9;
}

/* ============== TABS ============== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}
.tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13.2px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover {
  color: var(--text-main);
  background: var(--surface-alt);
}
.tabActive {
  background: var(--primary);
  color: white !important;
  box-shadow: var(--shadow-sm);
}

/* ============== FILTER BAR ============== */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -16px rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
}
@media (min-width: 1280px) {
  .filters {
    flex-wrap: nowrap;
  }
}
.filterPillWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.filterPillIcon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14.9px;
  pointer-events: none;
  z-index: 2;
}
.filterPillWithIcon {
  padding-left: 34px !important;
}
.filterPill {
  padding: 9px 32px 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 13.8px;
  font-weight: 700;
  background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f5b76' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat calc(100% - 12px) center;
  background-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--shadow-sm);
}
.filterPill:hover {
  background-color: var(--surface);
  border-color: var(--primary-soft);
  transform: translateY(-0.5px);
}
.filterPill:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
}
.filterSearch {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14.3px;
  font-weight: 600;
  background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.74 10.34A6 6 0 1 0 10.34 11.74L13.3 14.7L14.7 13.3L11.74 10.34ZM6 10A4 4 0 1 1 6 2A4 4 0 0 1 6 10Z' fill='%234f5b76'/%3E%3C/svg%3E")
    no-repeat 14px center;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.filterSearch:hover {
  background-color: var(--surface);
  border-color: var(--primary-soft);
  transform: translateY(-0.5px);
}
.filterSearch:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
}

.filterDateWrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
  height: 39px;
}
.filterDateWrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
  background: var(--surface);
}
.filterDateInput {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0 6px;
  font-size: 13.2px;
  font-weight: 600;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  width: 130px;
  height: 100%;
}
.filterDateSep {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.filterToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.8px;
  font-weight: 700;
  color: var(--text-main);
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
  margin: 0;
}
.filterToggle:hover {
  background: var(--surface);
  border-color: var(--primary-soft);
  transform: translateY(-0.5px);
}
.filterToggle:focus-within {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
}
.filterToggle input {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.filterClearRight {
  margin-left: auto;
}

/* ============== EMPTY STATE ============== */
.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.emptyIcon {
  font-size: 39.6px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.emptyTitle {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}
.emptyBody {
  font-size: 14.3px;
  color: var(--text-muted);
  margin: 0;
}

/* ============== DATA TABLE ============== */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.tbl thead th {
  background: linear-gradient(
    180deg,
    var(--surface-alt) 0%,
    color-mix(in srgb, var(--surface-alt) 70%, var(--surface)) 100%
  );
  padding: 13px 18px;
  text-align: left;
  font-size: 11.6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.tbl thead th:first-child {
  padding-left: 22px;
  border-top-left-radius: var(--radius-lg);
}
.tbl thead th:last-child {
  padding-right: 22px;
  border-top-right-radius: var(--radius-lg);
}
.tbl tbody tr:last-child td {
  border-bottom: none;
}
.tbl tbody td {
  padding: 14px 18px;
  font-size: 14.3px;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background 0.12s ease;
}
.tbl tbody td:first-child {
  padding-left: 22px;
}
.tbl tbody td:last-child {
  padding-right: 22px;
}
/* Subtle zebra striping — only every other row gets the alt-bg */
.tbl tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.018);
}
/* Soft primary tint on row hover */
.tbl tbody tr:hover td {
  background: var(--primary-faint);
}
/* Flatten in-cell emphasis to a single sharp weight */
.tbl tbody td :global(strong),
.tbl tbody td :global(b),
.tbl tbody td :global(.fw-bold),
.tbl tbody td :global(.fw-bolder),
.tbl tbody td :global(.fw-800),
.tbl tbody td :global(.fw-700),
.tbl tbody td :global(.fw-semibold) {
  font-weight: 500;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr.clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}
.tbl tbody tr.clickable:hover {
  background: var(--surface-alt);
}

/* ============== PROGRESS BAR ============== */
.progress {
  height: 6px;
  background: var(--background);
  border-radius: 3px;
  overflow: hidden;
}
.progressFill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ============== TILE GRID (landing tiles) ============== */
.tileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, var(--primary));
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent, var(--primary));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tile:hover::before {
  opacity: 1;
}
.tileHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tileIcon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19.8px;
  background: var(--accent-bg, var(--primary-light));
  color: var(--accent, var(--primary));
}
.tileTitle {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.tileBody {
  font-size: 14.3px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============== FORM HELPERS ============== */
.fieldLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.fieldRequired {
  color: var(--error);
  margin-left: 3px;
}

.fieldHint {
  margin-top: 5px;
  font-size: 12.1px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
}
.fieldError {
  margin-top: 5px;
  font-size: 12.1px;
  font-weight: 600;
  color: var(--error);
  line-height: 1.4;
}

.formSection {
  margin-bottom: 22px;
}
.formSectionHead {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.formSectionTitle {
  font-size: 14.3px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.005em;
}
.formSectionSub {
  font-size: 13.2px;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.5;
}

.formActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.formActionsSticky {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 12px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  z-index: 1;
}
