.sidebar {
  background: linear-gradient(180deg, #07111f 0%, #0b1020 48%, #10131d 100%);
}

.brand-mark {
  background: #e8fbf3;
  color: #064e3b;
}

.nav-button {
  position: relative;
}

.nav-button.active {
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 3px 0 0 #34d399;
}

.topbar {
  background: rgba(255, 255, 255, .92);
}

.content {
  background: linear-gradient(180deg, #f8fafc 0%, #f6f7f9 100%);
}

.page-intro {
  align-items: center;
  border-bottom-color: #dbe3ef;
}

.page-intro h1 {
  font-size: 1.7rem;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-width: 9rem;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.command-item {
  display: grid;
  min-height: 6rem;
  align-content: space-between;
  gap: .45rem;
  border: 1px solid #dbe3ef;
  border-left-width: 4px;
  border-radius: .375rem;
  background: #fff;
  padding: .8rem .9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.command-item span {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #64748b;
}

.command-item strong {
  font-size: 1.45rem;
  line-height: 1.1;
  color: #0f172a;
}

.command-item small {
  font-size: .75rem;
  line-height: 1.2rem;
  color: #64748b;
}

.command-item.good {
  border-left-color: #059669;
}

.command-item.critical {
  border-left-color: #dc2626;
}

.command-item.attention {
  border-left-color: #d97706;
}

.command-item.watch {
  border-left-color: #2563eb;
}

.command-item.normal {
  border-left-color: #64748b;
}

.health-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.health-token {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: .4rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  padding: .25rem .75rem;
  font-size: .78rem;
  color: #475569;
}

.health-token strong {
  color: #0f172a;
}

.health-token.good {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.health-token.attention {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.health-token.critical {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.worklist {
  display: grid;
  gap: .5rem;
}

.worklist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-left-width: 4px;
  border-radius: .375rem;
  background: #fff;
  padding: .75rem .85rem;
  cursor: pointer;
}

.worklist-row:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.worklist-row.critical {
  border-left-color: #dc2626;
}

.worklist-row.attention {
  border-left-color: #d97706;
}

.worklist-row.watch {
  border-left-color: #2563eb;
}

.worklist-row.normal {
  border-left-color: #94a3b8;
}

.worklist-kicker {
  display: block;
  margin-bottom: .15rem;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #475569;
}

.worklist-row strong {
  display: block;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.worklist-row small {
  display: block;
  margin-top: .15rem;
  color: #64748b;
}

.worklist-meta {
  display: grid;
  justify-items: end;
  gap: .25rem;
  white-space: nowrap;
}

.empty-state.calm {
  background: #f8fafc;
}

.priority-panel {
  border: 1px solid #dbe3ef;
  border-radius: .375rem;
  background: #fff;
  padding: .875rem;
}

.compact-filter-panel {
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: .5rem;
  padding: .625rem 0;
}

.compact-filter-panel input,
.compact-filter-panel select {
  min-height: 2.15rem;
  padding: .375rem .6rem;
}

.discount-filter-panel {
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(120px, 1fr)) auto;
}

.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, .7fr) minmax(120px, .4fr);
  gap: .75rem;
  border: 1px solid #dbe3ef;
  border-radius: .375rem;
  background: #fff;
  padding: .75rem .85rem;
}

.report-summary div {
  display: grid;
  gap: .2rem;
}

.report-summary span {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #64748b;
}

.report-summary strong {
  color: #0f172a;
  font-size: .875rem;
  line-height: 1.35rem;
}

.notification-groups .panel {
  border: 1px solid #dbe3ef;
  border-radius: .375rem;
  background: #fff;
  padding: .75rem .85rem;
}

.notification-groups .panel h3 {
  margin-bottom: .35rem;
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}

.kpi-rail,
.table-shell {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.kpi-cell {
  background: #fff;
}

.table-scroll tbody tr:nth-child(2n) td {
  background: #fbfdff;
}

.status-pill {
  gap: .35rem;
}

.status-pill::before {
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.status-ok {
  background: #ecfdf5;
  color: #047857;
}

.status-warn {
  background: #fffbeb;
  color: #92400e;
}

.status-bad {
  background: #fef2f2;
  color: #991b1b;
}

.status-info {
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 1180px) {
  .command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-filter-panel,
  .discount-filter-panel,
  .report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .command-strip {
    grid-template-columns: 1fr;
  }

  .worklist-row {
    grid-template-columns: 1fr;
  }

  .worklist-meta {
    justify-items: start;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .compact-filter-panel,
  .discount-filter-panel,
  .report-summary {
    grid-template-columns: 1fr;
  }
}
