/* ===== Empanadas San Francisco — App Styles ===== */

:root {
  --sf-primary: #1a5276;
  --sf-accent: #c0392b;
  --sf-bg: #f8f9fa;
}

/* Sidebar */
.app-sidebar .sidebar-brand {
  background: var(--sf-primary);
}

.app-sidebar .sidebar-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Navbar header */
.app-header.navbar {
  background: var(--sf-primary) !important;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* Stat cards */
.stat-card {
  border-left: 4px solid var(--sf-accent);
  transition: transform 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6c757d;
}

/* Tables */
.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6c757d;
  border-top: none;
}

/* Badges */
.badge-perfecto { background: #27ae60; }
.badge-estable { background: #f39c12; }
.badge-critico { background: #e74c3c; }

/* Forms */
.form-label {
  font-weight: 500;
  font-size: 0.85rem;
}

/* Print */
@media print {
  .app-header, .app-sidebar, .app-footer, .btn { display: none !important; }
  .app-main { margin-left: 0 !important; }
}

/* ===== OPS-603: accesibilidad y móvil ===== */

/* Foco visible en navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sf-primary);
  outline-offset: 2px;
}

/* Tablas amplias desplazables en pantallas chicas */
.card-body {
  overflow-x: auto;
}

/* Targets táctiles suficientes en controles compactos */
.btn-sm {
  min-height: 32px;
  min-width: 32px;
}
