/* ==========================================================================
   ADMIN DASHBOARD & PDV STYLING: SANGUINÁRIA FAMEQUI
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Colors */
  --bg-primary: #030a17;
  --bg-secondary: #081329;
  --bg-card: #0d1e3d;
  --bg-card-hover: #12284f;
  --bg-sidebar: rgba(4, 12, 29, 0.95);
  
  --primary: #0073ff;      /* Royal Blue */
  --primary-light: #3a83ed;
  --primary-dark: #0053a5;
  
  --accent-red: #ff334b;   /* Scarlet Red */
  --accent-red-hover: #ff5569;
  --accent-red-glow: rgba(255, 51, 75, 0.4);
  
  --accent-gold: #ffcc00;  /* Yellow/Gold */
  --accent-gold-glow: rgba(255, 204, 0, 0.3);
  
  --text-primary: #ffffff;
  --text-secondary: #90a0c7;
  --text-muted: #576b95;
  
  /* Borders & Glassmorphism & Glows */
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(13, 30, 61, 0.65);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-shadow: 0 0 20px rgba(0, 115, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  pointer-events: none; /* Remove o ícone de busca do Bing no Microsoft Edge */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 115, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 51, 75, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--primary) 100%);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent-red) 100%);
}

/* Text Selection */
::selection {
  background: var(--primary);
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Utilities */
.glass-panel {
  background: linear-gradient(135deg, rgba(13, 30, 61, 0.65), rgba(8, 19, 41, 0.8)) padding-box,
              linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.02);
  transition: all var(--transition-normal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  background-size: 200% auto;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 6px 16px rgba(0, 115, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-hover) 50%, #b81427 100%);
  background-size: 200% auto;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-accent:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 6px 16px rgba(255, 51, 75, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  z-index: 1;
}
.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 115, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-control:focus {
  border-color: var(--primary-light);
}

select.form-control {
  cursor: pointer;
}
select.form-control option {
  background: var(--bg-primary);
  color: white;
}

/* Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sidebar-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.sidebar-title .sub {
  display: block;
  font-size: 0.6rem;
  color: var(--accent-red);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.menu-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
  color: var(--text-primary);
  background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 115, 255, 0.2) 100%);
  border-left: 3px solid var(--primary-light);
  font-weight: 600;
}

.btn-back-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 51, 75, 0.05);
  border: 1px solid rgba(255, 51, 75, 0.15);
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}
.btn-back-store:hover {
  background: var(--accent-red);
  color: white;
}

/* Main */
.admin-main {
  display: flex;
  flex-direction: column;
}

.admin-header {
  height: 80px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(3, 10, 23, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-header h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.admin-content {
  padding: 2.5rem;
  flex: 1;
}

/* Tab content switching */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Metrics Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.metric-info {
  display: flex;
  flex-direction: column;
}
.metric-info .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-info .value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-title);
  margin-top: 4px;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.metric-icon.faturamento {
  background: rgba(0, 115, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 115, 255, 0.3);
}
.metric-icon.pedidos {
  background: rgba(255, 51, 75, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 75, 0.3);
}
.metric-icon.socios {
  background: rgba(255, 204, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 204, 0, 0.3);
}
.metric-icon.ticket {
  background: rgba(22, 160, 133, 0.15);
  color: #1abc9c;
  border: 1px solid rgba(22, 160, 133, 0.3);
}

/* Charts grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.dashboard-card {
  padding: 1.5rem;
}

.dashboard-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.chart-container {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

/* Custom SVG chart styling */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 8px;
}
.chart-bar-wrapper {
  height: 160px;
  width: 28px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-full);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.chart-bar {
  width: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  transition: height 0.5s ease-out;
  box-shadow: 0 0 10px rgba(0, 115, 255, 0.4);
}
.chart-bar-group:nth-child(even) .chart-bar {
  background: linear-gradient(180deg, var(--accent-red) 0%, #a61223 100%);
  box-shadow: 0 0 10px rgba(255, 51, 75, 0.3);
}
.chart-bar-val {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.chart-bar-lbl {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Category chart styling */
.cat-chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cat-chart-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.cat-chart-bar-wrapper {
  height: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.cat-chart-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  transition: width 0.5s ease-out;
}
.cat-chart-item:nth-child(2) .cat-chart-bar { background: var(--accent-red); }
.cat-chart-item:nth-child(3) .cat-chart-bar { background: var(--accent-gold); }
.cat-chart-item:nth-child(4) .cat-chart-bar { background: #1abc9c; }

/* Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.admin-table th {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.15);
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.01);
}

/* Badges for status */
.status-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge.pendente {
  background: rgba(255, 204, 0, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 204, 0, 0.2);
}
.status-badge.pago {
  background: rgba(58, 131, 237, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(58, 131, 237, 0.3);
}
.status-badge.entregue {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}
.status-badge.cancelado {
  background: rgba(255, 51, 75, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 75, 0.2);
}

/* CRUD Layouts */
.crud-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.crud-list, .crud-form {
  padding: 1.5rem;
}

.selected-colors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.color-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}
.color-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.color-badge button {
  color: var(--accent-red);
  background: none;
  border: none;
  font-size: 0.8rem;
}

/* PDV Point of Sale Layout */
.pdv-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 1.5rem;
  align-items: start;
}

.pdv-cart, .pdv-catalog {
  padding: 1.5rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 5px;
}

.pos-prod-card {
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}
.pos-prod-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.pos-prod-img {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.pos-prod-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-prod-price {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 2px;
}

/* POS Cart list */
.pos-cart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.pos-cart-items {
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.pos-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 8px;
}
.pos-cart-empty i { font-size: 1.75rem; }
.pos-cart-empty p { font-size: 0.8rem; }

.pos-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.02);
}
.pos-cart-row-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pos-cart-row-meta {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
.pos-qty-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}
.pos-qty-btn {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}
.pos-qty-btn:hover { background: var(--primary-light); }

.pos-client-result {
  background: rgba(22, 160, 133, 0.1);
  border: 1px solid rgba(22, 160, 133, 0.3);
  color: #1abc9c;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.pos-client-result.nao-socio {
  background: rgba(255, 51, 75, 0.1);
  border: 1px solid rgba(255, 51, 75, 0.3);
  color: var(--accent-red);
}

.pos-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0,0,0,0.12);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.pos-summary-row {
  display: flex;
  justify-content: space-between;
}
.pos-summary-row.discount {
  color: var(--accent-red);
}
.pos-summary-row.total {
  font-weight: 700;
  font-size: 1rem;
}

/* POS Selection Overlay inside catalog */
.pos-selection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.pos-selection-content {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    height: auto;
    position: relative;
  }
  .dashboard-grid, .crud-layout, .pdv-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN LIGHT MODE DESIGN SYSTEM OVERRIDES
   ========================================================================== */
body.light-mode {
  --bg-primary: #eef3fc;
  --bg-secondary: #e2eaf5;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.8);
  --bg-sidebar: rgba(226, 234, 245, 0.95);
  
  --text-primary: #0e1626;
  --text-secondary: #4a5773;
  --text-muted: #72819c;
  
  --border-light: rgba(0, 115, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 35px rgba(0, 115, 255, 0.06);
  --glass-border: rgba(0, 115, 255, 0.06);
  --glass-border-hover: rgba(0, 115, 255, 0.18);
  
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 115, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 51, 75, 0.05) 0%, transparent 45%);
}

body.light-mode .glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.35)) padding-box,
              linear-gradient(135deg, rgba(0, 115, 255, 0.08), rgba(0, 115, 255, 0.02)) border-box;
  box-shadow: var(--glass-shadow);
}

/* Glassmorphism blur override for Light Mode */
body.light-mode .glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Specific admin element overrides */
body.light-mode .admin-header {
  background: rgba(238, 243, 252, 0.5);
}

body.light-mode .form-control {
  color: var(--text-primary);
  background: rgba(14, 22, 38, 0.04);
}

body.light-mode select.form-control option {
  background: var(--bg-card);
  color: var(--text-primary);
}

body.light-mode .btn-outline {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

body.light-mode .btn-outline:hover {
  background: rgba(14, 22, 38, 0.04);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

body.light-mode .admin-table th {
  background: rgba(14, 22, 38, 0.05);
}

body.light-mode .pos-cart-row {
  background: rgba(14, 22, 38, 0.03);
}

body.light-mode .pos-qty-btn {
  background: var(--bg-secondary);
}

body.light-mode .pos-summary {
  background: rgba(14, 22, 38, 0.03);
}

body.light-mode .pos-selection-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for admin panel on mobile */
@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 1rem;
    height: auto;
  }
  .admin-sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
  }
  .admin-sidebar-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
  }
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .crud-layout {
    grid-template-columns: 1fr !important;
  }
  .pdv-layout {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .card-metricas {
    padding: 1rem;
  }
  .metricas-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
}
