:root {
  --erp-ink: #17212b;
  --erp-muted: #667085;
  --erp-line: #d9e1e7;
  --erp-bg: #f6f7fb;
  --erp-teal: #0f766e;
  --erp-coral: #c2410c;
  --erp-gold: #b7791f;
}

body {
  background: var(--erp-bg);
  color: var(--erp-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.sidebar {
  background: #101820;
  color: #f8fafc;
}

.sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 6px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #1f3442;
  color: #ffffff;
}

.brand-logo {
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.page-logo {
  border: 1px solid var(--erp-line);
  border-radius: 50%;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.ride-logo {
  border: 1px solid var(--erp-line);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.ride-party,
.ride-client {
  font-size: .86rem;
  line-height: 1.35;
}

.ride-party h3 {
  font-size: 1.12rem;
}

.ride-status {
  border-radius: 6px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 8px;
}

.ride-status-ok {
  background: #dcfce7;
  color: #166534;
}

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

.ride-detail th,
.ride-detail td,
.ride-totals,
.ride-totals .total-box {
  font-size: .78rem;
}

.ride-totals .total-box {
  padding: 10px 12px;
}

.metric {
  background: #ffffff;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  padding: 16px;
  min-height: 112px;
}

.metric small,
.muted {
  color: var(--erp-muted);
}

.metric strong {
  font-size: 1.55rem;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
}

.panel-header {
  border-bottom: 1px solid var(--erp-line);
  padding: 14px 16px;
}

.table {
  margin-bottom: 0;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}

.status-ok {
  background: #dcfce7;
  color: #166534;
}

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

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.btn-primary {
  background: var(--erp-teal);
  border-color: var(--erp-teal);
}

.btn-primary:hover {
  background: #0b5f59;
  border-color: #0b5f59;
}

.flow-step {
  border-left: 4px solid var(--erp-teal);
  padding-left: 12px;
}

.chart-bar {
  background: linear-gradient(90deg, var(--erp-teal), #38bdf8);
  border-radius: 999px;
  height: 12px;
}

.total-box {
  background: #102a36;
  border-radius: 8px;
  color: #ffffff;
  padding: 16px;
}

.pos-cart {
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  min-height: 132px;
  overflow: hidden;
}

.cart-line {
  border-bottom: 1px solid var(--erp-line);
  padding: 10px 12px;
}

.cart-line:last-child {
  border-bottom: 0;
}

.qty-control {
  min-width: 96px;
}

.manual-table th,
.manual-table td {
  vertical-align: middle;
}

.manual-table .form-control-sm {
  min-width: 110px;
}

.manual-table .manual-size-input,
.manual-table .manual-number-input {
  min-width: 86px;
}

.json-preview {
  background: #0f172a;
  border-radius: 8px;
  color: #dbeafe;
  font-size: .78rem;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

@media (max-width: 991.98px) {
  .sidebar {
    min-height: auto;
  }

  .metric strong {
    font-size: 1.25rem;
  }
}
