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

body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
}

nav {
    background: #1a1a2e;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav span {
    font-size: 14px;
    opacity: 0.7;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h1 { font-size: 24px; }

.actions { display: flex; gap: 10px; }

.btn {
    background: #1a1a2e;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover { background: #16213e; }

.btn.secondary {
    background: #666;
}

.btn.secondary:hover { background: #444; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card h2 { font-size: 18px; margin-bottom: 8px; }
.card p { color: #666; font-size: 14px; }

.form-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-collapse: collapse;
    overflow: hidden;
}

th {
    background: #1a1a2e;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8f9fa; }

.empty {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty p { color: #666; margin-bottom: 20px; }

.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.success { background: #d4edda; color: #155724; }
.alert.error { background: #f8d7da; color: #721c24; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card.destacado { border-left: 5px solid #1a1a2e; }
.stat-card.alerta { border-left: 5px solid #e67e22; }

.stat-numero {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.stat-categoria {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    color: #1a1a2e;
}

.stat-sub { color: #666; font-size: 13px; margin-top: 5px; }

.fila-activa td { background: #e8f4fd; font-weight: bold; }

.barra-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.barra-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.barra-fondo {
    background: #e0e0e0;
    border-radius: 20px;
    height: 32px;
    overflow: hidden;
}

.barra-progreso {
    background: linear-gradient(90deg, #1a1a2e, #e67e22);
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.5s ease;
    min-width: 40px;
}

.barra-texto {
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.barra-info {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}
.btn.danger { background: #c0392b; }
.btn.danger:hover { background: #a93226; }

.text-alerta { color: #c0392b; font-weight: bold; }

tfoot td {
    background: #f0f2f5;
    padding: 12px 15px;
    border-top: 2px solid #1a1a2e;
}

.menu-cliente {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    cursor: pointer;
}

.menu-card:hover { transform: translateY(-3px); }
.menu-card.danger { border-left: 4px solid #c0392b; }
.menu-card.danger:hover { background: #fdf2f2; }

.menu-icono {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.menu-card h3 { font-size: 15px; margin-bottom: 4px; }
.menu-card p { font-size: 12px; color: #888; }

.sugerencia {
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 5px solid;
}
.sugerencia.success { background: #d4edda; border-color: #28a745; color: #155724; }
.sugerencia.alerta { background: #fff3cd; border-color: #e67e22; color: #856404; }
.sugerencia.ok { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }
.sugerencia strong { display: block; margin-bottom: 6px; font-size: 15px; }
