* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #252b33;
}

.topbar {
    min-height: 70px;
    background: #171b21;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
}

.brand {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    font-size: 12px;
    opacity: .7;
    margin-top: 3px;
}

.usuario {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}

.usuario span {
    background: #343b46;
    padding: 5px 8px;
    border-radius: 4px;
}

.usuario a {
    color: white;
    text-decoration: none;
}

.menu {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 28px;
}

.menu a {
    display: inline-block;
    padding: 14px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.menu a:hover {
    background: #f0f1f3;
}

.contenedor {
    max-width: 1250px;
    margin: 0 auto;
    padding: 25px;
}

h1 {
    margin-top: 0;
    font-size: 25px;
}

h2 {
    font-size: 18px;
}

.bienvenida {
    color: #606873;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e3e6;
}

.card span {
    display: block;
    color: #69717c;
    font-size: 13px;
    margin-bottom: 10px;
}

.card strong {
    font-size: 30px;
}

.panel {
    background: white;
    border: 1px solid #e1e3e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 11px;
    border-bottom: 1px solid #eceef0;
    font-size: 13px;
}

th {
    background: #f7f8f9;
}

.estado-ok {
    color: #1c7c45;
    font-weight: 700;
}

.estado-off {
    color: #a13535;
    font-weight: 700;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #7b838d;
    padding: 30px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171b21;
}

.login-box {
    background: white;
    width: 380px;
    max-width: calc(100% - 30px);
    padding: 32px;
    border-radius: 10px;
}

.login-logo {
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}

.login-subtitle {
    color: #7b838d;
    text-align: center;
    margin: 6px 0 25px 0;
}

label {
    display: block;
    margin: 14px 0 6px 0;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 11px;
    border: 1px solid #cfd3d8;
    border-radius: 5px;
    font-size: 14px;
}

button {
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 12px;
    margin-top: 20px;
    background: #252b33;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #111419;
}

.alerta {
    padding: 11px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 13px;
}

.alerta.error {
    background: #fbe9e9;
    color: #8d2828;
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .usuario {
        flex-wrap: wrap;
    }

    .menu {
        padding: 0 10px;
    }

    .menu a {
        padding: 12px 8px;
    }

    .contenedor {
        padding: 15px;
    }
}

select {
    width: 100%;
    padding: 11px;
    border: 1px solid #cfd3d8;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-grid label {
    margin-top: 0;
}

.form-boton {
    display: flex;
    align-items: end;
}

.form-boton button {
    margin-top: 0;
}

.tabla-responsive {
    overflow-x: auto;
}

.form-inline-editar {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        130px
        90px;
    gap: 7px;
    min-width: 420px;
}

.form-inline-editar input,
.form-inline-editar select,
.form-inline-editar button {
    margin: 0;
}

.form-password {
    display: grid;
    grid-template-columns:
        150px
        150px
        80px;
    gap: 7px;
    min-width: 400px;
}

.form-password input,
.form-password button {
    margin: 0;
}

.form-mini {
    margin-top: 7px;
}

.boton-secundario {
    width: auto;
    margin: 0;
    padding: 9px 11px;
    background: #4b535e;
    font-size: 12px;
}

.boton-secundario:hover {
    background: #30363e;
}

.alerta.exito {
    background: #e8f5ed;
    color: #22663c;
}

.texto-secundario {
    margin-top: 4px;
    color: #7b838d;
    font-size: 11px;
}

@media (max-width: 700px) {
    .form-inline-editar {
        grid-template-columns: 1fr;
        min-width: 210px;
    }

    .form-password {
        grid-template-columns: 1fr;
        min-width: 210px;
    }
}

.consulta-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.2fr)
        minmax(170px, 1fr)
        minmax(210px, 1.2fr)
        minmax(140px, .7fr)
        130px;
    gap: 14px;
    align-items: end;
}

.consulta-grid label {
    margin-top: 0;
}

.consulta-boton button {
    margin: 0;
}

.consulta-ayuda {
    margin-top: 16px;
    color: #69717c;
    font-size: 12px;
    line-height: 1.5;
}

.texto-opcional {
    color: #8a929c;
    font-size: 11px;
    font-weight: normal;
}

.alerta.aviso {
    background: #fff7df;
    color: #755b16;
}

.resultado-resumen {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.resultado-resumen div span {
    display: block;
    color: #69717c;
    font-size: 12px;
    margin-bottom: 6px;
}

.resultado-resumen div strong {
    font-size: 16px;
}

.candidato {
    margin-top: 16px;
}

.candidato-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.candidato-titulo h2 {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.badge-ok {
    background: #e7f5ec;
    color: #1e6940;
}

.badge-neutro {
    background: #eef0f2;
    color: #616974;
}

.datos-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.datos-grid > div {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #eceef0;
}

.datos-grid span {
    display: block;
    font-size: 11px;
    color: #707985;
    margin-bottom: 5px;
}

.datos-grid strong {
    font-size: 13px;
    word-break: break-word;
}

.dato-destacado {
    font-size: 15px !important;
}

.dato-ancho {
    grid-column: span 2;
}

.candidato hr {
    border: 0;
    border-top: 1px solid #eceef0;
    margin: 22px 0;
}

.candidato h3 {
    font-size: 14px;
    margin: 0;
}

.margen-superior {
    margin-top: 18px;
}

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

@media (max-width: 600px) {
    .consulta-grid {
        grid-template-columns: 1fr;
    }

    .dato-ancho {
        grid-column: span 1;
    }

    .candidato-titulo {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   AUDITORIA
   ========================================================= */

.auditoria-filtros {
    display: grid;
    grid-template-columns:
        145px
        145px
        minmax(140px, 1fr)
        minmax(190px, 1.3fr)
        minmax(150px, 1fr)
        90px
        80px;
    gap: 10px;
    align-items: end;
}

.auditoria-filtros label {
    margin-top: 0;
}

.auditoria-boton {
    display: flex;
    align-items: end;
}

.auditoria-boton button {
    margin: 0;
    padding: 11px;
}

.boton-enlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    background: #eef0f2;
    color: #30363e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}

.boton-enlace:hover {
    background: #dde1e5;
}

.auditoria-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.tabla-auditoria {
    min-width: 1050px;
}

.auditoria-fecha {
    white-space: nowrap;
}

.auditoria-accion {
    font-weight: 700;
    font-size: 12px;
}

.auditoria-detalle summary {
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.auditoria-bloque {
    margin-top: 10px;
}

.auditoria-bloque pre {
    margin: 6px 0 0 0;
    padding: 10px;
    max-width: 600px;
    max-height: 300px;
    overflow: auto;
    background: #f7f8f9;
    border: 1px solid #e2e5e8;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 13px;
}

.paginacion a {
    text-decoration: none;
    font-weight: 700;
    color: #30363e;
}

@media (max-width: 1000px) {

    .auditoria-filtros {
        grid-template-columns:
            repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {

    .auditoria-filtros {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DASHBOARD - MONITOREO
   ========================================================= */

.estado-pendiente {
    color: #9a6b18;
    font-weight: 700;
}

.tabla-procesos td {
    vertical-align: middle;
}

.estado-sistema-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(160px, 1fr));
    gap: 14px;
}

.estado-sistema-item {
    padding: 16px;
    border: 1px solid #e4e7ea;
    border-radius: 6px;
    background: #fafbfc;
}

.estado-sistema-item span {
    display: block;
    margin-bottom: 7px;
    color: #69717c;
    font-size: 12px;
}

.estado-sistema-item strong {
    display: block;
    font-size: 20px;
}

@media (max-width: 900px) {

    .estado-sistema-grid {
        grid-template-columns:
            repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 500px) {

    .estado-sistema-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   GRETIX IPTV HUAWEI
   ========================================================= */

.iptv-page {
    max-width: 1450px;
    margin: 0 auto;
}

.iptv-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.iptv-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    opacity: .62;
    margin-bottom: 6px;
}

.iptv-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.iptv-hero p {
    margin: 8px 0 0;
    opacity: .68;
}

.iptv-integridad {
    min-width: 125px;
    padding: 12px 18px;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    background: #fff;
}

.iptv-integridad span {
    display: block;
    font-size: 12px;
    opacity: .6;
}

.iptv-integridad strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
}

.iptv-integridad.ok strong {
    color: #21864b;
}

.iptv-integridad.error strong {
    color: #b52d35;
}

.iptv-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.iptv-card {
    background: #fff;
    border: 1px solid #e2e6e9;
    border-radius: 12px;
    padding: 18px;
}

.iptv-card span {
    display: block;
    font-size: 13px;
    opacity: .65;
    margin-bottom: 8px;
}

.iptv-card strong {
    display: block;
    font-size: 27px;
    line-height: 1;
}

.iptv-card.warning strong {
    color: #b66a18;
}

.iptv-panel {
    background: #fff;
    border: 1px solid #e2e6e9;
    border-radius: 12px;
    overflow: hidden;
}

.iptv-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f2;
}

.iptv-panel-head h2 {
    margin: 0;
    font-size: 19px;
}

.iptv-panel-head p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .62;
}

.iptv-search input {
    width: 280px;
    max-width: 100%;
    padding: 10px 13px;
    border: 1px solid #d6dce0;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.iptv-table-wrap {
    overflow-x: auto;
}

.iptv-table {
    width: 100%;
    border-collapse: collapse;
}

.iptv-table th,
.iptv-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #eef1f3;
    white-space: nowrap;
}

.iptv-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .62;
    background: #fafbfb;
}

.iptv-table tbody tr:hover {
    background: #fafcfc;
}

.iptv-badge,
.iptv-status {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.iptv-badge.ok,
.iptv-badge.up,
.iptv-status.enabled {
    background: #e9f6ee;
    color: #207344;
}

.iptv-badge.bad,
.iptv-status.incomplete {
    background: #fdecee;
    color: #a92e38;
}

.iptv-badge.down {
    background: #f1f2f3;
    color: #666;
}

.iptv-table-footer {
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
    font-size: 12px;
    opacity: .62;
    background: #fafbfb;
}

.iptv-alert-error {
    padding: 18px;
    background: #fdecee;
    border: 1px solid #f3c9ce;
    border-radius: 10px;
    color: #942a33;
}

@media (max-width: 900px) {
    .iptv-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .iptv-hero,
    .iptv-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .iptv-search input {
        width: 100%;
    }
}


/* =========================================================
   IPTV - CONSULTA INDIVIDUAL
   ========================================================= */

.iptv-provision-panel {
    margin-bottom: 22px;
}

.iptv-provision-body {
    padding: 22px;
}

.iptv-sp-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.iptv-sp-field {
    width: 240px;
}

.iptv-sp-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.iptv-sp-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d6dce0;
    border-radius: 8px;
    font: inherit;
}

.iptv-btn-check {
    min-height: 43px;
    padding: 0 20px;
}

.iptv-sp-result {
    margin-top: 22px;
    border: 1px solid #e2e6e9;
    border-radius: 10px;
    overflow: hidden;
}

.iptv-sp-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #fafbfb;
    border-bottom: 1px solid #e8ecef;
}

.iptv-sp-result-head > div > span {
    display: block;
    font-size: 12px;
    opacity: .62;
}

.iptv-sp-result-head > div > strong {
    display: block;
    margin-top: 2px;
    font-size: 22px;
}

.iptv-sp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #e8ecef;
}

.iptv-sp-grid > div {
    padding: 16px;
    background: #fff;
}

.iptv-sp-grid > div > span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    opacity: .62;
}

.iptv-sp-grid > div > strong {
    font-size: 14px;
}

.iptv-sp-complete {
    padding: 15px 18px;
    background: #e9f6ee;
    color: #207344;
    font-size: 13px;
}

.iptv-sp-pending {
    padding: 18px;
    background: #fff8ed;
}

.iptv-sp-pending > strong,
.iptv-sp-pending > span,
.iptv-sp-pending > small {
    display: block;
}

.iptv-sp-pending > span {
    margin-top: 4px;
    font-size: 13px;
}

.iptv-sp-pending > small {
    margin-top: 8px;
    opacity: .6;
}

.iptv-apply-disabled {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #dfe3e6;
    color: #7a7f83;
    font-size: 13px;
    font-weight: 700;
    cursor: not-allowed;
}

.iptv-sp-error {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #f3c9ce;
    border-radius: 9px;
    background: #fdecee;
    color: #942a33;
}

.iptv-sp-error strong,
.iptv-sp-error span {
    display: block;
}

.iptv-sp-error span {
    margin-top: 3px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .iptv-sp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iptv-sp-form {
        align-items: stretch;
        flex-direction: column;
    }

    .iptv-sp-field {
        width: 100%;
    }
}

/* IPTV - BLOQUEO DOBLE ENVIO */

.iptv-bloqueo-envio {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    opacity: .72;
}

.iptv-btn-apply:disabled {
    cursor: wait;
    opacity: .55;
}


/* =========================================================
   GRETIX CORPORATIVO V1
   Encabezado, navegacion, login y estilo general
   ========================================================= */

:root {
    --gretix-bg: #f5f6f9;
    --gretix-surface: #ffffff;
    --gretix-ink: #252238;
    --gretix-muted: #727083;
    --gretix-purple: #6544a5;
    --gretix-purple-dark: #382452;
    --gretix-border: #e5e3ec;
    --gretix-lime: #d5ef59;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    background: var(--gretix-bg);
    color: var(--gretix-ink);
    line-height: 1.5;
}

h1, h2, h3, .gretix-header-product strong {
    font-family: "Funnel Display", "Manrope", Arial, sans-serif;
}

.topbar {
    min-height: 86px;
    background: #221a33;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.gretix-brand-header {
    display: flex;
    align-items: center;
    gap: 23px;
    min-width: 0;
}

.gretix-header-logo {
    width: 153px;
    height: 49px;
    object-fit: contain;
    object-position: left center;
}

.gretix-header-divider {
    width: 1px;
    height: 38px;
    background: rgba(255,255,255,.22);
}

.gretix-header-product {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gretix-header-product strong {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: .015em;
    color: #fff;
}

.gretix-header-product span {
    font-size: 12px;
    color: #c9c3d7;
}

.usuario {
    gap: 12px;
}

.usuario strong {
    color: #fff;
}

.usuario span {
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #e7e0f1;
    font-size: 11px;
    letter-spacing: .045em;
}

.usuario a {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px;
    transition: background .15s ease;
}

.usuario a:hover {
    background: rgba(255,255,255,.12);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 8px 28px;
    background: #fff;
    border-bottom: 1px solid var(--gretix-border);
    box-shadow: 0 3px 14px rgba(25,20,45,.025);
}

.menu a {
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 650;
    border-radius: 7px;
    color: #595269;
    transition: background .15s ease, color .15s ease;
}

.menu a:hover {
    background: #f2eef8;
    color: var(--gretix-purple-dark);
}

.menu a.activo {
    background: #eee8f7;
    color: #4f327e;
}

.contenedor {
    max-width: 1480px;
    padding: 30px 28px 44px;
}

h1 {
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.025em;
}

h2 {
    font-size: 19px;
}

.card, .panel {
    border: 1px solid var(--gretix-border);
    border-radius: 11px;
    box-shadow: 0 3px 15px rgba(27,19,49,.025);
}

.card strong {
    color: var(--gretix-purple-dark);
}

.panel {
    padding: 22px;
}

th {
    background: #f7f5fa;
    color: #514a60;
    font-weight: 700;
}

tbody tr:hover {
    background: #fcfbfe;
}

input, select, textarea {
    border-color: #d9d5e3;
    border-radius: 7px;
    font-family: inherit;
    color: var(--gretix-ink);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(101,68,165,.22);
    outline-offset: 1px;
    border-color: var(--gretix-purple);
}

button {
    background: var(--gretix-purple);
    border-radius: 7px;
    font-family: inherit;
    transition: background .15s ease;
}

button:hover {
    background: var(--gretix-purple-dark);
}

.boton-secundario {
    background: #665d75;
}

.boton-secundario:hover {
    background: #4b4358;
}

/* LOGIN */

.login-body {
    background:
        radial-gradient(circle at 18% 18%,
            rgba(116,81,171,.28), transparent 35%),
        radial-gradient(circle at 86% 82%,
            rgba(116,81,171,.14), transparent 38%),
        #1f182e;
    padding: 24px;
}

.login-box {
    width: 430px;
    padding: 42px;
    border-radius: 16px;
    border: 1px solid #e8e4ef;
    box-shadow: 0 22px 75px rgba(0,0,0,.18);
}

.gretix-login-brand {
    text-align: center;
    margin-bottom: 29px;
}

.gretix-login-brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 76px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.gretix-login-product {
    font-family: "Funnel Display", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--gretix-purple-dark);
    letter-spacing: .06em;
}

.login-subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--gretix-muted);
}

.login-box label {
    margin-top: 17px;
    color: #494153;
}

.login-box input {
    min-height: 45px;
    background: #fff;
}

.login-box button {
    min-height: 46px;
    margin-top: 25px;
    font-size: 14px;
}

@media (max-width: 750px) {
    .topbar {
        padding: 15px 18px;
        gap: 15px;
    }

    .gretix-brand-header {
        gap: 12px;
    }

    .gretix-header-logo {
        width: 118px;
    }

    .gretix-header-product strong {
        font-size: 19px;
    }

    .gretix-header-product span {
        font-size: 10px;
    }

    .menu {
        padding: 8px 12px;
    }

    .menu a {
        padding: 9px 10px;
        font-size: 12px;
    }

    .contenedor {
        padding: 20px 14px;
    }

    .login-box {
        padding: 30px 23px;
    }
}

/* ==================================================
   GRETIX TEMA CLARO V2
   Interfaz blanca institucional
   ================================================== */

:root {
    --gretix-bg: #f7f8fa;
    --gretix-surface: #ffffff;
    --gretix-ink: #252238;
    --gretix-muted: #747080;
    --gretix-border: #e8e5ef;
}

body {
    background: #f7f8fa;
    color: #252238;
}

/* ENCABEZADO BLANCO */

.topbar {
    background: #ffffff;
    color: #252238;
    border-bottom: 1px solid #e8e5ef;
    box-shadow: none;
}

.gretix-header-product strong {
    color: #382452;
}

.gretix-header-product span {
    color: #747080;
}

.gretix-header-divider {
    background: #e2ddeb;
}

.usuario strong {
    color: #252238;
}

.usuario span {
    background: #f2eef8;
    color: #6544a5;
}

.usuario a {
    color: #6544a5;
    border: 1px solid #e3dced;
}

.usuario a:hover {
    background: #f2eef8;
}

/* NAVEGACION */

.menu {
    background: #ffffff;
    border-bottom: 1px solid #e8e5ef;
    box-shadow: none;
}

.menu a {
    color: #60596c;
}

.menu a:hover {
    background: #f7f4fb;
    color: #6544a5;
}

.menu a.activo {
    background: #f0eaf8;
    color: #54368a;
}

/* CONTENIDO */

.contenedor {
    background: transparent;
}

.card,
.panel {
    background: #ffffff;
    border: 1px solid #e8e5ef;
    box-shadow: 0 2px 10px rgba(40,30,60,.025);
}

.card strong {
    color: #382452;
}

.estado-sistema-item,
.datos-grid > div {
    background: #fafafd;
    border-color: #ebe8f1;
}

th {
    background: #f8f7fa;
}

tbody tr:hover {
    background: #fbfaff;
}

/* FORMULARIOS */

input,
select,
textarea {
    background: #ffffff;
    border-color: #dedbe5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6544a5;
}

/* LOGIN CLARO */

.login-body {
    background: #f7f8fa;
}

.login-box {
    background: #ffffff;
    border: 1px solid #e8e5ef;
    box-shadow: 0 14px 45px rgba(42,33,64,.07);
}

/* PANEL IPTV: conservar fondo blanco */

.iptv-panel,
.iptv-card,
.iptv-integridad {
    background: #ffffff;
}

/* ADAPTACION MOVIL */

@media (max-width: 750px) {
    .topbar {
        background: #ffffff;
    }

    .usuario {
        width: 100%;
    }
}


/* =====================================================
   GRETIX DASHBOARD CLARO V3
   Estilos visuales, sin cambios funcionales
   ===================================================== */

/* Indicadores principales */

.cards {
    gap: 18px;
    margin: 24px 0 28px;
}

.cards > .card {
    position: relative;
    min-height: 145px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e5ef;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(36, 27, 56, .035);
    overflow: hidden;
}

.cards > .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #6544a5;
}

.cards > .card span {
    color: #696575;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 17px;
}

.cards > .card strong {
    display: block;
    color: #30253f;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.15;
}

/* Paneles */

.contenedor > .panel {
    margin-top: 22px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e8e5ef;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(36, 27, 56, .025);
}

.contenedor > .panel > h2 {
    margin: 0 0 20px;
    color: #30253f;
    font-size: 19px;
    font-weight: 700;
}

/* Tablas de monitoreo */

.tabla-procesos {
    border-collapse: separate;
    border-spacing: 0;
}

.tabla-procesos th {
    padding: 14px 16px;
    background: #f8f7fa;
    color: #655f70;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.tabla-procesos td {
    padding: 18px 16px;
    border-bottom: 1px solid #efedf3;
    font-size: 13px;
    color: #474152;
}

.tabla-procesos td:first-child strong {
    font-size: 14px;
    color: #30253f;
}

.tabla-procesos .texto-secundario {
    margin-top: 5px;
    font-size: 12px;
    color: #807a8a;
}

/* Estados de procesos */

.tabla-procesos .estado-ok,
.tabla-procesos .estado-off,
.tabla-procesos .estado-pendiente {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tabla-procesos .estado-ok {
    background: #eaf6ee;
    color: #216b40;
}

.tabla-procesos .estado-off {
    background: #fcebec;
    color: #a3323c;
}

.tabla-procesos .estado-pendiente {
    background: #fff5df;
    color: #8b641a;
}

.tabla-procesos .estado-ok::before,
.tabla-procesos .estado-off::before,
.tabla-procesos .estado-pendiente::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* Almacenamiento */

.estado-sistema-grid {
    gap: 16px;
}

.estado-sistema-item {
    min-height: 120px;
    padding: 20px;
    background: #fbfafd;
    border: 1px solid #ebe8f1;
    border-radius: 10px;
}

.estado-sistema-item span {
    font-size: 12px;
    font-weight: 600;
    color: #777182;
}

.estado-sistema-item strong {
    margin-top: 12px;
    font-size: 25px;
    line-height: 1.2;
    color: #30253f;
}

.estado-sistema-item .texto-secundario {
    margin-top: 8px;
}

/* Responsive */

@media (max-width: 750px) {
    .cards {
        gap: 12px;
    }

    .cards > .card {
        min-height: 120px;
        padding: 19px;
    }

    .contenedor > .panel {
        padding: 18px;
    }

    .tabla-procesos {
        min-width: 790px;
    }
}


/* ==================================================
   GRETIX DASHBOARD V4
   Ajustes de densidad, tipografia y monitoreo
   ================================================== */

/* Tarjetas mas compactas */

.cards {
    gap: 16px;
    margin: 20px 0 24px;
}

.cards > .card {
    min-height: 112px;
    padding: 20px 23px;
}

.cards > .card span {
    margin-bottom: 13px;
    font-size: 12px;
    font-weight: 650;
}

.cards > .card strong {
    font-size: 32px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Encabezado del dashboard */

.contenedor > h1 {
    margin-bottom: 8px;
    font-size: 28px;
    letter-spacing: -.025em;
}

.contenedor > .bienvenida {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 13px;
}

/* Paneles y tablas */

.contenedor > .panel {
    margin-top: 18px;
    padding: 23px 25px;
}

.contenedor > .panel > h2 {
    margin-bottom: 17px;
}

.tabla-procesos th {
    padding: 12px 15px;
}

.tabla-procesos td {
    padding: 16px 15px;
    vertical-align: middle;
}

.tabla-procesos tbody tr:last-child td {
    border-bottom: 0;
}

.tabla-procesos .estado-ok,
.tabla-procesos .estado-off,
.tabla-procesos .estado-pendiente {
    min-height: 27px;
}

/* Indicadores de almacenamiento */

.estado-sistema-item {
    min-height: 108px;
    padding: 18px;
}

.estado-sistema-item strong {
    margin-top: 9px;
    font-size: 23px;
    font-variant-numeric: tabular-nums;
}

/* Adaptacion movil */

@media (max-width: 750px) {
    .cards > .card {
        min-height: 105px;
        padding: 17px;
    }

    .cards > .card strong {
        font-size: 28px;
    }

    .contenedor > .panel {
        padding: 17px;
    }
}


/* =====================================================
   GRETIX CONSULTA V5
   Interfaz clara de trazabilidad
   ===================================================== */

/* Formulario principal */

.consulta-grid {
    gap: 16px;
    align-items: end;
}

.consulta-grid > div {
    min-width: 0;
}

.consulta-grid label {
    color: #514a60;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.consulta-grid input,
.consulta-grid select {
    height: 45px;
    min-width: 0;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #dedbe5;
    border-radius: 8px;
    font-size: 13px;
}

.consulta-grid input:focus,
.consulta-grid select:focus {
    border-color: #6544a5;
    outline: 2px solid rgba(101,68,165,.14);
}

.consulta-boton button {
    height: 45px;
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.consulta-ayuda {
    margin-top: 20px;
    padding: 13px 16px;
    background: #f8f7fb;
    border: 1px solid #eeeaf4;
    border-radius: 8px;
    color: #686173;
    font-size: 12px;
    line-height: 1.6;
}

/* Resumen de resultados */

.resultado-resumen {
    gap: 16px;
}

.resultado-resumen > div {
    min-width: 0;
    padding: 16px;
    background: #faf9fc;
    border: 1px solid #ece8f2;
    border-radius: 9px;
}

.resultado-resumen > div span {
    color: #777080;
    font-size: 11px;
    font-weight: 650;
}

.resultado-resumen > div strong {
    display: block;
    color: #30253f;
    font-size: 17px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

/* Candidatos */

.candidato {
    border: 1px solid #e5e1eb;
    border-radius: 13px;
    background: #ffffff;
}

.candidato-titulo {
    padding-bottom: 17px;
    border-bottom: 1px solid #efedf3;
}

.candidato-titulo h2 {
    font-size: 20px;
    color: #30253f;
}

.candidato h3 {
    font-size: 14px;
    font-weight: 750;
    color: #49365f;
}

.candidato hr {
    margin: 24px 0 20px;
    border-top-color: #ece8f2;
}

/* Información de trazabilidad */

.datos-grid {
    gap: 12px;
}

.datos-grid > div {
    padding: 15px;
    background: #fafafd;
    border: 1px solid #ece9f2;
    border-radius: 9px;
    min-width: 0;
}

.datos-grid span {
    font-size: 11px;
    color: #797281;
    font-weight: 600;
    margin-bottom: 7px;
}

.datos-grid strong {
    font-size: 13px;
    font-weight: 700;
    color: #30253f;
    overflow-wrap: anywhere;
}

.datos-grid .dato-destacado {
    color: #56358b;
    font-size: 16px !important;
}

/* Estados */

.candidato .badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: .025em;
}

.candidato .badge-ok {
    background: #eaf6ee;
    color: #216b40;
}

.candidato .badge-neutro {
    background: #f1f0f3;
    color: #696371;
}

/* Botón de exportación */

.contenedor form[action="/exportar_informe.php"] button {
    background: #6544a5;
    border-radius: 8px;
    min-height: 42px;
}

.contenedor form[action="/exportar_informe.php"] button:hover {
    background: #382452;
}

/* Adaptación responsive */

@media (max-width: 1100px) {
    .consulta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .consulta-grid {
        grid-template-columns: 1fr;
    }

    .resultado-resumen {
        grid-template-columns: 1fr;
    }

    .candidato-titulo {
        align-items: flex-start;
    }

    .datos-grid {
        grid-template-columns: 1fr;
    }
}

