:root { --primary: #4b6cb7; --danger: #dc3545; --bg: #f4f7f6; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, sans-serif; background: var(--bg); margin: 0; padding: 10px; }

.stats-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.stat-card { background: white; padding: 10px; border-radius: 12px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); min-height: 85px; display: flex; flex-direction: column; justify-content: center; }
.stat-card h4 { margin: 0; color: #666; font-size: 0.6rem; text-transform: uppercase; font-weight: 700; }
.stat-card p { margin: 5px 0 0; font-size: 1rem; font-weight: bold; color: var(--primary); }
.alert-card p { color: var(--danger); }

.table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid #eee; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 12px 10px; text-align: center; border-bottom: 1px solid #f2f2f2; min-width: 90px; }
th { background: #f8f9fa; color: #888; font-size: 0.65rem; text-transform: uppercase; }

.sticky-col { position: sticky; left: 0; background: white !important; z-index: 10; text-align: left; min-width: 110px; font-weight: bold; box-shadow: 2px 0 5px rgba(0,0,0,0.05); }

.tabs { display: flex; gap: 5px; margin-bottom: 15px; }
.tab-btn { flex: 1; padding: 12px 2px; border: none; background: #ddd; border-radius: 8px; font-weight: bold; font-size: 0.75rem; }
.tab-btn.active { background: var(--primary); color: white; }

.nav-fechas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 0 10px; font-weight: bold; }
.btn-export { width: 100%; margin-top: 15px; padding: 15px; background: #28a745; color: white; border: none; border-radius: 12px; font-weight: bold; }
input[type="checkbox"] { width: 22px; height: 22px; }