/* Morita — orçamento de paradas; tema escuro como as demais telas. */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --bg: #121418;
  --panel: #1b1e24;
  --panel-border: #2a2f38;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #4a90e2;
  --ok: #4caf50;
  --warn: #ffc107;
  --danger: #f44336;
  --nav-height: 64px;
}

html,
body.morita-page {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
}

.morita {
  padding: calc(var(--nav-height) + 12px) 16px 32px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.morita-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.morita-header h1 { margin: 0 0 4px; font-size: 22px; }
.subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.subtitle b { color: var(--text); }
.subtitle a { color: var(--accent); }

.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.status.is-replay .status-dot { background: var(--danger); }
.status.is-replay { color: var(--text); }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  border-left: 4px solid var(--warn);
  background: rgba(255, 193, 7, 0.1);
}

.alert-error { border-left-color: var(--danger); background: rgba(244, 67, 54, 0.12); }
.alert[hidden] { display: none; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 14px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.progress {
  position: relative;
  height: 18px;
  background: #15181d;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s linear;
}

.progress-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--warn);
}

.stops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.stop-chip {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stop-chip.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.card-primary { border-color: var(--accent); }
.card-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-value.is-bad { color: var(--danger); }
.card-hint { font-size: 12px; color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.form input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  :root { --nav-height: 56px; }
}
