@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{font-family:Inter,system-ui,sans-serif;color:#172033;background:#f6f8fb;font-synthesis:none;--bg:#f6f8fb;--surface:#fff;--surface-2:#f0f4fa;--text:#172033;--muted:#667085;--border:#dfe5ee;--primary:#155eef;--primary-soft:#eaf0ff;--shadow:0 12px 32px #1f29370f;color-scheme:light}:root[data-theme=dark]{--bg:#0c111d;--surface:#151b28;--surface-2:#202838;--text:#f2f4f7;--muted:#98a2b3;--border:#30394a;--primary:#6b9aff;--primary-soft:#1c2f59;--shadow:0 12px 32px #0005;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button{color:inherit}.app{min-height:100dvh;display:grid;grid-template-columns:230px 1fr}aside{position:sticky;top:0;height:100dvh;padding:28px 18px 20px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;gap:32px}.brand{display:flex;align-items:center;gap:11px;font-size:17px}.brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--primary);color:#fff}.brand svg{width:20px}aside nav{flex:1}aside nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;text-decoration:none;color:var(--muted);font-weight:600}.active{background:var(--primary-soft);color:var(--primary)!important}.segmented{display:grid;gap:3px}.segmented button{min-height:40px;border:0;border-radius:9px;background:transparent;display:flex;gap:9px;align-items:center;padding:0 12px;color:var(--muted);cursor:pointer}.segmented button.active{background:var(--surface-2);color:var(--text)}main{width:min(1500px,100%);padding:38px clamp(22px,4vw,64px) 64px}.banner{padding:14px 16px;border-radius:12px;margin-bottom:22px;display:flex;align-items:center;gap:10px;font-size:14px}.banner svg{flex:none}.danger{background:#fee4e2;color:#b42318}.warning{background:#fef0c7;color:#93370d}.page-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.page-title h1{font-size:clamp(28px,4vw,40px);margin:6px 0 7px;letter-spacing:-.04em}.page-title p{margin:0;color:var(--muted)}.eyebrow{color:var(--primary);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.12em}.icon-button,.sheet-actions button{width:44px;height:44px;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:grid;place-items:center;cursor:pointer}.toolbar{display:flex;gap:12px;margin-bottom:20px}.search{height:48px;flex:1;max-width:640px;background:var(--surface);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 14px}.search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.search svg{width:19px;color:var(--muted)}.search input{width:100%;border:0;outline:0;background:transparent;color:var(--text)}.filter-button,.empty button,.pagination button{min-height:46px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600}.filter-button:disabled{opacity:.55}.orders-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.order-card{width:100%;min-height:106px;padding:18px;text-align:left;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:14px;cursor:pointer;transition:transform .15s,border-color .15s}.order-card:hover{transform:translateY(-1px);border-color:var(--primary)}.order-card>svg{color:var(--muted);flex:none}.card-fields{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card-fields div,.detail-grid div,.items article div{min-width:0;display:flex;flex-direction:column;gap:4px}.card-fields span,.detail-grid span,.items span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}.card-fields strong,.detail-grid strong,.items strong{overflow:hidden;text-overflow:ellipsis;font-size:14px}.loading,.empty{min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted);text-align:center}.loading span{width:30px;height:30px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}.empty h2{color:var(--text);margin:4px 0 0}.empty p{margin:0}.offline-mark{font-size:35px;width:56px;height:56px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:22px;color:var(--muted);font-size:14px}.pagination button{cursor:pointer}.pagination button:disabled{opacity:.4}.sheet-backdrop{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;background:#10182899;display:flex;justify-content:flex-end}.sheet{width:min(720px,100%);height:100%;overflow:hidden;background:var(--surface);box-shadow:-20px 0 45px #0003}.sheet>header{height:88px;padding:18px 24px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.sheet header small{color:var(--muted)}.sheet header h2{margin:3px 0 0}.sheet-actions{display:flex;gap:8px}.sheet-content{height:calc(100% - 88px);overflow:auto;padding:24px;padding-bottom:calc(30px + env(safe-area-inset-bottom))}.sheet-content section{margin-top:30px}.sheet-content h3{font-size:15px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px;background:var(--surface-2);border-radius:14px}.items{display:grid;gap:10px}.items article{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border:1px solid var(--border);border-radius:12px;padding:15px}.muted{color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.app{grid-template-columns:1fr}aside{position:sticky;z-index:5;height:70px;padding:10px 18px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--border)}.brand strong{display:none}aside nav{flex:1}aside nav a{width:max-content}aside .segmented{display:flex}.segmented span{display:none}.segmented button{width:40px;padding:0;justify-content:center}.orders-grid{grid-template-columns:1fr}.card-fields{grid-template-columns:repeat(3,1fr)}main{padding-top:26px}}@media(max-width:560px){aside{padding-left:8px;padding-right:8px;gap:8px}.brand>span{width:38px}.brand{gap:0}aside nav{display:flex}aside nav a{width:44px;padding:0;justify-content:center;font-size:0}aside nav a svg{width:20px}aside .segmented{gap:0}.segmented button{width:36px}.page-title p{font-size:14px}.toolbar{align-items:stretch}.filter-button{width:48px;padding:0;font-size:0}.orders-grid{gap:10px}.order-card{padding:15px}.card-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.card-fields div:nth-child(n+5){display:none}.pagination{justify-content:space-between}.pagination span{font-size:12px}.pagination button{font-size:0;width:46px;padding:0}.pagination button svg{margin:0}.sheet{border-radius:18px 18px 0 0;height:94%;margin-top:auto}.sheet>header{height:78px;padding:14px 18px}.sheet-content{height:calc(100% - 78px);padding:18px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.items article{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{aside,.toolbar,.page-title,.banner,.sheet-backdrop:before,.sheet-actions{display:none!important}.sheet-backdrop{position:static;background:none}.sheet{width:100%;box-shadow:none}.sheet-content{overflow:visible}.app{display:block}main{padding:0}.orders-grid,.pagination{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.title-actions{display:flex;gap:10px}.primary-button{min-height:44px;padding:0 18px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.primary-button:disabled{opacity:.5;cursor:not-allowed}.new-order{display:flex;flex-direction:column}.new-order .sheet-content{flex:1;height:auto}.new-order h3{margin:22px 0 10px}.new-order h3:first-child{margin-top:0}.new-order h3 small{color:var(--muted);font-weight:400}.new-order .search{max-width:none}.search-results{display:grid;gap:6px;margin-top:8px}.search-results>button,.selected-row{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);display:flex;justify-content:space-between;text-align:left;cursor:pointer}.search-results small,.selected-row small,.cart small{display:block;color:var(--muted);margin-top:3px}.cart{display:grid;gap:8px}.cart article{padding:13px;border:1px solid var(--border);border-radius:11px;display:flex;align-items:center;justify-content:space-between}.qty{display:flex;align-items:center;gap:12px}.qty button{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);display:grid;place-items:center}.qty svg{width:16px}.new-order>footer{padding:16px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}.new-order label{display:grid;gap:6px;color:var(--muted);font-size:13px}.new-order input[type=number],.new-order input[type=date],.new-order textarea{min-height:42px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:9px 11px}.new-order textarea{width:100%;min-height:90px;resize:vertical}.new-order .cart input{width:110px;margin-top:6px}.new-order .segmented{display:flex;border:1px solid var(--border);border-radius:11px;padding:3px;margin-bottom:12px}.new-order .segmented button{flex:1;width:auto;justify-content:center}.new-order .cart article>div:first-child{min-width:0}.title-actions{flex-wrap:wrap;justify-content:flex-end}.workspace{min-width:0}.session-header{height:68px;padding:0 clamp(22px,4vw,64px);border-bottom:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:space-between;position:relative}.session-company,.session-user{display:flex;align-items:center;gap:10px;min-width:0}.session-company>span,.session-user>span{display:flex;flex-direction:column;min-width:0}.session-header small{color:var(--muted);font-size:11px}.session-header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.session-header button,.text-button{border:0;background:transparent;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--muted)}.company-menu{position:absolute;z-index:8;top:58px;left:clamp(22px,4vw,64px);width:min(360px,calc(100vw - 44px));padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}.company-menu button{width:100%;justify-content:flex-start;padding:0 12px;border-radius:8px;color:var(--text)}.company-menu button:hover{background:var(--surface-2)}.auth-page{min-height:100dvh;width:100%;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,var(--primary-soft),transparent 35%),var(--bg)}.auth-card,.company-card{width:min(440px,100%);padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}.auth-brand>span,.company-icon{width:44px;height:44px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center}.auth-brand>div{display:flex;flex-direction:column}.auth-brand small,.auth-card>p,.company-card>p{color:var(--muted)}.auth-card h1,.company-card h1{margin:0 0 8px}.auth-card>label{display:block;font-weight:600;font-size:13px;margin-top:18px}.field{margin-top:7px;height:48px;border:1px solid var(--border);border-radius:11px;display:flex;align-items:center;padding:0 13px;gap:10px}.field:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.field svg{width:18px;color:var(--muted)}.field input{border:0;outline:0;background:transparent;color:var(--text);width:100%}.auth-submit{width:100%;margin-top:24px}.form-error{margin-top:16px;padding:12px;border-radius:10px;background:#fee4e2;color:#b42318;font-size:13px}.company-list{display:grid;gap:9px;margin:24px 0}.company-list>button{min-height:68px;border:1px solid var(--border);background:var(--surface);border-radius:13px;padding:10px;display:grid;grid-template-columns:44px 1fr 24px;align-items:center;gap:12px;text-align:left;color:var(--text);cursor:pointer}.company-list>button:hover{border-color:var(--primary)}.company-list>button>span:nth-child(2){display:flex;flex-direction:column}.company-list small{margin-top:3px}.mini-spinner{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}.text-button{gap:8px}.app-loading{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}@media(max-width:900px){.session-header{padding:0 18px}.session-user>span{display:none}.session-user{gap:0}.company-menu{left:18px}}@media(max-width:560px){.session-header{height:62px}.session-company{max-width:72%}.session-company>svg{display:none}.auth-card,.company-card{padding:24px}.page-title{gap:14px}.title-actions{flex-wrap:wrap;justify-content:flex-end}.qty button{width:44px;height:44px}}.admin-page{padding-top:34px}.admin-nav,.subtabs{display:flex;gap:6px;border-bottom:1px solid var(--border);margin-bottom:24px;overflow:auto}.admin-nav button,.subtabs button{min-height:48px;padding:0 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);display:flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer}.admin-nav button.active,.subtabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.admin-nav svg,.subtabs svg{width:18px}.admin-list{display:grid;gap:9px}.admin-list>button,.admin-list>article{width:100%;min-height:70px;padding:12px 16px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text);display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px;text-align:left}.admin-list>button{cursor:pointer}.admin-list>button:hover{border-color:var(--primary)}.admin-list>article>span:nth-child(2),.admin-list>button>span{display:flex;min-width:0;flex-direction:column;gap:4px}.admin-list small{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.panel-actions{display:flex;justify-content:flex-end;margin-bottom:14px}.danger-button{min-height:40px;padding:0 13px;border:1px solid #fda29b;border-radius:10px;background:transparent;color:#d92d20;cursor:pointer}.status-dot{width:13px;height:13px;border-radius:50%;background:#98a2b3;justify-self:center}.status-dot.online{background:#12b76a;box-shadow:0 0 0 4px #d1fadf}.company-heading{display:flex;align-items:center;gap:14px;margin:15px 0 24px}.company-heading>svg{width:42px;height:42px;padding:10px;border-radius:12px;background:var(--primary-soft);color:var(--primary)}.company-heading h2,.company-heading p{margin:0}.company-heading p{color:var(--muted);margin-top:4px}.back-button{border:0;background:transparent;color:var(--primary);min-height:44px;cursor:pointer}.info-card{padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.info-card dl{display:grid;grid-template-columns:160px 1fr;gap:14px;margin:0}.info-card dt{color:var(--muted)}.info-card dd{margin:0;font-weight:600}.info-card dl>div{display:contents}.pair-code{font-size:32px;font-weight:800;letter-spacing:.18em;padding:16px}@media(max-width:560px){.admin-page{padding-left:16px;padding-right:16px}.admin-nav button,.subtabs button{padding:0 11px}.admin-list>article{grid-template-columns:24px minmax(0,1fr) auto;padding:11px}.info-card dl{grid-template-columns:1fr;gap:4px}.info-card dd{margin-bottom:13px}.danger-button{padding:0 8px}.panel-actions .primary-button{width:100%}}.sheet-backdrop.centered{align-items:center;justify-content:center;padding:20px}.new-order.wizard{width:min(760px,100%);height:auto;max-height:min(760px,92dvh);border-radius:20px;box-shadow:var(--shadow)}.wizard-steps{display:flex;gap:4px;padding:12px 24px;border-bottom:1px solid var(--border);overflow-x:auto}.wizard-steps span{padding:7px 13px;border-radius:999px;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}.wizard-steps span.active{background:var(--primary-soft);color:var(--primary)}.wizard-steps span.done{color:var(--text)}.installment-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.installment-preview{display:grid;gap:6px;margin-top:10px}.installment-row{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);font-size:13px}.installment-row.entrada{background:var(--primary-soft);border-color:transparent;font-weight:600}.new-order .segmented.compact{margin-top:4px;margin-bottom:14px}.new-order .segmented.compact button{font-size:13px}.new-order .required-hint{color:#d92d20;font-weight:600}@media(min-width:900px)and (orientation:landscape){.new-order.wizard{width:min(820px,86vw);max-height:min(620px,88dvh)}}@media(max-width:560px){.new-order.wizard{width:100%;height:min(680px,92dvh);max-height:92dvh;border-radius:16px}.installment-fields{grid-template-columns:1fr 1fr}.installment-fields label:last-child{grid-column:1/-1}}.report-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0f172ab8;overflow:auto;padding:24px}.report-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;max-width:960px;margin:0 auto 8px}.report-toolbar button{display:flex;align-items:center;gap:7px;padding:9px 14px;border:0;border-radius:8px;cursor:pointer}.report-toolbar svg{width:17px}.cash-report{width:min(960px,100%);margin:auto;background:#fff;color:#111;padding:32px;font:12px Arial,sans-serif}.cash-report header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid #555;margin-bottom:12px}.cash-report header>div:last-child{text-align:right}.cash-report header h1{font-size:22px;margin:0}.cash-report header small{display:block;font-size:9px}.cash-report .report-columns{display:grid;grid-template-columns:1fr 1fr;gap:44px}.cash-report table{width:100%;border-collapse:collapse;margin:0 0 14px}.cash-report th,.cash-report td{padding:4px 3px;border-bottom:1px solid #ccc;text-align:right}.cash-report th:first-child,.cash-report td:first-child{text-align:left}.cash-report .report-title{text-transform:uppercase;text-align:center;background:#d6d6d6;font-size:11px;padding:5px;margin:14px 0 0}.cash-report tr.total{font-weight:700;border-top:1px solid #555}.page-actions{display:flex;align-items:center;gap:8px}.secondary-button{display:flex;align-items:center;gap:7px}.secondary-button svg{width:18px}@media(max-width:700px){.report-overlay{padding:8px}.cash-report{padding:16px;min-width:680px}.cash-report .report-columns{gap:20px}}@media print{body>*{visibility:hidden}.report-overlay,.report-overlay *{visibility:visible}.report-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;padding:0}.report-toolbar{display:none}.cash-report{width:100%;padding:8mm;margin:0;font-size:9px}.cash-report header h1{font-size:17px}.cash-report table{break-inside:avoid;margin-bottom:8px}.cash-report .report-title{margin-top:8px}@page{size:A4 portrait;margin:7mm}}.report-empty{text-align:center;padding:40px 0;font-size:14px}.closures-report{padding:24px 0;min-height:700px}.closure-page{padding:0 30px;min-height:650px;position:relative;break-after:page}.closure-page:last-child{break-after:auto}.closures-report header{padding:0 14px}.closure-brand{text-transform:uppercase}.closure-period{display:flex;border-bottom:1px solid #333;padding:2px 0 8px}.closure-period span{margin-left:auto;font-size:10px}.closure-identification{display:grid;grid-template-columns:1fr 1fr;gap:80px;padding:38px 20px 30px;font-size:14px;line-height:2}.closure-values{width:72%!important;margin:0 auto!important;border:1px solid #333}.closure-values th,.closure-values td{border:1px solid #333!important;padding:7px 10px!important}.closure-values thead th{text-align:center!important;font-size:14px}.closure-values tbody th{font-weight:400;text-align:right!important}.report-page-number{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-style:italic;font-weight:700}@media print{.closures-report{padding:0;min-height:auto}.closure-page{height:270mm;min-height:0;padding:0}.closure-values{width:72%!important}.closure-identification{padding-top:14mm}.report-page-number{bottom:4mm}}
