/* ==========================================================================
   PLANTÃO MANAGER PRO - CSS DESIGN SYSTEM (v2.7 Cloud Sync Polish)
   Modern Dark Glassmorphism, Mobile-First Responsive, High Contrast Medical UI
   ========================================================================== */

:root {
  /* Dynamic Color Palette */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-strong: rgba(255, 255, 255, 0.18);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.25);

  /* Status Colors */
  --status-realizado: #10b981;
  --status-realizado-bg: rgba(16, 185, 129, 0.15);
  --status-realizado-border: rgba(16, 185, 129, 0.35);

  --status-repassado: #ef4444;
  --status-repassado-bg: rgba(239, 68, 68, 0.15);
  --status-repassado-border: rgba(239, 68, 68, 0.35);

  --status-trocado: #f59e0b;
  --status-trocado-bg: rgba(245, 158, 11, 0.15);
  --status-trocado-border: rgba(245, 158, 11, 0.35);

  --status-pendente: #3b82f6;
  --status-pendente-bg: rgba(59, 130, 246, 0.15);
  --status-pendente-border: rgba(59, 130, 246, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-strong: rgba(0, 0, 0, 0.15);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  padding: 1rem 0.75rem;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* App Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand h1 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-pro {
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Cloud Sync Button */
.cloud-sync-btn {
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}
.cloud-sync-btn.connected {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}
.cloud-sync-btn.syncing {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 42px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary-outline {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}
.btn-primary-outline:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-strong);
}

.btn-ai-audit {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  font-weight: 700;
}
.btn-ai-audit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Month Selector Card */
.month-selector-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 1rem;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.month-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 170px;
}
.month-display i {
  color: var(--accent-secondary);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-select-sm {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 16px;
  outline: none;
  cursor: pointer;
}

/* KPI Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.kpi-hours::before { background: var(--accent-secondary); }
.kpi-accountant::before { background: var(--status-realizado); }
.kpi-internal::before { background: var(--accent-primary); }
.kpi-diff::before { background: var(--status-trocado); }

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.kpi-hours .kpi-icon { background: rgba(6, 182, 212, 0.15); color: var(--accent-secondary); }
.kpi-accountant .kpi-icon { background: rgba(16, 185, 129, 0.15); color: var(--status-realizado); }
.kpi-internal .kpi-icon { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.kpi-diff .kpi-icon { background: rgba(245, 158, 11, 0.15); color: var(--status-trocado); }

.kpi-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

.kpi-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.kpi-value small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-action-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

/* View Tabs */
.view-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

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

/* CALENDAR VIEW */
.calendar-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  min-height: 480px;
}

.calendar-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.calendar-cell.other-month {
  opacity: 0.25;
  background: transparent;
}

.calendar-cell.is-today {
  border: 2px solid var(--accent-secondary);
}

.cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cell-day-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-cell.is-today .cell-day-num {
  background: var(--accent-secondary);
  color: #0f172a;
}

.add-cell-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cell-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  max-height: 90px;
}

.shift-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid transparent;
}

.shift-pill.status-realizado { background: var(--status-realizado-bg); border-color: var(--status-realizado-border); color: #34d399; }
.shift-pill.status-repassado { background: var(--status-repassado-bg); border-color: var(--status-repassado-border); color: #fca5a5; text-decoration: line-through; }
.shift-pill.status-trocado { background: var(--status-trocado-bg); border-color: var(--status-trocado-border); color: #fbbf24; }
.shift-pill.status-pendente { background: var(--status-pendente-bg); border-color: var(--status-pendente-border); color: #93c5fd; }

.pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.pill-time { font-size: 0.65rem; opacity: 0.85; }
.pill-info { font-size: 0.62rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.calendar-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-realizado { background: var(--status-realizado); }
.dot-repassado { background: var(--status-repassado); }
.dot-trocado { background: var(--status-trocado); }
.dot-pendente { background: var(--status-pendente); }

.badge-fixed-tag, .badge-extra-tag { font-size: 0.65rem; padding: 0.1rem 0.35rem; border-radius: 4px; font-weight: 600; }
.badge-fixed-tag { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.badge-extra-tag { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

/* TABLE VIEW */
.table-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 360px;
}
.table-search input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-size: 16px;
}

.table-responsive {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.shifts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.shifts-table th {
  background: rgba(15, 23, 42, 0.5);
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.shifts-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.badge-fiscal-yes {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}

.badge-fiscal-no {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

/* TIMESHEET AUDIT TAB */
.timesheet-audit-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.timesheet-upload-card, .timesheet-checklist-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-audit-result-box {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.88rem;
  color: #c4b5fd;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drop-zone {
  border: 2px dashed var(--border-color-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.4);
}

.photos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
  max-height: 300px;
  overflow-y: auto;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 100px;
  background: var(--bg-secondary);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audit-progress-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-info { display: flex; justify-content: space-between; font-size: 0.82rem; }
.progress-bar-bg { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }

.audit-hours-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.compare-item { background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 0.65rem 0.4rem; border-radius: var(--radius-md); text-align: center; }
.compare-item span { font-size: 0.72rem; color: var(--text-muted); }
.compare-item strong { font-size: 1rem; font-family: 'Outfit', sans-serif; }

.checklist-items-container { display: flex; flex-direction: column; gap: 0.4rem; max-height: 320px; overflow-y: auto; }
.checklist-row { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.65rem 0.85rem; display: flex; align-items: center; justify-content: space-between; }
.checklist-row.checked-ok { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }
.checklist-left { display: flex; align-items: center; gap: 0.65rem; }
.checklist-checkbox { width: 20px; height: 20px; accent-color: var(--status-realizado); }

/* Lightbox Modal */
.lightbox-card { max-width: 900px; width: 95vw; }
.lightbox-body { display: flex; justify-content: center; align-items: center; padding: 1rem; background: #000; max-height: 80vh; }
.lightbox-body img { max-width: 100%; max-height: 75vh; object-fit: contain; }

/* ACCOUNTANT REPORT VIEW */
.report-container { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
#accountantTextOutput { width: 100%; min-height: 300px; background: var(--bg-secondary); color: #38bdf8; font-family: 'Courier New', Courier, monospace; font-size: 16px; padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); resize: vertical; line-height: 1.5; }

/* MODALS */
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; padding: 0.75rem; }
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--bg-secondary); border: 1px solid var(--border-color-strong); border-radius: var(--radius-xl); width: 100%; max-width: 600px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.modal-close { background: transparent; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.modal-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; max-height: 75vh; overflow-y: auto; }

/* PRESETS */
.preset-selector-box { background: rgba(15, 23, 42, 0.5); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.75rem; }
.preset-buttons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.btn-preset { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.5rem 0.2rem; color: var(--text-main); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; }
.btn-preset.active { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: #fff; }

.form-row { display: flex; gap: 0.75rem; }
.col-4, .col-6 { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.required { color: #ef4444; }

.form-control {
  background: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 16px;
  outline: none;
  min-height: 44px;
}
.form-control:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }

.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 0.65rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border-color); }

/* Toast Notification */
.toast-container { position: fixed; bottom: 15px; right: 15px; left: 15px; display: flex; flex-direction: column; gap: 0.5rem; z-index: 2000; pointer-events: none; }
.toast { background: var(--bg-secondary); color: var(--text-main); border: 1px solid var(--border-color-strong); padding: 0.85rem 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; pointer-events: auto; }

/* RESPONSIVIDADE TOUCH & CELULAR */
@media (max-width: 992px) {
  .timesheet-audit-container { grid-template-columns: 1fr; }
  .preset-buttons-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-days-header, .calendar-grid { font-size: 0.75rem; }
  .calendar-cell { min-height: 85px; }
}

@media (max-width: 768px) {
  body { padding: 0.5rem 0.35rem; }
  .app-header { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .header-actions { width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 0.25rem; }
  .month-selector-card { flex-direction: column; align-items: stretch; padding: 0.85rem; }
  .form-row { flex-direction: column; gap: 0.75rem; }
  .calendar-days-header div { font-size: 0.68rem; }
  .calendar-cell { min-height: 70px; padding: 0.25rem; }
  .pill-info { display: none; }
  .audit-hours-compare { grid-template-columns: 1fr; }
}
