/*
 * LHC Ops - Filament admin theme
 * Matches the reference design in lighthouse-app/app/globals.css:
 * navy sidebar, paper background, white cards with soft shadow,
 * cyan primary actions with dark-teal labels, soft status chips.
 */

:root {
  --lhc-ink: #10243b;
  --lhc-ink-soft: #536478;
  --lhc-navy: #112a45;
  --lhc-navy-2: #183653;
  --lhc-navy-active: #21435f;
  --lhc-paper: #f4f7f9;
  --lhc-surface: #ffffff;
  --lhc-line: #dbe4ea;
  --lhc-line-soft: #eaf0f3;
  --lhc-cyan: #12b8c8;
  --lhc-cyan-dark: #078a9a;
  --lhc-cyan-soft: #e6f9fb;
  --lhc-amber: #e8a328;
  --lhc-amber-soft: #fff5dd;
  --lhc-mint: #20a779;
  --lhc-mint-soft: #e8f8f1;
  --lhc-red: #cf5363;
  --lhc-red-soft: #fff0f1;
  --lhc-violet: #806fce;
  --lhc-violet-soft: #f1effc;
  --lhc-shadow: 0 1px 2px rgba(16, 36, 59, 0.04), 0 12px 36px rgba(16, 36, 59, 0.06);
  --lhc-radius: 18px;
}

/* ---------- Body / page chrome ---------- */

.fi-body {
  background-color: var(--lhc-paper);
  color: var(--lhc-ink);
}

.fi-header-heading {
  color: var(--lhc-ink);
  letter-spacing: -0.03em;
}

.fi-breadcrumbs-item-label {
  color: var(--lhc-ink-soft);
}

/* ---------- Sidebar (navy) ---------- */

.fi-sidebar,
.fi-sidebar-header {
  background-color: var(--lhc-navy) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar {
  --sidebar-ring: transparent;
}

.fi-sidebar-header .fi-logo {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fi-sidebar-nav {
  padding-top: 20px;
}

.fi-sidebar-group-label {
  color: #7890a5 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fi-sidebar-group-collapse-btn {
  color: #7890a5;
}

.fi-sidebar-item-btn {
  border-radius: 11px;
  color: #b8c7d3 !important;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fi-sidebar-item-btn:hover {
  background-color: rgba(255, 255, 255, 0.055) !important;
  color: #ffffff !important;
}

.fi-sidebar-item-icon {
  color: #7f99ad !important;
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
  color: #ffffff !important;
}

.fi-sidebar-item-label {
  color: inherit !important;
  font-size: 13px;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
  background-color: var(--lhc-navy-active) !important;
  box-shadow: inset 3px 0 var(--lhc-cyan);
  color: #ffffff !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon {
  color: var(--lhc-cyan) !important;
}

.fi-sidebar-item-badge-ctn .fi-badge {
  background-color: var(--lhc-cyan) !important;
  color: #062c34 !important;
}

/* ---------- Topbar ---------- */

.fi-topbar {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lhc-line);
  box-shadow: none !important;
}

.fi-topbar nav {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ---------- Cards: sections, tables, widgets ---------- */

.fi-section,
.fi-ta-ctn,
.fi-wi-chart,
.fi-account-widget {
  background-color: var(--lhc-surface);
  border: 1px solid var(--lhc-line) !important;
  border-radius: var(--lhc-radius) !important;
  box-shadow: var(--lhc-shadow) !important;
}

.fi-section-header-heading {
  color: var(--lhc-ink);
  letter-spacing: -0.02em;
}

.fi-section-header-description {
  color: var(--lhc-ink-soft);
}

/* ---------- Stats overview ("metric tiles") ---------- */

.fi-wi-stats-overview-stat {
  background-color: var(--lhc-surface);
  border: 1px solid var(--lhc-line) !important;
  border-radius: 15px !important;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.025) !important;
  min-height: 105px;
}

.fi-wi-stats-overview-stat-label {
  color: var(--lhc-ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.fi-wi-stats-overview-stat-value {
  color: var(--lhc-ink);
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.fi-wi-stats-overview-stat-description {
  font-weight: 600;
}

/* Soft chip tints for colored stat descriptions */
.fi-wi-stats-overview-stat-description.fi-color-primary,
.fi-wi-stats-overview-stat-description.fi-color-info {
  background-color: var(--lhc-cyan-soft);
  border-radius: 12px;
  color: var(--lhc-cyan-dark) !important;
  display: inline-block;
  padding: 1px 8px;
  width: fit-content;
}

.fi-wi-stats-overview-stat-description.fi-color-violet {
  background-color: var(--lhc-violet-soft);
  border-radius: 12px;
  color: var(--lhc-violet) !important;
  display: inline-block;
  padding: 1px 8px;
  width: fit-content;
}

.fi-wi-stats-overview-stat-description.fi-color-warning {
  background-color: var(--lhc-amber-soft);
  border-radius: 12px;
  color: #a86a08 !important;
  display: inline-block;
  padding: 1px 8px;
  width: fit-content;
}

.fi-wi-stats-overview-stat-description.fi-color-success {
  background-color: var(--lhc-mint-soft);
  border-radius: 12px;
  color: #147554 !important;
  display: inline-block;
  padding: 1px 8px;
  width: fit-content;
}

.fi-wi-stats-overview-stat-description.fi-color-danger {
  background-color: var(--lhc-red-soft);
  border-radius: 12px;
  color: #b64150 !important;
  display: inline-block;
  padding: 1px 8px;
  width: fit-content;
}

/* ---------- Buttons ---------- */

.fi-btn {
  border-radius: 10px !important;
  font-weight: 700;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.fi-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.fi-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Primary: cyan fill, very dark teal label, soft cyan glow */
.fi-btn.fi-color-primary {
  background-color: var(--lhc-cyan) !important;
  background-image: none !important;
  box-shadow: 0 7px 18px rgba(18, 184, 200, 0.18) !important;
  color: #052c34 !important;
}

.fi-btn.fi-color-primary:hover:not(:disabled) {
  background-color: #20c4d3 !important;
}

.fi-btn.fi-color-primary .fi-icon {
  color: #052c34 !important;
}

/* Secondary (gray/outlined) buttons: white with hairline border */
.fi-btn.fi-color-gray {
  background-color: #ffffff;
  border-color: var(--lhc-line);
  color: var(--lhc-ink);
}

.fi-btn.fi-color-gray:hover:not(:disabled) {
  background-color: #f8fafb;
  border-color: #a7bac6;
}

.fi-icon-btn {
  border-radius: 10px;
}

/* ---------- Badges (soft status chips) ---------- */

.fi-badge {
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700;
}

.fi-badge.fi-color-primary,
.fi-badge.fi-color-info {
  background-color: var(--lhc-cyan-soft) !important;
  color: var(--lhc-cyan-dark) !important;
}

.fi-badge.fi-color-success {
  background-color: var(--lhc-mint-soft) !important;
  color: #147554 !important;
}

.fi-badge.fi-color-warning {
  background-color: var(--lhc-amber-soft) !important;
  color: #a96a09 !important;
}

.fi-badge.fi-color-danger {
  background-color: var(--lhc-red-soft) !important;
  color: #b64150 !important;
}

.fi-badge.fi-color-violet {
  background-color: var(--lhc-violet-soft) !important;
  color: var(--lhc-violet) !important;
}

.fi-badge.fi-color-gray {
  background-color: #edf2f5 !important;
  color: #607284 !important;
}

/* ---------- Tables ---------- */

.fi-ta-header-cell {
  color: #8493a0 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fi-ta-header-cell-sort-btn {
  color: inherit;
}

.fi-ta-table {
  --tw-divide-opacity: 1;
}

.fi-ta-row {
  transition: background-color 0.15s ease;
}

.fi-ta-row:hover {
  background-color: #f7fafb !important;
}

.fi-ta-header-toolbar {
  border-bottom: 1px solid var(--lhc-line-soft);
}

/* ---------- Forms ---------- */

.fi-input-wrp {
  border-radius: 10px !important;
  background-color: #fbfcfd;
}

.fi-fo-field-label-content {
  color: #5c6d7d;
  font-weight: 600;
}

/* ---------- Dropdowns & modals ---------- */

.fi-dropdown-panel {
  border: 1px solid var(--lhc-line);
  border-radius: 14px !important;
  box-shadow: var(--lhc-shadow) !important;
}

.fi-modal-window {
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(7, 25, 42, 0.3) !important;
}

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

.fi-pagination-overview {
  color: var(--lhc-ink-soft);
}

::selection {
  background: #bfeff3;
  color: var(--lhc-navy);
}

/* ---------- Overview dashboard widgets ---------- */

.lhc-card {
  background: var(--lhc-surface);
  border: 1px solid var(--lhc-line);
  border-radius: var(--lhc-radius);
  box-shadow: var(--lhc-shadow);
  padding: 22px;
}

.lhc-card h2 {
  color: var(--lhc-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 5px 0 0;
}

.lhc-card-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.lhc-eyebrow {
  color: #7e8e9d;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lhc-eyebrow.lhc-accent { color: var(--lhc-cyan-dark); }

.lhc-text-link {
  color: var(--lhc-cyan-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.lhc-empty { color: var(--lhc-ink-soft); font-size: 12px; margin: 12px 0 0; }

/* Metric tiles */
.lhc-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1180px) { .lhc-metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lhc-metric-grid { grid-template-columns: 1fr; } }

.lhc-metric-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.025);
  display: flex;
  gap: 15px;
  min-height: 105px;
  padding: 18px;
}

.lhc-metric-mark {
  border-radius: 12px;
  display: grid;
  flex: 0 0 auto;
  font-size: 20px;
  height: 42px;
  place-items: center;
  width: 42px;
}

.lhc-metric-cyan { background: var(--lhc-cyan-soft); color: var(--lhc-cyan-dark); }
.lhc-metric-violet { background: var(--lhc-violet-soft); color: var(--lhc-violet); }
.lhc-metric-amber { background: var(--lhc-amber-soft); color: #b87711; }
.lhc-metric-mint { background: var(--lhc-mint-soft); color: var(--lhc-mint); }

.lhc-metric-card span { color: var(--lhc-ink-soft); display: block; font-size: 11px; font-weight: 650; }
.lhc-metric-card strong { color: var(--lhc-ink); display: block; font-size: 23px; letter-spacing: -0.035em; margin: 3px 0 1px; }
.lhc-metric-card strong.lhc-metric-locked { color: #8493a1; font-size: 15px; }
.lhc-metric-card small { color: #8493a1; font-size: 10px; }

/* Focus card (next best action) */
.lhc-confidence {
  align-items: center;
  background: var(--lhc-cyan-soft);
  border-radius: 13px;
  color: var(--lhc-cyan-dark);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  min-height: 25px;
  padding: 0 9px;
  white-space: nowrap;
}

.lhc-confidence.lhc-amber { background: var(--lhc-amber-soft); color: #a86a08; }

.lhc-focus-copy { color: var(--lhc-ink-soft); font-size: 12px; line-height: 1.65; margin: 14px 0 18px; max-width: 640px; }

.lhc-supply-eq {
  align-items: stretch;
  background: #f9fbfc;
  border: 1px solid var(--lhc-line-soft);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.lhc-supply-eq > div { padding: 13px 15px; }
.lhc-supply-eq > span { align-self: center; color: #a1afba; font-size: 18px; }
.lhc-supply-eq small { color: #8b9aa7; display: block; font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.lhc-supply-eq strong { color: var(--lhc-ink); display: block; font-size: 18px; margin-top: 3px; }
.lhc-supply-eq .lhc-highlight { background: var(--lhc-cyan-soft); border-radius: 11px; }

.lhc-recommendation {
  align-items: center;
  border: 1px solid #d8ebed;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  margin-top: 15px;
  padding: 12px;
}

.lhc-recommendation > div { flex: 1; min-width: 0; }
.lhc-recommendation strong { font-size: 13px; }
.lhc-recommendation p { color: var(--lhc-ink-soft); font-size: 11px; margin: 3px 0 0; }

.lhc-supplier-seal {
  background: var(--lhc-navy);
  border-radius: 9px;
  color: var(--lhc-cyan);
  display: grid;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 850;
  height: 34px;
  place-items: center;
  width: 34px;
}

.lhc-best-choice {
  align-items: center;
  background: var(--lhc-mint-soft);
  border-radius: 12px;
  color: #137655;
  display: inline-flex;
  font-size: 9px;
  font-weight: 850;
  min-height: 23px;
  padding: 0 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lhc-focus-actions { align-items: center; display: flex; gap: 17px; margin-top: 17px; }

.lhc-btn-primary {
  align-items: center;
  background: var(--lhc-cyan);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(18, 184, 200, 0.18);
  color: #052c34 !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: center;
  min-height: 39px;
  padding: 0 14px;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.lhc-btn-primary:hover { background: #20c4d3; transform: translateY(-1px); }

/* Readiness card */
.lhc-readiness-row {
  align-items: center;
  border-bottom: 1px solid var(--lhc-line-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 14px 0;
}

.lhc-readiness-row > b { color: var(--lhc-ink); font-size: 12px; }

.lhc-monogram {
  border-radius: 10px;
  color: var(--lhc-navy);
  display: grid;
  font-size: 11px;
  font-weight: 850;
  height: 36px;
  place-items: center;
  width: 36px;
}

.lhc-monogram-1 { background: #d9f5f7; }
.lhc-monogram-2 { background: #f4ead9; }
.lhc-monogram-3 { background: #e8e3f7; }

.lhc-readiness-info { min-width: 0; }
.lhc-readiness-info strong { color: var(--lhc-ink); display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhc-readiness-info small { color: #8292a0; display: block; font-size: 10px; margin: 2px 0 7px; }

.lhc-progress {
  background: #e9eff2;
  border-radius: 4px;
  display: block;
  height: 5px;
  overflow: hidden;
  position: relative;
}

.lhc-progress i { border-radius: inherit; display: block; height: 100%; }
.lhc-progress-cyan { background: var(--lhc-cyan); }
.lhc-progress-amber { background: var(--lhc-amber); }

.lhc-availability-callout {
  align-items: center;
  background: #f5f9fa;
  border-radius: 11px;
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 11px;
}

.lhc-availability-callout > span:first-child { color: var(--lhc-cyan-dark); font-size: 18px; }
.lhc-availability-callout strong { color: var(--lhc-ink); display: block; font-size: 11px; }
.lhc-availability-callout small { color: #82919e; display: block; font-size: 10px; margin-top: 2px; }

/* Project health table */
.lhc-table-wrap { overflow-x: auto; }

.lhc-health-table { border-collapse: collapse; width: 100%; }

.lhc-health-table th {
  border-bottom: 1px solid var(--lhc-line);
  color: #8493a0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 13px 11px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.lhc-health-table td {
  border-bottom: 1px solid var(--lhc-line-soft);
  color: #435568;
  font-size: 12px;
  padding: 13px 11px;
  vertical-align: middle;
}

.lhc-health-table tbody tr { cursor: pointer; transition: background-color 0.15s ease; }
.lhc-health-table tbody tr:hover { background: #f7fafb; }
.lhc-health-table tr:last-child td { border-bottom: 0; }
.lhc-health-table td strong { color: var(--lhc-ink); display: block; font-size: 12px; }
.lhc-health-table td small { color: #8998a5; display: block; font-size: 10px; margin-top: 3px; }

.lhc-inline-progress { align-items: center; display: grid; gap: 7px; grid-template-columns: 1fr auto; min-width: 96px; }
.lhc-inline-progress > span:last-child { font-size: 10px; font-weight: 750; }

.lhc-money-positive { color: var(--lhc-mint) !important; font-weight: 750; }

.lhc-status {
  align-items: center;
  background: #edf2f5;
  border-radius: 12px;
  color: #607284;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  min-height: 22px;
  padding: 0 8px;
  text-transform: capitalize;
  white-space: nowrap;
}

.lhc-status-active, .lhc-status-approved { background: var(--lhc-mint-soft); color: #147554; }
.lhc-status-on_hold, .lhc-status-quoted { background: var(--lhc-amber-soft); color: #a96a09; }

/* Activity feed */
.lhc-live-dot { align-items: center; color: var(--lhc-mint); display: flex; font-size: 10px; font-weight: 800; gap: 5px; text-transform: uppercase; }
.lhc-live-dot::before { background: var(--lhc-mint); border-radius: 50%; content: ""; height: 6px; width: 6px; }

.lhc-timeline { display: flex; flex-direction: column; margin-top: 10px; }

.lhc-timeline-item {
  border-bottom: 1px solid var(--lhc-line-soft);
  display: grid;
  gap: 11px;
  grid-template-columns: auto 1fr;
  padding: 12px 0;
}

.lhc-timeline-item:last-child { border-bottom: 0; }

.lhc-timeline-icon {
  background: #eef7f8;
  border-radius: 9px;
  color: var(--lhc-cyan-dark);
  display: grid;
  font-size: 12px;
  height: 29px;
  place-items: center;
  width: 29px;
}

.lhc-timeline-item strong { color: var(--lhc-ink); font-size: 11px; }
.lhc-timeline-item p { color: var(--lhc-ink-soft); font-size: 10px; line-height: 1.4; margin: 3px 0; }
.lhc-timeline-item small { color: #97a4af; font-size: 9px; }

@media (max-width: 820px) {
  .lhc-supply-eq { grid-template-columns: 1fr; }
  .lhc-supply-eq > span { display: none; }
}

/* ---------- Product KPIs, catalog, billing & profitability pages ---------- */

.lhc-kpi-grid { display: grid; gap: 10px; }

.lhc-kpi {
  background: #fafcfd;
  border: 1px solid var(--lhc-line);
  border-radius: 11px;
  padding: 13px 15px;
}

.lhc-kpi small { color: #8b9aa7; display: block; font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.lhc-kpi strong { color: var(--lhc-ink); display: block; font-size: 17px; letter-spacing: -0.02em; margin-top: 4px; }

.lhc-note {
  align-items: center;
  background: var(--lhc-mint-soft);
  border-radius: 10px;
  color: #2e6f59;
  display: flex;
  font-size: 11px;
  gap: 9px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.lhc-note > span:first-child { font-weight: 800; }

.lhc-subcopy { color: var(--lhc-ink-soft); font-size: 12px; margin: 5px 0 0; }

/* Milestone track (billing focus card) */
.lhc-milestone-track { display: flex; flex-direction: column; margin-top: 16px; }

.lhc-milestone-track article {
  align-items: center;
  border-bottom: 1px solid var(--lhc-line-soft);
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  padding: 13px 0;
}

.lhc-milestone-track article:last-child { border-bottom: 0; }

.lhc-milestone-track article > span {
  background: #e9eff2;
  border-radius: 50%;
  color: #778a99;
  display: grid;
  font-size: 10px;
  font-weight: 850;
  height: 28px;
  place-items: center;
  width: 28px;
}

.lhc-milestone-track article.lhc-eligible > span { background: var(--lhc-cyan); color: #07333a; }
.lhc-milestone-track small { color: #8b9aa7; display: block; font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.lhc-milestone-track strong { color: var(--lhc-ink); display: block; font-size: 12px; margin-top: 2px; }
.lhc-milestone-track p { color: var(--lhc-ink-soft); font-size: 10px; margin: 3px 0 0; }
.lhc-milestone-track article > b { color: var(--lhc-ink); font-size: 13px; }

.lhc-billing-actions {
  align-items: center;
  border-top: 1px solid var(--lhc-line-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
}

.lhc-billing-actions strong { color: var(--lhc-ink); display: block; font-size: 12px; }
.lhc-billing-actions small { color: #8493a1; display: block; font-size: 10px; margin-top: 3px; }

.lhc-status-blocked { background: var(--lhc-red-soft) !important; color: #b64150 !important; }
.lhc-status-clear { background: var(--lhc-mint-soft) !important; color: #147554 !important; }
.lhc-status-complete { background: var(--lhc-mint-soft); color: #147554; }

.lhc-variance {
  border-radius: 11px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 850;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lhc-variance-mint { background: var(--lhc-mint-soft); color: #147554; }
.lhc-variance-amber { background: var(--lhc-amber-soft); color: #a96a09; }
.lhc-variance-red { background: var(--lhc-red-soft); color: #b64150; }
.lhc-variance-gray { background: #edf2f5; color: #607284; }

/* Cable color swatch dot */
.lhc-swatch {
  border: 1px solid rgba(16, 36, 59, 0.18);
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  vertical-align: middle;
  width: 15px;
}

/* Import receipt wizard */
.lhc-steps { align-items: center; display: flex; gap: 10px; }

.lhc-step { align-items: center; display: flex; gap: 8px; }

.lhc-step span {
  background: #e9eff2;
  border-radius: 50%;
  color: #778a99;
  display: grid;
  font-size: 11px;
  font-weight: 850;
  height: 26px;
  place-items: center;
  width: 26px;
}

.lhc-step b { color: #8493a0; font-size: 12px; font-weight: 700; }
.lhc-step-current span { background: var(--lhc-cyan); color: #07333a; }
.lhc-step-current b { color: var(--lhc-ink); }
.lhc-step-done span { background: var(--lhc-mint-soft); color: var(--lhc-mint); }
.lhc-steps > i { background: var(--lhc-line); flex: 0 0 26px; height: 1px; }

.lhc-wizard-actions { align-items: center; display: flex; gap: 12px; justify-content: flex-end; }

.lhc-btn-secondary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: 10px;
  color: var(--lhc-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: center;
  min-height: 39px;
  padding: 0 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.lhc-btn-secondary:hover { background: #f8fafb; border-color: #a7bac6; }

.lhc-totals-row { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; padding: 15px 20px; }
.lhc-totals-row small { color: #8b9aa7; display: block; font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.lhc-totals-row strong { color: var(--lhc-ink); display: block; font-size: 16px; margin-top: 2px; }
.lhc-totals-row > span:not(.lhc-confidence) { color: #a1afba; font-size: 12px; }

/* Version chip next to the brand (App\Support\VersionChip) */
.lhc-version-chip { display: inline-block; margin-left: 8px; position: relative; vertical-align: middle; }
.lhc-version-chip > summary {
  background: #eef3f6;
  border: 1px solid var(--lhc-line);
  border-radius: 999px;
  color: #4a5d6c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style: none;
  padding: 2px 9px;
  white-space: nowrap;
}
.lhc-version-chip > summary::-webkit-details-marker { display: none; }
.lhc-version-chip--sandbox > summary { background: #806fce; border-color: #806fce; color: #fff; }
.lhc-version-chip__panel {
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 36, 59, 0.14);
  color: var(--lhc-ink);
  font-size: 12px;
  left: 0;
  line-height: 1.6;
  min-width: 280px;
  padding: 10px 12px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 60;
}
.lhc-version-chip__panel code { font-size: 11px; }
.lhc-version-chip__recent ul { margin: 4px 0 0; padding-left: 16px; list-style: disc; }
.lhc-version-chip-simple { display: flex; justify-content: center; padding-top: 16px; }
.lhc-version-chip-simple .lhc-version-chip { margin-left: 0; }

/* Customer portal (/portal) */
.lhc-portal-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lhc-portal-card {
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.04), 0 12px 36px rgba(16, 36, 59, 0.05);
  display: block;
  padding: 20px 22px;
}
.lhc-portal-card--link { transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.lhc-portal-card--link:hover { border-color: var(--lhc-cyan); box-shadow: 0 12px 36px rgba(18, 184, 200, 0.12); }
.lhc-portal-card__title { color: var(--lhc-ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.lhc-portal-card__cta { color: #078a9a; font-size: 13px; font-weight: 750; margin-top: 14px; }
.lhc-portal-kicker { color: #7e8e9d; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; margin-top: 4px; text-transform: uppercase; }
.lhc-portal-muted { color: #536478; font-size: 14px; line-height: 1.6; margin-top: 8px; }
.lhc-portal-timeline { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 12px 0 0; padding: 0; }
.lhc-portal-timeline__step { border: 1px solid var(--lhc-line); border-radius: 10px; color: #7e8e9d; font-size: 13px; font-weight: 650; padding: 10px 12px; }
.lhc-portal-timeline__step--current { background: #eafafc; border-color: var(--lhc-cyan); color: var(--lhc-ink); }
.lhc-portal-timeline__step--done { background: #eaf8f2; border-color: #20a779; color: var(--lhc-ink); }
.lhc-portal-card + .lhc-portal-card { margin-top: 0; }
.lhc-portal-status { border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 750; margin-top: 10px; padding: 4px 12px; background: #eef3f6; color: #4a5d6c; }
.lhc-portal-status--submitted { background: #fff6e5; color: #9a6a10; }
.lhc-portal-status--reviewed { background: #e6f6f8; color: #07606b; }
.lhc-portal-status--approved { background: #eaf8f2; color: #167a58; }
.lhc-portal-status--modification_requested { background: #fff0f1; color: #b64150; }
.lhc-portal-quote { border: 1px solid var(--lhc-line); border-radius: 12px; margin-top: 16px; overflow-x: auto; padding: 14px 16px; }
.lhc-portal-quote__head { color: var(--lhc-ink); font-size: 14px; font-weight: 750; }
.lhc-portal-quote__section { color: #078a9a; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; margin: 16px 0 6px; text-transform: uppercase; }
.lhc-portal-quote__table { border-collapse: collapse; font-size: 13px; width: 100%; }
.lhc-portal-quote__table th { border-bottom: 1px solid var(--lhc-line); color: #7e8e9d; font-size: 11px; font-weight: 700; padding: 6px 8px; text-align: left; }
.lhc-portal-quote__table td { border-bottom: 1px solid #eef2f5; color: var(--lhc-ink); padding: 7px 8px; }
.lhc-portal-quote__table th:nth-child(n+2), .lhc-portal-quote__table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.lhc-portal-quote__totals { margin: 14px 0 0 auto; max-width: 280px; }
.lhc-portal-quote__totals > div { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #536478; }
.lhc-portal-quote__totals dd { color: var(--lhc-ink); font-weight: 650; }
.lhc-portal-quote__total { border-top: 1px solid var(--lhc-line); font-size: 15px !important; margin-top: 4px; padding-top: 8px !important; }
.lhc-portal-quote__total dt, .lhc-portal-quote__total dd { color: var(--lhc-ink); font-weight: 800; }
.lhc-portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lhc-portal-button { align-items: center; background: #fff; border: 1px solid var(--lhc-line); border-radius: 8px; color: var(--lhc-ink); display: inline-flex; font-size: 14px; font-weight: 650; min-height: 36px; padding: 0 14px; }
.lhc-portal-button:hover { background: #f8fafb; border-color: #a7bac6; }
