:root {
  /* Command Center + Lumen brand tokens (mock palette) */
  --navy: #1a3a5c;
  --navy-2: #15324f;
  --navy-deep: #0B1F3A;
  --accent: #c83232;
  --accent-dark: #a82828;
  --accent-soft: rgba(200, 50, 50, 0.14);
  --accent-light: #fef2f2;
  --silver: #7d8fa3;
  --silver-light: #a8b6c6;
  --bg: #f4f7fb;
  --bg-alt: #eef2f7;
  --card: #ffffff;
  --text: #1a3a5c;
  --muted: #64748b;
  --border: #d9e2ec;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warn: #ea580c;
  --warn-soft: #ffedd5;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --sidebar-w: 248px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 58, 92, 0.06), 0 8px 24px rgba(26, 58, 92, 0.05);
  --font: "Segoe UI", "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--navy-deep) 0%, #071525 55%, var(--navy-2) 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
  margin: 12px 12px 0;
  padding: 14px 12px 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.sidebar-brand img.brand-logo {
  max-width: 180px;
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
  background: #ffffff !important;
  border: 0;
  padding: 0;
  box-shadow: none;
  filter: none;
}
.sidebar-brand .sub {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a3a5c;
  font-weight: 700;
}
.sidebar-nav {
  padding: 14px 10px;
  overflow-y: auto;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active {
  background: var(--accent-soft);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(200, 50, 50, 0.45);
}
.nav-item .icon { width: 1.25rem; text-align: center; opacity: 0.9; }
.nav-item .label { flex: 1; min-width: 0; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger, #c82828);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sidebar-foot {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #94a3b8;
}
.sidebar-foot .tagline {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-left {
  flex-shrink: 0;
  min-width: 0;
}
.topbar-left h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.topbar-left p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.page {
  padding: 22px 28px 40px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #e2e8f0;
  color: var(--text);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); filter: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); filter: none; }
.btn-success { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--navy); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--muted); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { width: 72px; }
  .sidebar-brand .sub, .nav-item span.label, .sidebar-foot { display: none; }
  .main { margin-left: 72px; }
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 12px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
}
a.kpi-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.kpi-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
a.kpi-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.kpi-card .kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kpi-card .label { font-size: 12px; color: var(--muted); font-weight: 650; line-height: 1.3; }
.kpi-card .kpi-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  background: var(--bg-alt); color: var(--navy);
}
.kpi-card.danger .kpi-icon { background: var(--danger-soft); color: var(--danger); }
.kpi-card.warn .kpi-icon { background: var(--warn-soft); color: var(--warn); }
.kpi-card.ok .kpi-icon { background: var(--ok-soft); color: var(--ok); }
.kpi-card.info .kpi-icon { background: var(--info-soft); color: var(--info); }
.kpi-card .value { font-size: 28px; font-weight: 780; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.kpi-card .meta { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 8px; font-weight: 550; }
.kpi-card .meta .up { color: var(--ok); font-weight: 700; }
.kpi-card .meta .down { color: var(--danger); font-weight: 700; }
.kpi-card.warn .value { color: var(--warn); }
.kpi-card.danger .value { color: var(--danger); }
.kpi-card.ok .value { color: var(--ok); }
.kpi-card.info .value { color: var(--info); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.card h2, .card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-header h2, .card-header h3 { margin-bottom: 0; }

.layout-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}
@media (max-width: 1100px) {
  .layout-3 { grid-template-columns: 1fr; }
}
.layout-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .layout-2 { grid-template-columns: 1fr; }
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
table.data tr:hover td { background: #f8fafc; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.pill.overdue, .pill.danger { background: var(--danger-soft); color: #991b1b; }
.pill.due-soon, .pill.warn { background: var(--warn-soft); color: #9a3412; }
.pill.in-progress, .pill.info { background: var(--info-soft); color: #1d4ed8; }
.pill.complete, .pill.ok { background: var(--ok-soft); color: #166534; }

.assignee-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.assignee-chip .avatar { width: 28px; height: 28px; font-size: 10px; }

.cc-snap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .cc-snap { grid-template-columns: 1fr; }
}
.cc-snap-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.cc-snap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.cc-snap-row .muted { font-weight: 600; }
.cc-snap-row .n {
  font-size: 20px;
  font-weight: 760;
  color: var(--navy);
}
.cc-snap-row .n.ok { color: var(--ok); }
.filter-list .count.danger { background: var(--danger-soft); color: #991b1b; }
.filter-list .count.warn { background: var(--warn-soft); color: #9a3412; }
.filter-list .count.info { background: var(--info-soft); color: #1d4ed8; }
.filter-list .count.ok { background: var(--ok-soft); color: #166534; }
.task-list .pri.danger { background: var(--danger-soft); color: #991b1b; }
.task-list .pri.warn { background: var(--warn-soft); color: #9a3412; }
.task-list .pri.info, .task-list .pri.ok { background: var(--info-soft); color: #1d4ed8; }
.due-overdue { color: var(--danger); font-weight: 700; }
.due-soon { color: var(--warn); font-weight: 650; }
.rail-hint {
  font-size: 11px;
  color: var(--muted);
  margin: -4px 0 10px;
  line-height: 1.35;
  font-weight: 550;
}
a.company-link {
  color: inherit;
  text-decoration: none !important;
  display: inline-block;
}
a.company-link:hover strong {
  color: var(--info);
  text-decoration: underline;
}
a.company-link .muted { color: var(--muted); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e8edf4; color: #1a3a5c; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.avatar.lg { width: 40px; height: 40px; }
.bell {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  background: #fff; color: var(--muted);
}
.bell .badge {
  position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff;
  border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.task-list { list-style: none; }
.task-list li {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.task-list li:last-child { border-bottom: 0; }
.task-list .pri { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.filter-list { list-style: none; }
.filter-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #f1f5f9; color: var(--text);
  text-decoration: none !important; font-size: 13px;
}
.filter-list .count {
  background: #e2e8f0; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700;
}

.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.form-group label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 9px 12px; color: var(--text); font-size: 14px; font-family: inherit;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.flash {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px;
  background: #e8edf4; color: #1a3a5c; border: 1px solid #d9e2ec;
}
.flash.error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.flash.warn { background: #fef2f2; color: #a82828; border-color: #fecaca; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tabs a {
  padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.tabs a.active, .tabs a:hover { background: var(--accent-light); color: var(--accent-dark); }
.score-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 999px; padding: 6px 12px; font-weight: 700;
}
.score-badge.mid { background: #fef2f2; border-color: #fecaca; color: #a82828; }
.score-badge.low { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.empty { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
.search-global {
  display: flex; gap: 8px; align-items: center;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px 8px 16px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 560px;
}
.search-global input {
  border: 0; background: transparent; outline: none; font-size: 14px; width: 100%; color: var(--text);
}
.pipeline-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.pipeline-rep-form {
  display: inline-flex; align-items: center; gap: 6px;
}
.pipeline-rep-form select {
  font-size: 13px; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text);
}
.pipeline-groups {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.pipeline-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
  white-space: nowrap;
}
.pipeline-group:hover { color: var(--navy); background: rgba(255,255,255,0.6); }
.pipeline-group.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.pipeline-group-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #e2e8f0;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 1.5em;
  text-align: center;
}
.pipeline-group.is-active .pipeline-group-count {
  background: #dbeafe;
  color: var(--navy);
}
.pipeline-board,
.pipeline-board--fit {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  overflow: hidden;
  padding-bottom: 0;
}
.pipeline-board--fit .pipeline-col {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.pipeline-col {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  min-height: 180px;
  max-height: calc(100vh - 240px);
  overflow: hidden;
}
.pipeline-col h4 {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
  padding: 10px 10px 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.pipeline-count { font-weight: 600; color: var(--text); }
.pipeline-col-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 10px 10px;
}
.pipeline-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px; font-size: 13px;
}
.pipeline-card a {
  color: var(--navy); font-weight: 700; text-decoration: none !important;
  display: block; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pipeline-card-meta { font-size: 12px; margin-top: 2px; }
.pipeline-assignee {
  display: inline-block; margin-top: 4px; font-size: 11px;
  color: var(--muted); background: #eef2f7; border-radius: 4px;
  padding: 1px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-deal { font-size: 12px; margin-top: 4px; font-weight: 600; }
.pipeline-empty { font-size: 12px; padding: 8px 2px; }
.pipeline-more {
  display: block; text-align: center; font-size: 12px; margin-top: 4px;
  padding: 6px; color: var(--navy); text-decoration: none !important;
  border: 1px dashed var(--border); border-radius: 8px; background: #fff;
}
.pipeline-more:hover { background: #f1f5f9; }
@media (max-width: 900px) {
  .pipeline-board--fit {
    flex-wrap: wrap;
    overflow: visible;
  }
  .pipeline-board--fit .pipeline-col {
    flex: 1 1 calc(50% - 6px);
    max-height: 50vh;
  }
}
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 42%, var(--bg) 42%);
}
.login-box {
  width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
  padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.login-box img { max-width: 210px; display: block; margin: 0 auto 18px; }
.login-box h1 { text-align: center; font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.login-box p { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 12px; }
.error-box {
  background: #fee2e2; color: #991b1b; border-radius: 8px; padding: 10px 12px;
  margin-bottom: 14px; text-align: center; font-size: 13px;
}
.muted { color: var(--muted); }
.stack > * + * { margin-top: 10px; }


/* Role switcher */
.role-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}
.role-switcher select {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
}
.roles-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
}
.role-check {
  font-size: 12px;
  color: #475569;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}
.role-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* Web Orders assign queue */
.wo-queue {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}
.wo-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.wo-section-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}
.wo-section-head .count {
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.wo-section-secondary .wo-section-head h3 {
  color: #475569;
}
.wo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.wo-card-quote {
  border-left: 3px solid #1a3a5c;
}
.wo-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--navy);
  align-items: flex-start;
}
.wo-card-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wo-kind {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.2;
}
.wo-kind.order {
  background: #e8edf4;
  color: #1a3a5c;
}
.wo-kind.quote {
  background: #fef2f2;
  color: #a82828;
}
.wo-kind.agent {
  background: #dbeafe;
  color: #1e40af;
}
.wo-card-agent {
  border-left: 3px solid #3b82f6;
}

.wo-need {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-align: right;
  max-width: 55%;
}
.wo-msg {
  white-space: pre-wrap;
  max-height: 3.6em;
  overflow: hidden;
}
.wo-meta { font-size: 12px; color: #475569; margin-top: 2px; }
.wo-assign {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.wo-assign select { flex: 1; font-size: 12px; }
.wo-unassign { margin-top: 6px; }

/* —— Company profile card (lateral, low overload) —— */
.profile-hero {
  display: block;
}
.profile-hero-main { flex: 1; min-width: 240px; }
.profile-disposition {
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.profile-disposition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}
.profile-disposition-row .form-group {
  margin: 0;
  min-width: 160px;
}
.profile-disposition-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.profile-safer-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.profile-safer-details > summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--navy-deep);
  font-size: 13.5px;
  list-style: none;
}
.profile-safer-details > summary::-webkit-details-marker { display: none; }
.profile-safer-details > summary::before {
  content: "▸ ";
  color: #64748b;
}
.profile-safer-details[open] > summary::before { content: "▾ "; }
.profile-alert-item.alert-overdue strong,
.profile-alert-item.alert-overdue .alert-bang {
  color: #b91c1c;
}
.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.profile-name {
  font-size: 24px;
  font-weight: 780;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin: 0;
}
.profile-status { text-transform: uppercase; letter-spacing: 0.04em; }
.profile-ids { font-size: 13px; }
.profile-ids .sep,
.profile-call-strip .sep,
.profile-action-bar .sep { margin: 0 6px; color: #94a3b8; }
.profile-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 10px 16px;
  min-width: 280px;
  flex: 1;
}
.profile-meta-tight { flex: 0 1 420px; }
@media (max-width: 1100px) {
  .profile-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .profile-meta { grid-template-columns: 1fr 1fr; }
}
.profile-meta .k,
.profile-call-strip .k,
.profile-action-bar .k,
.profile-more-details .k,
.profile-more-links .k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.profile-meta .v { font-size: 13px; font-weight: 650; color: var(--navy); }
.profile-meta .v.urgent, .urgent { color: var(--danger) !important; font-weight: 700; }

/* Compliance alerts banner */
.profile-alerts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.profile-alerts-head {
  flex: 0 0 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.profile-alerts-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #991b1b;
}
.profile-alerts-title .alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
}
.profile-alerts-hint {
  font-size: 12px;
  color: #b91c1c;
  opacity: 0.85;
}
.profile-alerts-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  flex: 1;
}
.profile-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #991b1b;
}
.profile-alert-item.selectable {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.profile-alert-item.selectable:hover {
  background: #fff;
  border-color: #fecaca;
}
.profile-alert-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--danger);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.profile-alert-item .alert-bang {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.profile-alert-item strong { display: block; font-size: 13px; }
.profile-alert-item span { display: block; font-size: 11px; font-weight: 650; opacity: 0.9; margin-top: 1px; }
.profile-alerts-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.profile-alerts-all {
  border-color: #fca5a5 !important;
  color: #991b1b !important;
  white-space: nowrap;
}

/* Sticky CRM cart bar */
.crm-cart-bar {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  margin: 18px 0 0;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}
.crm-cart-bar[hidden] { display: none !important; }
.crm-cart-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.crm-cart-summary .sep { opacity: 0.5; }
.crm-cart-actions { display: flex; gap: 8px; align-items: center; }
.crm-cart-bar .btn-ghost { color: #cbd5e1; }
.crm-cart-bar .btn-primary { background: #fff; color: var(--navy); }
.checkout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.checkout-total-row strong {
  font-size: 24px;
  color: var(--navy);
}
.crm-stax-form .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.crm-stax-form .form-group.full { grid-column: 1 / -1; }
.crm-stax-form .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.crm-stax-form .form-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  background: #fff;
}
.stax-card-block {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.stax-field {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
}
.stax-card-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.stax-error {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
}
.stax-success {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
}
#stax-pay-btn { margin-top: 12px; width: 100%; justify-content: center; padding: 12px 16px; }

/* Combined company snapshot — single stack, no columns */
.profile-info-stack { display: flex; flex-direction: column; gap: 12px; }
.profile-info-stack .kv { margin: 0; }
.profile-info-stack .kv .k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.profile-info-stack .kv .v { font-size: 13.5px; color: var(--text); font-weight: 550; }
.profile-info-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.profile-info-inline .sep { color: var(--muted); font-weight: 500; }

/* KPI tiles row */
.profile-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.profile-kpis-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .profile-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .profile-kpis, .profile-kpis-3 { grid-template-columns: 1fr; }
}
.profile-kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
}
.profile-kpi .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.profile-kpi .value {
  font-size: 24px;
  font-weight: 780;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.profile-kpi .value.sm { font-size: 15px; }
.profile-kpi .value.ok { color: var(--ok); }
.profile-kpi .value.warn { color: var(--warn); }
.profile-kpi .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-kpi .kpi-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--info);
  text-decoration: none !important;
}
.profile-kpi .kpi-link:hover { text-decoration: underline !important; }
.profile-kpi .score-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 18px;
  font-weight: 780;
  width: fit-content;
}
.profile-kpi .score-inline .den { font-size: 11px; opacity: 0.8; font-weight: 650; }
.profile-kpi .score-inline.mid,
.profile-kpi .score-inline.low {
  background: #fef2f2;
  border-color: #fecaca;
  color: #a82828;
}

.profile-call-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 14px 8px;
  overflow-x: auto;
}
.profile-call-strip .call-cell {
  flex: 1 1 0;
  min-width: 110px;
  padding: 4px 14px;
  border-right: 1px solid var(--border);
}
.profile-call-strip .call-cell:last-child { border-right: 0; }
.profile-call-strip .call-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
}
.profile-call-strip .v {
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.profile-call-strip .v.reach { font-weight: 600; }
.profile-call-strip .sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .profile-call-strip { flex-wrap: wrap; }
  .profile-call-strip .call-cell {
    flex: 1 1 40%;
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 12px;
  }
  .profile-call-strip .call-actions { width: 100%; padding-top: 10px; }
}

/* Action bar — 4 metrics lateral */
.profile-action-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 12px 8px;
  margin-bottom: 16px;
}
.profile-action-bar .action-cell {
  padding: 6px 16px;
  border-right: 1px solid var(--border);
}
.profile-action-bar .action-cell:last-child { border-right: 0; }
.profile-action-bar .v {
  font-size: 18px;
  font-weight: 760;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.profile-action-bar .action-next .v { font-size: 15px; }
.profile-action-bar .sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.profile-action-bar .score-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 16px;
}
.profile-action-bar .score-inline .den { font-size: 11px; opacity: 0.8; font-weight: 650; }
.profile-action-bar .score-inline.mid,
.profile-action-bar .score-inline.low {
  background: #fef2f2;
  border-color: #fecaca;
  color: #a82828;
}
@media (max-width: 900px) {
  .profile-action-bar { grid-template-columns: 1fr 1fr; }
  .profile-action-bar .action-cell {
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 12px;
  }
}

/* Full-width work stack */
.profile-stack { display: flex; flex-direction: column; gap: 0; }
.profile-stack .card { margin-bottom: 14px; }

.link-quiet {
  font-size: 13px;
  font-weight: 650;
  color: var(--info);
  text-decoration: none !important;
}
.link-quiet:hover { text-decoration: underline !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.profile-more-details { margin-bottom: 14px; }
.profile-more-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  list-style: none;
}
.profile-more-details summary::-webkit-details-marker { display: none; }
.profile-more-details summary::before {
  content: "▸ ";
  color: var(--muted);
}
.profile-more-details[open] summary::before { content: "▾ "; }
.profile-more-details .profile-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .profile-more-details .profile-more-grid { grid-template-columns: 1fr 1fr; }
}
.profile-more-details .kv .v {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.profile-more-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 14px;
  font-size: 13px;
}
.profile-more-links .k {
  display: inline;
  margin: 0;
}
.profile-more-links a {
  color: var(--info);
  font-weight: 600;
  text-decoration: none !important;
}
.profile-more-links a:hover { text-decoration: underline !important; }
.profile-back { margin-bottom: 12px; font-size: 13px; font-weight: 650; }

.profile-footer {
  margin-top: 8px;
  background: #e8eef6;
  border: 1px solid #d0dbe8;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
}
.profile-footer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.profile-footer-refresh { color: var(--muted); font-weight: 550; white-space: nowrap; }

.search-hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 4px;
}
a.search-hit:hover {
  background: #f8fafc;
  border-color: var(--border);
}
.search-hit.static { cursor: default; }
.search-hit .hit-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--info);
  margin-top: 2px;
}

/* Company profile — renewals + orders */
#profile-renewals td.urgent,
#profile-renewals .urgent {
  color: var(--danger);
  font-weight: 700;
}
#profile-orders .pill,
#profile-renewals .pill {
  white-space: nowrap;
}

/* FMCSA SAFER-style Company Snapshot */
.safer-snapshot .safer-header-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.safer-section {
  border-top: 1px solid var(--border);
  padding: 14px 0 6px;
}
.safer-section:first-of-type { border-top: 0; padding-top: 4px; }
.safer-section-title {
  background: #dbeafe;
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.safer-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}
@media (max-width: 720px) {
  .safer-grid-2 { grid-template-columns: 1fr; }
}
.safer-kv {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 8px;
  padding: 4px 4px;
  font-size: 13px;
  align-items: start;
}
.safer-kv .k { color: #334155; font-weight: 650; }
.safer-kv .v { color: #0f172a; font-weight: 600; word-break: break-word; }
.safer-kv .v.safer-ok { color: var(--ok); }
.safer-kv .v.safer-warn { color: #b45309; }
.safer-note { font-size: 12px; margin: 6px 4px 2px; }
.safer-equip { margin-top: 6px; }
.safer-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
}
.safer-checks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.safer-checks-cargo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .safer-checks, .safer-checks-cargo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .safer-checks, .safer-checks-3, .safer-checks-cargo { grid-template-columns: 1fr; }
}
.safer-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  padding: 3px 2px;
}
.safer-check.on { color: #0f172a; font-weight: 650; }
.safer-check .box {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #94a3b8;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #0b1f3a;
  background: #fff;
  margin-top: 1px;
}
.safer-check.on .box {
  border-color: #0b1f3a;
  background: #e2e8f0;
}

/* Command Center trend meta */
.kpi-card .meta.trend.up { font-weight: 700; }
.kpi-card.danger .meta.trend.up { color: var(--danger); }
.kpi-card.warn .meta.trend.up { color: var(--warn); }
.kpi-card.ok .meta.trend.up { color: var(--ok); }

/* Compliance due-date calendar */
.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-month-label {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
  color: var(--navy);
  min-width: 180px;
  text-align: center;
}
.cal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.cal-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.cal-legend .dot.overdue { background: var(--danger); }
.cal-legend .dot.due-soon { background: var(--warn); }
.cal-legend .dot.upcoming { background: var(--info); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cal-dow {
  background: #f1f5f9;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}
.cal-day {
  background: #fff;
  min-height: 110px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-day.empty { background: #f8fafc; min-height: 72px; }
.cal-day.today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}
.cal-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.cal-day.today .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.cal-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cal-event {
  display: block;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.25;
  text-decoration: none !important;
  color: inherit;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  overflow: hidden;
}
.cal-event:hover { filter: brightness(0.97); }
.cal-event.overdue {
  border-left-color: var(--danger);
  background: #fef2f2;
  color: #991b1b;
}
.cal-event.due_soon, .cal-event.due-soon {
  border-left-color: var(--warn);
  background: #fff7ed;
  color: #9a3412;
}
.cal-event.upcoming {
  border-left-color: var(--info);
  background: #eff6ff;
  color: #1e40af;
}
.cal-event-name {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event-svc {
  display: block;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 4px;
}
@media (max-width: 900px) {
  .cal-day { min-height: 88px; padding: 6px; }
  .cal-event-svc { display: none; }
  .cal-month-label { min-width: 140px; font-size: 17px; }
}



/* Command Center tasks + mini calendar */
.cc-tasks-cal { align-items: start; }
@media (max-width: 960px) {
  .cc-tasks-cal { grid-template-columns: 1fr !important; }
}
.wo-items { margin-top: 4px; font-size: 12.5px; color: #334155; }

/* Command Center commissions period toggle */
.cc-period-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}
.cc-period-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cc-period-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none !important;
  background: #fff;
}
.cc-period-btn + .cc-period-btn {
  border-left: 1px solid var(--border);
}
.cc-period-btn:hover {
  color: var(--navy);
  background: #f8fafc;
}
.cc-period-btn.is-active {
  color: #fff;
  background: var(--navy);
}

.wo-invoice-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.wo-invoice-actions form { margin: 0; }


.checkout-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid #d9e2ec; }
.checkout-totals .checkout-total-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:4px 0; }
.checkout-totals .checkout-total-row.muted { color:#64748b; font-size:14px; }
.checkout-totals .checkout-total-row.muted strong { font-weight:600; color:#334155; }
