/* =================================================================
   PORTAL MÉDICO — Clínica Limatambo Cajamarca
   Design System v1.0 · Sobrio & Elegante · Color institucional #e30613
   ================================================================= */

:root {
    --color-primary: #1c1c28;
    --color-primary-lt: #34344a;
    --color-accent: #e30613;
    --color-accent-dk: #b8050f;
    --color-accent-bg: rgba(227, 6, 19, 0.08);
    --color-bg: #f2f3f6;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-text-md: #374151;
    --color-muted: #6b7280;
    --color-muted-lt: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-dk: #d1d5db;
    --color-success: #15803d;
    --color-success-bg: #dcfce7;
    --color-warning: #b45309;
    --color-warning-bg: #fef3c7;
    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;
    --sidebar-width: 250px;
    --sidebar-width-colapsado: 64px;
    --topbar-height: 60px;
    --bottom-nav-height: 60px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-card: 12px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 6px rgba(20,20,30,0.06);
    --shadow-md: 0 4px 16px rgba(20,20,30,0.10);
}

/* ===== Reset base ===== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-top: 0;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn .material-symbols-outlined { font-size: 1.1rem; }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--color-accent-dk); }

.btn-outline {
    background: transparent;
    border-color: var(--color-border-dk);
    color: var(--color-text-md);
}
.btn-outline:hover:not(:disabled) { background: var(--color-bg); }

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #991b1b; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Tarjetas ===== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0;
}

.card-body { padding: 1.25rem; }

/* =================================================================
   LOGIN
   ================================================================= */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    background: radial-gradient(circle at 18% 15%, #3a0a10 0%, #17141d 42%, #0c0c12 100%);
}

.login-card {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    padding-top: 3rem;
    width: 100%;
    max-width: 390px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    margin-top: 44px;
}

.login-avatar {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    border: 4px solid var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-avatar img {
    width: 58%;
    object-fit: contain;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    text-align: center;
}

.login-logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.lp-divider {
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #ff4d5a);
    border-radius: 99px;
    margin: 0.65rem auto 1.1rem;
}

.login-logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-group { margin-bottom: 1rem; }

.login-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-md);
    margin-bottom: 0.35rem;
}

.login-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid var(--color-border-dk);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.login-input-wrap { position: relative; }
.login-input-wrap .login-input { padding-right: 2.5rem; }

.login-eye {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.login-btn {
    width: 100%;
    padding: 0.65rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.login-btn:hover:not(:disabled) { background: var(--color-accent-dk); }
.login-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.login-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(185,28,28,0.2);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
   SHELL AUTENTICADO (topbar + sidebar)
   ================================================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.sidebar-logo-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sidebar-logo-main { font-weight: 700; font-size: 0.95rem; color: #fff; }
.sidebar-logo-sub { font-size: 0.68rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .04em; }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
}

.sidebar-nav-item.activo {
    background: var(--color-accent);
    color: #fff;
}

.sidebar-nav-item .material-symbols-outlined { font-size: 1.15rem; }

.sidebar-nav-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    padding: 0.1rem 0.45rem;
}

.sidebar-toggle-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sidebar-colapsado .sidebar { width: var(--sidebar-width-colapsado); }

.sidebar-colapsado .sidebar-logo-icon,
.sidebar-colapsado .sidebar-logo-text,
.sidebar-colapsado .sidebar-nav-label {
    display: none;
}

.sidebar-colapsado .sidebar-header {
    justify-content: center;
    padding: 1.1rem 0.5rem;
}

.sidebar-colapsado .sidebar-toggle-btn { margin-left: 0; }

.sidebar-colapsado .sidebar-nav-item {
    justify-content: center;
    padding: 0.6rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-accent-bg);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.topbar-user-name { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.topbar-user-role { font-size: 0.7rem; color: var(--color-muted); }

button.topbar-user { border: none; background: transparent; cursor: pointer; font: inherit; padding: 0.25rem; border-radius: var(--radius-sm); }
button.topbar-user:hover { background: var(--color-bg); }

.menu-usuario-wrap { position: relative; margin-left: auto; }

.menu-usuario-backdrop { position: fixed; inset: 0; z-index: 965; background: transparent; border: none; cursor: default; }

.menu-usuario {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 210px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    z-index: 970;
}

.menu-usuario-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
}
.menu-usuario-item:hover { background: var(--color-bg); }
.menu-usuario-item .material-symbols-outlined { font-size: 1.15rem; color: var(--color-muted); }
.menu-usuario-item.peligro { color: var(--color-danger); }
.menu-usuario-item.peligro .material-symbols-outlined { color: var(--color-danger); }

.menu-usuario-divider { height: 1px; background: var(--color-border); margin: 0.35rem 0.2rem; }

.topbar-brand-movil {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}
.topbar-brand-movil img { width: 28px; height: 28px; object-fit: contain; }

.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom);
    min-height: var(--bottom-nav-height);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem 0.4rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.bottom-nav-item .material-symbols-outlined { font-size: 1.35rem; }

.bottom-nav-item.activo { color: var(--color-accent); }

.bottom-nav-item span:last-child { white-space: nowrap; }

.hoja-mas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 950;
}

.hoja-mas {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 960;
    background: var(--color-surface);
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-md);
}

.hoja-mas-perfil {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-content { flex: 1; padding: 1.5rem; }

.page-title { font-size: 1.25rem; margin: 0 0 1rem; }

.welcome-banner {
    background: linear-gradient(120deg, var(--color-primary), #2a2a3d);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.18;
}

.welcome-banner h1 { color: #fff; font-size: 1.4rem; margin-bottom: 0.35rem; }
.welcome-banner p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.88rem; }

.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.opcion-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.opcion-card .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--color-accent);
}

.opcion-card h3 { font-size: 0.95rem; margin: 0; }
.opcion-card p { font-size: 0.78rem; color: var(--color-muted); margin: 0; }

.opcion-badge {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--color-muted);
    background: var(--color-bg);
    border-radius: 99px;
    padding: 0.15rem 0.5rem;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
}

/* ===== Formularios ===== */
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-md);
    margin-bottom: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid var(--color-border-dk);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.form-control-fijo {
    background: var(--color-bg);
    color: var(--color-text-md);
    display: flex;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 0.75rem 0;
}

/* ===== Alertas ===== */
.alerta-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(185,28,28,0.2);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0.75rem 0;
}

.alerta-ok {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(21,128,61,0.2);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0.75rem 0;
}

.alerta-advertencia {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(180,83,9,0.2);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0.75rem 0;
}

.alerta-advertencia label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-weight: 600;
    cursor: pointer;
}

.ayuda {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: 0.5rem 0;
}

/* ===== Tabla ===== */
.tabla-scroll { overflow-x: auto; }

.tabla-liquidaciones {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.tabla-liquidaciones th, .tabla-liquidaciones td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    white-space: nowrap;
}

.tabla-liquidaciones thead th {
    font-weight: 700;
    color: var(--color-text-md);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: var(--color-bg);
}

.tabla-liquidaciones .col-num { text-align: right; }

.tabla-liquidaciones .col-acciones {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ===== Lista de liquidaciones en tarjetas — reemplaza la tabla en móvil
   (ver breakpoint 767px más abajo) para no obligar a hacer scroll horizontal
   en la tabla dentro de una pantalla angosta. ===== */
.lista-liquidaciones-movil {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
}

.liquidacion-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
}

.liquidacion-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.liquidacion-card-codigo {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-md);
}

.liquidacion-card-periodo {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.liquidacion-card-datos {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 0.9rem;
}

.liquidacion-card-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-muted);
    margin-bottom: 0.15rem;
}

.liquidacion-card-valor { font-size: 0.95rem; font-weight: 600; }
.liquidacion-card-total { color: var(--color-primary); font-size: 1.05rem; }

.liquidacion-card-acciones {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

.liquidacion-card-acciones .btn { flex: 1 1 auto; justify-content: center; }

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.55);
    z-index: 1100;
}

.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    padding: 1.75rem;
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1101;
}

.modal-card-ancha { max-width: 640px; }

.modal-card-pdf {
    max-width: 900px;
    width: 92vw;
    height: 88vh;
    display: flex;
    flex-direction: column;
}

.preview-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: .25rem .25rem 0 0;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.modal-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }

.modal-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* ===== Badges de estado ===== */
.badge-estado {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-preliminar   { background: #f3f4f6; color: #4b5563; }
.badge-liquidado    { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-aprobado     { background: #dbeafe; color: #1d4ed8; }
.badge-pagado       { background: var(--color-success-bg); color: var(--color-success); }
.badge-planilla     { background: #ede9fe; color: #6d28d9; }
.badge-anulado      { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-rechazado    { background: var(--color-danger-bg); color: var(--color-danger); }

.info-pago {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.info-pago dt { font-weight: 600; color: var(--color-text-md); }
.info-pago dd { margin: 0 0 0.5rem; color: var(--color-muted); }

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 767px) {
    .sidebar { display: none; }

    .topbar-brand-movil { display: flex; }
    .topbar-user { display: none; }

    .bottom-nav { display: flex; }

    .page-content {
        padding-bottom: calc(1.5rem + var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .tabla-scroll { display: none; }
    .lista-liquidaciones-movil { display: flex; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .modal-card { max-width: 92vw; }
}
