:root {
    --bg: #f8f5ef;
    --panel: #ffffff;
    --text: #2f2a22;
    --brand: #2f7d5f;
    --brand-dark: #225f48;
    --line: #ddd4c5;
    --warn: #f5dddb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f7f1e6 0%, #f8f5ef 70%);
    color: var(--text);
}

body.auth-login-page {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
    background: #02050b;
    color: #f3efe7;
    min-height: 100vh;
}

body.auth-login-page::before,
body.auth-login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.auth-login-page::before {
    background:
        url("images/fondologin.jpg?v=20260324a") center center / cover no-repeat;
    opacity: 0.92;
    transform: scale(1.03);
    animation: none;
}

body.auth-login-page::after {
    background:
        linear-gradient(90deg, rgba(2, 2, 2, 0.92) 0%, rgba(4, 4, 4, 0.66) 46%, rgba(2, 2, 2, 0.9) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.82) 100%);
    opacity: 1;
    animation: none;
}

body[data-theme].auth-login-page {
    --bg: #050505;
    --panel: rgba(14, 14, 14, 0.96);
    --text: #f4ede2;
    --brand: #c99556;
    --brand-dark: #ae763c;
    --line: #262626;
    --theme-header-bg: rgba(7, 7, 7, 0.9);
    --theme-header-border: #1b1b1b;
    --theme-link-bg: linear-gradient(180deg, #ddb57d 0%, #bb884d 100%);
    --theme-link-border: #6f4d26;
    --theme-link-color: #17110b;
    --theme-panel-bg: rgba(14, 14, 14, 0.96);
    --theme-input-bg: #0b0b0b;
}

body[data-theme].auth-login-page .header {
    background: rgba(5, 5, 5, 0.82);
    border-bottom-color: rgba(220, 172, 104, 0.18);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1;
}

body[data-theme].auth-login-page .header h1,
body[data-theme].auth-login-page .header-brand {
    color: #f6f0e6;
}

body[data-theme].auth-login-page .header-link {
    border-color: #594327;
    background: linear-gradient(180deg, #d3aa72 0%, #b17d45 100%);
    color: #16110b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

body[data-theme].auth-login-page .header-link:hover {
    border-color: #73532c;
    background: linear-gradient(180deg, #ddb57d 0%, #c28b4d 100%);
}

body[data-theme].auth-login-page .header-actions .header-link {
    display: none;
}

body[data-theme].auth-login-page .container {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(350px, 440px);
    align-content: center;
    align-items: center;
    gap: clamp(32px, 6vw, 92px);
    width: min(1180px, calc(100vw - 36px));
    max-width: none;
    margin: 0 auto;
    padding: 36px 0 48px;
    position: relative;
    z-index: 1;
}

body[data-theme].auth-login-page .container::before {
    display: none;
}

body[data-theme].auth-login-page .container::after {
    display: none;
}

body[data-theme].auth-login-page .alerts {
    grid-column: 1 / -1;
    width: min(100%, 1120px);
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

body[data-theme].auth-login-page .auth-copy {
    grid-column: 1;
    justify-self: start;
    max-width: min(100%, 610px);
    position: relative;
    z-index: 1;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

body[data-theme].auth-login-page .auth-copy > * {
    margin: 0;
}

body[data-theme].auth-login-page .auth-brand-frame {
    width: clamp(150px, 13vw, 190px);
    margin: 0 0 1.25rem;
    padding: 8px;
    border: 1px solid rgba(223, 178, 111, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 242, 220, 0.1), rgba(255, 242, 220, 0.02)),
        rgba(9, 8, 7, 0.56);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-theme].auth-login-page .auth-copy-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.34));
}

body[data-theme].auth-login-page .auth-copy-kicker {
    color: #d8b07b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

body[data-theme].auth-login-page .auth-copy-title {
    color: #fff6ea;
    font-size: clamp(2.5rem, 3.75vw, 4.05rem);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 800;
    max-width: 15ch;
    margin-bottom: 1.1rem;
}

body[data-theme].auth-login-page .auth-copy-lead {
    color: #f5eadc;
    font-size: clamp(1rem, 1.25vw, 1.13rem);
    line-height: 1.65;
    max-width: 38ch;
    margin-bottom: 0.95rem;
}

body[data-theme].auth-login-page .auth-copy-detail {
    color: #d9c8b2;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 40ch;
}

body[data-theme].auth-login-page .auth-panel {
    width: min(100%, 440px);
    grid-column: 2;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding: 36px 34px 32px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(27, 25, 22, 0.96) 0%, rgba(9, 9, 9, 0.98) 100%);
    border-color: rgba(211, 170, 114, 0.28);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

body[data-theme].auth-login-page .auth-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #9f6a32 0%, #e4b874 48%, #9f6a32 100%);
}

body[data-theme].auth-login-page .auth-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: 0;
    color: #fff6ea;
}

body[data-theme].auth-login-page .auth-panel p {
    margin-bottom: 24px;
    color: #c7b8a2;
    max-width: 34ch;
    line-height: 1.5;
}

body[data-theme].auth-login-page .auth-form {
    gap: 16px;
}

body[data-theme].auth-login-page .auth-form label {
    gap: 8px;
    color: #d9cbb8;
    font-size: 0.92rem;
    font-weight: 600;
}

body[data-theme].auth-login-page input {
    background: #f3eadf;
    color: #21160d;
    border: 1px solid rgba(236, 207, 168, 0.48);
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body[data-theme].auth-login-page input::placeholder {
    color: #7d6e5c;
}

body[data-theme].auth-login-page input:focus {
    outline: none;
    background: #fff7ec;
    border-color: #d7a462;
    box-shadow: 0 0 0 4px rgba(201, 149, 86, 0.18);
}

body[data-theme].auth-login-page input:-webkit-autofill,
body[data-theme].auth-login-page input:-webkit-autofill:hover,
body[data-theme].auth-login-page input:-webkit-autofill:focus {
    border-color: rgba(236, 207, 168, 0.56);
    -webkit-text-fill-color: #21160d;
    caret-color: #21160d;
    box-shadow: 0 0 0 1000px #f3eadf inset;
}

body[data-theme].auth-login-page .btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #e0ad6b 0%, #b9793a 100%);
    color: #130d07;
    font-weight: 700;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

body[data-theme].auth-login-page .btn:hover {
    background: linear-gradient(180deg, #edbd7e 0%, #c88745 100%);
}

@media (prefers-reduced-motion: reduce) {
    body.auth-login-page::before,
    body.auth-login-page::after,
    body[data-theme].auth-login-page .container::before,
    body[data-theme].auth-login-page .container::after {
        animation: none;
    }
}

@media (min-width: 981px) and (max-height: 820px) {
    body[data-theme].auth-login-page .container {
        padding: 28px 0 34px;
    }

    body[data-theme].auth-login-page .auth-copy-detail {
        display: none;
    }
}

@media (max-width: 980px) {
    body.auth-login-page::before,
    body.auth-login-page::after {
        position: absolute;
    }

    body[data-theme].auth-login-page .container {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 22px;
        width: min(620px, calc(100vw - 32px));
        padding: 22px 0 42px;
    }

    body[data-theme].auth-login-page .alerts,
    body[data-theme].auth-login-page .auth-copy,
    body[data-theme].auth-login-page .auth-panel {
        grid-column: 1;
    }

    body[data-theme].auth-login-page .auth-panel {
        order: 1;
        justify-self: stretch;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 30px 24px 28px;
    }

    body[data-theme].auth-login-page .auth-copy {
        order: 2;
        justify-self: center;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    body[data-theme].auth-login-page .auth-brand-frame {
        margin-right: auto;
        margin-left: auto;
    }

    body[data-theme].auth-login-page .auth-copy-kicker {
        font-size: 0.74rem;
        line-height: 1.35;
        max-width: 32ch;
        margin-right: auto;
        margin-left: auto;
        overflow-wrap: break-word;
    }

    body[data-theme].auth-login-page .auth-copy-title {
        max-width: 12ch;
        font-size: clamp(1.95rem, 7.4vw, 2.8rem);
    }

    body[data-theme].auth-login-page .auth-copy-lead,
    body[data-theme].auth-login-page .auth-copy-detail {
        max-width: 38ch;
        margin-right: auto;
        margin-left: auto;
    }
}

body[data-theme].auth-login-page .alert {
    background: rgba(21, 21, 21, 0.94);
    color: #f4ede2;
    border-color: #2b2b2b;
}

body[data-theme].auth-login-page .alert-error {
    background: rgba(89, 25, 18, 0.92);
    border-color: rgba(201, 87, 67, 0.38);
}

body[data-theme].auth-login-page .alert-success {
    background: rgba(22, 58, 40, 0.92);
    border-color: rgba(93, 167, 124, 0.3);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
}

.header h1 {
    margin: 0;
    font-size: 1.3rem;
}

.header-brand {
    color: inherit;
    text-decoration: none;
}

.header-brand:hover {
    text-decoration: underline;
}

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

.header-actions form {
    margin: 0;
}

.header-meta {
    font-size: 0.9rem;
    color: #5a5246;
}

.header-context-label {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    color: #5a5246;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
}

.header-link {
    text-decoration: none;
    color: #2d2418;
    font-weight: 600;
    border: 1px solid #d0b896;
    border-radius: 10px;
    padding: 7px 12px;
    background: linear-gradient(180deg, #f8ebd6 0%, #efd9b8 100%);
    box-shadow: 0 1px 0 rgba(87, 61, 27, 0.2);
    line-height: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.header-link:hover {
    transform: translateY(-1px);
    border-color: #b78f5e;
    background: linear-gradient(180deg, #f3e1c4 0%, #e7cda4 100%);
    box-shadow: 0 6px 14px rgba(75, 53, 25, 0.16);
}

.header-link--lobby {
    background: linear-gradient(180deg, #e8c998 0%, #cca06a 100%);
    color: #fff;
    border-color: #976a36;
    box-shadow: 0 2px 8px rgba(120, 82, 37, 0.3);
}

.header-link--lobby:hover {
    color: #fff;
    border-color: #7f5627;
    background: linear-gradient(180deg, #dfbb86 0%, #b98955 100%);
}

.license-pill {
    background: #e8f5eb;
    color: #246348;
    border: 1px solid #9ac7a9;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.license-pill--link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.license-pill--link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(36, 99, 72, 0.14);
    filter: brightness(0.98);
}

.invoice-status-pill {
    text-decoration: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.invoice-status-pill--ok {
    background: #e8f5eb;
    color: #246348;
    border-color: #9ac7a9;
}

.invoice-status-pill--pending {
    background: #fff2da;
    color: #855300;
    border-color: #e4c58a;
}

.invoice-status-pill--error {
    background: #fde7e5;
    color: #a33a2f;
    border-color: #e3aaa2;
}

.invoice-status-pill:hover {
    text-decoration: none;
    filter: brightness(0.97);
}

.facturas-report-wrap {
    overflow-x: auto;
}

.facturas-report-table {
    min-width: 960px;
}

.factura-row--ok {
    background: #eaf7ef;
}

.factura-row--pending {
    background: #f8f5ef;
}

.btn-small {
    padding: 7px 10px;
    font-size: 0.85rem;
}

.header-actions .btn-small,
.topbar-primary-rail .btn-small,
.topbar-rail .btn-small {
    border: 1px solid #7d2a2a;
    background: linear-gradient(180deg, #c94848 0%, #9f2e2e 100%);
    color: #fff9f6;
    box-shadow: 0 2px 8px rgba(122, 31, 31, 0.3);
}

.header-actions .btn-small:hover,
.topbar-primary-rail .btn-small:hover,
.topbar-rail .btn-small:hover {
    background: linear-gradient(180deg, #b73d3d 0%, #8b2424 100%);
}

.topbar-shell {
    max-width: 1420px;
    margin: 16px auto 0;
    padding: 0 16px;
}

.topbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 241, 230, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.topbar-row--secondary {
    align-items: flex-start;
}

.topbar-brand {
    color: inherit;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.topbar-brand:hover {
    text-decoration: underline;
}

.topbar-primary-rail,
.topbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.topbar-primary-rail {
    justify-content: flex-end;
    flex: 1 1 auto;
}

.topbar-row--secondary .topbar-nav {
    justify-content: flex-start;
    flex: 1 1 420px;
}

.topbar-rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    row-gap: 8px;
    flex: 1 1 260px;
    min-width: 0;
}

.topbar-meta {
    font-size: 0.9rem;
    color: #5a5246;
    white-space: nowrap;
}

.topbar-meta strong {
    color: #2f2619;
}

.topbar-context-label {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    color: #5a5246;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 7px 10px;
    white-space: nowrap;
}

.topbar-context-label strong {
    color: #2f2619;
}

.topbar-rail .header-context-label {
    margin: 0;
}

.topbar-logout-form {
    margin: 0;
}

.topbar-link {
    text-decoration: none;
    color: #2d2418;
    font-weight: 700;
    border: 1px solid #d4bc99;
    border-radius: 12px;
    padding: 9px 16px;
    background: linear-gradient(180deg, #fffaf2 0%, #f1e0c5 100%);
    box-shadow: 0 2px 8px rgba(102, 77, 41, 0.12);
    line-height: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.topbar-link--button {
    font: inherit;
    cursor: pointer;
}

.topbar-options {
    position: relative;
}

.topbar-options > summary {
    list-style: none;
}

.topbar-options > summary::-webkit-details-marker {
    display: none;
}

.topbar-options[open] > .topbar-link--button {
    color: #fffaf4;
    border-color: #976a36;
    background: linear-gradient(180deg, #d6ac72 0%, #b27c42 100%);
    box-shadow: 0 8px 18px rgba(120, 82, 37, 0.24);
}

.topbar-options-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 50;
    width: min(1180px, calc(100vw - 52px));
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #d4bc99;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(247, 241, 230, 0.97) 100%);
    box-shadow: 0 18px 36px rgba(84, 61, 28, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top right;
    transition:
        opacity 0.18s ease,
        transform 0.22s ease,
        visibility 0s linear 0.22s;
}

.topbar-options[open] > .topbar-options-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.18s ease,
        transform 0.22s ease,
        visibility 0s linear 0s;
}

.topbar-options-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.topbar-options-head strong {
    color: #2d2418;
    font-size: 1rem;
}

.topbar-options-head small {
    color: #7a6242;
    font-size: 0.88rem;
}

.topbar-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.topbar-options-grid .module-btn {
    background: linear-gradient(180deg, #ecd4af 0%, #d9b682 100%);
    border-color: #c3955a;
    color: #2d2418;
    box-shadow: 0 2px 0 rgba(95, 66, 29, 0.18);
}

.topbar-options-grid .module-btn:hover {
    background: linear-gradient(180deg, #e7c796 0%, #d4aa71 100%);
    border-color: #9d6d35;
    box-shadow: 0 8px 18px rgba(102, 77, 41, 0.18);
}

.topbar-options-grid .module-btn--active {
    background: linear-gradient(180deg, #b8894f 0%, #9e713c 100%);
    border-color: #7d572b;
    color: #fff9ef;
}

.topbar-link:hover {
    transform: translateY(-1px);
    color: #2d2418;
    border-color: #b9905d;
    background: linear-gradient(180deg, #fff6ea 0%, #e9d1ae 100%);
    box-shadow: 0 6px 16px rgba(102, 77, 41, 0.16);
}

.topbar-link--active {
    color: #fffaf4;
    border-color: #976a36;
    background: linear-gradient(180deg, #d6ac72 0%, #b27c42 100%);
    box-shadow: 0 8px 18px rgba(120, 82, 37, 0.24);
}

.topbar-link--active:hover {
    color: #fffaf4;
    border-color: #825725;
    background: linear-gradient(180deg, #cd9d62 0%, #9c692f 100%);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-menu {
    border-color: rgba(60, 108, 216, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(244, 248, 255, 0.975) 100%);
    box-shadow: 0 24px 46px rgba(43, 80, 160, 0.16);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-head strong {
    color: #17284a;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-head small {
    color: #5d6f8f;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn {
    color: #17284a;
    border-color: rgba(60, 108, 216, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: none;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn:hover {
    color: #17284a;
    border-color: rgba(60, 108, 216, 0.34);
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn--active {
    color: #ffffff;
    border-color: #2f6de1;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-menu {
    border-color: rgba(60, 108, 216, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(244, 248, 255, 0.975) 100%);
    box-shadow: 0 24px 46px rgba(43, 80, 160, 0.16);
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-head strong {
    color: #17284a;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-head small {
    color: #5d6f8f;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn {
    background: linear-gradient(180deg, #ffffff 0%, #e9f1ff 100%);
    border-color: rgba(60, 108, 216, 0.2);
    color: #17284a;
    box-shadow: 0 8px 18px rgba(43, 80, 160, 0.08);
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfeaff 100%);
    border-color: rgba(60, 108, 216, 0.34);
    box-shadow: 0 14px 28px rgba(43, 80, 160, 0.12);
}

body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn--active {
    background: linear-gradient(135deg, #2f6de1 0%, #2457b8 100%);
    border-color: rgba(36, 87, 184, 0.88);
    color: #ffffff;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-caja-rapida:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-domicilios:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-turnos-caja:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-ventas:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-inventario:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-caja-consolidado:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-crear-articulos:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-actualizar-articulos:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-compras:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-configurar-mesas:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-gastos:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-personas:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-actualizacion-cliente-proveedor:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-venta-articulos-consolidado:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-flujo-ventas:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-compras:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-cuentas-por-pagar:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-reporte-cuentas-por-cobrar:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-shell {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 8px;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    box-shadow: none;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-brand {
    color: #17284a;
    font-size: 1.05rem;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-nav {
    gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-rail {
    gap: 8px;
    row-gap: 8px;
    flex-wrap: nowrap;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-meta {
    font-size: 0.8rem;
    color: #5d6f8f;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-meta strong {
    color: #17284a;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-link,
body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-link {
    color: #17284a;
    background: #f4f8ff;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-link:hover {
    transform: none;
    color: #17284a;
    background: #e8f0ff;
    box-shadow: none;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-link--active,
body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-options[open] > .topbar-link--button {
    color: #ffffff;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-link--active:hover {
    color: #ffffff;
    background: #2a63cd;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-rail .btn-small {
    background: #23846a;
    color: #ffffff;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .topbar-rail .btn-small:hover {
    background: #1f755e;
}

body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .license-pill,
body[data-theme="premiun"].page-resoluciones:not(.is-mobile-ui) .invoice-status-pill {
    padding: 5px 8px;
    font-size: 0.74rem;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-primary-rail {
    gap: 8px;
    row-gap: 8px;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-primary-rail .btn-small {
    padding: 7px 11px;
    font-size: 0.78rem;
    border: 0;
    border-radius: 10px;
    background: #23846a;
    color: #ffffff;
    box-shadow: none;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-primary-rail .btn-small:hover {
    background: #1f755e;
}

.module-btn {
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    text-align: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.module-btn:hover {
    transform: translateY(-1px);
}

.module-btn--active {
    font-weight: 700;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options > summary.topbar-link--button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: #ffffff;
    border-color: #2f6de1;
    background: #2f6de1;
    box-shadow: none;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options > summary.topbar-link--button:hover {
    color: #ffffff;
    border-color: #285fca;
    background: #285fca;
    box-shadow: none;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options > summary.topbar-link--button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.72;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options[open] > summary.topbar-link--button::after {
    transform: rotate(225deg) translateY(-1px);
    opacity: 0.95;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-menu,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-menu {
    top: calc(100% + 10px);
    width: min(520px, calc(100vw - 44px));
    max-height: min(72vh, 520px);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(84, 116, 170, 0.2);
    background:
        linear-gradient(180deg, rgba(235, 242, 255, 0.99) 0%, rgba(222, 232, 249, 0.99) 100%);
    box-shadow: 0 18px 44px rgba(18, 39, 82, 0.18);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-menu::before,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: rgba(235, 242, 255, 0.99);
    border-left: 1px solid rgba(84, 116, 170, 0.2);
    border-top: 1px solid rgba(84, 116, 170, 0.2);
    transform: rotate(45deg);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-head,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-head {
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(84, 116, 170, 0.18);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-head strong,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-head strong {
    color: #17284a;
    font-size: 0.94rem;
    letter-spacing: 0;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-head small,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-head small {
    color: #64748f;
    font-size: 0.78rem;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(115, 151, 215, 0.34);
    background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    color: #17284a;
    box-shadow: 0 1px 0 rgba(47, 109, 225, 0.08);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.15;
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn:hover,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 109, 225, 0.42);
    background: linear-gradient(180deg, #f4f8ff 0%, #dce9ff 100%);
    box-shadow: 0 8px 18px rgba(47, 109, 225, 0.12);
}

body[data-theme="premiun"]:not(.is-mobile-ui) .topbar-options-grid .module-btn--active,
body[data-theme="premiun"].page-lobby:not(.is-mobile-ui) .topbar-options-grid .module-btn--active {
    border-color: rgba(47, 109, 225, 0.28);
    background: linear-gradient(180deg, #edf4ff 0%, #dbe9ff 100%);
    color: #12366d;
    box-shadow: inset 0 0 0 1px rgba(47, 109, 225, 0.08);
}

@media (max-width: 1024px) {
    .header {
        padding: 12px 16px;
        align-items: flex-start;
        gap: 10px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 8px;
    }

    .header-meta {
        flex-basis: 100%;
        text-align: right;
    }

    .header-context-label {
        font-size: 0.74rem;
        padding: 3px 7px;
    }

    .container {
        margin: 14px auto;
        padding: 0 12px 18px;
    }

    .panel {
        padding: 12px;
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 720px) {
    .header {
        padding: 14px 16px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.container {
    max-width: 1420px;
    margin: 20px auto;
    padding: 0 16px 24px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.lobby-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.lobby-layout--with-quick {
    grid-template-columns: minmax(220px, 260px) minmax(640px, 1fr) minmax(220px, 280px);
}

/* Caja rapida en movil: header compacto en una sola fila */
body.is-mobile-ui.page-caja-rapida .header {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
    align-items: center;
}

body.is-mobile-ui.page-caja-rapida .header h1,
body.is-mobile-ui.page-caja-rapida .header-brand {
    color: #111827;
}

body.is-mobile-ui.page-caja-rapida .header-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

body.is-mobile-ui.page-caja-rapida .header-meta,
body.is-mobile-ui.page-caja-rapida .license-pill,
body.is-mobile-ui.page-caja-rapida .invoice-status-pill {
    display: none !important;
}

body.is-mobile-ui.page-caja-rapida .header-link:not(.header-link--lobby) {
    display: none !important;
}

body.is-mobile-ui.page-caja-rapida .header-link--lobby {
    order: 1;
    padding: 4px 8px;
    font-size: 0.78rem;
    border-radius: 999px;
    color: #ffffff;
    border-color: transparent;
    background: #3364b1;
    box-shadow: none;
}

body.is-mobile-ui.page-caja-rapida .header-link--lobby:hover {
    color: #ffffff;
    border-color: transparent;
    background: #2d5aa0;
    box-shadow: none;
}

body.is-mobile-ui.page-caja-rapida .header-context-label {
    order: 2;
    padding: 4px 8px;
    font-size: 0.78rem;
    color: #1f4f97;
    border-color: #b7cff8;
    background: #eaf2ff;
}

body.is-mobile-ui.page-caja-rapida .header-logout-form {
    order: 3;
}

body.is-mobile-ui.page-caja-rapida .header-actions .btn-small {
    padding: 4px 8px;
    font-size: 0.78rem;
    border-radius: 999px;
    line-height: 1;
    color: #ffffff;
    border-color: transparent;
    background: #2d7b5d;
    box-shadow: none;
}

body.is-mobile-ui.page-caja-rapida .header-actions .btn-small:hover {
    background: #246348;
    box-shadow: none;
}

.lobby-layout--quick-only {
    grid-template-columns: minmax(640px, 1fr) minmax(220px, 280px);
}

.lobby-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.lobby-main {
    margin-bottom: 0;
    min-width: 0;
}

.lobby-side {
    position: sticky;
    top: 16px;
}

.lobby-right-stack {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.lobby-quick-card {
    text-align: center;
    padding: 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.lobby-quick-card:hover {
    transform: translateY(-1px);
}

.lobby-quick-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.lobby-quick-card p {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.lobby-side h3 {
    margin-top: 0;
}

.module-stack {
    display: grid;
    gap: 10px;
}

@media (max-width: 1180px) {
    .topbar {
        gap: 10px;
        padding: 10px 12px;
    }

    .topbar-row {
        justify-content: center;
    }

    .topbar-brand {
        flex: 0 0 auto;
    }

    .topbar-primary-rail,
    .topbar-nav {
        flex: 0 1 auto;
        justify-content: center;
        flex-wrap: wrap !important;
        gap: 8px;
    }

    .topbar-primary-rail,
    .topbar-rail {
        flex: 0 1 auto;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px;
        row-gap: 8px;
    }

    .topbar-meta {
        flex: 0 0 auto;
        text-align: center;
        white-space: nowrap;
    }

    .topbar-link,
    .topbar-primary-rail .btn-small,
    .topbar-rail .btn-small,
    .license-pill,
    .header-context-label {
        white-space: nowrap;
    }

    .topbar-rail #invoiceStatusPill {
        flex: 0 1 320px;
        max-width: 100%;
        text-align: center;
    }

    .topbar-options-menu {
        right: -16px;
        width: calc(100vw - 32px);
    }
}

@media (max-width: 860px) {
    .topbar-brand {
        font-size: 1.08rem;
    }

    .topbar-nav,
    .topbar-primary-rail,
    .topbar-rail {
        gap: 6px;
    }

    .topbar-link,
    .topbar-primary-rail .btn-small,
    .topbar-rail .btn-small,
    .license-pill,
    .header-context-label,
    .invoice-status-pill {
        font-size: 0.74rem;
        padding: 6px 9px;
    }

    .topbar-rail #invoiceStatusPill {
        flex-basis: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-options-menu,
    .topbar-options[open] > .topbar-options-menu {
        transition: none;
        transform: none;
    }
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 0;
}

.admin-scope-switch {
    align-items: center;
}

.admin-scope-link.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

@media (max-width: 1320px) {
    .lobby-layout--with-quick {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }

    .lobby-layout--with-quick .lobby-right-stack {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .lobby-layout--with-quick .lobby-right-stack .mesa-users-panel {
        grid-column: 1 / -1;
    }

    .lobby-layout--quick-only {
        grid-template-columns: minmax(0, 1fr);
    }

    .lobby-layout--quick-only .lobby-right-stack {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .lobby-layout--quick-only .lobby-right-stack .mesa-users-panel {
        grid-column: 1 / -1;
    }

}

@media (max-width: 1320px) {
    body:not(.is-mobile-ui) .lobby-layout--with-quick {
        grid-template-columns: minmax(0, 1fr);
    }

    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-main {
        order: 1;
    }

    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-right-stack {
        order: 2;
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-right-stack .mesa-users-panel {
        grid-column: 1 / -1;
    }

    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-side {
        order: 3;
        position: static;
    }
}

@media (max-width: 980px) {
    .lobby-layout {
        grid-template-columns: 1fr;
    }

    .lobby-side {
        position: static;
    }

    .lobby-right-stack {
        position: static;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body:not(.is-mobile-ui) .lobby-layout--quick-only > .lobby-main {
        order: 1;
    }

    body:not(.is-mobile-ui) .lobby-layout--quick-only > .lobby-right-stack,
    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-right-stack {
        order: 2;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    body:not(.is-mobile-ui) .lobby-layout--quick-only > .lobby-right-stack .mesa-users-panel,
    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-right-stack .mesa-users-panel {
        grid-column: 1 / -1;
    }

    body:not(.is-mobile-ui) .lobby-layout--with-quick > .lobby-side {
        order: 3;
        position: static;
    }
}

.btn {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn:disabled {
    background: #aba8a1;
    cursor: not-allowed;
}

.btn-sec {
    background: #a75043;
}

.btn-sec:hover {
    background: #843a30;
}

.special-price-editable {
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dashed rgba(55, 90, 146, 0.55);
    font-weight: 700;
    color: #2f5ead;
}

.special-price-editable:hover {
    color: #234888;
    border-bottom-color: rgba(35, 72, 136, 0.8);
}

.special-price-editable.is-special {
    color: #8a2f23;
    border-bottom-color: rgba(138, 47, 35, 0.65);
}

.special-price-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.special-price-inline-input {
    width: 92px;
    border: 1px solid #8fa0be;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.82rem;
    line-height: 1.1;
}

.special-price-inline-input.is-invalid {
    border-color: #a75043;
    background: #fde9e7;
}

.special-price-inline-save,
.special-price-inline-cancel {
    min-width: 22px;
    height: 22px;
    border: 1px solid #b5bcc8;
    border-radius: 6px;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
}

.special-price-inline-save {
    background: #e6f3ea;
    border-color: #89b89a;
    color: #2f6d45;
}

.special-price-inline-cancel {
    background: #f6e7e6;
    border-color: #c49d98;
    color: #8a2f23;
}

.item-comment-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.item-comment-input {
    width: 210px;
    max-width: 100%;
    border: 1px solid #8fa0be;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.item-comment-save {
    padding: 6px 10px;
    font-size: 0.78rem;
    line-height: 1.1;
}

.btn-close-sale {
    margin-top: 12px;
    background: #2c63b9;
}

.btn-close-sale:hover {
    background: #24529a;
}

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

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

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

input {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
}

select {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
    background: #fff;
}

textarea {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
    font-family: inherit;
    resize: vertical;
}

.search-wrap {
    margin: 12px 0;
}

.search-input {
    width: 100%;
    max-width: 420px;
}

.search-empty {
    margin-top: 8px;
    color: #665f53;
}

.catalogo-autocomplete {
    position: relative;
}

.catalogo-results {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(35, 34, 30, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.catalogo-option {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ede7dc;
    background: #fff;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
}

.catalogo-option:last-child {
    border-bottom: none;
}

.catalogo-option:hover,
.catalogo-option:focus-visible {
    background: #f6f1e8;
    outline: 2px solid rgba(47, 111, 237, 0.28);
    outline-offset: -2px;
}

.catalogo-option strong {
    display: block;
    font-size: 0.93rem;
    color: #2f2a22;
}

.catalogo-option small {
    color: #665f53;
}

.is-hidden {
    display: none !important;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    border-bottom: 1px solid var(--line);
    padding: 8px;
    text-align: left;
}

.alerts {
    margin-bottom: 16px;
}

.alert {
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    background: #f1efe9;
}

.alert-error {
    background: var(--warn);
}

.alert-success {
    background: #dff1e8;
}

.alert-info {
    background: #e6eef8;
}

.servites-support-widget {
    display: none;
}

body.is-desktop-ui .servites-support-widget {
    display: block;
}

.servites-support-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1052;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(34, 95, 72, 0.32);
    border-radius: 999px;
    background: linear-gradient(180deg, #2f7d5f 0%, #225f48 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 46, 36, 0.24);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.servites-support-button:hover {
    background: linear-gradient(180deg, #358a69 0%, #276a50 100%);
    transform: translateY(-1px);
}

.servites-support-widget.has-unread .servites-support-button {
    border-color: rgba(139, 38, 53, 0.38);
    background: linear-gradient(180deg, #b23b4a 0%, #8f2f3c 100%);
    box-shadow: 0 14px 32px rgba(139, 38, 53, 0.28);
}

.servites-support-widget.has-unread .servites-support-button::after {
    content: attr(data-unread-count);
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #f8d24d;
    color: #432713;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.servites-support-widget.has-unread .servites-support-button-icon {
    background: rgba(255, 255, 255, 0.92);
    color: #8f2f3c;
}

.servites-support-button-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
    line-height: 1;
}

.servites-support-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.32);
}

.servites-support-backdrop[hidden],
.servites-support-dialog[hidden] {
    display: none;
}

.servites-support-dialog {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 1051;
    width: min(460px, calc(100vw - 48px));
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.24);
}

.servites-support-form {
    display: grid;
    gap: 10px;
    padding: 10px 12px 12px;
}

.servites-support-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
}

.servites-support-dialog-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
}

.servites-support-close {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f5ef;
    color: #5f5649;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.servites-support-close:hover {
    background: #eee7db;
}

.servites-support-thread {
    display: grid;
    gap: 8px;
    max-height: 300px;
    min-height: 130px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f5ef;
}

.servites-support-remote-entry {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.servites-support-remote-entry strong {
    color: #071d41;
}

.servites-support-remote-entry span {
    color: #5a6b82;
    font-size: 0.9rem;
}

.servites-support-empty,
.servites-support-status {
    margin: 0;
    color: #6a6258;
    font-size: 0.9rem;
}

.servites-support-status[data-tone="error"] {
    color: #8a2f23;
    font-weight: 700;
}

.servites-support-message {
    display: grid;
    gap: 3px;
    width: fit-content;
    max-width: 84%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: #ffffff;
}

.servites-support-message--out {
    justify-self: end;
    background: #dff1e8;
    border-color: rgba(47, 125, 95, 0.25);
}

.servites-support-message--in {
    justify-self: start;
    background: #ffffff;
}

.servites-support-message-body {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.servites-support-message-body strong {
    font-weight: 800;
}

.servites-support-message-meta {
    color: #71685c;
    font-size: 0.74rem;
    font-weight: 700;
}

.servites-support-field {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 800;
}

.servites-support-field textarea {
    width: 100%;
    min-height: 96px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    line-height: 1.35;
    resize: vertical;
}

.servites-support-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 125, 95, 0.16);
}

@media (max-width: 980px) {
    .servites-support-widget {
        display: none !important;
    }
}

.auth-panel {
    max-width: 520px;
    margin: 30px auto;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.auth-form label {
    display: grid;
    gap: 6px;
}

.checkbox-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
}

.theme-picker {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px 12px;
}

.theme-picker legend {
    font-weight: 700;
    padding: 0 6px;
}

.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.theme-card {
    cursor: pointer;
}

.theme-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-card-content {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.theme-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.theme-card-palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.theme-card-swatch {
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.theme-card input[type="radio"]:checked + .theme-card-content {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(47, 125, 95, 0.2);
    transform: translateY(-1px);
}

.theme-card[data-theme-option="dark"] .sw-bg { background: #0f131a; }
.theme-card[data-theme-option="dark"] .sw-panel { background: #171d26; }
.theme-card[data-theme-option="dark"] .sw-brand { background: #9b7af0; }
.theme-card[data-theme-option="dark"] .sw-line { background: #2d3543; }

.theme-card[data-theme-option="ligth"] .sw-bg { background: #f3f7fc; }
.theme-card[data-theme-option="ligth"] .sw-panel { background: #ffffff; }
.theme-card[data-theme-option="ligth"] .sw-brand { background: #2563eb; }
.theme-card[data-theme-option="ligth"] .sw-line { background: #d4deec; }

.theme-card[data-theme-option="full_color"] .sw-bg { background: #e7f0ff; }
.theme-card[data-theme-option="full_color"] .sw-panel { background: #fffaf5; }
.theme-card[data-theme-option="full_color"] .sw-brand { background: #e85d04; }
.theme-card[data-theme-option="full_color"] .sw-line { background: #f1c79e; }

.theme-card[data-theme-option="premiun"] .sw-bg { background: #f8f5ef; }
.theme-card[data-theme-option="premiun"] .sw-panel { background: #ffffff; }
.theme-card[data-theme-option="premiun"] .sw-brand { background: #2f7d5f; }
.theme-card[data-theme-option="premiun"] .sw-line { background: #ddd4c5; }

.operator-users-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.operator-user-form {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fbf8f1;
}

.operator-user-functions {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.operator-user-active {
    align-self: center;
}

.operator-user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel--licencias .persona-layout {
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 1fr);
}

.licencias-form h3 {
    margin: 0 0 2px;
}

.licencias-side {
    max-height: 78vh;
}

.panel--licencias .persona-side .tabla {
    font-size: 0.89rem;
}

@media (max-width: 980px) {
    .panel--licencias .persona-layout {
        grid-template-columns: 1fr;
    }
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f3e5d2;
    border: 1px solid #d7b68b;
}

.qty-stepper form {
    margin: 0;
}

.qty-stepper .btn {
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid #8a5727;
    background: linear-gradient(180deg, #b97943 0%, #8f5a2d 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 2px 4px rgba(76, 45, 18, 0.18);
}

.qty-stepper .btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #c4854c 0%, #996133 100%);
    transform: translateY(-1px);
}

.qty-stepper .btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(76, 45, 18, 0.2) inset;
}

.qty-stepper .btn:disabled {
    border-color: #bfa181;
    background: linear-gradient(180deg, #d8c2ab 0%, #c9ae93 100%);
    color: #f7f2eb;
}

.qty-stepper > span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    color: #4b3418;
}

.qty-stepper > span[data-quantity-editable] {
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 4px;
}

.qty-stepper > span[data-quantity-editable]:hover {
    background: rgba(255, 255, 255, 0.42);
}

.qty-stepper > span[data-quantity-editable].is-editing {
    min-width: 42px;
    padding: 0;
    background: transparent;
}

.quantity-inline-input {
    width: 54px;
    height: 28px;
    padding: 2px 6px;
    border: 1px solid #8a5727;
    border-radius: 8px;
    background: #fffdf8;
    color: #2c1c0d;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.quantity-inline-input.is-invalid,
.qty-stepper > span[data-quantity-editable].is-invalid .quantity-inline-input {
    border-color: #c92828;
    background: #fff1f1;
}

.articulo-row-state--pending > td {
    background: #e8f5eb;
}

.articulo-row-state--confirmed > td {
    background: #f5dddb;
}

.planilla-row--selected > td {
    background: linear-gradient(180deg, #eef5ff 0%, #e6f0ff 100%);
    box-shadow: inset 0 0 0 1px #7fa8e6;
    border-top-color: #7fa8e6;
    border-bottom-color: #7fa8e6;
}

.planilla-row--selected > td:first-child {
    border-left: 1px solid #7fa8e6;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.planilla-row--selected > td:last-child {
    border-right: 1px solid #7fa8e6;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
