/* ============================================
   CheckSystem Pro - Stylesheet (Tema Claro)
   Design: Light Precision (Azul & Vermelho)
   ============================================ */

:root {
  /* Cores de Fundo (Claras) */
  --bg: #f8fafc;          /* Fundo da página */
  --bg2: #ffffff;         /* Cards, Sidebar e Topbar */
  --bg3: #f1f5f9;         /* Inputs, backgrounds de tabelas/hovers */
  
  /* Bordas */
  --border: #e2e8f0;      /* Linhas de divisão */
  --border2: #cbd5e1;     /* Bordas de formulários */
  
  /* Destaques da Marca (Azul & Vermelho) */
  --accent: #0f172a;      /* Azul Marinho Escuro (Navegação, botões primários) */
  --accent2: #dc2626;     /* Vermelho Vibrante (Destaques, badges e ações) */
  
  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Textos */
  --text: #0f172a;        /* Texto principal (Alta legibilidade) */
  --text2: #475569;       /* Subtítulos e rótulos */
  --text3: #94a3b8;       /* Textos secundários e placeholders */
  
  /* Estrutura */
  --sidebar-w: 240px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06); /* Sombra suave para tema claro */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }

/* ---- LAYOUT ---- */
.app-wrapper { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 16px;
}

.brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; }

.sidebar-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }
.nav-group { margin-bottom: 20px; }
.nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--text3); padding: 4px 8px 8px; text-transform: uppercase;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text2); text-decoration: none;
  font-size: 13.5px; font-weight: 400;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.nav-item i { width: 18px; font-size: 13px; }
.nav-item:hover { 
  background: var(--bg3); 
  color: var(--accent2); 
}
.nav-item.active { 
  background: rgba(220, 38, 38, 0.08); 
  color: var(--accent2); 
  font-weight: 600;
}
.nav-item.active i { color: var(--accent2); }

.sidebar-footer { border-top: 1px solid var(--border); padding: 14px 12px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-details { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.badge-admin { background: rgba(220, 38, 38, 0.12); color: var(--accent2); }
.badge-supervisor { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-operador { background: rgba(16, 185, 129, 0.15); color: #047857; }

.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.user-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.logout-btn { color: var(--text3); text-decoration: none; padding: 6px; border-radius: 6px; transition: all 0.2s; }
.logout-btn:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* ---- MAIN AREA ---- */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Mantém o botão de menu à esquerda e os dados à direita */
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle { display: none; background: none; border: none; color: var(--text2); font-size: 18px; cursor: pointer; }
.top-bar-right { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-left: auto; /* Força o alinhamento total à extremidade direita */
}
.top-user { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 13px; 
  color: var(--text2); 
}

/* Notificações */
.notif-bell { 
  position: relative; 
  cursor: pointer; 
  padding: 6px; 
  border-radius: 8px; 
  transition: background 0.2s; 
}
.notif-bell:hover { background: var(--bg3); }
.notif-bell i { font-size: 16px; color: var(--text2); }

.notif-badge {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--accent2);
  color: #fff;
  border-radius: 50%; font-size: 9px;
  display: grid; place-items: center;
  font-weight: 700;
}

.notif-dropdown {
  position: absolute; 
  top: calc(100% + 10px); 
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none; 
  z-index: 60;
}
.notif-dropdown.show { display: block; }

.notif-header { 
  padding: 12px 16px; 
  font-size: 13px; 
  font-weight: 600; 
  border-bottom: 1px solid var(--border); 
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.notif-item { 
  padding: 12px 16px; 
  border-bottom: 1px solid var(--border); 
  font-size: 12.5px; 
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background-color: var(--bg3); }
.notif-item.nao-lida {
  border-left: 3px solid var(--accent2);
  background-color: rgba(220, 38, 38, 0.04);
}

.notif-item .notif-title { 
  font-weight: 600; 
  color: var(--text);
  margin-bottom: 2px;
}
.notif-item .notif-msg { 
  color: var(--text2); 
  font-size: 12px;
  line-height: 1.3;
}
.notif-item .notif-date {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
}
.notif-loading { padding: 16px; text-align: center; color: var(--text3); }

/* ---- CARDS ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }

/* ---- STATS GRID ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.blue::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.yellow::before { background: var(--warning); }
.stat-card.red::before { background: var(--accent2); }
.stat-card.purple::before { background: #6366f1; }

.stat-icon { font-size: 20px; margin-bottom: 10px; opacity: 0.85; }
.stat-card.blue .stat-icon { color: var(--accent); }
.stat-card.green .stat-icon { color: var(--success); }
.stat-card.yellow .stat-icon { color: var(--warning); }
.stat-card.red .stat-icon { color: var(--accent2); }
.stat-card.purple .stat-icon { color: #6366f1; }

.stat-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--accent2); background: #ffffff; }
.form-control::placeholder { color: var(--text3); }
select.form-control { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23475569'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 12px center; 
  padding-right: 36px; 
}
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-danger { background: var(--accent2); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #d97706; }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; aspect-ratio: 1; }

/* ---- TABLE ---- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text2); border-bottom: 1px solid var(--border);
  background: var(--bg3); white-space: nowrap;
}
tbody td { padding: 12px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg3); }

/* ---- STATUS BADGES ---- */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-pendente { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.status-pendente::before { background: var(--warning); }
.status-ativo, .status-aprovado, .status-concluido { background: rgba(16, 185, 129, 0.15); color: #047857; }
.status-ativo::before, .status-aprovado::before, .status-concluido::before { background: var(--success); }
.status-inativo, .status-reprovado { background: rgba(220, 38, 38, 0.12); color: var(--accent2); }
.status-inativo::before, .status-reprovado::before { background: var(--accent2); }
.status-em_andamento { background: rgba(15, 23, 42, 0.08); color: var(--accent); }
.status-em_andamento::before { background: var(--accent); }

/* ---- CALENDAR ---- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-header-day {
  padding: 8px 4px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--text2); text-transform: uppercase;
}
.cal-day {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 90px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cal-day:hover { border-color: var(--accent2); }
.cal-day.other-month { opacity: 0.4; background: var(--bg); }
.cal-day.today { border-color: var(--accent2); background: rgba(220, 38, 38, 0.04); }
.cal-day-num { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text2); }
.cal-day.today .cal-day-num { color: var(--accent2); }
.cal-event {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.semanal { background: var(--warning); color: #000; }
.cal-event.mensal { background: var(--accent2); color: #fff; }
.cal-event.dia_fixo { background: var(--success); color: #fff; }
.cal-event.feriado-nacional { background: #dc2626; color: #fff; }
.cal-event.feriado-estadual { background: #d97706; color: #fff; }
.cal-event.feriado-municipal { background: #7c3aed; color: #fff; }
.cal-event.done { opacity: 0.5; }
.cal-event.future { opacity: .58; border: 1px dashed currentColor; cursor: not-allowed; }

.holiday-alert-wrap { display: grid; gap: 8px; margin: 0 0 20px; }
.holiday-alert { display: flex; align-items: flex-start; gap: 11px; padding: 12px 15px; border-radius: 9px; font-size: 12.5px; line-height: 1.5; }
.holiday-alert > i { margin-top: 2px; font-size: 16px; }
.holiday-alert strong { display: block; font-size: 13px; margin-bottom: 2px; }
.holiday-alert-today { color: #991b1b; background: rgba(220, 38, 38, .10); border: 1px solid rgba(220, 38, 38, .35); }
.holiday-alert-upcoming { color: #92400e; background: rgba(245, 158, 11, .12); border: 1px solid rgba(217, 119, 6, .30); }

.cal-nav {
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; }

/* ---- CHECKLIST ITEM ---- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border: none; }
.check-control {
  width: 22px; height: 22px;
  border: 2px solid var(--border2);
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}
.check-control.checked { background: var(--success); border-color: var(--success); }
.check-control.checked::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 700; }
.check-desc { flex: 1; font-size: 14px; }
.check-pts { font-size: 11px; color: var(--text3); margin-top: 3px; }
.check-obrig { font-size: 10px; color: var(--danger); background: rgba(239,68,68,0.1); padding: 1px 6px; border-radius: 10px; }

/* ---- ASSINATURA ---- */
.sig-canvas {
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--bg3);
  cursor: crosshair;
  display: block;
  touch-action: none;
}
.sig-controls { display: flex; gap: 8px; margin-top: 8px; }

/* ---- UPLOAD FOTOS ---- */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .del-photo {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 10px; cursor: pointer;
  display: grid; place-items: center;
}
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  color: var(--text2);
}
.upload-zone:hover { border-color: var(--accent2); color: var(--accent2); }
.upload-zone input { display: none; }

/* ---- SCORE BAR ---- */
.score-bar { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.5s ease; }
.score-pct { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: none; place-items: center; z-index: 500;
}
.modal-overlay.show { display: grid; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } }
.modal-header { padding: 20px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text3); font-size: 18px; cursor: pointer; padding: 4px; }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* ---- PAGE HEADER ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.page-subtitle { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* ---- ALERTS ---- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(16,185,129,0.15); color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.alert-error { background: rgba(220, 38, 38, 0.12); color: var(--accent2); border: 1px solid rgba(220, 38, 38, 0.3); }
.alert-info { background: rgba(15, 23, 42, 0.08); color: var(--accent); border: 1px solid rgba(15, 23, 42, 0.2); }
.alert-warning { background: rgba(245,158,11,0.14); color: #92400e; border: 1px solid rgba(245,158,11,0.35); }

/* ---- PROGRESS ---- */
.progress-ring { position: relative; display: inline-grid; place-items: center; }
.progress-ring circle { fill: none; stroke-linecap: round; transform-origin: center; transform: rotate(-90deg); }

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  width: min(420px, 100%);
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .brand-icon { width: 52px; height: 52px; font-size: 22px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.auth-logo h1 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.auth-logo p { color: var(--text2); font-size: 13px; margin-top: 4px; }
.auth-tabs { display: flex; gap: 2px; background: var(--bg3); border-radius: 8px; padding: 3px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 8px; text-align: center; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text2); transition: all 0.2s; border: none; background: none; font-family: 'Syne', sans-serif; }
.auth-tab.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* ---- TOOLTIPS ---- */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
  font-size: 11px; white-space: nowrap; pointer-events: none; z-index: 1000;
}

/* ---- LOADER ---- */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border2); border-top-color: var(--accent2); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text3); }
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ---- TIPO CHECKLIST BADGES ---- */
.tipo-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tipo-diario { background: rgba(15, 23, 42, 0.08); color: var(--accent); }
.tipo-semanal { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.tipo-mensal { background: rgba(220, 38, 38, 0.12); color: var(--accent2); }
.tipo-dia_fixo { background: rgba(16, 185, 129, 0.15); color: #047857; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ---- RESPONSIVE (CONSOLIDADO) ---- */
@media (max-width: 768px) {
  .sidebar { 
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open { 
    transform: translateX(0); 
  }
  
  .main-area { margin-left: 0; }
  .menu-toggle { display: block; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-day { min-height: 60px; }

  /* Impede a sobreposição da grade de execução no mobile */
  .exec-grid {
    grid-template-columns: 1fr !important;
  }
}
