/* ═══════════════════════════════════════════════════════════════
   ZinTech Corporate — Módulo Clientes
   Paleta: Purple #6B21A8 · Sky #0EA5E9 · Amber #F59E0B · Red #EF4444
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --zin-purple: #6B21A8;
    --zin-purple-l: #EDE9FE;
    --zin-sky: #0EA5E9;
    --zin-sky-l: #E0F2FE;
    --zin-amber: #F59E0B;
    --zin-amber-l: #FEF3C7;
    --zin-red: #EF4444;
    --zin-red-l: #FEE2E2;
    --zin-green: #22C55E;
    --zin-green-l: #DCFCE7;
    --zin-dark: #1E1B4B;
    --zin-muted: #94A3B8;
    --zin-border: #E2E8F0;
    --zin-bg: #F8FAFC;
    --zin-white: #FFFFFF;
    --zin-danger: #EF4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --transition: .18s ease;
}

/* ── Reset mínimo ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════════ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--zin-dark);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--zin-muted);
    margin: 2px 0 0;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════════ */
.stat-card {
    background: var(--zin-white);
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    overflow: hidden;
}

    .stat-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: transparent;
        transition: var(--transition);
    }

    .stat-card:hover {
        border-color: var(--zin-purple);
        box-shadow: var(--shadow-md);
    }

        .stat-card:hover::after {
            background: rgba(107,33,168,.03);
        }

    .stat-card.active-filter {
        border-color: var(--zin-purple);
        background: var(--zin-purple-l);
        box-shadow: 0 0 0 3px rgba(107,33,168,.15);
    }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

    .stat-icon.purple {
        background: var(--zin-purple-l);
        color: var(--zin-purple);
    }

    .stat-icon.sky {
        background: var(--zin-sky-l);
        color: var(--zin-sky);
    }

    .stat-icon.amber {
        background: var(--zin-amber-l);
        color: var(--zin-amber);
    }

    .stat-icon.red {
        background: var(--zin-red-l);
        color: var(--zin-red);
    }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--zin-dark);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--zin-muted);
    margin-top: 2px;
}

.filter-chip {
    font-size: 10px;
    color: var(--zin-purple);
    margin-top: 4px;
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover .filter-chip,
.stat-card.active-filter .filter-chip {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   TOOLBAR
══════════════════════════════════════════════════════════════ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zin-white);
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    transition: var(--transition);
}

    .search-box:focus-within {
        border-color: var(--zin-purple);
        box-shadow: 0 0 0 3px rgba(107,33,168,.12);
    }

    .search-box i {
        color: var(--zin-muted);
        font-size: 14px;
    }

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        font-size: 13px;
        color: var(--zin-dark);
        padding: 9px 0;
        width: 100%;
    }

.filter-select {
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--zin-dark);
    background: var(--zin-white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

    .filter-select:focus {
        border-color: var(--zin-purple);
    }

.active-card-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--zin-purple-l);
    color: var(--zin-purple);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .active-card-pill button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--zin-purple);
        font-size: 11px;
        padding: 0 0 0 4px;
        line-height: 1;
    }

/* ══════════════════════════════════════════════════════════════
   TABLE CARD
══════════════════════════════════════════════════════════════ */
.table-card {
    background: var(--zin-white);
    border: 1px solid var(--zin-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive-zin {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead tr {
    background: var(--zin-bg);
    border-bottom: 1.5px solid var(--zin-border);
}

th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--zin-muted);
    white-space: nowrap;
}

    th.sortable {
        cursor: pointer;
    }

        th.sortable:hover {
            color: var(--zin-purple);
        }

tbody tr {
    border-bottom: 1px solid var(--zin-border);
    transition: background var(--transition);
}

    tbody tr:last-child {
        border-bottom: none;
    }

    tbody tr:hover {
        background: #FAFBFF;
    }

    tbody tr.row-selected {
        background: var(--zin-purple-l);
    }

td {
    padding: 12px 14px;
    vertical-align: middle;
    color: var(--zin-dark);
}

/* ── Avatar ─────────────────────────────────────────────────── */
.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--zin-purple), #9333EA);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.client-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--zin-dark);
}

.client-sub {
    font-size: 11px;
    color: var(--zin-muted);
    margin-top: 1px;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge-zin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .badge-zin.vigente {
        background: var(--zin-green-l);
        color: #15803D;
    }

    .badge-zin.novigente {
        background: var(--zin-red-l);
        color: #B91C1C;
    }

    .badge-zin.vip {
        background: #F3E8FF;
        color: #7E22CE;
    }

    .badge-zin.mensual {
        background: var(--zin-sky-l);
        color: #0369A1;
    }

    .badge-zin.anual {
        background: var(--zin-amber-l);
        color: #92400E;
    }

    .badge-zin.sincontrato {
        background: #F1F5F9;
        color: #64748B;
    }

/* ── Renovación ─────────────────────────────────────────────── */
.renov-urgent {
    color: var(--zin-red);
    font-weight: 600;
    font-size: 12px;
}

.renov-soon {
    color: var(--zin-amber);
    font-weight: 600;
    font-size: 12px;
}

.renov-ok {
    color: var(--zin-muted);
    font-size: 12px;
}

    .renov-urgent small, .renov-soon small, .renov-ok small {
        font-size: 10px;
        opacity: .75;
        margin-left: 3px;
    }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--zin-muted);
}

    .empty-state i {
        font-size: 40px;
        opacity: .35;
        display: block;
        margin-bottom: 12px;
    }

    .empty-state p {
        font-size: 14px;
    }

/* ══════════════════════════════════════════════════════════════
   PAGINACIÓN
══════════════════════════════════════════════════════════════ */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--zin-border);
    font-size: 12px;
    color: var(--zin-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.page-btns {
    display: flex;
    gap: 4px;
}

.page-btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-sm);
    background: var(--zin-white);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--zin-dark);
}

    .page-btn:hover:not(:disabled) {
        border-color: var(--zin-purple);
        color: var(--zin-purple);
    }

    .page-btn.active {
        background: var(--zin-purple);
        border-color: var(--zin-purple);
        color: #fff;
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* ══════════════════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════════════════ */
.btn-zin-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--zin-purple);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

    .btn-zin-primary:hover:not(:disabled) {
        background: #581C87;
        box-shadow: var(--shadow-md);
    }

    .btn-zin-primary:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.btn-zin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--zin-white);
    color: var(--zin-dark);
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

    .btn-zin-secondary:hover:not(:disabled) {
        border-color: var(--zin-purple);
        color: var(--zin-purple);
    }

    .btn-zin-secondary.amber:hover {
        border-color: var(--zin-amber);
        color: var(--zin-amber);
    }

    .btn-zin-secondary:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.btn-zin-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--zin-muted);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-zin-ghost:hover {
        background: var(--zin-purple-l);
        color: var(--zin-purple);
    }

    .btn-zin-ghost.amber:hover {
        background: var(--zin-amber-l);
        color: var(--zin-amber);
    }

    .btn-zin-ghost.danger:hover {
        background: var(--zin-red-l);
        color: var(--zin-red);
    }

.btn-act {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--zin-bg);
    color: var(--zin-dark);
    border: 1px solid var(--zin-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-act:hover {
        border-color: var(--zin-purple);
        color: var(--zin-purple);
        background: var(--zin-purple-l);
    }

    .btn-act.amber:hover {
        border-color: var(--zin-amber);
        color: var(--zin-amber);
        background: var(--zin-amber-l);
    }

/* ══════════════════════════════════════════════════════════════
   PANEL DETALLE (slide-in lateral)
══════════════════════════════════════════════════════════════ */
.detalle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 900;
    animation: fadeIn .2s ease;
}

.detalle-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: var(--zin-white);
    box-shadow: var(--shadow-lg);
    z-index: 901;
    display: flex;
    flex-direction: column;
    animation: slideInRight .22s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.detalle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--zin-border);
    flex-shrink: 0;
}

.detalle-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 24px;
}

.detalle-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--zin-border);
}

    .detalle-section:last-child {
        border-bottom: none;
    }

.detalle-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--zin-purple);
    margin-bottom: 14px;
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detalle-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .detalle-field .lbl {
        font-size: 10px;
        color: var(--zin-muted);
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .detalle-field .val {
        font-size: 13px;
        color: var(--zin-dark);
        font-weight: 500;
    }

.contrato-card {
    background: var(--zin-bg);
    border: 1px solid var(--zin-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
}

    .contrato-card:last-child {
        margin-bottom: 0;
    }

.anexo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--zin-dark);
    padding: 4px 0;
    border-top: 1px dashed var(--zin-border);
}

.empty-mini {
    font-size: 12px;
    color: var(--zin-muted);
    text-align: center;
    padding: 16px;
}

/* ══════════════════════════════════════════════════════════════
   MODAL ALTA / EDICIÓN
══════════════════════════════════════════════════════════════ */
.modal-backdrop-zin {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    animation: fadeIn .2s ease;
}

.modal-zin {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 96vw);
    max-height: 90vh;
    background: var(--zin-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    animation: scaleIn .2s ease;
}

@keyframes scaleIn {
    from {
        transform: translate(-50%,-50%) scale(.94);
        opacity: 0;
    }

    to {
        transform: translate(-50%,-50%) scale(1);
        opacity: 1;
    }
}

.modal-zin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--zin-border);
    flex-shrink: 0;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--zin-purple-l);
    color: var(--zin-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.modal-zin-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--zin-dark);
    margin: 0;
}

.modal-zin-subtitle {
    font-size: 12px;
    color: var(--zin-muted);
    margin: 2px 0 0;
}

.modal-zin-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.modal-zin-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--zin-border);
    flex-shrink: 0;
}

/* ── Formulario ─────────────────────────────────────────────── */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--zin-border);
}

    .form-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--zin-purple);
    margin-bottom: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

    .form-row-2:last-child {
        margin-bottom: 0;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--zin-dark);
}

    .form-label .required {
        color: var(--zin-red);
    }

.form-control-zin {
    border: 1.5px solid var(--zin-border);
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    font-size: 13px;
    color: var(--zin-dark);
    background: var(--zin-white);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

    .form-control-zin:focus {
        border-color: var(--zin-purple);
        box-shadow: 0 0 0 3px rgba(107,33,168,.1);
    }

    .form-control-zin:disabled {
        background: var(--zin-bg);
        color: var(--zin-muted);
        cursor: not-allowed;
    }

.form-error {
    font-size: 11px;
    color: var(--zin-red);
    margin-top: 2px;
}

.form-error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zin-red-l);
    color: var(--zin-red);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--zin-muted);
    cursor: pointer;
    font-weight: 400;
}

    .toggle-label input {
        accent-color: var(--zin-purple);
    }

/* ══════════════════════════════════════════════════════════════
   CARDS MOBILE (< 768px)
══════════════════════════════════════════════════════════════ */
.client-cards-list {
    display: none;
}

.client-card-m {
    background: var(--zin-white);
    border: 1px solid var(--zin-border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.client-card-m-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--zin-border);
}

.client-card-m-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
}

    .client-card-m-body .lbl {
        font-size: 10px;
        color: var(--zin-muted);
        text-transform: uppercase;
    }

    .client-card-m-body .val {
        font-size: 12px;
        color: var(--zin-dark);
        font-weight: 500;
        margin-top: 2px;
    }

.client-card-m-actions {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--zin-border);
    background: var(--zin-bg);
}

/* ══════════════════════════════════════════════════════════════
   TOASTS
══════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast-zin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideUp .25s ease;
    min-width: 260px;
    max-width: 380px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-zin.success {
    background: #DCFCE7;
    color: #15803D;
}

.toast-zin.error {
    background: var(--zin-red-l);
    color: #B91C1C;
}

.toast-zin.warn {
    background: var(--zin-amber-l);
    color: #92400E;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991px) {
    .page-title {
        font-size: 18px;
    }

    .stat-value {
        font-size: 22px;
    }

    .btn-label-text {
        display: none;
    }
}

/* Mobile — tabla → cards */
@media (max-width: 767px) {
    .table-card {
        display: none;
    }

    .client-cards-list {
        display: block;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        justify-content: flex-end;
    }

    .toolbar {
        gap: 6px;
    }

    .search-box {
        max-width: 100%;
    }

    .detalle-panel {
        width: 100vw;
    }

    .modal-zin {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .toast-zin {
        min-width: unset;
        max-width: 100%;
    }
}

/* Extra small */
@media (max-width: 480px) {
    .stat-card {
        padding: 12px 10px;
        gap: 10px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PÁGINA FACTURAS — LAYOUT
══════════════════════════════════════════════════════════════ */
.facturas-layout-full {
    display: block;
}

.facturas-layout-split {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 16px;
    align-items: start;
}

/* ── Panel PDF ──────────────────────────────────────────────── */
.factura-panel {
    position: sticky;
    top: 16px;
    background: var(--zin-white);
    border: 1px solid var(--zin-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    overflow: hidden;
    animation: slideInRight .22s ease;
}

.factura-panel-expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    border-radius: 0;
    animation: none;
}

.factura-panel-body {
    flex: 1;
    overflow: hidden;
    background: #f0f0f0;
}

/* ── Responsive facturas ────────────────────────────────────── */
@media (max-width: 991px) {
    .facturas-layout-split {
        grid-template-columns: 1fr;
    }

    .factura-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        border-radius: 0;
    }
}