:root {
    --app-font-family: "Segoe UI", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
table,
option {
    font-family: var(--app-font-family);
}

/* APP.CSS - CSS ÚNICO DEL PROYECTO. Versión corregida. */

/* ===== desktop.css ===== */
:root {

    --ink: #172033;

    --muted: #647087;

    --line: #e4e8ef;

    --bg: #f7f8fb;

    --surface: #ffffff;

    --accent: #3157d5;

    --accent-dark: #2445b1;

    --success: #16794c;

    --danger: #b42318;

    --shadow:
        0 18px 50px rgba(23,32,51,.08);
}


/*
|--------------------------------------------------------------------------
| BASE
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family: var(--app-font-family);

    color: var(--ink);

    background: var(--surface);

    line-height: 1.6;
}


a {

    color: var(--accent);

    text-decoration: none;
}


a:hover {
    text-decoration: underline;
}


.container {

    width:
        min(
            1120px,
            calc(100% - 48px)
        );

    margin: auto;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {

    position: sticky;

    top: 0;

    z-index: 10;

    background:
        rgba(255,255,255,.94);

    backdrop-filter: blur(12px);

    border-bottom:
        1px solid var(--line);
}


.nav {

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {

    font-weight: 800;

    font-size: 1.15rem;

    color: var(--ink);
}


.brand span {
    color: var(--accent);
}


.nav-links {

    display: flex;

    align-items: center;

    gap: 28px;
}


.nav-links a:not(.btn) {
    color: var(--ink);
}


.nav-toggle {
    display: none;
}


/*
|--------------------------------------------------------------------------
| BOTONES
|--------------------------------------------------------------------------
*/

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--accent);

    background: var(--accent);

    color: #fff;

    padding: 12px 20px;

    font-weight: 700;

    cursor: pointer;
}


.btn:hover {

    background:
        var(--accent-dark);

    text-decoration: none;
}


.btn-outline {

    background: transparent;

    color: var(--accent);
}


.btn-small {

    padding:
        9px 15px;
}


.btn-full {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| HERO
|--------------------------------------------------------------------------
*/

.hero {

    padding:
        110px 0 100px;

    background:
        linear-gradient(
            135deg,
            #f7f8ff,
            #fff 60%
        );
}


.hero-grid {

    display: grid;

    grid-template-columns:
        1.25fr .75fr;

    gap: 80px;

    align-items: center;
}


.eyebrow {

    text-transform: uppercase;

    letter-spacing: .13em;

    font-size: .75rem;

    font-weight: 800;

    color: var(--accent);

    margin:
        0 0 12px;
}


.hero h1 {

    font-size:
        clamp(
            2.7rem,
            6vw,
            5.2rem
        );

    line-height: 1.02;

    letter-spacing: -.055em;

    margin:
        0 0 24px;
}


.hero-text {

    font-size: 1.15rem;

    color: var(--muted);

    max-width: 680px;
}


.hero-actions {

    display: flex;

    gap: 12px;

    margin-top: 30px;
}


.hero-card {

    padding: 38px;

    border:
        1px solid var(--line);

    background: #fff;

    box-shadow: var(--shadow);
}


.avatar {

    width: 76px;

    height: 76px;

    display: grid;

    place-items: center;

    background: var(--ink);

    color: #fff;

    font-weight: 800;

    margin-bottom: 25px;
}


.hero-card h2 {
    margin: 0 0 8px;
}


.hero-card p {
    color: var(--muted);
}


/*
|--------------------------------------------------------------------------
| SECCIONES
|--------------------------------------------------------------------------
*/

.section {
    padding: 100px 0;
}


.section h2 {

    font-size: 2.4rem;

    letter-spacing: -.035em;

    margin:
        0 0 35px;
}


.section-alt {
    background: var(--bg);
}


.cards {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 22px;
}


.card {

    border:
        1px solid var(--line);

    padding: 30px;

    background: #fff;
}


.card-icon {

    font-weight: 800;

    color: var(--accent);
}


.card h3 {

    font-size: 1.25rem;

    margin:
        24px 0 8px;
}


.card p {

    color: var(--muted);

    margin: 0;
}


.split {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;
}


.split p {

    font-size: 1.1rem;

    color: var(--muted);
}


.checks {

    padding: 0;

    list-style: none;
}


.checks li {
    margin: 13px 0;
}


.checks li:before {

    content: "✓";

    color: var(--accent);

    font-weight: 800;

    margin-right: 10px;
}


/*
|--------------------------------------------------------------------------
| CONTACTO
|--------------------------------------------------------------------------
*/

.contact-box {

    display: flex;

    justify-content: space-between;

    gap: 50px;

    align-items: center;

    border:
        1px solid var(--line);

    padding: 55px;

    box-shadow: var(--shadow);
}


.contact-data {

    display: grid;

    gap: 12px;

    text-align: right;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.footer {

    padding: 30px 0;

    border-top:
        1px solid var(--line);
}


.footer-inner {

    display: flex;

    justify-content: space-between;

    color: var(--muted);
}


/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.auth-page {

    min-height: 100vh;

    display: grid;

    place-items: center;

    background: var(--bg);

    padding: 24px;
}


.auth-card {

    width:
        min(430px,100%);

    background: #fff;

    border:
        1px solid var(--line);

    padding: 38px;

    box-shadow: var(--shadow);
}


.auth-card h1 {

    margin:
        30px 0 8px;
}


label {

    display: grid;

    gap: 7px;

    font-weight: 700;

    margin: 16px 0;
}


input,
select,
textarea {

    width: 100%;

    font: inherit;

    border:
        1px solid #ccd3df;

    padding: 11px 12px;

    color: var(--ink);

    background: #fff;
}


.alert {

    padding:
        13px 15px;

    margin: 15px 0;
}


.alert-error {

    background: #fff1f0;

    color: var(--danger);
}


.alert-success {

    background: #ecfdf3;

    color: var(--success);
}


.back-link {

    display: block;

    margin-top: 20px;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| IMPRESIÓN / PDF
|--------------------------------------------------------------------------
|
| Estas reglas son importantes para invoice-view.php.
|
| - Ocultan todo lo marcado como no-print.
| - Ocultan cabecera/sidebar del dashboard.
| - Ocultan las fechas mediante invoice-info-right.
| - Eliminan sombras y márgenes del dashboard.
| - Mantienen la factura como documento A4.
| - Centran el pie de factura.
|
|--------------------------------------------------------------------------
*/

@page {

    size: A4;

    margin: 10mm;
}


@media print {


    /*
    |--------------------------------------------------------------------------
    | ELEMENTOS QUE NO SE IMPRIMEN
    |--------------------------------------------------------------------------
    */

    .no-print,
    .dash-header,
    .sidebar,
    .site-header,
    .page-heading,
    .status-panel,
    .public-actions,
    .public-notice {

        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | DASHBOARD
    |--------------------------------------------------------------------------
    */

    .dash-layout {

        display: block !important;

        width: 100% !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    .dash-main {

        display: block !important;

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | CONTENEDORES
    |--------------------------------------------------------------------------
    */

    .container {

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | FACTURA
    |--------------------------------------------------------------------------
    */

    .invoice-paper {

        display: block !important;

        width: 100% !important;

        max-width: none !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 10mm !important;

        background: #ffffff !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }


    /*
    |--------------------------------------------------------------------------
    | INFORMACIÓN DE CLIENTE
    |--------------------------------------------------------------------------
    */

    .invoice-info-grid {

        display: grid !important;

        width: 100% !important;
    }


    /*
    |--------------------------------------------------------------------------
    | FECHAS
    |--------------------------------------------------------------------------
    |
    | Esto elimina del PDF:
    |
    | FECHA DE EMISIÓN
    | FECHA DE VENCIMIENTO
    |
    |--------------------------------------------------------------------------
    */

    .invoice-info-right {

        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | TABLA
    |--------------------------------------------------------------------------
    */

    .invoice-table-wrap {

        display: block !important;

        width: 100% !important;

        max-width: none !important;

        overflow: visible !important;
    }


    .invoice-table {

        width: 100% !important;

        min-width: 0 !important;

        border-collapse: collapse !important;

        table-layout: auto !important;
    }


    .invoice-table thead {

        display: table-header-group !important;
    }


    .invoice-table tbody {

        display: table-row-group !important;
    }


    .invoice-table tr {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    .invoice-table th,
    .invoice-table td {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    /*
    |--------------------------------------------------------------------------
    | TOTALES
    |--------------------------------------------------------------------------
    */

    .invoice-summary {

        display: block !important;

        width: 100% !important;

        max-width: 340px !important;

        margin-left: auto !important;

        margin-right: 0 !important;

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    .invoice-summary-row,
    .invoice-summary-total {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    /*
    |--------------------------------------------------------------------------
    | NOTAS
    |--------------------------------------------------------------------------
    */

    .invoice-notes-modern {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    /*
    |--------------------------------------------------------------------------
    | PIE DE FACTURA
    |--------------------------------------------------------------------------
    */

    .invoice-footer-modern {

        display: flex !important;

        justify-content: center !important;

        align-items: center !important;

        width: 100% !important;

        margin-left: 0 !important;

        margin-right: 0 !important;

        text-align: center !important;

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    .invoice-footer-modern > div:first-child {

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        text-align: center !important;
    }


    .invoice-footer-modern strong,
    .invoice-footer-modern span {

        display: block !important;

        text-align: center !important;
    }


    /*
    |--------------------------------------------------------------------------
    | NÚMERO DE FACTURA DEL PIE
    |--------------------------------------------------------------------------
    |
    | No necesitamos repetir el número de factura abajo.
    |
    |--------------------------------------------------------------------------
    */

    .invoice-footer-number {

        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | EVITAR ELEMENTOS VACÍOS DEL DASHBOARD
    |--------------------------------------------------------------------------
    */

    header,
    nav,
    aside {

        box-shadow: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | COLORES Y FONDOS
    |--------------------------------------------------------------------------
    |
    | Ayuda a que Edge conserve la apariencia de la factura.
    |
    |--------------------------------------------------------------------------
    */

    .invoice-paper,
    .invoice-company-header,
    .invoice-info-box,
    .invoice-table,
    .invoice-summary,
    .invoice-notes-modern,
    .invoice-footer-modern {

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;
    }


    /*
    |--------------------------------------------------------------------------
    | EVITAR CORTE DE LA CABECERA
    |--------------------------------------------------------------------------
    */

    .invoice-company-header {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }


    .invoice-blue-line {

        break-inside: avoid !important;

        page-break-inside: avoid !important;
    }

}

/* =====================================================
   CABECERA MÓVIL — SOLO LOGO
   ===================================================== */

@media (max-width: 768px) {

    .brand-name {
        display: none;
    }

    .brand {
        gap: 0 !important;
    }

}


/*
|--------------------------------------------------------------------------
| FIN IMPRESIÓN
|--------------------------------------------------------------------------
*/
/* ===== mobile.css (solo <= 768px) ===== */
@media screen and (max-width: 768px) {
.container {

    width:
        calc(100% - 30px);
}


/* MENU */

.site-header {

    position: relative;
}


.nav {

    min-height: 68px;

    height: auto;

    flex-wrap: wrap;

    padding: 12px 0;
}


.nav-toggle {

    display: block;

    border: 0;

    background: transparent;

    font-size: 1.5rem;

    cursor: pointer;
}


.nav-links {

    display: none;

    width: 100%;

    flex-direction: column;

    align-items: stretch;

    gap: 4px;

    padding: 12px 0;
}


.nav-links.open {
    display: flex;
}


.nav-links a {
    padding: 9px;
}


/* HERO */


.hero {

    padding:
        65px 0;
}


.hero-grid {

    grid-template-columns: 1fr;

    gap: 35px;
}


.hero h1 {

    font-size:
        2.75rem;
}


/* SECCIONES */


.section {

    padding:
        65px 0;
}


.cards {

    grid-template-columns:
        1fr;

    gap: 20px;
}


.split {

    grid-template-columns:
        1fr;

    gap: 35px;
}


/* CONTACTO */


.contact-box {

    padding: 30px;

    display: block;
}


.contact-data {

    text-align: left;

    margin-top: 25px;
}


/* FOOTER */


.footer-inner {

    display: block;
}


.footer-inner a {

    display: block;

    margin-top: 8px;
}


/* LOGIN */


.auth-card {

    padding:
        28px 22px;
}


}

/* ===== dashboard-base.css ===== */
/* =========================================================
   DASHBOARD
   José Luis Taveras
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --dash-blue: #2563eb;
    --dash-blue-dark: #1d4ed8;
    --dash-blue-light: #eff6ff;

    --dash-gray-50: #f8fafc;
    --dash-gray-100: #f1f5f9;
    --dash-gray-200: #e2e8f0;
    --dash-gray-300: #cbd5e1;
    --dash-gray-500: #64748b;
    --dash-gray-600: #475569;
    --dash-gray-700: #334155;
    --dash-gray-800: #1e293b;
    --dash-gray-900: #0f172a;

    --dash-matte: #3f4650;
    --dash-white: #ffffff;

    --dash-green: #15803d;
    --dash-green-light: #f0fdf4;

    --dash-red: #dc2626;
    --dash-red-light: #fef2f2;

    /* NARANJA PARA PENDIENTES */
    --dash-orange: #d97706;
    --dash-orange-light: #fffbeb;

    --dash-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    --dash-shadow-lg: 0 20px 50px rgba(15, 23, 42, .10);
}


/* =========================================================
   BASE
   ========================================================= */

.dashboard-body {
    margin: 0;
    background: var(--dash-gray-50);
    color: var(--dash-gray-900);
}

.dashboard-body a {
    color: var(--dash-blue);
    text-decoration: none;
}

.dashboard-body a:hover {
    color: var(--dash-blue-dark);
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.dash-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 72px;
    padding: 0 30px;

    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--dash-gray-200);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-header .brand {
    color: var(--dash-gray-900);
    font-size: 1.1rem;
    font-weight: 800;
}

.dash-header .brand span {
    color: var(--dash-blue);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--dash-gray-500);
    font-size: .9rem;
}

.dash-user a {
    font-weight: 700;
    color: var(--dash-blue);
}


/* =========================================================
   BOTÓN HAMBURGUESA
   ========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;
    padding: 8px;

    border: 1px solid var(--dash-gray-200);
    border-radius: 0;

    background: #fff;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--dash-gray-800);

    transition:
        transform .2s ease,
        opacity .2s ease;
}


/* =========================================================
   ESTRUCTURA
   ========================================================= */

.dash-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);

    min-height: calc(100vh - 72px);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: var(--dash-white);
    border-right: 1px solid var(--dash-gray-200);
    padding: 25px 14px;
}

.sidebar a {
    display: flex;
    align-items: center;

    min-height: 44px;
    padding: 10px 14px;
    margin-bottom: 5px;

    color: var(--dash-gray-600);
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}

.sidebar a:hover {
    color: var(--dash-blue);
    background: var(--dash-blue-light);
}

.sidebar a.active,
.sidebar a.active:hover {
    background: var(--dash-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   BOTÓN X
   ========================================================= */

.sidebar-close {
    display: none;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;
}


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

.dash-main {
    width: 100%;
    max-width: 1500px;

    padding: 35px;
    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   CABECERAS
   ========================================================= */

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    margin-bottom: 28px;
    padding: 20px 24px;

    background: #fff;

    border: 1px solid var(--dash-gray-200);

    box-shadow: var(--dash-shadow);

    box-sizing: border-box;
}

.page-heading h1 {
    margin: 0;

    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -.035em;

    color: var(--dash-gray-900);
}

.page-heading .eyebrow {
    margin: 0 0 6px;
    color: var(--dash-blue);
}


/* =========================================================
   BOTONES
   ========================================================= */

.dashboard-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;
    padding: 10px 18px;

    border: 1px solid var(--dash-blue);
    background: var(--dash-blue);

    color: #fff;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
    text-decoration: none;
}

.dashboard-body .btn:hover {
    background: var(--dash-blue-dark);
    border-color: var(--dash-blue-dark);
    color: #fff;

    transform: translateY(-1px);
}

.dashboard-body .btn-outline {
    background: #fff;
    color: var(--dash-blue);
    border-color: var(--dash-gray-300);
}

.dashboard-body .btn-outline:hover {
    background: var(--dash-blue-light);
    border-color: var(--dash-blue);
    color: var(--dash-blue);
}

.dashboard-body .btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.dashboard-body .btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}


/* =========================================================
   BOTÓN PELIGRO
   ========================================================= */

.btn-danger {
    background: black;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}


/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

/*
   LAS 3 CARDS CABEN EN UNA SOLA FILA
   Y SON MÁS COMPACTAS
*/

.stats {
    display: grid;

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

    gap: 14px;

    margin-bottom: 22px;

    width: 100%;
}

.stat {
    position: relative;
    overflow: hidden;

    background: var(--dash-white);

    border: 1px solid var(--dash-gray-200);

    /*
       CARD MÁS CORTA
    */
    padding: 18px 22px;

    min-height: 85px;

    box-sizing: border-box;

    box-shadow: var(--dash-shadow);
}

.stat::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--dash-blue);
}

.stat span {
    display: block;

    margin-bottom: 4px;

    color: var(--dash-gray-500);

    font-size: .85rem;
    line-height: 1.25;
}

.stat strong {
    display: block;

    color: #16a34a;

    font-size: 2rem;
    line-height: 1.05;

    font-weight: 800;
    letter-spacing: -.035em;
}


/* =========================================================
   PANELES
   ========================================================= */

.panel {
    background: var(--dash-white);

    border: 1px solid var(--dash-gray-200);

    padding: 25px;
    margin-bottom: 25px;

    box-shadow: var(--dash-shadow);
}

.panel h2 {
    margin-top: 0;

    color: var(--dash-gray-900);
    letter-spacing: -.02em;
}


/* =========================================================
   ALERTAS
   ========================================================= */

.alert {
    padding: 13px 16px;
    margin: 15px 0;

    border: 1px solid transparent;
}

.alert-success {
    background: var(--dash-green-light);
    color: var(--dash-green);
    border-color: #bbf7d0;
}

.alert-error {
    background: var(--dash-red-light);
    color: var(--dash-red);
    border-color: #fecaca;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.full {
    grid-column: 1 / -1;
}

.dashboard-body label {
    display: grid;
    gap: 7px;

    margin: 16px 0;

    color: var(--dash-gray-700);

    font-size: .9rem;
    font-weight: 700;
}

.dashboard-body input,
.dashboard-body select,
.dashboard-body textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid var(--dash-gray-300);

    background: #fff;
    color: var(--dash-gray-900);

    font: inherit;
    outline: none;

    transition: .2s ease;
}

.dashboard-body input:focus,
.dashboard-body select:focus,
.dashboard-body textarea:focus {
    border-color: var(--dash-blue);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


/* =========================================================
   TABLAS
   ========================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.dashboard-body th,
.dashboard-body td {
    padding: 14px;
    text-align: left;

    border-bottom: 1px solid var(--dash-gray-200);
}

.dashboard-body th {
    color: var(--dash-gray-500);

    font-size: .76rem;
    font-weight: 800;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-body td {
    color: var(--dash-gray-700);
}

.dashboard-body tbody tr:hover {
    background: var(--dash-gray-50);
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.actions form {
    margin: 0;
}

.link-danger {
    border: 0;
    padding: 0;

    background: transparent;
    color: var(--dash-red);

    font: inherit;
    cursor: pointer;
}

.link-danger:hover {
    text-decoration: underline;
}


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

.status-paid {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    background: var(--dash-green-light);
    color: var(--dash-green);

    border: 1px solid #bbf7d0;

    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}


/* =========================================================
   ESTADO PENDIENTE - NARANJA
   ========================================================= */

.status-pending {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    background: var(--dash-orange-light) !important;
    color: var(--dash-orange) !important;

    border: 1px solid #fed7aa !important;

    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}


.status-cancelled {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    background: var(--dash-red-light);
    color: var(--dash-red);

    border: 1px solid #fecaca;

    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}


/* =========================================================
   CUALQUIER ELEMENTO PENDIENTE
   ========================================================= */

.pending,
.estado-pendiente,
.badge-pending {
    color: var(--dash-orange) !important;
    background: var(--dash-orange-light) !important;
    border-color: #fed7aa !important;
}


/* =========================================================
   FACTURAS
   ========================================================= */

.invoice-lines {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
}

.invoice-line {
    display: grid;

    grid-template-columns:
        minmax(200px, 1fr)
        120px
        150px
        42px;

    gap: 8px;
    align-items: center;
}

.remove-line {
    width: 42px;
    height: 42px;

    border: 1px solid var(--dash-gray-300);

    background: #fff;
    color: var(--dash-red);

    font-size: 1.3rem;

    cursor: pointer;
}

.remove-line:hover {
    background: var(--dash-red-light);
    border-color: #fecaca;
}

.totals {
    max-width: 350px;

    margin: 28px 0 28px auto;

    padding-top: 13px;

    border-top: 1px solid var(--dash-gray-200);
}

.totals > div {
    display: flex;
    justify-content: space-between;

    gap: 20px;
    padding: 7px 0;

    color: var(--dash-gray-600);
}

.totals strong {
    color: var(--dash-gray-900);
}

.totals .grand {
    margin-top: 8px;
    padding-top: 13px;

    border-top: 1px solid var(--dash-gray-200);

    color: var(--dash-gray-900);

    font-size: 1.2rem;
}


/* =========================================================
   FACTURA MODERNA
   ========================================================= */

.invoice-paper {
    position: relative;

    width: 100%;
    max-width: 950px;

    box-sizing: border-box;

    margin: 0 auto 28px;
    padding: 46px;

    background: var(--dash-white);

    border: 1px solid var(--dash-gray-200);

    box-shadow: var(--dash-shadow-lg);

    overflow: hidden;
}


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

.invoice-company-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 35px;
}

.company-brand {
    display: flex;
    align-items: center;

    gap: 20px;
    min-width: 0;
}

.company-logo {
    width: 100px;
    height: 100px;

    flex: 0 0 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.company-logo img {
    display: block;

    width: 120px;
    height: 120px;

    object-fit: contain;

    padding: 8px;
    box-sizing: border-box;
}

.company-logo-placeholder {
    background: var(--dash-blue-light);
    border-color: #bfdbfe;
}

.company-logo-placeholder span {
    color: var(--dash-blue);

    font-size: 1.5rem;
    font-weight: 900;
}

.company-info {
    min-width: 0;
}

.company-info h2 {
    margin: 0 0 6px;

    color: var(--dash-gray-900);

    font-size: 1.45rem;
    line-height: 1.2;

    letter-spacing: -.025em;
}

.company-details {
    color: var(--dash-gray-500);

    font-size: .88rem;
    line-height: 1.55;
}

.invoice-heading {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    text-align: right;

    gap: 4px;
}

.invoice-label {
    color: var(--dash-blue);

    font-size: .72rem;
    font-weight: 900;

    letter-spacing: .16em;
}

.invoice-number {
    color: var(--dash-gray-900);

    font-size: 1.65rem;
    line-height: 1.1;

    letter-spacing: -.035em;
}


/* =========================================================
   ESTADO FACTURA
   ========================================================= */

.invoice-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    font-size: .72rem;
    font-weight: 800;

    line-height: 1;

    border: 1px solid transparent;
}

.invoice-status.status-paid {
    background: var(--dash-green-light);
    color: var(--dash-green);
    border-color: #bbf7d0;
}

.invoice-status.status-pending {
    background: var(--dash-orange-light) !important;
    color: var(--dash-orange) !important;
    border-color: #fed7aa !important;
}

.invoice-status.status-cancelled {
    background: var(--dash-red-light);
    color: var(--dash-red);
    border-color: #fecaca;
}


.invoice-blue-line {
    height: 4px;
    width: 100%;

    margin: 30px 0;

    background:
        linear-gradient(
            to right,
            var(--dash-blue) 0%,
            var(--dash-blue) 80%,
            var(--dash-matte) 80%,
            var(--dash-matte) 100%
        );
}


/* =========================================================
   INFORMACIÓN FACTURA
   ========================================================= */

.invoice-info-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-bottom: 35px;
}

.invoice-info-box {
    min-height: 130px;

    padding: 20px;

    background: var(--dash-gray-50);

    border: 1px solid var(--dash-gray-200);

    box-sizing: border-box;
}

.invoice-info-box > span,
.invoice-info-box > strong {
    display: block;
}

.invoice-info-box > strong {
    margin: 4px 0;

    color: var(--dash-gray-900);

    font-size: 1rem;
}

.invoice-info-box > span:not(.invoice-info-title) {
    color: var(--dash-gray-500);

    font-size: .86rem;
    line-height: 1.5;
}

.invoice-info-title {
    display: block;

    margin-bottom: 8px;

    color: var(--dash-blue);

    font-size: .7rem;
    font-weight: 900;

    letter-spacing: .1em;
}

.invoice-info-right {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    align-items: start;
}

.invoice-info-right > div {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   TABLA FACTURA
   ========================================================= */

.invoice-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    min-width: 650px;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    border: 1px solid var(--dash-gray-200);
}

.invoice-table thead th {
    padding: 13px 15px;

    background: var(--dash-gray-900);
    color: #fff;

    border: 0;

    font-size: .7rem;
    letter-spacing: .08em;
}

.invoice-table tbody td {
    padding: 15px;

    background: #fff;

    border-bottom: 1px solid var(--dash-gray-200);

    color: var(--dash-gray-600);
}

.invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.invoice-table tbody tr:hover td {
    background: var(--dash-gray-50);
}

.invoice-table td strong {
    color: var(--dash-gray-900);
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}


/* =========================================================
   RESUMEN
   ========================================================= */

.invoice-summary {
    width: 100%;
    max-width: 350px;

    margin: 28px 0 0 auto;
}

.invoice-summary-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 8px 0;

    color: var(--dash-gray-500);

    font-size: .92rem;
}

.invoice-summary-row strong {
    color: var(--dash-gray-800);
}

.invoice-summary-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 10px;
    padding: 17px 18px;

    background: var(--dash-blue-light);

    border: 1px solid #bfdbfe;

    color: var(--dash-blue);
}

.invoice-summary-total span {
    font-size: .75rem;
    font-weight: 900;

    letter-spacing: .08em;
}

.invoice-summary-total strong {
    color: var(--dash-blue);
    font-size: 1.45rem;
}


/* =========================================================
   NOTAS
   ========================================================= */

.invoice-notes-modern {
    margin-top: 35px;

    padding: 18px 20px;

    border-left: 4px solid var(--dash-blue);

    background: var(--dash-gray-50);
}

.invoice-notes-modern > span {
    display: block;

    margin-bottom: 7px;

    color: var(--dash-blue);

    font-size: .7rem;
    font-weight: 900;

    letter-spacing: .1em;
}

.invoice-notes-modern p {
    margin: 0;

    color: var(--dash-gray-600);

    font-size: .9rem;
    line-height: 1.6;
}


/* =========================================================
   FOOTER FACTURA
   ========================================================= */

.invoice-footer-modern {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    gap: 25px;

    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid var(--dash-gray-200);

    text-align: center;
}

.invoice-footer-modern div:first-child {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 3px;

    text-align: center;
}

.invoice-footer-modern strong {
    color: var(--dash-gray-700);

    font-size: .84rem;
    text-align: center;
}

.invoice-footer-modern span {
    color: var(--dash-gray-500);

    font-size: .75rem;
    text-align: center;
}

.invoice-footer-number {
    display: none !important;
}


/* =========================================================
   PANEL ESTADO
   ========================================================= */

.status-panel {
    max-width: 950px;

    margin-left: auto;
    margin-right: auto;
}

.status-panel-header {
    margin-bottom: 18px;
}

.status-panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.status-panel-header .eyebrow {
    margin: 0 0 4px;
}

.status-panel form {
    display: flex;

    align-items: flex-end;

    gap: 15px;
}

.status-panel label {
    min-width: 230px;
    margin: 0;
}


/* =========================================================
   CALCULADORA
   ========================================================= */

.calculator-floating-button {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 900;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 2px solid var(--dash-blue);
    border-radius: 50%;

    background: var(--dash-blue);
    color: #fff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(37, 99, 235, .38);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.calculator-floating-button:hover {
    background: var(--dash-blue-dark);
    border-color: var(--dash-blue-dark);

    transform: translateY(-3px) scale(1.05);

    box-shadow:
        0 12px 30px rgba(37, 99, 235, .45);
}

.calculator-floating-button:active {
    transform: translateY(0) scale(.96);
}


/* =========================================================
   MODAL CALCULADORA
   ========================================================= */

.calculator-modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    box-sizing: border-box;

    background: rgba(15, 23, 42, .55);

    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.calculator-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calculator-box {
    width: 100%;
    max-width: 360px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid var(--dash-gray-200);

    box-shadow:
        0 25px 70px rgba(15, 23, 42, .25);

    transform: translateY(15px) scale(.98);

    transition: transform .2s ease;
}

.calculator-modal-open .calculator-box {
    transform: translateY(0) scale(1);
}


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

.calculator-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 17px 18px;

    background: var(--dash-gray-900);

    border-bottom: 1px solid var(--dash-gray-800);
}

.calculator-header h2 {
    margin: 0;

    color: #fff;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: -.01em;
}

.calculator-close {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .2);

    background: transparent;
    color: #fff;

    font-size: 1.65rem;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.calculator-close:hover {
    background: rgba(255, 255, 255, .1);

    border-color: rgba(255, 255, 255, .4);
}


/* =========================================================
   PANTALLA CALCULADORA
   ========================================================= */

.calculator-display {
    padding: 18px;

    background: var(--dash-gray-50);

    border-bottom: 1px solid var(--dash-gray-200);
}

.calculator-display input {
    width: 100%;
    height: 70px;

    box-sizing: border-box;

    padding: 10px 15px;

    border: 1px solid var(--dash-gray-300);

    background: #fff;
    color: var(--dash-gray-900);

    font-family: var(--app-font-family);

    font-size: 2rem;
    font-weight: 700;

    line-height: 1;

    text-align: right;

    outline: none;

    box-shadow:
        inset 0 1px 3px rgba(15, 23, 42, .04);
}


/* =========================================================
   TECLADO
   ========================================================= */

.calculator-keypad {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    padding: 16px;

    background: #fff;
}

.calculator-key {
    min-height: 55px;

    padding: 8px;

    border: 1px solid var(--dash-gray-200);

    background: var(--dash-gray-50);
    color: var(--dash-gray-800);

    font-family: var(--app-font-family);

    font-size: 1.05rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .1s ease;
}

.calculator-key:hover {
    background: var(--dash-gray-100);

    border-color: var(--dash-gray-300);
}

.calculator-key:active {
    transform: scale(.96);
}


/* =========================================================
   CLEAR
   ========================================================= */

.calculator-clear {
    background: var(--dash-red-light);
    color: var(--dash-red);

    border-color: #fecaca;
}

.calculator-clear:hover {
    background: #fee2e2;

    border-color: #fca5a5;

    color: var(--dash-red);
}


/* =========================================================
   OPERADORES
   ========================================================= */

.calculator-operator {
    background: var(--dash-blue-light);
    color: var(--dash-blue);

    border-color: #bfdbfe;

    font-size: 1.25rem;
}

.calculator-operator:hover {
    background: #dbeafe;

    border-color: #93c5fd;

    color: var(--dash-blue-dark);
}


/* =========================================================
   IGUAL
   ========================================================= */

.calculator-equals {
    background: var(--dash-blue);
    color: #fff;

    border-color: var(--dash-blue);

    font-size: 1.3rem;
}

.calculator-equals:hover {
    background: var(--dash-blue-dark);

    border-color: var(--dash-blue-dark);

    color: #fff;
}


/* =========================================================
   CERO
   ========================================================= */

.calculator-zero {
    grid-column: span 2;
}


/* =========================================================
   ESTADO BODY
   ========================================================= */

body.calculator-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .dash-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .dash-main {
        padding: 25px;
    }

    .stats {
        gap: 10px;
    }

    .stat {
        padding: 16px 18px;
        min-height: 80px;
    }

    .stat strong {
        font-size: 1.8rem;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat {
        min-height: 95px;
        padding: 20px 22px;
    }

    .stat strong {
        font-size: 2.1rem;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .dash-header {
        height: 68px;
        min-height: 68px;

        padding: 0 15px;

        z-index: 1000;
    }

    .dash-header-left {
        gap: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.menu-active span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }

    .menu-toggle.menu-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.menu-active span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }

    .dash-user {
        font-size: .8rem;
    }

    .dash-layout {
        display: block;
        min-height: auto;
    }

    .sidebar {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 1100;

        width: 270px;
        height: 100vh;

        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        padding: 80px 14px 25px;

        background: #fff;

        border-right: 1px solid var(--dash-gray-200);
        border-bottom: 0;

        overflow-y: auto;

        transform: translateX(-100%);

        transition: transform .25s ease;

        box-shadow:
            10px 0 30px rgba(15, 23, 42, .15);
    }

    .sidebar.menu-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;

        position: absolute;

        top: 18px;
        right: 15px;

        width: 40px;
        height: 40px;

        align-items: center;
        justify-content: center;

        padding: 0;

        border: 1px solid var(--dash-gray-200);
        border-radius: 0;

        background: #fff;

        color: var(--dash-gray-800);

        font-size: 30px;
        font-weight: 300;

        line-height: 1;

        cursor: pointer;
    }

    .sidebar-close:hover {
        color: var(--dash-blue);

        border-color: var(--dash-blue);

        background: var(--dash-blue-light);
    }

    .sidebar a {
        width: 100%;

        min-height: 46px;

        box-sizing: border-box;

        display: flex;
        align-items: center;

        margin: 0;

        padding: 10px 14px;

        flex: 0 0 auto;

        white-space: nowrap;
    }

    .sidebar-overlay {
        display: block;

        position: fixed;

        inset: 0;

        z-index: 1050;

        background: rgba(15, 23, 42, .45);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .25s ease,
            visibility .25s ease;
    }

    .sidebar-overlay.menu-open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }

    body.menu-is-open {
        overflow: hidden;
    }

    .dash-main {
        width: 100%;
        padding: 20px 15px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat {
        min-height: 95px;
        padding: 20px 22px;
    }

    .stat strong {
        font-size: 2.2rem;
    }

    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-heading .hero-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .page-heading .hero-actions .btn {
        width: 100%;
    }

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

    .full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .invoice-paper {
        padding: 22px 17px;
    }

    .invoice-company-header {
        flex-direction: column;
        gap: 25px;
    }

    .company-brand {
        width: 100%;
        align-items: flex-start;
    }

    .company-logo {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .company-info h2 {
        font-size: 1.15rem;
    }

    .company-details {
        font-size: .78rem;
    }

    .invoice-heading {
        align-items: flex-start;
        text-align: left;
    }

    .invoice-number {
        font-size: 1.35rem;
    }

    .invoice-blue-line {
        margin: 22px 0;
    }

    .invoice-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;

        margin-bottom: 22px;
    }

    .invoice-info-box {
        min-height: auto;
        padding: 16px;
    }

    .invoice-info-right {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-summary {
        max-width: none;
    }

    .invoice-footer-modern {
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .invoice-footer-modern div:first-child {
        align-items: center;
        justify-content: center;

        text-align: center;

        width: 100%;
    }

    .invoice-footer-modern strong,
    .invoice-footer-modern span {
        text-align: center;
    }

    .invoice-footer-number {
        display: none !important;
    }

    .status-panel form {
        display: block;
    }

    .status-panel label {
        min-width: 0;
        width: 100%;
    }

    .status-panel .btn {
        width: 100%;
    }


    /* =====================================================
       CALCULADORA MÓVIL
       ===================================================== */

    .calculator-floating-button {
        right: 16px;
        bottom: 16px;

        width: 48px;
        height: 48px;

        font-size: 1.8rem;

        border-width: 2px;

        box-shadow:
            0 10px 28px rgba(37, 99, 235, .38);
    }

    .calculator-modal {
        align-items: flex-end;

        padding: 0;
    }

    .calculator-box {
        width: 100%;
        max-width: none;

        border-left: 0;
        border-right: 0;
        border-bottom: 0;

        box-shadow:
            0 -15px 50px rgba(15, 23, 42, .20);

        transform:
            translateY(30px);
    }

    .calculator-modal-open .calculator-box {
        transform:
            translateY(0);
    }

    .calculator-header {
        padding: 15px 17px;
    }

    .calculator-display {
        padding: 15px;
    }

    .calculator-display input {
        height: 65px;

        font-size: 1.8rem;
    }

    .calculator-keypad {
        gap: 7px;

        padding: 14px;

        padding-bottom:
            calc(14px + env(safe-area-inset-bottom));
    }

    .calculator-key {
        min-height: 58px;

        font-size: 1rem;
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .company-brand {
        gap: 13px;
    }

    .company-logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .company-info h2 {
        font-size: 1rem;
    }

    .company-details {
        font-size: .72rem;
    }

    .invoice-info-right {
        grid-template-columns: 1fr;
    }

    .invoice-summary-total strong {
        font-size: 1.2rem;
    }

    .calculator-floating-button {
        width: 46px;
        height: 46px;

        right: 14px;
        bottom: 14px;

        font-size: 1.7rem;
    }

    .calculator-floating-button img {
        width: 27px;
        height: 27px;
    }

    .calculator-header {
        padding: 14px 15px;
    }

    .calculator-display {
        padding: 12px;
    }

    .calculator-display input {
        height: 60px;

        padding: 8px 12px;

        font-size: 1.6rem;
    }

    .calculator-keypad {
        gap: 6px;

        padding: 12px;
    }

    .calculator-key {
        min-height: 54px;

        font-size: .95rem;
    }

    .calculator-operator {
        font-size: 1.15rem;
    }

    .calculator-equals {
        font-size: 1.2rem;
    }
}


/* =========================================================
   PAGE HEADING FACTURA
   ========================================================= */

.page-heading.no-print {
    background: var(--dash-white);

    border: 1px solid var(--dash-gray-200);

    padding: 26px;

    margin-bottom: 20px;

    box-shadow: var(--dash-shadow);

    box-sizing: border-box;
}

.page-heading.no-print > div:first-child {
    min-width: 0;
}

.page-heading.no-print .eyebrow {
    margin: 0 0 6px;

    color: var(--dash-blue);

    font-size: .72rem;
    font-weight: 900;

    letter-spacing: .1em;
}

.page-heading.no-print h1 {
    margin: 0;

    color: var(--dash-gray-900);

    font-size: 2rem;
    line-height: 1.2;

    letter-spacing: -.035em;
}

.page-heading.no-print .hero-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .page-heading.no-print {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-heading.no-print .hero-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .page-heading.no-print .hero-actions .btn {
        width: 100%;
        box-sizing: border-box;
    }
}


/* =========================================================
   IMPRESIÓN / PDF
   ========================================================= */

@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    html,
    body {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
    }

    .no-print,
    .dash-header,
    .sidebar,
    .sidebar-overlay,
    .status-panel,
    .menu-toggle,
    .calculator-floating-button,
    .calculator-modal {
        display: none !important;
    }

    .dash-layout {
        display: block !important;

        width: 100% !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .dash-main {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    .invoice-paper {
        display: block !important;

        position: relative !important;

        width: 100% !important;
        max-width: none !important;

        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        background: #fff !important;

        overflow: visible !important;
    }

    .invoice-paper,
    .invoice-paper * {
        visibility: visible !important;
    }

    .invoice-table-wrap {
        width: 100% !important;

        max-width: none !important;

        overflow: visible !important;
    }

    .invoice-table {
        width: 100% !important;

        min-width: 0 !important;

        max-width: none !important;

        border-collapse: collapse !important;

        page-break-inside: auto !important;
    }

    .invoice-table thead {
        display: table-header-group;
    }

    .invoice-table tbody {
        display: table-row-group;
    }

    .invoice-table tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;

        page-break-after: auto !important;
    }

    .invoice-table td,
    .invoice-table th {
        page-break-inside: avoid !important;
    }

    .invoice-company-header {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .invoice-blue-line {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-info-grid,
    .invoice-info-box,
    .invoice-info-right {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .invoice-summary {
        page-break-inside: avoid !important;
        break-inside: avoid !important;

        max-width: 350px !important;
    }

    .invoice-summary-total {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-notes-modern {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .invoice-footer-modern {
        display: flex !important;

        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .invoice-footer-modern div:first-child {
        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;

        text-align: center !important;
    }

    .invoice-footer-modern strong,
    .invoice-footer-modern span {
        display: block !important;

        width: 100% !important;

        text-align: center !important;
    }

    .invoice-table thead th {
        color: #fff !important;
        background: #0f172a !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-blue-line {
        background:
            linear-gradient(
                to right,
                #2563eb 0%,
                #2563eb 80%,
                #3f4650 80%,
                #3f4650 100%
            ) !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-summary-total {
        background: #eff6ff !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* PENDIENTE EN PDF */
    .status-pending,
    .invoice-status.status-pending,
    .pending,
    .estado-pendiente,
    .badge-pending {
        display: inline-flex !important;

        background: #fffbeb !important;
        color: #d97706 !important;

        border-color: #fed7aa !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .company-logo {
        box-shadow: none !important;
    }
}

/* =====================================================
   CABECERA MÓVIL — SOLO LOGO
   ===================================================== */

@media (max-width: 768px) {

    .brand-name {
        display: none;
    }

    .brand {
        gap: 0 !important;
    }

}

/* ===== JLT UI UNIFORME 2026 ===== */
:root {
    --jlt-primary: #1468f3;
    --jlt-primary-dark: #0d55d8;
    --jlt-primary-soft: #eef5ff;
    --jlt-text: #0f172a;
    --jlt-text-soft: #334155;
    --jlt-muted: #6b7a94;
    --jlt-border: #dfe8f4;
    --jlt-surface: #ffffff;
    --jlt-bg-soft: #f7faff;
    --jlt-danger: #ef3340;
    --jlt-radius: 16px;
    --jlt-radius-control: 10px;
    --jlt-shadow: 0 10px 30px rgba(30, 64, 175, .06);
}

.dashboard-body {
    color: var(--jlt-text);
}

.dash-main .page-heading,
.dash-main .panel,
.dash-main .contracts-panel,
.dash-main .card,
.dash-main .form-card,
.dash-main .table-card,
.dash-main .content-card {
    background: var(--jlt-surface);
    border: 1px solid var(--jlt-border);
    border-radius: var(--jlt-radius);
    box-shadow: var(--jlt-shadow);
}

.dash-main .page-heading {
    padding: 20px 22px;
    margin-bottom: 18px;
}

.dash-main .page-heading h1,
.dash-main .page-heading h2,
.dash-main .panel h2,
.dash-main .panel h3 {
    color: var(--jlt-text);
    letter-spacing: -.025em;
}

.dash-main .eyebrow {
    color: var(--jlt-primary) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
}

.dash-main .page-description,
.dash-main .muted,
.dash-main .help-text {
    color: var(--jlt-muted);
}

.dash-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dash-main select,
.dash-main textarea {
    border: 1px solid #cfdaea !important;
    border-radius: var(--jlt-radius-control) !important;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dash-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.dash-main select:focus,
.dash-main textarea:focus {
    outline: none !important;
    border-color: #87b4ff !important;
    box-shadow: 0 0 0 3px rgba(20, 104, 243, .09) !important;
}

.dash-main .btn {
    min-height: 44px;
    border-radius: 9px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800 !important;
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.dash-main .btn:not(.btn-outline):not(.btn-secondary):not(.btn-whatsapp) {
    background: linear-gradient(135deg, #2676ff, #0f63ef) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(20, 104, 243, .16);
}

.dash-main .btn-outline,
.dash-main .btn-secondary {
    background: #fff !important;
    color: #465875 !important;
    border: 1px solid #cbd8ea !important;
}

.dash-main .table-wrap,
.dash-main .table-responsive {
    border: 1px solid #e5ebf4;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
}

.dash-main table {
    border-collapse: collapse;
}

.dash-main thead th {
    background: #f5f8fc !important;
    color: #51617c !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: .035em;
}

.dash-main tbody tr {
    transition: background .16s ease;
}

.dash-main tbody tr:hover {
    background: #fbfdff;
}

@media (max-width: 768px) {
    .dash-main .page-heading,
    .dash-main .panel,
    .dash-main .contracts-panel,
    .dash-main .card,
    .dash-main .form-card,
    .dash-main .table-card,
    .dash-main .content-card {
        border-radius: 13px;
    }

    .dash-main .page-heading {
        padding: 16px;
    }
}


/* ===== header.css ===== */
/* =====================================================
       CABECERA MÓVIL — SOLO LOGO
       ===================================================== */

    @media screen and (max-width: 768px) {

        .dash-header .brand .brand-name {
            display: none !important;
        }

        .dash-header .brand {
            gap: 0 !important;
        }

    }


    /* =====================================================
       ASEGURAR TAMAÑO CORRECTO DEL LOGO
       ===================================================== */

    .dash-header .brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        display: block;
        flex-shrink: 0;
    }


    /* =====================================================
       ALERTAS DE FACTURAS PENDIENTES
       ===================================================== */

    .header-alerts {
        position: relative;
        width: 42px;
        height: 42px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 42px;
        border: 1px solid #e4ebf5;
        border-radius: 11px;
        background: #fff;
        color: #1468f3;
        text-decoration: none;
        transition: background .18s ease, border-color .18s ease, transform .18s ease;
    }

    .header-alerts:hover {
        background: #f5f9ff;
        border-color: #bfd6ff;
        transform: translateY(-1px);
    }

    .header-alerts svg {
        display: block;
    }

    .header-alerts-badge {
        position: absolute;
        top: -6px;
        right: -7px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #ef3340;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    .dash-user {
        display: flex;
        align-items: center;
    }

    .header-alerts + span {
        margin-left: 10px;
    }

    @media screen and (max-width: 768px) {
        .header-alerts {
            width: 38px;
            height: 38px;
            flex-basis: 38px;
        }
    }

.dash-header .brand { display:flex; align-items:center; gap:10px; text-decoration:none; }


/* Iconos del menú lateral */
.sidebar a{display:flex!important;align-items:center;gap:12px!important;border-radius:10px;margin:3px 10px;padding:12px 14px!important;transition:background .18s ease,color .18s ease,transform .18s ease;}
.sidebar a:hover{transform:translateX(2px);}
.sidebar-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 21px;}
.sidebar-icon svg{width:20px;height:20px;display:block;}
.sidebar a.active .sidebar-icon{color:inherit;}

/* ===== auth-configurar-2fa.css | scope .page-auth-configurar-2fa ===== */
body.page-auth-configurar-2fa * {
    box-sizing: border-box;
}


body.page-auth-configurar-2fa {

    margin: 0;

    background: #f8fafc;

    color: #0f172a;

    font-family: var(--app-font-family);

}


body.page-auth-configurar-2fa .container {

    width: 100%;

    max-width: 760px;

    margin: 0 auto;

    padding: 35px 20px 60px;

}


body.page-auth-configurar-2fa .card {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    padding: 30px;

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, .05);

}


body.page-auth-configurar-2fa .eyebrow {

    margin: 0 0 5px;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .08em;

}


body.page-auth-configurar-2fa h1 {

    margin: 0 0 10px;

    font-size: 28px;

}


body.page-auth-configurar-2fa .description {

    color: #475569;

    line-height: 1.6;

    margin-bottom: 28px;

}


body.page-auth-configurar-2fa .steps {

    display: grid;

    gap: 18px;

    margin-bottom: 30px;

}


body.page-auth-configurar-2fa .step {

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    padding: 20px;

}


body.page-auth-configurar-2fa .step-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    margin-bottom: 10px;

    border-radius: 50%;

    background: #0f172a;

    color: #ffffff;

    font-weight: 700;

}


body.page-auth-configurar-2fa .step h2 {

    margin: 0 0 8px;

    font-size: 18px;

}


body.page-auth-configurar-2fa .step p {

    margin: 0;

    color: #475569;

    line-height: 1.5;

}


body.page-auth-configurar-2fa .qr-wrapper {

    display: flex;

    justify-content: center;

    align-items: center;

    margin: 20px 0;

    padding: 20px;

    background: #ffffff;

}


body.page-auth-configurar-2fa #qrcode {

    min-width: 220px;

    min-height: 220px;

}


body.page-auth-configurar-2fa .manual-key {

    margin-top: 15px;

}


body.page-auth-configurar-2fa .manual-key label {

    display: block;

    margin-bottom: 7px;

    color: #475569;

    font-size: 13px;

    font-weight: 700;

}


body.page-auth-configurar-2fa .secret {

    display: block;

    width: 100%;

    padding: 12px;

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    background: #f8fafc;

    color: #0f172a;

    font-family: var(--app-font-family);

    font-size: 16px;

    font-weight: 700;

    letter-spacing: .08em;

    text-align: center;

    word-break: break-all;

}


body.page-auth-configurar-2fa .form-group {

    margin-bottom: 18px;

}


body.page-auth-configurar-2fa .form-group label {

    display: block;

    margin-bottom: 7px;

    font-weight: 700;

    font-size: 14px;

}


body.page-auth-configurar-2fa .form-group input {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    background: #ffffff;

    color: #0f172a;

    font-size: 16px;

    outline: none;

}


body.page-auth-configurar-2fa .form-group input:focus {

    border-color: #64748b;

    box-shadow:
        0 0 0 3px
        rgba(100, 116, 139, .12);

}


body.page-auth-configurar-2fa .code-input {

    letter-spacing: .3em;

    text-align: center;

    font-size: 24px !important;

    font-weight: 700;

}


body.page-auth-configurar-2fa .alert {

    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 7px;

    line-height: 1.5;

}


body.page-auth-configurar-2fa .alert-error {

    border: 1px solid #fecaca;

    background: #fef2f2;

    color: #991b1b;

}


body.page-auth-configurar-2fa .alert-success {

    border: 1px solid #bbf7d0;

    background: #f0fdf4;

    color: #166534;

}


body.page-auth-configurar-2fa .recovery-box {

    margin-top: 25px;

    padding: 20px;

    border: 1px solid #fde68a;

    border-radius: 8px;

    background: #fffbeb;

}


body.page-auth-configurar-2fa .recovery-box h2 {

    margin: 0 0 10px;

    font-size: 19px;

    color: #92400e;

}


body.page-auth-configurar-2fa .recovery-box p {

    margin: 0 0 15px;

    color: #78350f;

    line-height: 1.6;

    font-size: 14px;

}


body.page-auth-configurar-2fa .recovery-codes {

    display: grid;

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

    gap: 8px;

}


body.page-auth-configurar-2fa .recovery-code {

    padding: 12px;

    border: 1px solid #fcd34d;

    border-radius: 6px;

    background: #ffffff;

    color: #0f172a;

    font-family: var(--app-font-family);

    font-size: 17px;

    font-weight: 700;

    letter-spacing: .08em;

    text-align: center;

}


body.page-auth-configurar-2fa .recovery-warning {

    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid #fcd34d;

    color: #92400e;

    font-size: 13px;

    line-height: 1.5;

    font-weight: 700;

}


body.page-auth-configurar-2fa .buttons {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}


body.page-auth-configurar-2fa .btn {

    display: inline-block;

    padding: 11px 17px;

    border: 1px solid #0f172a;

    border-radius: 7px;

    background: #0f172a;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

}


body.page-auth-configurar-2fa .btn:hover {

    opacity: .92;

}


body.page-auth-configurar-2fa .btn-outline {

    border-color: #cbd5e1;

    background: #ffffff;

    color: #0f172a;

}


body.page-auth-configurar-2fa .security-note {

    margin-top: 25px;

    padding: 15px;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    background: #f8fafc;

    color: #475569;

    font-size: 13px;

    line-height: 1.6;

}


@media (max-width: 600px) {


    body.page-auth-configurar-2fa .container {

        padding: 20px 12px 40px;

    }


    body.page-auth-configurar-2fa .card {

        padding: 20px;

    }


    body.page-auth-configurar-2fa h1 {

        font-size: 24px;

    }


    body.page-auth-configurar-2fa .recovery-codes {

        grid-template-columns: 1fr;

    }


}

body.page-auth-configurar-2fa .qr-error-message { color:#991b1b; text-align:center; }


/* ===== auth-login.css | scope .page-auth-login ===== */
body.page-auth-login .auth-forgot {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

body.page-auth-login .auth-forgot:hover {
    text-decoration: underline;
}


/* ===== auth-restablecer-2fa.css | scope .page-auth-restablecer-2fa ===== */
body.page-auth-restablecer-2fa * {
            box-sizing: border-box;
        }

        body.page-auth-restablecer-2fa {
            margin: 0;
            padding: 24px;
            min-height: 100vh;
            font-family: var(--app-font-family);
            background: #f5f7fb;
            color: #1f2937;
        }

        body.page-auth-restablecer-2fa .container {
            width: 100%;
            max-width: 720px;
            margin: 40px auto;
        }

        body.page-auth-restablecer-2fa .panel {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }

        body.page-auth-restablecer-2fa h1 {
            margin: 0 0 12px;
            font-size: 28px;
            line-height: 1.2;
        }

        body.page-auth-restablecer-2fa h2 {
            margin-top: 28px;
            font-size: 20px;
        }

        body.page-auth-restablecer-2fa p {
            line-height: 1.6;
            color: #4b5563;
        }

        body.page-auth-restablecer-2fa .notice {
            padding: 14px 16px;
            margin: 20px 0;
            border-radius: 10px;
            line-height: 1.5;
        }

        body.page-auth-restablecer-2fa .notice.warning {
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
        }

        body.page-auth-restablecer-2fa .notice.error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        body.page-auth-restablecer-2fa .notice.success {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #166534;
        }

        body.page-auth-restablecer-2fa .qr-wrapper {
            display: flex;
            justify-content: center;
            margin: 28px 0;
        }

        body.page-auth-restablecer-2fa #qrcode {
            padding: 14px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            min-height: 242px;
            min-width: 242px;
        }

        body.page-auth-restablecer-2fa .secret-box {
            padding: 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            margin: 20px 0;
        }

        body.page-auth-restablecer-2fa .secret-box strong {
            display: block;
            margin-bottom: 8px;
        }

        body.page-auth-restablecer-2fa .secret {
            display: block;
            word-break: break-all;
            font-family: var(--app-font-family);
            font-size: 17px;
            letter-spacing: 1px;
        }

        body.page-auth-restablecer-2fa label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        body.page-auth-restablecer-2fa input[type="text"] {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            font-size: 22px;
            letter-spacing: 5px;
            text-align: center;
            outline: none;
        }

        body.page-auth-restablecer-2fa input[type="text"]:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        body.page-auth-restablecer-2fa .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 18px;
            padding: 14px 20px;
            border: 0;
            border-radius: 10px;
            background: #2563eb;
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }

        body.page-auth-restablecer-2fa .btn:hover {
            background: #1d4ed8;
        }

        body.page-auth-restablecer-2fa .steps {
            margin: 20px 0;
            padding-left: 22px;
        }

        body.page-auth-restablecer-2fa .steps li {
            margin-bottom: 10px;
            line-height: 1.5;
        }

        body.page-auth-restablecer-2fa .recovery-codes {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin: 24px 0;
        }

        body.page-auth-restablecer-2fa .recovery-code {
            padding: 14px;
            text-align: center;
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-family: var(--app-font-family);
            font-size: 17px;
            font-weight: 700;
            letter-spacing: 1px;
        }

        body.page-auth-restablecer-2fa .final-actions {
            margin-top: 28px;
        }

        body.page-auth-restablecer-2fa .login-link {
            display: inline-flex;
            justify-content: center;
            width: 100%;
            padding: 14px 20px;
            border-radius: 10px;
            background: #111827;
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
        }

        body.page-auth-restablecer-2fa .login-link:hover {
            background: #1f2937;
        }

        @media (max-width: 600px) {

            body.page-auth-restablecer-2fa {
                padding: 14px;
            }

            body.page-auth-restablecer-2fa .container {
                margin: 15px auto;
            }

            body.page-auth-restablecer-2fa .panel {
                padding: 22px;
            }

            body.page-auth-restablecer-2fa h1 {
                font-size: 24px;
            }

            body.page-auth-restablecer-2fa .recovery-codes {
                grid-template-columns: 1fr;
            }
        
}

body.page-auth-restablecer-2fa .qr-error-message { color:#991b1b; text-align:center; }


/* ===== auth-verify-2fa.css | scope .page-auth-verify-2fa ===== */
/*
    |--------------------------------------------------------------------------
    | RESET
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa *,
body.page-auth-verify-2fa *::before,
body.page-auth-verify-2fa *::after {
        box-sizing: border-box;
    }

    html:has(> body.page-auth-verify-2fa) {
        min-height: 100%;
    }

    body.page-auth-verify-2fa {
        margin: 0;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            max(16px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));

        font-family: var(--app-font-family);

        background:
            linear-gradient(
                135deg,
                #f5f9ff 0%,
                #eef4ff 100%
            );

        color: #1f2937;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow-x: hidden;
    }


    /*
    |--------------------------------------------------------------------------
    | TARJETA PRINCIPAL
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .auth-card {
        width: 100%;
        max-width: 440px;

        margin: auto;

        background: #ffffff;

        border: 1px solid #e5e7eb;
        border-radius: 0;

        padding: 38px 34px 30px;

        box-shadow:
            0 18px 45px rgba(
                15,
                23,
                42,
                0.10
            );
    }


    /*
    |--------------------------------------------------------------------------
    | ICONO
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .lock-icon {
        width: 70px;
        height: 70px;

        margin: 0 auto 20px;

        border-radius: 50%;

        background: #eff6ff;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #2563eb;

        font-size: 36px;

        flex-shrink: 0;

        box-shadow:
            inset 0 0 0 1px #dbeafe;
    }


    /*
    |--------------------------------------------------------------------------
    | TÍTULO
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .auth-card h1 {
        margin: 0 0 10px;

        font-size: 25px;
        line-height: 1.25;

        text-align: center;

        color: #111827;

        overflow-wrap: anywhere;
    }


    body.page-auth-verify-2fa .intro {
        margin: 0 0 27px;

        color: #6b7280;

        text-align: center;

        line-height: 1.55;

        font-size: 15px;

        overflow-wrap: anywhere;
    }

    body.page-auth-verify-2fa .intro strong {
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /*
    |--------------------------------------------------------------------------
    | MENSAJES
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .message {
        width: 100%;

        padding: 13px 14px;

        border-radius: 0;

        margin-bottom: 20px;

        font-size: 14px;

        line-height: 1.45;

        overflow-wrap: anywhere;
    }

    body.page-auth-verify-2fa .message.error {
        background: #fef2f2;

        color: #991b1b;

        border: 1px solid #fecaca;
    }

    body.page-auth-verify-2fa .message.success {
        background: #ecfdf5;

        color: #065f46;

        border: 1px solid #a7f3d0;
    }


    /*
    |--------------------------------------------------------------------------
    | FORMULARIOS
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa form {
        width: 100%;
        margin: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | LABELS
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa label {
        display: block;

        margin-bottom: 9px;

        font-size: 14px;

        font-weight: 600;

        color: #374151;
    }


    /*
    |--------------------------------------------------------------------------
    | INPUTS
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa input[type="text"] {
        display: block;

        width: 100%;
        max-width: 100%;

        height: 56px;

        border: 1px solid #d1d5db;

        border-radius: 0;

        padding: 0 14px;

        background: #ffffff;

        font-family: var(--app-font-family);

        font-size: 23px;

        letter-spacing: 7px;

        text-align: center;

        color: #111827;

        outline: none;

        appearance: none;

        -webkit-appearance: none;

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

    body.page-auth-verify-2fa input[type="text"]:focus {
        border-color: #2563eb;

        box-shadow:
            0 0 0 4px rgba(
                37,
                99,
                235,
                0.12
            );
    }

    body.page-auth-verify-2fa input[type="text"]::placeholder {
        color: #9ca3af;
    }


    /*
    |--------------------------------------------------------------------------
    | BOTONES
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .btn {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;

        min-height: 50px;

        margin-top: 16px;

        padding: 12px 18px;

        border-radius: 0;

        font-family: var(--app-font-family);

        font-size: 15px;

        font-weight: 600;

        line-height: 1.25;

        text-align: center;

        cursor: pointer;

        touch-action: manipulation;

        transition:
            background .15s ease,
            border-color .15s ease,
            color .15s ease,
            transform .05s ease;

        overflow-wrap: anywhere;
    }

    body.page-auth-verify-2fa .btn:active {
        transform: translateY(1px);
    }

    body.page-auth-verify-2fa .btn:focus-visible {
        outline: 3px solid rgba(
            37,
            99,
            235,
            0.25
        );

        outline-offset: 2px;
    }


    /*
    |--------------------------------------------------------------------------
    | VERIFICAR CÓDIGO - AZUL
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .btn-primary {
        background: #2563eb;

        color: #ffffff;

        border: 1px solid #2563eb;

        box-shadow:
            0 4px 10px rgba(
                37,
                99,
                235,
                0.18
            );
    }

    body.page-auth-verify-2fa .btn-primary:hover {
        background: #1d4ed8;

        border-color: #1d4ed8;
    }


    /*
    |--------------------------------------------------------------------------
    | BOTONES SECUNDARIOS - BLANCOS CON BORDE AZUL
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .btn-outline {
        background: #ffffff;

        color: #2563eb;

        border: 1px solid #2563eb;

        box-shadow: none;
    }

    body.page-auth-verify-2fa .btn-outline:hover {
        background: #eff6ff;

        color: #1d4ed8;

        border-color: #1d4ed8;
    }


    /*
    |--------------------------------------------------------------------------
    | ATRÁS - SOLO LINK CENTRADO
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .btn-back {
        width: 100%;

        min-height: auto;

        margin-top: 26px;

        padding: 0;

        background: transparent;

        color: #2563eb;

        border: 0;

        border-radius: 0;

        font-size: 14px;

        font-weight: 600;

        line-height: 1.5;

        box-shadow: none;

        cursor: pointer;

        text-align: center;

        justify-content: center;
    }

    body.page-auth-verify-2fa .btn-back:hover {
        background: transparent;

        color: #1d4ed8;

        border: 0;

        text-decoration: underline;
    }

    body.page-auth-verify-2fa .btn-back:active {
        transform: none;
    }

    body.page-auth-verify-2fa .btn-back:focus-visible {
        outline: none;

        text-decoration: underline;
    }


    /*
    |--------------------------------------------------------------------------
    | ENLACES / ACCIONES SECUNDARIAS
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .links {
        width: 100%;

        margin-top: 20px;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }

    body.page-auth-verify-2fa .links form {
        width: 100%;

        margin: 0;
    }


    body.page-auth-verify-2fa .link-button {
        width: 100%;

        border: 0;

        background: transparent;

        padding: 5px;

        color: #2563eb;

        font-size: 14px;

        font-weight: 600;

        cursor: pointer;

        font-family: var(--app-font-family);
    }

    body.page-auth-verify-2fa .link-button:hover {
        text-decoration: underline;
    }


    /*
    |--------------------------------------------------------------------------
    | AVISO DE RECUPERACIÓN
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .warning {
        width: 100%;

        margin-top: 22px;

        padding: 14px 15px;

        background: #fffbeb;

        border: 1px solid #fde68a;

        border-radius: 0;

        color: #92400e;

        font-size: 13px;

        line-height: 1.5;

        overflow-wrap: anywhere;
    }


    /*
    |--------------------------------------------------------------------------
    | SEPARADOR
    |--------------------------------------------------------------------------
    */

    body.page-auth-verify-2fa .divider {
        width: 100%;

        height: 1px;

        background: #e5e7eb;

        margin: 24px 0 0;
    }


    /*
    |--------------------------------------------------------------------------
    | TABLET
    |--------------------------------------------------------------------------
    */

    @media (min-width: 481px) and (max-width: 1024px) {


        body.page-auth-verify-2fa {
            padding: 24px;
        }

        body.page-auth-verify-2fa .auth-card {
            max-width: 460px;

            padding: 36px 32px 30px;
        }
    
}


    /*
    |--------------------------------------------------------------------------
    | MÓVILES
    |--------------------------------------------------------------------------
    */

    @media (max-width: 480px) {


        body.page-auth-verify-2fa {
            align-items: flex-start;

            padding:
                max(16px, env(safe-area-inset-top))
                max(16px, env(safe-area-inset-right))
                max(16px, env(safe-area-inset-bottom))
                max(16px, env(safe-area-inset-left));
        }

        body.page-auth-verify-2fa .auth-card {
            width: 100%;

            max-width: 100%;

            margin: 16px auto;

            padding: 30px 22px 24px;
        }

        body.page-auth-verify-2fa .auth-card h1 {
            font-size: 23px;

            line-height: 1.3;
        }

        body.page-auth-verify-2fa .intro {
            font-size: 14px;

            margin-bottom: 24px;
        }

        body.page-auth-verify-2fa .lock-icon {
            width: 62px;
            height: 62px;

            margin-bottom: 18px;

            font-size: 32px;
        }

        body.page-auth-verify-2fa .message {
            padding: 12px 13px;

            font-size: 13px;
        }

        body.page-auth-verify-2fa label {
            font-size: 14px;

            margin-bottom: 8px;
        }

        body.page-auth-verify-2fa input[type="text"] {
            height: 52px;

            padding-left: 10px;
            padding-right: 10px;

            font-size: 21px;

            letter-spacing: 6px;
        }

        body.page-auth-verify-2fa .btn {
            min-height: 48px;

            padding: 11px 14px;

            font-size: 14px;
        }

        body.page-auth-verify-2fa .warning {
            padding: 13px 14px;

            font-size: 13px;
        }

        body.page-auth-verify-2fa .divider {
            margin-top: 22px;
        }
    
}


    /*
    |--------------------------------------------------------------------------
    | MÓVILES MUY PEQUEÑOS
    |--------------------------------------------------------------------------
    */

    @media (max-width: 360px) {


        body.page-auth-verify-2fa {
            padding-left: 10px;
            padding-right: 10px;
        }

        body.page-auth-verify-2fa .auth-card {
            margin-top: 10px;
            margin-bottom: 10px;

            padding:
                24px 16px 20px;
        }

        body.page-auth-verify-2fa .auth-card h1 {
            font-size: 21px;
        }

        body.page-auth-verify-2fa .intro {
            font-size: 13px;

            line-height: 1.5;
        }

        body.page-auth-verify-2fa .lock-icon {
            width: 56px;
            height: 56px;

            font-size: 29px;

            margin-bottom: 16px;
        }

        body.page-auth-verify-2fa input[type="text"] {
            height: 50px;

            font-size: 19px;

            letter-spacing: 5px;
        }

        body.page-auth-verify-2fa .btn {
            min-height: 48px;

            padding-left: 10px;
            padding-right: 10px;

            font-size: 14px;
        }

        body.page-auth-verify-2fa .btn-back {
            font-size: 14px;
        }
    
}


    /*
    |--------------------------------------------------------------------------
    | MÓVIL EN HORIZONTAL
    |--------------------------------------------------------------------------
    */

    @media (
        max-height: 600px
    ) and (
        orientation: landscape
    ) {


        body.page-auth-verify-2fa {
            align-items: flex-start;

            padding-top: 12px;
            padding-bottom: 12px;
        }

        body.page-auth-verify-2fa .auth-card {
            margin-top: 8px;
            margin-bottom: 8px;

            padding-top: 22px;
            padding-bottom: 20px;
        }

        body.page-auth-verify-2fa .lock-icon {
            width: 52px;
            height: 52px;

            margin-bottom: 12px;

            font-size: 27px;
        }

        body.page-auth-verify-2fa .auth-card h1 {
            margin-bottom: 7px;

            font-size: 21px;
        }

        body.page-auth-verify-2fa .intro {
            margin-bottom: 18px;

            font-size: 13px;
        }

        body.page-auth-verify-2fa input[type="text"] {
            height: 48px;
        }

        body.page-auth-verify-2fa .btn {
            min-height: 46px;

            margin-top: 12px;
        }

        body.page-auth-verify-2fa .links {
            margin-top: 14px;
        }

        body.page-auth-verify-2fa .warning {
            margin-top: 16px;
        }

        body.page-auth-verify-2fa .divider {
            margin-top: 18px;
        }

        body.page-auth-verify-2fa .btn-back {
            margin-top: 18px;
        }
    
}


    /*
    |--------------------------------------------------------------------------
    | REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
    |--------------------------------------------------------------------------
    */

    @media (prefers-reduced-motion: reduce) {


        body.page-auth-verify-2fa *,
body.page-auth-verify-2fa *::before,
body.page-auth-verify-2fa *::after {
            scroll-behavior: auto !important;

            transition: none !important;

            animation: none !important;
        }
    
}


/* ===== client-view.css | scope .page-client-view ===== */
/*
|--------------------------------------------------------------------------
| PERFIL DEL CLIENTE
|--------------------------------------------------------------------------
*/

body.page-client-view .client-profile-panel {

    margin-bottom: 20px;

}


body.page-client-view .client-profile-header {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;

}


body.page-client-view .client-avatar {

    width: 64px;

    height: 64px;

    min-width: 64px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e2e8f0;

    color: #334155;

    font-size: 24px;

    font-weight: 700;

}


body.page-client-view .client-profile-title h2 {

    margin: 0 0 5px 0;

}


body.page-client-view .client-profile-title .eyebrow {

    margin-bottom: 3px;

}


body.page-client-view .client-uid {

    display: inline-block;

    color: #64748b;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .3px;

}


body.page-client-view .client-uid strong {

    color: #475569;

}


/*
|--------------------------------------------------------------------------
| DATOS CLIENTE
|--------------------------------------------------------------------------
*/

body.page-client-view .client-details-grid {

    display: grid;

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

    gap: 16px;

}


body.page-client-view .client-detail {

    padding: 14px 16px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background: #f8fafc;

}


body.page-client-view .client-detail span {

    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .6px;

}


body.page-client-view .client-detail strong {

    display: block;

    color: #1e293b;

    font-size: 14px;

    line-height: 1.5;

}


/*
|--------------------------------------------------------------------------
| ESTADÍSTICAS DEL CLIENTE
|--------------------------------------------------------------------------
*/

body.page-client-view .client-stats {

    display: grid;

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

    gap: 8px;

    margin-bottom: 20px;

    width: 100%;

}


body.page-client-view .client-stat {

    min-width: 0;

    min-height: 76px;

    padding: 13px 12px;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    background: #ffffff;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;

}


body.page-client-view .client-stat span {

    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


body.page-client-view .client-stat strong {

    display: block;

    color: #1e293b;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/*
|--------------------------------------------------------------------------
| PAGADO
|--------------------------------------------------------------------------
*/

body.page-client-view .client-stat-success {

    background: #f8fffa;

}


body.page-client-view .client-stat-success strong {

    color: #166534;

}


/*
|--------------------------------------------------------------------------
| PENDIENTE - NARANJA
|--------------------------------------------------------------------------
*/

body.page-client-view .client-stat-pending {

    background: #fffaf5;

    border-color: #fed7aa;

}


body.page-client-view .client-stat-pending span {

    color: #c2410c;

}


body.page-client-view .client-stat-pending strong {

    color: #c2410c;

}


/*
|--------------------------------------------------------------------------
| TABLA FACTURAS
|--------------------------------------------------------------------------
*/

body.page-client-view .client-invoices-table {

    width: 100%;

}


body.page-client-view .client-invoices-table th,
body.page-client-view .client-invoices-table td {

    vertical-align: middle;

}


/*
|--------------------------------------------------------------------------
| ESTADOS FACTURAS
|--------------------------------------------------------------------------
*/

body.page-client-view .client-invoice-status {

    display: inline-block;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .4px;

}


/*
|--------------------------------------------------------------------------
| PENDIENTE - NARANJA
|--------------------------------------------------------------------------
*/

body.page-client-view .client-invoice-status-pending {

    background: #ffedd5;

    color: #c2410c;

}


/*
|--------------------------------------------------------------------------
| PAGADA - VERDE
|--------------------------------------------------------------------------
*/

body.page-client-view .client-invoice-status-paid {

    background: #dcfce7;

    color: #166534;

}


/*
|--------------------------------------------------------------------------
| CANCELADA - ROJO
|--------------------------------------------------------------------------
*/

body.page-client-view .client-invoice-status-cancelled {

    background: #fee2e2;

    color: #991b1b;

}


/*
|--------------------------------------------------------------------------
| SIN FACTURAS
|--------------------------------------------------------------------------
*/

body.page-client-view .client-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 45px 20px;

    color: #64748b;

}


body.page-client-view .client-empty-icon {

    font-size: 36px;

    margin-bottom: 12px;

}


body.page-client-view .client-empty strong {

    color: #334155;

    margin-bottom: 5px;

}


body.page-client-view .client-empty span {

    font-size: 14px;

}


/*
|--------------------------------------------------------------------------
| MODERNIZACIÓN UNIFORME DEL PANEL
|--------------------------------------------------------------------------
*/

body.page-client-view .page-heading {

    background: #fff;

    border: 1px solid #dfe8f4;

    border-radius: 16px;

    padding: 20px 22px;

    margin-bottom: 18px;

    box-shadow:
        0 10px 30px rgba(30, 64, 175, .06);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    flex-wrap: wrap;

}


body.page-client-view .page-heading h1,
body.page-client-view .page-heading h2 {

    margin: 0;

    color: #0f172a;

    letter-spacing: -.03em;

}


body.page-client-view .eyebrow {

    color: #1468f3 !important;

    font-size: 11px !important;

    font-weight: 900 !important;

    letter-spacing: .12em;

    text-transform: uppercase;

}


body.page-client-view .page-description {

    color: #6b7a94;

    line-height: 1.55;

}


body.page-client-view .panel,
body.page-client-view .contracts-panel {

    background: #fff;

    border: 1px solid #dfe8f4 !important;

    border-radius: 16px !important;

    box-shadow:
        0 10px 30px rgba(30, 64, 175, .06) !important;

    padding: 20px 22px !important;

    margin-bottom: 18px;

}


body.page-client-view .btn {

    border-radius: 9px !important;

    min-height: 42px;

    padding: 0 17px !important;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-weight: 800 !important;

    transition: .18s ease !important;

}


body.page-client-view .btn:not(.btn-outline):not(.btn-secondary):not(.btn-whatsapp) {

    background:
        linear-gradient(
            135deg,
            #2676ff,
            #0f63ef
        ) !important;

    color: #fff !important;

    border-color: transparent !important;

    box-shadow:
        0 8px 18px rgba(20, 104, 243, .16);

}


body.page-client-view .btn-outline,
body.page-client-view .btn-secondary {

    background: #fff !important;

    color: #465875 !important;

    border: 1px solid #cbd8ea !important;

}


body.page-client-view input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.page-client-view select,
body.page-client-view textarea {

    border: 1px solid #cfdaea !important;

    border-radius: 10px !important;

    background: #fff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;

}


body.page-client-view input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,
body.page-client-view select:focus,
body.page-client-view textarea:focus {

    outline: none !important;

    border-color: #87b4ff !important;

    box-shadow:
        0 0 0 3px rgba(20, 104, 243, .09) !important;

}


body.page-client-view .table-wrap {

    border: 1px solid #e5ebf4;

    border-radius: 12px;

    overflow: auto;

    background: #fff;

}


body.page-client-view table {

    border-collapse: collapse;

}


body.page-client-view thead th {

    background: #f5f8fc !important;

    color: #51617c !important;

    text-transform: uppercase;

    font-size: 11px !important;

    letter-spacing: .035em;

}


body.page-client-view tbody tr {

    transition: background .16s ease;

}


body.page-client-view tbody tr:hover {

    background: #fbfdff;

}


body.page-client-view .alert,
body.page-client-view .contract-alert {

    border-radius: 11px !important;

}


/*
|--------------------------------------------------------------------------
| BOTONES SUPERIORES
|--------------------------------------------------------------------------
*/

body.page-client-view .hero-actions,
body.page-client-view .client-view-actions {

    display: grid !important;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        ) !important;

    gap: 10px !important;

    width: auto !important;

    min-width: 480px;

}


body.page-client-view .hero-actions > .btn,
body.page-client-view .hero-actions > a,
body.page-client-view .hero-actions > button,
body.page-client-view .client-view-actions > .btn,
body.page-client-view .client-view-actions > a,
body.page-client-view .client-view-actions > button {

    width: 100% !important;

    min-width: 0 !important;

    justify-content: center !important;

    white-space: nowrap;

}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {


    body.page-client-view .hero-actions,
body.page-client-view .client-view-actions {

        width: 100% !important;

        min-width: 0;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

    }


}


@media (max-width: 800px) {


    body.page-client-view .client-details-grid {

        grid-template-columns: 1fr;

    }


    body.page-client-view .client-stats {

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

        gap: 5px;

    }


    body.page-client-view .client-stat {

        min-height: 68px;

        padding: 11px 6px;

    }


    body.page-client-view .client-stat span {

        font-size: 8px;

    }


    body.page-client-view .client-stat strong {

        font-size: 13px;

    }


}


@media (max-width: 768px) {


    body.page-client-view .page-heading {

        padding: 16px;

        border-radius: 13px;

        align-items: flex-start;

    }


    body.page-client-view .panel,
body.page-client-view .contracts-panel {

        padding: 15px !important;

        border-radius: 13px !important;

    }


    body.page-client-view .hero-actions,
body.page-client-view .client-view-actions {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 6px !important;

    }


    body.page-client-view .hero-actions .btn,
body.page-client-view .client-view-actions .btn {

        width: 100% !important;

        min-width: 0 !important;

        padding-left: 8px !important;

        padding-right: 8px !important;

        font-size: 11px !important;

        white-space: nowrap;

    }


}


@media (max-width: 650px) {


    body.page-client-view .client-profile-header {

        align-items: flex-start;

    }


    body.page-client-view .client-avatar {

        width: 52px;

        height: 52px;

        min-width: 52px;

        font-size: 20px;

    }


    body.page-client-view .client-invoices-table {

        min-width: 750px;

    }


}

