/*
 * VeloSoft Principal — sistema visual moderno compartido.
 * Esta hoja se carga despues de app.css y modern.css para mantener la
 * experiencia clasica intacta y unificar Web moderna, PWA y MAUI Blazor.
 */

:root {
    --vsp-brand-950: #06384a;
    --vsp-brand-900: #08485e;
    --vsp-brand-800: #0b5c73;
    --vsp-brand-700: #11718a;
    --vsp-action-700: #075fc7;
    --vsp-action-600: #0874e8;
    --vsp-action-500: #1888f2;
    --vsp-action-100: #e7f2ff;
    --vsp-canvas: #f3f6f9;
    --vsp-surface: #ffffff;
    --vsp-surface-soft: #f8fafc;
    --vsp-border: #d3dce5;
    --vsp-border-strong: #aebdca;
    --vsp-text: #102332;
    --vsp-muted: #5d7182;
    --vsp-success: #16803b;
    --vsp-success-soft: #dcf7e3;
    --vsp-warning: #996300;
    --vsp-warning-soft: #fff0c7;
    --vsp-danger: #c92929;
    --vsp-danger-soft: #ffe2e2;
    --vsp-info-soft: #dceefe;
    --vsp-radius-sm: 8px;
    --vsp-radius-md: 11px;
    --vsp-radius-lg: 15px;
    --vsp-shadow-sm: 0 2px 8px rgba(10, 45, 68, .08);
    --vsp-shadow-md: 0 14px 38px rgba(10, 45, 68, .14);
    --vsp-shadow-modal: 0 28px 80px rgba(4, 31, 48, .28);
}

:is(.vs-presentation-modern, .vs-modern-standalone, .vs-login-experience-modern) {
    --vs-modern-navy: var(--vsp-brand-950);
    --vs-modern-blue: var(--vsp-action-600);
    --vs-modern-blue-dark: var(--vsp-action-700);
    --vs-modern-blue-soft: var(--vsp-action-100);
    --vs-modern-bg: var(--vsp-canvas);
    --vs-modern-surface: var(--vsp-surface);
    --vs-modern-border: var(--vsp-border);
    --vs-modern-text: var(--vsp-text);
    --vs-modern-muted: var(--vsp-muted);
    --vs-modern-danger: var(--vsp-danger);
    --vs-modern-shadow: var(--vsp-shadow-md);
    color: var(--vsp-text);
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-synthesis: none;
}

.vs-presentation-modern {
    background: var(--vsp-canvas);
}

.vs-presentation-modern :is(button, input, select, textarea) {
    font: inherit;
}

.vs-presentation-modern :is(button, a, input, select, textarea):focus-visible,
.vs-modern-standalone :is(button, a, input, select, textarea):focus-visible,
.vs-login-experience-modern :is(button, a, input, select, textarea):focus-visible {
    outline: 3px solid rgba(8, 116, 232, .24);
    outline-offset: 2px;
}

/* Shell y barra superior */
.vs-presentation-modern .vs-principal-titlebar {
    min-height: 68px;
    gap: 18px;
    padding: 10px 20px;
    border-bottom: 0;
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-700));
    color: #fff;
    box-shadow: 0 5px 18px rgba(4, 52, 70, .2);
}

.vs-presentation-modern .vs-principal-brand {
    min-width: max-content;
    display: flex;
    align-items: baseline;
    gap: 7px;
    order: -2;
}

.vs-presentation-modern .vs-principal-system-name {
    color: #fff;
    font-size: 1.34rem;
    font-style: italic;
    font-weight: 850;
    letter-spacing: -.035em;
}

.vs-presentation-modern .vs-principal-version,
.vs-presentation-modern .vs-principal-brand-separator,
.vs-presentation-modern .vs-principal-company-label {
    display: none;
}

.vs-presentation-modern .vs-principal-brand .vs-principal-company {
    max-width: 250px;
    overflow: hidden;
    color: rgba(255, 255, 255, .92);
    font-size: .8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vs-presentation-modern .vs-modern-page-title {
    display: none;
}

.vs-presentation-modern .vs-modern-global-search {
    width: min(430px, 42vw);
    min-height: 42px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: var(--vsp-radius-sm);
    background: #fff;
    color: var(--vsp-muted);
    box-shadow: 0 2px 8px rgba(0, 31, 48, .12);
}

.vs-presentation-modern .vs-modern-global-search input {
    color: var(--vsp-text);
    font-size: .84rem;
}

.vs-presentation-modern .vs-modern-user-chip {
    min-height: 42px;
    gap: 9px;
    padding: 4px 10px 4px 5px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(0, 31, 45, .18);
}

.vs-presentation-modern .vs-modern-user-chip > span {
    background: #fff;
    color: var(--vsp-brand-800);
}

.vs-presentation-modern .vs-modern-user-chip > strong {
    color: #fff;
}

.vs-presentation-modern .vs-principal-session-actions {
    display: none;
}

.vs-presentation-modern .vs-principal-titlebar > .vs-principal-security-link {
    display: none;
}

/* Navegacion administrativa */
.vs-presentation-modern .vs-modern-sidebar-brand,
.vs-presentation-modern .vs-modern-sidebar-company {
    display: none;
}

.vs-presentation-modern .vs-principal-menu-root {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.vs-principal-menu-icon {
    width: 21px;
    height: 21px;
}

.vs-principal-menu-chevron {
    width: 15px;
    height: 15px;
    opacity: .72;
}

.vs-presentation-modern .vs-principal-menu-group > ul {
    margin: 4px 0 10px;
    padding: 5px;
    border: 1px solid #e5ebf1;
    border-radius: var(--vsp-radius-sm);
    background: var(--vsp-surface-soft);
}

.vs-presentation-modern .vs-principal-menu-item,
.vs-presentation-modern .vs-principal-submenu-root {
    border-radius: 7px;
}

.vs-presentation-modern .vs-principal-menu-item-active {
    background: var(--vsp-action-600);
    color: #fff;
    box-shadow: 0 5px 12px rgba(8, 116, 232, .22);
}

.vs-presentation-modern:not(.vs-development-license):is(
    .vs-empresa-color-azul,
    .vs-empresa-color-verde,
    .vs-empresa-color-turquesa,
    .vs-empresa-color-violeta,
    .vs-empresa-color-naranja,
    .vs-empresa-color-rosado,
    .vs-empresa-color-gris) {
    --vsp-company-accent: var(--vs-empresa-color);
    box-shadow: inset 3px 0 0 var(--vsp-company-accent);
}

.vs-presentation-modern:not(.vs-development-license):is(
    .vs-empresa-color-azul,
    .vs-empresa-color-verde,
    .vs-empresa-color-turquesa,
    .vs-empresa-color-violeta,
    .vs-empresa-color-naranja,
    .vs-empresa-color-rosado,
    .vs-empresa-color-gris) .vs-principal-titlebar {
    border-bottom: 3px solid var(--vsp-company-accent);
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-700));
    color: #fff;
}

/* Dashboard */
.vs-presentation-modern .vs-principal-workspace {
    padding: 18px 20px 24px;
    background: var(--vsp-canvas);
}

.vs-modern-dashboard {
    width: min(1480px, 100%);
    margin: 0 auto;
    gap: 15px;
}

.vs-modern-dashboard-heading {
    align-items: end;
    gap: 18px;
}

.vs-modern-dashboard-heading h1 {
    color: var(--vsp-text);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    letter-spacing: -.035em;
}

.vs-modern-dashboard-heading p {
    margin-top: 3px;
    color: var(--vsp-muted);
}

.vs-modern-eyebrow {
    display: none;
}

.vs-modern-dashboard-filters {
    padding: 9px;
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    background: #fff;
    box-shadow: var(--vsp-shadow-sm);
}

.vs-modern-dashboard-filters :is(input, select) {
    min-height: 39px;
    border-color: var(--vsp-border-strong);
    border-radius: 7px;
}

.vs-modern-filter-button {
    min-height: 39px;
    border-radius: 7px;
    background: var(--vsp-action-600);
}

.vs-modern-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.vs-modern-kpi {
    min-height: 98px;
    gap: 3px;
    padding: 14px 17px;
    border: 1px solid var(--vsp-border);
    border-left-width: 1px;
    border-radius: var(--vsp-radius-md);
    background: linear-gradient(145deg, #fff, #f6fbff);
    box-shadow: var(--vsp-shadow-sm);
}

.vs-modern-kpi::before {
    content: "";
    width: 36px;
    height: 4px;
    margin-bottom: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: .85;
}

.vs-modern-kpi-primary { color: var(--vsp-brand-700); }
.vs-modern-kpi-success { color: var(--vsp-success); }
.vs-modern-kpi-danger { color: var(--vsp-danger); }

.vs-modern-kpi > strong {
    color: currentColor;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.vs-modern-dashboard-context {
    grid-template-columns: minmax(240px, .72fr) minmax(360px, 1.28fr);
    gap: 12px;
}

.vs-modern-dashboard-context > section,
.vs-presentation-modern .vs-principal-embedded-diaadia {
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    background: #fff;
    box-shadow: var(--vsp-shadow-sm);
}

.vs-modern-dashboard-context h2,
.vs-modern-section-heading {
    min-height: 48px;
    box-sizing: border-box;
    margin: -14px -14px 12px;
    padding: 12px 15px;
    border-radius: var(--vsp-radius-md) var(--vsp-radius-md) 0 0;
    background: linear-gradient(110deg, var(--vsp-brand-800), var(--vsp-brand-700));
    color: #fff;
}

.vs-modern-dashboard-context h2,
.vs-modern-section-heading h2 {
    color: #fff;
    font-size: 1rem;
}

/* Formularios, tablas y controles compartidos */
.vs-presentation-modern .vs-winforms-form,
.vs-modern-standalone-content > .vs-winforms-form,
.vs-login-experience-modern .vs-winforms-form {
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-lg);
    background: var(--vsp-surface);
    color: var(--vsp-text);
    box-shadow: var(--vsp-shadow-md);
}

.vs-presentation-modern .vs-form-caption,
.vs-modern-standalone-content .vs-form-caption,
.vs-login-experience-modern .vs-form-caption {
    min-height: 52px;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 0;
    border-bottom: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-lg) var(--vsp-radius-lg) 0 0;
    background: linear-gradient(105deg, var(--vsp-brand-900), var(--vsp-brand-700));
    color: #fff;
    font-size: .95rem;
    font-weight: 750;
}

.vs-presentation-modern .vs-form-body,
.vs-modern-standalone-content .vs-form-body {
    background: #fff;
}

.vs-presentation-modern :is(.vs-textbox, .vs-input, .vs-search-input, select, textarea),
.vs-modern-standalone :is(.vs-textbox, .vs-input, .vs-search-input, select, textarea),
.vs-login-experience-modern :is(.vs-textbox, .vs-input, select, textarea) {
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--vsp-border-strong);
    border-radius: var(--vsp-radius-sm);
    background: #fff;
    color: var(--vsp-text);
    box-shadow: inset 0 1px 2px rgba(10, 45, 68, .03);
}

.vs-presentation-modern :is(.vs-textbox, .vs-input, .vs-search-input, select, textarea):focus,
.vs-modern-standalone :is(.vs-textbox, .vs-input, .vs-search-input, select, textarea):focus,
.vs-login-experience-modern :is(.vs-textbox, .vs-input, select, textarea):focus {
    border-color: var(--vsp-action-600);
    outline: 3px solid rgba(8, 116, 232, .14);
    outline-offset: 0;
}

.vs-presentation-modern :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button),
.vs-modern-standalone :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button),
.vs-login-experience-modern :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button) {
    min-height: 40px;
    border: 1px solid #9db3c5;
    border-radius: var(--vsp-radius-sm);
    background: #fff;
    color: var(--vsp-brand-900);
    font-weight: 700;
    box-shadow: none;
}

.vs-presentation-modern :is(.vs-primary-button, .vs-report-primary-button),
.vs-modern-standalone :is(.vs-primary-button, .vs-report-primary-button),
.vs-login-experience-modern .vs-primary-button {
    border-color: var(--vsp-action-600);
    background: var(--vsp-action-600);
    color: #fff;
}

.vs-presentation-modern :is(.vs-primary-button, .vs-report-primary-button):hover:not(:disabled),
.vs-modern-standalone :is(.vs-primary-button, .vs-report-primary-button):hover:not(:disabled),
.vs-login-experience-modern .vs-primary-button:hover:not(:disabled) {
    border-color: var(--vsp-action-700);
    background: var(--vsp-action-700);
}

.vs-presentation-modern :is(.vs-winforms-button, .vs-command-button, .vs-grid-button):disabled {
    opacity: .52;
    cursor: not-allowed;
}

.vs-presentation-modern .vs-toolstrip,
.vs-modern-standalone .vs-toolstrip {
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    background: var(--vsp-surface-soft);
}

.vs-presentation-modern .vs-grid-shell,
.vs-modern-standalone .vs-grid-shell {
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    background: #fff;
    box-shadow: none;
    overflow: auto;
}

.vs-presentation-modern .vs-grid,
.vs-modern-standalone .vs-grid {
    background: #fff;
    color: var(--vsp-text);
}

.vs-presentation-modern .vs-grid th,
.vs-modern-standalone .vs-grid th {
    padding: 10px 11px;
    border-color: var(--vsp-border);
    background: #eef4f8;
    color: var(--vsp-brand-950);
    font-size: .75rem;
    font-weight: 800;
}

.vs-presentation-modern .vs-grid td,
.vs-modern-standalone .vs-grid td {
    padding: 9px 11px;
    border-color: #e4eaf0;
}

.vs-presentation-modern .vs-grid tbody tr:nth-child(even),
.vs-modern-standalone .vs-grid tbody tr:nth-child(even) {
    background: #fbfdff;
}

.vs-presentation-modern .vs-grid tbody tr:hover,
.vs-modern-standalone .vs-grid tbody tr:hover,
.vs-presentation-modern .vs-grid-row-selected,
.vs-modern-standalone .vs-grid-row-selected {
    background: var(--vsp-action-100);
}

.vs-presentation-modern .vs-tab-strip,
.vs-modern-standalone .vs-tab-strip {
    gap: 0;
    padding: 3px;
    border: 1px solid var(--vsp-border-strong);
    border-radius: var(--vsp-radius-md);
    background: #f5f7f9;
}

.vs-presentation-modern .vs-tab-button,
.vs-modern-standalone .vs-tab-button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--vsp-text);
}

.vs-presentation-modern .vs-tab-button-active,
.vs-modern-standalone .vs-tab-button-active {
    background: var(--vsp-action-600);
    color: #fff;
    box-shadow: 0 3px 9px rgba(8, 116, 232, .2);
}

.vs-presentation-modern .vs-inline-alert,
.vs-modern-standalone .vs-inline-alert {
    border-radius: var(--vsp-radius-sm);
}

.vs-presentation-modern .vs-inline-alert-info { border-color: #92c7f2; background: var(--vsp-info-soft); }
.vs-presentation-modern .vs-inline-alert-warning { border-color: #e6bd55; background: var(--vsp-warning-soft); color: #6f4900; }
.vs-presentation-modern .vs-inline-alert-error { border-color: #ef9a9a; background: var(--vsp-danger-soft); color: #8c1717; }

.vs-presentation-modern .vs-loading-strip,
.vs-modern-standalone .vs-loading-strip,
.vs-login-experience-modern .vs-loading-strip {
    border: 1px solid #9dc9ef;
    border-radius: var(--vsp-radius-sm);
    background: linear-gradient(100deg, #e7f3ff 20%, #cfe8ff 42%, #e7f3ff 64%);
    background-size: 220% 100%;
    color: var(--vsp-brand-900);
    animation: vsp-loading-sheen 1.45s ease-in-out infinite;
}

/* Modales */
.vs-presentation-modern .vs-principal-modal-backdrop {
    padding: 18px;
    background: rgba(3, 28, 43, .55);
    backdrop-filter: blur(5px);
}

.vs-presentation-modern .vs-principal-modal-window {
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: var(--vsp-radius-lg);
    background: #fff;
    box-shadow: var(--vsp-shadow-modal);
}

.vs-presentation-modern .vs-principal-modal-close,
.vs-presentation-modern .vs-winforms-window-close {
    border-radius: 8px;
    color: #fff;
}

/* Login moderno */
.vs-login-experience-modern {
    background:
        radial-gradient(circle at 15% 12%, rgba(17, 113, 138, .2), transparent 31%),
        radial-gradient(circle at 86% 82%, rgba(8, 116, 232, .13), transparent 29%),
        var(--vsp-canvas);
}

.vs-login-experience-modern .vs-login-form {
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(4, 44, 63, .2);
}

.vs-login-experience-modern .vs-form-caption {
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-700));
    color: #fff;
}

.vs-login-experience-modern .vs-modern-login-mark {
    border-radius: 16px 5px 16px 5px;
    background: linear-gradient(145deg, var(--vsp-brand-800), var(--vsp-action-600));
}

.vs-login-experience-modern .vs-login-brand small {
    color: var(--vsp-brand-700);
}

/* Variantes PWA y MAUI */
html.vs-pwa-installed {
    color-scheme: light;
    background: var(--vsp-canvas);
}

html.vs-pwa-installed .vs-presentation-modern .vs-principal-titlebar {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

body.vs-maui-native {
    color-scheme: light;
    background: var(--vsp-canvas);
}

body.vs-maui-native .status-bar-safe-area {
    background: var(--vsp-brand-900);
}

body.vs-maui-native .vs-presentation-modern {
    overscroll-behavior: none;
}

@keyframes vsp-loading-sheen {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

@media (min-width: 961px) {
    .vs-presentation-modern {
        grid-template-columns: 214px minmax(0, 1fr);
        grid-template-rows: 68px minmax(0, 1fr) 26px;
    }

    .vs-presentation-modern .vs-principal-titlebar {
        grid-column: 1 / -1;
    }

    .vs-presentation-modern .vs-principal-menu {
        padding: 14px 10px 24px;
        border-right: 1px solid var(--vsp-border);
        background: #fff;
        box-shadow: 5px 0 18px rgba(12, 46, 67, .05);
    }

    .vs-presentation-modern .vs-principal-menu-group {
        margin: 2px 0;
    }

    .vs-presentation-modern .vs-principal-menu-root {
        min-height: 45px;
        padding: 9px 10px;
        border-radius: 9px;
        color: #304b5d;
        font-size: .82rem;
        font-weight: 750;
        letter-spacing: 0;
        text-transform: none;
        cursor: pointer;
    }

    .vs-presentation-modern .vs-principal-menu-root:hover,
    .vs-presentation-modern .vs-principal-menu-root:focus-visible,
    .vs-presentation-modern .vs-principal-menu-root[aria-expanded="true"] {
        background: var(--vsp-action-100);
        color: var(--vsp-action-700);
    }

    .vs-presentation-modern .vs-principal-menu-home-active {
        background: var(--vsp-action-600);
        color: #fff;
        box-shadow: 0 6px 14px rgba(8, 116, 232, .2);
    }
}

@media (max-width: 960px) {
    .vs-presentation-modern {
        grid-template-rows: auto minmax(0, 1fr);
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .vs-presentation-modern .vs-principal-titlebar {
        min-height: 64px;
        padding: max(9px, env(safe-area-inset-top)) 13px 9px;
    }

    .vs-presentation-modern .vs-principal-brand {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 2px 8px;
        padding-left: 4px;
    }

    .vs-presentation-modern .vs-principal-system-name {
        font-size: 1.12rem;
    }

    .vs-presentation-modern .vs-principal-brand .vs-principal-company {
        width: 100%;
        max-width: calc(100vw - 100px);
        font-size: .66rem;
        font-weight: 650;
    }

    .vs-presentation-modern .vs-mobile-menu-trigger {
        order: -3;
    }

    .vs-presentation-modern .vs-mobile-menu-panel,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-menu-panel {
        background: #fff;
        color: var(--vsp-text);
    }

    .vs-presentation-modern .vs-mobile-menu-header,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-menu-header {
        min-height: 96px;
        box-sizing: border-box;
        padding-top: max(16px, env(safe-area-inset-top));
        background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-700));
        color: #fff;
    }

    .vs-presentation-modern .vs-mobile-menu-search,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-menu-search {
        margin: 14px 16px 10px;
        border: 1px solid var(--vsp-border);
        border-radius: var(--vsp-radius-md);
        background: #fff;
    }

    .vs-presentation-modern .vs-mobile-account-row,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-account-row {
        border-color: var(--vsp-border);
        background: var(--vsp-surface-soft);
    }

    .vs-presentation-modern .vs-mobile-account-icon,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-account-icon {
        background: var(--vsp-action-100);
        color: var(--vsp-action-700);
    }

    .vs-presentation-modern .vs-mobile-menu-group-button,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-menu-group-button {
        color: var(--vsp-text);
    }

    .vs-presentation-modern .vs-mobile-menu-item,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-menu-item {
        color: #243b4b;
    }

    .vs-presentation-modern .vs-mobile-bottom-nav,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-bottom-nav {
        min-height: calc(70px + env(safe-area-inset-bottom));
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 4px max(5px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px, env(safe-area-inset-left));
        border-top: 1px solid var(--vsp-border);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -5px 18px rgba(9, 45, 67, .1);
        backdrop-filter: blur(15px);
    }

    .vs-presentation-modern .vs-mobile-nav-item,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-nav-item {
        min-width: 0;
        min-height: 62px;
        gap: 2px;
        padding: 5px 2px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #526574;
        font-size: clamp(.61rem, 2.8vw, .73rem);
        font-weight: 650;
    }

    .vs-presentation-modern .vs-mobile-nav-item .vs-mobile-icon {
        width: 23px;
        height: 23px;
    }

    .vs-presentation-modern .vs-mobile-nav-item-active,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-nav-item-active {
        background: var(--vsp-action-100);
        color: var(--vsp-action-700);
    }

    .vs-presentation-modern .vs-mobile-nav-item-active::before,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-nav-item-active::before {
        left: 27%;
        right: 27%;
        top: -4px;
        background: var(--vsp-action-600);
    }

    .vs-presentation-modern .vs-principal-workspace {
        padding: 0;
    }

    .vs-modern-dashboard {
        gap: 12px;
        padding: 14px 12px 18px;
    }

    .vs-modern-dashboard-heading {
        display: grid;
        align-items: stretch;
    }

    .vs-modern-dashboard-heading h1 {
        font-size: 1.65rem;
    }

    .vs-modern-dashboard-heading p {
        font-size: .82rem;
    }

    .vs-modern-dashboard-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vs-modern-dashboard-filters label:first-child,
    .vs-modern-filter-button {
        grid-column: 1 / -1;
    }

    .vs-modern-kpi-grid {
        gap: 6px;
    }

    .vs-modern-kpi {
        min-height: 82px;
        padding: 10px 8px;
        text-align: center;
    }

    .vs-modern-kpi::before {
        width: 26px;
        height: 3px;
        margin-inline: auto;
    }

    .vs-modern-kpi > span { font-size: .65rem; }
    .vs-modern-kpi > strong { font-size: clamp(.9rem, 4vw, 1.15rem); }
    .vs-modern-kpi > small { display: none; }

    .vs-modern-dashboard-context {
        grid-template-columns: minmax(0, 1fr);
    }

    .vs-presentation-modern .vs-principal-modal-backdrop,
    html.vs-web-mobile .vs-presentation-modern .vs-principal-modal-backdrop {
        align-items: stretch;
        padding: 0;
        background: #fff;
        backdrop-filter: none;
    }

    .vs-presentation-modern .vs-principal-modal-window,
    html.vs-web-mobile .vs-presentation-modern .vs-principal-modal-window {
        --vs-modal-resizable: 0;
        --vs-modal-fullscreen: 1;
        width: 100% !important;
        height: 100dvh !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vs-presentation-modern .vs-principal-modal-window > .vs-modal-resize-grip {
        display: none;
    }

    .vs-presentation-modern .vs-principal-modal-window > .vs-winforms-form,
    .vs-modern-standalone-content > .vs-winforms-form {
        width: 100%;
        min-height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vs-presentation-modern .vs-form-caption,
    .vs-modern-standalone-content .vs-form-caption {
        position: sticky;
        top: 0;
        z-index: 8;
        min-height: 58px;
        padding-top: max(10px, env(safe-area-inset-top));
        border-radius: 0;
    }

    .vs-presentation-modern .vs-form-body,
    .vs-modern-standalone-content .vs-form-body {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .vs-presentation-modern :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button),
    .vs-modern-standalone :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button) {
        min-height: 44px;
    }

    .vs-presentation-modern .vs-grid-shell,
    .vs-modern-standalone .vs-grid-shell {
        border-radius: 9px;
    }

    .vs-login-experience-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        background: #fff;
        overflow-x: hidden;
    }

    .vs-login-experience-modern .vs-login-presentation-toggle {
        display: none;
    }

    .vs-login-experience-modern .vs-login-form {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        box-sizing: border-box;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vs-login-experience-modern .vs-login-body {
        padding-inline: 18px;
    }
}

@media (max-width: 430px) {
    .vs-presentation-modern .vs-mobile-nav-item,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-nav-item {
        font-size: .61rem;
    }

    .vs-modern-dashboard-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .vs-modern-dashboard-filters label,
    .vs-modern-dashboard-filters label:first-child,
    .vs-modern-filter-button {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vs-presentation-modern *,
    .vs-modern-standalone *,
    .vs-login-experience-modern * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Refinamiento compacto 2026: exclusivo de VeloSoft moderno PWA + MAUI. */
:root {
    --vsp-brand-950: #063f57;
    --vsp-brand-900: #07506c;
    --vsp-brand-800: #0a617d;
    --vsp-brand-700: #0d6f8c;
    --vsp-action-700: #0663c8;
    --vsp-action-600: #0874e8;
    --vsp-action-500: #1987f0;
    --vsp-action-100: #e4f1ff;
    --vsp-canvas: #f3f5f7;
    --vsp-surface: #fff;
    --vsp-surface-soft: #f7f9fb;
    --vsp-border: #c8d2dc;
    --vsp-border-strong: #9eafbd;
    --vsp-text: #101820;
    --vsp-muted: #52606d;
    --vsp-success: #168a34;
    --vsp-success-soft: #d9f3df;
    --vsp-warning: #a96700;
    --vsp-warning-soft: #ffebbd;
    --vsp-danger: #d9232e;
    --vsp-danger-soft: #ffdde0;
    --vsp-info-soft: #dceefe;
    --vsp-radius-sm: 8px;
    --vsp-radius-md: 10px;
    --vsp-radius-lg: 12px;
    --vsp-shadow-sm: 0 2px 7px rgba(7, 50, 70, .08);
    --vsp-shadow-md: 0 4px 14px rgba(7, 50, 70, .1);
}

:is(.vs-presentation-modern, .vs-modern-standalone, .vs-login-experience-modern) {
    font-size: 14px;
}

.vs-presentation-modern .vs-principal-titlebar {
    min-height: 58px;
    gap: 12px;
    padding: 7px 14px;
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-800));
    box-shadow: 0 2px 8px rgba(0, 45, 65, .22);
}

.vs-presentation-modern .vs-principal-system-name { font-size: 1.18rem; }
.vs-presentation-modern .vs-principal-brand .vs-principal-company { font-size: .72rem; }
.vs-presentation-modern .vs-modern-global-search,
.vs-presentation-modern .vs-modern-user-chip { min-height: 40px; }
.vs-presentation-modern .vs-modern-user-chip { padding-block: 2px; }

.vs-presentation-modern .vs-principal-workspace {
    padding: 12px 14px 18px;
}

.vs-modern-dashboard {
    gap: 10px;
}

.vs-modern-dashboard-heading {
    gap: 10px;
}

.vs-modern-dashboard-heading h1 {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.05;
}

.vs-modern-dashboard-heading p { display: none; }
.vs-modern-filter-toggle { display: none; }
.vs-toolbar-icon { width: 20px; height: 20px; display: block; }
.vs-diaadia-toolbar-more { display: none; }
.vs-diaadia-toolbar-secondary { display: contents; }
.vs-diaadia-mobile-days-pair { display: none; }
.vs-modern-dashboard-filters { gap: 6px; }
.vs-modern-dashboard-filters label { gap: 2px; font-size: .72rem; }
.vs-modern-dashboard-filters :is(input, select, button) { min-height: 40px; border-radius: 8px; font-size: .8rem; }

.vs-modern-kpi-grid { gap: 0; overflow: hidden; border: 1px solid var(--vsp-border); border-radius: var(--vsp-radius-md); background: var(--vsp-surface); }
.vs-modern-kpi {
    min-height: 76px;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-right: 1px solid var(--vsp-border);
    border-radius: 0;
    box-shadow: none;
}
.vs-modern-kpi:last-child { border-right: 0; }
.vs-modern-kpi > span { font-size: .72rem; font-weight: 700; }
.vs-modern-kpi > strong { font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.vs-modern-kpi > small { font-size: .68rem; }

.vs-modern-dashboard-context { gap: 8px; }
.vs-modern-diaadia-section { order: 3; }
.vs-modern-dashboard-context { order: 4; }
.vs-modern-dashboard-context > section,
.vs-modern-diaadia-section {
    padding: 10px;
    border-color: var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    box-shadow: var(--vsp-shadow-sm);
}
.vs-modern-dashboard-context h2,
.vs-modern-section-heading h2 { font-size: 1.05rem; }
.vs-modern-notification-list li,
.vs-modern-activity-list li { min-height: 48px; padding: 7px 8px; }

.vs-presentation-modern :is(.vs-winforms-form, .vs-group-box, .vs-winforms-group, fieldset),
.vs-modern-standalone :is(.vs-winforms-form, .vs-group-box, .vs-winforms-group, fieldset) {
    border-color: var(--vsp-border);
    border-radius: var(--vsp-radius-md);
    box-shadow: var(--vsp-shadow-sm);
}

.vs-presentation-modern .vs-form-caption,
.vs-modern-standalone-content .vs-form-caption {
    min-height: 48px;
    padding: 7px 10px;
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-800));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.vs-presentation-modern .vs-form-body,
.vs-modern-standalone-content .vs-form-body { gap: 8px; padding: 10px; }

.vs-presentation-modern :is(.vs-textbox, .vs-input, input, select, textarea),
.vs-modern-standalone :is(.vs-textbox, .vs-input, input, select, textarea) {
    min-height: 40px;
    border-color: var(--vsp-border);
    border-radius: 8px;
    font-size: .82rem;
}

.vs-presentation-modern :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button),
.vs-modern-standalone :is(.vs-winforms-button, .vs-command-button, .vs-grid-button, .vs-icon-button) {
    min-height: 44px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 750;
}

.vs-presentation-modern :is(.vs-primary-button, .vs-report-primary-button, .vs-empleado-save-action, .vs-suscripcion-save-command),
.vs-modern-standalone :is(.vs-primary-button, .vs-report-primary-button) {
    border-color: var(--vsp-action-600);
    background: var(--vsp-action-600);
    color: #fff;
}

.vs-presentation-modern .vs-tab-strip,
.vs-modern-standalone .vs-tab-strip {
    min-height: 44px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--vsp-border);
    border-radius: 9px;
    background: var(--vsp-surface);
}
.vs-presentation-modern .vs-tab-button,
.vs-modern-standalone .vs-tab-button { min-height: 44px; border: 0; border-radius: 0; box-shadow: none; }
.vs-presentation-modern .vs-tab-button-active,
.vs-modern-standalone .vs-tab-button-active { background: var(--vsp-action-600); color: #fff; }

.vs-presentation-modern table :is(th, td),
.vs-modern-standalone table :is(th, td) { padding: 7px 8px; font-size: .78rem; }
.vs-presentation-modern table th,
.vs-modern-standalone table th { background: var(--vsp-brand-800); color: #fff; font-weight: 750; }

.vs-modern-standalone-header {
    min-height: 58px;
    padding: max(7px, env(safe-area-inset-top)) 12px 7px;
    background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-800));
    box-shadow: 0 2px 8px rgba(0, 45, 65, .22);
}
.vs-modern-standalone-header strong { font-size: 1.05rem; }
.vs-modern-standalone-header small { display: none; }
.vs-modern-standalone-content { padding: 10px; background: var(--vsp-canvas); }

.vs-login-experience-modern {
    background: linear-gradient(180deg, var(--vsp-brand-900) 0 132px, var(--vsp-canvas) 132px);
}
.vs-login-experience-modern .vs-login-form {
    width: min(430px, calc(100% - 24px));
    min-height: auto;
    margin: 72px auto 24px;
    border: 1px solid var(--vsp-border);
    border-radius: var(--vsp-radius-lg);
    background: var(--vsp-surface);
    box-shadow: var(--vsp-shadow-md);
}
.vs-login-experience-modern .vs-login-body { gap: 8px; padding: 12px 14px 16px; }
.vs-login-experience-modern .vs-login-brand { margin-bottom: 4px; }

@media (max-width: 720px) {
    .vs-login-experience-modern { background: var(--vsp-canvas); }
    .vs-presentation-modern .vs-principal-titlebar,
    html.vs-web-mobile .vs-presentation-modern .vs-principal-titlebar {
        min-height: 58px;
        padding: max(7px, env(safe-area-inset-top)) 12px 7px;
    }

    .vs-presentation-modern .vs-principal-workspace,
    html.vs-web-mobile .vs-presentation-modern .vs-principal-workspace { padding: 9px 10px calc(70px + env(safe-area-inset-bottom)); }
    .vs-presentation-modern.vs-development-license .vs-principal-titlebar,
    html.vs-web-mobile .vs-presentation-modern.vs-development-license .vs-principal-titlebar {
        border-bottom: 3px solid #d6a800;
        background: linear-gradient(115deg, var(--vsp-brand-900), var(--vsp-brand-800));
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 45, 65, .22);
    }

    .vs-modern-dashboard { gap: 8px; padding: 8px 8px 12px; }
    .vs-modern-dashboard-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }
    .vs-modern-dashboard-heading h1 { font-size: 1.45rem; }
    .vs-modern-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        min-width: 92px;
        min-height: 44px;
        gap: 10px;
        padding: 7px 10px;
        border: 1px solid var(--vsp-action-600);
        border-radius: 8px;
        background: var(--vsp-surface);
        color: var(--vsp-action-700);
        font-size: .78rem;
        font-weight: 800;
    }
    .vs-modern-dashboard-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-modern-dashboard-filters:not(.vs-modern-dashboard-filters-expanded) { display: none; }
    .vs-modern-dashboard-filters label:first-child { grid-column: auto; }
    .vs-modern-filter-button { grid-column: auto; }
    html.vs-web-mobile .vs-presentation-modern .vs-modern-kpi-grid,
    body.vs-maui-native .vs-presentation-modern .vs-modern-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .vs-modern-kpi { min-height: 64px; padding: 8px 6px; text-align: center; }
    .vs-modern-kpi > strong { font-size: clamp(.96rem, 4vw, 1.22rem); }
    .vs-modern-kpi > small { display: none; }
    .vs-modern-diaadia-section { order: 3; }
    .vs-modern-dashboard-context { order: 4; }
    .vs-modern-dashboard-context > section,
    .vs-modern-diaadia-section { padding: 8px; }

    .vs-modern-diaadia-section {
        padding-inline: 0;
        border-inline: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vs-modern-diaadia-section > .vs-modern-section-heading {
        margin-inline: 0;
        border-radius: 8px 8px 0 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-workspace .vs-diaadia-tabview-body-embedded,
    body.vs-maui-native .vs-modern-diaadia-workspace .vs-diaadia-tabview-body-embedded {
        padding: 8px 0 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-workspace .vs-tab-page,
    body.vs-maui-native .vs-modern-diaadia-workspace .vs-tab-page {
        padding: 8px 0 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-workspace .vs-diaadia-form > .vs-form-body,
    body.vs-maui-native .vs-modern-diaadia-workspace .vs-diaadia-form > .vs-form-body {
        gap: 8px;
        padding: 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-tab-control > .vs-tab-strip,
    body.vs-maui-native .vs-modern-diaadia-tab-control > .vs-tab-strip {
        display: flex;
        min-height: 44px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    html.vs-web-mobile .vs-modern-diaadia-tab-control > .vs-tab-strip > button,
    body.vs-maui-native .vs-modern-diaadia-tab-control > .vs-tab-strip > button {
        min-width: max-content;
        min-height: 44px;
        flex: 1 0 auto;
        padding: 6px 12px;
        font-size: .78rem;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-toolstrip,
    body.vs-maui-native .vs-modern-diaadia-view .vs-toolstrip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-toolstrip #txtBuscar,
    body.vs-maui-native .vs-modern-diaadia-view .vs-toolstrip #txtBuscar {
        grid-column: 1 / 4;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-toolstrip #btnBuscar,
    body.vs-maui-native .vs-modern-diaadia-view .vs-toolstrip #btnBuscar {
        grid-column: 4;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-toolstrip :is(#bntFiltros, #btnReportePrestamosVencidos, #btnReporteCobros, #btnPrestamo, #btnCliente, .vs-command-button),
    body.vs-maui-native .vs-modern-diaadia-view .vs-toolstrip :is(#bntFiltros, #btnReportePrestamosVencidos, #btnReporteCobros, #btnPrestamo, #btnCliente, .vs-command-button) {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding-inline: 5px;
        font-size: .7rem;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-toolstrip .vs-solo-cliente-check,
    body.vs-maui-native .vs-modern-diaadia-view .vs-toolstrip .vs-solo-cliente-check {
        grid-column: span 2;
        min-height: 44px;
        font-size: .7rem;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-toolbar-more,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-toolbar-more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--vsp-border-strong);
        border-radius: 8px;
        background: var(--vsp-surface);
        color: var(--vsp-action-700);
        font-size: .7rem;
        font-weight: 750;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-toolbar-secondary,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-toolbar-secondary {
        display: none;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-toolbar-secondary-expanded,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-toolbar-secondary-expanded {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .85fr);
        gap: 6px;
        padding: 6px;
        border: 1px solid var(--vsp-border);
        border-radius: 8px;
        background: var(--vsp-surface-soft);
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody {
        gap: 8px;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 6px;
        border-color: var(--vsp-border);
        border-radius: 10px;
        box-shadow: var(--vsp-shadow-sm);
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td {
        min-height: 32px;
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        border-bottom: 1px solid #e5eaf0;
        padding: 2px 5px;
        font-size: .71rem;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td::before,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td::before {
        color: var(--vsp-muted);
        font-size: .62rem;
        font-weight: 650;
        line-height: 1.05;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(1),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(1) {
        grid-column: 1;
        font-size: .85rem;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(2),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(2) {
        grid-column: 2 / 4;
        font-size: .85rem;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(3),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(3) { grid-column: 1; grid-row: 2; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(4),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        padding-inline: 3px;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(5),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(5) { grid-column: 3; grid-row: 2; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(6),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(6) { grid-column: 1; grid-row: 3; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(7),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(7) { grid-column: 2; grid-row: 3; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(8),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(8) { grid-column: 3; grid-row: 3; }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-overdue-amount,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-overdue-amount {
        color: var(--vsp-danger);
        font-weight: 800;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-days-pair-cell::before,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-days-pair-cell::before,
    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-desktop-days,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-desktop-days,
    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-followup-days,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-followup-days {
        display: none !important;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair > span,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair > span {
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 1px;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair > span + span,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair > span + span {
        border-left: 1px solid var(--vsp-border);
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair small,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair small {
        color: var(--vsp-muted);
        font-size: .6rem;
        font-weight: 650;
        line-height: 1;
    }

    html.vs-web-mobile .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair strong,
    body.vs-maui-native .vs-modern-diaadia-view .vs-diaadia-mobile-days-pair strong {
        color: var(--vsp-text);
        font-size: .72rem;
        line-height: 1.1;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td[data-vs-action-cell="true"],
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td[data-vs-action-cell="true"] {
        min-height: 44px;
        grid-column: auto;
        align-items: stretch;
        border-bottom: 0;
        padding: 3px 3px 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(10),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(10) { grid-column: 3; grid-row: 4; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(11),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(11) { grid-column: 1; grid-row: 4; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(12),
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(12) { grid-column: 2; grid-row: 4; }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(11) .vs-grid-button,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid > tbody > tr > td:nth-child(11) .vs-grid-button {
        border-color: var(--vsp-action-600);
        background: var(--vsp-action-600);
        color: #fff;
    }

    html.vs-web-mobile .vs-modern-diaadia-view table.vs-diaadia-grid .vs-grid-button,
    body.vs-maui-native .vs-modern-diaadia-view table.vs-diaadia-grid .vs-grid-button {
        min-height: 44px;
        padding: 5px 3px;
        font-size: .67rem;
        line-height: 1.1;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody {
        display: grid;
        gap: 8px;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 6px;
        border: 1px solid var(--vsp-border);
        border-radius: 10px;
        background: var(--vsp-surface);
        box-shadow: var(--vsp-shadow-sm);
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td {
        width: auto !important;
        min-width: 0;
        min-height: 32px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        border: 0;
        border-bottom: 1px solid #e5eaf0;
        padding: 2px 5px;
        font-size: .71rem;
        line-height: 1.16;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td::before,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td::before {
        content: attr(data-vs-label);
        color: var(--vsp-muted);
        font-size: .6rem;
        font-weight: 650;
        line-height: 1;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(1),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: .84rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(3),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(3) {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
        font-size: .82rem;
        font-weight: 750;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(2),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(4),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(4) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(6),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(6) {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(5),
    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(7),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(5),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(7) {
        display: none !important;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8) {
        grid-column: 1 !important;
        grid-row: 3 !important;
        min-height: 44px;
        align-items: stretch;
        border-bottom: 0;
        padding: 3px;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8)::before,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8)::before {
        text-align: center;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros .vs-ahorro-estado-badge,
    body.vs-maui-native .vs-modern-diaadia-ahorros .vs-ahorro-estado-badge {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(8) {
        padding-right: 5px;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td[data-vs-action-cell="true"],
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td[data-vs-action-cell="true"] {
        min-height: 44px;
        align-items: stretch;
        border-bottom: 0;
        padding: 3px 3px 0;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(9),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(9) { grid-column: 2 !important; grid-row: 3 !important; }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(10),
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(10) { grid-column: 3 !important; grid-row: 3 !important; }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid .vs-grid-button,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid .vs-grid-button {
        min-height: 44px;
        padding: 5px 4px;
        font-size: .7rem;
        line-height: 1.1;
    }

    html.vs-web-mobile .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(9) .vs-grid-button,
    body.vs-maui-native .vs-modern-diaadia-ahorros table.vs-ahorro-diaadia-grid > tbody > tr > td:nth-child(9) .vs-grid-button {
        border-color: var(--vsp-action-600);
        background: var(--vsp-action-600);
        color: #fff;
    }

    .vs-presentation-modern .vs-mobile-bottom-nav,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-bottom-nav {
        min-height: 64px;
        padding-top: 3px;
        border-top-color: var(--vsp-border);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -2px 10px rgba(7, 50, 70, .08);
    }
    .vs-presentation-modern .vs-mobile-nav-item,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-nav-item { min-height: 54px; gap: 2px; padding: 4px 2px; font-size: .61rem; font-weight: 700; }

    .vs-presentation-modern .vs-principal-modal-window > .vs-winforms-form,
    .vs-modern-standalone-content > .vs-winforms-form { border-radius: 0; }
    .vs-presentation-modern .vs-form-caption,
    .vs-modern-standalone-content .vs-form-caption { min-height: 54px; padding-top: max(7px, env(safe-area-inset-top)); }

    .vs-login-experience-modern .vs-login-form {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        border-width: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    .vs-modern-dashboard-filters,
    .vs-modern-dashboard-filters label,
    .vs-modern-dashboard-filters label:first-child,
    .vs-modern-filter-button {
        grid-column: auto;
    }
}

@media (prefers-color-scheme: dark) {
    :is(.vs-presentation-modern, .vs-modern-standalone, .vs-login-experience-modern) {
        --vsp-canvas: #10171d;
        --vsp-surface: #17222b;
        --vsp-surface-soft: #1d2d38;
        --vsp-border: #3a4d5b;
        --vsp-border-strong: #607583;
        --vsp-text: #f3f7fa;
        --vsp-muted: #b8c5cf;
        --vsp-success: #49d26e;
        --vsp-success-soft: #183f27;
        --vsp-warning: #ffb62e;
        --vsp-warning-soft: #493716;
        --vsp-danger: #ff6872;
        --vsp-danger-soft: #4b2228;
        --vsp-info-soft: #19374b;
        color-scheme: dark;
    }
    .vs-presentation-modern .vs-mobile-bottom-nav,
    html.vs-web-mobile .vs-presentation-modern .vs-mobile-bottom-nav { background: rgba(23, 34, 43, .98); }
    .vs-login-experience-modern { background: linear-gradient(180deg, var(--vsp-brand-900) 0 132px, var(--vsp-canvas) 132px); }
}
