/* ============================================================
   Sim Peixes - Sistema de Gestão de Piscicultura
   Design: Profissional, limpo, moderno
   Font: Poppins
   ============================================================ */

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

:root {
  --primary:       #00284A;
  --primary-dark:  #1e429f;
  --primary-light: #e8f0fe;
  --secondary:     #0CC6A2;
  --secondary-light:#d1fae5;
  --danger:        #e02424;
  --danger-light:  #fde8e8;
  --warning:       #c27803;
  --warning-light: #fef3c7;
  --info:          #0694a2;
  --info-light:    #d5f5f6;
  --dark:          #111928;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --sidebar-w:     260px;
  --sidebar-bg:    #0f172a;
  --sidebar-text:  #cbd5e1;
  --sidebar-hover: rgba(255,255,255,0.07);
  --sidebar-active:#1a56db;
  --topbar-h:      64px;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --transition:    .18s ease;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: var(--topbar-h);
}

.sidebar-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--transparent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.sidebar-logo .logo-sub {
  color: var(--sidebar-text);
  font-size: .68rem;
  font-weight: 400;
}

.sidebar-section {
  padding: 18px 12px 4px;
}

.sidebar-section-title {
  color: var(--gray-500);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-menu { list-style: none; }

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--sidebar-text);
  font-size: .85rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;
}

.sidebar-menu li a:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-menu li a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

.sidebar-menu li a .icon {
  width: 18px;
  flex-shrink: 0;
  opacity: .8;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-menu li a.active .icon { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.sidebar-user:hover { background: var(--sidebar-hover); }

.sidebar-user .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  flex-shrink: 0;
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name {
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  color: var(--gray-500);
  font-size: .68rem;
}

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

.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

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

.page-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 1px;
}
.breadcrumb span:last-child { color: var(--gray-700); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  transition: all var(--transition);
  font-size: 18px;
}
.btn-icon:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

#menu-toggle { display: none; }

.content {
  flex: 1;
  padding: 28px 28px 40px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: var(--primary-light);   color: var(--primary); }
.stat-icon.green  { background: var(--secondary-light);  color: var(--secondary); }
.stat-icon.yellow { background: var(--warning-light);    color: var(--warning); }
.stat-icon.red    { background: var(--danger-light);     color: var(--danger); }
.stat-icon.teal   { background: var(--info-light);       color: var(--info); }

.stat-info { flex: 1; min-width: 0; }
.stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}
.stat-sub {
  font-size: .72rem;
  color: var(--gray-500);
  margin-top: 3px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-secondary { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-success   { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-success:hover { background: #0c7a56; color: #fff; }

.btn-danger    { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-warning   { background: var(--warning-light); color: var(--warning); border-color: #fde68a; }
.btn-warning:hover { background: #fde68a; }

.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn-lg { padding: 12px 24px; font-size: .95rem; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group-full { grid-column: 1 / -1; }

label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-text {
  font-size: .72rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}

thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

tbody td {
  padding: 13px 16px;
  color: var(--gray-700);
  vertical-align: middle;
}

tbody td strong {
  color: var(--gray-800);
  font-weight: 500;
}

.table-actions { display: flex; gap: 6px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2px;
}

.badge-success  { background: var(--secondary-light); color: #065f46; }
.badge-warning  { background: var(--warning-light);   color: #92400e; }
.badge-danger   { background: var(--danger-light);    color: #991b1b; }
.badge-info     { background: var(--info-light);      color: #0c4a6e; }
.badge-primary  { background: var(--primary-light);   color: var(--primary-dark); }
.badge-teal     { background: #ccfbf1;                color: #134e4a; }
.badge-dark     { background: var(--gray-200);        color: var(--gray-700); }
.badge-secondary{ background: var(--gray-100);        color: var(--gray-600); }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success { background: var(--secondary-light); color: #065f46; border-color: #6ee7b7; }
.alert-danger  { background: var(--danger-light);    color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: var(--warning-light);   color: #92400e; border-color: #fcd34d; }
.alert-info    { background: var(--info-light);      color: #0c4a6e; border-color: #67e8f9; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(-10px);
  transition: transform .2s;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
}

.modal-close {
  width: 30px; height: 30px;
  border: none;
  background: var(--gray-100);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--gray-500);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-title { font-size: .95rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.empty-text  { font-size: .82rem; }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 36px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 16px 0;
}

.page-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: all var(--transition);
}

.page-btn:hover  { background: var(--gray-100); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   UTILITIES
   ============================================================ */
.d-flex    { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.text-sm    { font-size: .8rem; }
.text-muted { color: var(--gray-500); }
.text-right { text-align: right; }
.fw-500     { font-weight: 500; }
.fw-600     { font-weight: 600; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-circle {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.auth-logo p { font-size: .82rem; color: var(--gray-500); }

.auth-divider {
  text-align: center;
  margin: 20px 0;
  font-size: .8rem;
  color: var(--gray-400);
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    z-index: 101;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,.3);
  }
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  #menu-toggle { display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 28px 22px; }
  .topbar { padding: 0 16px; }
}

/* ============================================================
   OVERLAY (mobile sidebar)
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   CHARTS
   ============================================================ */
.chart-wrapper {
  position: relative;
  width: 100%;
}

/* ============================================================
   DASHBOARD PANELS
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .82rem;
}
.alert-item:last-child { border-bottom: none; }
.alert-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: var(--danger); }
.dot-yellow { background: #f59e0b; }
.dot-blue   { background: var(--primary); }

/* ============================================================
   RESPONSIVIDADE MOBILE — correções adicionais
   ============================================================ */

/* Tabelas: scroll horizontal em telas pequenas */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modais: ajuste em telas pequenas */
@media (max-width: 640px) {
  .modal {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh;
    overflow-y: auto;
    margin: 0;
  }
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-footer .btn {
    flex: 1;
    min-width: 120px;
  }

  /* Toolbar — botões empilham */
  .d-flex.justify-between.align-center {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Breadcrumb truncado */
  .breadcrumb {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
  }

  /* Topbar */
  .topbar-title { font-size: 14px; }

  /* Cards KPI em 2 colunas no mobile */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Stat card menor */
  .stat-card { padding: 12px; }
  .stat-icon { width: 36px; height: 36px; font-size: 18px; flex-shrink: 0; }
  .stat-value { font-size: 1.4rem; }

  /* Filtros: empilhar inputs verticalmente */
  form.d-flex,
  .d-flex.gap-8 form {
    flex-direction: column;
    align-items: stretch !important;
  }
  form.d-flex .form-control,
  form.d-flex select,
  form.d-flex input[type="text"],
  form.d-flex input[type="date"],
  form.d-flex input[type="search"] {
    width: 100% !important;
    min-width: unset !important;
  }
  form.d-flex .btn {
    width: 100%;
  }

  /* Tabela-actions não quebra */
  .table-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
  }

  /* Page header */
  .page-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-header .btn {
    width: 100%;
  }

  /* Content padding menor */
  .content { padding: 12px; }
}

/* Tablet: 641–1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .modal { max-width: 90vw !important; }
  .content { padding: 20px; }
}

/* Telas muito pequenas: < 400px */
@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .stat-card { padding: 10px; }
  .btn-sm { padding: 4px 8px; font-size: 11px; }
  .badge { font-size: 9px; padding: 1px 6px; }
}

/* Historico checklists - ocultar colunas em mobile */
@media (max-width: 768px) {
  .historico-col-setor,
  .historico-col-funcionario,
  .historico-col-status { display: none; }
}

/* Historico - ocultar colunas 3,4,6 em mobile */
@media (max-width: 768px) {
  #tabelaHistorico th:nth-child(3),
  #tabelaHistorico td:nth-child(3),
  #tabelaHistorico th:nth-child(4),
  #tabelaHistorico td:nth-child(4),
  #tabelaHistorico th:nth-child(6),
  #tabelaHistorico td:nth-child(6) { display: none; }
}
