/* ==========================================
   FILTROS DEL PANEL
========================================== */

.xray-filtros {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
}

.xray-filtro label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.xray-filtro input,
.xray-filtro select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cdd2d8;
    border-radius: 6px;
    box-sizing: border-box;
}

.xray-filtro-botones {
    display: flex;
    gap: 8px;
}

.xray-boton-buscar,
.xray-boton-limpiar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.xray-boton-buscar {
    border: 0;
    background: #0073aa;
    color: #ffffff;
}

.xray-boton-buscar:hover {
    background: #005f8d;
}

.xray-boton-limpiar {
    border: 1px solid #cdd2d8;
    background: #ffffff;
    color: #333333;
}

.xray-boton-limpiar:hover {
    background: #f3f4f5;
}

/* ==========================================
   TARJETAS DE ESTADÍSTICAS
========================================== */

.xray-resumen {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.xray-tarjeta {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    text-align: center;
}

.xray-tarjeta-titulo {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #656d76;
}

.xray-tarjeta strong {
    font-size: 25px;
    line-height: 1;
}

.xray-nuevo {
    border-top: 4px solid #2271b1;
}

.xray-pendiente {
    border-top: 4px solid #dba617;
}

.xray-gestionando {
    border-top: 4px solid #8c5bd6;
}

.xray-reabierto {
    border-top: 4px solid #d63638;
}

.xray-cerrado {
    border-top: 4px solid #46a758;
}

/* ==========================================
   RESUMEN POR PAÍS
========================================== */

.xray-resumen-paises {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.xray-pais {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid #e2e5e9;
    border-radius: 20px;
    background: #ffffff;
}

/* ==========================================
   TABLA DE TICKETS
========================================== */

.xray-tabla-contenedor {
    overflow-x: auto;
}

.xray-tabla {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #ffffff;
}

.xray-tabla th {
    padding: 10px;
    background: #f6f7f7;
    border-bottom: 2px solid #dcdcde;
    white-space: nowrap;
}

.xray-tabla td {
    padding: 10px;
    border-top: 1px solid #dcdcde;
    vertical-align: middle;
}

.xray-tabla tbody tr:hover {
    background: #f9fafb;
}

/* ==========================================
   ESTADOS
========================================== */

.estado-ticket {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.estado-label_BW88 {
    background: #e7f1fa;
    color: #135e96;
}

.estado-label_LL03 {
    background: #fff4ce;
    color: #7a5d00;
}

.estado-label_LL01 {
    background: #efe8fa;
    color: #5b3595;
}

.estado-label_ZF25 {
    background: #fce8e8;
    color: #9b2024;
}

.estado-label_LL02 {
    background: #e7f7ed;
    color: #216e39;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1000px) {
    .xray-filtros {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .xray-resumen {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 600px) {
    .xray-filtros,
    .xray-resumen {
        grid-template-columns: 1fr;
    }

    .xray-filtro-botones {
        flex-direction: column;
    }

    .xray-boton-buscar,
    .xray-boton-limpiar {
        width: 100%;
        box-sizing: border-box;
    }
}

.xray-estadisticas{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin:20px 0 30px;
}

.xray-estadistica{
    flex:1;
    min-width:170px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:18px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    transition:.2s;
}

.xray-estadistica:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.xray-estadistica strong{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#6b7280;
    margin-bottom:8px;
}

.xray-estadistica span{
    display:block;
    font-size:34px;
    line-height:1;
    font-weight:700;
    color:#111827;
}

/* Nuevo */
.xray-estadistica.label_BW88{
    border-top:4px solid #10B981;
}

/* Abierto de nuevo */
.xray-estadistica.label_ZF25{
    border-top:4px solid #3B82F6;
}

/* Pendiente */
.xray-estadistica.label_LL03{
    border-top:4px solid #c10000;
}

/* Gestionando */
.xray-estadistica.label_LL01{
    border-top:4px solid #8B5CF6;
}