/* Etproforma — WMS-aligned tokens & chrome */
:root {
  color-scheme: light;
  --app-bg: #f3f6ff;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #71809b;
  --border: #e4eaf3;
  --focus: #0046BF;
  --brand: #0046BF;
  --accent: #FE7802;
  --sidebar-width: 16.5rem;
  --topbar-height: 4.5rem;
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.03), 0 8px 28px rgb(15 23 42 / 0.06);
  --radius-card: 1rem;
}

html.dark {
  color-scheme: dark;
  --app-bg: #0b1120;
  --surface: #111827;
  --surface-muted: #172033;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #263246;
}

body {
  background: var(--app-bg);
  color: var(--text);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.app-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.1rem;
  border-radius: 0.75rem;
  background: #0046BF;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.app-button-primary:hover { background: #003da8; }

.app-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.app-button-secondary:hover { background: #f8fafc; }

.app-button-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.1rem;
  border-radius: 0.75rem;
  background: #FE7802;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.app-button-accent:hover { background: #e66c00; }

.app-input {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text);
}
.app-input:focus {
  outline: none;
  border-color: #0046BF;
  box-shadow: 0 0 0 3px rgb(0 70 191 / 0.15);
}

.sidebar-link {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover {
  background: #eef4ff;
  color: #0046BF;
}
.sidebar-link-active {
  background: #d9e7ff;
  color: #003da8;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #FE7802;
}

.theme-surface {
  background: var(--surface);
  border-color: var(--border);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-card);
  padding: 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  border-color: #b9d1ff;
  box-shadow: 0 4px 20px rgb(0 70 191 / 0.08);
}
