:root{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 12px;border:1px solid #dce4dd;border-radius:12px;background:#fff;color:#223c39;font:600 12px/1.3 system-ui;white-space:nowrap;cursor:pointer;flex-shrink:0}
.theme-toggle[hidden]{display:none}
.theme-toggle:hover{border-color:#b78522}
.theme-toggle:focus-visible{outline:3px solid #f6aa1c;outline-offset:3px}
.theme-toggle-floating{position:fixed;top:14px;right:18px;z-index:30;box-shadow:0 4px 18px #06142618}
.theme-sun{display:none}
.theme-moon,.theme-sun{flex-shrink:0}
.superadmin-header{position:relative;padding-top:48px}
.superadmin-header>.theme-toggle{position:absolute;right:0;top:0}
.topbar .theme-toggle span{display:none}
.topbar .theme-toggle{width:40px;height:40px;min-height:40px;padding:8px;border-radius:50%}
.topbar{gap:16px;padding-inline:24px}
.topbar>div:first-child{flex:0 1 120px;min-width:0}
.topbar .top-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .active-profile-strip{flex:0 1 460px;width:28vw;max-width:460px;min-width:180px;gap:10px;padding:8px 12px;min-height:58px}
.topbar .active-profile-avatar{width:40px;height:40px}
.topbar .active-profile-name{min-width:0;flex:1}
.topbar .active-profile-facts small{max-width:110px;padding-inline:7px}
.topbar .active-profile-facts small:first-child{display:none}
.topbar .top-search{flex:1 1 280px;min-width:200px;max-width:480px}
.topbar .top-right{flex:none;gap:10px;margin-left:auto}
@media(min-width:1051px) and (max-width:1550px){.topbar .active-profile-strip{flex-basis:220px;max-width:220px}.topbar .active-profile-facts{display:none}.topbar .date{display:none}.topbar .service-status{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:1150px){.topbar{height:auto;min-height:83px;flex-wrap:wrap;padding-block:12px}.topbar .top-search{display:flex;order:3;flex-basis:100%;max-width:none;min-width:0}.topbar .active-profile-strip{display:none}.topbar>div:first-child{flex:1}.topbar .top-right{max-width:calc(100% - 100px)}.topbar .date{display:none}}
@media(max-width:600px){.theme-toggle-floating span{display:none}.theme-toggle-floating{top:10px;right:10px;width:42px;padding:8px}}

@media screen{
html[data-theme="dark"]{color-scheme:dark;--bg:#0d1521;--ink:#e7edf5;--muted:#a8b8cb;--line:#344256;--light:#213347;--green:#a9cfff;--surface:#162233;--surface-raised:#1d2d42;--mishi-gold-soft:#3e321c;color:var(--ink);background:var(--bg)}
html[data-theme="dark"] body{background:var(--bg)!important;color:var(--ink)!important}
html[data-theme="dark"] .theme-moon{display:none}
html[data-theme="dark"] .theme-sun{display:block}
html[data-theme="dark"] :is(.system-card-large,.product-card,.search,.sale-cart-heading,.cart-empty,.choice-grid>label,.customer-tools>details,.superadmin-summary article){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .system-card-large strong{color:var(--ink)!important}
html[data-theme="dark"] .system-card-large>span{color:var(--muted)!important}
html[data-theme="dark"] .system-card-large>.task-card-icon{background:#25374b;color:#ffd279!important;border:1px solid #425670}
html[data-theme="dark"] .system-card-large .button span{color:inherit}
html[data-theme="dark"] .task-card .task-card-icon{background:#101b2b99;color:inherit}
html[data-theme="dark"] .task-card::after{background:linear-gradient(90deg,transparent,#ffffff18,transparent)}
html[data-theme="dark"] .tour-popover{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 18px 50px #0006}
html[data-theme="dark"] .tour-progress{color:var(--muted)}
html[data-theme="dark"] .tour-close{background:var(--surface-raised);color:var(--ink)}
html[data-theme="dark"] :is(.tour-guide img,.cash-notice-mascot){background:#f7fafc;border-radius:18px;padding:8px}
html[data-theme="dark"] .day-art img.is-greeting{mix-blend-mode:normal;border-radius:50%}
html[data-theme="dark"] .cash-symbol{background:var(--surface-raised);color:#80d5b2}
html[data-theme="dark"] .visual-sidebar .nav-plan{background:linear-gradient(120deg,#162233,#233048) padding-box,linear-gradient(100deg,#b24cff,#ffd35f,#35c7ff,#ff67d4) border-box!important}
html[data-theme="dark"] :is(.sale-steps [aria-current],.sale-steps .active,.sale-steps .is-active,.sale-steps .current){color:#a7e7cf!important}
html[data-theme="dark"] .task-stock{background:linear-gradient(130deg,#302541,#403354)!important;color:#e0caff!important}
html[data-theme="dark"] .task-buy{background:linear-gradient(130deg,#25334a,#304867)!important;color:#d1e5ff!important}
html[data-theme="dark"] .task-money{background:linear-gradient(130deg,#3b3022,#534129)!important;color:#ffe0a1!important}
html[data-theme="dark"] .task-card small{color:inherit!important;opacity:.85}
html[data-theme="dark"] .choice-grid button{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .choice-grid button[aria-pressed="true"]{background:#263c38!important;border-color:#80d5b2!important;box-shadow:inset 0 0 0 1px #80d5b2!important}
html[data-theme="dark"] .sale-steps [aria-current="step"] b{background:#f6b53f!important;color:#142033!important}
html[data-theme="dark"] :is(.contact-create>summary,.customer-create-card>summary,.supplier-create>summary,.queue-service-button,.queue-service-item,.account-stat,.account-tabs,.queue-window-card,.queue-settings-card,.queue-option-card,.queue-display-card,.operator-empty){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.contact-create>summary strong,.customer-summary span,.customer-numbers span,.supplier-summary span,.account-stat span,.queue-mode>strong,.queue-service-button span){color:var(--muted)!important}
html[data-theme="dark"] .queue-workspace .queue-card .queue-button.primary{background:#f6b53f!important;border-color:#f6b53f!important;color:#142033!important}
html[data-theme="dark"] .queue-stat small{color:#fff!important}
html[data-theme="dark"] .queue-stat.blue{background:linear-gradient(135deg,#204487,#295396)}
html[data-theme="dark"] .queue-stat.green{background:linear-gradient(135deg,#126349,#18765d)}
html[data-theme="dark"] .queue-stat.violet{background:linear-gradient(135deg,#583199,#6a40a8)}
html[data-theme="dark"] .queue-stat.rose{background:linear-gradient(135deg,#91284f,#a73560)}
html[data-theme="dark"] .queue-stat.cyan{background:linear-gradient(135deg,#096379,#12768a)}
html[data-theme="dark"] .queue-availability-row{background:var(--surface-raised)!important;border-color:var(--line)!important}
html[data-theme="dark"] .queue-availability-row b{color:#a7e7cf!important}
html[data-theme="dark"] .sale-back{color:#b8d5ff!important}
html[data-theme="dark"] .method-efectivo{color:#80d5b2!important}
html[data-theme="dark"] .method-tarjeta{color:#a9cfff!important}
html[data-theme="dark"] .method-transferencia{color:#ffd279!important}
html[data-theme="dark"] .nav-toggle{background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.theme-toggle,.sidebar,.topbar,.card,.stat,.business,.auth-form,.auth-family-form,.auth-shell,.system-picker-shell,.system-picker-option,.system-option,.customer-card,.customer-create-card,.customer-search-card,.customer-summary article,.supplier-card,.supplier-create,.supplier-summary article,.form-card,.list-filters,.counter-hero,.counter-search,.pos-product,.pos-cart,.sale-cart,.sale-category-card,.fabric-results-panel,.fabric-product,.fabric-card,.payment-choice,.checkout-options,.mobile-payment-panel,.mobile-payment-popover,.mobile-payment-popover-item,.mixed-payment-panel,.retail-purchase-line,.purchase-summary,.queue-card,.queue-hub-card,.queue-quick-row,.operator-card,.queue-choice,.queue-button,.operator-button,.plan-card,.catalog-product-option,.tour-panel,dialog){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:0 8px 24px #00000015}
html[data-theme="dark"] :is(input,select,textarea){color:var(--ink)!important;background-color:#101b2b!important;border-color:#53647b!important;accent-color:#f6aa1c}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#97a8bf!important;opacity:1}
html[data-theme="dark"] input:-webkit-autofill{-webkit-text-fill-color:var(--ink);box-shadow:0 0 0 1000px #101b2b inset!important}
html[data-theme="dark"] :is(h1,h2,h3,h4,label,legend,th,.brand,.mishi-brand,.system-picker-option strong,.customer-numbers strong,.customer-summary strong,.supplier-summary strong,.pos-product strong,.pos-product b,.line-copy strong,.cart-total strong,.line-total-row,.queue-card strong,.queue-hub-card strong,.operator-card strong){color:var(--ink)!important}
html[data-theme="dark"] :is(small,.muted,.eyebrow,.brand-caption,.nav-copy small,.page-heading p,.card p,.customer-main p,.customer-contact span,.queue-card p,.queue-hub-card p,.queue-quick-row span,.operator-card p,.operator-station span,.loading-screen p,.counter-hero p,.sale-category-card small,.line-copy small){color:var(--muted)!important}
html[data-theme="dark"] a:not(.button):not(.task-card):not(.nav-sell):not(.active-profile-strip):not(.queue-button){color:#b8d5ff!important}
html[data-theme="dark"] :is(.button.secondary,.queue-button,.operator-button,.tour-button,.pagination-links a,.line-remove,.cart-add-line,.mobile-payment-bell){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.button.primary,button.primary,.nav-sell,.queue-button.primary,.operator-button.primary){background:#f6b53f!important;border-color:#f6b53f!important;color:#142033!important;box-shadow:none!important}
html[data-theme="dark"] :is(.button.primary,button.primary,.nav-sell,.queue-button.primary,.operator-button.primary):hover{background:#ffca6a!important}
html[data-theme="dark"] :is(.sidebar nav a,.nav-group>summary){color:var(--ink)!important}
html[data-theme="dark"] :is(.sidebar nav a:hover,.nav-group>summary:hover,.secondary:hover){background:var(--surface-raised)!important}
html[data-theme="dark"] :is(.visual-sidebar .nav-main.active,.nav-group.is-current>summary,.nav-children a.active){background:#3e321c!important;color:#ffcf72!important}
html[data-theme="dark"] :is(.nav-symbol,.avatar,.customer-avatar,.supplier-avatar,.add-badge,.sale-category-art.all,.queue-hub-icon,.receipt-icon){background:var(--surface-raised)!important;color:#b8d5ff!important}
html[data-theme="dark"] :is(.visual-sidebar .nav-main.active .nav-symbol,.nav-group.is-current>summary .nav-symbol){background:#584020!important;color:#ffcf72!important}
html[data-theme="dark"] :is(.welcome-banner,.day-welcome,.help-box,.sidebar-tip,.sale-steps,.purchase-steps,.sale-step-hint,.cash-change,.payment-summary,.mixed-payment-summary,.queue-step,.queue-fieldset,.queue-mode,.queue-panel-head,.queue-print-note,.stock-overview-alert,.customer-create-card form,.checkout-customer,.loading-ready,.sale-cart-footer,.retail-cart-footer,.sale-mobile-bar){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.welcome-banner p,.day-welcome p,.help-box p,.cash-change p,.sidebar-tip p){color:var(--muted)!important}
html[data-theme="dark"] :is(.sale-steps b,.purchase-steps b){background:#344256!important;color:#c9d5e5!important}
html[data-theme="dark"] :is(.sale-steps .active b,.sale-steps .is-active b,.purchase-steps .active b){background:#f6b53f!important;color:#142033!important}
html[data-theme="dark"] :is(.payment-choice:has(input:checked),.queue-choice:has(input:checked),.catalog-product-option:has(input:checked),.sale-category-card.is-active){background:#263c38!important;border-color:#80d5b2!important;color:#d5fff0!important;box-shadow:inset 0 0 0 1px #80d5b2!important}
html[data-theme="dark"] :is(.payment-choice:has(input:checked) strong,.queue-choice:has(input:checked) strong){color:#d5fff0!important}
html[data-theme="dark"] :is(.status,.pill){background:#24364a;color:#d9e8f7;border-color:#425670}
html[data-theme="dark"] :is(.notice.success,.stock-state-ready,.service-notice.active){background:#173c32!important;color:#b7f3d6!important;border-color:#397660!important}
html[data-theme="dark"] :is(.notice.error,.stock-state-empty,.service-notice.expired){background:#42252d!important;color:#ffbdc8!important;border-color:#845061!important}
html[data-theme="dark"] :is(.warning,.stock-state-low,.service-notice.warning){background:#42351e!important;color:#ffdb92!important;border-color:#846b37!important}
html[data-theme="dark"] :is(td,th,.stock-row,.sale-row,.cart-total,.pos-line,.textile-line,.profile,footer,.customer-numbers,.nav-children,.queue-table td,.queue-table th){border-color:var(--line)!important}
html[data-theme="dark"] :is(thead,tr:hover){background:#1c2b3e!important}
html[data-theme="dark"] .payment-choice .method-icon:has(img){background:#f7fafc;border-radius:10px;padding:4px}
html[data-theme="dark"] .auth-family-page{background:linear-gradient(135deg,#0a1321,#10283f)!important}
html[data-theme="dark"] .system-picker-page{background:radial-gradient(circle at 20% 10%,#293121,transparent 40%),var(--bg)!important}
html[data-theme="dark"] :is(.auth-system-card,.auth-system-card.textiles,.auth-system-card.retail,.auth-system-card.appointments){background:var(--surface-raised)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .auth-system-card b{color:var(--ink)!important}
html[data-theme="dark"] .auth-system-card small{color:var(--muted)!important}
html[data-theme="dark"] .system-picker-story h1 em,html[data-theme="dark"] .auth-family-story h1 em{color:#ffcf72!important}
html[data-theme="dark"] ::selection{background:#f6b53f;color:#142033}
html[data-theme="dark"] ::backdrop{background:#020812aa}
html[data-theme="dark"] *{scrollbar-color:#53647b #152233}
}
@media screen{html[data-theme="dark"] .superadmin-shell .check{background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}}
@media print{.theme-toggle{display:none!important}}

@media screen{
html[data-theme="dark"] :is(.plan-founder,.plan-annual,.plan-details,.plan-payment-number,.plan-notes article,.tutorial-hero>div:first-child,.tutorial-path span,.tutorial-intro,.tutorial-note,.tutorial-flow a,.tutorial-lanes article){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.plan-founder strong,.plan-price strong,.custom-quote-body .plan-price strong,.plan-payment-number strong,.plan-details summary){color:var(--ink)!important}
html[data-theme="dark"] .plan-card.is-featured .plan-price strong{background:none;-webkit-text-fill-color:#e7c0ff;color:#e7c0ff!important}
html[data-theme="dark"] :is(.plan-feature-list li,.tutorial-card ol,.tutorial-card li,.plan-benefit){color:var(--muted)!important}
html[data-theme="dark"] .plan-feature-list .is-muted{color:#a6aebd!important}
html[data-theme="dark"] .plan-payment-number span{color:var(--muted)}
html[data-theme="dark"] .plan-feature-list .is-included::before{color:#80d5b2;border-color:#80d5b2}
html[data-theme="dark"] .plan-feature-list .is-muted::before{color:#ffbdc8;border-color:#cc8190}
html[data-theme="dark"] :is(.plan-promo,.plan-saving){background:#42351e!important;color:#ffe0a1!important;border-color:#846b37!important}
html[data-theme="dark"] :is(.plan-annual span,.plan-proof-row span,.plan-assurance span){background:#24364a!important;color:#d9e8f7!important;border-color:#425670!important}
html[data-theme="dark"] .plan-card.is-featured .plan-proof-row span{background:#382946!important;color:#efd5ff!important;border-color:#80629a!important}
html[data-theme="dark"] .plan-assurance span::before{background:#173c32;color:#b7f3d6}
html[data-theme="dark"] :is(.plan-price del,.plan-annual del){color:#afbac9}
html[data-theme="dark"] .plan-card.is-featured::before,html[data-theme="dark"] .plan-card.is-featured::after{display:none}
html[data-theme="dark"] .plan-card.is-featured .button.primary{background:#f6b53f!important;color:#142033!important;border-color:#f6b53f!important;box-shadow:none!important}
html[data-theme="dark"] .plan-selector-shell{background:transparent!important;box-shadow:none}
html[data-theme="dark"] .plan-carousel-button{background:#24364a;color:#fff;border-color:#6e829b}
html[data-theme="dark"] .tutorial-icon{background:#24364a;color:#a7e7cf}
html[data-theme="dark"] .tutorial-mascot{background:#f7fafc;border-radius:24px;padding:8px}
html[data-theme="dark"] .service-notice{background:#24364a;color:#d9e8f7;border-color:#425670}
html[data-theme="dark"] .service-notice span{color:inherit}
html[data-theme="dark"] :is(.visual-sidebar .nav-children a:hover,.visual-sidebar .nav-children a:focus-visible,.visual-sidebar .nav-main:hover,.nav-group>summary:hover){background:var(--surface-raised)!important;color:var(--ink)!important}
}
