@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --brand-navy: #00204a;      /* Azul escuro corporativo EMBASA */
  --brand-blue: #005ca9;      /* Azul de ação principal */
  --brand-blue-hover: #004580;
  --brand-lime: #add559;      /* Verde limão da barra de categorias */
  --brand-lime-hover: #98bf49;
  --bg-page: #f0f4f8;         /* Cinza suave azulado */
  --surface: #ffffff;         /* Superfície dos cards */
  --surface-hover: #fcfdfe;
  --border: #d1d5db;          /* Cor cinza das bordas */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  
  --shadow-sm: 0 2px 5px rgba(0, 32, 74, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 32, 74, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 32, 74, 0.12);
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Remove clique cinza no mobile */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- CABEÇALHO PADRÃO EMBASA --- */
.site-topbar {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-topbar .topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-socials a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.topbar-socials a:hover {
  color: var(--brand-lime);
  transform: scale(1.1);
}

.site-brand-band {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.site-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0087cb 0%, #a2dc48 100%);
  color: white;
  font-weight: 800;
  font-size: 26px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 92, 169, 0.15);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.brand-logo-custom::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  top: 4px;
  left: 4px;
  z-index: 0;
}

.brand-logo-custom {
  z-index: 1;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-mark {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--brand-blue);
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-mark span {
  color: var(--brand-lime);
}

.brand-subtext {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-search-decor {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .header-search-decor {
    display: block;
  }
}

.header-search-decor input {
  padding: 10px 16px;
  padding-right: 40px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background-color: #f8fafc;
  font-size: 14px;
}

.header-search-decor i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-actions .user-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-actions .user-greeting {
  font-size: 14px;
  color: var(--text-primary);
  display: none;
}

@media (min-width: 576px) {
  .brand-actions .user-greeting {
    display: inline-block;
  }
}

.brand-actions .button.oval {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.brand-actions .button.oval:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 92, 169, 0.15);
}

/* --- BARRA DE NAVEGAÇÃO VERDE LIMÃO --- */
.site-nav {
  background-color: var(--brand-lime);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.nav-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.nav-row::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 20px;
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.nav-item i {
  font-size: 20px;
  opacity: 0.85;
  transition: var(--transition);
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
  background-color: #ffffff;
  color: var(--brand-blue);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.7), 0 -4px 10px rgba(0, 0, 0, 0.03);
}

.nav-item.active i {
  color: var(--brand-blue);
  opacity: 1;
}

/* --- ESTRUTURA GERAL --- */
.page-shell {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

main.card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
  flex: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}

.topbar-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  color: var(--brand-blue);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

h1 {
  font-family: 'Outfit', sans-serif;
  color: var(--brand-navy);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.muted {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- METRO TILES (LADRILHOS COLORIDOS E TÁTEIS) --- */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Força 2 por linha no celular */
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 576px) {
  .metro-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }
}

.metro-tile {
  aspect-ratio: 1; /* Quadrado perfeito */
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.metro-tile i {
  font-size: 44px;
  transition: transform 0.2s ease-out;
}

.metro-tile span {
  line-height: 1.2;
}

.metro-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.metro-tile:hover i {
  transform: scale(1.1);
}

/* Cores Metro Vibrantes (Degradê Moderno) */
.tile-blue { background: linear-gradient(135deg, #005ca9 0%, #0077d6 100%); }
.tile-green { background: linear-gradient(135deg, #add559 0%, #8ebd35 100%); color: var(--brand-navy) !important; }
.tile-green i { color: var(--brand-navy); }
.tile-teal { background: linear-gradient(135deg, #00a896 0%, #02c39a 100%); }
.tile-orange { background: linear-gradient(135deg, #d13438 0%, #f77f00 100%); } /* Coral vibrante */
.tile-red { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); }     /* Grafite degradê */

/* Animação Pulsante para Fiscalização */
.tile-green.pulse-animation i {
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* --- LAYOUT CENTRALIZADO SIMÉTRICO --- */
.centered-container {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.centered-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 576px) {
  .centered-card {
    padding: 32px;
  }
}

.centered-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: var(--brand-navy);
  border-bottom: 2.5px solid var(--brand-lime);
  padding-bottom: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Simétrico com Grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;  /* Espaço label → input levemente maior para clareza visual */
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Espaçamento automático entre form-groups consecutivos
   Limitado a filhos diretos do <form> (ex: Meu Perfil)
   para não somar ao gap do grid dentro de .form-row */
form > .form-group + .form-group {
  margin-top: 18px;
}

/* Garante respiro extra quando .form-row vem depois
   do painel GPS ou do bloco de câmera */
.gps-summary + .form-row,
.camera-container-outer + .form-row,
.feature-cards + .form-row {
  margin-top: 28px;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.2px;
}

/* Padronização de Alturas e Reset Select */
input, select, textarea {
  font-family: 'Inter', sans-serif;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background-color: #ffffff;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  transition: var(--transition);
  outline: none;
  box-sizing: border-box; /* Garante que preencham a mesma largura exata */
  -webkit-appearance: none;
}

/* Restaura comportamento nativo dos checkboxes e radio buttons
   (a regra global acima desativa -webkit-appearance e força width: 100%
   o que quebra completamente a exibição e o clique em checkboxes) */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Custom Select Arrow para iOS e Android */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300204a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 169, 0.15);
}

/* Área de Câmera Estável */
.camera-container-outer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.camera-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: radial-gradient(circle, #f8fafc 0%, #eef3f9 100%);
  border: 2.5px dashed #93c5fd;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.camera-preview.has-photo {
  border-style: solid;
  border-color: var(--brand-blue);
  background-color: #000;
}

.camera-preview img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
}

.empty-state .icon-large {
  font-size: 56px;
}

.empty-state strong {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: var(--brand-navy);
}

.camera-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.camera-actions label.button {
  cursor: pointer;
}

/* Painel de Geolocalização */
.gps-summary {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  width: 100%;
}

.gps-summary h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.gps-summary dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gps-summary dt {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.gps-summary dd {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
}

.gps-altitude-highlight {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.gps-altitude-highlight dt {
  color: #92400e;
}

.gps-altitude-highlight dd {
  color: #b45309;
  font-size: 18px;
}

.gps-status-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- BOTÕES --- */
button i, .button i {
  margin-right: 8px; /* Espaço uniforme entre ícone e nome do botão */
}

button, .button {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-height: 48px;
  box-sizing: border-box;
}

button.primary, .button.primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0077d6 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 92, 169, 0.15);
}

button.primary:hover, .button.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button.secondary, .button.secondary {
  background-color: #f1f5f9;
  color: var(--brand-navy);
  border: 1px solid var(--border);
}

button.secondary:hover, .button.secondary:hover {
  background-color: #e2e8f0;
}

/* --- HISTÓRICO --- */
.fiscalizacao-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.fiscalizacao-card:hover {
  box-shadow: var(--shadow-md);
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.geo-details {
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.geo-details p {
  font-size: 13px;
  margin: 0;
}

.photos-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.photos-row figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.photos-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.photos-row figure:hover img {
  transform: scale(1.05);
}

.photos-row figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 32, 74, 0.7);
  color: white;
  font-size: 9px;
  padding: 4px;
  text-align: center;
}

/* --- BADGES DE STATUS --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.aprovado, .badge.concluída { background-color: #def7ec; color: #03543f; }
.badge.pendente { background-color: #fef3c7; color: #92400e; }
.badge.com-problema, .badge.rejeitada { background-color: #fde8e8; color: #9b1c1c; }
.badge.em-fiscalização { background-color: #e1effe; color: #1e40af; }

/* --- TELA DE LOGIN --- */
.auth-page {
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  min-height: 80vh;
}

.auth-card {
  width: 100%;
  max-width: 900px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0 !important;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .login-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.login-intro {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #004580 100%);
  color: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.login-intro h1 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.2;
}

.login-intro .muted {
  color: rgba(255, 255, 255, 0.7);
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-card .icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--brand-lime);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.feature-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.feature-card p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.login-panel {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-shell {
  width: 100%;
  max-width: 320px;
}

.form-header {
  margin-bottom: 24px;
}

.form-header .tag {
  background-color: #e0f2fe;
  color: var(--brand-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
}

.auth-footer a {
  font-size: 13.5px;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* --- ALERTA --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}

.alert.success {
  background-color: #def7ec;
  color: #03543f;
  border-color: #bcf0da;
}

.alert.danger {
  background-color: #fde8e8;
  color: #9b1c1c;
  border-color: #fabdbe;
}

.alert.info {
  background-color: #e1effe;
  color: #1e40af;
  border-color: #b3d4ff;
}

/* --- PANELS E UTILS --- */
.panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--brand-navy);
}

/* --- RESPONSIVIDADE ADICIONAL --- */
@media (max-width: 576px) {
  .site-brand-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .brand-actions {
    width: 100%;
    justify-content: center;
  }
  .brand-actions .button.oval {
    width: 100%;
    justify-content: center;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .topbar .button {
    width: 100%;
  }
}

/* --- MAPAS INTERATIVOS LEAFLET --- */
.map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.map-container {
  height: 220px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

@media (min-width: 992px) {
  .history-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 20px;
  }
}
