/* ============================================================
   LISTA DE EQUIPOS — VERSIÓN APP RESPONSIVE
   ============================================================ */

/* ============================
   ESTILOS GENERALES
============================ */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 30px;
    background-color: #aad4fd;
    color: #333;
}

/* Título */
h2 {
    color: #0078ff;
 
}

/* Botón volver */
.btn-volver {
    display: inline-block;
    padding: 10px 16px;
    background: #e8ecf3;
    border-radius: 12px;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 18px;
}
.btn-volver:hover {
    background: #d5dae3;
}

/* Mensaje cliente */
.mensaje-cliente {
    padding: 12px;
    background: #e9f7ef;
    border-left: 5px solid #28a745;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #155724;
}

/* ============================
   TOOLBAR (PC)
============================ */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.toolbar select,
.toolbar input {
    padding: 10px 12px;
    border: 1px solid #c6c6c6;
    border-radius: 10px;
    background: white;
    font-size: 15px;
}

.btn-config {
    padding: 10px 12px;
    background: #007bff;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
.btn-config:hover {
    background: #005ec2;
}

/* ============================================================
   TABLA PRINCIPAL (PC / TABLET AMPLIA)
============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

th {
    background: #343a40;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 14px;
}

tbody tr:hover {
    background: #f3f6fa;
}

/* =======================
   ESTILOS DE ESTADO
======================= */

.estado-Pendiente {
    color: #f39c12 !important;
    font-weight: bold;
}
.estado-En_reparacion {
    color: #2980b9 !important;
    font-weight: bold;
}
.estado-Listo {
    color: #27ae60 !important;
    font-weight: bold;
}
.estado-Listo_pero_no_retirado {
    color: #c0392b !important;
    font-weight: bold;
}
.estado-Entregado {
    color: #7f8c8d !important;
    font-weight: bold;
}

table img {
    max-width: 70px;
    border-radius: 6px;
}

/* ============================================================
   PANEL DE COLUMNAS (DEBAJO DEL BOTÓN)
============================================================ */

.columnas-wrapper {
    position: relative;
}

#panelColumnas {
    position: absolute;
    top: 45px;
    left: 0;
    width: 260px;
    background: white;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
    border: 1px solid #ddd;
    z-index: 9999;
}

#panelColumnas.oculto {
    display: none;
}

/* ============================================================
   PAGINACIÓN
============================================================ */

.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.paginacion button {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #e8ecf3;
}
.paginacion button:hover {
    background: #cdd4df;
}

/* ============================================================
   TARJETAS PARA MÓVIL — VISTA APP
============================================================ */

.vista-mobile {
    display: none;
}

.vista-mobile .card-equipo {
    background: white;
    padding: 16px;
    margin: 16px 12px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    border-left: 6px solid #007bff;
}

.vista-mobile .card-equipo h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #0d47a1;
}

.vista-mobile .card-equipo p {
    margin: 2px 0;
    font-size: 14px;
    color: #455A64;
}

.vista-mobile .estado {
    margin-top: 6px;
    font-weight: 700;
}

.vista-mobile .btn-ver-detalle {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 12px;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 15px;
}

/* ============================================================
   RESPONSIVE — CELULAR Y TABLET
============================================================ */

@media (max-width: 768px) {

    body {
        margin: 10px;
    }

    h2 {
        text-align: center;
        font-size: 22px;
        margin-bottom: 16px;
    }

    /* MOSTRAR TARJETAS Y OCULTAR TABLA */
    #contenedorTabla {
        display: none !important;
    }

    .vista-mobile {
        display: block;
    }

    /* TOOLBAR VERTICAL */
    .toolbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .toolbar input,
    .toolbar select,
    .btn-volver {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 12px;
    }

    /* BOTÓN COLUMNAS */
    .columnas-wrapper {
        width: 100%;
    }

    #btnColumnas {
        width: 100%;
    }

    #panelColumnas {
        width: 100%;
        top: 55px;
        left: 0;
    }
}
