:root {
    --primary: #0f2f57;
    --accent: #f4b000;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
.app { min-height: 100vh; display: flex; }
.sidebar { width: 280px; background: var(--primary); color: white; padding: 24px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 36px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.brand span { display: block; color: #cbd5e1; font-size: 13px; margin-top: 4px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar a { color: white; text-decoration: none; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); }
.sidebar a:hover { background: rgba(255,255,255,.16); }
.logout { margin-top: auto; }
.logout button { width: 100%; background: transparent; color: white; border: 1px solid rgba(255,255,255,.35); padding: 12px; border-radius: 12px; cursor: pointer; }
.content { flex: 1; padding: 28px; }
.topbar { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 16px 22px; display: flex; justify-content: space-between; margin-bottom: 22px; }
.topbar small { display: block; color: var(--muted); margin-bottom: 4px; }
.panel, .login-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 10px 25px rgba(15,47,87,.06); margin-bottom: 22px; }
.login-card { max-width: 430px; margin: 8vh auto; }
h1 { margin: 0 0 8px; color: var(--primary); }
h2 { margin-top: 0; color: var(--primary); }
p { color: var(--muted); }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
button, .button { background: var(--primary); color: white; border: none; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { opacity: .92; }
.secondary { background: var(--accent); color: var(--primary); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: #eef2f7; color: var(--primary); text-align: left; padding: 13px; }
td { border-bottom: 1px solid var(--border); padding: 13px; }
td a { color: var(--primary); font-weight: 700; }
.empty, .muted { color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; }
.ok { background: #e8f7ee; color: #146c2e; }
.error { background: #fdecec; color: #9b1c1c; }
.small-panel { max-width: 560px; }
.form-vertical { display: grid; }
@media (max-width: 850px) {
    .app { display: block; }
    .sidebar { width: 100%; }
    .filters { grid-template-columns: 1fr; }
    .topbar { display: block; }
}

button.btn-consulta {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px !important;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}
button.btn-reporte {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 12px !important;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}



.btn {
    border-radius: 12px;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}





.modal-content {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 47, 87, .18);
}

.modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.modal-title {
    color: var(--primary);
    font-weight: 800;
    margin: 0;
}

.modal-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.modal-body {
    padding: 22px 24px;
}

.modal-body .form-label {
    color: var(--primary);
    font-size: 14px;
}

.modal-body .form-control {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    box-shadow: none;
}

.modal-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 47, 87, .10);
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    gap: 10px;
}

.modal-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    background: var(--bg);
    color: var(--primary);
    font-size: 24px;
    font-weight: 400;
}

.modal-close:hover {
    background: var(--border);
    opacity: 1;
}









/* =====================================================
   ESTATUS
===================================================== */

.estatus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.estatus-badge--pendiente {
    background: #fff3cd;
    color: #8a6500;
}

.estatus-badge--en_proceso {
    background: #e3efff;
    color: #2563a6;
}

.estatus-badge--resuelto {
    background: #dff5e8;
    color: #287a4d;
}

.estatus-badge--rechazado {
    background: #fde5e5;
    color: #b23b3b;
}


/* =========================================================
   MIS REPORTES - CLIENTE
========================================================= */

.reportes-cliente {
    padding: 28px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.reportes-cliente__header {
    margin-bottom: 26px;
}

.reportes-cliente__header h1 {
    margin: 0;

    color: var(--primary);

    font-size: 34px;
    font-weight: 500;
}

.reportes-cliente__header p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   LISTADO
========================================================= */

.reportes-cliente__lista {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   TARJETA / ACORDEÓN
========================================================= */

.reporte-cliente {
    position: relative;

    overflow: hidden;

    border: 1px solid #dfe5ec;
    border-radius: 14px;

    background: #ffffff;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.reporte-cliente::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: #cbd5e1;
}

.reporte-cliente--pendiente::before {
    background: #d9aa18;
}

.reporte-cliente--en_proceso::before {
    background: #4c83bd;
}

.reporte-cliente--resuelto::before {
    background: #4d9a6d;
}

.reporte-cliente--rechazado::before {
    background: #c65b5b;
}

.reporte-cliente:hover {
    border-color: #c7d2df;

    box-shadow:
        0 6px 18px rgba(15, 47, 87, 0.06);
}

.reporte-cliente[open] {
    border-color: #c8d4e0;

    box-shadow:
        0 8px 22px rgba(15, 47, 87, 0.07);
}


/* =========================================================
   SUMMARY
========================================================= */

.reporte-cliente__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 88px;

    padding: 18px 22px 18px 25px;

    list-style: none;

    cursor: pointer;

    user-select: none;
}

.reporte-cliente__summary::-webkit-details-marker {
    display: none;
}

.reporte-cliente__summary::marker {
    display: none;
    content: '';
}


/* =========================================================
   IDENTIFICACIÓN
========================================================= */

.reporte-cliente__identificacion {
    display: flex;
    align-items: center;

    gap: 55px;

    min-width: 0;
}

.reporte-cliente__documento,
.reporte-cliente__fecha {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.reporte-cliente__documento span,
.reporte-cliente__fecha span {
    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}

.reporte-cliente__documento strong {
    color: var(--primary);

    font-size: 18px;
    font-weight: 800;
}

.reporte-cliente__fecha strong {
    color: #334155;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   LADO DERECHO
========================================================= */

.reporte-cliente__acciones {
    display: flex;
    align-items: center;

    gap: 22px;

    flex-shrink: 0;
}

.reporte-cliente__toggle {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    min-width: 100px;

    color: #52657a;

    font-size: 13px;
    font-weight: 700;
}

.reporte-cliente__toggle:hover {
    color: var(--primary);
}

.reporte-cliente__ocultar {
    display: none;
}

.reporte-cliente__flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color: #64748b;

    font-size: 18px;

    transition:
        transform 0.2s ease;
}

.reporte-cliente[open]
.reporte-cliente__ver {
    display: none;
}

.reporte-cliente[open]
.reporte-cliente__ocultar {
    display: inline;
}

.reporte-cliente[open]
.reporte-cliente__flecha {
    transform: rotate(180deg);
}


/* =========================================================
   CONTENIDO DESPLEGADO
========================================================= */

.reporte-cliente__contenido {
    padding: 0 25px 25px;

    border-top: 1px solid #edf1f5;

    background: #ffffff;
}


/* =========================================================
   BLOQUES
========================================================= */

.reporte-cliente__bloque {
    padding: 23px 0;

    border-bottom: 1px solid #edf1f5;
}

.reporte-cliente__bloque-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}

.reporte-cliente__titulo {
    display: block;

    margin-bottom: 10px;

    color: #475569;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reporte-cliente__bloque-header
.reporte-cliente__titulo {
    margin-bottom: 0;
}

.reporte-cliente__cantidad {
    color: #94a3b8;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.reporte-cliente__descripcion {
    padding: 15px 17px;

    border: 1px solid #e1e7ee;
    border-radius: 10px;

    background: #f8fafc;

    color: #334155;

    font-size: 14px;
    line-height: 1.6;

    min-height: auto;
}


/* =========================================================
   EVIDENCIAS
========================================================= */

.reporte-cliente__evidencias {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.reporte-cliente__evidencia {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    padding: 13px 14px;

    border: 1px solid #dbe3ec;
    border-radius: 10px;

    background: #fbfdff;
}

.reporte-cliente__evidencia-icono {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 9px;

    background: #e8eef5;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
}

.reporte-cliente__evidencia-info {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.reporte-cliente__evidencia-info span {
    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}

.reporte-cliente__evidencia-info strong {
    overflow: hidden;

    color: var(--text);

    font-size: 13px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SEGUIMIENTO
========================================================= */

.reporte-cliente__seguimiento {
    margin-top: 22px;

    padding: 16px 18px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;
}

.reporte-cliente__seguimiento
.reporte-cliente__titulo {
    margin-bottom: 6px;
}

.reporte-cliente__seguimiento p {
    margin: 0;

    color: #475569;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   RESPUESTA DE FACTURACIÓN
========================================================= */

.reporte-cliente__respuesta {
    margin-top: 22px;

    padding: 18px 20px;

    border: 1px solid;
    border-radius: 11px;
}

.reporte-cliente__respuesta--resuelto {
    border-color: #cce8d7;

    background: #f2faf5;
}

.reporte-cliente__respuesta--rechazado {
    border-color: #f0cccc;

    background: #fff6f6;
}
.reporte-cliente__respuesta--en_proceso {
    background: #fff8e1;
    border-color: #f2c94c;
}

.reporte-cliente__respuesta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 11px;
}

.reporte-cliente__respuesta-titulo {
    display: flex;
    align-items: center;

    gap: 9px;
}

.reporte-cliente__respuesta-titulo strong {
    color: #334155;

    font-size: 14px;
}

.reporte-cliente__respuesta-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
}

.reporte-cliente__respuesta--resuelto
.reporte-cliente__respuesta-icono {
    background: #dff5e8;

    color: #287a4d;
}

.reporte-cliente__respuesta--rechazado
.reporte-cliente__respuesta-icono {
    background: #fde5e5;

    color: #b23b3b;
}

.reporte-cliente__respuesta-fecha {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;
}

.reporte-cliente__respuesta p {
    margin: 8px 0 0 0;
    padding: 0;

    color: #475569;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;

    white-space: pre-line;
}
.reporte-cliente__respuesta--en_proceso-normal {
    background: #f8fafc;
    border-color: #d8e2ee;
}

/* =========================================================
   ESTADO VACÍO
========================================================= */

.reportes-cliente__vacio {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 520px;

    margin: 30px auto;

    padding: 40px 20px;

    text-align: center;
}

.reportes-cliente__vacio-icono {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 17px;

    border-radius: 50%;

    background: #eef3f8;

    color: var(--primary);

    font-size: 24px;
    font-weight: 800;
}

.reportes-cliente__vacio h2 {
    margin: 0 0 8px;

    color: var(--primary);

    font-size: 21px;
}

.reportes-cliente__vacio p {
    max-width: 460px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}

.reportes-cliente__vacio-btn {
    margin-top: 20px;
}


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

@media (max-width: 750px) {

    .reportes-cliente {
        padding: 20px;
    }

    .reportes-cliente__header h1 {
        font-size: 27px;
    }

    .reporte-cliente__summary {
        align-items: flex-start;
        flex-direction: column;

        gap: 16px;

        padding: 18px 20px 18px 23px;
    }

    .reporte-cliente__identificacion {
        width: 100%;

        justify-content: space-between;

        gap: 20px;
    }

    .reporte-cliente__acciones {
        width: 100%;

        justify-content: space-between;
    }

    .reporte-cliente__contenido {
        padding: 0 20px 20px;
    }

    .reporte-cliente__evidencias {
        grid-template-columns: 1fr;
    }

    .reporte-cliente__respuesta-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

}


@media (max-width: 480px) {

    .reporte-cliente__identificacion {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .reporte-cliente__acciones {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

}
/* =========================================================
   PAGINACION - MIS REPORTES
========================================================= */

.reportes-cliente__paginacion {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 22px;
}

.reportes-cliente__paginacion-info {
    color: var(--muted);

    font-size: 13px;
}

.reportes-cliente__paginacion-info strong {
    color: var(--text);
}

.reportes-cliente__paginacion-controles {
    display: flex;
    align-items: center;

    gap: 5px;
}

.reporte-pagina {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border: 1px solid #dbe3ec;
    border-radius: 8px;

    background: #ffffff;

    color: #475569;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.reporte-pagina:hover {
    background: #f1f5f9;

    color: var(--primary);

    text-decoration: none;
}

.reporte-pagina--activa {
    border-color: var(--primary);

    background: var(--primary);

    color: #ffffff;
}

.reporte-pagina--disabled {
    opacity: 0.4;

    cursor: default;
}

.reporte-pagina-puntos {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;

    color: #64748b;

    font-weight: 700;
}


@media (max-width: 650px) {

    .reportes-cliente__paginacion {
        flex-direction: column;
        align-items: flex-start;
    }

}
.reporte-cliente__evidencia {
    color: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.reporte-cliente__evidencia:hover {
    transform: translateY(-2px);

    border-color: #9fb5cc;

    box-shadow:
        0 7px 18px rgba(15, 47, 87, 0.08);

    text-decoration: none;
}

.reporte-cliente__evidencia-accion {
    margin-top: 3px;

    color: #2f5e8e;

    font-size: 11px;
    font-weight: 700;
}
