/* =========================
   RESET + BASE
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f4f9;
    padding: 20px;
    color: #212529;
}

/* =========================
   CONTENEDORES
   ========================= */
.container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 20px;
}

.panel {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-container {
    max-width: 500px;
    margin: auto;
    text-align: center;
}

/* =========================
   TITULOS
   ========================= */
h1, h2, h3 {
    margin-bottom: 20px;
}

/* =========================
   FORMULARIOS
   ========================= */
input,
select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* =========================
   BOTONES UNIVERSALES
   ========================= */
.btn,
button,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;
    border-radius: 6px;
    border: none;

    cursor: pointer;
    font-weight: bold;
    text-decoration: none;

    color: #ffffff;
    transition: all 0.2s ease;
}

.btn:hover,
button:hover,
a.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== VARIANTES DE COLOR ===== */
.btn-blue   { background: #007bff; }
.btn-green  { background: #28a745; }
.btn-red    { background: #dc3545; }
.btn-gray   { background: #6c757d; }
.btn-purple { background: #6f42c1; }
.btn-dark   { background: #343a40; }
.btn-warning {
    background: #ffc107;
    color: #212529;
}

/* =========================
   TABLAS
   ========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    text-align: left;
}

/* =========================
   FLEX / UTILIDADES
   ========================= */
.flex {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.center {
    text-align: center;
}

/* =========================
   AVISOS / ALERTAS
   ========================= */
.panel-avisos {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 15px;
}

.panel-avisos h3 {
    color: #856404;
}

.panel-avisos li {
    margin-bottom: 6px;
}

.panel-success {
    background: #e9f7ef;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
}

/* =========================
   TOTALES / DESTACADOS
   ========================= */
.total-box {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    color: #1a9b2e;
}

/* =========================
   ACCIONES (FOOTER BOTONES)
   ========================= */
.acciones {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.accion-btn {
    min-width: 160px;
    text-align: center;
}

.accion-form {
    margin: 0;
}

/* =========================
   OTROS
   ========================= */
.qr-reader {
    width: 100%;
    margin-top: 10px;
    display: none;
    border: 1px solid #ccc;
}

.empty {
    text-align: center;
    color: grey;
}
.menu-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}