:root{--ink:#392144;--muted:#66586b;--paper:#fffdf8;--accent:#ffda3d;--line:#ddd4df;--soft:#f2edf3;--white:#fff;--error:#9b2434;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;font-synthesis:none;scrollbar-color:#a99aad var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a{touch-action:manipulation}button,select,input{min-height:46px}input,select,textarea{border:1px solid #baaebe;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;width:100%;caret-color:var(--ink)}input[type=search]{appearance:none}textarea{resize:vertical;min-height:90px}label{display:grid;gap:7px;font-size:.875rem;font-weight:650}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;border-radius:8px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;background:var(--soft);color:var(--ink)}button:hover{background:#e7dfe9}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #815697;outline-offset:3px}::selection{background:var(--accent);color:var(--ink)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:2.2rem;letter-spacing:-.035em;line-height:1.14;margin-bottom:10px;text-wrap:balance}h2{font-size:1.1rem;letter-spacing:-.015em}h3{font-size:1rem;margin-bottom:8px}p{line-height:1.5}a{color:var(--ink);text-underline-offset:3px}.primary{background:var(--ink);color:#fff}.primary:hover{background:#583362}.secondary{background:#fff;border:1px solid var(--line)}.quiet{background:transparent}.muted{color:var(--muted);font-size:.875rem}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.skip{position:fixed;left:10px;top:-70px;background:var(--accent);padding:15px;z-index:9}.skip:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--ink);color:white;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:750;line-height:1.3;padding:0 8px;margin-bottom:44px}.brand small{display:block;font-size:.75rem;font-weight:450;color:#e5d9e8;margin-top:4px}.brand-mark{display:inline-grid;place-items:center;background:var(--accent);color:var(--ink);width:44px;height:48px;border-radius:50% 50% 42% 42%;font-weight:850;font-size:1.4rem;letter-spacing:-.05em;flex-shrink:0}nav{display:grid;gap:8px}nav button{justify-content:flex-start;background:transparent;color:#eee5f0;padding:14px 12px}nav button:hover{background:#51365d}nav button[aria-current=page]{background:var(--accent);color:var(--ink)}.count{margin-left:auto;font-size:.75rem}.side-bottom{margin-top:auto;padding:18px 10px 0;font-size:.875rem}.side-bottom button{color:#eee5f0;padding-left:0}.side-bottom button:hover{background:#51365d}#identity{margin-bottom:8px}.workspace{margin-left:238px}.environment{padding:9px 32px;background:#f9efc8;color:#5a4613;font-size:.78rem}main{max-width:1240px;padding:38px 40px 30px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:30px}.page-heading p{color:var(--muted);margin:0}.page-heading button{flex-shrink:0}.tools{display:flex;align-items:flex-end;gap:16px}.search{position:relative;flex:1}.search svg{position:absolute;left:14px;bottom:13px;color:var(--muted)}.search input{padding-left:46px}.tools>label:last-child{min-width:190px}.date-tools{margin-top:14px;font-size:.85rem;color:var(--muted)}summary{cursor:pointer;min-height:44px;padding:12px 0;width:fit-content}.date-tools form{display:flex;gap:12px;align-items:flex-end;padding-bottom:18px;flex-wrap:wrap}.date-tools label{max-width:180px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-top:26px;margin-bottom:6px;gap:12px}.list-heading h2{margin:0}.list-heading span,.updated{font-size:.8rem;color:var(--muted)}#range-note{margin-bottom:18px}.order-row{display:grid;grid-template-columns:1.1fr 1.5fr auto;gap:20px;align-items:center;padding:21px 0;border-bottom:1px solid var(--line)}.order-row:first-child{border-top:1px solid var(--line)}.order-id{font-size:.78rem;color:var(--muted);display:block;margin-bottom:7px}.order-row h3{margin-bottom:7px;font-size:1.05rem}.order-row p{margin:0;color:var(--muted);font-size:.875rem}.row-end{text-align:right;display:grid;justify-items:end;gap:9px}.money{font-variant-numeric:tabular-nums;font-weight:750}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:4px 8px;font-size:.75rem;font-weight:650;background:var(--soft);width:fit-content}.tag.nuevo{background:#f9edb1;color:#5b4310}.tag.preparando,.tag.listo{background:#eee4f4;color:#573065}.tag.en_camino{background:#e2eef7;color:#24546f}.tag.entregado{background:#e3f1e6;color:#285f36}.tag.cancelado,.tag.agotado{background:#f9e4e6;color:#8a2936}.tag.disponible{background:#e3f1e6;color:#285f36}.tag.oculto{background:#eeeaef;color:#625566}.row-link{margin-top:0;font-size:.875rem}.empty{padding:60px 18px;text-align:center;border-block:1px solid var(--line)}.empty h2{font-size:1.3rem}.empty p{max-width:420px;margin:0 auto;color:var(--muted)}.product-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 170px auto;gap:18px;align-items:center;border-bottom:1px solid var(--line);padding:20px 0}.product-row h3{margin-bottom:5px}.product-row p{margin:0}.product-row .money small{display:block;font-size:.75rem;font-weight:450;color:var(--muted);margin-top:4px}.message,.error{padding:13px 16px;border-radius:8px;background:#e3f1e6;color:#285f36;font-size:.9rem}.error{background:#f9e4e6;color:var(--error)}.updated{margin:24px 0 0}.login{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:80px;padding:8vw;max-width:1400px;margin:auto}.login-brand{display:flex;align-items:center;gap:20px}.login-brand .brand-mark{width:96px;height:112px;font-size:3.5rem}.login-brand p{font-size:2.3rem;font-weight:750;max-width:180px;line-height:1.05;letter-spacing:-.03em;margin:0}.login form{max-width:420px;width:100%;display:grid;gap:22px}.login h1{font-size:2.4rem;margin:0}.login form>p{color:var(--muted);margin:0}.login-foot{grid-column:1/-1;color:var(--muted);font-size:.8rem}.login button{width:100%}dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(570px,100%);height:100dvh;max-height:100dvh;max-width:100%;border:0;background:var(--paper);color:var(--ink);padding:0;box-shadow:-10px 0 40px #24132b24}dialog::backdrop{background:#20102666}.detail-heading{display:flex;justify-content:space-between;gap:15px;padding:25px 28px;border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:1}.detail-heading h2{font-size:1.45rem;margin-bottom:6px}.detail-heading p{font-size:.85rem;color:var(--muted);margin:0}.icon-button{padding:10px;width:46px;flex-shrink:0}.detail-section{padding:23px 28px;border-bottom:1px solid var(--line)}.detail-section p{margin-bottom:8px;overflow-wrap:anywhere}.contact-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.contact-links a{display:inline-flex;min-height:44px;align-items:center;font-weight:600;font-size:.875rem}.items{list-style:none;padding:0;margin:0}.items li{display:flex;justify-content:space-between;gap:20px;padding:12px 0}.items small{display:block;color:var(--muted);margin-top:5px}.order-total{display:flex;justify-content:space-between;padding-top:16px;margin-top:10px;border-top:1px solid var(--line);font-size:1.1rem}.editor{display:grid;gap:20px;padding:24px 28px}.editor .primary{width:100%}.notice{font-size:.85rem;background:#f3edf4;padding:13px;border-radius:8px;color:var(--muted);margin:0}.price-preview{font-size:.875rem;color:var(--muted);margin:0}.loading{padding:36px 0;color:var(--muted)}
@media(max-width:1050px){.sidebar{width:205px;padding-inline:12px}.workspace{margin-left:205px}main{padding:30px 24px}.order-row{grid-template-columns:1fr 1fr;gap:14px}.row-end{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;text-align:left}.product-row{grid-template-columns:1fr auto}.product-row .money{grid-column:2;grid-row:1;text-align:right}.product-row .tag{grid-column:1;grid-row:2}.product-row button{grid-column:2;grid-row:2}.brand{padding:0;font-size:.9rem}}
@media(max-width:640px){.sidebar{inset:auto 0 0;width:100%;padding:0 8px env(safe-area-inset-bottom);background:var(--paper);color:var(--ink);border-top:1px solid var(--line);z-index:4}.sidebar .brand,.side-bottom{display:none}nav{display:flex;gap:4px}nav button{flex:1;flex-direction:column;gap:5px;border-radius:0;color:var(--muted);padding:12px 5px 10px;font-size:.72rem;min-height:66px;position:relative}nav button:hover{background:var(--soft)}nav button[aria-current=page]{background:var(--soft);color:var(--ink)}.count{position:absolute;right:20%;top:8px;background:var(--accent);padding:1px 5px;border-radius:4px;font-size:.65rem}.workspace{margin:0}.environment{padding:9px 18px;font-size:.7rem}main{padding:25px 18px 110px}.page-heading{margin-bottom:24px;gap:10px}h1{font-size:1.85rem}.page-heading p{font-size:.85rem;max-width:230px}.page-heading button{font-size:.75rem;padding:9px 10px;min-height:44px}.page-heading button svg{width:16px}.tools{flex-direction:column;align-items:stretch;gap:12px}.tools>label:last-child{display:flex;align-items:center;gap:12px}.tools select{flex:1}.list-heading{margin-top:20px}.order-row{gap:12px;padding:21px 0;grid-template-columns:1fr}.order-row .row-location{grid-column:1}.row-end{grid-column:1}.row-link{padding:9px 13px;min-height:44px}.order-id{margin-bottom:5px}.product-row{gap:12px}.product-row h3{line-height:1.4}.detail-heading{padding:20px}.detail-section{padding:20px}.editor{padding:20px 20px max(28px,env(safe-area-inset-bottom))}.login{display:flex;flex-direction:column;gap:45px;padding:40px 24px;align-items:flex-start}.login-brand .brand-mark{width:45px;height:52px;font-size:1.5rem}.login-brand p{font-size:1.1rem;max-width:none}.login h1{font-size:2rem}.login-foot{margin-top:auto}.date-tools form{gap:10px}.date-tools label{flex:1;min-width:120px;max-width:none}#mobile-account{display:inline-flex;margin-top:20px;font-size:.8rem}.contact-links{gap:20px}}
@media(min-width:641px){#mobile-account{display:none}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:enter .18s ease-out}@keyframes enter{from{transform:translateX(20px)}to{transform:translateX(0)}}}
.customer-name{margin-top:18px;font-size:1.2rem}
.extra-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.extra-row p{margin:5px 0 0;font-size:.875rem;color:var(--muted)}.extra-row h3{margin:0}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-row{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.875rem}.history-row small{display:block;color:var(--muted);margin-top:5px}#new-entry{margin:12px 0 18px}.extra-row strong{font-variant-numeric:tabular-nums}
@media(max-width:640px){nav{display:grid;grid-template-columns:repeat(3,1fr);gap:0}nav button{min-height:58px;padding:7px 4px;font-size:.68rem}nav svg{width:20px;height:20px}main{padding-bottom:160px}.extra-row{grid-template-columns:1fr auto;gap:12px}.extra-row>div:first-child{grid-column:1/-1}.extra-row>button{justify-self:end}.form-pair{gap:8px}.form-pair input{min-width:0;width:100%}}

.store-return{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;margin:12px 20px;color:#392144;background:#fffdf8;border:1px solid #ded4df;border-radius:12px;font-size:14px;font-weight:650;text-decoration:none;align-self:flex-start}.store-return svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.store-return:hover{background:#fff1b2}.store-return:focus-visible{outline:3px solid #392144;outline-offset:3px}.login>.store-return{margin:16px auto 0}

/* H26 interfaz unificada v1 */
.ui-action-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
button.ui-action,a.ui-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border-radius:8px;line-height:1.3;font-weight:650;vertical-align:middle}
button.ui-action:disabled{cursor:not-allowed;opacity:.55}
button.ui-action:focus-visible,a.ui-action:focus-visible{outline:3px solid #815697;outline-offset:3px}
#cartera .cr-client{display:grid;grid-template-columns:20px 1fr;text-align:left;justify-content:start;column-gap:12px}
#cartera .cr-client small{grid-column:2}
#cartera .cr-row-actions button{min-height:44px}
#cartera [data-receipt]>button{margin:8px 8px 0 0}
#cartera [data-cancel]{color:#913d43;border:1px solid #e7ced0}
#cartera tfoot th,#cartera tfoot td{background:#f2edf3;border-top:2px solid #ddd4df;font-weight:750}
#cartera [data-total-balance]{white-space:nowrap}
.ui-client-balance,#cartera [data-current-balance]{display:block;font-size:13px;font-weight:650;color:#392144;margin-top:8px;line-height:1.5;font-variant-numeric:tabular-nums}
.ui-mobile-bar{display:none}.ui-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#ui-mobile-menu{inset:0 auto 0 0;margin:0;width:min(320px,88vw);height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:#392144;color:#fff;box-shadow:12px 0 36px #21162933}
#ui-mobile-menu::backdrop{background:#21162966}
#ui-mobile-menu .ui-menu-close{display:flex;align-items:center;gap:8px;min-height:44px;margin:12px 16px 0 auto;padding:10px 12px;color:#fff;background:transparent}
#ui-mobile-menu .ui-menu-close:hover{background:#51365d}
#ui-mobile-menu .sidebar{position:static;width:100%;height:auto;min-height:calc(100% - 68px);padding:20px 16px max(20px,env(safe-area-inset-bottom));border:0;background:#392144;color:#fff;display:flex;flex-direction:column}
#ui-mobile-menu .brand{display:flex;margin-bottom:24px;padding:0 8px;font-size:16px}
#ui-mobile-menu nav{display:grid;grid-template-columns:1fr;gap:6px}
#ui-mobile-menu nav button{flex-direction:row;justify-content:flex-start;gap:12px;min-height:48px;padding:12px;border-radius:8px;font-size:16px;color:#eee5f0}
#ui-mobile-menu nav button:hover{background:#51365d}
#ui-mobile-menu nav button[aria-current=page]{background:#ffda3d;color:#392144}
#ui-mobile-menu nav svg{width:22px;height:22px}
#ui-mobile-menu .count{position:static;margin-left:auto;background:transparent;font-size:12px}
#ui-mobile-menu .side-bottom{display:block;margin-top:24px;padding-top:20px;border-top:1px solid #715c79}
#ui-mobile-menu .side-bottom button{color:#fff;padding:10px 0}
@media(max-width:800px){
 .workspace{margin-left:0!important;min-width:0}
 .ui-mobile-bar{display:flex;position:sticky;top:0;z-index:5;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;background:#fffdf8;border-bottom:1px solid #ddd4df}
 .ui-current-module{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ui-menu-toggle{display:inline-flex;gap:8px;align-items:center;min-height:44px;flex-shrink:0}
 main{padding:24px 16px max(32px,env(safe-area-inset-bottom))!important;max-width:100%;min-width:0}
 .workspace>.store-return{margin:12px 16px}
 .page-heading{flex-wrap:wrap;gap:16px} .page-heading h1{font-size:28px}
 .page-heading p{max-width:none} .page-heading button{font-size:14px}
 .tools,.date-tools form{flex-wrap:wrap} .tools>*{min-width:0}
 .form-pair{grid-template-columns:1fr}
 #cartera .cr-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 #cartera .cr-filters label:first-child{grid-column:1/-1;min-width:0}
 #cartera .cr-filters label{min-width:0} #cartera .cr-filters input,#cartera .cr-filters select{width:100%;min-width:0}
 #cartera .cr-table{min-width:620px} #cartera .cr-scroll{max-width:100%;overscroll-behavior-x:contain}
 #cartera .cr-scroll::before{content:'Desliza para ver todas las columnas';display:block;font-size:12px;color:#66586b;margin:0 0 8px}
 #cartera .cr-actions{gap:10px} #cartera .cr-actions button,#cartera .cr-actions a{flex:1 1 180px}
 #cartera [data-receipt]>button{width:100%;margin:8px 0 0}
 .extra-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.extra-row>div:first-child{grid-column:1/-1}
 .ui-table-scroll table{min-width:560px}
 #mobile-account{display:none!important}
}
@media(prefers-reduced-motion:no-preference){#ui-mobile-menu[open]{animation:ui-drawer-enter .18s ease-out}@keyframes ui-drawer-enter{from{transform:translateX(-24px);opacity:.5}to{transform:translateX(0);opacity:1}}}
#cartera .cr-report{margin-top:24px}#cartera .cr-report td{white-space:nowrap;font-variant-numeric:tabular-nums}#cartera .cr-report th{min-width:105px}#cartera [data-print-report]{margin-top:24px}
@media print{
 @page{size:A4 landscape;margin:10mm}
 body:has(.cr-report) .sidebar,body:has(.cr-report) .ui-mobile-bar,body:has(.cr-report) .store-return,body:has(.cr-report) #environment,body:has(.cr-report) .cr-navigation,body:has(.cr-report) [data-report-form],body:has(.cr-report) [data-print-report],body:has(.cr-report) .skip{display:none!important}
 body:has(.cr-report) .workspace{margin:0!important}body:has(.cr-report) main{padding:0!important;max-width:none}
 #cartera .cr-report .cr-scroll{overflow:visible}#cartera .cr-report table{width:100%;min-width:0;font-size:9px}#cartera .cr-report th,#cartera .cr-report td{min-width:0;padding:5px;white-space:normal}#cartera .cr-report thead{display:table-header-group}#cartera .cr-report tr{break-inside:avoid}#cartera .cr-scroll::before{display:none}
}

/* H26 admin organizada v1 */
/* H26 admin profesional v1 */
:root{--ink:#392144;--muted:#6c6170;--paper:#faf9f6;--soft:#f2eef3;--line:#e1dbe4;--accent:#ffda3d;--error:#a12f40;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;scrollbar-gutter:stable}
body{font-variant-numeric:tabular-nums}.store-return,nav [data-page=cartera]{display:none!important}.workspace{background:var(--paper);min-height:100dvh}main{max-width:1280px;margin:auto;padding:32px}.page-heading{align-items:flex-start;gap:24px;margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}h1{font-size:30px;letter-spacing:-.03em}.page-heading p{font-size:14px;max-width:65ch;line-height:1.5}.pro-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:55%}#last-updated{width:100%;text-align:right;margin:0 0 4px;font-size:12px}.pro-header-actions #new-entry{margin:0}.pro-header-actions button{white-space:nowrap}
button,a.secondary,.cr-back{min-height:44px;border-radius:8px;font-weight:600;font-size:14px;padding:10px 16px}button.ui-action,a.ui-action{border-radius:8px;min-height:44px;font-weight:600}.primary{background:#392144;color:#fff}.secondary{background:#fff;border:1px solid #d5cbd9}.quiet{background:transparent}.cr-danger{color:#a12f40!important;background:#fff5f5;border:1px solid #eccbd0}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #92749f;outline-offset:3px}input,select,textarea{border-color:#c9bdce;border-radius:8px;background:#fff;font-size:14px;min-width:0}label{font-size:13px;font-weight:500}svg{stroke-width:1.8}::selection{background:#ffda3d;color:#392144}
.sidebar{width:240px;padding:24px 16px;overflow-y:auto}.workspace{margin-left:240px}.brand{margin-bottom:24px;white-space:nowrap;font-size:15px}.sidebar nav{display:grid;gap:16px}.sidebar nav section{display:grid;gap:4px}.sidebar nav h2{font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#c9b7d0;margin:0;padding:0 12px 4px}.sidebar nav button{justify-content:flex-start;text-align:left;min-height:40px;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;gap:10px}.sidebar nav button[aria-current=page]{background:#ffda3d;color:#392144;font-weight:650}.sidebar nav button svg{width:20px;height:20px}.side-bottom{margin-top:24px;padding:20px 8px 0;border-top:1px solid #6b5375;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:8px}.pro-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#61496d;color:#fff;font-size:12px}.side-bottom #identity{font-size:12px;line-height:1.5;margin:0}.side-bottom #logout,#admin-store-link{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;gap:10px;color:#eee5f0;text-decoration:none;background:transparent;font-size:13px;min-height:44px;padding:10px 0}.side-bottom #logout:hover,#admin-store-link:hover{color:white;background:#51365d}.count{font-size:11px;font-variant-numeric:tabular-nums}
.pro-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:16px}.pro-tabs button{white-space:nowrap;background:transparent;font-size:13px;font-weight:500;min-height:40px;padding:8px 12px}.pro-tabs button[aria-pressed=true]{background:#eee6f1;color:#392144;font-weight:650}.pro-native-filter{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}.tools{display:flex;align-items:flex-end;gap:12px;padding:0;background:none;margin-bottom:20px;flex-wrap:wrap}.tools .search{min-width:220px}.tools #date-tools{margin:0}.tools #date-tools>summary{display:none}.tools #date-tools form{padding:0;gap:8px}.tools #date-tools label{max-width:155px}.tools>label{min-width:150px}.list-heading{margin-top:0;margin-bottom:8px}.list-heading h2{font-size:13px;color:#6c6170;font-weight:500}#range-note{font-size:12px;margin-bottom:12px}.pro-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding:16px 0;font-size:13px;color:#6c6170}.pro-footer>span,.pro-footer>p{margin:0 auto 0 0}.pro-footer button{min-height:40px}
#content .order-row{display:grid;grid-template-columns:125px minmax(110px,1fr) minmax(140px,1.3fr) minmax(100px,1fr) 110px 92px;gap:12px;padding:16px 0;min-height:72px;align-items:center}.order-row .order-id{font-size:12px;margin:0;color:#6c6170}.order-row h3,.product-row h3,.extra-row h3{font-size:14px;font-weight:650;margin:0;line-height:1.4}.order-row .row-location p{font-size:12px;line-height:1.45}.order-row .row-end{display:flex;justify-content:flex-end;grid-column:auto;gap:0}.order-row>.money{text-align:right;font-size:14px;font-weight:500;white-space:nowrap}.pro-row-status{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.pro-row-status p{margin:0;font-size:11px;line-height:1.4}.pro-driver{color:#6c6170}.pro-attention{background:#fff0cc;color:#74520d!important;border-radius:5px;padding:3px 6px}.tag,.cr-status{font-size:11px;font-weight:500;line-height:1.4;padding:3px 7px;border-radius:5px;white-space:nowrap}.tag.nuevo{background:#fff0cc;color:#74520d}.tag.entregado,.tag.disponible,.cr-status-C{background:#e6f1e9;color:#286039}.cr-status-E,.tag.oculto{background:#eeebef;color:#625866}.cr-status-A{background:#fff0cc;color:#74520d}.pro-row-status>.muted{background:#fff0cc;color:#74520d;padding:3px 6px;border-radius:5px}
#content .product-row{display:grid;grid-template-columns:100px minmax(160px,1fr) 150px 110px 90px;gap:16px;min-height:72px;padding:16px 0;align-items:center}.product-row .pro-product-code{font-size:12px;color:#6c6170}.product-row .money{text-align:right;font-weight:500;font-size:14px}.product-row .tag{justify-self:start}
.extra-row{min-height:72px;padding:16px 0;gap:16px}.extra-row p{font-size:12px;font-weight:400}.extra-row[data-pro-page=clientes]{grid-template-columns:minmax(140px,1.2fr) 100px minmax(100px,1fr) minmax(140px,1.3fr) 90px}.extra-row[data-pro-page=clientes]>div{min-width:0}.extra-row[data-pro-page=clientes]>p{margin:0}.extra-row[data-pro-page=clientes]>button{grid-column:5;grid-row:1}.extra-row[data-pro-page=clientes]>span.muted{grid-column:2;grid-row:1}.pro-balance{display:inline-block!important;width:fit-content;font-size:11px!important;border-radius:5px;padding:4px 7px;margin-top:6px!important}.pro-balance[data-balance=debt]{background:#fbe7e9;color:#9b293a!important}.pro-balance[data-balance=zero]{background:#eeebef;color:#625866!important}.pro-role{display:inline-block;margin-top:6px}.tag[data-pro-state=activa]{background:#e6f1e9;color:#286039}.tag[data-pro-state=programada]{background:#fff0cc;color:#74520d}.tag[data-pro-state=pausada],.tag[data-pro-state=finalizada]{background:#eeebef;color:#625866}
#cartera .cr-back,#notasCredito .cr-back,.admin-back,.pro-back{background:#392144;color:#fff;border:1px solid #392144;box-shadow:none}#cartera .cr-back:hover,#notasCredito .cr-back:hover{background:#553360}.cr-navigation{margin:0 0 20px!important;border:0!important;padding:0!important}#cartera .cr-filters,#notasCredito .cr-filters{padding:0;background:none;border:0;display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 20px;align-items:end}#cartera .cr-filters label,#notasCredito .cr-filters label{margin:0;flex:1 1 130px;min-width:0}#cartera .cr-filters label:first-child,#notasCredito .cr-filters label:first-child{flex:2 1 210px;min-width:0}.cr-actions:empty{display:none!important}#cartera .cr-table,#notasCredito .cr-table{font-size:13px;background:#fff}#cartera .cr-table th,#notasCredito .cr-table th{background:#f2eef3;font-size:12px;font-weight:500;padding:12px}#cartera .cr-table td,#notasCredito .cr-table td{padding:16px 12px;line-height:1.45}.cr-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.cr-table .cr-row-actions{display:flex;justify-content:flex-end;gap:8px}.cr-row-actions button{font-size:12px;padding:8px 12px}.cr-row-actions [data-current-balance]{display:none!important}
.pro-more{position:relative;display:inline-block}.pro-more>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid #d5cbd9;background:white;border-radius:8px}.pro-more>summary::-webkit-details-marker{display:none}.pro-more svg{stroke-width:4}.pro-more-items{position:absolute;right:0;top:100%;z-index:5;min-width:180px;padding:8px;background:white;border:1px solid #ded5e2;border-radius:8px;box-shadow:0 8px 20px #39214416}.pro-more-items button{width:100%;justify-content:flex-start;color:#a12f40!important}.cr-scroll:has(.pro-more[open]){padding-bottom:70px}.pro-report-form{display:flex!important;flex-wrap:wrap!important;gap:16px!important;background:none!important;padding:0!important;max-width:none!important;align-items:flex-end}.pro-report-form>label{flex:1 1 200px}.pro-report-form>p,.pro-report-form>div{width:100%}.pro-report-form>[data-report-run]{align-self:flex-end}.pro-report-form>.muted{font-size:12px}
.order-row:hover,.product-row:hover,.extra-row:hover{background:#f5f1f6;cursor:pointer}.login{display:flex;flex-direction:column;justify-content:center;gap:24px;max-width:480px;margin:auto;padding:40px 24px}.login-brand{gap:12px}.login-brand p{max-width:none;white-space:nowrap;font-size:22px}.login-brand .brand-mark{width:52px;height:56px;font-size:22px}.login form{padding:24px;border:1px solid var(--line);border-radius:12px;background:white;gap:20px}.login h1{font-size:24px}.login-foot{margin:0;font-size:12px}
@media(max-width:1100px){#content .order-row{grid-template-columns:90px minmax(100px,1fr) minmax(120px,1fr) 100px 100px 80px;gap:8px}.workspace{margin-left:220px}.sidebar{width:220px}main{padding:24px}.pro-header-actions{max-width:60%}}
@media(max-width:800px){.workspace{margin-left:0!important}main{padding:24px 16px 40px!important}.page-heading{flex-wrap:wrap;gap:16px}.pro-header-actions{max-width:100%;width:100%;justify-content:flex-start}#last-updated{width:auto;text-align:left;margin:0 auto 0 0}.pro-header-actions button{min-height:48px}.sidebar nav button,#ui-mobile-menu nav button{min-height:48px;justify-content:flex-start;font-size:14px}#ui-mobile-menu nav{gap:16px}#ui-mobile-menu .side-bottom{display:grid}#ui-mobile-menu nav h2{padding-top:4px}.tools{gap:12px}.tools .search{min-width:100%}.tools #date-tools form{flex-wrap:wrap}.tools #date-tools label{max-width:none}.tools>label{flex:1}.pro-tabs button{min-height:48px}#content .order-row{grid-template-columns:1fr auto;gap:12px;padding:16px 0}.order-row .order-id{grid-column:1/-1}.order-row .pro-row-person{grid-column:1}.order-row>.money{grid-column:2;grid-row:2}.order-row .row-location{grid-column:1/-1}.order-row .pro-row-status{grid-column:1/-1}.order-row .row-end{grid-column:1/-1}.order-row .row-end button{min-height:48px}.product-row{grid-template-columns:1fr auto!important}.product-row .pro-product-code{grid-column:1/-1}.product-row .money{grid-column:2;grid-row:2}.product-row .tag{grid-column:1;grid-row:3}.product-row button{grid-column:2;grid-row:3}.extra-row[data-pro-page=clientes]{grid-template-columns:1fr auto}.extra-row[data-pro-page=clientes]>div{grid-column:1/-1}.extra-row[data-pro-page=clientes]>span.muted{grid-row:auto;grid-column:1}.extra-row[data-pro-page=clientes]>p{grid-column:1/-1}.extra-row[data-pro-page=clientes]>button{grid-row:auto;grid-column:2}.cr-filters>button{min-height:48px}.pro-more>summary{min-height:48px}.pro-more-items{min-width:200px}#cartera [data-results] .cr-table,#notasCredito [data-results] .cr-table{min-width:620px}.pro-footer{flex-wrap:wrap}.pro-footer>p{flex-basis:100%}button{min-height:48px}}
@media print{.pro-header-actions,.pro-tabs,.pro-more,.pro-footer,#admin-store-link{display:none!important}.workspace{margin:0;background:white}main{padding:0!important}}

@media(min-width:801px){.extra-row[data-pro-page=clientes]{display:grid;grid-template-columns:minmax(150px,1.3fr) 100px minmax(130px,1fr) 85px 130px 80px}.extra-row[data-pro-page=clientes]>div{grid-column:1;grid-row:1}.extra-row[data-pro-page=clientes]>.pro-phone{grid-column:2;grid-row:1}.extra-row[data-pro-page=clientes]>.pro-address{grid-column:3;grid-row:1}.extra-row[data-pro-page=clientes]>span.muted{grid-column:4;grid-row:1}.extra-row[data-pro-page=clientes]>.pro-balance{grid-column:5;grid-row:1}.extra-row[data-pro-page=clientes]>button{grid-column:6;grid-row:1}}
#delivery-tools{background:transparent;padding:0;margin:0 0 16px;border:0}#delivery-tools .delivery-tabs{display:flex;gap:4px;overflow:auto;flex-wrap:nowrap}#delivery-tools .delivery-tabs button{white-space:nowrap}.pro-report-form>label{order:0}.pro-report-form>button{order:1}.pro-report-form>p,.pro-report-form>div{order:2}.extra-row[data-pro-page=equipo] h3,.cr-table td:nth-child(3){font-weight:650}.cr-table td small{font-weight:400;color:var(--muted)}

.tools #date-tools{position:relative}.tools #date-tools>summary{display:flex;align-items:center;min-height:46px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer}.tools #date-tools form{position:absolute;right:0;top:100%;z-index:5;background:white;border:1px solid var(--line);padding:16px;min-width:420px;box-shadow:0 8px 20px #39214416}.tools>label[data-pro-driver-filter]{width:190px;flex:0 1 190px}.order-row>*{min-width:0}#content .order-row{grid-template-columns:110px minmax(90px,1fr) minmax(110px,1.1fr) minmax(100px,1fr) 115px 112px}.order-row .row-end button{padding:8px 10px}.pro-report-form>[data-report-clients]:empty,.pro-report-form>[data-report-client]:empty{display:none}.pro-report-form>[data-report-run]{margin:0}.pro-report-form>p{margin:0}.pro-row-status>.muted{background:none;color:var(--muted);padding:0}
@media(max-width:1000px) and (min-width:801px){#content .order-row{grid-template-columns:80px minmax(80px,1fr) minmax(90px,1fr) 95px 95px 85px;font-size:12px;gap:6px}.order-row>.money{font-size:12px}.order-row .row-end svg{display:none}}
@media(max-width:800px){#content .order-row{grid-template-columns:1fr auto}.tools #date-tools form{min-width:280px;max-width:calc(100vw - 32px)}.tools .search{flex-basis:100%}}
/* FIN H26 admin organizada v1 */

.brand-mark{font-size:15px} .rancho-cajas-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #ddd}.rancho-cajas-row p{margin:4px 0}@media(max-width:600px){.rancho-cajas-row{align-items:stretch;flex-direction:column}}

/* Shared visual language: El Rancho reports r11 → complete administration r12. */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:200 800;font-display:swap;src:url('/assets/rancho-admin/jakarta.woff2') format('woff2')}
:root{--ink:#2a1b3d;--muted:#71617e;--paper:#f7f6fa;--accent:#7952a3;--line:#e7e1ed;--soft:#f0eaf6;--white:#fff;--error:#a83649;--r-surface:#fff;--r-hover:#f7f3fb;--r-active:#eee7f6;--r-gold:#d5b574;--r-positive:#26714f;--r-positive-bg:#edf7f1;--r-error-bg:#fff1f3;--r-warning:#826120;--r-warning-bg:#faf4e6;--r-radius:16px;--r-shadow:0 4px 12px #2a1b3d05,0 18px 44px #2a1b3d0a;--r-ease:cubic-bezier(.16,1,.3,1);font-family:'Plus Jakarta Sans',sans-serif;color-scheme:light;scrollbar-color:#b5a2c6 var(--paper)}
:root[data-theme=dark]{color-scheme:dark;--ink:#eee6f5;--muted:#b7a8c6;--paper:#17121f;--accent:#b997d5;--line:#3b3049;--soft:#30243e;--white:#241d2e;--r-surface:#241d2e;--r-hover:#30253b;--r-active:#40304e;--r-positive:#9bd3b4;--r-positive-bg:#233c31;--error:#ffb1bf;--r-error-bg:#442734;--r-warning:#e5ca8f;--r-warning-bg:#3d3426;--r-shadow:0 10px 32px #00000024}
body.rancho-r12{font-family:'Plus Jakarta Sans',sans-serif;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.55;font-variant-numeric:tabular-nums}body.rancho-r12 button,body.rancho-r12 input,body.rancho-r12 select,body.rancho-r12 textarea{font-family:inherit;font-size:13px}body.rancho-r12 [hidden]{display:none!important}body.rancho-r12 ::selection{background:#d6c2e8;color:#2a1b3d}body.rancho-r12 :focus-visible{outline:3px solid #a281bc;outline-offset:3px}body.rancho-r12 input::placeholder,body.rancho-r12 textarea::placeholder{color:var(--muted);opacity:1}body.rancho-r12 a{color:var(--accent);text-underline-offset:4px}body.rancho-r12 h1,body.rancho-r12 h2,body.rancho-r12 h3{color:var(--ink);letter-spacing:-.03em}body.rancho-r12 h1{font-size:clamp(28px,3.2vw,44px);line-height:1.15;font-weight:700}body.rancho-r12 h2{font-size:21px}body.rancho-r12 h3{font-size:16px}body.rancho-r12 .muted,body.rancho-r12 .updated{color:var(--muted)}
body.rancho-r12 #shell{display:block}body.rancho-r12 .sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:32px 16px 20px;background:var(--r-surface);border-right:1px solid var(--line);color:var(--ink);display:flex;flex-direction:column;overflow-y:auto;z-index:20;transition:width .3s var(--r-ease)}body.rancho-r12 .sidebar .brand{padding:0 12px;margin:0 0 32px;gap:12px;color:var(--ink);white-space:nowrap}body.rancho-r12 .brand img.rancho-admin-logo{width:44px;height:44px;object-fit:contain;border-radius:10px}body.rancho-r12 .brand span{font-size:21px;letter-spacing:-.04em}body.rancho-r12 .brand small{font-size:10px;color:var(--muted);letter-spacing:0;font-weight:500;margin-top:4px}body.rancho-r12 .sidebar nav{display:flex;flex-direction:column;gap:4px;margin:0;flex:1}body.rancho-r12 .sidebar nav section{margin:8px 0 12px;padding:0;border:0}body.rancho-r12 .sidebar nav h2{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:.06em;margin:12px 14px 8px}body.rancho-r12 .sidebar nav button{width:100%;justify-content:flex-start;min-height:44px;padding:10px 12px;margin:2px 0;border-radius:10px;font-size:12px;font-weight:550;color:var(--muted);background:transparent;box-shadow:none;gap:11px;white-space:nowrap}body.rancho-r12 .sidebar nav button svg{width:19px;height:19px}body.rancho-r12 .sidebar nav button:hover{background:var(--r-hover);color:var(--ink)}body.rancho-r12 .sidebar nav button[aria-current=page]{background:var(--r-active);color:var(--accent);font-weight:700}body.rancho-r12 .sidebar .count{margin-left:auto;min-width:21px;min-height:21px;padding:2px 6px;line-height:17px;font-size:10px;color:var(--accent);background:var(--r-active);border-radius:6px}body.rancho-r12 .side-bottom{margin-top:20px;padding:18px 10px 0;border-top:1px solid var(--line);font-size:11px}body.rancho-r12 #identity{color:var(--muted);overflow-wrap:anywhere}body.rancho-r12 .side-bottom button,body.rancho-r12 .side-bottom a{font-size:11px;color:var(--muted)}body.rancho-r12 .sidebar>a[href*='informes']{display:none}body.rancho-r12 #r12-collapse{position:absolute;right:8px;top:7px;min-height:26px;width:26px;padding:4px;color:var(--muted);background:transparent}
body.rancho-r12 .workspace{margin-left:248px;max-width:none;padding:0;min-height:100dvh;transition:margin-left .3s var(--r-ease)}body.rancho-r12 #main{padding:36px clamp(24px,3.5vw,64px) 48px;max-width:1700px;margin:auto;min-width:0}body.rancho-r12 .r12-header{height:76px;position:sticky;top:0;background:var(--r-surface);border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:15}body.rancho-r12 .r12-crumb{display:flex;gap:14px;font-size:11px;color:var(--muted);min-width:0}body.rancho-r12 .r12-crumb strong{font-weight:600;color:var(--ink)}body.rancho-r12 .r12-header-actions{display:flex;align-items:center;gap:14px}.r12-avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--r-active);color:var(--accent);font-size:11px;font-weight:700}body.rancho-r12 #r12-command{background:var(--paper);color:var(--muted);border:1px solid var(--line);border-radius:10px;font-size:11px;min-height:36px;padding:7px 12px;gap:10px;width:245px;justify-content:flex-start}body.rancho-r12 #r12-command svg{width:15px;height:15px}body.rancho-r12 kbd{font:inherit;font-size:10px;border:1px solid var(--line);border-radius:4px;padding:1px 4px;margin-left:auto}body.rancho-r12 .r12-icon{width:34px;min-height:34px;padding:6px;background:transparent;color:var(--muted)}body.rancho-r12 .r12-icon svg{width:18px;height:18px}body.rancho-r12 .ui-mobile-bar{display:none}.r12-bottom{display:none}
body.rancho-r12 .page-heading{margin:0 0 28px;align-items:center;gap:24px;border:0;padding:0}body.rancho-r12 .page-heading p{font-size:13px;color:var(--muted);margin:12px 0 0;max-width:65ch}body.rancho-r12 .pro-header-actions{gap:10px;align-items:center;flex-wrap:wrap}body.rancho-r12 .pro-header-actions .updated{font-size:10px;max-width:140px;margin:0}.rancho-r12 .tools{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:var(--r-surface);padding:18px 20px;border:1px solid var(--line);border-radius:16px;margin:0 0 16px}.rancho-r12 .tools .search{flex:1;min-width:200px;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:0 12px}.rancho-r12 .tools .search input{background:transparent!important;border:0!important;box-shadow:none;padding:10px 4px}.rancho-r12 .tools label{font-size:11px;color:var(--muted)}.rancho-r12 .tools .date-tools{margin:0;position:relative}.rancho-r12 .date-tools summary{border:1px solid var(--line);border-radius:9px;background:var(--r-surface);padding:10px 14px;font-size:12px;color:var(--ink)}.rancho-r12 .date-tools[open] form{background:var(--r-surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--r-shadow);padding:20px;z-index:12}.rancho-r12 .pro-tabs{gap:8px;border:0;padding:5px;margin:0 0 24px;display:flex;overflow-x:auto;flex-wrap:nowrap;max-width:100%;background:var(--r-active);border-radius:12px}.rancho-r12 .pro-tabs button{min-height:36px;border:0;border-radius:8px;padding:8px 12px;font-size:11px;white-space:nowrap;background:transparent;color:var(--muted)}.rancho-r12 .pro-tabs button[aria-pressed=true]{background:var(--r-surface);color:var(--ink);box-shadow:0 2px 5px #20132d0a}.rancho-r12 .list-heading h2{font-size:15px}.rancho-r12 #range-note{font-size:11px;margin:10px 0 18px;color:var(--muted)}
body.rancho-r12 button{border-radius:9px;min-height:40px;font-weight:600;transition:background .2s,color .2s,box-shadow .2s,transform .18s}body.rancho-r12 button:active:not(:disabled){transform:translateY(1px)}body.rancho-r12 button:disabled{opacity:.5;cursor:not-allowed}body.rancho-r12 button.primary,body.rancho-r12 .primary{color:#fff;background:#2a1b3d;border:1px solid #523965;box-shadow:0 4px 12px #2a1b3d12}body.rancho-r12 button.primary:hover{background:#49315f;box-shadow:0 5px 15px #2a1b3d20}body.rancho-r12 .secondary{color:var(--ink);background:var(--r-surface);border:1px solid var(--line);font-size:12px}body.rancho-r12 .secondary:hover{background:var(--r-hover);border-color:#bda7ce}body.rancho-r12 .quiet{color:var(--muted);background:transparent}body.rancho-r12 input,body.rancho-r12 select,body.rancho-r12 textarea,body.rancho-r12 :is(#pr-editor,.cc-panel) :is(input,select,textarea){background:var(--r-surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;min-height:42px;padding:10px 12px;caret-color:var(--accent);box-shadow:none;font-family:inherit}body.rancho-r12 input[type=checkbox],body.rancho-r12 input[type=radio]{min-height:18px;width:18px;height:18px;accent-color:#7952a3}body.rancho-r12 label{font-size:12px;font-weight:600;color:var(--ink)}
body.rancho-r12 #content{background:var(--r-surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0}.rancho-r12 #content :is(.order-row,.product-row,.extra-row){border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:0;padding:20px 22px;gap:20px;transition:background .18s}.rancho-r12 #content :is(.order-row,.product-row,.extra-row):last-child{border-bottom:0}.rancho-r12 #content :is(.order-row,.product-row,.extra-row):hover{background:var(--r-hover)}.rancho-r12 #content h3{font-size:13px;letter-spacing:-.015em;font-weight:650;margin:0 0 5px;line-height:1.6}.rancho-r12 #content p{font-size:11px;color:var(--muted);line-height:1.6}.rancho-r12 .order-id{font-size:10px;color:var(--muted)}.rancho-r12 .money{font-size:16px;letter-spacing:-.025em;font-weight:650;color:var(--ink);white-space:nowrap}.rancho-r12 .money small{font-size:10px;color:var(--muted)}.rancho-r12 #content .row-link{font-size:11px;min-height:34px;padding:6px 10px}.rancho-r12 #content .pro-address{font-size:11px}.rancho-r12 .pro-footer{padding:16px 20px;color:var(--muted);font-size:11px;border:0;background:transparent;display:flex;gap:12px;align-items:center}.rancho-r12 .tag{font-size:10px;font-weight:600;border-radius:6px;padding:4px 7px;background:var(--r-active);color:var(--accent);border:0}.rancho-r12 .tag:is(.entregado,.disponible,.listo){color:var(--r-positive);background:var(--r-positive-bg)}.rancho-r12 .tag:is(.cancelado,.agotado){color:var(--error);background:var(--r-error-bg)}.rancho-r12 .tag:is(.nuevo,.preparando){color:var(--r-warning);background:var(--r-warning-bg)}.rancho-r12 .tag.oculto{background:var(--soft);color:var(--muted)}.rancho-r12 .pro-attention{color:var(--r-warning)!important}.rancho-r12 .pro-balance[data-balance=debt]{color:var(--error)}.rancho-r12 .pro-balance[data-balance=zero]{color:var(--r-positive)}
body.rancho-r12 :is(#cartera,#notasCredito,#notasDebito,#pr-editor,.cc-panel){color:var(--ink)}body.rancho-r12 :is(#cartera,#notasCredito,#notasDebito) :is(.cr-table,table){width:100%;border-collapse:collapse;background:var(--r-surface);color:var(--ink)}body.rancho-r12 :is(#cartera,#notasCredito,#notasDebito,#pr-editor,.cc-panel) :is(th,td){padding:16px;border-color:var(--line);color:var(--ink);font-size:12px}body.rancho-r12 :is(#cartera,#notasCredito,#notasDebito,#pr-editor,.cc-panel) th{background:var(--soft);color:var(--muted);font-size:10px;font-weight:650;position:sticky;top:0;z-index:1}body.rancho-r12 :is(#cartera,#notasCredito,#notasDebito,#pr-editor,.cc-panel) :is(small,.pr-help,.cr-help){color:var(--muted)}body.rancho-r12 :is(.cr-scroll,.ui-table-scroll){border:1px solid var(--line);border-radius:14px;overflow:auto;background:var(--r-surface)}body.rancho-r12 :is(.cr-scroll,.ui-table-scroll) tr:hover td{background:var(--r-hover)}body.rancho-r12 :is(.cr-new,.cr-report,.nd-editor,.pr-form,.cc-person){background:var(--r-surface);border-color:var(--line);border-radius:14px;padding:24px}body.rancho-r12 :is(#pr-overview,#po-config,#cc-panel){background:var(--r-surface);border-color:var(--line);border-radius:16px}body.rancho-r12 #pr-editor .po-nav{background:var(--r-active);padding:6px;gap:6px}body.rancho-r12 #pr-editor .po-nav button{color:var(--muted);font-size:12px;border-radius:8px;min-height:42px}body.rancho-r12 #pr-editor .po-nav button[aria-pressed=true]{background:var(--r-surface);color:var(--ink)}body.rancho-r12 :is(.cr-actions,.nd-actions){gap:10px}body.rancho-r12 :is(.cr-back,.pro-back,.admin-back){background:var(--r-active);color:var(--accent);border:0;font-size:12px}body.rancho-r12 .pro-more-items{background:var(--r-surface);border-color:var(--line);box-shadow:var(--r-shadow)}body.rancho-r12 .pro-more-items button{color:var(--error);background:var(--r-surface)}body.rancho-r12 #delivery-tools{background:var(--r-active);border-color:var(--line);border-radius:14px;padding:8px;margin-bottom:24px}body.rancho-r12 #delivery-tools button{font-size:11px;background:transparent;color:var(--muted)}body.rancho-r12 #delivery-tools button[aria-pressed=true]{background:var(--r-surface);color:var(--ink)}
body.rancho-r12 dialog{background:var(--r-surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 80px #130a2460;padding:28px}body.rancho-r12 dialog::backdrop{background:#17102077;backdrop-filter:blur(4px)}body.rancho-r12 #detail{margin:0 0 0 auto;max-height:100dvh;height:100dvh;width:min(720px,100vw);max-width:100vw;border-radius:20px 0 0 20px;padding:32px;animation:r12-drawer .3s var(--r-ease)}body.rancho-r12 .detail-heading{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}body.rancho-r12 #detail table{border-collapse:collapse;width:100%;font-size:12px}body.rancho-r12 #detail :is(th,td){border-color:var(--line);padding:12px 8px;background:transparent;color:var(--ink)}body.rancho-r12 .error{color:var(--error);background:var(--r-error-bg);border-color:var(--line);border-radius:12px;padding:16px;font-size:12px}body.rancho-r12 .message{color:var(--r-positive);background:var(--r-positive-bg);border-radius:12px;padding:16px;font-size:12px}body.rancho-r12 .empty{text-align:center;padding:64px 28px;color:var(--muted);background:var(--r-surface)}body.rancho-r12 .empty h2{font-size:19px;margin:0 0 10px}body.rancho-r12 .empty p{font-size:13px;max-width:55ch;margin:0 auto}.rancho-r12 .loading{padding:48px;color:var(--muted);animation:r12-loading 1.2s ease-in-out infinite}
body.rancho-r12 #r12-palette{width:min(560px,calc(100vw - 32px));margin:12vh auto auto;padding:0;overflow:hidden}.r12-palette-head{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--line)}body.rancho-r12 .r12-palette-head input{border:0;background:transparent;min-width:0;box-shadow:none}.r12-palette-head>svg{width:20px;color:var(--muted)}body.rancho-r12 .r12-palette-head button{background:transparent;min-width:32px;padding:4px}.r12-palette-head button svg{width:16px}#r12-palette>p{font-size:11px;padding:8px 24px;color:var(--muted)}.r12-command-list{max-height:45vh;overflow:auto;padding:8px 12px}body.rancho-r12 .r12-command-list button{display:flex;width:100%;justify-content:flex-start;gap:14px;min-height:44px;background:transparent;color:var(--ink);font-size:13px;border-radius:9px}.r12-command-list button svg{width:18px;color:var(--muted)}body.rancho-r12 .r12-command-list button.selected{background:var(--r-active);color:var(--accent)}#r12-palette footer{display:flex;justify-content:space-between;padding:14px 24px;background:var(--paper);border-top:1px solid var(--line);color:var(--muted);font-size:10px}
body.rancho-r12 .login{max-width:none;width:100%;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 15% 0,#a68abd18,transparent 50%),var(--paper);padding:40px 20px}.rancho-r12 .login-brand{margin:0 0 24px;display:flex;gap:14px;align-items:center}.rancho-r12 .login-brand img{width:64px!important;height:64px!important;object-fit:contain}.rancho-r12 .login-brand p{font-size:24px;font-weight:700;color:var(--ink)}.rancho-r12 #login-form{width:min(440px,100%);background:var(--r-surface);border:1px solid var(--line);padding:36px;border-radius:22px;box-shadow:var(--r-shadow)}.rancho-r12 #login-form h1{font-size:29px;max-width:11ch;margin:0 0 14px}.rancho-r12 #login-form>p{color:var(--muted);font-size:13px;margin-bottom:28px}.rancho-r12 #login-form label{margin:18px 0}.rancho-r12 #login-form button{width:100%;margin-top:12px}.rancho-r12 .login-foot{font-size:11px;color:var(--muted);margin:24px 0}.rancho-r12 .fp-login-brand{color:var(--muted)}
@media(min-width:801px){body.rancho-r12.r12-collapsed .sidebar{width:80px;padding-left:10px;padding-right:10px}body.rancho-r12.r12-collapsed .workspace{margin-left:80px}body.rancho-r12.r12-collapsed .sidebar :is(.brand span,nav h2,nav button>span,.side-bottom){display:none}body.rancho-r12.r12-collapsed .sidebar .brand{padding:0;margin-top:16px;justify-content:center}body.rancho-r12.r12-collapsed .sidebar nav button{justify-content:center;padding:12px}.rancho-r12 .ui-mobile-bar{display:none!important}}
@media(max-width:1150px){body.rancho-r12 .sidebar{width:218px}body.rancho-r12 .workspace{margin-left:218px}body.rancho-r12 #main{padding:28px 24px}body.rancho-r12 #r12-command{width:190px}.rancho-r12 #content :is(.order-row,.product-row,.extra-row){gap:12px;padding:18px 16px}.rancho-r12 .page-heading{align-items:flex-start}.rancho-r12 .pro-header-actions{max-width:48%}}
@media(max-width:800px){body.rancho-r12 .workspace,body.rancho-r12.r12-collapsed .workspace{margin:0;padding:0 0 76px}body.rancho-r12 #main{padding:24px 18px 32px}body.rancho-r12 .r12-header{height:64px;padding:0 18px;gap:8px}body.rancho-r12 .r12-header-actions{gap:8px}body.rancho-r12 .r12-crumb{font-size:10px;gap:8px}body.rancho-r12 #r12-command{width:34px;padding:7px;border:0;background:transparent}body.rancho-r12 #r12-command :is(span,kbd){display:none}body.rancho-r12 .r12-avatar{width:30px;height:30px;font-size:10px}body.rancho-r12 .r12-bottom{position:fixed;inset:auto 0 0;display:flex;align-items:center;justify-content:space-around;background:var(--r-surface);border-top:1px solid var(--line);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:25}body.rancho-r12 .r12-bottom button{flex:1;display:flex;flex-direction:column;gap:5px;background:transparent;color:var(--muted);min-height:48px;padding:5px;font-size:9px}body.rancho-r12 .r12-bottom button svg{width:20px;height:20px}body.rancho-r12 .r12-bottom button[aria-current=page]{background:var(--r-active);color:var(--accent)}body.rancho-r12 #r12-collapse{display:none}body.rancho-r12 .sidebar{position:static;width:100%!important;border:0;padding:20px!important}body.rancho-r12 #ui-mobile-menu{max-width:330px;width:90vw;border-radius:0 20px 20px 0;padding:12px}body.rancho-r12 .page-heading{gap:12px;flex-wrap:wrap;margin-bottom:22px}body.rancho-r12 h1{font-size:30px}body.rancho-r12 .page-heading p{font-size:12px}.rancho-r12 .pro-header-actions{max-width:100%}.rancho-r12 .tools{padding:14px;gap:12px;border-radius:14px}.rancho-r12 .tools .search{flex-basis:100%}.rancho-r12 .tools .date-tools[open] form{position:static;box-shadow:none;display:flex;flex-wrap:wrap;width:100%;padding:12px;margin-top:10px}.rancho-r12 .pro-tabs{margin-bottom:16px}.rancho-r12 #content :is(.order-row,.product-row,.extra-row){display:flex;flex-wrap:wrap;padding:20px;gap:12px;position:relative}.rancho-r12 #content .order-id{flex-basis:100%;font-size:10px}.rancho-r12 #content .pro-row-person{flex:1 1 55%}.rancho-r12 #content .row-location{flex:1 1 100%}.rancho-r12 #content .pro-row-status{flex:1 1 50%}.rancho-r12 #content .money{font-size:18px}.rancho-r12 #content .row-end{margin-left:auto}.rancho-r12 #content .product-row>div:first-of-type{flex:1 1 75%}.rancho-r12 #content .extra-row>div:first-child{flex-basis:100%}.rancho-r12 #content .extra-row>button{margin-left:auto}.rancho-r12 #content .extra-row>p{margin:0;flex-basis:100%}.rancho-r12 .pro-product-code{flex-basis:100%}.rancho-r12 #content h3{font-size:14px}.rancho-r12 #content .extra-row>.muted{flex-basis:100%;font-size:11px}.rancho-r12 .empty{padding:44px 20px}body.rancho-r12 #detail{width:100%;border-radius:0;padding:22px}body.rancho-r12 dialog{max-width:calc(100vw - 20px);padding:20px}.rancho-r12 #login-form{padding:28px}.rancho-r12 #r12-palette{margin-top:8vh}.rancho-r12 :is(.cr-filters,.nd-filters){gap:12px!important}.rancho-r12 :is(.cr-new,.cr-report,.nd-editor,.pr-form,.cc-person){padding:18px!important}.rancho-r12 :is(#cartera,#notasCredito,#notasDebito) .page-heading{display:flex;flex-wrap:wrap}.rancho-r12 .r12-bottom [aria-current=page]{font-weight:700}}
@keyframes r12-drawer{from{transform:translateX(32px);opacity:.5}to{transform:none;opacity:1}}@keyframes r12-loading{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){body.rancho-r12 *,body.rancho-r12 *::before,body.rancho-r12 *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Final responsive corrections after visual review. */
body.rancho-r12 .tools .search input{padding-left:30px}body.rancho-r12 .sidebar nav section{flex:none;gap:2px;margin:4px 0 8px}body.rancho-r12 .sidebar nav{justify-content:flex-start}body.rancho-r12 .sidebar nav h2{margin:12px 14px 6px}body.rancho-r12 #r12-palette{height:auto;min-height:0;max-height:80dvh;inset:0;margin:10dvh auto auto;width:min(600px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:0}body.rancho-r12 #r12-palette .r12-command-list{max-height:55dvh;overflow-y:auto}body.rancho-r12 #r12-palette input{min-width:0;width:100%}body.rancho-r12 #cc-entry{margin:16px 20px}

body.rancho-r12 .r13-menu{display:inline-flex;align-items:center;gap:8px;background:var(--r-active);color:var(--ink);padding:8px 12px;min-height:44px;flex-shrink:0}body.rancho-r12 .r13-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.r12-crumb{margin-right:auto}body.rancho-r12 #r13-menu{inset:0 auto 0 0;margin:0;width:min(360px,92vw);max-width:92vw;height:100dvh;max-height:100dvh;border-radius:0 16px 16px 0;padding:20px;overflow:auto}#r13-menu header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}#r13-menu .r13-menu-list{display:grid;gap:6px}#r13-menu .r13-menu-list button{text-align:left;justify-content:flex-start;padding:12px;background:transparent;color:var(--ink);min-height:48px}#r13-menu .r13-menu-list button[aria-current=page]{background:var(--r-active);color:var(--accent)}body.rancho-r12 .r12-bottom{display:none!important}#r13-reports{min-width:0}body.rancho-r12 .sidebar nav{flex:0}body.rancho-r12 .sidebar nav section{margin:0 0 8px}body.rancho-r12 .sidebar nav button{min-height:40px;margin:0}body.rancho-r12 .sidebar .brand{margin-bottom:16px}body.rancho-r12 .sidebar nav h2{margin-top:14px}body.rancho-r12 .r12-header{gap:14px}@media(max-width:800px){body.rancho-r12 .workspace{padding-bottom:0}body.rancho-r12 .r12-header{height:64px;padding:0 12px;gap:10px}body.rancho-r12 .r12-crumb>span{display:none}body.rancho-r12 .r12-header-actions{gap:4px}body.rancho-r12 #r12-command{display:none}body.rancho-r12 .r12-avatar{display:none}body.rancho-r12 #main{padding:24px 16px}body.rancho-r12 .r12-crumb strong{font-size:12px}}

/* Focused, consistent navigation across device sizes. */
body.rancho-r12 .r14-source{display:none!important}body.rancho-r12 .r13-menu{display:none}body.rancho-r12 .sidebar{padding:28px 14px 16px;width:248px;scrollbar-width:thin}body.rancho-r12 .sidebar .brand{padding:0 12px;margin-bottom:24px}body.rancho-r12 .sidebar .brand span{font-size:19px}.r14-nav{flex:1}.r14-nav section,#r13-menu .r13-menu-list section{margin:0 0 18px}.r14-nav h2,#r13-menu .r13-menu-list h2{font-size:10px!important;text-transform:uppercase;letter-spacing:.07em!important;color:var(--muted)!important;font-weight:600;margin:0 12px 7px!important}body.rancho-r12 .r14-nav button,body.rancho-r12 #r13-menu .r13-menu-list button{display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:8px;margin:2px 0;font-size:12px;font-weight:500;background:transparent;color:var(--muted);text-align:left;justify-content:flex-start;box-shadow:none;position:relative}body.rancho-r12 .r14-nav button svg,body.rancho-r12 #r13-menu .r13-menu-list svg,.r14-bottom svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}body.rancho-r12 .r14-nav button:hover,body.rancho-r12 #r13-menu .r13-menu-list button:hover{background:var(--r-hover);color:var(--ink)}body.rancho-r12 .r14-nav button[aria-current=page],body.rancho-r12 #r13-menu .r13-menu-list button[aria-current=page]{background:var(--r-active);color:var(--accent);font-weight:700}body.rancho-r12 .r14-nav button[aria-current=page]:after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;margin-left:auto;flex-shrink:0}body.rancho-r12.r12-collapsed .r14-nav h2,body.rancho-r12.r12-collapsed .r14-nav button span{display:none}body.rancho-r12.r12-collapsed .r14-nav button{justify-content:center;padding:10px 4px}body.rancho-r12.r12-collapsed .r14-nav button:after{display:none}body.rancho-r12.r12-collapsed .r14-nav section{margin-bottom:16px}body.rancho-r12 .side-bottom{margin-top:8px;padding-top:14px}.r14-bottom{display:none}body.rancho-r12 #r13-menu{padding:24px 18px;border-radius:0 16px 16px 0;width:min(370px,92vw);animation:r14-enter .22s cubic-bezier(.16,1,.3,1)}body.rancho-r12 #r13-menu header{margin-bottom:28px;padding-bottom:16px;border-bottom:1px solid var(--line)}body.rancho-r12 #r13-menu header strong{font-size:18px;letter-spacing:-.025em}body.rancho-r12 #r13-menu .r13-menu-list{display:block}body.rancho-r12 #r13-menu .r13-menu-list button{min-height:46px;font-size:14px}body.rancho-r12 #r13-menu .r13-menu-list section{margin-bottom:22px}@keyframes r14-enter{from{transform:translateX(-24px);opacity:.5}to{transform:translateX(0);opacity:1}}@media(max-width:800px){body.rancho-r12 .r13-menu{display:inline-flex;background:transparent;padding:8px}.r13-menu span{display:none}body.rancho-r12 .r14-bottom{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;align-items:center;justify-content:space-around;gap:4px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--r-surface)}body.rancho-r12 .r14-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:76px;padding:5px 16px;border-radius:10px;background:transparent;color:var(--muted);font-size:10px;box-shadow:none;border:0}body.rancho-r12 .r14-bottom button[aria-current=page]{background:var(--r-active);color:var(--accent)}body.rancho-r12 .workspace{padding-bottom:calc(80px + env(safe-area-inset-bottom))}body.rancho-r12 .r12-header{height:60px}body.rancho-r12 #r13-menu .r13-menu-list button{font-size:13px}}@media(prefers-reduced-motion:reduce){body.rancho-r12 #r13-menu{animation:none}}

/* R18-9: five reports share one disclosure in desktop and mobile navigation. */
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-toggle>span{flex:1;min-width:0}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-toggle .r19-chevron{width:14px;height:14px;margin-left:auto;transition:transform .15s ease}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-toggle[aria-expanded=true] .r19-chevron{transform:rotate(90deg)}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-toggle.has-active-report{color:var(--accent);font-weight:650}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-submenu{margin:2px 0 8px 21px;padding-left:10px;border-left:1px solid var(--line)}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-submenu[hidden]{display:none!important}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-submenu button{min-height:44px;padding:9px 10px;line-height:1.4}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-submenu button>svg{display:none}
body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-report-submenu button>span{display:block;min-width:0}
@media(min-width:801px){body.rancho-r12.r12-collapsed .r14-nav .r19-report-submenu,body.rancho-r12.r12-collapsed .r14-nav .r19-chevron{display:none!important}}
@media(prefers-reduced-motion:reduce){body.rancho-r12 :is(.r14-nav,#r13-menu) .r19-chevron{transition:none}}

.r19-report-heading{font-size:11px;font-weight:600;color:var(--muted);margin:16px 10px 6px;line-height:1.4}
