/* Bengkel Industrial — sama dengan aplikasi: oranye keselamatan, panel aspal, Barlow. */
:root {
  --brand: #cf4a00;
  --brand-on-dark: #ff8a3d;
  --brand-tint: #fce9dd;
  --hazard: #ffc400;
  --bg: #f2f1ed;
  --surface: #ffffff;
  --well: #f6f5f2;
  --ink: #17191c;
  --muted: #5f646c;
  --line: #e0ded8;
  --line-strong: #cbc8c0;
  --asphalt: #1c1f23;
  --asphalt-raised: #2a2e34;
  --on-asphalt-muted: #9aa0a8;
  --plate: #111317;
  --success: #16733f;
  --success-tint: #d7f0e1;
  --warning: #9a5b00;
  --warning-tint: #fff1cc;
  --danger: #b42318;
  --danger-tint: #fde3e1;
  --info: #1c5fc7;
  --info-tint: #dce8fb;
  --neutral: #4a5059;
  --neutral-tint: #ecebe7;
  --font: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Barlow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

button, input, select { font: inherit; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }

.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, var(--asphalt) 10px 20px);
}

.panel-dark {
  background: var(--asphalt);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--on-asphalt-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow i { color: var(--brand-on-dark); font-size: 18px; }

.display { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(23, 25, 28, 0.04);
}

.card.accent { border-left: 5px solid var(--accent, var(--brand)); }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 2px 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

.plate {
  display: inline-block;
  background: var(--plate);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 2px solid #3a3f47;
  white-space: nowrap;
}

.plate.large { font-size: 22px; padding: 6px 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c, var(--neutral));
  background: var(--t, var(--neutral-tint));
}

.s-antre { --c: var(--warning); --t: var(--warning-tint); }
.s-dikerjakan { --c: var(--info); --t: var(--info-tint); }
.s-selesai { --c: var(--success); --t: var(--success-tint); }
.s-diambil { --c: var(--neutral); --t: var(--neutral-tint); }
.s-batal { --c: var(--danger); --t: var(--danger-tint); }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
}

.btn:disabled { opacity: 0.5; cursor: default; }
.btn.block { width: 100%; }
.btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn.wa { background: var(--success); }
.btn.small { min-height: 38px; font-size: 16px; padding: 0 12px; }

.field { display: block; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--muted); }

.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}

.field input:focus, .field select:focus { outline: none; border-color: var(--brand); border-width: 2px; }

.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 8px 0; border-bottom: 1px dashed var(--line-strong); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; font-family: var(--mono); }
.lines tr.total td { border-bottom: 0; font-weight: 700; font-size: 18px; padding-top: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::before { display: none; }

.timeline .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c, var(--line-strong));
  flex: none;
  margin-top: 3px;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--c, var(--line-strong));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--t, var(--well));
  color: var(--c, var(--muted));
}

.empty { text-align: center; padding: 48px 16px; }

.empty .icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 16px;
  background: var(--asphalt);
  color: var(--brand-on-dark);
  display: grid;
  place-items: center;
  font-size: 40px;
}

.footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 28px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--asphalt);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  max-width: calc(100% - 32px);
  z-index: 10;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Dashboard */

.topbar {
  background: var(--asphalt);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.topbar select {
  background: var(--asphalt-raised);
  color: #fff;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  padding: 6px 8px;
  max-width: 220px;
}

.topbar .btn.outline { color: #fff; border-color: #3a3f47; }

.tabs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs button {
  background: none;
  border: 0;
  color: var(--on-asphalt-muted);
  padding: 10px 12px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--brand-on-dark); }

.page { max-width: 1180px; margin: 0 auto; padding: 16px 16px 64px; }

.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.kpi .label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi .value { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; margin-top: 4px; }
.panel-dark .kpi .label { color: var(--on-asphalt-muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }

.bars .bar {
  flex: 1;
  min-width: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  position: relative;
}

.bars .bar.zero { background: var(--line); min-height: 2px; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

.meter { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); }

.board { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--t);
  color: var(--c);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ticket { border-left: 5px solid var(--c); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c27a; display: inline-block; animation: pulse 1.6s infinite; }

@keyframes pulse { 50% { opacity: 0.3; } }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list td.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch input { width: 44px; height: 24px; accent-color: var(--brand); }

.notice { border-radius: 10px; padding: 12px 14px; background: var(--t, var(--info-tint)); color: var(--c, var(--info)); }

.login { max-width: 400px; margin: 8vh auto; padding: 0 16px; }

@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

@media (max-width: 560px) { .hide-sm { display: none; } }
