:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --card: #ffffff;
  --primary: #102a4c;
  --primary-soft: #eaf1fb;
  --accent: #d6a62c;
  --text: #1f2a37;
  --muted: #6b7280;
  --line: #e5e7eb;
  --success: #117a4b;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef2f8 0%, #f7f8fb 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.container {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(16, 42, 76, 0.08);
  border-radius: 22px;
  padding: 1.7rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.8rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  background: #0f172a;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: 2.55rem;
  line-height: 1.05;
  color: var(--primary);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.search-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.search-label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.search-row {
  display: flex;
  gap: 0.7rem;
}

input {
  flex: 1;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: rgba(16, 42, 76, 0.35);
  box-shadow: 0 0 0 4px rgba(16, 42, 76, 0.08);
}

button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f3e75 0%, #0a5cc2 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 92, 194, 0.24);
}

.feedback {
  min-height: 1.5rem;
  color: var(--muted);
  padding: 0.2rem 0.25rem 0.5rem;
  font-size: 1rem;
}

.hidden {
  display: none;
}

.section-head h2 {
  margin: 0 0 0.2rem;
  color: var(--primary);
}

.section-head p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 0.75rem;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto;
  gap: 0.75rem;
  align-items: center;
  background: #fbfcfe;
}

.result-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

.detail-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.label-top {
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.detail-header h2 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #0b4fa7;
  font-weight: 700;
  font-size: 1rem;
}

.pill.status-default {
  background: #eaf1ff;
  color: #0b4fa7;
}

.pill.status-emitida {
  background: #eef2ff;
  color: #334155;
}

.pill.status-coletada {
  background: #e6f0ff;
  color: #0b4fa7;
}

.pill.status-transito {
  background: #fff3e8;
  color: #c26a00;
}

.pill.status-base {
  background: #f1ecff;
  color: #5b3cc4;
}

.pill.status-saiu {
  background: #fff8db;
  color: #a16207;
}

.pill.status-entregue {
  background: #e8f8ef;
  color: #117a4b;
}

.pill.status-fracionado {
  background: #fff1f2;
  color: #be123c;
}

.pill.status-recusa,
.pill.status-nao-entregue {
  background: #fdecec;
  color: #b42318;
}

.where-now {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
}

.divider,
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8dee8, transparent);
  margin: 1.25rem 0;
}

.block {
  margin-top: 1.35rem;
}

.block h3,
.info-card h3 {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #e3e8f1;
  background: #f8fbff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #cfd8e6;
  flex-shrink: 0;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline-content strong {
  color: var(--primary);
  font-size: 1rem;
}

.timeline-content span {
  color: var(--muted);
  font-size: 0.96rem;
}

.timeline-item.done {
  background: #eef8f2;
  border-color: #d8ecdf;
}

.timeline-item.done .timeline-dot {
  background: #117a4b;
}

.timeline-item.current {
  background: #eef5ff;
  border-color: #d8e6fb;
}

.timeline-item.current .timeline-dot {
  background: #0a5cc2;
  box-shadow: 0 0 0 6px rgba(10, 92, 194, 0.10);
}

.timeline-item.future {
  background: #fafbfc;
  border-color: #ebedf0;
}

.timeline-item.future .timeline-dot {
  background: #d8dee8;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.9rem;
}

.mini-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.mini-card strong {
  font-size: 1.05rem;
  color: var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}

.info-card div {
  margin-bottom: 0.7rem;
  line-height: 1.45;
}

.info-card div:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 0.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .detail-header,
  .summary-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .result-item {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-row {
    flex-direction: column;
  }

  .result-item {
    grid-template-columns: 1fr;
  }

  .container {
    margin: 1rem auto;
  }
}

.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #eef2f8 0%, #f7f8fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.login-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  background: #0f172a;
  padding: 10px;
  margin-bottom: 1rem;
}

.login-card h2 {
  margin: 0 0 0.4rem;
  color: #102a4c;
}

.login-card p {
  margin: 0 0 1.2rem;
  color: #6b7280;
}

.login-card input {
  width: 100%;
  margin-bottom: 0.8rem;
}

.login-card button {
  width: 100%;
}

.login-msg {
  margin-top: 0.8rem;
  color: #b42318;
  font-size: 0.9rem;
}