/* CSS inicial MIONEXO: orden conservado. No editar a mano. */

/* Archivo: style.css */
:root{--bg:#f5f7fb;--ink:#15233b;--muted:#68768a;--line:#e5eaf2;--blue:#1555bb;--green:#16846b;--white:#fff;--nav:#16273e;--accent:#28b89a}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.loading{text-align:center;padding:80px;color:var(--muted)}.login{min-height:100vh;display:grid;grid-template-columns:minmax(340px,1fr) minmax(340px,1fr);background:white}.hero{background:linear-gradient(135deg,#102438,#195b75 70%,#1c9179);color:#fff;padding:11vh 8vw;display:flex;flex-direction:column;justify-content:center}.hero h1{font-size:clamp(44px,7vw,76px);letter-spacing:-.075em;margin:0 0 20px;font-weight:850}.hero .subtitle{font-size:22px;max-width:460px;line-height:1.5;opacity:.9}.hero .sm{margin-top:40px;opacity:.8}.login-right{display:flex;justify-content:center;align-items:center;padding:40px}.login-card{width:min(420px,100%)}h2{font-size:28px;letter-spacing:-.04em;margin:0 0 8px}h3{margin:0 0 14px;font-size:16px}p{line-height:1.55}.label{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.03em;text-transform:uppercase}.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}input,select,textarea{background:white;border:1px solid #d6dfec;color:var(--ink);padding:11px 12px;border-radius:10px;min-width:0;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1555bb17}input[type=checkbox]{width:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:white;color:var(--ink);font-weight:700;white-space:nowrap}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.green{background:var(--green);border-color:var(--green);color:#fff}.btn.danger{color:#b11d32}.btn:disabled{opacity:.5;cursor:not-allowed}.full{width:100%}.workspace{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr)}#sidebar{background:var(--nav);color:white;display:flex;flex-direction:column;padding:24px 14px;gap:5px}#sidebar .brand{font-size:27px;font-weight:850;letter-spacing:-.045em;padding:6px 12px 24px}#sidebar .brand span{color:#7bedd0}.navitem{width:100%;display:flex;text-align:left;border:0;background:none;color:#bcd0e6;padding:12px 14px;border-radius:10px;font-weight:650;font-size:13px}.navitem:hover,.navitem.active{color:#fff;background:#29415e}.aside-bottom{margin-top:auto;border-top:1px solid #39506a;padding-top:16px;font-size:12px;color:#bcd0e6}.main{min-width:0}.topbar{height:70px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 30px}.topbar .who{font-size:13px;color:var(--muted)}.page{padding:26px 30px 60px;max-width:1500px;margin:auto}.page-title{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:22px}.page-title h2{font-size:26px}.muted{color:var(--muted)}.tiny{font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:19px;min-width:0;box-shadow:0 3px 12px #192e4b04}.metric{font-size:28px;letter-spacing:-.04em;font-weight:850;margin-top:8px;word-break:break-word}.panel{border:1px solid var(--line);background:white;border-radius:15px;padding:20px;margin-bottom:18px}.panel h3{margin-top:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.actions>*{flex:1}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#64738c;background:#f7f9fd}td,th{padding:12px 13px;border-bottom:1px solid var(--line);white-space:nowrap}tr:last-child td{border-bottom:none}tr:hover td{background:#fbfcff}.badge{border-radius:20px;background:#eaf5ed;color:#177d59;font-size:11px;font-weight:750;padding:4px 9px;display:inline-block}.badge.warn{background:#fff2dc;color:#9c6512}.badge.gray{background:#edf1f6;color:#5c7188}.note{background:#f0f5ff;color:#315784;padding:13px 15px;border-radius:10px;font-size:13px;margin:12px 0}.warning{background:#fff4e2;color:#8b5814;padding:14px;border-radius:10px;font-size:13px;margin-bottom:18px}.empty{padding:24px;color:var(--muted);text-align:center}.search-row{display:flex;align-items:center;gap:12px;margin:16px 0}.search-row input{max-width:410px}.inline{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.inline .field{flex:1;min-width:130px}.btnrow{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px}.company-card{border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;gap:10px;justify-content:space-between}.company-card strong{display:block}.productpic{width:35px;height:35px;object-fit:cover;border-radius:6px}.amount{font-variant-numeric:tabular-nums}#toast{position:fixed;right:24px;bottom:24px;max-width:460px;z-index:20}.toast{padding:13px 18px;background:#1e364e;color:white;border-radius:12px;box-shadow:0 9px 25px #16273e28;margin-top:10px}.toast.error{background:#a52d3d}.warning strong{color:#7f4709}.qtysmall{width:90px} .pill{display:inline-block;padding:5px 9px;border-radius:7px;background:#f1f5f9;color:#46607a;font-size:11px}.skeleton{color:var(--muted);padding:24px}footer{color:var(--muted);font-size:11px;margin-top:38px;line-height:1.6}button:focus-visible{outline:3px solid #40b7a4;outline-offset:1px}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.login{grid-template-columns:1fr}.hero{padding:36px 25px}.hero h1{font-size:45px}.login-right{padding:40px 24px}.workspace{grid-template-columns:1fr}#sidebar{flex-direction:row;overflow-x:auto;padding:12px;gap:2px}.brand{display:none}.navitem{white-space:nowrap;width:auto;padding:10px}.aside-bottom{display:none}.topbar{height:58px;padding:0 16px}.page{padding:18px}.cards,.grid2,.grid3,.grid4{grid-template-columns:1fr}.panel{padding:15px}}

.hero .accent{color:#73e4ca}
.checkline{display:flex;align-items:center;gap:9px;font-size:13px;margin:14px 0;color:var(--ink)}.checkline input{max-width:17px;height:17px;accent-color:var(--green)}.panel .tablewrap{max-height:570px;overflow:auto}button:hover{filter:brightness(.97)} .navitem{transition:background .18s ease}.brand{white-space:nowrap} .page{animation:appear .22s ease}@keyframes appear{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}
.resultbox{padding:14px;border-radius:12px;background:#12263e;color:#caedda;font-size:12px;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto}.search-row input{flex:1}@media(max-width:600px){.navitem{font-size:12px}.topbar strong{font-size:12px}.topbar .inline{gap:2px}.topbar .btn{font-size:11px;padding:7px}.page-title h2{font-size:22px}}

/* Controles de contraseña y recuperación accesibles. */
.password-wrap{position:relative;display:block;width:100%}.password-wrap input{padding-right:54px;width:100%;box-sizing:border-box}.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:44px;height:40px;border:0;border-radius:8px;background:transparent;color:#335775;cursor:pointer;display:grid;place-items:center}.password-toggle:hover{background:#e7f1f8}.password-toggle:focus-visible,.auth-link:focus-visible{outline:3px solid #176ad1;outline-offset:2px}.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-slash{display:none}.password-toggle[aria-pressed=true] .eye-slash{display:block}.auth-link{display:block;min-height:44px;margin:12px auto;border:0;background:transparent;color:#1555b7;font:inherit;text-decoration:underline;cursor:pointer}
/* V08: espacio de trabajo organizado por tarea. */
:root{--bg:#f4f7fb;--ink:#192b42;--muted:#68778d;--line:#e2e8f0;--blue:#176454;--green:#176454;--nav:#112839;--accent:#80e2c0}body{font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.45}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.workspace{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.workspace #sidebar{height:100vh;position:sticky;top:0;overflow:hidden;padding:24px 14px 16px;gap:0;background:var(--nav)}#sidebar nav{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 4px 18px;scrollbar-width:thin;scrollbar-color:#426071 transparent}.workspace #sidebar .brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-size:23px;letter-spacing:-.045em;padding:0 10px 24px}.brand-mark{display:grid;place-items:center;width:34px;height:36px;border-radius:11px;background:var(--accent);color:#103c32!important;font-size:22px;font-weight:900;letter-spacing:-.09em}.workspace #sidebar .brand span{color:white}.workspace #sidebar .brand b{color:var(--accent)}.nav-group-label{padding:20px 11px 8px;color:#82a2b4;font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:700}.nav-group-label:first-child{padding-top:8px}.workspace .navitem{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px;margin:2px 0;color:#c0d0db;font-size:13px;font-weight:500;line-height:1.25;min-height:42px}.navitem:hover{background:#1d3b4e}.navitem.active{background:#274a55;color:#b9f6dd;font-weight:650;box-shadow:inset 3px 0 #7fe1bb}.nav-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.aside-bottom{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:5px;border-top:1px solid #294556;padding:14px 10px 0;color:#8da7b8;font-size:10px}.aside-company-eyebrow{text-transform:uppercase;letter-spacing:.1em;color:#7f9daf;font-size:9px;font-weight:700}.aside-company-name{display:block;color:#d9e7ef;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aside-company-switch{align-self:flex-start;border:0;background:none;color:#9fdac7;padding:2px 0;font-size:10px;font-weight:700}.aside-company-switch:hover{color:#d5fff0;text-decoration:underline}.aside-version{margin-top:3px;color:#668596;font-size:9px}.service-dot{width:6px;height:6px;border-radius:50%;background:#8acbae;flex-shrink:0}.workspace .topbar{height:80px;padding:0 32px;border-bottom:1px solid var(--line);gap:20px}.context-header{display:flex;align-items:center;gap:12px;min-width:0}.context-header>div{display:flex;flex-direction:column;gap:3px;min-width:0}.context-header strong{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:36vw}.context-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:8px}.user-email{font-size:11px;color:var(--muted);margin-right:12px}.header-actions .btn{font-size:12px;min-height:36px;padding:8px 12px}.page{width:100%;padding:32px 36px 44px;max-width:1512px;margin:0 auto;animation:none}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-title h2{font-size:27px;line-height:1.2;letter-spacing:-.035em;font-weight:750;margin:4px 0 8px}.page-title p{font-size:13px;margin:0;max-width:720px}.page-title>div>span.muted{display:block;max-width:720px;line-height:1.5}.section-eyebrow{color:#698381;text-transform:uppercase;font-size:10px;letter-spacing:.09em;font-weight:650}.page-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.btn{border-radius:8px;font-size:12px;min-height:40px;padding:10px 15px;font-weight:650;letter-spacing:0}.btn.primary{background:#176454;border-color:#176454;color:white}.btn.primary:hover{background:#115244}.btn.green{background:#e6f6ee;border-color:#bde3cf;color:#176454}.btn.danger{background:#fff;border-color:#f0d9dd;color:#b54250}.btn.danger:hover{background:#fff5f6}.btn:focus-visible,.module-tab:focus-visible{outline:3px solid #7ccbb1;outline-offset:3px}h3{font-size:15px;letter-spacing:-.015em}.panel{border:1px solid var(--line);border-radius:13px;background:#fff;padding:24px;box-shadow:0 2px 4px #1c385003;margin-bottom:20px}.panel h3{margin:0 0 16px;font-weight:650}.panel p{font-size:13px}.cards{gap:16px;margin-bottom:24px}.card{border-radius:12px;padding:20px 22px;border-color:var(--line);box-shadow:none}.stat-card .label{font-size:10px;letter-spacing:.07em;color:#738297}.metric{font-size:33px;line-height:1.2;letter-spacing:-.045em;margin:12px 0 9px;font-weight:750}.stat-card .tiny{font-size:11px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-title h3{margin:0}.quick-actions>button{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;background:#fff;border:1px solid #e5ecef;border-radius:10px;padding:17px;margin:12px 0;gap:4px 12px;color:var(--ink)}.quick-actions>button strong{font-size:13px}.quick-actions>button span{font-size:11px;color:var(--muted);grid-column:1}.quick-actions>button b{grid-column:2;grid-row:1/3;font-size:18px;align-self:center;color:#377e6b}.quick-actions>button:hover{background:#f4faf7;border-color:#bcd9cf}.empty-state{padding:42px 24px;text-align:center;max-width:520px;margin:auto}.empty-state .empty-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#edf5f1;color:#4b8774;margin:0 auto 15px}.empty-state .empty-icon svg{width:23px;height:23px}.empty-state h3{font-size:15px;margin:0 0 7px}.empty-state p{font-size:12px;color:var(--muted);max-width:370px;margin:0 auto 18px}.empty-state .btn+.btn{margin-left:8px}.list-panel{padding:0;overflow:hidden}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-bottom:1px solid var(--line)}.search-field{flex:1;max-width:430px}.search-field input{font-size:13px;background:#f8fafc;padding:11px 14px;min-height:42px}.filter-field{width:180px;flex-shrink:0}.filter-field select{font-size:12px;min-height:42px;background:#fff}.list-panel .tablewrap{border:0;border-radius:0;max-height:none!important}.list-count{padding:13px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.tablewrap{border-color:#e7edf2;border-radius:10px}table{font-size:12px}th{background:#f8fafc;font-size:10px;letter-spacing:.055em;font-weight:650;color:#718097;padding:13px 16px}td{padding:16px;vertical-align:middle;border-color:#edf1f6}td strong{font-weight:650}.row-note{display:block;font-size:10px;color:var(--muted);margin-top:4px}.table-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.table-actions .btn{min-height:33px;padding:7px 10px;font-size:11px}code{font-family:ui-monospace,Consolas,monospace;font-size:11px;color:#506377}.badge{font-size:10px;font-weight:600;padding:5px 10px;border-radius:7px;background:#e9f6ee;color:#277851}.badge.warn{background:#fff5dc;color:#947025}.badge.gray{background:#f0f2f6;color:#697484}.badge.error{background:#ffedf0;color:#b44556}.focused-form{max-width:800px;padding:28px 32px}.form-section-heading{display:flex;align-items:flex-start;gap:12px;margin:4px 0 22px}.form-section-heading:not(:first-child){margin-top:30px;padding-top:26px;border-top:1px solid var(--line)}.step-number{width:26px;height:26px;display:grid;place-items:center;font-size:11px;border-radius:8px;background:#edf5f1;color:#397e68;font-weight:700;flex-shrink:0}.form-section-heading h3{margin:0 0 5px}.form-section-heading p{font-size:11px;color:var(--muted);margin:0}.form-subtitle{margin-top:28px!important;padding-top:22px;border-top:1px solid var(--line)}.field{gap:7px;margin:0 0 18px}.label{font-size:10px;font-weight:650;color:#718096;letter-spacing:.055em}.field input,.field select{min-height:44px;font-size:13px;border-radius:8px;padding:11px 12px;border-color:#dce4ed}.focused-form>.grid2,.focused-form form>.grid2{gap:20px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:22px;margin-top:26px}.option-card{border:1px solid #e1eae6;border-radius:9px;background:#fafcfb;padding:15px;align-items:flex-start;gap:12px;margin:15px 0}.option-card input{flex-shrink:0;margin-top:2px}.option-card span{font-size:12px;line-height:1.5}.option-card strong{display:block;font-size:12px}.option-card small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.feature-grid .option-card{margin:0}.review-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:22px;max-width:1200px}.detail-list{margin:0}.detail-list>div{display:grid;grid-template-columns:95px 1fr;gap:15px;padding:14px 0;border-bottom:1px solid #edf1f5;font-size:12px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.detail-list+.tiny{margin-top:23px;font-size:10px;overflow-wrap:anywhere}.module-navigation{display:flex;gap:5px;align-items:center;overflow-x:auto;max-width:100%;padding:6px;margin-bottom:25px;border:1px solid var(--line);border-radius:11px;background:#eaf0f4;scrollbar-width:thin}.module-tab{font:inherit;font-size:12px;font-weight:550;background:transparent;border:1px solid transparent;color:#68788d;border-radius:7px;min-height:39px;padding:10px 16px;white-space:nowrap;cursor:pointer;flex-shrink:0}.module-tab:hover{background:#f5f8fa;color:#274a42}.module-tab.active{background:white;border-color:#dae4e7;color:#176454;box-shadow:0 1px 3px #17364c0c;font-weight:650}.module-view{max-width:100%;min-width:0}.module-view>.panel:has(form){max-width:900px}.module-view>.panel:only-child{margin-bottom:0}.module-view[aria-label="Registrar devolución"]{display:grid;grid-template-columns:1fr 1fr;gap:20px}.module-result{margin-top:22px}.module-body{min-width:0}.module-body .tablewrap{max-height:65vh!important}.warning{background:#fff9eb;color:#8a6b2e;border:1px solid #f3e7c7;padding:13px 16px;font-size:12px;line-height:1.65;border-radius:9px;margin-bottom:20px}.note{font-size:12px;line-height:1.6;background:#eff7f3;color:#3d6d5b;padding:14px 16px;border-radius:9px}.page>footer{font-size:10px;letter-spacing:.01em;margin:32px 0 0;color:#8a96a7;padding-top:18px;border-top:1px solid #e5ebf1}.menu-button,.menu-overlay{display:none}.login .hero .accent{color:#80e2c0}.login-card .label{font-size:11px}.login-card .field{margin:15px 0}.login-card h2{font-size:28px}.login-card .btn.primary{background:#176454}.skeleton{padding:45px 0;color:#7a8a9c;font-size:13px}.page:focus{outline:none}
@media(min-width:1600px){.page{padding:36px 44px 48px}.overview-grid{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}}
@media(max-width:1250px){.workspace{grid-template-columns:225px minmax(0,1fr)}.page{padding:28px 24px}.workspace .topbar{padding:0 24px}.user-email{display:none}.page-title{align-items:flex-start}.page-actions{max-width:290px}.overview-grid{grid-template-columns:1.5fr 1fr}.review-layout{grid-template-columns:1fr 1fr}.focused-form{padding:25px}.cards{gap:12px}.card{padding:18px}.metric{font-size:29px}}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid,.review-layout{grid-template-columns:1fr}.review-layout>.panel{max-width:900px}.page-actions{max-width:none}.module-view[aria-label="Registrar devolución"]{display:block}}
@media(max-width:760px){.workspace{display:block}.workspace #sidebar{position:fixed;inset:0 auto 0 0;width:262px;z-index:60;height:100dvh;transform:translateX(-100%);transition:transform .2s ease;display:flex;flex-direction:column;overflow:hidden;padding:24px 14px 16px}.workspace #sidebar .brand{display:flex}.workspace #sidebar .navitem{width:100%;white-space:normal;font-size:13px}.workspace #sidebar .aside-bottom{display:flex}.menu-open #sidebar{transform:translateX(0)}.menu-overlay{position:fixed;inset:0;width:100%;height:100%;background:#091d3299;border:0;z-index:55}.menu-open .menu-overlay{display:block}.menu-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:8px;flex-shrink:0}.workspace .topbar{height:70px;padding:0 16px;gap:10px}.context-eyebrow{font-size:9px}.context-header strong{max-width:42vw;font-size:12px}.header-actions .btn{font-size:10px;padding:7px 9px;min-height:35px}.header-actions{gap:5px}.page{padding:24px 16px 35px}.page-title{display:flex;flex-direction:column;gap:16px;margin-bottom:22px}.page-title h2{font-size:24px}.page-title p{font-size:12px}.page-actions{width:100%;justify-content:flex-start}.cards{gap:10px}.card{padding:17px}.stat-card .label{font-size:9px}.metric{font-size:28px}.panel{padding:19px;border-radius:11px}.list-panel{padding:0}.list-toolbar{padding:15px;gap:10px}.filter-field{width:145px}.search-field input{min-width:0;width:100%}.overview-grid,.review-layout{gap:0}.focused-form{padding:21px 18px}.feature-grid{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1;white-space:normal}.module-navigation{padding:4px;gap:3px;margin-bottom:20px}.module-tab{font-size:11px;padding:10px 13px;min-height:39px}.module-view>.panel:has(form){max-width:100%}.list-count{padding:12px 15px}td,th{padding:13px 15px}.detail-list>div{grid-template-columns:80px 1fr}.quick-actions>button{padding:16px}.page>footer{line-height:1.7}.login-right{padding:32px 22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* V08.1: composición de operación y consultas. */
.pos-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,350px);align-items:start;gap:22px}.pos-sale-column{min-width:0}.pos-sale-column>.panel{margin-bottom:20px}.pos-payment{position:sticky;top:20px;padding:24px}.pos-payment .field{margin-bottom:16px}.pos-payment .grid3{grid-template-columns:1fr}.pos-total{border:1px solid #d9e9e1;border-radius:11px;background:#f0f8f4;padding:19px;margin-bottom:24px;display:flex;flex-direction:column;gap:8px}.pos-total>span{color:#658074;font-size:11px}.pos-total strong{font-size:33px;font-weight:750;line-height:1.15;letter-spacing:-.04em;color:#176454}.pos-manual{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.pos-manual summary{font-size:12px;color:#276855;font-weight:650;cursor:pointer;padding:5px 0 12px;min-height:35px}.pos-manual summary:focus-visible{outline:3px solid #7ccbb1;outline-offset:3px}.pos-manual form{padding-top:12px}#barcode-form{display:grid;grid-template-columns:1fr 1.6fr;gap:0 16px;align-items:end}#barcode-form>.btn{grid-column:1/-1;justify-self:start;min-width:150px}#cart .tablewrap{max-height:50vh;overflow:auto}#cart table{font-size:11px}#cart td,#cart th{padding:13px 10px}#cart .btnrow{padding-top:16px;justify-content:flex-end}#cart .empty-state{padding:32px 14px}.detail-back{margin:-8px 0 24px}.pos-payment .btn.full{min-height:46px;font-size:13px}.pos-payment>.warning{font-size:11px}.pos-payment>.warning .btn{margin-top:12px}.pos-payment .tiny{font-size:10px;line-height:1.7}.module-body th{position:sticky;top:0;z-index:1}.list-panel .empty-state{padding:44px 22px}#return-form select:disabled{background:#f3f5f8;color:#8491a3}#mfa-info{max-width:720px}#mfa-confirm,#mfa-setup,#mfa-disable{max-width:540px}.page>.btn+.panel{margin-top:20px}
@media(max-width:1180px){.pos-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:16px}.pos-payment{padding:20px}.pos-total strong{font-size:28px}#barcode-form{grid-template-columns:1fr}}
@media(max-width:950px){.pos-workspace{grid-template-columns:1fr}.pos-payment{position:static;max-width:none}.pos-payment .grid3{grid-template-columns:repeat(3,minmax(0,1fr))}#barcode-form{grid-template-columns:1fr 1.6fr}.pos-total{flex-direction:row;align-items:center;justify-content:space-between}.pos-payment .btn.full{max-width:none}}
@media(max-width:520px){#barcode-form{grid-template-columns:1fr}.pos-payment .grid3{grid-template-columns:1fr}.pos-total strong{font-size:28px}.pos-sale-column>.panel{padding:18px}.pos-workspace{gap:0}}
/* V09: identidad del perfil y gestión de equipo. */
.profile-pill{padding:6px 10px;border-radius:7px;background:#eaf4ef;color:#2b6c55;font-size:10px;font-weight:650;white-space:nowrap;border:1px solid #d8e9df}.role-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.role-card{padding:20px;border:1px solid #e1e9ed;border-radius:10px;background:#fbfcfd}.role-card h4{margin:0 0 8px;font-size:13px;color:#254b40}.role-card p{margin:0;font-size:12px;line-height:1.65;color:#6a7c8e}.module-view[aria-label="Crear usuario"]>.panel{max-width:800px}
@media(max-width:900px){.profile-pill{display:none}}@media(max-width:640px){.role-cards{grid-template-columns:1fr}}

/* V10: tareas contables y formularios de múltiples líneas */
.finance-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) minmax(100px,1fr) auto;gap:12px;align-items:end;padding:14px 0;border-bottom:1px solid var(--line,#dbe4e8)}
.finance-line .field{margin:0}.finance-line-grid{margin-bottom:18px}.form-actions{margin-top:20px}fieldset{border:1px solid #dbe4e8;border-radius:12px;padding:16px;margin:20px 0}legend{font-weight:700;padding:0 8px}.module-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.panel form>button{margin-top:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere}details table{min-width:360px}
@media(max-width:800px){.finance-line{grid-template-columns:1fr 1fr}.finance-line .field:first-child{grid-column:1/-1}.module-tabs{flex-wrap:nowrap;overflow:auto}.module-tabs .btn{flex-shrink:0}}
@media print{.sidebar,.app-header,.module-tabs,button,.preview-banner{display:none!important}.main{margin:0!important}.panel{break-inside:avoid;box-shadow:none}}

/* V10.1: áreas de trabajo independientes y plegables. */
.nav-section{margin:8px 0;border-top:1px solid #ffffff14;padding-top:8px}.nav-section>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;color:#86d7e5;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;border-radius:10px}.nav-section>summary::-webkit-details-marker{display:none}.nav-section>summary::after{content:'+';font-size:18px;font-weight:500}.nav-section[open]>summary::after{content:'−'}.nav-section>summary:hover{background:#ffffff0c}.nav-section-items{padding-bottom:7px}.nav-section-items .nav-item{margin:3px 0}.nav-section>summary:focus-visible{outline:2px solid #81e3ca;outline-offset:2px}#valuation-preview{max-width:900px}#valuation-preview .detail-list{margin-bottom:20px}#opening-receipt-payment[hidden]{display:none}

#opening-receipt-payment{grid-column:1/-1}#opening-receipt-payment .field{margin-bottom:14px}.page-actions{margin-bottom:16px}
/* V11: operación manual y móvil siempre visible. */
.pos-product-result{display:grid;grid-template-columns:minmax(150px,2fr) minmax(150px,1.5fr) 100px auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #e2e9eb}.pos-product-result small{display:block;color:#60758a;margin-top:5px}.pos-product-result .field{margin:0}#pos-feedback{margin-bottom:16px}#pos-search{display:flex;gap:12px;align-items:end}#pos-search>.field{flex:1;margin:0}#camera-box{margin-top:18px;padding:12px;background:#102b37;border-radius:12px;color:white}#barcode-camera{display:block;width:100%;max-height:330px;background:#071b23;border-radius:8px;object-fit:contain}.company-logo-preview{display:block;max-width:230px;max-height:130px;margin-bottom:20px}.purchase-item{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.purchase-item .field{margin:0}.purchase-item .purchase-calculation{grid-column:1/-1}#credit-fields[hidden],#cash-received[hidden],#mixed-payment-fields[hidden],#invoice-customer[hidden],#camera-box[hidden]{display:none}@media(max-width:950px){.pos-product-result{grid-template-columns:1fr 1fr}.pos-product-result>div{grid-column:1/-1}}@media(max-width:560px){#pos-search{display:block}#pos-search button{width:100%;margin-top:10px}.pos-product-result,.purchase-item{grid-template-columns:1fr}.pos-product-result>div{grid-column:auto}.purchase-item .purchase-calculation{grid-column:auto}}

/* V12: bandeja fiscal por tareas, sin alterar pantallas de compras. */
.fiscal-detail-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.fiscal-alert-count{display:block;font-size:10px;background:#ffebc2;color:#583700;padding:3px 6px;border-radius:7px;white-space:normal}.navitem:has(.fiscal-alert-count){flex-wrap:wrap}.navitem .fiscal-alert-count{margin-left:24px}#fiscal-copy-text{width:100%;margin-top:14px;font-size:12px;white-space:pre;overflow:auto}#fiscal-mapping fieldset{border:1px solid var(--line,#dde5ef);border-radius:10px;padding:16px;margin:16px 0}#fiscal-map-import{margin-top:16px}#fiscal-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}#fiscal-search .field{flex:1;min-width:200px}

/* V13 */
[hidden]{display:none!important}.client-compact{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.client-compact .field{margin:0;flex:1;min-width:180px}.client-dialog{border:0;border-radius:16px;padding:24px;max-width:480px;width:calc(100% - 32px);max-height:90vh;overflow:auto}.client-dialog::backdrop{background:#102a4380}.cash-hint{font-size:1.35rem;font-weight:750;color:#145b4f;padding:12px;background:#edf8f2;border-radius:10px}

/* V14.7: documento compacto y nombre con espacio prioritario. */
.client-compact{display:grid;grid-template-columns:minmax(160px,240px) auto minmax(0,1fr) auto;align-items:end;gap:12px}.client-compact>.field{min-width:0;width:100%;margin:0}.client-compact>button{white-space:nowrap;min-height:44px}.pos-client-identity{min-width:0}.pos-client-identity .label{display:block;margin-bottom:8px}#pos-client-name{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid #dce4ed;border-radius:8px;background:#f7fafc;font-size:1rem;line-height:1.4;overflow-wrap:anywhere;font-weight:600}
@media(max-width:720px){.client-compact{grid-template-columns:minmax(0,1fr) auto}.pos-client-identity{grid-column:1/-1}.client-compact #pos-client-change{grid-column:2;justify-self:end}}
.client-compact:has(.pos-client-type){grid-template-columns:minmax(135px,190px) minmax(160px,230px) auto minmax(0,1fr) auto}
@media(max-width:850px){.client-compact:has(.pos-client-type){grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.client-compact:has(.pos-client-type) .pos-client-identity{grid-column:1/3}.client-compact:has(.pos-client-type) #pos-client-change{grid-column:3}}
@media(max-width:560px){.client-compact:has(.pos-client-type){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.client-compact:has(.pos-client-type) #pos-client-browse{grid-column:1/-1}.client-compact:has(.pos-client-type) .pos-client-identity{grid-column:1/-1}.client-compact:has(.pos-client-type) #pos-client-change{grid-column:2;justify-self:end}}

.sale-print-frame{position:fixed;left:-10000px;top:0;width:1px;height:1px;border:0}.pos-picker{width:min(1100px,95vw);max-width:95vw;max-height:88vh;border:0;border-radius:16px;padding:24px;color:#142c45}.pos-picker::backdrop{background:#102a4380}.pos-picker-header,.pos-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pos-picker-results{max-height:55vh;overflow:auto;margin:16px 0}.pos-picker-actions{padding-top:12px;border-top:1px solid #dce4ed}.pos-picker-search{display:flex;gap:12px;align-items:end;margin-top:12px}.pos-picker-search .field{flex:1;margin:0}.picker-product-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,220px) 100px;gap:14px;align-items:center;padding:14px 4px;border-bottom:1px solid #e4eaf0}.picker-product-row>label:first-child{display:flex;gap:12px;align-items:center}.picker-product-row input[type=checkbox]{width:20px;height:20px;flex:none}.picker-product-row .field{margin:0}.picker-product-row small{display:block}.pos-picker [data-picker-error]{color:#9d2440;background:#fff2f4;padding:10px;border-radius:8px}@media(max-width:600px){.pos-picker{padding:16px}.picker-product-row{grid-template-columns:minmax(0,1fr) 90px}.picker-product-row>label:first-child{grid-column:1/-1}.pos-picker-results{max-height:48vh}}

/* Registros: columnas legibles, referencias extensas bajo demanda. */
.audit-table table{table-layout:fixed;width:100%;min-width:680px}.audit-table th:nth-child(1){width:165px}.audit-table th:nth-child(2){width:145px}.audit-table th:nth-child(3){width:220px}.audit-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.5}.audit-detail summary{cursor:pointer;line-height:1.5}.audit-detail summary span{color:#176657;font-weight:600}.audit-detail p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;padding:10px;background:#f2f7f6;border-radius:6px}.audit-table td:nth-child(2){font-weight:600}

.pos-quantity{display:flex;align-items:center;gap:3px;width:max-content;padding:3px;border:1px solid #c8e7da;border-radius:9px;background:#f0f8f4}.pos-quantity input{width:65px;min-width:0;padding:6px 2px;text-align:center;font-size:14px;font-weight:750;color:#176454;border:0;background:transparent;box-shadow:none;appearance:textfield}.pos-quantity input::-webkit-inner-spin-button,.pos-quantity input::-webkit-outer-spin-button{appearance:none;margin:0}.pos-quantity .btn{padding:5px 8px;min-width:27px;border:0;background:transparent;color:#176454;font-size:15px}#cart th:first-child,#cart td:first-child{width:140px;min-width:140px}.pos-confirm-total{font-size:1.45rem;font-weight:750;color:#176454;margin:.5rem 0}.pos-confirm-sale .form-actions{justify-content:flex-end}.pos-confirm-sale .btn.primary:focus-visible{outline:3px solid #1c846a;outline-offset:3px}

#camera-zoom-row[hidden]{display:none}#camera-zoom-row{color:#fff}#camera-zoom-row .label{color:#dcebf4}#camera-zoom{padding:0;accent-color:#39c8a6}#barcode-camera{max-height:55vh;min-height:180px;object-fit:contain}

#camera-box{width:min(100%,420px);margin:14px 0;padding:12px;background:#102b37;border-radius:14px;color:white}#camera-box .tiny{font-size:11px;line-height:1.4;color:#e0eaf1;margin:8px 0}#camera-box .form-actions{display:flex;flex-wrap:wrap;gap:6px}#camera-box .form-actions .btn{padding:7px 10px;font-size:11px}#camera-device-row[hidden]{display:none}#camera-device-row{margin:8px 0;color:white}#camera-device-row .label{color:#e0eaf1}.barcode-viewfinder{position:relative;max-width:360px;margin:auto;aspect-ratio:16/9;overflow:hidden;border-radius:9px;background:#071b23}#barcode-camera{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain}.barcode-target{position:absolute;inset:27% 9%;border:2px solid #30cda8;border-radius:8px;pointer-events:none;box-shadow:0 0 0 999px #06151a42}.barcode-target:before,.barcode-target:after{content:'';position:absolute;left:12%;right:12%;height:1px;background:#30cda8;top:50%}#camera-zoom-row{margin:8px 0}

#pos-feedback.warning{padding:14px 16px;border:2px solid #b42318;border-radius:10px;background:#fff1f0;color:#8e1d16;font-weight:700}
#pos-feedback .btn{display:inline-flex;margin:10px 8px 0 0;padding:8px 12px}

/* Respaldos: tarjetas de acción, configuración e historial. */
.backup-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.backup-summary>div{padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:8px}
.backup-summary span{font-size:12px;color:var(--muted)}.backup-summary strong{font-size:20px;color:#183b52}
.backup-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.backup-card{display:flex;flex-direction:column;min-width:0;gap:8px}.backup-card h3{font-size:18px;margin:0}.backup-card p{color:var(--muted);font-size:13px;margin:0 0 9px}.backup-card>.btn{align-self:flex-start;margin-top:auto}.backup-card form{margin-top:auto}.backup-card .field{margin:8px 0 12px}.backup-card .grid2{gap:10px}.backup-card .grid2>.field{min-width:0}
.backup-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eaf6f2;color:#176656;font-weight:800;font-size:24px;margin-bottom:4px}
.business-pos-config{margin:24px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.business-pos-config h3{margin:0 0 12px}.business-pos-config p{margin:10px 0 16px}
.backup-toggle{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;padding:10px 0}.backup-toggle input{width:18px;height:18px}
.backup-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.backup-actions .btn{font-size:12px;padding:8px 10px}.backup-stage{display:block;color:#56718b;font-size:11px;margin-top:6px}.backup-cards+.panel td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.backup-dialog{border:1px solid var(--line);border-radius:16px;padding:25px;width:min(520px,94vw);box-shadow:0 20px 70px #10263833}.backup-dialog::backdrop{background:#1429408c}.backup-dialog h3{font-size:20px}.backup-dialog p{font-size:14px}.backup-dialog .backup-actions{justify-content:flex-end;margin-top:20px}
@media(max-width:1100px){.backup-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.backup-cards,.backup-summary{grid-template-columns:1fr}.backup-card{padding:18px}.backup-cards+.panel{padding:14px}.backup-summary{gap:8px}.backup-summary>div{padding:12px 16px}.backup-dialog{padding:18px}}
.recovery-notice{display:flex;gap:13px;align-items:flex-start;margin:20px 0 12px;padding:17px 18px;border:1px solid #bcdccc;border-radius:12px;background:#eff9f3;color:#194b3d;line-height:1.5}.recovery-notice strong{display:block;font-size:15px;margin:0 0 5px}.recovery-notice p{font-size:13px;margin:0;color:#326453}.recovery-check{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:#187153;color:white;font-weight:700}.recovery-notice-error{display:block;border-color:#efc3c5;background:#fff1f1;color:#9b303b;font-size:13px}.recovery-notice[hidden]{display:none}

.sale-control{display:grid;gap:1rem}.sale-control form{border-top:1px solid #dbe4e8;padding-top:1rem}.sale-edit-row{display:grid;grid-template-columns:minmax(12rem,2fr) minmax(6rem,1fr) auto;gap:.65rem;align-items:end;margin-bottom:.75rem}.sale-edit-row [data-product-matches]{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.35rem}.sale-control [data-client-results]{display:flex;flex-wrap:wrap;gap:.35rem}.sale-control fieldset{border:1px solid #dbe4e8;border-radius:.6rem;display:grid;gap:.5rem;margin:.8rem 0;padding:.8rem}@media(max-width:650px){.sale-edit-row{grid-template-columns:1fr auto}.sale-edit-row [data-product-search]{width:100%}.sale-edit-row .field:first-child{grid-column:1/-1}}

/* Bandeja única de autorizaciones empresariales. */
.authorization-badge{margin-left:auto;background:#fce7ba;color:#573c09;border-radius:20px;padding:2px 7px;font-size:11px;font-weight:800;line-height:1.4}
.auth-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:16px 0 20px}.auth-toolbar .field{margin:0;min-width:210px}
.auth-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.auth-card{margin:0;min-width:0}.auth-card-top{display:flex;justify-content:space-between;align-items:start;gap:14px}.auth-card h3{margin:4px 0 6px;font-size:17px}.auth-type{color:#176454;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.1em}
.auth-card p{line-height:1.55;overflow-wrap:anywhere}.auth-card .badge{flex:none}.auth-actions{border-top:1px solid var(--line);padding-top:13px;margin-top:16px;display:flex;flex-wrap:wrap;gap:8px}
.auth-dialog{border:1px solid var(--line);border-radius:16px;width:min(520px,94vw);max-height:90vh;overflow:auto;padding:23px;box-shadow:0 20px 70px #10263833;color:var(--ink)}.auth-dialog::backdrop{background:#1429408c}.auth-dialog .form-actions{display:flex;justify-content:flex-end;gap:8px}.auth-dialog [role=alert]{color:#a52d3d}
.inventory-pending-search{max-width:480px;margin:18px 0 6px}.inventory-pending-search input{min-height:46px}.inventory-pending-search+#inventory-pending-status{margin:0 0 12px}.inventory-pending-search~#inventory-pending-results td:first-child small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
@media(max-width:900px){.auth-list{grid-template-columns:1fr}}@media(max-width:600px){.auth-toolbar{align-items:stretch;flex-direction:column}.auth-card-top{flex-direction:column;gap:5px}.auth-actions .btn{min-height:42px}}
.catalog-row-actions{display:flex;gap:6px;flex-wrap:wrap}.catalog-row-actions .btn{white-space:nowrap}.catalog-edit-dialog{width:min(720px,95vw);max-height:88vh;overflow:auto}.catalog-edit-section{border-top:1px solid var(--line);padding:14px 0;margin-top:14px}.catalog-edit-section summary{cursor:pointer;font-weight:700}.catalog-edit-section form{margin-top:12px}.catalog-edit-section [role=alert]{color:#a52d3d}.catalog-edit-dialog table small{display:block;color:var(--muted);margin-top:4px}@media(max-width:600px){.catalog-row-actions{flex-direction:column}}
/* V17.5: personalización por empresa; la plataforma pública mantiene MIONEXO. */
.brand-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:8px 0 18px;margin:10px 0}
.brand-options legend{font-size:12px;color:var(--muted);font-weight:700;padding:0 0 10px}
.brand-choice{display:flex;align-items:center;gap:10px;min-height:54px;padding:9px 12px;border:1px solid var(--line);border-radius:11px;cursor:pointer;font-size:13px}
.brand-choice:has(input:checked){border-color:var(--green);background:#f3f8f7;box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 15%,transparent)}
.brand-choice input{accent-color:var(--green)}.brand-swatch{width:22px;height:22px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px #ffffff77}
.swatch-verde{background:#176454}.swatch-azul{background:#2459ad}.swatch-violeta{background:#7246a8}.swatch-naranja{background:#a95116}.swatch-rojo{background:#a83245}.swatch-grafito{background:#334155}
.workspace[data-theme=verde]{--green:#176454;--blue:#176454;--accent:#80e2c0;--nav:#112839}
.workspace[data-theme=personalizado]{background:var(--bg)}.workspace[data-theme=personalizado] .main{background:var(--bg)}
.workspace[data-theme=personalizado] .brand-mark:has(img){background:#fff!important;padding:3px!important;border-radius:9px}.workspace[data-theme=personalizado] .brand-mark img{object-fit:contain!important}
.workspace[data-theme=personalizado] #sidebar .navitem:hover{background:color-mix(in srgb,var(--nav) 80%,#000);color:#fff}.workspace[data-theme=personalizado] .module-tab.active{color:var(--blue)}
.workspace[data-theme=personalizado] #sidebar .navitem.active{background:color-mix(in srgb,var(--nav) 80%,#000);box-shadow:inset 3px 0 0 var(--accent);color:#fff!important}.workspace[data-theme=personalizado] .btn.primary:hover{background:color-mix(in srgb,var(--blue) 83%,#000);border-color:color-mix(in srgb,var(--blue) 83%,#000)}
.brand-swatch.swatch-personalizado{background:linear-gradient(135deg,#41475f 0 55%,#c5a25e 55% 78%,#f7f7f5 78%)}
.brand-custom-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.brand-custom-palette[hidden]{display:none}.brand-custom-palette>p,.brand-palette-preview{grid-column:1/-1}.brand-custom-palette input[type=color]{height:48px;padding:4px;cursor:pointer}.brand-palette-preview{background:var(--preview-bg);border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#15233b}.brand-palette-preview span{background:var(--preview-primary);color:white;padding:10px 14px;border-radius:8px}.brand-palette-preview i{background:var(--preview-accent);color:var(--preview-accent-text);padding:10px 14px;border-radius:8px;font-style:normal;font-weight:bold}.brand-custom-palette .brand-contrast-status{margin:0;font-size:12px}.brand-custom-palette .brand-contrast-status.warning{padding:10px}@media(max-width:600px){.brand-custom-palette{grid-template-columns:1fr}}
.workspace[data-theme=azul]{--green:#2459ad;--blue:#2459ad;--accent:#88b7fb;--nav:#152a4c}
.workspace[data-theme=violeta]{--green:#7246a8;--blue:#7246a8;--accent:#c6a3f5;--nav:#2c2041}
.workspace[data-theme=naranja]{--green:#a95116;--blue:#a95116;--accent:#f5b276;--nav:#422a1d}
.workspace[data-theme=rojo]{--green:#a83245;--blue:#a83245;--accent:#f3a1ae;--nav:#411f2a}
.workspace[data-theme=grafito]{--green:#334155;--blue:#334155;--accent:#cbd5e1;--nav:#1e293b}
.workspace[data-theme] #sidebar{background:var(--nav)}
.workspace[data-theme] .btn.primary,.workspace[data-theme] .brand-mark{background:var(--green)}
.workspace[data-theme] .module-tab.active,.workspace[data-theme] .navitem.active,.workspace[data-theme] .quick-actions>button b{color:var(--green)}
.workspace[data-theme] .profile-pill{color:var(--green)}
.brand-wordmark{overflow:hidden;text-overflow:ellipsis;max-width:175px;display:inline-block;vertical-align:middle}
@media(max-width:660px){.brand-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* V17.6: el logotipo empresarial sustituye al monograma del panel. */
.workspace[data-theme] .brand-mark:has(img){background:transparent;box-shadow:none;padding:0;overflow:hidden}
.workspace .brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:6px}
@media(max-width:620px){.brand-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lot-filter-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.lot-filter-card{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;color:var(--ink);min-height:142px;transition:border-color .15s,box-shadow .15s,background-color .15s}
.lot-filter-card .metric{margin-top:0}
.lot-filter-card .muted{font-size:13px}
.lot-filter-card:hover,.lot-filter-card.active{border-color:var(--green);background:#f2faf7;box-shadow:0 0 0 2px #16846b20}
.lot-filter-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:380px){.lot-filter-card{padding:14px;min-height:130px}.lot-filter-card .metric{font-size:25px}}

/* POS: conserva los mismos datos y controles, con menos recorrido para el cajero. */
#page:has(.pos-workspace){padding-top:18px}
#page:has(.pos-workspace) .page-title{margin-bottom:12px}
#page:has(.pos-workspace) #pos-feedback{padding:9px 12px;margin-bottom:10px}
#page:has(.pos-workspace)>.panel{padding:14px 16px;margin-bottom:10px}
#page:has(.pos-workspace)>.panel h3{margin-bottom:9px}
.pos-workspace{gap:12px}
.pos-sale-column>.panel{padding:14px 16px;margin-bottom:10px}
.pos-sale-column>.panel h3{margin-bottom:9px}
.pos-sale-column>.panel .form-actions{margin-top:8px;padding-top:0;border:0;justify-content:flex-start}
.pos-sale-column>.panel .field{margin:0 0 8px}
#barcode-form{display:block}
#barcode-form small{display:block;font-size:11px;line-height:1.35;margin:3px 0}
#pos-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;position:sticky;top:0;background:#fff;padding:5px 0 8px;z-index:2}
#pos-search>.field{margin:0}
#pos-search .btn{margin:0;min-height:42px}
.pos-product-result{padding:10px 0;gap:8px}
.pos-product-result .field input,.pos-product-result .field select{min-height:38px;padding:7px 9px}
.pos-product-result .btn{min-height:38px;padding:8px 10px}
.pos-payment{padding:17px}
.pos-payment .field{margin-bottom:9px}
.pos-total{padding:12px;margin-bottom:12px}
.pos-payment .checkline{margin:8px 0}
.pos-payment .tiny{margin:7px 0;line-height:1.4}
.cash-hint{font-size:13px;padding:8px 10px;margin:7px 0}
#cart td,#cart th{padding:8px 7px}
@media(max-width:1240px){#pos-search-results .pos-product-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#pos-search-results .pos-product-result>div{grid-column:1/-1}#pos-search-results .pos-product-result>button{grid-column:1/-1;justify-self:start}}
@media(max-width:760px){#page:has(.pos-workspace){padding:12px 12px 28px}#page:has(.pos-workspace) .page-title{gap:5px;margin-bottom:9px}#page:has(.pos-workspace) .page-title h2{font-size:21px;margin:0 0 3px}#page:has(.pos-workspace) .page-title p{line-height:1.3}#page:has(.pos-workspace)>.panel{padding:12px;margin-bottom:8px}.client-compact{gap:7px 8px}.pos-client-identity{grid-column:1!important}#pos-client-name{min-height:40px;padding:7px 9px;font-size:13px}.client-compact #pos-client-change{grid-column:2;grid-row:2}.pos-workspace{gap:0}.pos-sale-column>.panel{padding:12px;margin-bottom:8px}#pos-feedback{font-size:11px}#pos-search{grid-template-columns:minmax(0,1fr) auto}#pos-search button{width:auto;margin:0;font-size:11px;padding:8px;white-space:normal}#barcode-form .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#barcode-form .form-actions .btn{white-space:normal;min-width:0}#pos-search-results .pos-product-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#pos-search-results .pos-product-result>div{grid-column:1/-1}#pos-search-results .pos-product-result>button{grid-column:1/-1;justify-self:stretch}#cart .tablewrap{max-height:none;overflow:visible;border:0}#cart table,#cart tbody{display:block;width:100%}#cart thead{display:none}#cart tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;padding:10px;margin-bottom:8px;border:1px solid var(--line);border-radius:9px}#cart tr td{display:block;min-width:0;width:auto;padding:1px 0;border:0;white-space:normal;overflow-wrap:anywhere}#cart tr td:nth-child(1){grid-column:1;grid-row:2}#cart tr td:nth-child(2){grid-column:1/-1;grid-row:1;font-size:13px;font-weight:700}#cart tr td:nth-child(3){grid-column:2;grid-row:2}#cart tr td:nth-child(4){grid-column:1;grid-row:3}#cart tr td:nth-child(5){grid-column:2;grid-row:3}#cart tr td:nth-child(6){grid-column:1;grid-row:4}#cart tr td:nth-child(7){grid-column:2;grid-row:4;text-align:right}#cart tr td:nth-child(3)::before,#cart tr td:nth-child(4)::before,#cart tr td:nth-child(5)::before,#cart tr td:nth-child(6)::before{display:block;font-size:10px;font-weight:600;color:var(--muted)}#cart tr td:nth-child(3)::before{content:'Presentación'}#cart tr td:nth-child(4)::before{content:'Precio'}#cart tr td:nth-child(5)::before{content:'Subtotal'}#cart tr td:nth-child(6)::before{content:'Existencias'}#cart .pos-quantity input{width:46px}#cart .pos-quantity .btn{padding:5px;min-width:24px}.pos-payment{padding:12px}.pos-total strong{font-size:25px}}
@media(max-width:760px){#cart tr td:first-child{min-width:0;width:auto}}

/* Caja: apertura y arqueo en un diálogo compacto, sin perder datos al cerrar. */
.cash-flow-dialog{width:min(650px,calc(100vw - 24px));max-height:min(88vh,850px);padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 24px 70px #10263845;overflow:auto}
.cash-flow-dialog::backdrop{background:#102638a6}
.cash-flow-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}
.cash-flow-header h3{font-size:19px;margin:0 0 4px}.cash-flow-header p{font-size:12px;line-height:1.45;color:var(--muted);margin:0}
.cash-dialog-x{border:0;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer;padding:0 3px}
.cash-flow-dialog .field{margin:0 0 9px}.cash-flow-dialog .field input,.cash-flow-dialog .field select{min-height:38px;padding:8px 10px}
.cash-flow-dialog .tablewrap{overflow:visible;border:0;margin:8px 0}
.cash-flow-dialog .tablewrap table,.cash-flow-dialog .tablewrap tbody{display:block;width:100%;min-width:0}
.cash-flow-dialog .tablewrap thead{display:none}
.cash-flow-dialog .tablewrap tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px}
.cash-flow-dialog .tablewrap tr{display:grid;grid-template-columns:minmax(0,1fr) 68px minmax(66px,auto);gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:5px 8px}
.cash-flow-dialog .tablewrap td{border:0;padding:0;font-size:12px;white-space:nowrap}
.cash-flow-dialog .tablewrap td:nth-child(2) input{width:100%;min-height:33px;padding:4px 6px;text-align:center}
.cash-flow-dialog .tablewrap td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.cash-flow-dialog #cash-difference-hint{font-size:12px;color:var(--muted);margin:8px 0}
.cash-flow-actions{position:sticky;bottom:-18px;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;background:#fff;padding:12px 0 2px;margin-top:8px;border-top:1px solid var(--line)}
.cash-flow-dialog form .cash-flow-actions button{margin:0}
@media(max-width:560px){.cash-flow-dialog{width:calc(100vw - 12px);max-height:94vh;padding:14px}.cash-flow-dialog .tablewrap tbody{grid-template-columns:1fr}.cash-flow-dialog .tablewrap tr{grid-template-columns:minmax(0,1fr) 72px minmax(82px,auto)}.cash-flow-actions{bottom:-14px}}

/* POS: una entrada visible, carrito inmediato y estado de cobro legible. */
#page:has(.pos-workspace) .pos-register-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff8e9;border:1px solid #e9d7a5;border-radius:10px;padding:9px 14px;margin-bottom:10px;font-size:12px;color:#684b20}
#page:has(.pos-workspace) .pos-register-notice .btn{padding:7px 11px;background:#fff}
#page:has(.pos-workspace) .pos-register-notice[hidden]{display:none}
#page:has(.pos-workspace) #pos-search.pos-entry{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:8px}
#pos-search.pos-entry>.field{min-width:0;margin:0}
#pos-search.pos-entry input{min-height:42px}
#pos-search.pos-entry .btn{min-height:42px;margin:0;padding:8px 12px;white-space:nowrap}
.pos-entry-help{font-size:11px;color:var(--muted);margin:6px 0 0;line-height:1.35}
#pos-search-results:not(:empty){max-height:290px;overflow-y:auto;margin-top:8px;border-top:1px solid var(--line)}
#pos-search-results .pos-product-result{padding:7px 0;gap:6px}
#pos-search-results .pos-product-result .field input,#pos-search-results .pos-product-result .field select{min-height:34px}
#pos-search-results .pos-show-all{margin:9px 0 3px}
.pos-cart-empty{margin:0;color:var(--muted);background:#f6f9f8;border-radius:9px;padding:12px 14px;font-size:12px}
#page:has(.pos-workspace) .pos-sale-column>.panel{margin-bottom:9px}
#page:has(.pos-workspace) .pos-payment{padding:13px}
#page:has(.pos-workspace) .pos-total{padding:10px 12px;margin-bottom:9px;gap:2px}
#page:has(.pos-workspace) .pos-total strong{font-size:27px}
#page:has(.pos-workspace) .pos-payment .field{margin-bottom:8px}
#page:has(.pos-workspace) .pos-payment .tiny{line-height:1.35}
.pos-checkout-reason{margin:7px 0 0;font-size:11px;line-height:1.4;color:#596c7e}
.pos-payment #pos-cash-hint{background:#edf8f2;font-size:12px;margin:5px 0;padding:6px 8px}
.pos-payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}.pos-payment-option{min-height:48px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:650;cursor:pointer}.pos-payment-option:hover{border-color:#338f77;background:#f4faf7}.pos-payment-option[aria-pressed="true"]{border-color:#128065;background:#eaf8f1;color:#075840;box-shadow:inset 0 0 0 1px #128065}.pos-payment-option:focus-visible{outline:3px solid #7ccbb1;outline-offset:2px}.pos-payment-option[hidden],.pos-payment-other [hidden]{display:none}.pos-payment-other{margin-bottom:10px;font-size:12px}.pos-payment-other summary{cursor:pointer;color:var(--muted)}.pos-payment-other .form-actions{margin:9px 0;gap:6px}.pos-mixed-dialog{max-width:400px;width:calc(100% - 28px)}.pos-mixed-dialog .qr-amount{margin:4px 0 16px}.pos-mixed-dialog .field{margin-bottom:10px}.pos-mixed-balance{font-weight:650;font-variant-numeric:tabular-nums}
#page:has(.pos-workspace) #sale-submit{margin-top:7px}
@media(max-width:760px){#page:has(.pos-workspace) #pos-search.pos-entry{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#pos-search.pos-entry>.field{grid-column:1/-1}#pos-search.pos-entry .btn{width:100%;white-space:normal;font-size:12px}#pos-search-results:not(:empty){max-height:260px}#page:has(.pos-workspace) .pos-total strong{font-size:25px}}

/* Apertura y facturación: campos precisos, sin desplazamiento innecesario. */
.cash-flow-dialog:has(#cash-open){width:min(570px,calc(100vw - 20px));padding:14px 17px;max-height:92vh}
.cash-flow-dialog:has(#cash-open) .cash-flow-header{padding-bottom:6px;margin-bottom:8px}
.cash-flow-dialog:has(#cash-open) .tablewrap{margin:5px 0}
.cash-flow-dialog:has(#cash-open) .tablewrap tbody{gap:3px 7px}
.cash-flow-dialog:has(#cash-open) .tablewrap tr{padding:2px 6px;gap:4px;grid-template-columns:minmax(0,1fr) 57px 67px}
.cash-flow-dialog:has(#cash-open) .tablewrap td:nth-child(2) input{min-height:29px;padding:2px}
.cash-flow-dialog:has(#cash-open) .field{margin-bottom:5px}
.cash-flow-dialog:has(#cash-open) .field input,.cash-flow-dialog:has(#cash-open) .field select{min-height:34px;padding:5px 8px}
.cash-open-selection{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
.cash-open-selection>p{align-self:center;margin:0}
.cash-flow-dialog:has(#cash-open) .cash-flow-actions{padding-top:7px;margin-top:6px}
#barcode-form:not([hidden]){margin:0 0 9px;max-width:350px}
#barcode-form:not([hidden]) .field{margin:0}
#barcode-form:not([hidden]) .field select{min-height:38px}
#pos-invoice-review{margin:7px 0;padding:10px;background:#f7faf9}
#pos-invoice-review h3{font-size:14px;margin:0 0 3px}
#pos-invoice-review>p.tiny{margin:0 0 7px}
#pos-invoice-review .invoice-core{display:grid;grid-template-columns:1fr 1fr;gap:4px 7px}
#pos-invoice-review .invoice-core .field{margin:0}
#pos-invoice-review .invoice-core .field:has([data-billing="name"]){grid-column:1/-1}
#pos-invoice-review .invoice-optional{margin:7px 0;font-size:12px}
#pos-invoice-review .invoice-optional summary{cursor:pointer;color:#176353;font-weight:600}
#pos-invoice-review .invoice-optional .field{margin:6px 0 0}
#pos-invoice-review #pos-invoice-confirm{padding:7px 10px;font-size:12px}
#pos-invoice-review [data-invoice-status]{font-size:11px;margin:5px 0 0}
@media(max-width:600px){.cash-open-selection{grid-template-columns:1fr}.cash-flow-dialog:has(#cash-open){padding:12px}.cash-flow-dialog:has(#cash-open) .tablewrap tbody{grid-template-columns:1fr}.cash-flow-dialog:has(#cash-open) .tablewrap tr{grid-template-columns:1fr 57px 80px}}
#pos-client-modal{padding:15px 18px;max-width:480px}
#pos-client-register h3{font-size:17px;margin:0 0 9px}
#pos-client-register .field{margin:0 0 7px}
#pos-client-register .field input,#pos-client-register .field select{min-height:36px;padding:6px 9px}
#pos-client-register .client-document-row{display:grid;grid-template-columns:108px minmax(0,1fr);gap:8px}
#pos-client-register .client-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#pos-client-register .form-actions{margin:8px 0 0;padding-top:9px}
@media(max-width:420px){#pos-client-register .client-contact-row{grid-template-columns:1fr}}
.pos-client-notice:not([hidden]){display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;padding:7px 9px;border:1px solid #e5d8ad;border-radius:8px;background:#fffaf0;color:#634b1d;font-size:12px}
.pos-client-notice .btn{min-height:30px;padding:5px 9px;font-size:12px;background:#fff}
.sales-filter{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,230px) auto;align-items:end;gap:10px;padding:14px 16px}
.sales-filter .field{margin:0}.sales-filter .btn{min-height:40px}
@media(max-width:650px){.sales-filter{grid-template-columns:1fr 1fr;padding:12px}.sales-filter .field:first-child{grid-column:1/-1}.sales-filter .btn{grid-column:1/-1}.sales-filter+.tablewrap{overflow-x:auto}}

/* Caja: resumen legible en dos columnas sin tablas de filas vacías. */
.cash-digest-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 16px;margin:12px 0;color:var(--ink)}.cash-digest-heading span{font-size:12px;color:var(--muted)}
.cash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.cash-kpis>div{padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}.cash-kpis small{display:block;color:var(--muted);font-size:11px}.cash-kpis strong{display:block;margin-top:2px;font-size:17px;color:var(--ink)}
.cash-digest-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:12px;align-items:start}.cash-digest-grid>.panel{margin:0;min-width:0;padding:16px}.cash-digest-grid h3{margin:0 0 10px}.cash-digest-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cash-digest-pair h4{font-size:12px;margin:0 0 5px;color:var(--muted)}.cash-digest-grid th,.cash-digest-grid td{padding:7px 8px;font-size:12px}.cash-digest-grid details{margin:10px 0}.cash-digest-note{font-size:12px;margin:8px 0}
@media(max-width:1150px){.cash-digest-grid{grid-template-columns:1fr}}@media(max-width:650px){.cash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-digest-pair{grid-template-columns:1fr}.cash-digest-grid>.panel{padding:13px}}
.collection-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.collection-results{display:grid;gap:6px;max-height:260px;overflow:auto}.collection-results button{display:flex;justify-content:space-between;gap:12px;text-align:left;align-items:center}.collection-results button span{font-size:12px;color:var(--muted)}#collection-form{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;max-width:760px}#collection-electronic{padding:10px;background:#f1f7f4;border-radius:10px}#collection-result .note{margin:12px 0}@media(max-width:650px){.collection-methods{grid-template-columns:1fr}.collection-results button{align-items:start;flex-direction:column}}

/* Historial de ventas: filtros claros y filas densas sin perder legibilidad. */
.sales-filter{grid-template-columns:minmax(190px,2fr) repeat(4,minmax(135px,1fr)) auto auto}
.sales-list .tablewrap{overflow-x:auto}.sales-list table{font-size:12px}.sales-list th,.sales-list td{padding:8px 10px;line-height:1.25;white-space:nowrap}.sales-list td:nth-child(3){max-width:205px;overflow:hidden;text-overflow:ellipsis}.sales-list td .btn{min-height:28px;padding:5px 9px;font-size:11px}.sales-list .form-actions{padding:9px 14px}
@media(max-width:850px){.sales-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filter .field:first-child{grid-column:1/-1}.sales-filter .btn{grid-column:1/-1}}
@media(max-width:460px){.sales-list th,.sales-list td{padding:7px 8px}.sales-filter{gap:7px;padding:10px}}

/* Catálogo: filas compactas, acciones en una línea y clasificaciones plegables. */
#product-table .tablewrap{overflow:auto;max-height:65vh}
#product-table table{font-size:12px}
#product-table th,#product-table td{padding:7px 9px;line-height:1.28;vertical-align:middle}
#product-table td small{margin-top:2px}
#product-table .catalog-row-actions{flex-wrap:nowrap;gap:5px}
#product-table .catalog-row-actions .btn{min-height:28px;padding:5px 8px;font-size:11px}
#product-classification>.form-actions{margin:8px 0;gap:6px}
.product-group-list{border:1px solid var(--line);border-radius:9px;max-height:62vh;overflow:auto}
.product-group-item{border-bottom:1px solid var(--line)}.product-group-item:last-child{border-bottom:0}
.product-group-item summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:9px 12px;font-size:12px}
.product-group-item summary:hover{background:#f4f8f6}.product-group-item summary span{color:var(--muted);white-space:nowrap}
.product-group-item>div{display:flex;flex-wrap:wrap;gap:5px;padding:0 12px 10px}
.product-subgroup{font-size:11px;padding:4px 7px;border-radius:6px;background:#eef4f1;color:#31594d}
.catalog-picker-field{margin:0 0 6px}.catalog-picker-field input{min-height:37px}.catalog-picker-field small{display:block;margin-top:4px}
#price-select{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:end}
#price-select>.field{margin:0}#price-select>.btn{min-height:39px}
.cash-review-summary{padding:12px 16px;margin-bottom:10px}.cash-review-summary h3{margin:0 0 8px}.cash-review-summary p{margin:6px 0;line-height:1.4}
.cash-review-summary .note,.cash-review-summary .warning{padding:8px 10px;margin:6px 0}
.cash-review-summary th,.cash-review-summary td{padding:6px 9px;font-size:11px}
.cash-review-summary details{margin:6px 0}.cash-review-summary summary{cursor:pointer;font-size:12px}
.cash-review-amount{font-size:12px;color:var(--ink);font-weight:600}
@media(max-width:850px){#price-select{grid-template-columns:1fr 1fr}#price-select>.btn{grid-column:1/-1}#product-table .catalog-row-actions{flex-wrap:wrap}}
@media(max-width:560px){#price-select{grid-template-columns:1fr}#price-select>.btn{grid-column:auto}.product-group-item summary{align-items:flex-start;flex-direction:column;gap:2px}.cash-review-summary{padding:11px}}
/* Bandeja de facturación: consulta compacta sin ocultar campos de detalle. */
.fiscal-queue .cards{gap:9px;margin:8px 0 12px}.fiscal-queue .cards>*{padding:11px 13px;min-height:0}.fiscal-queue .cards p{margin:2px 0}.fiscal-queue .panel{padding:14px;margin-bottom:10px}.fiscal-queue .panel h3{margin:0 0 8px}.fiscal-queue .tablewrap td,.fiscal-queue .tablewrap th{padding:7px 9px;font-size:12px}.fiscal-queue .tablewrap .btn{font-size:11px;padding:6px 9px}.fiscal-filter{display:flex;align-items:center;gap:8px;margin:10px 0}.fiscal-filter .field{margin:0;flex:1;max-width:420px}.fiscal-filter input{padding:8px 10px;font-size:13px}.fiscal-filter .btn{padding:8px 12px}.fiscal-notice{font-size:12px;color:var(--muted)}.fiscal-notice summary{cursor:pointer}.fiscal-notice .note{margin:5px 0 0}@media(max-width:700px){.fiscal-queue .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-queue .tablewrap{overflow-x:auto}.fiscal-filter .field{min-width:0}.fiscal-filter .btn{white-space:normal}}
.fiscal-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.fiscal-review>div{padding:12px;border:1px solid var(--border,#d8e0e7);border-radius:12px;background:var(--surface,#fff)}.fiscal-review p{margin:5px 0 0}.fiscal-total{display:flex;justify-content:space-between;gap:16px;padding:12px 3px 0;border-top:1px solid var(--border,#d8e0e7)}.fiscal-queue details.panel>summary{cursor:pointer;font-weight:700}.fiscal-queue details.panel[open]>summary{margin-bottom:10px}@media(max-width:600px){.fiscal-review{grid-template-columns:1fr}.fiscal-queue .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cards.fiscal-utility-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.fiscal-rate-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;padding:12px 16px;margin:0 0 12px;border:1px solid var(--border,#d8e0e7);border-radius:8px;background:var(--surface,#fff);font-size:13px;color:var(--muted)}
.fiscal-rate-strip strong{white-space:nowrap;color:var(--ink,#182b3d);font-size:14px;font-weight:600}
.fiscal-rate-strip strong span{color:var(--green,#176553)}
.fiscal-rate-strip small{margin-left:auto;font-size:11px}
.fiscal-rate-label{font-weight:600;color:var(--ink,#182b3d)}
.fiscal-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:700px){.fiscal-rate-strip small{margin-left:0;width:100%}}

/* Homologación fiscal: edición focal dentro de ventana modal. */
.fbo-map-dialog{width:min(720px,calc(100vw - 28px));max-height:min(88vh,780px);margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 24px 70px #10263845;overflow:auto}
.fbo-map-dialog::backdrop{background:#102638a6}
.fbo-map-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px 12px;background:var(--white);border-bottom:1px solid var(--line)}
.fbo-map-header h3{margin:5px 0 0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.fbo-map-eyebrow{font-size:10px;font-weight:750;letter-spacing:.08em;color:var(--green)}
.fbo-map-close{width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--muted);font-size:22px;line-height:1}
.fbo-map-dialog #fbo-map{padding:14px 22px 20px}
.fbo-map-dialog .field{margin:8px 0}
.fbo-map-dialog .field input,.fbo-map-dialog .field select{min-height:40px;padding:9px 11px;border-radius:8px}
.fbo-map-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:10px}
.fbo-map-search .field{margin:0}
.fbo-map-search>.btn{min-height:40px}
.fbo-map-results,.fbo-map-unit-step{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.fbo-map-status{margin:6px 0;color:var(--muted);font-size:12px;line-height:1.45}
.fbo-map-pager{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.fbo-map-subhead{margin:12px 0 4px;font-size:12px;font-weight:700;color:var(--ink)}
.fbo-map-error:empty{display:none}
.fbo-map-error:not(:empty){margin:10px 0 0;padding:9px 11px;border-radius:8px;background:#fff2f4;color:#9d2440;font-size:13px}
.fbo-map-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}
@media(max-width:600px){.fbo-map-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;inset:0}.fbo-map-header{padding:12px 16px 10px}.fbo-map-header h3{font-size:15px}.fbo-map-dialog #fbo-map{padding:8px 16px calc(16px + env(safe-area-inset-bottom))}.fbo-map-dialog .field{margin:6px 0}.fbo-map-search{grid-template-columns:1fr;margin-top:5px}.fbo-map-results,.fbo-map-unit-step{margin-top:9px;padding-top:8px}.fbo-map-pager{margin-top:3px}.fbo-map-footer{position:sticky;bottom:-16px;z-index:1;background:var(--white);padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin-top:9px}.fbo-map-footer .btn{flex:1;min-width:0}}

/* v0.18.10 · trazabilidad visible de promociones en POS */
.pos-price-original{display:block;color:var(--muted);text-decoration:line-through;font-size:10px;line-height:1.2}.pos-price-final{display:block;color:var(--ink);font-size:12px;margin-top:2px}.pos-promo-badge{display:inline-block;background:#eaf8f1;color:#0b6b50;border-radius:6px;padding:3px 6px;font-size:9px;font-weight:700;line-height:1.2;margin-bottom:3px}.pos-promo-badge+small{display:block;color:#0b6b50;font-size:10px;white-space:nowrap}.pos-discount-summary{display:grid;gap:4px;margin:-2px 0 9px;padding:9px 11px;border:1px solid #d9e9e1;border-radius:8px;background:#f7fbf9;font-size:11px}.pos-discount-summary span{display:flex;justify-content:space-between;gap:10px}.pos-discount-summary span:last-child strong{color:#0b6b50}
@media(max-width:760px){#cart tr td:nth-child(5){grid-column:2;grid-row:3}#cart tr td:nth-child(6){grid-column:1;grid-row:4}#cart tr td:nth-child(7){grid-column:2;grid-row:4;text-align:left}#cart tr td:nth-child(8){grid-column:2;grid-row:5;text-align:right}#cart tr td:nth-child(3)::before,#cart tr td:nth-child(4)::before,#cart tr td:nth-child(5)::before,#cart tr td:nth-child(6)::before,#cart tr td:nth-child(7)::before{display:block;font-size:10px;font-weight:600;color:var(--muted)}#cart tr td:nth-child(3)::before{content:'Presentación'}#cart tr td:nth-child(4)::before{content:'Precio'}#cart tr td:nth-child(5)::before{content:'Descuento'}#cart tr td:nth-child(6)::before{content:'Subtotal'}#cart tr td:nth-child(7)::before{content:'Existencias'}}

/* v0.18.12 · ficha fiscal completa desde detalle de venta */
.sale-fiscal-document{display:grid;gap:10px;margin-bottom:12px}.sale-fiscal-document .section-title{align-items:flex-start}.sale-fiscal-document .section-title h3{margin:0 0 3px}.sale-fiscal-document .form-actions{display:flex;flex-wrap:wrap;gap:8px}.fiscal-cuf{overflow-wrap:anywhere;word-break:break-word}
.sale-fiscal-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:4px 0 12px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}.sale-fiscal-meta>div{background:#fff;padding:12px 14px}.sale-fiscal-meta dt{font-size:10px;color:var(--muted);margin-bottom:4px}.sale-fiscal-meta dd{margin:0;font-size:12px;font-weight:650;overflow-wrap:anywhere}.sale-fiscal-cuf,.sale-fiscal-public,.sale-fiscal-downloads{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fbfcfd}.sale-fiscal-cuf{display:grid;gap:5px}.sale-fiscal-cuf span,.sale-fiscal-downloads>strong,.sale-fiscal-public strong{font-size:11px}.sale-fiscal-cuf code,.sale-fiscal-public code{display:block;overflow-wrap:anywhere;word-break:break-all}.sale-fiscal-public{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}.sale-fiscal-public small{display:block;color:var(--muted);font-size:10px;margin:3px 0 7px}.sale-fiscal-public .table-actions,.sale-fiscal-downloads .table-actions{justify-content:flex-start}.sale-fiscal-downloads{display:grid;gap:10px}@media(max-width:760px){.sale-fiscal-meta{grid-template-columns:1fr 1fr}.sale-fiscal-public{grid-template-columns:1fr}.sale-fiscal-public .table-actions{width:100%}}

/* v0.18.13 · Detalle de venta reorganizado por sectores */
.sale-detail-page{display:grid;gap:20px}
.sale-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:2px 0 4px}
.sale-detail-title{min-width:0}.sale-detail-kicker,.sale-section-kicker{display:block;margin-bottom:5px;color:#577166;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.sale-detail-title h2{margin:0;font-size:28px;letter-spacing:-.035em}.sale-detail-title p{margin:6px 0 0;color:var(--muted);font-size:13px}.sale-detail-header-actions{flex:none}
.sale-detail-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}
.sale-detail-overview>div{display:flex;min-height:94px;flex-direction:column;justify-content:center;gap:4px;padding:16px 18px;border-right:1px solid var(--line)}.sale-detail-overview>div:last-child{border-right:0}
.sale-detail-overview span{color:var(--muted);font-size:11px}.sale-detail-overview strong{font-size:21px;font-weight:650;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.sale-detail-overview small{color:#819087;font-size:10px}.sale-detail-overview .sale-overview-text{font-size:14px;letter-spacing:0}
.sale-detail-slot:empty{display:none}
.sale-detail-section{border:1px solid #dfe6e9;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 8px #152d3b05}
.sale-detail-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid var(--line);background:#f7f9fb}
.sale-detail-section-head h3{margin:0 0 4px;font-size:17px;font-weight:650;letter-spacing:-.025em}.sale-detail-section-head p{margin:0;color:var(--muted);font-size:12px}
.sale-fiscal-section{border-color:#cfe1da;border-left:4px solid var(--green)}.sale-fiscal-section-head{background:#eef7f3}.sale-fiscal-section-head .sale-section-kicker{color:var(--green)}
.sale-commercial-section{border-left:4px solid #6c93b5}.sale-commercial-section>.sale-detail-section-head{background:#f2f6fa}.sale-commercial-section .sale-section-kicker{color:#527b9e}
.sale-control-section{border-left:4px solid #7d8796}.sale-control-section>.sale-detail-section-head{background:#f5f6f8}.sale-control-section .sale-section-kicker{color:#677181}
.sale-fiscal-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.8fr);gap:0}
.sale-fiscal-main{padding:20px}.sale-fiscal-side{display:grid;align-content:start;gap:12px;padding:20px;border-left:1px solid var(--line);background:#fbfcfc}
.sale-fiscal-invoice-head{display:grid;grid-template-columns:1fr 1fr;margin-bottom:14px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.sale-fiscal-invoice-head>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px}.sale-fiscal-invoice-head>div+div{border-left:1px solid var(--line)}.sale-fiscal-invoice-head span{color:var(--muted);font-size:11px}.sale-fiscal-invoice-head strong{font-size:17px;font-weight:650}
.sale-fiscal-meta{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 14px}.sale-fiscal-meta>div{padding:11px 13px}.sale-fiscal-meta dd{font-size:12px}
.sale-fiscal-cuf{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f8fafb}.sale-fiscal-cuf>div{min-width:0}.sale-fiscal-cuf span{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.sale-fiscal-cuf code{font-size:10px;line-height:1.5}
.sale-fiscal-action-card{padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff}.sale-action-card-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:11px}.sale-action-card-head strong{display:block;margin-bottom:2px;font-size:13px}.sale-action-card-head small{display:block;color:var(--muted);font-size:10px;line-height:1.45}.sale-action-icon{display:grid;place-items:center;width:27px;height:27px;flex:none;border-radius:7px;background:#e9f4ef;color:var(--green);font-size:13px;font-weight:700}.sale-action-buttons{display:flex;flex-wrap:wrap;gap:7px}.sale-action-buttons .btn{min-height:35px;padding:7px 10px;font-size:11px}.sale-fiscal-management{border-color:#eadde0}.sale-fiscal-management .sale-action-icon{background:#f7ecee;color:#9b4451}.sale-client-link{display:block;margin:0 0 10px;padding:8px 9px;border-radius:6px;background:#f6f8fa;color:#536376;font-size:9px;line-height:1.45;word-break:break-all}
.sale-fiscal-empty{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.sale-fiscal-empty strong{font-size:15px}.sale-fiscal-empty p{margin:4px 0 0;color:var(--muted);font-size:12px}.sale-fiscal-request{padding:0 20px 20px}
.sale-commercial-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.7fr);gap:16px;padding:20px}.sale-detail-block{min-width:0;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.sale-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fafbfc}.sale-block-head h4{margin:0;font-size:13px;font-weight:650}.sale-block-head span{color:var(--muted);font-size:10px}.sale-detail-block .tablewrap{border:0;border-radius:0}.sale-detail-block th{background:#f7f9fa}.sale-payment-list{display:grid}.sale-payment-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border-bottom:1px solid var(--line)}.sale-payment-row:last-child{border-bottom:0}.sale-payment-row strong{display:block;font-size:13px}.sale-payment-row small{display:block;margin-top:2px;color:var(--muted);font-size:10px}.sale-payment-row b{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}.sale-commercial-note{margin:0 20px 20px;padding:10px 12px;border-left:2px solid #8eb0cb;background:#f3f7fa;color:#536b7e;font-size:11px}
.sale-control-summary{display:grid;grid-template-columns:2fr 1fr;gap:1px;margin:20px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--line)}.sale-control-summary>div{padding:13px 14px;background:#fff}.sale-control-summary span{display:block;margin-bottom:4px;color:var(--muted);font-size:10px}.sale-control-summary strong{font-size:12px}.sale-control-history{margin:0 20px 18px}.sale-control-history summary{cursor:pointer;font-size:12px;font-weight:650}.sale-control-history .tablewrap{margin-top:10px}.sale-control-section>.note{margin:0 20px 18px}.sale-control-actions{margin:0 20px 20px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd}.sale-control-actions>.sale-block-head{margin:-15px -15px 12px}.sale-control-actions .form-actions{margin-top:12px}.sale-control-actions form{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:1050px){.sale-fiscal-layout{grid-template-columns:1fr}.sale-fiscal-side{border-top:1px solid var(--line);border-left:0;grid-template-columns:repeat(2,minmax(0,1fr))}.sale-fiscal-management{grid-column:1/-1}.sale-commercial-grid{grid-template-columns:1fr}.sale-detail-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-detail-overview>div:nth-child(2){border-right:0}.sale-detail-overview>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:680px){.sale-detail-page{gap:14px}.sale-detail-header{flex-direction:column}.sale-detail-header-actions{width:100%}.sale-detail-header-actions .btn{width:100%}.sale-detail-overview{grid-template-columns:1fr}.sale-detail-overview>div{min-height:76px;border-right:0;border-bottom:1px solid var(--line)}.sale-detail-overview>div:last-child{border-bottom:0}.sale-detail-section-head{padding:15px 16px}.sale-fiscal-layout{display:block}.sale-fiscal-main,.sale-fiscal-side,.sale-commercial-grid{padding:15px}.sale-fiscal-side{display:grid;grid-template-columns:1fr}.sale-fiscal-management{grid-column:auto}.sale-fiscal-invoice-head{grid-template-columns:1fr}.sale-fiscal-invoice-head>div+div{border-top:1px solid var(--line);border-left:0}.sale-fiscal-meta{grid-template-columns:1fr 1fr}.sale-fiscal-cuf{align-items:flex-start;flex-direction:column}.sale-commercial-note{margin:0 15px 15px}.sale-control-summary{grid-template-columns:1fr;margin:15px}.sale-control-history,.sale-control-section>.note{margin-right:15px;margin-left:15px}.sale-control-actions{margin:0 15px 15px}.sale-action-buttons .btn,.sale-action-buttons a.btn{flex:1 1 auto}.sale-fiscal-empty{align-items:flex-start;flex-direction:column;padding:17px}.sale-fiscal-request{padding:0 15px 15px}}


/* v0.18.15 · Catálogo y promociones simplificados */
.catalog-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.catalog-list-toolbar>div{display:grid;gap:3px}.catalog-list-toolbar strong{font-size:15px}.catalog-list-toolbar small{color:var(--muted);font-size:11px}.catalog-create-panel{border-left:3px solid var(--brand,#16816b)}.catalog-list-muted{opacity:.84}.catalog-dialog-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:4px 0 12px;overflow:auto}.catalog-dialog-tabs button{border:0;background:transparent;padding:10px 12px;color:var(--muted);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent}.catalog-dialog-tabs button.active{color:var(--brand,#146f5e);border-bottom-color:currentColor}.catalog-edit-panel[hidden]{display:none}.catalog-photo-preview{min-height:120px;border:1px dashed var(--line);border-radius:10px;padding:12px;display:grid;place-items:center;margin:10px 0 14px;background:var(--surface-soft,#f8fafb)}.catalog-photo-preview img{display:block;max-width:240px;max-height:200px;border-radius:8px;object-fit:contain}.promotion-dialog{width:min(680px,95vw);max-height:88vh;overflow:auto}.promotion-dialog form{padding-top:8px}.promotion-dialog .warning[hidden]{display:none}
@media(max-width:700px){.catalog-list-toolbar{align-items:stretch;flex-direction:column}.catalog-list-toolbar .btn{width:100%}.promotion-dialog .grid3{grid-template-columns:1fr}}
/* v0.18.16 · Catálogo por tarea: búsqueda, filtros y ficha modal. */
.catalog-filters{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 14px}.catalog-filters label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:600}.catalog-filters select{min-height:40px;min-width:140px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#172436);font:inherit}.catalog-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 0}.catalog-pagination span{font-size:13px;color:var(--muted)}#product-table .catalog-row-actions .btn{min-height:40px;padding:8px 12px;font-size:13px}#product-table td strong{font-weight:650}#product-table td small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.catalog-create-dialog{width:min(780px,calc(100vw - 24px));max-height:min(92vh,900px);padding:0;border:0;border-radius:16px;overflow:auto;box-shadow:0 24px 80px rgba(15,30,40,.22)}.catalog-create-dialog::backdrop{background:rgba(10,25,35,.54)}.catalog-create-dialog .panel{border:0;margin:0;padding:24px}.catalog-create-dialog .panel h3{margin-bottom:14px}.catalog-create-dialog .catalog-create-panel{border-left:0}.catalog-create-dialog .form-actions{justify-content:flex-end}
@media(max-width:700px){.catalog-filters{display:grid;grid-template-columns:1fr 1fr}.catalog-filters label{display:grid;gap:4px}.catalog-filters select{min-width:0;width:100%}.catalog-pagination{justify-content:space-between;gap:6px}.catalog-pagination .btn{min-height:44px}.catalog-create-dialog{width:100vw;max-width:100vw;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:16px 16px 0 0}.catalog-create-dialog .panel{padding:18px}.catalog-create-dialog .grid2,.catalog-create-dialog .grid3{grid-template-columns:1fr}}
.catalog-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.catalog-toolbar-actions .btn{min-height:40px}.catalog-edit-dialog [data-import-result]{white-space:pre-line;margin-top:12px;color:var(--ink,#172436)}.catalog-edit-dialog [data-import-result]:empty{display:none}
@media(max-width:700px){.catalog-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.catalog-toolbar-actions .btn{width:100%;text-align:center}.catalog-toolbar-actions [data-new-product]{grid-column:1/-1}}
.dashboard-main-grid.is-single{grid-template-columns:minmax(0,1fr)}.dashboard-main-grid.is-single .dashboard-actions{max-width:900px}
/* Catálogo: lista de trabajo y ficha, versión 18.18 */
.catalog-list-toolbar{align-items:flex-start;margin-bottom:18px}.catalog-list-toolbar strong{font-size:20px;letter-spacing:-.025em;color:var(--ink)}.catalog-list-toolbar small{font-size:13px;line-height:1.4}.catalog-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog-toolbar-actions .btn{min-height:40px}.catalog-list{border-top:1px solid var(--line)}.catalog-item{display:grid;grid-template-columns:minmax(240px,1fr) minmax(104px,130px) 90px 130px;align-items:center;gap:16px;padding:13px 6px;border-bottom:1px solid var(--line);min-height:76px}.catalog-item:hover{background:rgba(20,44,69,.025)}.catalog-item-main{min-width:0;display:grid;gap:3px}.catalog-item-main>strong{font-size:14px;line-height:1.35;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-item-meta,.catalog-item-category{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-item-category{color:var(--ink);opacity:.73}.catalog-item-category span{color:var(--muted);padding:0 3px}.catalog-item-price{text-align:right;font-variant-numeric:tabular-nums}.catalog-item-price strong{display:block;font-size:14px}.catalog-item-price small{font-size:12px;color:var(--muted)}.catalog-item-state{text-align:center}.catalog-item-action{text-align:right}.catalog-item-action .btn{min-height:40px;white-space:nowrap}.catalog-item-action .btn span{font-size:17px;margin-left:5px}.catalog-sheet-summary{display:grid;gap:4px;padding:2px 0 16px}.catalog-sheet-kicker{font-size:11px;letter-spacing:.09em;font-weight:700;color:var(--brand,#146f5e)}.catalog-sheet-summary strong{font-size:20px;line-height:1.25;letter-spacing:-.025em}.catalog-sheet-summary>span:last-child{font-size:12px;color:var(--muted)}.catalog-sheet-links{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 16px;border-bottom:1px solid var(--line)}.catalog-sheet-links .btn{min-height:40px}.catalog-edit-dialog{width:min(860px,calc(100vw - 24px))}.catalog-create-dialog .panel{padding:24px 28px}.catalog-create-dialog .panel h3{font-size:21px;letter-spacing:-.025em}.catalog-create-dialog .field{margin-bottom:12px}.catalog-create-dialog details{padding:10px 0}
@media(max-width:900px){.catalog-item{grid-template-columns:minmax(0,1fr) 110px 115px;gap:10px}.catalog-item-state{display:none}}
@media(max-width:620px){.catalog-list-toolbar strong{font-size:19px}.catalog-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.catalog-toolbar-actions .btn{width:100%}.catalog-toolbar-actions .primary{grid-column:1/-1;grid-row:1}.catalog-item{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:14px 2px}.catalog-item-main{grid-column:1}.catalog-item-price{grid-column:2;align-self:start}.catalog-item-action{grid-column:1/-1;text-align:left}.catalog-item-action .btn{width:100%;display:flex;justify-content:space-between;align-items:center}.catalog-item-main>strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.catalog-item-category{white-space:normal}.catalog-edit-dialog{width:100vw;max-width:100vw;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:16px 16px 0 0}.catalog-sheet-links .btn{flex:1}.catalog-create-dialog .panel{padding:18px}}
.stock-controls{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(155px,1fr) minmax(155px,1fr);gap:10px;align-items:end;margin:4px 0 8px}
.stock-controls .field{margin:0;max-width:none}.stock-explainer{font-size:12px;color:var(--muted);margin:7px 0 9px}
#page[data-module="stocks"] .module-body{margin-top:10px}#page[data-module="stocks"] .module-view>.panel{margin-top:0}
#stock-table .tablewrap{overflow-x:auto}#stock-table table{font-size:12px}#stock-table th,#stock-table td{padding:7px 9px;line-height:1.3}#stock-table td:first-child{min-width:235px}#stock-table td:first-child small{display:block;margin-top:2px;color:var(--muted)}#stock-table td:nth-child(n+3):nth-child(-n+5){font-variant-numeric:tabular-nums;text-align:right}#stock-table .btn{padding:5px 8px;font-size:11px;white-space:nowrap}
#stock-paging{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:9px 0}#stock-paging span{font-size:12px;color:var(--muted)}.stock-export{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid var(--line);padding-top:10px;margin-top:9px}.stock-export span{font-size:12px;color:var(--muted);margin-right:auto}.stock-export .btn{font-size:11px;padding:6px 9px}
.stock-context{border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.45;background:#f8fafb}
#ledger-table .tablewrap{overflow-x:auto}#ledger-table th,#ledger-table td{padding:7px 9px;font-size:12px}
@media(max-width:740px){.stock-controls{grid-template-columns:1fr}.stock-export span{flex-basis:100%}#stock-table td:first-child{min-width:160px}}

.backup-external-card .label{display:block;margin-bottom:6px}.backup-external-card p,.backup-history td small{overflow-wrap:anywhere}.backup-history td small{display:block;margin-top:4px}.backup-history td:first-child strong{display:block}

/* Backup destination uses the existing dialog, typography and palette. */
.backup-destination{display:flex;gap:12px;align-items:flex-start;padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:10px;cursor:pointer}.backup-destination input{width:18px;height:18px;flex-shrink:0;margin-top:2px}.backup-destination small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}.backup-destination:has(input:checked){outline:2px solid var(--brand,var(--line))}.backup-destination:has(input:disabled){opacity:.65;cursor:default}#backup-test-automatic{margin-top:12px}.backup-dialog{max-height:90dvh;overflow:auto;box-sizing:border-box}

/* Acciones de personal visibles y agrupadas sin ampliar la página. */
.staff-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:230px;max-width:420px}
.staff-actions .btn{font-size:12px;padding:8px 10px}

.terminal-configuration{display:grid;gap:8px;min-width:220px;max-width:280px;white-space:normal}
.terminal-configuration .field{margin:0;min-width:0}
.terminal-configuration select{width:100%;max-width:280px}
@media(max-width:700px){.terminal-configuration{min-width:0;max-width:100%;width:100%}.terminal-configuration select{max-width:100%}}

.staff-help{padding:12px;margin:0;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.terminal-configuration+.btn{grid-column:2;justify-self:start}}

.proposal-private{padding:12px;border:1px dashed var(--line);border-radius:8px;margin:12px 0;white-space:normal}.proposal-terms{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:12px}.proposal-variant{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:end;margin:8px 0}.proposal-variants{white-space:normal}.production-record{padding:12px 0;border-bottom:1px solid var(--line)}.production-record h4{margin:4px 0}.production-form fieldset{border:1px solid var(--line);margin:12px 0;padding:12px}.production-material{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;align-items:end}.production-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.production-form{max-width:1000px}.production-note{font-size:12px;color:var(--muted)}@media(max-width:700px){.proposal-variant,.production-material{grid-template-columns:1fr 1fr}.production-tabs .btn{font-size:12px;padding:8px}.proposal-private .grid3{grid-template-columns:1fr}}

/* Marca corporativa MIONEXO: tema corporativo adicional. Colores históricos de empresas intactos. */
.swatch-nexo{background:linear-gradient(130deg,#0A2540 12%,#1BA2FF 54%,#22C7C7 75%,#6F5BFF)}
.workspace[data-theme=nexo]{--green:#1BA2FF;--blue:#1BA2FF;--accent:#22C7C7;--nav:#0A2540}
/* Compras: estado breve, sin botones persistentes de borrador. */
#purchase-draft-status{margin:.35rem 0 .75rem}
#purchase-draft-status:empty{display:none}

/* Seguimiento QR seguro por cuenta (20.103) */
.qr-pending-account {border:1px solid var(--border,#d6dee6);border-radius:12px;padding:1rem;margin:1rem 0;background:var(--card,#fff)}
.qr-pending-account>strong {display:inline-block;margin-right:.5rem}
.qr-pending-item {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;padding:.75rem 0;border-top:1px solid #e2e8f0}
.qr-pending-item .form-actions {display:flex;flex-wrap:wrap;gap:.4rem}
.qr-replace-account-form{display:grid;gap:.75rem;padding:.75rem 0}
@media(max-width:640px){.qr-pending-item .form-actions{width:100%}.qr-pending-item .btn{flex:1}}

/* MIONEXO 0.20.104 — secciones QR dinámico, sin panel de pendientes en portada. */
.qr-workspace-tabs{display:flex;gap:5px;padding:5px;background:var(--paper,#f3f6fa);border:1px solid #dfe8f1;border-radius:11px;margin:14px 0 16px;overflow-x:auto;scrollbar-width:thin}
.qr-workspace-tab{flex:1 0 auto;min-width:116px;min-height:43px;padding:10px 15px;background:transparent;border:0;border-radius:8px;color:#536578;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.qr-workspace-tab.active{color:#075cac;background:#fff;box-shadow:0 1px 6px #143b651c}
.qr-workspace-tab:focus-visible{outline:2px solid #1277c5;outline-offset:2px}
.qr-workspace-panel[hidden]{display:none!important}
.qr-workspace-panel{min-width:0}
.qr-workspace-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 15px}
.qr-workspace-panel-heading h3{font-size:19px;line-height:1.25;margin:0 0 4px;color:#203249}
.qr-workspace-panel-heading p{font-size:12px;color:#677789;line-height:1.5;margin:0}
.qr-workspace-panel-heading .btn{min-height:38px}
.qr-pending-totals{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding:11px 14px;background:#f6f9fc;border:1px solid #e1e8ef;border-radius:10px;font-size:12px;margin:0 0 12px}
.qr-pending-totals strong{font-size:16px;color:#223449}
.qr-pending-totals span{color:#657488}
.qr-pending-help,.qr-workspace-summary,.qr-pending-empty{font-size:12px;line-height:1.5;color:#657589;margin:8px 0 12px}
.qr-pending-account{padding:13px 15px;margin:12px 0;border-radius:11px}
.qr-pending-account-header{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.qr-pending-account-header small{font-size:11px;color:#718295}
.qr-pending-count{font-size:11px;font-weight:700;border-radius:20px;background:#fff4dc;color:#805919;padding:5px 9px}
.qr-pending-item{gap:12px;padding:12px 0}
.qr-pending-main{min-width:0;overflow-wrap:anywhere;flex:1 1 230px;font-size:12px}
.qr-pending-main strong{display:block;margin:0 0 5px;color:#233852;font-size:13px}
.qr-pending-meta{display:flex;gap:6px 14px;flex-wrap:wrap;margin:0 0 6px;color:#475c70}
.qr-pending-state{background:#eef4f9;border-radius:6px;padding:2px 7px;font-size:11px;color:#3c647f}
.qr-pending-main small{color:#8492a2}
.qr-pending-item .form-actions .btn{min-height:36px;padding:8px 12px;font-size:12px}
.qr-movements-list{border:1px solid #e2e9f0;border-radius:10px;overflow:hidden;background:#fff}
.qr-movement-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-top:1px solid #e7edf2}
.qr-movement-row:first-child{border-top:0}
.qr-movement-row strong{display:block;font-size:12px;color:#293e53}
.qr-movement-row small{display:block;font-size:11px;color:#718297;margin:4px 0 0;overflow-wrap:anywhere}
.qr-movement-amount{font-size:13px;font-weight:700;white-space:nowrap}
@media(max-width:640px){.qr-workspace-tabs{gap:3px;padding:4px}.qr-workspace-tab{font-size:12px;min-width:110px;min-height:42px;padding:10px 12px}.qr-workspace-panel-heading h3{font-size:17px}.qr-pending-account{padding:12px}.qr-pending-item .form-actions{width:100%}.qr-pending-item .form-actions .btn{flex:1 1 130px}}

/* V20.105: desbloqueo guiado sin falsificar anulaciones ni ocultar cuentas */
.qr-pending-recovery{border:1px solid #b9d6ef;background:#f3f9ff;border-radius:10px;padding:14px;margin:16px 0 6px;display:grid;gap:8px}
.qr-pending-recovery-copy strong{font-size:14px;color:#16416b}
.qr-pending-recovery-copy p{font-size:12px;color:#48657b;line-height:1.6;margin:6px 0}
.qr-pending-recovery .qr-replace-account-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:9px 14px;padding:0}
.qr-pending-recovery .qr-replace-account-form .checkline{grid-column:1 / -1;font-size:12px;line-height:1.5}
.qr-pending-recovery .qr-replace-account-form button{grid-column:1 / -1;justify-self:start;min-height:43px}
.qr-pending-recovery small,.qr-pending-recovery-notice{font-size:11px;color:#637a90;line-height:1.55}
.qr-fix-account-shortcut{border-color:#9bbfdd!important;color:#16547d!important}
@media(max-width:640px){.qr-pending-recovery .qr-replace-account-form{grid-template-columns:1fr}.qr-pending-recovery .qr-replace-account-form button{width:100%;justify-self:stretch}}

.qr-pending-retired{border-left:3px solid #5694c7;padding:8px 10px;background:#f1f7fd;font-size:12px;color:#37516d;line-height:1.55}
@media(max-width:560px){.client-compact:has(.pos-client-type) .pos-client-identity{grid-column:1/-1!important}.client-compact:has(.pos-client-type) #pos-client-change{grid-column:2;grid-row:auto;justify-self:end}}
#lot-results .lot-secondary,#page .lot-secondary{display:block;margin-top:3px;color:var(--muted);line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.finance-internal-ref{margin-top:3px;font-size:11px;color:var(--muted)}.finance-internal-ref summary{cursor:pointer}.finance-internal-ref small{display:block;overflow-wrap:anywhere;white-space:normal}

/* V20.247: siete operaciones de inventario, desplazamiento horizontal en móviles. */
.module-navigation.inventory-quick-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;scrollbar-width:thin;padding-bottom:5px;flex-wrap:nowrap}.inventory-quick-tabs .module-tab{flex:0 0 auto;white-space:nowrap}

/* V20.248: apertura individual despejada; el asistente masivo se abre solo bajo demanda. */
.inventory-opening-bulk-link{align-items:center;gap:9px;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.inventory-opening-bulk-link .tiny{line-height:1.5;max-width:540px}
.inventory-opening-back{margin:-6px 0 17px}
@media(max-width:580px){.inventory-opening-bulk-link .btn,.inventory-opening-back .btn{white-space:normal;max-width:100%}}

/* Equipo de Producción: funciones operativas separadas de los perfiles generales. */
.production-staff-tasks{border:1px solid var(--line,#d8e3ec);border-radius:9px;padding:13px;margin:12px 0;background:var(--panel,#fff)}
.production-staff-tasks-header{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line,#d8e3ec);padding-bottom:10px}
.production-staff-tasks-header>div{display:grid;gap:4px}.production-staff-tasks-header small{color:var(--muted,#586c7b)}
.production-staff-grants{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;margin:12px 0}
.production-staff-grants .checkline{margin:0;align-items:flex-start}.production-staff-tasks [role=alert]{margin-top:8px}

/* V20.264: origen visible de cuentas por pagar de Producción. */
.payable-related-document{display:flex;flex-wrap:wrap;gap:.3rem .65rem;align-items:center;padding:.12rem 0}
.finance-origin-link{border:0;background:none;color:var(--primary,#123d72);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;padding:0;cursor:pointer;text-align:left}
.finance-origin-link:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}
.finance-internal-ref{margin-top:.25rem;font-size:.75rem;opacity:.7}
/* Anticipos de clientes de Producción */
.customer-deposit-form{display:grid;gap:14px}.customer-deposit-form .deposit-section-title{font-size:.82rem;font-weight:750;color:#102450;border-bottom:1px solid #dfe7ef;padding:4px 0 9px}.customer-deposit-form .deposit-customer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.customer-deposit-form .deposit-customer-row .btn{min-height:39px;white-space:nowrap}.customer-deposit-form .deposit-form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #dfe7ef}.customer-deposit-form .deposit-form-footer p{margin:0}.customer-deposit-form .grid2{gap:12px}.customer-deposit-form [hidden]{display:none!important}@media(max-width:760px){.customer-deposit-form .deposit-customer-row{grid-template-columns:1fr}.customer-deposit-form .deposit-form-footer{align-items:stretch;flex-direction:column}.customer-deposit-form .form-actions{justify-content:flex-start;flex-wrap:wrap}}

/* Cobros y selección compacta de clientes */
.order-profit-summary{margin-top:14px}.order-profit-summary h3{margin:0 0 14px}.order-profit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-profit-grid span{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #dfe7ef;padding:8px 0}.order-profit-grid strong{white-space:nowrap}.order-profit-result{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#edf7f3;border-radius:8px;font-weight:700}.order-profit-result strong{font-size:1.3rem}@media(max-width:600px){.order-profit-grid{grid-template-columns:1fr}}
.finance-receipt-title,.finance-receipt-detail{display:block;line-height:1.45}.finance-receipt-detail{margin-top:3px;color:#63758a}.finance-receipt-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.finance-receipt-actions select{width:auto;min-width:125px;max-width:100%;min-height:36px}.customer-deposit-form .deposit-customer-row .btn{justify-self:start;min-width:0;display:inline-flex;gap:5px;align-items:center}.customer-deposit-form .deposit-customer-row .btn span:first-child{font-size:17px;line-height:1}.customer-deposit-form .deposit-customer-row{grid-template-columns:minmax(0,1fr) auto}.customer-deposit-form .deposit-customer-row .field{min-width:0}@media(max-width:760px){.customer-deposit-form .deposit-customer-row{grid-template-columns:minmax(0,1fr) auto}.customer-deposit-form .deposit-customer-row .field{margin:0}.finance-receipt-actions select{min-width:110px}}
.inventory-pending-sheet-tools{margin:16px 0 20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--blue,#0f6bff) 4%,#fff)}
.inventory-pending-sheet-tools>a{display:inline-flex;margin-bottom:10px}
.inventory-pending-sheet-tools .form-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
.inventory-pending-sheet-tools input[type=file]{max-width:100%}
.inventory-pending-sheet-tools #inventory-pending-sheet-result ul{margin:8px 0;padding-left:20px;max-height:180px;overflow:auto}
.inventory-pending-sheet-tools #inventory-pending-sheet-result{margin-top:10px;overflow-wrap:anywhere}

/* Ítems consultables desde la bandeja fiscal sin abrir otra pantalla. */
.fiscal-items-preview{width:100%;font-size:12px;color:#344b66}.fiscal-items-preview summary{cursor:pointer;color:#165bb4;font-weight:700}.fiscal-items-preview ul{margin:7px 0 0;padding:7px 10px 7px 22px;border:1px solid #dce7f3;border-radius:8px;background:#f7faff;max-height:170px;overflow:auto;min-width:190px}.fiscal-items-preview li+li{margin-top:5px}.fiscal-items-preview small{color:#677a91}

/* V20.494: homologación SIN compacta y respuesta de IA legible. Solo en el modal fiscal. */
.fbo-map-dialog{width:min(760px,calc(100vw - 24px));max-height:min(92dvh,880px)}
.fbo-map-dialog #fbo-map{padding:10px 18px 14px}
.fbo-map-dialog .field{margin:5px 0}
.fbo-map-dialog .field input,.fbo-map-dialog .field select{min-height:38px;padding:7px 10px}
.fbo-map-dialog .fbo-map-search{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;margin-top:7px}
.fbo-map-dialog .fbo-map-search>.fbo-ai-button{min-height:38px;align-self:end;white-space:nowrap;font-size:12px;padding:8px 12px}
.fbo-map-dialog .fbo-ai-feedback{margin:5px 0 0;font-size:12px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.fbo-map-dialog .fbo-ai-feedback:empty{display:none}
.fbo-map-dialog .fbo-map-results,.fbo-map-dialog .fbo-map-unit-step{margin-top:10px;padding-top:9px}
.fbo-map-dialog .fbo-map-unit-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 12px;align-items:end}
.fbo-map-dialog .fbo-map-unit-step>p,.fbo-map-dialog .fbo-map-unit-step>#fbo-presentation-units{grid-column:1/-1}
.fbo-map-dialog .fbo-map-unit-step>.fbo-map-search{display:block;margin:0}
.fbo-map-dialog .fbo-map-unit-step>.fbo-map-search .field{margin:0}
.fbo-map-dialog .fbo-map-status{margin:4px 0;font-size:11px}
.fbo-map-dialog .fbo-map-pager{margin-top:4px}
.fbo-map-dialog .fbo-map-footer{position:sticky;bottom:0;background:var(--white);z-index:2;margin-top:9px;padding:10px 0 2px}
@media(max-width:600px){.fbo-map-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.fbo-map-dialog #fbo-map{padding:9px 14px calc(18px + env(safe-area-inset-bottom))}.fbo-map-dialog .fbo-map-search{grid-template-columns:1fr}.fbo-map-dialog .fbo-map-search>.fbo-ai-button{justify-self:start}.fbo-map-dialog .fbo-map-unit-step{grid-template-columns:1fr}.fbo-map-dialog .fbo-map-unit-step>p,.fbo-map-dialog .fbo-map-unit-step>#fbo-presentation-units{grid-column:1}}

/* POS: saldo vendible, sin modificar la estructura del carrito. */
#cart .pos-stock-qty{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
#cart .pos-stock-ok{color:#16734e}#cart .pos-stock-low{color:#92600d}#cart .pos-stock-short{color:#b42318}
#cart small.pos-stock-low,#cart small.pos-stock-short{display:block;font-size:10px;line-height:1.3}
.cash-closing-result{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #a8cdb9;border-left:4px solid #19805a;background:#f2faf5;border-radius:9px;padding:14px 16px;margin:10px 0 14px;color:#173d30}.cash-closing-result small,.cash-closing-result strong{display:block}.cash-closing-result small{font-size:12px;margin-bottom:4px}.cash-closing-result strong,.cash-closing-result b{font-size:18px}.cash-closing-result b{white-space:nowrap}.cash-closing-result.cash-closing-alert{border-color:#e3b5a3;border-left-color:#b04b32;background:#fff6f1;color:#842e19}@media(max-width:480px){.cash-closing-result{flex-wrap:wrap}}


/* Archivo: design-system.css */
/* MIONEXO 0.17.59 — lenguaje visual compartido y dashboard reorganizado. */
:root{
  --bg:#f5f7fb;--ink:#15233b;--muted:#68768a;--line:#e5eaf2;--blue:#1555bb;--green:#16846b;
  --white:#fff;--nav:#16273e;--accent:#28b89a;--surface:#fff;--surface-subtle:#f8fafb;
  --control:#fbfcfd;--line-strong:#cbd8df;--success:#176454;--warning:#8a641c;--danger:#a73d4c;--space-unit:4px
}
html{font-size:14px;-webkit-font-smoothing:antialiased}
body{font-family:"Plex Sans",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--bg)}
.workspace{background:var(--bg)}.workspace #sidebar{background:var(--nav)}
.workspace #sidebar .brand{padding-bottom:20px}.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--green);color:#fff!important;font-size:19px}
.brand-wordmark{letter-spacing:-.035em;font-weight:600}.nav-group-label{padding:18px 11px 7px;color:#9ab5c2;font-size:10px;letter-spacing:.09em}
.nav-section{border-top:1px solid #294556}.nav-section summary{min-height:42px;padding:10px 11px;color:#a9c1ce;font-size:10px;letter-spacing:.075em;text-transform:uppercase;font-weight:600}
.nav-section summary::marker{color:var(--accent)}.nav-section-items{padding:0 2px 8px}
.workspace .navitem{min-height:42px;padding:9px 11px;border-radius:7px;margin:1px 0;color:#bcd0e6;font-size:13px;font-weight:400;gap:10px}
.workspace .navitem:hover,.workspace .navitem.active{background:#29415e;color:#fff}.workspace .navitem.active{font-weight:600;box-shadow:inset 2px 0 var(--accent)}
.nav-icon{display:inline-block;width:17px;height:17px;flex:none;background:currentColor;mask:var(--icon-url) center/contain no-repeat;-webkit-mask:var(--icon-url) center/contain no-repeat;opacity:.9}
.navitem.active .nav-icon{opacity:1}
.workspace .topbar{height:72px;padding:0 30px;background:var(--surface);border-bottom:1px solid var(--line)}
.context-eyebrow{font-size:10px;letter-spacing:.075em}.context-header strong{font-size:14px;font-weight:600}
.header-actions{gap:7px}.header-actions .btn{min-height:38px;padding:8px 11px;font-size:12px}
.profile-pill{background:#e7f4ef;color:var(--green);border:1px solid #d5e9e0;border-radius:6px;padding:6px 9px;font-size:11px;font-weight:600;white-space:nowrap}
.page{max-width:1512px;padding:30px 34px 48px}.page-title{align-items:flex-end;gap:18px;margin-bottom:23px}
.page-title h2{margin:3px 0 5px;font-size:27px;line-height:1.2;letter-spacing:-.035em;font-weight:600;text-wrap:balance}
.page-title p,.page-title>div>span.muted{max-width:680px;color:var(--muted);font-size:13px;line-height:1.5;text-wrap:pretty}
.section-eyebrow{color:#607a78;font-size:10px;letter-spacing:.08em;font-weight:600}.page-actions{gap:7px}
.btn{min-height:40px;padding:9px 13px;border-radius:7px;border-color:var(--line-strong);background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;transition:background-color .14s ease-out,border-color .14s ease-out,transform .12s ease-out}
.btn:hover{filter:none;background:#f4f8f7;border-color:#b9d6cb}.btn.primary{border-color:var(--blue);background:var(--blue);color:#fff;font-weight:600}
.btn.primary:hover{background:#12489e;border-color:#12489e}.btn.green{background:#e7f4ef;border-color:#c8e4d7;color:var(--green)}
.btn.danger{background:var(--surface);border-color:#ead4d8;color:var(--danger)}.btn.danger:hover{background:#fff7f8;border-color:#dcaeb6}
button:active:not(:disabled){transform:scale(.98)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #64b79e;outline-offset:2px}
button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed}
.field{gap:6px;margin:0 0 15px}.label{color:#526477;font-size:12px;letter-spacing:0;text-transform:none;font-weight:500}
input,select,textarea,.field input,.field select,.field textarea{min-height:42px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:7px;background:var(--control);color:var(--ink);font:inherit;font-size:14px;box-shadow:none}
textarea{min-height:88px;resize:vertical}
input:focus,select:focus,textarea:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);outline:2px solid #17645426;outline-offset:0;box-shadow:none}
input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:var(--green)}
.checkline{min-height:40px;gap:9px;color:var(--ink);font-size:13px}
.note{border-left:2px solid var(--accent);border-radius:0 6px 6px 0;background:#f1f8f5;color:#3c6359;padding:11px 13px;font-size:12px}
.warning{border-left:2px solid #d6b660;border-radius:0 6px 6px 0;background:#fbf7eb;color:#69531f;padding:11px 13px;font-size:12px;line-height:1.5}
.resultbox{border-radius:7px;background:#16303e;color:#e4f3ec}
.panel{margin-bottom:16px;padding:19px 20px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:none}
.panel h3{margin:0 0 13px;font-size:16px;letter-spacing:-.02em;font-weight:600}.panel p{font-size:13px;line-height:1.55}
.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.card{min-width:0;padding:17px 19px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.card:last-child{border-right:0}.stat-card .label,.label{font-size:12px;font-weight:500}
.metric{margin:8px 0 4px;font-size:25px;line-height:1.2;letter-spacing:-.035em;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stat-card .tiny{font-size:11px}.grid2,.grid3,.grid4{gap:16px}
.tablewrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
table{width:100%;font-size:13px}th{padding:11px 12px;background:#f7faf9;color:#627468;font-size:11px;letter-spacing:0;text-transform:none;font-weight:600;white-space:nowrap}
td{padding:11px 12px;border-color:#edf1f2;white-space:nowrap;vertical-align:middle}tr:hover td{background:#f7fbf8}td strong{font-weight:600}
.badge{padding:4px 8px;border-radius:5px;background:#e6f3ec;color:#28644f;font-size:11px;font-weight:600}
.badge.warn{background:#f7f0dd;color:#7d611e}.badge.gray{background:#eef2f3;color:#5b6c78}.badge.error{background:#f9e9ec;color:#9c3949}
.empty{padding:25px 14px!important;color:var(--muted);text-align:center;white-space:normal}
.list-panel{padding:0;border:1px solid var(--line);border-radius:9px}.list-toolbar{padding:14px 16px;background:var(--surface-subtle)}
.list-count{padding:11px 16px;border-top:1px solid var(--line);font-size:11px}.search-field input,.search-row input{min-height:42px;background:var(--control)}
.table-actions{gap:6px}.table-actions .btn{min-height:36px;padding:6px 9px}
.module-navigation{gap:4px;margin:0 0 18px;padding:0 0 1px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.module-tab{min-height:42px;padding:9px 12px;border-radius:0;color:var(--muted);font-size:12px;font-weight:500}
.module-tab:hover{background:#edf5f1;color:var(--green)}.module-tab.active{border:0;border-bottom:2px solid var(--green);border-radius:0;background:transparent;color:var(--green);box-shadow:none;font-weight:600}
.empty-state{padding:34px 20px}.empty-state .empty-icon{width:40px;height:40px;margin-bottom:12px;border-radius:9px;background:#eaf4ef;color:var(--green)}
.empty-state h3{font-size:15px}.quick-actions>button{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 8px;margin:0;background:transparent}
.quick-actions>button:last-child{border-bottom:0}.quick-actions>button:hover{background:#f7fbf8;border-color:var(--line)}.quick-actions>button b{font-weight:500;color:var(--green)}
.focused-form{max-width:850px;padding:22px 24px}.form-section-heading{margin:4px 0 18px;gap:10px}
.form-section-heading:not(:first-child){margin-top:24px;padding-top:20px}.step-number{width:24px;height:24px;border-radius:6px;background:#eaf4ef;color:var(--green)}
.form-actions{gap:8px;padding-top:15px;margin-top:18px;border-top:1px solid var(--line)}.detail-list>div{padding:11px 0;font-size:13px}
.page>footer{margin-top:26px;padding-top:14px;border-color:var(--line);color:#748494;font-size:11px}
.company-card{border-color:var(--line);border-radius:8px;background:var(--surface)}
.fiscal-notice{display:flex;align-items:flex-start;gap:10px;margin:0 0 17px;padding:10px 12px;border-left:2px solid #d4b763;background:#fbf8ed;color:#645421}
.fiscal-notice p{margin:0;font-size:12px;line-height:1.45}.fiscal-notice strong{font-weight:600}
.notice-mark{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:50%;background:#efe5c6;color:#715c21;font-size:11px;font-weight:700}
.dashboard-highlight{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.6fr);align-items:stretch;margin-bottom:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.dashboard-revenue{display:flex;flex-direction:column;justify-content:center;padding:20px 24px;border-right:1px solid var(--line)}
.dashboard-revenue>strong{margin:5px 0 2px;font-size:clamp(28px,3vw,38px);line-height:1.15;letter-spacing:-.04em;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-revenue>.muted{font-size:11px}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center}
.dashboard-stats>div{display:flex;min-height:78px;flex-direction:column;justify-content:center;gap:5px;padding:14px 17px;border-right:1px solid var(--line)}
.dashboard-stats>div:last-child{border-right:0}.dashboard-stats span{color:var(--muted);font-size:11px}
.dashboard-stats strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(240px,.8fr);gap:18px;align-items:start}
.dashboard-next,.dashboard-alerts{padding:18px 20px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.dashboard-next .section-title{margin-bottom:7px}.dashboard-next .section-title h3{margin:3px 0 0;font-size:16px;font-weight:600}
.dashboard-links{display:grid}.dashboard-links>button{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;min-height:64px;padding:9px 4px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.dashboard-links>button:hover{background:#f8fbf9}.dashboard-links>button>span:nth-child(2){display:flex;flex-direction:column;gap:2px}
.dashboard-links strong{font-size:13px;font-weight:600}.dashboard-links small{color:var(--muted);font-size:11px}
.dashboard-links .nav-icon{width:16px;height:16px;color:var(--green)}.dashboard-step{color:#83938e;font-size:10px;font-variant-numeric:tabular-nums}
.dashboard-alerts{border-left:2px solid var(--accent)}.dashboard-alert-count{display:block;margin:9px 0 1px;font-size:32px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}
.dashboard-alerts h3{margin:0 0 4px;font-size:14px}.dashboard-alerts p{margin:0 0 12px;color:var(--muted);font-size:12px}
dialog{color:var(--ink)}dialog:not([class]){max-width:min(620px,calc(100vw - 24px));max-height:90dvh;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 18px 50px #1026382b;overflow:auto}
dialog::backdrop{background:#10263885}.auth-dialog,.cash-flow-dialog,.catalog-edit-dialog,.fbo-map-dialog,.pos-picker{border-color:var(--line);border-radius:10px;box-shadow:0 18px 50px #1026382b}
.fiscal-filter{flex-wrap:wrap}.fiscal-queue .panel{border-radius:8px}
.fiscal-review>div{border-color:var(--line)!important;border-radius:7px!important}.cash-flow-actions{background:var(--surface)}
.password-toggle{color:#496575}.toast{border-radius:7px;background:var(--nav);box-shadow:0 6px 20px #10263829;font-size:12px}
.toast.error{background:#8e3140}.menu-button .nav-icon{width:18px;height:18px}.menu-overlay{backdrop-filter:blur(1px)}
.login .hero{background:var(--nav);background-image:none}
.login .hero h1{font-family:"Plex Sans",Arial,sans-serif;font-size:clamp(42px,6vw,64px);letter-spacing:-.055em;font-weight:600}
.login .hero .accent{color:var(--accent)}
.login .hero .subtitle{max-width:420px;font-size:20px;line-height:1.4;font-weight:400}
.login-right{background:var(--surface)}
.pos-workspace{gap:14px;align-items:start}
.pos-payment{position:sticky;top:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.pos-total{border-radius:7px;background:#edf6f2}
.pos-total strong{font-variant-numeric:tabular-nums}
.pos-product-result{border-bottom:1px solid var(--line)}
.pos-client-identity{background:var(--surface-subtle)}
.sales-workspace .page{font-family:"Plex Sans",Arial,sans-serif}
.sales-workspace .sales-total strong,.sales-workspace .sales-folio,.sales-workspace .sales-amount{font-family:"Plex Mono",monospace}
@media(max-width:1100px){.page{padding-right:24px;padding-left:24px}.workspace .topbar{padding-right:22px;padding-left:22px}.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(220px,.8fr)}}
@media(max-width:900px){.dashboard-highlight{grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr)}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .workspace #sidebar{background:var(--nav)}.workspace .topbar{height:auto;min-height:62px;flex-wrap:wrap;gap:8px;padding:10px 14px}
  .context-header{flex:1;min-width:0}.context-header strong{max-width:48vw;font-size:13px}
  .header-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:6px}.header-actions .btn{min-height:40px;padding:8px 10px;font-size:11px}
  .header-actions .tiny[title="Versión de interfaz"]{display:none}.profile-pill{font-size:10px}
  .page{padding:19px 15px 34px}.page-title{align-items:flex-start;gap:11px;margin-bottom:17px}.page-title h2{font-size:23px}
  .page-actions{max-width:none;flex-wrap:wrap}.grid2,.grid3,.grid4{grid-template-columns:1fr;gap:11px}
  .panel{padding:15px;border-radius:8px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .card{padding:13px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .card:nth-child(2n){border-right:0}.card:nth-last-child(-n+2){border-bottom:0}.metric{font-size:22px}
  .module-navigation{max-width:100%;margin-right:-15px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.module-tab{min-height:44px;padding:9px 11px}
  .form-actions{justify-content:stretch;flex-wrap:wrap}.form-actions>.btn,.form-actions>button{flex:1 1 auto}
  .focused-form{padding:17px}.list-toolbar{align-items:stretch;flex-direction:column}.search-field,.filter-field{width:100%;max-width:none}
  .tablewrap[data-mobile-layout="cards"]{overflow:visible;border:0;background:transparent}
  .tablewrap[data-mobile-layout="cards"] table,.tablewrap[data-mobile-layout="cards"] tbody{display:block;width:100%}
  .tablewrap[data-mobile-layout="cards"] thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .tablewrap[data-mobile-layout="cards"] tbody{display:grid;gap:8px}
  .tablewrap[data-mobile-layout="cards"] tbody tr{display:block;min-width:0;padding:5px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
  .tablewrap[data-mobile-layout="cards"] tbody tr:hover td{background:transparent}
  .tablewrap[data-mobile-layout="cards"] td{display:grid;grid-template-columns:minmax(86px,.7fr) minmax(0,1.3fr);align-items:start;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f2;white-space:normal;overflow-wrap:anywhere;text-align:left}
  .tablewrap[data-mobile-layout="cards"] td:last-child{border-bottom:0}
  .tablewrap[data-mobile-layout="cards"] td::before{content:attr(data-label);color:var(--muted);font-size:11px;line-height:1.4;font-weight:500}
  .tablewrap[data-mobile-layout="cards"] td.empty{display:block!important;border:0;padding:17px!important}.tablewrap[data-mobile-layout="cards"] td.empty::before{content:none}
  .tablewrap[data-mobile-layout="cards"] .table-actions{justify-content:flex-start}.tablewrap[data-mobile-layout="cards"] .table-actions .btn{min-height:40px}
  .tablewrap[data-mobile-layout="scroll"]{max-width:calc(100vw - 30px);overflow-x:auto}.tablewrap[data-mobile-layout="scroll"] table{min-width:640px}
  .dashboard-highlight{grid-template-columns:1fr;margin-bottom:13px}.dashboard-revenue{padding:16px;border-right:0;border-bottom:1px solid var(--line)}
  .dashboard-revenue>strong{font-size:30px}.dashboard-stats{grid-template-columns:1fr 1fr}
  .dashboard-stats>div{min-height:65px;padding:10px 13px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .dashboard-stats>div:nth-child(2n){border-right:0}.dashboard-stats>div:last-child{grid-column:1/-1;border-bottom:0}
  .dashboard-grid{gap:11px}.dashboard-next,.dashboard-alerts{padding:14px}.dashboard-alert-count{font-size:28px}
  .overview-grid{grid-template-columns:1fr}
  .pos-workspace{gap:0}.pos-payment{position:sticky;bottom:6px;top:auto;z-index:4;box-shadow:0 -5px 16px #f4f7fb}
  .pos-sale-column>.panel{padding:13px}
}
@media(max-width:420px){
  .page{padding-right:12px;padding-left:12px}.workspace .topbar{padding-right:12px;padding-left:12px}
  .header-actions{justify-content:space-between}.header-actions .btn{flex:1;padding:7px 8px}
  .profile-pill{max-width:38%;overflow:hidden;text-overflow:ellipsis}
  .tablewrap[data-mobile-layout="cards"] td{grid-template-columns:minmax(78px,.65fr) minmax(0,1.35fr);gap:7px}
}

/* Ajuste 0.17.57: navegación por texto y composición real del resumen. */
.nav-icon,.empty-state .empty-icon{display:none!important}
.workspace .navitem{gap:0;padding-left:13px}
.menu-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:18px;line-height:1}
.dashboard-hero{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,1.6fr);margin:0 0 22px;overflow:hidden;border-radius:11px;background:var(--green);color:#fff}
.dashboard-revenue{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:27px 30px;border-right:1px solid #ffffff3a}
.dashboard-revenue .section-eyebrow{color:#d0eee5;font-size:10px;letter-spacing:.11em}
.dashboard-revenue>strong{margin:7px 0 3px;color:#fff;font-size:clamp(31px,3.2vw,42px);line-height:1.08;letter-spacing:-.045em;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-revenue-note{color:#d5e9e3;font-size:11px}
.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.dashboard-stats>div{display:flex;min-height:110px;flex-direction:column;justify-content:center;gap:7px;padding:18px 20px;border-right:1px solid #ffffff3a}
.dashboard-stats>div:last-child{border-right:0}.dashboard-stats span{color:#d0eee5;font-size:11px;line-height:1.4}
.dashboard-stats strong{color:#fff;font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:20px;align-items:stretch}
.dashboard-actions{min-width:0;padding:20px 22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.dashboard-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:7px}
.dashboard-section-heading h3{margin:4px 0 0;font-size:17px;letter-spacing:-.02em;font-weight:600}
.dashboard-section-heading>small{color:var(--muted);font-size:11px}
.dashboard-action-list{display:grid}.dashboard-action-list>button{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:69px;padding:12px 2px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.dashboard-action-list>button:hover{background:#f6faf8}.dashboard-action-list>button>span{display:flex;min-width:0;flex-direction:column;gap:3px}
.dashboard-action-list strong{font-size:13px;font-weight:600}.dashboard-action-list small{color:var(--muted);font-size:11px}
.dashboard-action-list b{flex:none;color:var(--green);font-size:11px;font-weight:600}
.dashboard-alerts{display:flex;flex-direction:column;align-items:flex-start;padding:20px 22px;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px;background:var(--surface)}
.dashboard-alerts .section-eyebrow{color:var(--muted);font-size:10px;letter-spacing:.1em}
.dashboard-alert-line{display:flex;align-items:baseline;gap:9px;margin:13px 0 2px}.dashboard-alert-line strong{font-size:35px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.dashboard-alert-line span{font-size:13px;font-weight:500}
.dashboard-alerts p{margin:5px 0 16px;color:var(--muted);font-size:12px;line-height:1.5}
.dashboard-fiscal{margin:20px 0 0;padding:11px 0;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.dashboard-fiscal strong{color:var(--ink);font-weight:600}
@media(max-width:900px){.dashboard-hero{grid-template-columns:1fr}.dashboard-revenue{padding:21px 22px;border-right:0;border-bottom:1px solid #ffffff3a}.dashboard-stats>div{min-height:82px;padding:13px 15px}.dashboard-main-grid{grid-template-columns:1fr}}
@media(max-width:520px){.dashboard-hero{margin-bottom:14px;border-radius:9px}.dashboard-revenue>strong{font-size:32px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats>div{min-height:72px;border-bottom:1px solid #ffffff3a}.dashboard-stats>div:nth-child(2){border-right:0}.dashboard-stats>div:last-child{grid-column:1/-1;border-bottom:0}.dashboard-actions,.dashboard-alerts{padding:16px}.dashboard-section-heading>small{display:none}.dashboard-action-list>button{min-height:65px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* 0.17.58: secciones de trabajo por módulo; listas amplias, formularios contenidos. */
.module-body{min-width:0}
.module-view:not([hidden]){min-width:0;display:grid;gap:16px;align-content:start}
.module-view>.panel{margin:0}
.module-view>.panel:has(form){width:100%;max-width:860px;padding:24px 26px}
.module-view>.panel:has(form)>h3{padding-bottom:15px;margin-bottom:20px;border-bottom:1px solid var(--line);font-size:18px}
.module-view>.panel:has(.tablewrap){width:100%;padding:0;overflow:hidden}
.module-view>.panel:has(.tablewrap)>h3{margin:0;padding:17px 20px;border-bottom:1px solid var(--line);font-size:15px}
.module-view>.panel:has(.tablewrap)>.tablewrap{border:0;border-radius:0}
.module-view>.panel:has(.tablewrap)>div:not(.tablewrap){margin:14px 20px}
.module-view[data-section="more"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.module-view[data-section="more"]>.panel:has(form){max-width:none}
.page[data-module="products"] .module-view[data-section="catalog"] .panel,
.page[data-module="purchases"] .module-view[data-section="history"] .panel,
.page[data-module="stocks"] .module-view[data-section="balances"] .panel{max-width:none}
.page[data-module="reports"] .module-view[data-section="summary"] .cards{margin-bottom:18px}
@media(max-width:760px){.module-view>.panel:has(form){padding:17px 16px}.module-view>.panel:has(form)>h3{margin-bottom:16px;padding-bottom:12px;font-size:16px}.module-view[data-section="more"]{grid-template-columns:1fr}.module-view>.panel:has(.tablewrap)>h3{padding:15px 16px}}
/* V20.250 · Tablas legibles en el asistente masivo de Excel. */
#excel-preview{min-width:0;max-width:100%}
#excel-preview .excel-import-errors{max-width:100%;min-width:0;margin:12px 0}
#excel-preview .excel-import-errors .tablewrap{max-width:100%;overflow-x:auto}
#excel-preview .excel-import-errors table{table-layout:fixed;width:100%;min-width:0}
#excel-preview .excel-import-errors th:first-child,#excel-preview .excel-import-errors td:first-child{width:65px}
#excel-preview .excel-import-errors th:last-child,#excel-preview .excel-import-errors td:last-child{width:145px}
#excel-preview .excel-import-errors th:nth-child(2),#excel-preview .excel-import-errors td:nth-child(2){white-space:normal!important;overflow-wrap:anywhere;word-break:normal;min-width:0;line-height:1.5}
#excel-preview .excel-stock-preview{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);max-width:100%;min-width:0}
#excel-preview .excel-stock-preview>strong{font-size:13px}
#excel-preview .excel-stock-preview>.tablewrap{overflow:auto;max-width:100%}
#excel-preview .excel-stock-preview table{min-width:630px}
#excel-preview .excel-stock-preview td{white-space:normal;overflow-wrap:break-word}
#excel-config [data-catalog-stock-details][hidden]{display:none!important}
@media(max-width:660px){#excel-preview .excel-import-errors th:last-child,#excel-preview .excel-import-errors td:last-child{width:120px}#excel-preview .excel-import-errors th:first-child,#excel-preview .excel-import-errors td:first-child{width:44px}}


/* Archivo: sales.css */
/* Ventas: libro comercial multiempresa. Estilos limitados a esta pantalla. */
@font-face{font-family:'Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/static/vendor/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/static/vendor/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/static/vendor/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/static/vendor/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/static/vendor/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2')}
.workspace.sales-workspace{--sales-paper:#f4f7fb;--sales-surface:#fff;--sales-ink:#192b42;--sales-muted:#68778d;--sales-rule:#e2e8f0;--sales-soft:#edf6f7;--sales-danger:#b54250;--sales-amber:#947025;--sales-selected:color-mix(in srgb,var(--green) 8%,var(--sales-surface));background:var(--sales-paper);color:var(--sales-ink)}
.sales-workspace .page{padding:32px 32px 40px;max-width:1600px}
.sales-workspace .page>footer{border-color:var(--sales-rule);color:var(--sales-muted)}
#sales-workbench{font-family:inherit;font-size:14px;line-height:1.45;min-width:0}
#sales-workbench [hidden]{display:none!important}
#sales-workbench h2{font-size:30px;letter-spacing:-.035em;font-weight:600;margin:0 0 4px;color:var(--sales-ink)}
#sales-workbench h3{font-weight:600;color:var(--sales-ink)}
#sales-workbench p{line-height:1.5}
#sales-workbench button,#sales-workbench a,#sales-workbench summary,#sales-workbench input,#sales-workbench select{outline-offset:3px}
#sales-workbench :focus-visible{outline:2px solid var(--green);box-shadow:none}
#sales-workbench button{font:inherit;color:inherit}
.sales-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}
.sales-heading>div:first-child{flex:1;min-width:0}
.sales-heading p{margin:0;color:var(--sales-muted);font-size:13px}
.sales-total{text-align:right;min-width:0;flex-shrink:0}
.sales-total>span{display:block;color:var(--sales-muted);font-size:12px}
.sales-total strong{display:block;font:500 clamp(20px,2.4vw,28px)/1.5 'Plex Mono',monospace;letter-spacing:-.05em;overflow-wrap:anywhere}
.sales-total small{font:400 13px 'Plex Sans',sans-serif;letter-spacing:0;color:var(--sales-muted)}
.sales-period-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--sales-rule);margin-bottom:20px;gap:8px}
.sales-period-row nav{display:flex;gap:20px}
#sales-workbench .sales-period{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0;min-height:44px;color:var(--sales-muted);font-weight:500}
#sales-workbench .sales-period[aria-pressed=true]{border-color:var(--green);color:var(--green)}
.sales-icon{width:18px;height:18px;display:inline-block;flex-shrink:0;background:currentColor;mask:var(--sales-icon-url) center/contain no-repeat;-webkit-mask:var(--sales-icon-url) center/contain no-repeat}
.sales-icon-search{--sales-icon-url:url('/static/vendor/lucide/search.svg')}.sales-icon-funnel{--sales-icon-url:url('/static/vendor/lucide/funnel.svg')}.sales-icon-download{--sales-icon-url:url('/static/vendor/lucide/download.svg')}.sales-icon-arrow-left{--sales-icon-url:url('/static/vendor/lucide/arrow-left.svg')}.sales-icon-chevron-left{--sales-icon-url:url('/static/vendor/lucide/chevron-left.svg')}.sales-icon-chevron-right{--sales-icon-url:url('/static/vendor/lucide/chevron-right.svg')}
#sales-workbench summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;min-height:40px;font-weight:500;font-size:13px}
#sales-workbench summary::-webkit-details-marker{display:none}
.sales-export{position:relative}
.sales-export-options{position:absolute;right:0;top:44px;z-index:10;width:220px;background:var(--sales-surface);border:1px solid var(--sales-rule);padding:8px;border-radius:4px;box-shadow:0 6px 16px #11191012}
.sales-export-options a{display:flex;align-items:center;min-height:44px;padding:8px;text-decoration:none;font-size:13px}
.sales-export-options a:hover{background:var(--sales-soft)}
.sales-export-options a[aria-disabled=true]{opacity:.5;pointer-events:none}
.sales-tools{display:flex;gap:12px;align-items:flex-start;margin:0;position:relative}
.sales-search{display:flex;align-items:center;flex:1;min-width:0;gap:8px;border:1px solid var(--sales-rule);background:var(--sales-surface);padding:0 12px;border-radius:4px;color:var(--sales-muted)}
#sales-workbench .sales-search input{font:inherit;min-height:42px;padding:10px 0;background:transparent;border:0;border-radius:0;color:var(--sales-ink);box-shadow:none}
.sales-search:focus-within{outline:2px solid var(--green);outline-offset:2px}
#sales-workbench .sales-search input:focus-visible{outline:0}
.sales-filters>summary{border:1px solid var(--sales-rule);border-radius:4px;background:var(--sales-surface);padding:0 12px;min-height:44px!important}
.sales-filters[open]>summary{color:var(--green)}
.sales-filter-fields{position:absolute;right:0;top:52px;width:min(480px,100%);display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;border:1px solid var(--sales-rule);border-radius:4px;background:var(--sales-surface);z-index:9;box-shadow:0 6px 16px #11191012}
.sales-filter-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:500;min-width:0}
#sales-workbench select{min-height:40px;border:1px solid var(--sales-rule);border-radius:4px;padding:8px;background:var(--sales-surface);color:var(--sales-ink);font-size:13px}
.sales-filter-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#sales-workbench .sales-button,#sales-workbench .sales-text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;font-size:13px;font-weight:500;border:1px solid var(--sales-rule);border-radius:4px;background:var(--sales-surface);text-decoration:none;cursor:pointer}
#sales-workbench .sales-text-button{border-color:transparent;background:transparent;color:var(--green)}
#sales-workbench .sales-button:hover{background:var(--sales-soft)}
#sales-workbench button:disabled{opacity:.4;cursor:default}
.sales-query-status{min-height:28px;padding:4px 0;font-size:12px;color:var(--sales-muted)}
.sales-work{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);align-items:start;gap:28px}
.sales-book{min-width:0}
.sales-columns,.sales-entry{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(92px,.8fr);gap:12px;align-items:start}
.sales-columns{color:var(--sales-muted);font-size:11px;padding:0 12px 12px;border-bottom:1px solid var(--sales-rule);font-weight:500}
.sales-columns>:last-child{text-align:right}
#sales-workbench .sales-entry{position:relative;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--sales-rule);border-radius:0;padding:16px 12px;min-height:92px;color:var(--sales-ink);font-size:13px}
#sales-workbench .sales-entry:hover{background:var(--sales-soft)}
#sales-workbench .sales-entry[aria-pressed=true]{background:var(--sales-selected);box-shadow:inset 2px 0 var(--green)}
.sales-entry>span{min-width:0;overflow-wrap:anywhere}
.sales-folio{display:block;font:500 13px 'Plex Mono',monospace;letter-spacing:-.035em}
.sales-customer{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}
.sales-entry time,.sales-origin small{display:block;font-size:11px;color:var(--sales-muted);margin-top:4px}
.sales-amount{text-align:right;font:400 13px 'Plex Mono',monospace}
.sales-amount small{display:block;font:500 11px 'Plex Sans',sans-serif;margin-top:8px}
.sales-state-voided{color:var(--sales-danger)}
.sales-state-corrected{color:var(--sales-amber)}
.sales-state-posted{color:var(--sales-muted)}
.sales-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;font-size:12px;color:var(--sales-muted)}
.sales-pagination>div{display:flex;gap:8px}
.sales-caption{font-size:11px;color:var(--sales-muted);margin:8px 0;line-height:1.5}
.sales-commercial-note{margin-top:24px;border-top:1px solid var(--sales-rule);padding-top:16px}
#sales-workbench .sales-slip{position:sticky;display:block;width:auto;transform:none;height:auto;inset:auto;top:20px;z-index:auto;padding:20px;background:var(--sales-surface);border:1px solid var(--sales-rule);border-radius:4px;color:var(--sales-ink);min-width:0}
.sales-slip-top{display:flex;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:.065em;font-weight:500}
.sales-detail-tabs{display:flex;gap:20px;margin-top:12px;border-bottom:1px solid var(--sales-rule)}
#sales-workbench .sales-detail-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--sales-muted);padding:12px 0;min-height:44px;font-size:13px}
#sales-workbench .sales-detail-tabs button[aria-selected=true]{color:var(--green);border-color:var(--green);font-weight:500}
.sales-receipt-head{padding:24px 0 20px;text-align:center;border-bottom:1px dashed var(--sales-rule)}
.sales-receipt-head h3{font-size:16px;margin:0 0 12px;overflow-wrap:anywhere}
.sales-receipt-head p{margin:4px 0;font-size:11px;color:var(--sales-muted)}
.sales-receipt-head .sales-receipt-number{font:500 18px 'Plex Mono',monospace;color:var(--sales-ink);letter-spacing:-.05em;margin-bottom:12px}
.sales-receipt-buyer{padding:16px 0;border-bottom:1px dashed var(--sales-rule);font-size:12px;overflow-wrap:anywhere}
.sales-receipt-buyer p{font-size:11px;margin:4px 0 0;color:var(--sales-muted)}
#sales-workbench .sales-lines{font-size:12px;border:0;table-layout:fixed;margin:8px 0}
#sales-workbench .sales-lines td{white-space:normal;padding:12px 0;border:0;vertical-align:top;overflow-wrap:anywhere;color:var(--sales-ink)}
#sales-workbench .sales-lines td:last-child{text-align:right;width:84px;padding-left:12px;font:400 12px 'Plex Mono',monospace}
.sales-lines small{display:block;font-size:11px;color:var(--sales-muted);margin-top:4px}
.sales-receipt-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--sales-ink);padding:16px 0 8px;font-size:13px}
.sales-receipt-total strong{font:500 20px 'Plex Mono',monospace;letter-spacing:-.04em}
.sales-payments{margin:16px 0;font-size:12px}
.sales-payments>div{display:flex;justify-content:space-between;gap:12px;margin:8px 0}
.sales-payments dt{color:var(--sales-muted)}
.sales-payments dd{margin:0;text-align:right;font:400 11px 'Plex Mono',monospace}
.sales-fiscal-note{border-top:1px dashed var(--sales-rule);padding-top:16px;margin-top:20px;font-size:11px;color:var(--sales-muted)}
.sales-fiscal-note strong{font-weight:500;color:var(--sales-ink)}
.sales-fiscal-note p{margin:4px 0}
.sales-slip-actions{border-top:1px solid var(--sales-rule);display:flex;gap:8px;flex-wrap:wrap;margin-top:20px;padding-top:16px}
#sales-print{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;min-width:0}
#sales-print .sale-print-options{min-width:0}
#sales-print .sale-print-options summary{width:auto}
#sales-print .sale-print-formats{left:auto;right:0}
#sales-workbench .sales-button-primary{background:var(--green);border-color:var(--green);color:#fff}
.sales-empty{padding:40px 16px;text-align:center;color:var(--sales-muted);font-size:13px}
.sales-empty strong{display:block;font-weight:500;color:var(--sales-ink);margin-bottom:12px}
.sales-empty .sales-button{margin-top:8px}
.sales-preview-loading{padding:24px 0;font-size:13px;color:var(--sales-muted)}
.sales-timeline{list-style:none;margin:24px 0 0;padding:0}
.sales-timeline li{border-left:1px solid var(--sales-rule);padding:0 0 24px 16px;position:relative;font-size:12px;overflow-wrap:anywhere}
.sales-timeline li:before{content:'';position:absolute;left:-3px;top:5px;width:5px;height:5px;background:var(--sales-muted);border-radius:50%}
.sales-timeline strong{font-weight:500}
.sales-timeline p{margin:4px 0;color:var(--sales-muted)}
.sales-timeline time{font:400 10px 'Plex Mono',monospace;color:var(--sales-muted)}
.sales-inline-error{font-size:12px;color:var(--sales-danger)}
#sales-workbench .sales-back{display:none}
@media(hover:hover) and (pointer:fine){#sales-workbench .sales-button:active{transform:translateY(1px)}}
@media(max-width:1150px){.sales-workspace .page{padding:28px 24px}.sales-work{gap:20px;grid-template-columns:minmax(0,1.3fr) minmax(285px,1fr)}.sales-columns,.sales-entry{gap:8px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(84px,.8fr)}#sales-workbench .sales-slip{padding:16px}}
@media(max-width:900px){.sales-work{grid-template-columns:minmax(0,1fr)}#sales-workbench .sales-slip{display:none;position:static}.sales-show-preview .sales-book,.sales-show-preview .sales-tools,.sales-show-preview .sales-period-row{display:none}#sales-workbench.sales-show-preview .sales-slip{display:block}#sales-workbench.sales-show-preview .sales-back{display:inline-flex;margin-bottom:16px}.sales-show-preview .sales-query-status{display:none}}
@media(max-width:900px){.sales-slip-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sales-slip-actions>#sales-open-full,.sales-slip-actions>#sales-invoice{min-width:0;white-space:normal}#sales-print{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);width:100%}#sales-print .sale-print-options,#sales-print .sale-print-options summary{width:100%;justify-content:center}#sales-print .sale-print-formats{position:static;width:100%;max-height:none;overflow:visible;margin:6px 0 0;box-shadow:none}#sales-print .sale-print-formats .btn{min-height:44px}}
@media(max-width:760px){.workspace.sales-workspace{display:block}.sales-workspace .page{padding:24px 16px}sales-heading{gap:12px;margin-bottom:20px}.sales-heading h2{font-size:26px!important}.sales-heading p{font-size:12px}.sales-total{max-width:55%}.sales-total>span{font-size:10px}.sales-total strong{font-size:20px}.sales-heading .sales-total small{font-size:11px}#sales-workbench .sales-button,#sales-workbench .sales-text-button,#sales-workbench select{min-height:44px}.sales-columns,.sales-entry{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(72px,.75fr);gap:8px}.sales-columns{font-size:10px;padding:0 8px 12px}#sales-workbench .sales-entry{padding:16px 8px;font-size:12px}.sales-folio,.sales-amount{font-size:12px}.sales-entry time,.sales-origin small{font-size:10px}.sales-filters>summary{font-size:12px!important;padding:0 10px}.sales-tools{gap:8px}.sales-search{padding:0 10px}.sales-search input{font-size:13px!important}.sales-filter-fields{padding:16px;gap:12px}sales-slip-top{font-size:9px}.sales-commercial-note{font-size:10px}}
@media(max-width:600px){sales-heading{flex-direction:column;gap:12px}.sales-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;text-align:left;max-width:100%}.sales-total>span{font-size:11px}.sales-total strong{font-size:24px;white-space:nowrap}.sales-columns{font-size:10px}}
@media(max-width:360px){.sales-workspace .page{padding:20px 12px}.sales-total strong{font-size:22px}.sales-search .sales-icon{display:none}.sales-filter-fields{grid-template-columns:1fr}.sales-folio,.sales-amount{font-size:11px}.sales-columns,.sales-entry{gap:6px;grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr) 72px}.sales-slip-actions{gap:4px}}
@media(prefers-color-scheme:dark){.workspace.sales-workspace{--sales-paper:#152536;--sales-surface:#1d3144;--sales-ink:#f2f7fa;--sales-muted:#b7c9d6;--sales-rule:#375065;--sales-soft:#243d52;--sales-danger:#ffabb2;--sales-amber:#f4d28c;--sales-selected:color-mix(in srgb,var(--accent) 18%,var(--sales-surface));--green:var(--accent);color-scheme:dark}sales-workspace .profile-pill{background:var(--sales-soft);color:var(--sales-ink)}}
@media(prefers-reduced-motion:reduce){.sales-workspace *{scroll-behavior:auto!important;transition:none!important}#sales-workbench .sales-button:active{transform:none}}


/* Archivo: ui-polish.css */
/* 0.17.59 — ritmo compacto, DM Sans, navegación con SVG visibles y movimiento funcional. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/static/vendor/fonts/dm-sans-latin-variable.woff2') format('woff2')}
:root{--app-font:'DM Sans','Segoe UI',Arial,sans-serif}
body,.workspace,.login,button,input,select,textarea{font-family:var(--app-font)}
body{font-size:14px;line-height:1.48}
.workspace{grid-template-columns:236px minmax(0,1fr)}
.workspace #sidebar{padding:19px 12px 14px;gap:2px}
.workspace #sidebar .brand{padding:4px 10px 17px;font-family:var(--app-font);font-size:22px;letter-spacing:-.045em}
.brand-wordmark{font-weight:700}
.nav-group-label{padding:13px 10px 6px;font-size:10px}
.nav-section{margin:5px 0;padding-top:4px}
.nav-section summary{min-height:37px;padding:8px 10px;font-size:10px}
.nav-section-items{padding:0 1px 5px}
.workspace .navitem{min-height:36px;padding:7px 10px;gap:9px;margin:0;border-radius:6px;font-size:12.5px;font-weight:500;line-height:1.35}
.workspace .navitem.active{font-weight:600}
.workspace[data-theme] .navitem.active{color:#fff!important}
.nav-icon,.workspace .navitem .nav-icon{display:block!important;width:16px;height:16px;flex:none;background:transparent!important;mask:none!important;-webkit-mask:none!important;opacity:.92;object-fit:contain}
.workspace .topbar{min-height:64px;height:auto;padding:10px 25px}
.context-header strong{font-size:13px}.context-eyebrow{font-size:10px}
.menu-button{display:none}
@media(max-width:760px){.menu-button{display:grid}}
.header-actions .btn{min-height:35px;padding:7px 10px;font-size:12px}
.page{max-width:1450px;padding:25px 30px 40px}
.page-title{margin-bottom:20px}.page-title h2{font-family:var(--app-font);font-size:25px;font-weight:600;letter-spacing:-.04em}
.page-title p,.page-title>div>span.muted{font-size:13px}
.section-eyebrow{font-size:10px;letter-spacing:.07em}
.btn{min-height:36px;padding:8px 11px;border-radius:6px;font-size:12.5px;font-weight:600;transition:background-color .16s ease-out,border-color .16s ease-out,color .16s ease-out,box-shadow .16s ease-out}
button:active:not(:disabled){transform:none}
.btn:active:not(:disabled){box-shadow:inset 0 1px 3px #15233b21}
.panel{margin-bottom:12px;padding:16px 18px;border-radius:7px}
.panel h3{margin-bottom:11px;font-size:15px;letter-spacing:-.02em}
.grid2,.grid3,.grid4{gap:12px}
.cards{margin-bottom:16px}.card{padding:14px 17px}.metric{margin:6px 0 2px;font-size:23px}
.field{margin-bottom:12px;gap:5px}.label{font-size:12px}
input,select,textarea,.field input,.field select,.field textarea{min-height:39px;padding:8px 10px;border-radius:6px;font-size:14px;background:#f8fafb}
textarea{min-height:76px}
.module-navigation{margin-bottom:17px;gap:2px}
.module-tab{min-height:38px;padding:8px 11px;font-size:12px;transition:color .16s ease-out,background-color .16s ease-out,border-color .16s ease-out}
.module-view:not([hidden]){gap:12px}
.module-view>.panel:has(form){max-width:760px;padding:18px 20px}
.module-view>.panel:has(form)>h3{padding-bottom:12px;margin-bottom:15px;font-size:16px}
.module-view>.panel:has(.tablewrap)>h3{padding:14px 17px;font-size:14px}
.tablewrap{border-radius:7px}th,td{padding:9px 11px}.table-actions .btn{min-height:34px}
.list-toolbar{padding:11px 13px}.list-count{padding:9px 13px}
.dashboard-hero{grid-template-columns:minmax(230px,1fr) minmax(0,1.3fr);gap:0;margin-bottom:17px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink)}
.dashboard-revenue{min-height:104px;padding:15px 24px 18px 0;border-right:1px solid var(--line)}
.dashboard-revenue .section-eyebrow{color:var(--green)}
.dashboard-revenue>strong{margin:8px 0 2px;color:var(--ink);font-family:var(--app-font);font-size:clamp(29px,3vw,36px);font-weight:600;letter-spacing:-.045em}
.dashboard-revenue-note,.dashboard-stats span{color:var(--muted)}
.dashboard-stats>div{min-height:104px;padding:18px 14px;border-right:0}
.dashboard-stats strong{color:var(--ink);font-size:17px}
.dashboard-main-grid{grid-template-columns:minmax(0,1.6fr) minmax(230px,.75fr);gap:15px}
.dashboard-actions,.dashboard-alerts{padding:16px 18px;border-radius:7px}
.dashboard-section-heading h3{font-size:16px}
.dashboard-action-list>button{min-height:56px;padding:9px 2px;transition:background-color .16s ease-out,padding-left .16s ease-out}
.dashboard-action-list>button:hover{padding-left:8px}
.dashboard-action-list strong{font-size:12.5px}.dashboard-action-list small{font-size:11px}
.dashboard-alerts{border-top:2px solid var(--accent);border-left:1px solid var(--line)}
.dashboard-alert-line{margin:9px 0 2px}.dashboard-alert-line strong{font-size:29px}
.dashboard-alerts p{margin:4px 0 13px}
.dashboard-fiscal{margin-top:17px;padding:10px 0}
.login .hero h1{font-family:var(--app-font);font-weight:700}
.sales-workspace .page,.sales-workspace .sales-total small,.sales-workspace .sales-amount small{font-family:var(--app-font)}
.sales-workspace .sales-total strong,.sales-workspace .sales-folio,.sales-workspace .sales-amount{font-family:var(--app-font);font-variant-numeric:tabular-nums}
.menu-overlay{transition:opacity .2s ease-out}
@keyframes mionexo-dialog-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes mionexo-toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
dialog[open]{animation:mionexo-dialog-in .18s ease-out both}
.toast{animation:mionexo-toast-in .2s ease-out both}
@media(max-width:900px){.dashboard-hero{grid-template-columns:1fr}.dashboard-revenue{border-right:0;border-bottom:1px solid var(--line)}.dashboard-stats>div{min-height:68px;padding:13px 12px}.dashboard-main-grid{grid-template-columns:1fr}}
@media(max-width:760px){.workspace{display:block}.page{padding:18px 14px 30px}.workspace .topbar{padding:9px 14px}.workspace #sidebar{width:256px}.header-actions .btn{min-height:40px}.module-view>.panel:has(form){padding:15px}.dashboard-hero{margin-bottom:13px}.dashboard-revenue{min-height:0;padding:13px 0 16px}.dashboard-revenue>strong{font-size:31px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats>div{min-height:60px;border-bottom:1px solid var(--line)}.dashboard-stats>div:nth-child(2){border-right:0}.dashboard-stats>div:last-child{grid-column:1/-1;border-bottom:0}.dashboard-actions,.dashboard-alerts{padding:15px}.dashboard-action-list>button{min-height:60px}}
@media(prefers-reduced-motion:reduce){.workspace *,dialog[open],.toast{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.qr-setting-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:13px 16px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.qr-setting-line strong,.qr-setting-line small{display:block}.qr-setting-line small{margin-top:3px;color:var(--muted);font-size:12px}
.qr-list-image{display:block;width:52px;height:52px;object-fit:contain}
.qr-payment-dialog{width:min(430px,calc(100vw - 26px));max-height:90dvh;padding:20px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 20px 55px #15233b36}
.qr-payment-dialog::backdrop{background:#102030a6}
.qr-payment-dialog h3{margin:0 0 6px;font-size:19px}
.qr-payment-dialog .qr-amount{margin:8px 0;font-size:31px;font-weight:600;font-variant-numeric:tabular-nums}
.qr-payment-dialog img{display:block;width:min(250px,100%);max-height:250px;object-fit:contain;margin:12px auto;background:#fff}
.qr-payment-dialog .qr-bank{margin:0 0 10px;text-align:center;font-size:13px}
.qr-payment-dialog .qr-caution{font-size:12px;color:var(--muted)}
@media(max-width:760px){.qr-setting-line{align-items:flex-start;flex-direction:column}.qr-payment-dialog{padding:16px}}
.qr-payment-dialog .qr-state{margin:0 0 8px;padding:5px 8px;border-radius:4px;background:var(--paper,#f4f7fb);color:var(--ink);font-size:12px;font-weight:600}
.qr-incident-form{margin-bottom:16px}
.qr-incident-form .grid2{margin-bottom:8px}
.qr-api-saved{border-top:1px solid var(--line);padding:10px 0}
.qr-api-saved summary{cursor:pointer;font-weight:600}
.qr-api-saved form{padding:12px 0 4px}
.qr-image-control details summary{font-size:12px;cursor:pointer;color:var(--ink)}
.qr-image-control form{display:grid;gap:6px;min-width:160px;margin-top:6px}
.qr-account{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.qr-account:first-child{border-top:0;padding-top:0}
.qr-account .qr-list-image{width:48px;height:48px;border:1px solid var(--line);border-radius:5px;background:#fff}
.qr-account-info{display:grid;gap:2px;flex:1;min-width:190px}
.qr-account-info small,.qr-account-info span{color:var(--muted);font-size:12px}
.qr-account-edit{position:relative}
.qr-account-edit summary{cursor:pointer;font-size:13px;list-style:none;color:var(--ink)}
.qr-account-edit[open]{flex-basis:100%;padding:12px;background:var(--paper,#f4f7fb);border-radius:6px}
.qr-account-edit form{display:flex;align-items:end;gap:10px;margin-top:10px;flex-wrap:wrap}
.qr-account-edit .field{flex:1;min-width:200px;margin:0}
.qr-create-form{max-width:740px}
.qr-create-form>.field{margin-bottom:12px}
.qr-create-form .grid2{gap:10px 14px}
.qr-bank-intro{max-width:780px;padding:14px 16px;margin:0 0 18px;border-left:3px solid var(--accent,#176857);border-radius:5px;background:var(--paper,#f4f7fb)}
.qr-bank-intro strong{display:block;font-size:15px}.qr-bank-intro p{margin:5px 0 0;color:var(--muted);line-height:1.5}
.qr-bank-form{max-width:780px}.qr-bank-fields{gap:12px 16px}.qr-bank-fields .field{margin:0}
.qr-bank-advanced{margin:19px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:7px}
.qr-bank-advanced summary{cursor:pointer;font-weight:600}.qr-bank-advanced .grid2{margin-top:14px}
.qr-bank-submit{display:flex;align-items:center;gap:14px;margin-top:18px;flex-wrap:wrap}.qr-bank-submit span{color:var(--muted);font-size:12px}
.qr-bank-card{max-width:900px;padding:18px 0 20px;border-bottom:1px solid var(--line)}
.qr-bank-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.qr-bank-card-head h3{font-size:17px;margin:0 0 3px}.qr-bank-card-head p{color:var(--muted);margin:0}
.qr-bank-card-head .badge{max-width:100%;white-space:normal;text-align:center}
.qr-bank-actions{margin:16px 0}.qr-bank-warning{padding:10px 12px;border-radius:6px;background:#fff2ed;color:#8c3722}
.qr-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 18px;margin:12px 0 18px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px}
.qr-mode-switch strong{font-size:15px}.qr-mode-switch p{margin:3px 0 0;color:var(--muted);font-size:12px}
.qr-mode-switch-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:700px){.qr-mode-switch-actions{width:100%}.qr-mode-switch-actions .btn{flex:1;min-width:135px}}
.qr-image-control input[type=file]{max-width:180px;font-size:12px}

/* Entrega de la venta: comprobante primero, factura a petición del comprador. */
#sale-invoice-delivery{margin-top:12px;border-color:#bedad1;background:#f8fcfa}
#sale-invoice-delivery h3{margin-top:0}
#sale-invoice-delivery .form-actions{flex-wrap:wrap}
.sale-invoice-dialog{width:min(520px,calc(100vw - 28px));max-height:min(88vh,760px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 70px #10263844}
.sale-invoice-dialog::backdrop{background:#1429408c}
.sale-invoice-dialog .field{margin-bottom:10px}
.sale-invoice-dialog [role=alert]{color:#a52d3d}
.sale-print-options{position:relative;color:var(--text)}
.sale-print-options[open]{z-index:20}
.sale-print-options summary{cursor:pointer;width:max-content;list-style:none;min-height:44px}
.sale-print-options summary::-webkit-details-marker{display:none}
.sale-print-options summary::after{content:'▾';margin-left:8px}
.sale-print-options[open] summary::after{content:'▴'}
.sale-print-options summary:focus-visible{outline:2px solid var(--accent,#19675b);outline-offset:3px}
.sale-print-formats{position:absolute;right:0;top:100%;z-index:20;display:grid;gap:6px;width:min(250px,calc(100vw - 32px));max-height:min(65vh,450px);overflow-y:auto;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);box-shadow:0 12px 28px #1026382b}
.sale-print-formats .btn{justify-content:flex-start;min-height:38px;padding:8px 10px;border:0;background:transparent;box-shadow:none;text-align:left;text-decoration:none;white-space:normal;font-weight:550}
.sale-print-formats .btn:hover,.sale-print-formats .btn:focus-visible{background:#eef5f2;color:#124d42}
@media(max-width:600px){.sale-print-options[open] .sale-print-formats{position:static;left:auto;right:auto;width:min(100%,350px);box-sizing:border-box;max-height:none;overflow:visible;margin-top:6px;box-shadow:none}.sale-print-options[open] .sale-print-formats .btn{min-height:44px}}
.sale-receipt-actions .sale-print-formats,.sales-slip-actions .sale-print-formats{left:0;right:auto}
#page .sale-receipt-page{width:min(100%,780px);margin:0;padding:22px}
.sale-receipt-header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.sale-receipt-header h3{font-size:20px;margin:3px 0 2px}
.sale-receipt-header p{margin:0;color:var(--muted)}
.sale-receipt-items{margin:14px 0;max-height:45vh;overflow:auto}
.sale-receipt-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;font-size:16px}
.sale-receipt-total strong{font-size:24px}
.sale-receipt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sale-receipt-actions #sale-invoice-slot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sale-receipt-actions #sale-invoice-slot p{margin:4px 0;flex-basis:100%}
.sale-receipt-footer{padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}
@media(max-width:600px){#page .sale-receipt-page{padding:15px}.sale-receipt-header h3{font-size:17px}.sale-receipt-items{max-height:40vh}}
.sale-receipt-actions #sale-invoice-slot:has(.sale-invoice-result){width:100%;flex-basis:100%}
.sale-invoice-result{width:100%;margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fcfa}
.sale-invoice-result h3{margin:0 0 8px}
.sale-invoice-result .form-actions{justify-content:flex-start;flex-wrap:wrap}
.sale-invoice-preview{display:block;width:100%;height:min(62vh,650px);margin-top:14px;border:1px solid var(--line);border-radius:8px;background:white}

/* Cierre de venta: el comprobante y la entrega comparten una sola vista. */
#page .sale-close-layout{width:min(100%,1160px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.85fr);gap:18px;align-items:start}
#page .sale-close-layout>.sale-close-sheet{grid-column:1;grid-row:1}
#page .sale-close-layout>.sale-close-actions{grid-column:2;grid-row:1}
#page .sale-close-sheet,#page .sale-close-actions{min-width:0;padding:24px;border-radius:16px}
.sale-close-sheet-head{display:flex;align-items:flex-start;gap:14px}
.sale-close-sheet-head>div{min-width:0;flex:1}
.sale-close-logo{width:52px;height:52px;object-fit:contain;border:1px solid var(--line);border-radius:10px;padding:5px;background:#fff}
.sale-close-kicker{display:block;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.sale-close-sheet-head h3{margin:7px 0 3px;font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.sale-close-sheet-head p{margin:0;color:var(--muted);font-size:13px}
.sale-close-stamp{flex:none;border:1px solid #b8ded0;border-radius:999px;background:#ebf8f1;color:#126448;padding:7px 11px;font-size:12px;font-weight:700}
.sale-close-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 18px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sale-close-meta div{min-width:0}.sale-close-meta dt{font-size:11px;color:var(--muted);margin-bottom:4px}.sale-close-meta dd{margin:0;font-weight:650;font-size:13px;overflow-wrap:anywhere}
.sale-close-sheet .sale-receipt-items{margin:0 0 16px;max-height:none;overflow-x:auto}
.sale-close-sheet .sale-receipt-total{margin-top:14px;padding-top:17px}.sale-close-sheet .sale-receipt-total strong{font-size:28px;font-variant-numeric:tabular-nums}
.sale-close-fiscal-note{margin:18px 0 0;padding:12px 14px;border-radius:9px;background:#f5f8fa;color:var(--muted);font-size:12px;line-height:1.5}
.sale-close-actions{position:sticky;top:18px}
.sale-close-actions>h3{margin:6px 0 4px;font-size:21px}.sale-close-actions>p{margin:0 0 20px;font-size:13px;line-height:1.5}
.sale-close-actions #sale-invoice-slot{min-width:0}.sale-close-actions #sale-invoice-slot:empty:before{content:'Consultando estado de la factura…';color:var(--muted);font-size:13px}
.sale-close-actions .sale-invoice-result{margin:0;padding:16px;border-radius:12px}
.sale-close-actions .sale-invoice-result h3{margin:6px 0 15px;font-size:19px}
.sale-close-actions .sale-invoice-result .form-actions{display:grid;gap:8px;margin:0}
.sale-close-actions .sale-invoice-result .btn,.sale-close-print,.sale-close-issue{width:100%;justify-content:center;text-align:center;min-height:42px;white-space:normal}
.sale-close-actions .sale-invoice-result .tiny{margin:10px 0 0;line-height:1.5}
.sale-close-invoice-form{display:grid;gap:9px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}
.sale-close-invoice-form h4{margin:0;font-size:17px}.sale-close-invoice-form p{margin:0;line-height:1.4}
.sale-close-invoice-form .field{margin:0;min-width:0}.sale-close-invoice-form .field input,.sale-close-invoice-form .field select{min-height:39px;width:100%;max-width:100%}
.sale-close-invoice-form .label{font-size:12px}.sale-close-invoice-form [role=alert]{color:#a52d3d}
.sale-close-invoice-form [hidden]{display:none}.sale-close-invoice-form #sale-invoice-progress:empty,.sale-close-invoice-form #sale-invoice-error:empty{display:none}
.sale-close-commercial{display:grid;gap:9px;margin-top:17px}
.sale-close-commercial strong{font-size:14px}.sale-close-commercial .sale-print-options{width:100%}.sale-close-commercial .sale-print-options summary{width:100%;justify-content:center}.sale-close-commercial .sale-print-formats{position:static;width:100%;max-height:none;overflow:visible;box-shadow:none}
.sale-close-fiscal-action{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.sale-close-fiscal-action .sale-close-kicker{margin-bottom:9px}
.sale-close-open-invoice{width:100%;min-height:44px;justify-content:center}
.sale-close-modal{width:min(510px,calc(100vw - 24px));max-height:min(90dvh,800px);padding:22px;overflow:auto}
.sale-close-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.sale-close-modal-head h3{margin:5px 0 0;font-size:21px}
.sale-close-modal-dismiss{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;font-size:22px;line-height:1}
.sale-close-modal .sale-close-invoice-form{grid-template-columns:minmax(0,1fr);padding:0;border:0;border-radius:0;background:transparent}
.sale-invoice-card{min-width:0;margin:3px 0;padding:11px;border:1px solid var(--line);border-radius:9px}.sale-invoice-card legend{padding:0 4px;font-size:12px;font-weight:700}.sale-invoice-card .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}.sale-invoice-card .tiny{line-height:1.4}
.sale-close-modal-buttons{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:4px}
.sale-close-modal-buttons .btn{min-height:43px}.sale-close-modal-buttons .sale-close-issue{width:100%}
.sale-close-actions .sale-receipt-footer{margin-top:18px}.sale-close-actions .sale-receipt-footer .btn{min-height:40px}
@media(max-width:960px){#page .sale-close-layout{grid-template-columns:minmax(0,1fr)}#page .sale-close-layout>.sale-close-actions{grid-column:1;grid-row:1;position:static}#page .sale-close-layout>.sale-close-sheet{grid-column:1;grid-row:2}.sale-close-invoice-form{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-close-invoice-form h4,.sale-close-invoice-form p,.sale-close-issue{grid-column:1/-1}.sale-close-modal .sale-close-invoice-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#page .sale-close-sheet,#page .sale-close-actions{padding:17px}.sale-close-stamp{font-size:11px;padding:6px 8px}.sale-close-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-close-modal{padding:17px}.sale-close-invoice-form{grid-template-columns:minmax(0,1fr)}}

/* 0.17.77 — POS móvil: productos y cobro en pasos, con los mismos tokens. */
.pos-mobile-bar,.pos-mobile-back,.pos-mobile-next,.pos-mobile-edit,.pos-mobile-client{display:none}
@media(max-width:760px){
 #page:has(.pos-workspace){padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
 .pos-workspace{grid-template-columns:minmax(0,1fr);min-width:0}
 #page .pos-workspace .pos-payment{display:none;position:static;inset:auto;z-index:auto;box-shadow:none;min-width:0;max-width:100%;scroll-margin-top:12px}
 .pos-mobile-bar{position:fixed;bottom:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line)}
 .pos-mobile-bar>div{display:flex;flex-direction:column;min-width:0}
 .pos-mobile-bar span{font-size:12px}.pos-mobile-bar strong{font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .pos-mobile-bar .btn{min-height:46px;min-width:112px}
 .pos-mobile-paying .pos-sale-column,.pos-mobile-paying .pos-mobile-bar{display:none}
 #page .pos-mobile-paying .pos-payment{display:block}
 .pos-mobile-paying .pos-mobile-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:16px}
 .pos-payment input,.pos-payment select,#pos-search input{font-size:16px;min-height:44px;max-width:100%}
 .pos-payment-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pos-payment-option{min-height:48px;white-space:normal}
 .pos-payment .btn{min-height:44px;max-width:100%;white-space:normal}
 .pos-payment #qr-turn-ops{width:100%;margin-top:8px}
 .pos-sale-column .panel,.pos-product-result{min-width:0;max-width:100%}
 .pos-product-result{overflow-wrap:anywhere}
 .workspace .context-header strong{white-space:normal;overflow-wrap:anywhere;max-width:100%}
}

/* 0.17.78 — ayuda opcional y eliminación del ancho mínimo heredado del carrito. */
.pos-search-help{margin:4px 0 0;color:var(--muted);font-size:12px}
.pos-search-help>summary{cursor:pointer;min-height:32px;display:list-item;align-content:center;width:fit-content}
.pos-search-help .pos-entry-help{margin:4px 0 8px}
@media(max-width:760px){
 .workspace .main{min-width:0}
 #page:has(.pos-workspace){min-width:0;max-width:100%}
 #page .pos-workspace,#page .pos-sale-column,#page .pos-sale-column>.panel,#page #cart{width:100%;min-width:0;max-width:100%}
 #page #cart .tablewrap[data-mobile-layout="scroll"]{width:100%;min-width:0;max-width:100%;overflow:visible}
 #page #cart table{display:block;table-layout:auto;width:100%;min-width:0!important;max-width:100%}
 #page #cart tbody{display:block;width:100%;min-width:0;max-width:100%}
 #page #cart tr{width:100%;min-width:0;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}
 #page #cart tr td{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #page #cart tr td:nth-child(2){font-size:14px;line-height:1.35}
 #page #cart .pos-quantity{display:flex;width:100%;max-width:160px;min-width:0;gap:2px}
 #page #cart .pos-quantity input{width:0;min-width:0;flex:1;min-height:44px;padding:4px;text-align:center}
 #page #cart .pos-quantity .btn{flex:0 0 36px;min-width:36px;min-height:44px;padding:4px}
 #page #cart .btn{white-space:normal;max-width:100%}
 #page #pos-search-results:not(:empty){max-height:none;overflow:visible;margin-top:4px}
 #page #pos-search-results .pos-product-result{grid-template-columns:minmax(0,1fr) 88px;gap:6px 8px;padding:10px 0}
 #page #pos-search-results .pos-product-result>div{grid-column:1/-1;min-width:0}
 #page #pos-search-results .pos-product-result strong{font-size:14px;line-height:1.3;display:block;overflow-wrap:anywhere}
 #page #pos-search-results .pos-product-result small{font-size:12px;margin-top:2px}
 #page #pos-search-results .pos-product-result>.field{min-width:0;max-width:100%}
 #page #pos-search-results .pos-product-result input,#page #pos-search-results .pos-product-result select{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px}
 #page #pos-search-results .pos-product-result>button{grid-column:1/-1;min-height:44px;padding:8px}
 #page #pos-search.pos-entry>.field input{width:100%;min-width:0}
 #page .pos-search-help>summary{min-height:36px;font-size:12px}
 .pos-mobile-bar{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}
 .pos-mobile-bar strong{font-size:20px}.pos-mobile-bar .btn{min-height:44px}
}

/* 0.17.79 — legibilidad y acciones sin cambiar tokens ni tipografía. */
.workspace .navitem{min-height:44px}
.workspace .navitem>span:not(.authorization-badge){min-width:0}
.workspace .authorization-badge{flex:none;min-width:24px;text-align:center}
.module-tab{min-height:44px}
.page[data-module="reports"] .module-view>.panel,
.page[data-module="reports"] .module-view>.panel:has(.tablewrap){width:100%;max-width:none}
.page[data-module="reports"] .module-body .tablewrap,
.page[data-module="products"] .module-view[data-section="catalog"] .tablewrap{max-height:none!important}
.page[data-module="reports"] .module-view[data-section="low"]{grid-template-columns:minmax(0,1fr)}
.workspace #sidebar .brand-wordmark{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fiscal-queue .tablewrap td{vertical-align:top;line-height:1.45}
.fiscal-queue .tablewrap td strong,.fiscal-queue .tablewrap td small{display:block}
.fiscal-queue .tablewrap td small{margin-top:3px;color:var(--muted);font-size:11px;white-space:normal}
.finance-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.finance-navigation .module-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.finance-view-actions{display:flex;gap:6px;flex-wrap:wrap}
.finance-view-actions .btn{min-height:44px}
.finance-journal-pages{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:12px 0 20px;color:var(--muted);font-size:12px}
.finance-journal-pages .btn{min-height:44px}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap{max-height:none!important;overflow-y:visible}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap table{width:100%;min-width:0;table-layout:fixed}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th,
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap td{white-space:normal;overflow-wrap:anywhere}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(1){width:19%}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(2){width:17%}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(3){width:27%}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(4),
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(5){width:10%}
.page[data-module="accounting"] .panel:has([data-journal-lines])>.tablewrap th:nth-child(6){width:17%}
.journal-account-line{display:flex;flex-wrap:wrap;gap:3px 9px;padding:7px 0;border-bottom:1px solid var(--line);font-size:11px}
.journal-account-line:last-child{border-bottom:0}
.journal-account-line strong{flex-basis:100%;overflow-wrap:anywhere}
.journal-account-line span{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){.finance-navigation,.finance-navigation .module-tabs,.finance-view-actions{width:100%}.finance-view-actions .btn{flex:1}}
@media(max-width:760px){.finance-journal-pages{justify-content:space-between;flex-wrap:wrap}}
.qr-file-picker{display:flex;align-items:center;gap:9px;position:relative;min-height:44px;max-width:100%;overflow:hidden}
.qr-file-picker [data-qr-file-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.qr-file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.qr-file-picker:focus-within{outline:3px solid #7ccbb1;outline-offset:2px;border-radius:7px}
.qr-upload-preview{display:block;width:min(220px,100%);height:220px;object-fit:contain;margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.qr-upload-preview[hidden]{display:none}
.module-body .tablewrap{max-height:none!important;overflow-x:auto;overflow-y:visible}
.workspace #sidebar nav{min-height:0;scrollbar-gutter:stable}
@media(max-width:760px){
 .workspace .navitem,.module-tab{min-height:44px}
 .workspace .topbar{min-width:0}
 .workspace .context-header{min-width:0;max-width:100%}
 .workspace .context-header>div{min-width:0;flex:1}
 .workspace .context-header strong{display:block;max-width:calc(100vw - 92px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .workspace .header-actions{min-width:0}
 .workspace #sidebar{max-width:min(86vw,300px);padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 .workspace #sidebar nav{overflow-y:auto}
 .module-view,.module-view>.panel,.module-view .grid2,.module-view .grid3{min-width:0;max-width:100%}
 .module-view .tablewrap[data-mobile-layout="cards"]{overflow:visible}
 .module-view .tablewrap[data-mobile-layout="cards"] td{grid-template-columns:minmax(78px,.65fr) minmax(0,1.35fr)}
 .module-view .tablewrap[data-mobile-layout="cards"] td .btn{white-space:normal;max-width:100%}
 .module-navigation{scroll-padding-inline:15px}
 #page .pos-workspace,#page .pos-sale-column,#page .pos-payment{overflow-wrap:anywhere}
 #page .pos-sale-column>.panel,#page .pos-payment{min-width:0;width:100%;max-width:100%}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;padding:10px 12px}
 #page #cart .tablewrap[data-mobile-layout="cards"] td{display:block;min-width:0;padding:5px 0;border-bottom:0}
 #page #cart .tablewrap[data-mobile-layout="cards"] td::before{display:block;margin-bottom:3px}
 #page #cart .tablewrap[data-mobile-layout="cards"] td:nth-child(2){grid-column:1/-1;grid-row:1;font-size:14px;font-weight:600}
 #page #cart .tablewrap[data-mobile-layout="cards"] td:nth-child(1){grid-column:1/-1;grid-row:2}
 #page #cart .tablewrap[data-mobile-layout="cards"] td:nth-child(7){grid-column:1/-1}
 #page #cart .pos-quantity{max-width:210px}
 #page #cart [data-retail-remove]{min-height:44px}
 #page .pos-payment-options{gap:7px;margin:7px 0 10px}
 #page .pos-payment-option{min-height:44px}
 #page .pos-total{padding:12px;margin-bottom:13px}
 #page .pos-payment .field{margin-bottom:10px}
 #page #pos-checkout-reason{margin:7px 0;padding:8px 10px;line-height:1.35}
 #page #sale-form{display:flex;flex-direction:column;min-width:0}
 #page #sale-submit{order:1}
 #page #qr-turn-ops{order:2;margin-top:10px}
 #page #pos-search-results .pos-product-result{width:100%;min-width:0}
 #page #pos-search-results .pos-product-result>button{width:100%;min-width:0}
 .page[data-module="reports"] .module-body .tablewrap{overflow-x:auto}
}

/* El escáner acompaña al teléfono vertical sin rotar los fotogramas de la cámara. */
.camera-controls{position:absolute;z-index:2;top:8px;right:8px;display:flex;gap:5px}
#camera-box .camera-icon-btn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:9px;background:rgba(7,27,35,.82);cursor:pointer}
#camera-box .camera-icon-btn img{width:20px;height:20px}
#camera-box .camera-icon-btn[aria-pressed="true"]{border-color:#30cda8;background:#176454}
#camera-box .camera-icon-btn:disabled{opacity:.55;cursor:not-allowed}
#camera-box .camera-icon-btn:focus-visible{outline:3px solid #30cda8;outline-offset:2px}
#camera-box #camera-message{margin:8px 2px 2px;min-height:1.5em;font-size:13px;line-height:1.4;color:#e0eaf1;overflow-wrap:anywhere}
.camera-settings-dialog{width:min(420px,calc(100vw - 28px));max-width:calc(100vw - 28px);border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;color:#142c45}
.camera-settings-dialog::backdrop{background:rgba(7,27,35,.7)}
.camera-settings-dialog h3{margin:0 0 6px}
.camera-settings-dialog .tiny,#camera-box .camera-settings-dialog .tiny{color:var(--muted);font-size:13px;line-height:1.4}
#camera-box .camera-settings-dialog #camera-device-row{margin:16px 0;color:#142c45}
#camera-box .camera-settings-dialog #camera-device-row .label{color:var(--muted)}
.camera-settings-dialog select{width:100%;min-width:0}
.camera-settings-dialog .form-actions{display:flex;gap:8px;justify-content:flex-end}
.camera-settings-dialog .form-actions .btn{min-height:44px;font-size:14px;padding:9px 12px}
#camera-settings-dialog #camera-device-row{margin:16px 0;color:#142c45}
#camera-settings-dialog #camera-device-row .label{color:var(--muted)}
#camera-box{width:min(420px,calc(100vw - 24px));margin:auto;border:0;max-height:90dvh;overflow-y:auto;box-shadow:0 24px 70px rgba(7,27,35,.45)}
#camera-box::backdrop{background:rgba(7,27,35,.82)}
#camera-box .camera-dialog-title{color:#fff;font-size:17px;margin:0 0 10px}
@media(max-width:760px){
 #page #camera-box{width:calc(100vw - 20px);max-width:420px;max-height:90dvh;margin:auto;padding:12px;min-width:0}
 #page .barcode-viewfinder{width:min(100%,310px);max-width:none;max-height:43vh;aspect-ratio:3/4}
 #page #barcode-camera{display:block;width:100%;height:100%;object-fit:cover;transform:none}
 #page .barcode-target{inset:38% 8%;border-radius:8px}
 #page #camera-box .tiny{font-size:12px;line-height:1.35}
 #page .camera-settings-dialog .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #page .camera-settings-dialog .form-actions .btn{font-size:13px;min-height:44px;padding:8px;white-space:normal}
 #page[data-pos-step="client"] .pos-workspace{display:none}
 #page[data-pos-step="products"] #pos-client-step,#page[data-pos-step="cart"] #pos-client-step,#page[data-pos-step="payment"] #pos-client-step{display:none}
 #page[data-pos-step="products"] #pos-cart-step,#page[data-pos-step="cart"] #pos-product-step{display:none}
 #page[data-pos-step="payment"] .pos-sale-column{display:none}
 #page[data-pos-step="payment"] .pos-workspace .pos-payment{display:block}
 #page .pos-mobile-bar[hidden]{display:none}
 #page .pos-mobile-next,#page .pos-mobile-edit,#page .pos-mobile-client{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:8px 0 0}
 #page .pos-mobile-next{width:100%}
 #page .pos-mobile-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:12px}
 #page[data-pos-step="payment"] .pos-mobile-bar{display:none}
}
/* Compras: una lectura o búsqueda a la vez; revisión antes de registrar. */
.purchase-receive{max-width:850px}.purchase-find{padding-bottom:14px;border-bottom:1px solid var(--line)}
.purchase-find .form-actions{margin:0 0 10px}.purchase-match{display:flex;width:100%;justify-content:space-between;align-items:center;margin:5px 0;text-align:left;gap:12px}.purchase-match small{color:var(--muted)}
.purchase-new-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:12px}.purchase-new-form .field{flex:1 1 170px;margin:0}.purchase-new-form .btn{flex:0 0 auto}
.purchase-new-dialog{width:min(760px,94vw);max-height:90dvh;overflow:auto}.purchase-new-dialog .pos-picker-header{align-items:start}.purchase-new-dialog .pos-picker-header h3{margin:0}.purchase-new-modal-form section{border-top:1px solid var(--line);padding:14px 0}.purchase-new-modal-form h4{margin:0 0 12px}.purchase-new-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.purchase-new-grid .field{min-width:0;margin:0}.purchase-new-modal-form .checkline{margin:10px 0}.purchase-new-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.purchase-new-dialog [hidden]{display:none!important}
.purchase-price-section>.field{max-width:360px}.purchase-pack-option{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px}.purchase-pack-option summary{cursor:pointer;font-weight:600}.purchase-pack-option .tiny{margin:8px 0}.purchase-new-modal-form .purchase-price-section{padding-bottom:16px}
@media(max-width:600px){.purchase-new-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px}.purchase-new-grid{grid-template-columns:minmax(0,1fr)}.purchase-new-footer{position:sticky;bottom:-16px;background:var(--surface,#fff);padding:12px 0 16px}.purchase-new-footer .btn{flex:1}}
.purchase-line{padding:14px 0;border-top:1px solid var(--line)}.purchase-line-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.purchase-line-head strong{font-size:15px}.purchase-line-head>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.purchase-line-head .btn{flex:none}
.purchase-line-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);gap:10px}.purchase-line-fields .field{min-width:0}.purchase-extra{opacity:.9}.purchase-line-result{margin:0;color:var(--ink);font-weight:600}
.purchase-presentation-control{display:flex;align-items:end;gap:7px;min-width:0}.purchase-presentation-control .field{flex:1;min-width:0;margin-bottom:12px}.purchase-presentation-control .btn{flex:none;margin-bottom:12px;white-space:nowrap}.purchase-presentation-dialog{width:min(92vw,520px)}
.purchase-lot-control{display:flex;align-items:end;gap:7px;min-width:0}.purchase-lot-control .field{flex:1;min-width:0}.purchase-lot-control .btn{flex:none;margin-bottom:12px;white-space:nowrap}.purchase-line [aria-invalid="true"]{border-color:#b33030}
.purchase-grand{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px solid var(--line);font-size:16px}.purchase-grand strong{font-size:22px}
.purchase-camera{width:min(94vw,650px);max-height:90dvh;padding:16px;background:#102b38;color:#fff}.purchase-camera::backdrop{background:#101e2cbd}.purchase-camera-head,.purchase-camera-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.purchase-camera-head h3{margin:0;color:#fff}
.purchase-video-wrap{position:relative;width:100%;height:min(52dvh,410px);margin:12px 0;overflow:hidden;border-radius:12px;background:#071820}.purchase-video-wrap video{width:100%;height:100%;object-fit:cover}.purchase-scan-line{position:absolute;left:14%;right:14%;top:50%;border-top:2px solid #39cbaa}.purchase-camera-actions{justify-content:flex-end}.purchase-camera-actions .btn{display:grid;place-items:center;min-width:46px;min-height:44px}.purchase-camera-actions img{width:21px;height:21px}.purchase-camera [data-camera-options]{padding-top:12px}
@media(max-width:760px){.purchase-receive{width:100%}.purchase-line-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.purchase-presentation-control{grid-column:1/-1}.purchase-presentation-control .btn{max-width:43%;white-space:normal}.purchase-lot-control{grid-column:1/-1}.purchase-lot-control .btn{max-width:43%;white-space:normal}.purchase-extra>.field:first-child{grid-column:1/-1}.purchase-find .form-actions{display:flex}.purchase-find .form-actions .btn{flex:1}.purchase-camera{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0}.purchase-video-wrap{height:50dvh}}
@media print{body:has(#purchase-note-print) #sidebar,body:has(#purchase-note-print) .topbar,body:has(#purchase-note-print) .finance-navigation,body:has(#purchase-note-print) .page-title,body:has(#purchase-note-print) #purchase-print-note{display:none!important}body:has(#purchase-note-print) .page{max-width:none;padding:0}body:has(#purchase-note-print) .panel{border:0;box-shadow:none}body:has(#purchase-note-print) .tablewrap{overflow:visible}}
/* Recepción: cada línea revisada se comprime sin registrar aún la compra. */
.purchase-progress{margin:14px 0 6px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);font-size:13px;font-weight:650;color:var(--ink)}
.purchase-line-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.purchase-line-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.purchase-line-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:50px;font-size:11px;font-weight:700;white-space:nowrap}
.purchase-line-status.is-done{background:#e1f5e9;color:#17663d}.purchase-line-status.is-pending{background:#fff1d6;color:#8b5607}
.purchase-line-done{background:#f5faf7;border:1px solid #b7dfc8;border-radius:10px;padding:10px 12px;margin:7px 0}
.purchase-line-compact-summary{margin:4px 0 0;font-size:12px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}.purchase-line-compact-summary b{color:var(--ink)}
.purchase-line-pending{padding:14px 10px;border-left:3px solid #d19b3d;border-top:1px solid var(--line);margin-top:7px}
.purchase-line-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px}
.purchase-line-footer .purchase-line-result{flex:1;min-width:160px}
@media(max-width:600px){.purchase-line-head{align-items:flex-start;flex-direction:column}.purchase-line-actions{width:100%;justify-content:flex-start}.purchase-line-footer .btn{width:100%}}
/* Catálogo: distribución ajustada tras revisión de las pantallas reales */
.page[data-module="products"] .catalog-list-toolbar>.catalog-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:auto;min-width:0}
.page[data-module="products"] .catalog-list-toolbar>.catalog-toolbar-actions .btn{width:auto;min-width:126px}
.page[data-module="products"] .module-view[data-section="commercial"]>.panel:has(form){width:100%;max-width:none}
.page[data-module="products"] #presentation-select{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:12px;margin-bottom:16px}
.page[data-module="products"] #presentation-select>.field{margin:0}
.page[data-module="products"] #presentation-select>.btn{min-height:40px;margin:0}
.page[data-module="products"] #presentation-new{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:end}
.page[data-module="products"] #presentation-new>h4,.page[data-module="products"] #presentation-new>input[type="hidden"],.page[data-module="products"] #presentation-new>.note{grid-column:1/-1}
.page[data-module="products"] #presentation-new>.field{margin:0}
.page[data-module="products"] #presentation-new>.btn{grid-column:1/-1;justify-self:start;min-height:40px}
.page[data-module="products"] .module-view[data-section="categories"]>.panel{width:100%;max-width:none}
.page[data-module="products"] .product-group-list{max-height:none;overflow:visible}
@media(max-width:760px){.page[data-module="products"] .catalog-list-toolbar>.catalog-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.page[data-module="products"] .catalog-list-toolbar>.catalog-toolbar-actions .btn{width:100%;min-width:0}.page[data-module="products"] .catalog-list-toolbar>.catalog-toolbar-actions .primary{grid-column:1/-1;grid-row:1}.page[data-module="products"] #presentation-select,.page[data-module="products"] #presentation-new{grid-template-columns:1fr}.page[data-module="products"] #presentation-select>.btn{width:100%}}
/* Catálogo comercial: tarjetas de ancho de trabajo y límites visibles */
.page[data-module="products"] .module-view[data-section="commercial"]>.panel,
.page[data-module="products"] .module-view[data-section="commercial"]>.panel:has(form){width:min(100%,980px)!important;max-width:980px!important;padding:22px 24px!important;margin:0 0 14px!important;border:1px solid #d8e2e9!important;border-radius:10px!important;background:#fff;box-shadow:0 1px 3px rgba(21,35,59,.045)}
.page[data-module="products"] .module-view[data-section="commercial"]>.panel>h3{padding:0 0 13px!important;margin:0 0 17px!important;border-bottom:1px solid #e5eaf2;font-size:16px}
.page[data-module="products"] .module-view[data-section="commercial"] #presentation-select,
.page[data-module="products"] .module-view[data-section="commercial"] #presentation-new,
.page[data-module="products"] .module-view[data-section="commercial"] #presentation-list{min-width:0;max-width:100%;margin-left:0;margin-right:0}
.page[data-module="products"] .module-view[data-section="commercial"] #presentation-new{margin-top:20px}
.page[data-module="products"] .module-view[data-section="commercial"] #presentation-new>h4{margin:0 0 4px}
.page[data-module="products"] .module-view[data-section="commercial"] .tablewrap{max-width:100%;overflow-x:auto}
@media(max-width:760px){.page[data-module="products"] .module-view[data-section="commercial"]>.panel,.page[data-module="products"] .module-view[data-section="commercial"]>.panel:has(form){padding:17px!important;width:100%!important;max-width:100%!important}}
/* Categorías: superficie de trabajo legible */
.page[data-module="products"] .module-view[data-section="categories"]>.panel{width:min(100%,1120px)!important;max-width:1120px!important;padding:24px!important;border:1px solid #d8e2e9;border-radius:10px;box-shadow:0 1px 3px rgba(21,35,59,.045)}
.page[data-module="products"] #product-classification>h3{display:none}
.page[data-module="products"] .group-heading h3{font-size:19px;letter-spacing:-.025em;margin:0 0 5px}
.page[data-module="products"] .group-heading p{margin:0 0 20px;font-size:13px}
.page[data-module="products"] .group-toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}
.page[data-module="products"] .group-toolbar>.field{margin:0;flex:1;max-width:350px}
.page[data-module="products"] .group-toolbar input{min-height:40px;width:100%}
.page[data-module="products"] .group-toolbar .form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0}
.page[data-module="products"] .group-toolbar .btn{min-height:40px;margin:0}
.page[data-module="products"] .group-results:empty{display:none}
.page[data-module="products"] .group-results{margin:0 0 10px}
.page[data-module="products"] .product-group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;border:0;border-radius:0;max-height:none;overflow:visible}
.page[data-module="products"] .product-group-item{min-width:0;border:1px solid #dce6ec;border-radius:8px;background:#fff;overflow:hidden}
.page[data-module="products"] .product-group-item[hidden]{display:none}
.page[data-module="products"] .product-group-item summary{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:15px 17px;font-size:14px;line-height:1.35;list-style:none;min-height:78px}
.page[data-module="products"] .product-group-item summary::-webkit-details-marker{display:none}
.page[data-module="products"] .product-group-item summary strong{font-size:14px;overflow-wrap:anywhere}
.page[data-module="products"] .product-group-item summary span{font-size:12px;white-space:normal}
.page[data-module="products"] .product-group-item[open]{border-color:#9cc8b9;box-shadow:0 2px 8px rgba(21,35,59,.06)}
.page[data-module="products"] .product-group-item>div{padding:0 17px 17px;gap:7px}
.page[data-module="products"] .product-subgroup{font-size:12px;line-height:1.35;padding:6px 9px}
@media(max-width:900px){.page[data-module="products"] .group-toolbar{align-items:stretch;flex-direction:column}.page[data-module="products"] .group-toolbar>.field{max-width:none;width:100%}.page[data-module="products"] .group-toolbar .form-actions{justify-content:flex-start}}
@media(max-width:700px){.page[data-module="products"] .module-view[data-section="categories"]>.panel{padding:17px!important}.page[data-module="products"] .product-group-list{grid-template-columns:1fr}.page[data-module="products"] .group-toolbar .form-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.page[data-module="products"] .group-toolbar .btn{width:100%}.page[data-module="products"] .group-toolbar .btn.primary{grid-column:1/-1}}
/* Alta de artículo: nombre primero y acción visible al desplazarse */
.catalog-create-dialog .catalog-create-actions{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px -24px -24px;padding:14px 24px;background:#fff;border-top:1px solid #d8e2e9;box-shadow:0 -5px 18px rgba(21,35,59,.045)}
.catalog-create-dialog .catalog-create-actions .catalog-followup{flex:1 1 100%;margin:0;font-size:13px}
.catalog-create-dialog .catalog-create-actions .btn{width:auto;min-height:42px;margin:0}
.catalog-create-dialog .catalog-create-actions .btn.primary{order:1}
.catalog-create-dialog .catalog-create-actions [data-cancel-new-product]{order:2}
.catalog-create-dialog #new-product>.field:first-child input{font-size:16px;min-height:44px}
.catalog-create-dialog #new-product>.field:first-child .label{font-weight:700}
@media(max-width:700px){.catalog-create-dialog .catalog-create-actions{margin:18px -18px -18px;padding:12px 18px}.catalog-create-dialog .catalog-create-actions .btn{flex:1}}
/* Alta integral de artículos: subformularios dentro del mismo diálogo. */
.catalog-integral{display:grid;gap:16px;margin:18px 0}
.catalog-integral-section{border:1px solid var(--line,#d8e2e9);border-radius:12px;padding:16px;background:var(--surface,#fff)}
.catalog-integral-section h4{margin:0 0 5px;font-size:16px}
.catalog-integral-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.catalog-integral-heading p{margin:0}.catalog-integral-presentation{padding:14px 0;border-top:1px solid var(--line,#d8e2e9)}
.catalog-integral-presentation .catalog-integral-heading{align-items:center}
.catalog-integral-search{display:flex;align-items:end;gap:10px}.catalog-integral-search .field{flex:1;margin-bottom:0}
.catalog-integral-search .btn{margin-bottom:12px}.catalog-integral-section [data-fiscal-presentation-units]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:700px){.catalog-integral-heading,.catalog-integral-search{flex-wrap:wrap}.catalog-integral-section [data-fiscal-presentation-units]{grid-template-columns:1fr}}

/* El código bancario guía el cobro; el importe acompaña sin desplazar la imagen. */
.qr-payment-dialog .qr-payment-amount{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:8px 0 4px}
.qr-payment-dialog .qr-expiry{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper,#f4f7fb);font-size:13px}
.qr-payment-dialog .qr-expiry[hidden]{display:none}
.qr-payment-dialog .qr-expiry strong{font-size:22px;font-variant-numeric:tabular-nums;color:var(--ink)}
.qr-payment-dialog .qr-bank-request{margin:10px 0;font-size:12px}
.qr-payment-dialog .qr-bank-request dl{display:grid;grid-template-columns:1fr 1.3fr;gap:5px 10px;margin:8px 0}
.qr-payment-dialog .qr-bank-request dt{color:var(--muted)}
.qr-payment-dialog .qr-bank-request dd{margin:0;overflow-wrap:anywhere}
.qr-payment-amount>span{font-size:13px;color:var(--muted)}
.qr-payment-amount>strong{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.qr-payment-dialog .qr-sale-total{font-size:12px;line-height:1.4;color:var(--muted);margin:4px 0 8px}
.qr-payment-dialog .qr-payment-image{margin:8px 0 12px}
.qr-payment-dialog .qr-payment-image img{width:auto;max-width:min(290px,100%);height:auto;max-height:290px;margin:0 auto;object-fit:contain}
@media(max-width:600px){.qr-payment-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);padding:16px}.qr-payment-dialog .qr-payment-amount>strong{font-size:22px}}

/* Caja QR: imagen bancaria sin recortes, estado y una sola acción visible. */
.qr-dynamic-dialog{width:min(390px,calc(100vw - 24px));max-height:min(96dvh,760px);padding:18px 20px 16px;overflow-y:auto;overscroll-behavior:contain}
.qr-dynamic-dialog h3{font-size:18px;line-height:1.3}
.qr-dynamic-dialog .qr-payment-amount{margin:8px 0 4px}
.qr-dynamic-dialog .qr-payment-image{margin:6px auto 8px;line-height:0;text-align:center}
.qr-dynamic-dialog .qr-payment-image img{display:block;width:min(260px,100%);height:auto;max-height:none;margin:0 auto;image-rendering:auto}
.qr-dynamic-dialog .qr-state{padding:7px 10px;margin:7px 0;line-height:1.35}
.qr-dynamic-dialog .qr-expiry{margin:7px 0;padding:7px 10px}
.qr-dynamic-dialog .qr-expiry strong{font-size:20px}
.qr-dynamic-dialog .qr-sale-reference{margin:8px 0 2px;color:var(--ink)}
.qr-dynamic-dialog .qr-environment{margin:0 0 8px;color:var(--muted)}
.qr-dynamic-dialog .qr-dialog-actions{position:sticky;bottom:-16px;display:flex;margin:10px -20px -16px;padding:12px 20px 16px;background:var(--surface);border-top:1px solid var(--line)}
.qr-dynamic-dialog .qr-dialog-actions .btn{width:100%;min-height:44px;white-space:normal;font-weight:650}
@media(max-width:600px){.qr-dynamic-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:14px}.qr-dynamic-dialog .qr-dialog-actions{bottom:-14px;margin:8px -14px -14px;padding:10px 14px 14px}.qr-dynamic-dialog .qr-payment-image img{width:min(250px,100%)}}

/* Carrito móvil: cada dato ocupa un área propia, con controles de 44 px. */
@media(max-width:760px){
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"name name" "presentation presentation" "quantity subtotal" "price discount" "stock remove";gap:4px 12px;padding:12px;margin-bottom:8px}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td{display:block;min-width:0;width:auto;max-width:100%;padding:0;border:0;align-self:center;line-height:1.35}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td::before{content:attr(data-label);display:inline;font-size:11px;font-weight:400;color:var(--muted);margin:0 4px 0 0}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(1){grid-area:quantity}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(2){grid-area:name;font-size:14px;font-weight:650}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(3){grid-area:presentation;font-size:11px;color:var(--muted);padding-bottom:4px}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(4){grid-area:price;font-size:12px}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(5){grid-area:discount;font-size:11px}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(6){grid-area:subtotal;text-align:right;font-size:16px;font-weight:650}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(7){grid-area:stock;text-align:left;font-size:11px;color:var(--muted)}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(8){grid-area:remove;text-align:right}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(1)::before,#page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(2)::before,#page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(8)::before{content:none}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(6)::before{display:block;margin:0 0 2px;font-weight:400}
 #page #cart .tablewrap[data-mobile-layout="cards"] tbody tr td:nth-child(5):has(.pos-no-discount){display:none}
 #page #cart .pos-quantity{width:100%;max-width:160px;gap:0;padding:0}
 #page #cart .pos-quantity .btn{flex:0 0 40px;min-width:40px;min-height:44px}
 #page #cart .pos-quantity input{min-height:44px;font-size:14px}
 #page #cart [data-retail-remove]{min-height:44px;padding:8px 12px;font-size:12px}
 #page[data-pos-step="payment"] #pos-feedback[data-feedback-source="product"]{display:none}
}
.qr-payment-dialog{width:min(430px,calc(100vw - 16px))}
@media(max-width:600px){.qr-payment-dialog{padding:12px}.qr-payment-dialog h3{font-size:17px}.qr-payment-dialog .qr-payment-image{margin:8px 0}}
.qr-cert-form{display:grid;gap:14px}.qr-cert-item{border:1px solid var(--line);border-radius:10px;padding:18px;margin:12px 0;background:var(--surface)}.qr-cert-item .form-actions{display:flex;gap:8px;flex-wrap:wrap}.qr-cert-image{display:block;width:min(280px,100%);height:auto;margin:16px auto;image-rendering:auto}

.qr-cert-decrypted{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:8px}

/* V20.109: comprobación del código de barras mientras se registra una compra */
.purchase-new-dialog .purchase-barcode-notice{font-size:12px;line-height:1.4;padding:8px 10px;border-radius:7px;margin:6px 0 0;background:#edf3fb;color:#274368}
.purchase-new-dialog .purchase-barcode-notice.duplicate{background:#fff0ed;color:#a12c27;border:1px solid #f1c9c3;font-weight:600}
.purchase-new-dialog .purchase-barcode-notice.clear{background:#e8f6ee;color:#176338}
.purchase-new-dialog .purchase-barcode-notice[hidden]{display:none!important}
/* Indicación breve junto a los datos que se copian del voucher de tarjeta. */
.pos-card-guidance{padding:12px 14px;margin:12px 0;border:1px solid #d7e5ef;border-left:3px solid #2870ab;border-radius:8px;background:#f3f8fc;color:#29435b;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.pos-card-guidance strong{color:#173958}.pos-card-guidance span{display:block;margin-top:6px}
.pos-mixed-dialog [data-card-reference] small{display:block;margin-top:5px;color:#60758a}
/* Cobro de productos medidos: importe editable sin desbordar la tarjeta del POS. */
#page #cart .pos-variable-amount{display:block;margin:8px 0 0;max-width:230px}
#page #cart .pos-variable-amount .label{display:block;white-space:normal;font-size:11px}
#page #cart .pos-variable-amount input{width:100%;min-height:40px}
@media(max-width:760px){#page #cart .pos-variable-amount{max-width:100%}}
#new-product label[hidden]:has([name="variable_amount"]){display:none!important}
#new-product [data-measured-help]{margin:8px 0 4px;line-height:1.45}

.sale-close-logo{width:88px;height:72px;object-fit:contain;padding:4px}
.customer-edit-dialog{width:min(720px,calc(100vw - 28px));max-width:720px;max-height:88dvh;overflow:auto;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);box-shadow:0 22px 70px #10263844}
.customer-edit-header,.customer-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
.customer-edit-header{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:16px}.customer-edit-header h3{margin:0}.customer-edit-header p{margin:4px 0 0}
.customer-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.customer-edit-grid>.field:first-child{grid-column:1/-1}.customer-edit-grid .field{min-width:0;margin:0}.customer-edit-grid input,.customer-edit-grid select{width:100%;min-width:0}
.customer-edit-grid [data-mx-phone]{grid-column:1/-1}.customer-edit-grid [data-mx-phone-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.customer-edit-grid [data-mx-phone-fields][hidden]{display:none}.customer-edit-dialog .checkline{margin:16px 0}.customer-edit-actions{justify-content:flex-end;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:650px){.customer-edit-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px}.customer-edit-grid,.customer-edit-grid [data-mx-phone-fields]{grid-template-columns:1fr}.customer-edit-grid>.field:first-child{grid-column:auto}.customer-edit-actions{position:sticky;bottom:-16px;background:var(--surface,#fff);padding-bottom:16px}.customer-edit-actions .btn{flex:1}}

/* V20.507: mensajes fiscales al frente en todas las modalidades / pantallas. */
#toast{z-index:2147482000;max-width:min(460px,calc(100vw - 24px));pointer-events:none}
#toast .toast{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
dialog.mx-nit-warning-overlay[open]{position:fixed;inset:0;z-index:2147483000;display:flex;justify-content:center;align-items:center;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:16px;background:transparent;border:none;overscroll-behavior:contain}
dialog.mx-nit-warning-overlay::backdrop{background:rgba(10,26,46,.72)}
.mx-nit-warning-dialog{width:min(460px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:22px;background:#fff;color:#17273a;border:1px solid #d8e2ec;border-radius:16px;box-shadow:0 22px 70px rgba(0,0,0,.3)}
.mx-nit-warning-dialog h3{font-size:20px;line-height:1.3;margin:0 0 12px;color:#17273a}
.mx-nit-warning-dialog p{font-size:14px;line-height:1.5;margin:12px 0}
.mx-nit-warning-number{background:#f0f4f9;padding:10px 12px;border-radius:9px;overflow-wrap:anywhere}
.mx-nit-warning-dialog .mx-nit-warning-note{font-size:13px;color:#47576a}
.mx-nit-warning-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px;margin-top:18px}
.mx-nit-warning-actions .btn{min-height:46px;white-space:normal;text-align:center;padding:10px}
@media(max-width:640px){#toast{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));bottom:auto;width:auto;margin:auto}.mx-nit-warning-overlay{padding:12px}.mx-nit-warning-dialog{max-height:calc(100dvh - 24px);padding:17px 16px}.mx-nit-warning-actions{grid-template-columns:1fr}}

/* Cierre de venta: el nombre y la presentación son campos independientes. */
.sale-close-sheet .sale-receipt-product-name{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.sale-close-sheet .sale-receipt-unit{display:block;white-space:normal;overflow-wrap:anywhere;color:var(--muted,#597087)}
@media(min-width:761px){.sale-close-sheet .sale-receipt-items th:nth-child(2),.sale-close-sheet .sale-receipt-items td:nth-child(2){min-width:84px;text-align:left}.sale-close-sheet .sale-receipt-items th:first-child{width:55%}}


/* Archivo: qr-banking.css */
/* MIONEXO 0.20.63 · Banco Económico + BNB. Aislamiento de estilos para no alterar caja/POS. */
.qr-integrations-hub{margin:6px 0 22px}
.qr-integrations-hero{display:flex;gap:15px;align-items:flex-start;margin:0 0 19px;padding:21px 23px;border:1px solid #dce9f0;border-radius:15px;background:linear-gradient(115deg,#f2f8ff,#f8fbff 66%,#f2f8f4);color:#172b44}
.qr-integrations-hero-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:13px;background:#dcecfb;color:#255aa5;font-size:26px;font-weight:600}
.qr-integrations-eyebrow{font-size:10px;letter-spacing:.09em;font-weight:800;color:#386b92}
.qr-integrations-hero h3{margin:4px 0 6px;font-size:21px;font-weight:750;letter-spacing:-.035em}
.qr-integrations-hero p{margin:0;max-width:740px;color:#61758a;font-size:13px;line-height:1.65}
.qr-integrations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:17px}
.qr-integration-card{position:relative;min-width:0;overflow:hidden;border:1px solid #dfe7f0;border-radius:16px;background:var(--surface,#fff);box-shadow:0 3px 12px #172b4310,0 12px 28px #172b4305;transition:border-color .18s,box-shadow .18s;}
.qr-integration-card:hover{border-color:#c5d6e6;box-shadow:0 7px 24px #172b431a}
.qr-integrations-topline{height:5px;background:linear-gradient(90deg,#079451,#45c17a);}
.qr-integration-card--baneco .qr-integrations-topline{background:linear-gradient(90deg,#c91b34,#f06a58)}
.qr-integration-card--current{border-color:#9bd9be;box-shadow:0 0 0 2px #d6f5e5,0 9px 22px #172b430d}
.qr-integration-card--expanded{grid-column:1/-1;border-color:#9cbedc;box-shadow:0 6px 24px #18324a19}
.qr-integration-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:11px;padding:23px 23px 11px}
.qr-integration-brand{display:flex;align-items:center;min-width:0;gap:14px}
.qr-integration-logo{display:flex;align-items:center;justify-content:center;flex:none;min-width:74px;height:59px;padding:4px 12px;border-radius:13px;font-weight:850;line-height:.99;white-space:nowrap;text-align:center}
.qr-integration-logo--bnb{color:#fff;background:linear-gradient(145deg,#07954f,#0c6c43);box-shadow:0 5px 10px #15925721;font-size:23px;letter-spacing:.035em}
.qr-integration-logo--baneco{color:#c61734;background:#fff2f2;border:1px solid #f5d6d7;font-size:14px;font-weight:800;letter-spacing:-.045em}
.qr-integration-name{min-width:0}.qr-integration-name h3{margin:0 0 3px;font-size:16px;font-weight:750;line-height:1.25;letter-spacing:-.015em}.qr-integration-name>span{color:#6e7f90;font-size:11px}
.qr-integrations-status{display:inline-flex;gap:7px;align-items:center;flex-shrink:0;max-width:180px;padding:6px 9px;border-radius:99px;font-size:10px;font-weight:750;line-height:1.35;background:#eff3f6;color:#5b6d7c}
.qr-status-dot{width:7px;height:7px;flex:none;border-radius:50%;background:currentColor}
.qr-integrations-status--active{background:#e1f7e9;color:#168354}.qr-integrations-status--ready{background:#e7f2ff;color:#2568b8}.qr-integrations-status--error{background:#fff0f0;color:#ba4850}.qr-integrations-status--pending{background:#fff4e4;color:#9b6724}
.qr-integrations-card-content{padding:8px 23px 13px}
.qr-integrations-subtitle{margin:0 0 16px;font-size:12px;font-weight:650;color:#647488}
.qr-integrations-metadata{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:13px}
.qr-integrations-metadata>div{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px;border:1px solid #e7edf2;border-radius:10px;background:#f8fafc}
.qr-integrations-metadata span{font-size:10px;color:#778798}.qr-integrations-metadata strong{font-size:11px;font-weight:750;line-height:1.4;overflow-wrap:anywhere;color:#26374c}
.qr-integrations-card-note{font-size:12px;line-height:1.55;color:#687b8c;min-height:37px}
.qr-integration-card-actions{display:flex;flex-direction:column;gap:8px;padding:15px 23px 22px;border-top:1px solid #edf0f4}
.qr-integration-configure{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px!important;border:1px solid #cadced!important;border-radius:9px!important;background:#eff6ff!important;color:#215da8!important;font-size:13px!important;font-weight:750!important}
.qr-integration-configure:hover,.qr-integration-configure.is-open{background:#e1efff!important;border-color:#a4c3e9!important}
.qr-chevron{margin-left:auto;font-size:20px;line-height:1}.qr-integration-configure.is-open .qr-chevron{transform:rotate(180deg)}
.qr-integrations-secondary{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.qr-integrations-secondary>.btn{min-height:36px}.qr-in-use{font-size:11px;font-weight:700;color:#208358}
.qr-integration-details{padding:0 23px 25px;border-top:1px solid #e8eef3}
.qr-integration-details-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:20px 0 18px}
.qr-integration-details-header h4{font-size:16px;font-weight:750;letter-spacing:-.02em;margin:0 0 3px}.qr-integration-details-header p{margin:0;font-size:11px;color:#728397}
.qr-sandbox-tag{border:1px solid #d6e8fa;background:#f1f8ff;border-radius:7px;padding:6px 9px;color:#386b9f;font-size:10px;font-weight:700;white-space:nowrap}
.qr-integration-inner-tabs{display:flex;gap:4px;padding:4px;background:#f3f6f9;border:1px solid #e8eef4;border-radius:10px;margin-bottom:17px;overflow:auto}
.qr-integration-inner-tab{flex:1;min-width:120px;padding:10px 12px;min-height:38px;border:0;border-radius:7px;background:transparent;color:#607287;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.qr-integration-inner-tab.active{background:#fff;color:#235ea4;box-shadow:0 1px 5px #132b441c}
.qr-bank-forms{min-width:0}.qr-integration-form{max-width:none;padding:17px;border:1px solid #e6edf3;background:#fcfdff;border-radius:11px}
.qr-pane-caption{display:flex;flex-direction:column;gap:4px;margin-bottom:16px}.qr-pane-caption strong{font-size:13px;color:#20334a}.qr-pane-caption span{font-size:11px;line-height:1.5;color:#758597}
.qr-integration-form .qr-bank-fields{gap:12px 16px}.qr-integration-form .field{margin-bottom:12px;min-width:0}
.qr-bank-field-help{margin:7px 0 0!important;font-size:11px!important;color:#6c7f91!important;line-height:1.6!important}
.qr-bank-save{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:15px;padding-top:14px;border-top:1px solid #e6edf3}.qr-bank-save .btn{min-height:41px}.qr-bank-save span{font-size:11px;color:#718196}
.qr-integration-card .qr-bank-advanced{margin:12px 0 0;border-color:#e2eaf2;background:#fff;border-radius:9px}.qr-integration-card .qr-bank-advanced summary{color:#35618e;font-size:12px}.qr-integration-card .qr-bank-advanced[open]{padding:14px}
.qr-bank-testing{padding:15px 16px 20px;border-radius:10px;border:1px solid #e6edf3;background:#fcfdff}
.qr-integration-test-line{display:flex;gap:13px;align-items:center;margin:14px 0;padding:16px;border:1px solid #e2edf3;border-radius:10px;background:#f5f9fc}
.qr-test-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#e2f3e9;color:#278257;font-weight:800}
.qr-integration-test-line strong{font-size:12px}.qr-integration-test-line p{font-size:11px;color:#738193;margin:4px 0 0}
.qr-test-actions{display:flex;gap:9px;flex-wrap:wrap}.qr-test-note,.qr-empty-test{margin:15px 0 0;padding:12px 14px;border:1px solid #e5edf5;background:#f7fafe;border-radius:9px;font-size:11px;color:#56728d;line-height:1.65}
.qr-integrations-footnote{margin:15px 2px;color:#6c7c89;font-size:11px;line-height:1.65}
.qr-integration-history{padding:15px 18px;margin:16px 0 0;border:1px solid #e1e8f0;background:#fff;border-radius:11px}
.qr-integration-history>summary{display:flex;gap:10px;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700;color:#475e75;font-size:12px}
.qr-integration-history>summary span{font-size:11px;font-weight:500;color:#7d8996}.qr-integration-history>.tablewrap{margin-top:16px}
@media(max-width:900px){.qr-integrations-grid{grid-template-columns:1fr}.qr-integration-card--expanded{grid-column:auto}}
@media(max-width:570px){.qr-integrations-hero{padding:16px}.qr-integrations-hero h3{font-size:18px}.qr-integrations-hero-icon{width:37px;height:37px;font-size:21px}.qr-integration-card-header{padding:18px 14px 8px;flex-direction:column}.qr-integrations-status{max-width:none}.qr-integrations-card-content{padding:9px 14px 12px}.qr-integration-card-actions{padding:14px}.qr-integration-details{padding:0 14px 18px}.qr-integrations-metadata{gap:8px}.qr-integration-logo{min-width:64px;height:50px}.qr-integration-name h3{font-size:15px}.qr-integration-inner-tab{min-width:104px;padding:9px 10px}.qr-integration-form{padding:13px}.qr-integration-form .grid2{grid-template-columns:1fr}.qr-integration-details-header{align-items:flex-start;flex-wrap:wrap}.qr-bank-save .btn{width:100%}}

/* En móvil, el selector de modalidad es una barra clara de dos botones. */
@media(max-width:600px){.qr-mode-switch{display:block!important}.qr-mode-switch>div:first-child{margin-bottom:12px}.qr-mode-switch-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%}.qr-mode-switch-actions .btn{min-width:0!important;width:100%;min-height:44px;white-space:normal;line-height:1.3}.qr-mode-switch p{margin-top:6px}}

/* Baneco 0.20.91: selector explícito de entornos por empresa */
.qr-baneco-env-switch{display:flex;gap:9px;flex-wrap:wrap;margin:3px 0 11px}
.qr-baneco-env-switch .btn{min-height:42px;min-width:120px;flex:1}
.qr-baneco-base-url{overflow-wrap:anywhere;word-break:break-word;padding:9px 11px;border:1px solid #e2eaf2;border-radius:8px;background:#fafcff}
.qr-sandbox-tag--production{border-color:#e5ce93;background:#fff5d8;color:#805b13}
/* 0.20.94: entornos explícitos para operaciones QR manuales */
.qr-cert-environments{display:flex;gap:8px;margin:0 0 12px;max-width:620px}
.qr-cert-environments .btn{flex:1}
.qr-cert-env-alert{border:1px solid #c7def5;background:#f0f8ff;border-radius:10px;padding:14px 16px;margin:0 0 16px;color:#163650}
.qr-cert-env-alert strong{display:block;margin-bottom:6px}
.qr-cert-env-alert p{margin:0 0 6px;font-size:13px;line-height:1.6}
.qr-cert-env-alert small{overflow-wrap:anywhere}
.qr-cert-env-alert--production{border-color:#e7b383;background:#fff5e7;color:#793e0c}
.qr-cert-ack{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #e7b383;border-radius:8px;background:#fff9f1;color:#793e0c;font-weight:600;font-size:13px}
.qr-cert-ack input{width:16px;height:16px;flex:none;margin-top:1px}
@media (max-width:600px){.qr-cert-environments{width:100%}.qr-cert-env-alert{padding:12px}}

/* 0.20.96 — remitente informado por el banco; cuenta siempre enmascarada. */
.qr-payer-detail{display:grid;gap:3px;margin:6px 0;padding:8px 10px;background:var(--paper,#f4f7fb);border:1px solid var(--line,#ddd);border-radius:6px;font-size:12px;max-width:360px;overflow-wrap:anywhere}
.qr-payer-detail span{font-size:12px;color:var(--muted,#506070)}
.qr-payer-pos{padding:7px 9px;border-radius:6px;background:var(--paper,#f4f7fb);font-size:12px;overflow-wrap:anywhere}

/* V20.107: gestión comprensible de cuentas y credenciales protegidas. */
.qr-saved-panel{border:1px solid #cbdced;background:#f6faff;border-radius:11px;padding:15px 16px;margin:0 0 14px}
.qr-saved-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px;color:#183550}
.qr-credential-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.qr-credential-summary>div{min-width:0;padding:9px 11px;border:1px solid #e0e9f3;border-radius:8px;background:#fff}
.qr-credential-summary span{display:block;font-size:11px;color:#6b7f91;margin-bottom:4px}
.qr-credential-summary strong{display:block;font-size:12px;overflow-wrap:anywhere;color:#203851}
.qr-bank-identity-note{font-size:11px;line-height:1.6;color:#56697c;margin:10px 0 0}
.qr-managed-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.qr-managed-actions .btn{min-height:36px}
.qr-managed-status{display:inline-block;font-size:10px;border-radius:12px;padding:4px 8px;background:#eef2f5;color:#506174;font-weight:700}
.qr-managed-status--active{background:#e1f6ed;color:#186747}
.qr-managed-list{margin-top:12px!important}
.qr-managed-account{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px;border-bottom:1px solid #e4ecf1}
.qr-managed-account:last-child{border-bottom:0}
.qr-managed-account strong{font-size:12px}.qr-managed-account small{display:block;color:#65798c;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.qr-managed-account .qr-managed-actions{margin:0;flex:none}
@media(max-width:650px){.qr-credential-summary{grid-template-columns:1fr}.qr-managed-account{display:block}.qr-managed-account .qr-managed-actions{margin-top:8px}}

/* V20.109: administración bancaria compacta sin bloque ancho de configuración */
.qr-integration-card-actions .qr-bank-manage-button{width:auto;min-width:145px;max-width:100%;justify-content:center;align-self:flex-start;padding:9px 13px}
@media(max-width:600px){.qr-integration-card-actions .qr-bank-manage-button{width:100%}}
.qr-bank-new-connection{padding:17px;border:1px solid #c9dff1;border-radius:12px;background:#f8fbff;margin-bottom:20px}.qr-bank-new-connection>h4,.qr-existing-heading{margin:0 0 8px;font-size:15px}.qr-existing-heading{margin:18px 0 12px}.qr-source-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.qr-source-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;padding:15px;border:2px solid #d8e3ed;border-radius:10px;background:#fff;color:#19334f;cursor:pointer}.qr-source-choice strong{font-size:14px}.qr-source-choice span{font-size:12px;line-height:1.45;color:#566c81}.qr-source-choice[aria-pressed="true"]{border-color:#1785db;background:#eaf5ff}.qr-source-choice:focus-visible{outline:3px solid #1785db;outline-offset:2px}@media(max-width:650px){.qr-source-choices{grid-template-columns:1fr}}
.qr-bank-new-accordion{padding:0;background:#fff;margin:18px 0 0}.qr-bank-new-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:16px;list-style:none}.qr-bank-new-accordion>summary::-webkit-details-marker{display:none}.qr-bank-new-accordion>summary strong{font-size:14px;color:#183b5c}.qr-bank-new-accordion>summary span{font-size:12px;color:#5d7184;text-align:right}.qr-bank-new-accordion>summary:before{content:'▸';color:#1681cf;font-size:16px}.qr-bank-new-accordion[open]>summary:before{content:'▾'}.qr-bank-new-content{padding:0 16px 16px;border-top:1px solid #dbe8f2}.qr-bank-new-accordion>summary:focus-visible{outline:3px solid #1681cf;outline-offset:2px}@media(max-width:650px){.qr-bank-new-accordion>summary{align-items:flex-start;flex-wrap:wrap}.qr-bank-new-accordion>summary span{width:100%;text-align:left;padding-left:18px}}


/* Archivo: purchase-history.css */
/* Historial de compras: conserva tipografía y paleta de MIONEXO. */
.purchase-history{--purchase-surface:#fff;--purchase-rule:var(--line);--purchase-soft:color-mix(in srgb,var(--green) 7%,#fff);min-width:0;color:var(--ink)}
.purchase-history [hidden]{display:none!important}
.purchase-history-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:12px 0 22px}
.purchase-history-heading h3{font-size:22px;letter-spacing:-.035em;margin:3px 0 3px}
.purchase-history-heading p{font-size:13px;color:var(--muted);margin:0}
.purchase-history-total{text-align:right;min-width:0}
.purchase-history-total span{display:block;font-size:11px;color:var(--muted)}
.purchase-history-total strong{font-size:25px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
#purchase-history-search{display:flex;gap:10px;margin:0 0 22px}
#purchase-history-search label{flex:1;min-width:0}
#purchase-history-search input{width:100%;min-height:46px;border:1px solid var(--purchase-rule);border-radius:8px;background:var(--purchase-surface);padding:10px 14px;color:var(--ink)}
#purchase-history-search .btn{min-height:46px}
.purchase-history-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:22px;align-items:start}
.purchase-history-book{min-width:0}
.purchase-history-columns,.purchase-history-entry{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr) minmax(90px,.6fr);gap:12px;align-items:center}
.purchase-history-columns{padding:0 12px 10px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--purchase-rule)}
.purchase-history-columns span:last-child{text-align:right}
.purchase-history-entry{width:100%;min-height:84px;padding:14px 12px;text-align:left;border:0;border-bottom:1px solid var(--purchase-rule);border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:13px}
.purchase-history-entry:hover{background:var(--purchase-soft)}
.purchase-history-entry[aria-pressed=true]{box-shadow:inset 3px 0 var(--green);background:var(--purchase-soft)}
.purchase-history-entry>span{min-width:0;overflow-wrap:anywhere}
.purchase-history-entry strong{display:block;font-size:13px;font-weight:600}
.purchase-history-entry small,.purchase-history-entry time{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}
.purchase-history-entry b{font-weight:600;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.purchase-history-method{font-weight:500}
.purchase-history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;color:var(--muted);font-size:12px}
.purchase-history-pagination>div{display:flex;gap:8px}
.purchase-history-empty{padding:30px 12px;color:var(--muted);font-size:13px}
.purchase-history-detail{position:sticky;top:20px;padding:22px;background:var(--purchase-surface);border:1px solid var(--purchase-rule);border-radius:10px;min-width:0;overflow-wrap:anywhere}
/* El detalle también es un aside; no debe heredar la apariencia del menú lateral. */
.workspace aside.purchase-history-detail{display:block;position:sticky;top:20px;width:auto;height:auto;min-height:0;max-width:none;overflow:visible;padding:22px;gap:0;background:var(--purchase-surface);color:var(--ink);border:1px solid var(--purchase-rule)}
.purchase-detail-kicker{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.06em;color:var(--muted)}
.purchase-detail-title{text-align:center;padding:22px 0;border-bottom:1px dashed var(--purchase-rule)}
.purchase-detail-title span,.purchase-detail-title time{display:block;color:var(--muted);font-size:12px}
.purchase-detail-title h3{font-size:24px;margin:3px 0 9px;letter-spacing:-.04em}
.purchase-detail-party{display:grid;gap:3px;padding:18px 0;border-bottom:1px dashed var(--purchase-rule);font-size:12px}
.purchase-detail-party span,.purchase-detail-party small{color:var(--muted)}
.purchase-detail-party strong{font-size:15px}
.purchase-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 24px;font-size:12px}
.purchase-detail-meta div{min-width:0}
.purchase-detail-meta dt,.purchase-detail-payment dt{color:var(--muted)}
.purchase-detail-meta dd{margin:3px 0 0;font-weight:500;overflow-wrap:anywhere}
.purchase-history-detail h4{font-size:13px;margin:0 0 8px}
.purchase-detail-line{border-top:1px solid var(--purchase-rule);padding:13px 0}
.purchase-detail-line-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.purchase-detail-line-head strong{font-weight:600}
.purchase-detail-line-head b{flex-shrink:0;font-variant-numeric:tabular-nums}
.purchase-detail-line p{color:var(--muted);font-size:11px;line-height:1.5;margin:5px 0 0}
.purchase-detail-sum,.purchase-detail-grand{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding-top:10px;font-size:12px}
.purchase-detail-sum strong,.purchase-detail-grand strong{font-variant-numeric:tabular-nums}
.purchase-detail-grand{border-top:1px solid var(--ink);margin-top:8px;padding-top:16px;font-size:14px}
.purchase-detail-grand strong{font-size:21px;letter-spacing:-.035em}
.purchase-detail-payment{border-top:1px dashed var(--purchase-rule);padding-top:12px;margin:20px 0 0}
.purchase-detail-payment div{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:8px 0}
.purchase-detail-payment dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.purchase-detail-note{border-top:1px dashed var(--purchase-rule);margin:16px 0 0;padding-top:12px;color:var(--muted);font-size:11px;line-height:1.5}
.purchase-history-back{display:none;margin:0 0 14px}
.purchase-history :focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:950px){.purchase-history-layout{grid-template-columns:1fr}.purchase-history-detail{display:none;position:static}.purchase-history-show-detail .purchase-history-book,.purchase-history-show-detail #purchase-history-search{display:none}.purchase-history-show-detail .purchase-history-detail,.purchase-history-show-detail .purchase-history-back{display:block}}
.workspace .purchase-history:not(.purchase-history-show-detail) aside.purchase-history-detail{display:block}
@media(max-width:950px){.workspace .purchase-history:not(.purchase-history-show-detail) aside.purchase-history-detail{display:none}.workspace aside.purchase-history-detail{position:static;width:100%}}
@media(max-width:560px){.purchase-history-heading{align-items:start;flex-direction:column;gap:10px}.purchase-history-total{text-align:left}.purchase-history-columns,.purchase-history-entry{grid-template-columns:minmax(0,1.4fr) minmax(0,.75fr) minmax(70px,.6fr);gap:8px}.purchase-history-columns{font-size:10px;padding:0 4px 8px}.purchase-history-entry{padding:12px 4px;font-size:11px;min-height:76px}.purchase-history-entry strong,.purchase-history-entry b{font-size:11px}.purchase-history-method small{display:none}.purchase-history-detail{padding:17px}.purchase-detail-meta{gap:10px}#purchase-history-search{gap:8px}#purchase-history-search .btn{padding-inline:10px}}

.purchase-cancel-dialog{width:min(92vw,480px);max-height:min(85vh,750px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff;color:var(--ink);box-shadow:0 24px 70px #142c4533}
.purchase-cancel-dialog::backdrop{background:#142c4580}
.purchase-cancel-dialog h3{margin:0 0 12px}.purchase-cancel-dialog textarea{width:100%;min-height:96px;resize:vertical}.purchase-cancel-dialog [role="alert"]{color:#a43a42}
/* Aviso fiscal puntual: la cola permanente vive en Contabilidad. */
.purchase-fiscal-dialog{width:min(94vw,600px);max-height:min(88vh,800px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:22px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 24px 70px #142c4533}
.purchase-fiscal-dialog::backdrop{background:#142c4580}
.purchase-fiscal-bulk:not([hidden]){margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.purchase-fiscal-bulk-row{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.purchase-fiscal-bulk-row .field{margin:9px 0}.purchase-fiscal-bulk-row .checkline{display:flex;align-items:flex-start;gap:9px}
.purchase-fiscal-dialog.bulk-mode .purchase-fiscal-items{display:none}
.purchase-fiscal-bulk-fields{margin-top:8px}.purchase-fiscal-bulk-fields>summary{cursor:pointer;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-weight:650;overflow-wrap:anywhere}
.purchase-fiscal-bulk-fields[open]>summary{margin-bottom:12px}
.purchase-fiscal-bulk-row>strong{display:block;font-size:14px;line-height:1.35}
.purchase-fiscal-status{display:inline-block;margin:6px 0 2px;padding:4px 7px;border-radius:6px;background:#edf4f8;color:#34566c;font-size:12px;font-weight:650}
.purchase-fiscal-search{display:flex;gap:7px;margin:8px 0}.purchase-fiscal-search input{min-width:0;flex:1}.purchase-fiscal-search .btn{flex:none}
.purchase-fiscal-dialog.bulk-mode [data-fiscal-bulk],.purchase-fiscal-dialog.bulk-mode [data-fiscal-chain],.purchase-fiscal-dialog.bulk-mode [data-fiscal-dispatch-all]{display:none}
.purchase-fiscal-head h3{margin:5px 0 9px;font-size:21px;line-height:1.25}.purchase-fiscal-head p{color:var(--muted);margin:0 0 15px}
.purchase-fiscal-items{border-block:1px solid var(--line);margin-bottom:14px}.purchase-fiscal-items>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.purchase-fiscal-items>div:last-child{border-bottom:0}.purchase-fiscal-items strong{min-width:0;overflow-wrap:anywhere}.fiscal-decision{display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.fiscal-decision .btn{white-space:normal}.purchase-fiscal-error{color:#a43a42}
.purchase-detail-fiscal{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0;padding:10px;background:color-mix(in srgb,var(--green) 7%,#fff);border-radius:7px}
.stock-note-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.stock-note-intro p{margin:0}.stock-note-table{width:100%;border-collapse:collapse;margin-top:12px}.stock-note-table th,.stock-note-table td{border-bottom:1px solid var(--line);padding:7px 8px;text-align:left;vertical-align:top}.stock-note-table th{font-size:12px}.stock-note-table td:nth-child(n+3){font-variant-numeric:tabular-nums}.stock-note-table strong{color:var(--ink)}.stock-note-table td:nth-child(5) strong{color:var(--green)}.stock-note-table small{display:block;color:var(--muted)}.stock-note-table details{font-size:12px;color:var(--muted);margin-top:4px}.stock-note-table details summary{cursor:pointer}
@media(max-width:640px){.purchase-fiscal-dialog{padding:16px}.purchase-fiscal-items>div{align-items:flex-start;flex-direction:column}.fiscal-decision{justify-content:flex-start}.stock-note-table thead{display:none}.stock-note-table tbody,.stock-note-table tr{display:block}.stock-note-table tr{padding:10px 0;border-bottom:1px solid var(--line)}.stock-note-table td{display:inline-block;border:0;padding:3px 5px}.stock-note-table td:nth-child(2){display:block;font-size:15px}.stock-note-table td:nth-child(3)::before{content:'Disponible: ';color:var(--muted)}.stock-note-table td:nth-child(4)::before{content:'Mínimo: ';color:var(--muted)}.stock-note-table td:nth-child(5)::before{content:'Comprar: ';color:var(--muted)}.stock-note-table td:nth-child(n+6){display:none}}

/* V20.110: salida de Compras completamente visible en teléfono y escritorio. */
.purchase-leave-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:clamp(16px,3vw,24px);overflow-y:auto;overflow-x:hidden}
.purchase-leave-dialog,.purchase-leave-dialog *{box-sizing:border-box}
.purchase-leave-dialog p{overflow-wrap:anywhere}
.purchase-leave-dialog .form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin-top:16px;padding-top:16px;justify-content:stretch;min-width:0}
.purchase-leave-dialog .form-actions>.btn{width:100%;max-width:100%;min-width:0;min-height:42px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;padding:10px 12px;justify-content:center;text-align:center}
.purchase-resume-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin-bottom:14px;background:#edf8f5;border:1px solid #a6d3c7;border-radius:10px}
.purchase-resume-banner strong{display:block;font-size:14px;color:#135c4a}
.purchase-resume-banner p{margin:4px 0 0;font-size:12px;line-height:1.45;color:#355c54}
.purchase-resume-banner .btn{flex-shrink:0}
@media(max-width:600px){.purchase-resume-banner{flex-direction:column;align-items:stretch}.purchase-resume-banner .btn{width:100%}}

.purchase-correction-dialog{box-sizing:border-box;width:min(94vw,720px);max-height:min(92dvh,900px);overflow:auto;border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 24px 70px #142c4533}
.purchase-correction-dialog::backdrop{background:#142c4580}
.purchase-correction-dialog .pos-picker-header{display:flex;justify-content:space-between;align-items:start;gap:18px}
.purchase-correction-dialog .pos-picker-header h3{margin:0 0 6px}
.purchase-correction-dialog .pos-picker-header p{max-width:560px;line-height:1.45;margin:0 0 18px}
.purchase-correction-dialog h4{margin:20px 0 8px}
.purchase-correction-line{padding:13px 0;border-top:1px solid var(--line)}
.purchase-correction-line>strong{display:inline-block;margin:0 10px 10px 0}
.purchase-correction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.purchase-correction-dialog #purchase-correction-results{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 14px}
.purchase-correction-dialog #purchase-correction-error{color:#a43a42}
.purchase-correction-dialog [hidden]{display:none!important}
@media(max-width:600px){.purchase-correction-dialog{padding:15px}.purchase-correction-grid{grid-template-columns:1fr}}

/* Homologación SIAT dentro del aviso de compra: exclusiva de productos recién recibidos. */
.purchase-fiscal-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 12px}
.purchase-fiscal-item>.purchase-fiscal-mapper{grid-column:1/-1;width:100%;min-width:0;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;padding:12px}
.purchase-fiscal-inline-form{display:grid;gap:9px}
.purchase-fiscal-inline-form>.field{margin:0}
.purchase-fiscal-inline-form .purchase-fiscal-ai-summary{margin:0;padding:9px;background:#f0f7fe;border-radius:8px;color:#143d62}
.purchase-fiscal-inline-error{margin:0;color:#a43a42}
.purchase-fiscal-inline-form .form-actions{margin-top:4px}
@media(max-width:640px){.purchase-fiscal-item{grid-template-columns:1fr}.purchase-fiscal-item>.purchase-fiscal-mapper{grid-column:1}.purchase-fiscal-item>.fiscal-decision{justify-content:flex-start}}


/* Archivo: quotation-flow.css */
.quote-workspace{max-width:1200px;min-width:0}.quote-workspace [hidden]{display:none!important}.quote-list-head,.quote-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.quote-list-head h3,.quote-detail-head h3{margin:3px 0 5px;font-size:21px;letter-spacing:-.025em}.quote-list-head input{width:min(300px,100%);min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface,#fff);color:var(--ink)}.quote-detail-head{margin:18px 0 20px}.quote-detail-head>strong{font-size:23px;white-space:nowrap;font-variant-numeric:tabular-nums}.quote-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quote-search-row{display:flex;gap:9px;margin:16px 0 5px}.quote-search-row input{flex:1;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);background:var(--surface,#fff)}.quote-search-row .btn{min-height:46px}.quote-results{display:flex;flex-wrap:wrap;gap:7px;max-height:164px;overflow:auto}.quote-results .btn{text-align:left;white-space:normal}.quote-results small{display:block;color:var(--muted)}.quote-edit-line{border-block-end:1px solid var(--line);padding:14px 0}.quote-edit-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.quote-edit-head strong{overflow-wrap:anywhere}.quote-edit-fields{display:grid;grid-template-columns:minmax(155px,1.2fr) minmax(80px,.55fr) minmax(145px,1fr) minmax(160px,1.1fr);gap:10px}.quote-edit-fields .field{margin:0;min-width:0}.quote-edit-fields select,.quote-edit-fields input{width:100%;min-width:0}.quote-conditions{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.quote-conditions summary{cursor:pointer;font-weight:600;margin-bottom:14px}.quote-conditions textarea{width:100%;resize:vertical}.quote-table{width:100%;border-collapse:collapse;font-size:13px}.quote-table th,.quote-table td{border-bottom:1px solid var(--line);text-align:left;padding:10px 8px;vertical-align:top}.quote-table th{font-size:11px;color:var(--muted)}.quote-table td:nth-child(2),.quote-table td:nth-child(3),.quote-table td:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}.quote-table small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.quote-table td:last-child{min-width:140px}.quote-review-card{border-top:1px solid var(--line);padding-top:12px;margin-top:18px}.quote-review-card h4{font-size:17px;margin:0 0 12px}.quote-review-total{display:flex;justify-content:flex-end;align-items:baseline;gap:16px;font-size:13px}.quote-review-total strong{font-size:22px;font-variant-numeric:tabular-nums}.quote-detail-terms{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;white-space:pre-wrap}.quote-detail-terms p{margin:4px 0}.quote-detail-terms small{display:block;margin-top:10px;color:var(--muted)}.quote-camera{width:min(94vw,540px);border:1px solid var(--line);border-radius:12px;padding:14px;background:#102b38;color:white}.quote-camera::backdrop{background:#142c4599}.quote-camera-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.quote-camera video{width:100%;max-height:55vh;object-fit:contain;background:#071c22;margin-top:10px}.quote-camera [role=status]{line-height:1.5}.quote-camera .btn{min-height:42px}@media(max-width:800px){.quote-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-table{min-width:600px}}@media(max-width:600px){.quote-list-head,.quote-detail-head{display:block}.quote-list-head input{width:100%;margin-top:10px}.quote-form-grid,.quote-edit-fields{grid-template-columns:1fr 1fr}.quote-edit-fields .field:first-child,.quote-edit-fields .field:last-child{grid-column:1/-1}.quote-detail-head>strong{display:block;margin:7px 0}.quote-table{min-width:0}.quote-table thead{display:none}.quote-table tr{display:block;border-bottom:1px solid var(--line);padding:8px 0}.quote-table td{display:inline-block;border:0;padding:4px 6px}.quote-table td:first-child,.quote-table td:last-child{display:block}.quote-table td:last-child{min-width:0}.quote-table td:nth-child(2)::before{content:'Cant.: ';color:var(--muted)}.quote-table td:nth-child(3)::before{content:'Precio: ';color:var(--muted)}.quote-table td:nth-child(4)::before{content:'Subtotal: ';color:var(--muted)}}
.quote-new-customer{margin-top:7px;min-height:40px}.quote-client-dialog{width:min(94vw,460px);border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--surface,#fff);color:var(--ink)}.quote-client-dialog::backdrop{background:#142c4580}.quote-client-dialog h3{margin:0 0 12px}.quote-client-dialog [role=alert]{color:#a43a42}

/* V20.204 — líneas comerciales como tarjetas y búsquedas reconocibles. */
.quote-workspace{max-width:1120px}
.quote-workspace .quote-list-head{margin-bottom:10px}
.quote-workspace .quote-edit-line{background:var(--surface,#fff);border:1px solid var(--line,#dce4ee);border-radius:12px;padding:13px 14px;margin:10px 0;box-shadow:0 1px 4px rgba(16,44,75,.045)}
.quote-workspace .quote-edit-line:nth-child(even){border-left:3px solid #2771c3}
.quote-workspace .quote-edit-head{border-bottom:1px solid var(--line,#dce4ee);padding-bottom:8px;margin-bottom:9px}
.quote-workspace .quote-edit-head strong::before{content:'PRODUCTO';font-size:10px;letter-spacing:.06em;color:var(--muted,#64748b);display:block;margin-bottom:2px}
.quote-workspace .quote-edit-fields{gap:8px}
.quote-workspace .quote-edit-line textarea{min-height:48px}
.quote-workspace .quote-edit-line .proposal-fiscal-base{margin-top:7px}
.quote-workspace input[type="search"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364788b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;padding-left:40px}
.quote-workspace .quote-search-row{margin:9px 0 5px}
.quote-workspace .proposal-terms{padding-top:10px}
.quote-workspace .proposal-terms .field{margin-bottom:7px}
.quote-workspace .quote-kind-picker{padding:10px 12px}
.quote-workspace .quote-kind-picker p{margin:2px 0 0}
.quote-workspace .quote-lookup-explanation{font-size:12px;color:var(--muted,#64748b);margin:2px 0 8px}
.quote-workspace .quote-signature-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.quote-workspace .quote-signature-tools input[type=file]{flex:1;min-width:190px}
.quote-workspace .quote-signature-preview{max-height:70px;max-width:180px;object-fit:contain;border:1px solid var(--line,#dce4ee);border-radius:6px;padding:5px;background:#fff}
@media(max-width:700px){.quote-workspace .quote-edit-line{padding:10px;margin:7px 0}.quote-workspace .quote-edit-fields{gap:6px}.quote-workspace .quote-list-head{margin-bottom:8px}}

.percentage-field{display:flex;align-items:center;position:relative}.percentage-field input{width:100%;padding-right:40px}.percentage-field strong{position:absolute;right:14px;pointer-events:none;color:var(--ink,#15233b);font-size:14px}.cost-manual-price{display:grid;gap:10px;margin:14px 0}.cost-manual-price[hidden]{display:none}.cost-manual-price .note{margin:0}
.quote-list-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.quote-list-filters .btn{min-height:36px}
.quote-lookup{position:relative;min-width:0}
.quote-lookup .quote-results{position:absolute;top:100%;left:0;right:0;z-index:5;display:block;max-height:min(380px,55dvh);overflow:auto;padding:6px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 28px #142c4526}
.quote-lookup .quote-results:empty{display:none}
.quote-result-group{margin:0;border-bottom:1px solid var(--line)}
.quote-result-group:last-child{border:0}
.quote-result-group>summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:9px 10px;font-size:13px;font-weight:700;color:var(--text)}
.quote-result-group>summary small{color:var(--muted);font-size:11px}
.quote-result-group>p{margin:0 10px 6px;color:var(--muted);font-size:11px}
.quote-result-list{display:grid;gap:2px;padding:0 4px 7px}
.quote-result-option{display:grid;gap:3px;width:100%;text-align:left;padding:9px 11px;border:0;border-radius:6px;background:transparent;color:var(--text);cursor:pointer}
.quote-result-option:hover,.quote-result-option:focus-visible{background:var(--soft,#f3f7fa);outline:2px solid transparent}
.quote-result-option:focus-visible{outline-color:var(--accent,#19665b)}
.quote-result-option strong{font-size:13px}
.quote-result-option small{font-size:11px;color:var(--muted);font-weight:400}
.quote-workspace .quote-kind-picker{display:block;margin:8px 0 10px;padding:8px 12px;background:var(--soft,#f3f7fa)}
.quote-workspace .quote-kind-picker>summary{cursor:pointer;font-size:13px;font-weight:650;min-height:30px;align-content:center}
.quote-workspace .quote-kind-picker .quote-kind-actions{margin-top:10px}
/* Quote selection and compact line editing for production businesses. */
.quote-search-warehouse{max-width:355px;margin:17px 0 0}
.quote-source-dialog{width:min(700px,calc(100vw - 24px))}
.quote-source-dialog .cost-dialog-heading{margin-bottom:14px}
.quote-source-dialog [data-source-warehouse]{width:100%;min-height:42px}
.quote-source-stock{padding:12px 14px;margin:15px 0;background:var(--soft,#f2f7fa);border-radius:7px;font-weight:650}
.quote-source-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quote-source-options .btn{min-height:104px;text-align:left;white-space:normal;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;padding:14px}
.quote-source-options strong{font-size:13px}.quote-source-options small{font-size:11px;line-height:1.4;color:var(--muted)}
.quote-source-options .btn:disabled{opacity:.55;cursor:not-allowed}
.quote-edit-line .quote-line-compact{margin:3px 0 9px 38px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.quote-edit-line .quote-line-options{margin:8px 0 0 38px;border-top:1px solid var(--line);padding-top:9px}
.quote-edit-line .quote-line-options>summary{font-size:12px;color:var(--accent,#24527b);font-weight:700;cursor:pointer}
.quote-edit-line .quote-line-options>.quote-edit-fields{margin-top:13px}
@media(max-width:720px){.quote-source-options{grid-template-columns:1fr}.quote-source-options .btn{min-height:0}.quote-edit-line .quote-line-compact,.quote-edit-line .quote-line-options{margin-left:0}}
.quote-desktop-steps{display:flex;gap:7px;margin:0 0 20px;flex-wrap:wrap}
.quote-desktop-steps button{border:0;border-radius:7px;background:var(--soft,#f3f6fa);color:var(--text,#102844);padding:9px 12px;font:inherit;font-size:12px;cursor:pointer}
.quote-desktop-steps button:hover,.quote-desktop-steps button:focus-visible{outline:1px solid var(--accent,#1e6fa4);background:var(--panel,#fff)}
.quote-signature-section{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.quote-signature-section>summary{cursor:pointer;font-size:12px;font-weight:700}
@media(max-width:720px){.quote-desktop-steps{display:none}}
/* Cost and pricing remain inside the existing quotation review. */
.quote-review-internal .quote-review-cost{color:var(--muted,#667d8d);margin-top:5px}
.quote-review-price input{width:100px;max-width:100%;min-height:34px;padding:5px 7px;font:inherit;font-variant-numeric:tabular-nums;text-align:right;border:1px solid var(--line,#dce5ed);border-radius:6px;background:var(--panel,#fff);color:var(--ink)}
.quote-review-price input:focus{outline:2px solid var(--primary,#1256ad);outline-offset:1px}
.quote-review-price-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0}
.quote-review-price-actions p{margin:0 auto 0 0}
.quote-review-finance{display:flex;flex-wrap:wrap;gap:8px 22px;padding:10px 8px;margin:2px 0 8px;background:var(--soft,#f5f8fb);border-bottom:1px solid var(--line,#dce5ed);font-variant-numeric:tabular-nums}
.quote-review-finance span{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.quote-review-finance small{color:var(--muted,#667d8d)}
.quote-review-finance strong{color:var(--ink)}
@media(max-width:600px){.quote-review-internal .quote-table td:nth-child(3)::before{content:''}.quote-review-internal .quote-review-finance span{width:100%;justify-content:space-between}.quote-review-internal .quote-review-price-actions{justify-content:flex-start}}
.quote-review-modal{width:min(920px,calc(100vw - 28px));max-width:none;max-height:min(88vh,900px);padding:0;border:1px solid var(--line,#dce5ed);border-radius:12px;background:var(--panel,#fff);color:var(--ink);box-shadow:0 22px 70px rgba(9,29,52,.24);overflow:auto}
.quote-review-modal::backdrop{background:rgba(12,31,52,.58)}
.quote-review-modal .quote-review-card{border:0;margin:0;padding:22px 24px}
.quote-review-modal .quote-review-card h4{font-size:20px;margin-bottom:15px}
.quote-review-modal .quote-review-footer{display:flex;justify-content:flex-end;gap:9px;align-items:center;padding-top:15px;margin-top:14px;border-top:1px solid var(--line,#dce5ed)}
.quote-review-modal .quote-review-footer .btn{min-height:40px}
.quote-workspace .quote-review-modal .quote-review-table{width:100%;min-width:0;table-layout:fixed}
.quote-review-table col:nth-child(1){width:44%}.quote-review-table col:nth-child(2){width:9%}.quote-review-table col:nth-child(3){width:22%}.quote-review-table col:nth-child(4){width:25%}
.quote-workspace .quote-review-modal .quote-review-table td:first-child{width:44%}
.quote-review-modal .quote-review-table th,.quote-review-modal .quote-review-table td{padding:9px 7px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.quote-review-modal .quote-review-table td:nth-child(3){white-space:normal}
.quote-review-modal .quote-review-table .quote-review-price input{width:100%;min-width:0;box-sizing:border-box}
.quote-customer-control{display:flex;align-items:end;gap:7px;min-width:0}.quote-customer-control .quote-customer-select{flex:1;min-width:0;margin:0}.quote-customer-control select{width:100%}.quote-customer-actions{display:flex;gap:6px}.quote-customer-actions .btn{display:grid;place-items:center;width:44px;height:44px;padding:0;flex:none}.quote-customer-picker{width:min(480px,calc(100vw - 20px));max-height:80dvh;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface,#fff);color:var(--ink)}.quote-customer-picker::backdrop{background:#10294499}.quote-customer-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.quote-customer-picker-head h3{margin:0}.quote-customer-picker input{width:100%;min-height:44px;margin:14px 0;border:1px solid var(--line);border-radius:7px;padding:9px}.quote-customer-results{display:grid;gap:5px;max-height:50dvh;overflow:auto}.quote-customer-results .btn{text-align:left;white-space:normal}
.quote-customer-actions #quote-edit-customer{width:auto;min-width:48px;padding:0 8px;font-size:12px}
@media(max-width:600px){.quote-customer-control{grid-column:1/-1}.quote-customer-actions .btn{width:42px;height:42px}}
.quote-review-availability{margin-top:5px;color:var(--muted,#667d8d);font-size:11px;line-height:1.35}
.quote-review-availability small{display:block;margin-top:2px}
@media(max-width:600px){.quote-review-modal{width:calc(100vw - 12px);max-height:calc(100dvh - 20px)}.quote-review-modal .quote-review-card{padding:17px}.quote-review-modal .quote-review-footer{flex-wrap:wrap}.quote-review-modal .quote-review-footer .btn{flex:1;white-space:normal}.quote-workspace .quote-review-modal .quote-review-table td:first-child{width:auto}}
.quote-review-modal .tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.quote-review-scroll-hint{display:none}
@media(max-width:600px){.quote-review-scroll-hint{display:block}.quote-workspace .quote-review-modal .quote-review-table{min-width:610px;table-layout:fixed}.quote-workspace .quote-review-modal .quote-review-table thead{display:table-header-group}.quote-workspace .quote-review-modal .quote-review-table tr{display:table-row;border:0;padding:0}.quote-workspace .quote-review-modal .quote-review-table th,.quote-workspace .quote-review-modal .quote-review-table td{display:table-cell;padding:8px 6px;vertical-align:top}.quote-workspace .quote-review-modal .quote-review-table td:first-child{width:44%}.quote-workspace .quote-review-modal .quote-review-table td:last-child{min-width:0}.quote-workspace .quote-review-modal .quote-review-table td::before{content:none!important}}
.quote-review-modal:has(.is-preview){width:min(1040px,calc(100vw - 20px));max-height:94vh}
.quote-review-modal .quote-review-card.is-preview>:not(.quote-document-pane):not(.quote-review-footer){display:none}
.quote-document-pane{min-width:0}
.quote-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.quote-document-head strong,.quote-document-head small{display:block}
.quote-document-head strong{font-size:17px}.quote-document-head small{color:var(--muted);font-size:11px;margin-top:4px}
.quote-document-pane iframe{display:block;width:100%;height:min(64vh,760px);border:1px solid var(--line,#dce5ed);border-radius:7px;background:white}
@media(max-width:600px){.quote-document-head{align-items:flex-start;flex-wrap:wrap}.quote-document-pane iframe{height:64dvh}.quote-review-modal:has(.is-preview){width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}}
.quote-fiscal-suggestions{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--line,#dce5ed);border-radius:8px;background:#f7fafc}
.quote-fiscal-suggestions>p{margin:0}.quote-fiscal-suggestions [data-fiscal-picked]{font-size:12px;color:#25476a}
.quote-fiscal-suggestions details{border:0;padding:0;background:transparent}.quote-fiscal-suggestions summary{cursor:pointer;font-weight:600}
.quote-fiscal-suggestions .field{margin-top:9px}.quote-fiscal-results{display:grid;gap:5px;margin:9px 0}
.quote-fiscal-results .proposal-fiscal-option{display:grid;text-align:left;padding:8px 10px;border:1px solid var(--line,#dce5ed);border-radius:6px;background:white;cursor:pointer}
.quote-fiscal-results .proposal-fiscal-option:hover,.quote-fiscal-results .proposal-fiscal-option[aria-pressed=true]{border-color:#1c6399;background:#eaf4fc}
.quote-fiscal-results small{color:var(--muted,#667d8d)}
.quote-fiscal-suggestions [hidden]{display:none!important}
.quote-fiscal-suggestions .quote-fiscal-actions{display:flex;gap:8px;flex-wrap:wrap}
.quote-fiscal-suggestions .quote-fiscal-actions:has(> :not([hidden])){margin-top:2px}
.quote-fiscal-suggestions .quote-fiscal-actions:not(:has(> :not([hidden]))){display:none}
.quote-fiscal-suggestions .quote-fiscal-unit-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}
.quote-fiscal-suggestions [data-fiscal-unit-panel]{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.quote-fiscal-suggestions [data-fiscal-results]{grid-template-columns:repeat(2,minmax(0,1fr))}
.quote-fiscal-suggestions [data-fiscal-results]>p{grid-column:1/-1;margin:0}
.quote-fiscal-suggestions [data-fiscal-candidate]{min-height:42px;overflow-wrap:anywhere}
.quote-fiscal-suggestions [data-fiscal-more]{margin-top:8px}
.quote-fiscal-suggestions [data-fiscal-more] summary{font-size:13px;color:var(--muted,#526b80)}
@media(max-width:600px){
 .quote-fiscal-suggestions [data-fiscal-results],.quote-fiscal-suggestions [data-fiscal-unit-panel]{grid-template-columns:minmax(0,1fr)}
}

/* V20.252 · Cotizaciones por actividad */
.quote-workspace .quote-commercial-line{margin:8px 13px 12px;padding:10px 12px;border:1px solid var(--line);background:var(--soft,#f7f9fb);border-radius:8px;}
.quote-workspace .quote-commercial-line p{margin:0 0 7px;line-height:1.5;}
.quote-workspace .quote-commercial-line details>summary{font-size:12px;cursor:pointer;font-weight:650;}
.quote-workspace .quote-commercial-line details>.field{display:block;margin:10px 0 0;}
.quote-workspace .quote-commercial-line textarea{width:100%;box-sizing:border-box;}
.quote-workspace .quote-commercial-terms>details{padding:9px 0;border-top:1px solid var(--line);}
.quote-workspace .quote-commercial-terms>details>summary{cursor:pointer;font-size:13px;font-weight:650;}
.quote-workspace .quote-commercial-terms .proposal-advance{margin-top:9px;}
@media(max-width:650px){.quote-workspace .quote-commercial-line{margin:8px 10px 10px;}}

/* Las descripciones y plazos largos deben partir dentro de su propia columna. */
.quote-workspace .quote-items-table{table-layout:fixed;min-width:760px}
.quote-workspace .quote-items-table th:nth-child(1){width:34%}
.quote-workspace .quote-items-table th:nth-child(2){width:8%}
.quote-workspace .quote-items-table th:nth-child(3){width:14%}
.quote-workspace .quote-items-table th:nth-child(4){width:15%}
.quote-workspace .quote-items-table th:nth-child(5){width:29%}
.quote-workspace .quote-list-table{width:100%;min-width:0;table-layout:fixed}
.quote-workspace .quote-list-table th:nth-child(1){width:28%}
.quote-workspace .quote-list-table th:nth-child(2){width:14%}
.quote-workspace .quote-list-table th:nth-child(3){width:12%}
.quote-workspace .quote-list-table th:nth-child(4){width:12%}
.quote-workspace .quote-list-table th:nth-child(5){width:20%}
.quote-workspace .quote-list-table th:nth-child(6){width:14%}
.quote-workspace .quote-list-table td:last-child{min-width:0;text-align:right}
.quote-workspace .quote-list-table td:last-child .btn{max-width:100%;white-space:normal}
.quote-workspace .quote-list-table td:nth-child(3),.quote-workspace .quote-list-table td:nth-child(5){white-space:normal;overflow-wrap:anywhere}
.quote-workspace .quote-table td,.quote-workspace .quote-table th{min-width:0;overflow-wrap:anywhere}
.quote-workspace .quote-table td:first-child,.quote-workspace .quote-table td:last-child{white-space:normal}
@media(max-width:600px){.quote-workspace .quote-items-table{min-width:0;table-layout:auto}.quote-workspace .quote-list-table td:last-child{text-align:left}}

/* El selector de formatos permanece dentro de la cotización en pantallas estrechas. */
@media(max-width:600px){.quote-workspace .sale-print-options[open] .sale-print-formats{width:min(100%,320px);max-height:min(45dvh,320px);overflow-y:auto;border:1px solid var(--line);box-shadow:0 8px 18px #10263818}.quote-workspace .sale-print-options[open] .sale-print-formats .btn{min-height:40px;padding:7px 10px}}
.quote-detail-more{border-top:1px solid var(--line);padding:12px 0;margin-top:8px}
.quote-detail-more>summary{cursor:pointer;min-height:44px;align-content:center;font-size:13px;font-weight:650;color:var(--ink)}
.quote-detail-more>.form-actions{margin-top:8px}
.quote-pdf-pages{display:grid;justify-items:center;gap:12px;max-height:65vh;overflow:auto;background:#edf1f5;border-radius:8px;padding:12px}.quote-pdf-pages canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 9px #10264220}

/* V20.479 · Identidad histórica visible, sin alterar la cotización emitida. */
.quote-customer-changed{display:inline-block;color:#a15d1c;font-size:.75rem;font-weight:600;white-space:normal;}
.quote-review-customer{padding:10px 12px;background:var(--surface-alt,#f2f7fc);border-radius:9px;margin:0 0 12px;}


/* Archivo: display-settings.css */
.display-config-dialog{max-width:620px;width:calc(100% - 32px);max-height:90dvh;overflow:auto}.display-config-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.display-config-heading h3{margin:0 0 4px}.display-config-heading p{margin:0 0 16px;font-size:13px;color:var(--muted)}.display-config-dialog .form-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.display-config-dialog .checkline{margin:12px 0}.display-config-toggles{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.display-pair-code{display:block;letter-spacing:.15em;font-size:30px;text-align:center;margin:20px 0}.display-pair-image{display:block;width:min(100%,260px);margin:12px auto}.display-config-dialog [data-display-pairing]{border-top:1px solid var(--line,#dce3e8);padding-top:16px}@media(max-width:600px){.display-config-toggles{grid-template-columns:1fr}.display-config-dialog{padding:20px}.display-pair-code{font-size:26px}}


/* Archivo: entity-names.css */
input[data-entity-name],input[data-billing="name"],#new-product input[name="name"],#catalog-identity input[name="name"],#purchase-new-form input[name="name"]{text-transform:uppercase}


/* Archivo: dashboard.css */
/* Business summary: existing navy/green palette, compact operational hierarchy. */
.summary-screen{--summary-muted:#526779;--summary-surface:var(--surface,#fff);color:var(--ink);min-width:0}
.summary-screen .page-title{margin-bottom:16px}.summary-screen .page-title h2{font-size:26px}
.summary-screen .muted,.summary-screen small{color:var(--summary-muted)}
.summary-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:0 0 20px;margin:0}.summary-toolbar .field{margin:0;min-width:150px}.summary-toolbar .btn{min-height:40px}.summary-dates{display:flex;gap:12px;flex-wrap:wrap}
.summary-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.summary-section-heading h3{font-size:17px;margin:0;letter-spacing:-.02em}.summary-section-heading>span{font-size:13px;color:var(--summary-muted)}
.summary-activity{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:20px}
.summary-metrics{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:24px}.summary-metrics>div,.summary-stock-metrics>div{display:flex;flex-direction:column;gap:6px;min-width:0}.summary-metrics span,.summary-stock-metrics span{color:var(--summary-muted);font-size:14px}.summary-metrics strong{font-size:26px;font-weight:650;line-height:1.15;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-metrics .summary-net strong{font-size:36px}.summary-metrics small{font-size:13px}.summary-calculation{font-size:13px;color:var(--summary-muted);margin:20px 0 8px}
.summary-definition{font-size:13px;color:var(--summary-muted);margin:8px 0}.summary-definition summary{cursor:pointer;min-height:36px;display:list-item;align-content:center;color:var(--ink)}.summary-definition p{margin:8px 0;max-width:80ch}.summary-definition ul{margin:8px 0;padding-left:20px}
.summary-current-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);gap:20px;align-items:start}.summary-current-grid:not(:has(.summary-inventory)){grid-template-columns:1fr}.summary-inventory,.summary-tasks{min-width:0;background:var(--summary-surface);border:1px solid var(--line);border-radius:8px;padding:20px}.summary-stock-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px}.summary-stock-metrics strong{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-stock-heading{border-top:1px solid var(--line);margin-top:16px;padding-top:16px;display:flex;gap:12px;justify-content:space-between;align-items:baseline}.summary-stock-heading h4{font-size:14px;margin:0}.summary-stock-heading>span{font-size:13px;color:var(--summary-muted)}
.summary-low-list{list-style:none;padding:0;margin:8px 0 16px}.summary-low-list li{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.summary-low-list li>div{min-width:0;display:flex;flex-direction:column;gap:4px}.summary-low-list strong{font-size:14px;overflow-wrap:anywhere}.summary-low-list small,.summary-low-list span{font-size:13px;color:var(--summary-muted)}.summary-low-list .btn{flex-shrink:0;min-height:40px}.summary-empty{font-size:14px;color:var(--summary-muted);margin:12px 0;line-height:1.6}
.summary-pending{padding:16px 0;border-top:1px solid var(--line)}.summary-pending:last-child{padding-bottom:0}.summary-pending>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-pending strong{font-size:14px}.summary-pending p{font-size:13px;color:var(--summary-muted);margin:8px 0 12px}.summary-count{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.summary-quick{margin-top:24px}.summary-quick h3{font-size:16px;margin:0 0 12px}.summary-quick>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.summary-shortcut{border:1px solid var(--line);border-radius:8px;background:var(--summary-surface);color:var(--ink);display:flex;align-items:center;gap:12px;min-height:72px;text-align:left;padding:14px;cursor:pointer;transition:background-color 120ms ease-out}.summary-shortcut:hover{background:var(--soft,#edf5f2)}.summary-shortcut>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.summary-shortcut strong{font-size:14px}.summary-shortcut small{font-size:13px}.summary-shortcut.is-primary{border-left:3px solid var(--green)}.summary-shortcut>.nav-icon{filter:brightness(.6)}
.summary-screen button:focus-visible,.summary-screen summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.summary-screen .btn{font-size:13px;min-height:40px}.summary-screen button:disabled{opacity:.6;cursor:wait}.summary-loading{padding:24px 0}
.workspace #sidebar .brand{align-items:center;gap:10px;padding-bottom:14px}.workspace #sidebar .brand-wordmark{display:block;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;max-width:none;font-size:16px;line-height:1.3;letter-spacing:-.02em}.workspace #sidebar .brand-mark{flex-shrink:0}.workspace .nav-section{margin:3px 0;padding-top:2px}.workspace .nav-section summary{font-size:11px;min-height:40px;padding:8px 10px;letter-spacing:.035em}.workspace .nav-group-label{font-size:11px;padding-top:8px;letter-spacing:.04em}.workspace .navitem{font-size:13px;min-height:42px}.workspace .nav-section-items{padding-bottom:3px}.workspace-context{display:flex;flex-direction:column;min-width:0;gap:2px}.workspace-context .context-eyebrow{font-size:11px;color:#526779}.workspace-context strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace .context-header{display:flex;align-items:center;gap:12px;min-width:0}.workspace .topbar{gap:16px}.workspace .header-actions{flex-shrink:0}.page>footer[data-summary-footer]{font-size:13px;color:#526779;margin-top:24px}
@media(max-width:1000px){.summary-current-grid{grid-template-columns:1fr}.summary-quick>div{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.summary-metrics{gap:16px}.summary-metrics .summary-net strong{font-size:30px}}
@media(max-width:760px){.workspace .navitem{min-height:44px}.workspace .nav-section summary{min-height:44px}.workspace .topbar{padding:10px 14px}.workspace-context strong{max-width:40vw;font-size:13px}.workspace .header-actions .user-email{display:none}.summary-screen .page-title h2{font-size:24px}.summary-metrics{grid-template-columns:1fr 1fr;gap:20px}.summary-metrics .summary-net{grid-column:1/-1}.summary-metrics strong{font-size:24px}.summary-metrics .summary-net strong{font-size:34px}.summary-current-grid{gap:16px}.summary-inventory,.summary-tasks{padding:16px}.summary-toolbar{gap:10px}.summary-toolbar>.field{flex:1;min-width:180px}.summary-dates{width:100%;gap:10px}.summary-dates .field{flex:1;min-width:130px}.summary-toolbar .btn{min-height:44px}.summary-low-list li{gap:12px}.summary-screen .btn{min-height:44px}.summary-stock-metrics{grid-template-columns:1fr;gap:16px}.summary-section-heading{gap:6px}.summary-quick>div{grid-template-columns:1fr}.summary-shortcut{min-height:72px}}
@media(prefers-reduced-motion:reduce){.summary-screen *{transition:none!important;animation:none!important}}
@media(max-width:760px){.workspace .topbar{flex-wrap:nowrap}.workspace .context-header{flex:1}.workspace .header-actions{width:auto;gap:0}.workspace .header-actions .btn{flex:0 0 auto}.workspace-context strong{max-width:calc(100vw - 160px)}}

/* Daily business pulse: the seven-day timeline is the focal point. */
.summary-screen{--pulse-sales:#126459;--pulse-purchases:#d48a38;--pulse-ink:#132d42}
.summary-screen .page-title{margin-bottom:12px}.summary-screen .page-title h2{font-size:30px;letter-spacing:-.035em}
.summary-screen .page-title p{font-size:14px}
.summary-toolbar{background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:18px}
.summary-toolbar .field{min-width:190px}.summary-toolbar .label{font-size:12px;font-weight:650}
.summary-eyebrow{display:block;color:var(--pulse-sales);font-size:10px;font-weight:800;letter-spacing:.09em;margin-bottom:5px}
.summary-activity{padding:0;border:0;margin:0 0 20px}.summary-activity .summary-section-heading{margin:0 0 10px}
.summary-activity .summary-section-heading h3{font-size:18px}
.summary-metrics{display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:10px}
.summary-metrics>div{background:var(--surface,#fff);border:1px solid var(--line);border-radius:9px;padding:17px 18px;min-height:111px;gap:7px}
.summary-metrics>div:first-child{border-top:3px solid var(--pulse-sales);padding-top:15px}
.summary-metrics span{font-size:12px;font-weight:600}.summary-metrics strong,.summary-metrics .summary-net strong{font-size:28px;color:var(--pulse-ink);line-height:1.12}
.summary-metrics .summary-net strong{font-size:32px}.summary-metrics small{font-size:11px;line-height:1.4}
.summary-activity>.summary-definition{margin:4px 0 0}.summary-activity>.summary-definition summary{min-height:32px;font-size:12px}
.summary-week{background:var(--surface,#fff);border:1px solid var(--line);border-radius:11px;padding:20px 22px;margin:0 0 20px;box-shadow:0 5px 22px rgba(14,38,56,.035)}
.summary-week-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.summary-week h3{font-size:21px;letter-spacing:-.035em;margin:0;color:var(--pulse-ink)}
.summary-week-header p{color:var(--summary-muted);font-size:12px;margin:5px 0 0}
.summary-legend{display:flex;gap:7px}.summary-series{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 11px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--summary-muted);font-size:12px;cursor:pointer;opacity:.55}
.summary-series.is-selected{opacity:1;border-color:#c7d7d5;color:var(--pulse-ink);font-weight:650;background:#f6faf8}
.summary-series i{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-sales{background:var(--pulse-sales)}.legend-purchases{background:var(--pulse-purchases)}
.summary-week-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(180px,1fr);gap:18px;align-items:stretch}
.summary-trend{min-width:0;background:#fbfcfc;border:1px solid #e9eff0;border-radius:8px;display:flex;align-items:center;padding:6px 6px 0}
.summary-trend-empty{width:100%;min-height:235px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;color:var(--summary-muted);font-size:12px}.summary-trend-empty strong{font-size:15px;color:var(--pulse-ink)}
.summary-trend svg{width:100%;height:auto;display:block;overflow:visible}.trend-grid{stroke:#e3eaeb;stroke-width:1}.trend-axis{fill:#607385;font-size:11px;font-family:inherit}
.trend-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-line.trend-sales{stroke:var(--pulse-sales)}.trend-line.trend-purchases{stroke:var(--pulse-purchases)}
.trend-dot{stroke:#fff;stroke-width:2}.trend-dot.trend-sales{fill:var(--pulse-sales)}.trend-dot.trend-purchases{fill:var(--pulse-purchases)}
.summary-week-aside{border-left:1px solid var(--line);padding-left:18px;display:grid;align-content:center;gap:0}
.summary-week-stat{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:3px}.summary-week-stat:first-child{padding-top:0}.summary-week-stat:last-child{border:0;padding-bottom:0}
.summary-week-stat span{color:var(--summary-muted);font-size:11px;font-weight:650}.summary-week-stat strong{font-size:23px;letter-spacing:-.03em;color:var(--pulse-ink);font-variant-numeric:tabular-nums}.summary-week-stat small{font-size:11px;line-height:1.4}
.summary-daily{margin-top:14px;border-top:1px solid var(--line);font-size:12px}.summary-daily summary{font-weight:650;cursor:pointer;min-height:40px;align-content:center}.summary-daily .tablewrap{overflow:auto}
.summary-daily table{width:100%;border-collapse:collapse;min-width:680px}.summary-daily th,.summary-daily td{padding:9px;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.summary-daily th:first-child{text-align:left}.summary-daily tbody tr:hover{background:#f4f9f7}.summary-daily p{font-size:11px;color:var(--summary-muted);margin:12px 0 2px}
.summary-current-grid{grid-template-columns:minmax(0,1.45fr) minmax(240px,.8fr)}.summary-inventory,.summary-tasks{border-radius:10px}
.summary-quick{margin-top:20px}
@media(max-width:1150px){.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-week-grid{grid-template-columns:1fr}.summary-week-aside{border-left:0;border-top:1px solid var(--line);padding:8px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.summary-week-stat{border:0;padding:8px 0}}
@media(max-width:760px){.summary-screen .page-title h2{font-size:25px}.summary-metrics{gap:8px}.summary-metrics>div{min-height:99px;padding:12px}.summary-metrics>div:first-child{padding-top:10px}.summary-metrics strong,.summary-metrics .summary-net strong{font-size:23px}.summary-metrics .summary-net{grid-column:auto}.summary-week{padding:14px}.summary-week-header{gap:10px}.summary-week h3{font-size:19px}.summary-week-aside{grid-template-columns:1fr 1fr;gap:3px 12px}.summary-week-stat:last-child{grid-column:1/-1}.summary-week-stat strong{font-size:19px}.summary-trend{overflow-x:auto}.summary-trend svg{min-width:520px}}
@media(max-width:1000px){.summary-current-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.summary-stock-metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.summary-stock-metrics strong{font-size:20px}.summary-current-grid,.summary-inventory,.summary-tasks{min-width:0}.summary-low-list li{align-items:flex-start}.summary-low-list li>div{overflow-wrap:anywhere}.summary-low-list .btn{white-space:normal}}
@media(max-width:380px){.summary-stock-metrics{grid-template-columns:1fr}}

/* 0.20.81 · Sales intelligence. Colors inherit the selected company theme. */
.summary-screen{--pulse-sales:var(--green,#126459)}
.summary-metrics{grid-template-columns:1.25fr repeat(4,minmax(0,1fr))}
.summary-intelligence{margin:0 0 20px;min-width:0}
.summary-intelligence-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:14px}
.summary-intelligence-panel,.summary-traffic-details{border:1px solid var(--line);background:var(--surface,#fff);border-radius:11px;padding:20px;min-width:0}
.summary-intelligence-panel h4,.summary-traffic-details h4{font-size:17px;color:var(--ink);margin:0 0 5px}
.summary-intelligence-panel p,.summary-traffic-details>p{font-size:12px;color:var(--summary-muted);margin:0 0 18px;line-height:1.5}
.summary-intelligence-panel>small{display:block;margin-top:12px;font-size:11px;color:var(--summary-muted);line-height:1.45}
.summary-mini-bars,.summary-traffic-weekdays{display:grid;gap:11px}
.summary-mini-bar,.summary-traffic-row{display:grid;grid-template-columns:85px minmax(0,1fr) 40px;gap:12px;align-items:center;font-size:12px}
.summary-mini-bar span,.summary-traffic-row span{color:var(--summary-muted)}
.summary-mini-bar b,.summary-traffic-row b{font-variant-numeric:tabular-nums;text-align:right}
.summary-bar-track{height:10px;background:var(--soft,#e8f1f5);overflow:hidden;border-radius:99px;min-width:0}
.summary-bar-track i{display:block;height:100%;background:var(--pulse-sales);border-radius:99px;min-width:0}
.summary-top-list{counter-reset:ranking;list-style:none;margin:0;padding:0;display:grid;gap:12px}
.summary-top-list li{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(110px,1fr);gap:12px;align-items:center;min-width:0}
.summary-top-name{min-width:0;display:grid;gap:4px}.summary-top-name strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.summary-top-name small{font-size:11px;line-height:1.3}
.summary-top-track{display:grid;grid-template-columns:minmax(0,1fr) 55px;gap:8px;align-items:center;min-width:0}
.summary-top-track b{text-align:right;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.summary-traffic-details{margin-top:14px}.summary-traffic-details>summary{cursor:pointer;font-size:13px;font-weight:700;min-height:32px}
.summary-traffic-details[open]>summary{margin-bottom:8px}.summary-traffic-main{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.summary-traffic-main h4{margin-bottom:14px}.summary-traffic-insights{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px;font-size:12px}
.summary-hour-bars{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;min-height:160px}
.summary-hour-group{display:flex;flex-direction:column;gap:7px;align-items:center;min-width:0}
.summary-hour-track{height:132px;display:flex;align-items:flex-end;justify-content:stretch;width:100%;border-radius:5px;background:var(--soft,#e8f1f5);overflow:hidden}
.summary-hour-track i{background:var(--pulse-sales);width:100%;border-radius:5px 5px 0 0;min-height:0}
.summary-hour-group span{font-size:11px;color:var(--summary-muted);white-space:nowrap}
@media(max-width:1200px){.summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-intelligence-grid{grid-template-columns:1fr}}
@media(max-width:760px){.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-intelligence-panel,.summary-traffic-details{padding:15px}.summary-traffic-main{grid-template-columns:1fr;gap:22px}.summary-top-list li{grid-template-columns:1fr;gap:5px}.summary-mini-bar,.summary-traffic-row{grid-template-columns:68px minmax(0,1fr) 34px;gap:7px}.summary-hour-bars{gap:5px}}
@media(max-width:380px){.summary-metrics{grid-template-columns:1fr 1fr}.summary-intelligence-panel h4{font-size:15px}.summary-top-track{grid-template-columns:minmax(0,1fr) 50px}}

.summary-payment-section{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.summary-payment-section p{font-size:12px;color:var(--summary-muted);margin:0 0 12px}.summary-payment-section small{display:block;color:var(--summary-muted);font-size:11px;margin-top:9px}.summary-payment-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.summary-payment-row{display:grid;grid-template-columns:90px minmax(0,1fr) 70px;align-items:center;gap:8px;font-size:12px}.summary-payment-row>b{text-align:right;font-variant-numeric:tabular-nums;font-size:11px}@media(max-width:760px){.summary-payment-bars{grid-template-columns:1fr}}
.summary-screen .summary-dates[hidden]{display:none!important}

/* 0.20.82 - dashboard gerencial: cuatro cifras, un visor analítico, alertas compactas. */
.summary-screen .summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.summary-screen .summary-metrics>div{min-height:108px}
.summary-screen .summary-metrics .summary-net strong{font-size:29px}
.summary-screen .summary-analysis{margin-bottom:16px;min-width:0}
.summary-analysis-date{font-size:12px;color:var(--summary-muted)}
.summary-view-tabs{display:flex;align-items:stretch;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid var(--line)}
.summary-view-tab{font-family:inherit;font-size:12px;line-height:1.3;padding:11px 12px;flex:0 0 auto;background:transparent;color:var(--summary-muted);border:1px solid transparent;border-radius:8px;cursor:pointer;min-height:42px;white-space:nowrap}
.summary-view-tab:hover{background:var(--soft,#edf5f2);color:var(--pulse-ink)}
.summary-view-tab.is-selected{color:var(--pulse-ink);font-weight:750;border-color:var(--line);background:var(--soft,#eef6f8)}
.summary-view-tab:focus-visible{outline:3px solid var(--pulse-sales);outline-offset:2px}
.summary-view-head{margin:8px 0 14px}.summary-view-head h4{font-size:16px;letter-spacing:-.02em;margin:0;color:var(--pulse-ink)}.summary-view-head p{color:var(--summary-muted);margin:5px 0 0;font-size:12px;line-height:1.5}
.summary-analysis .summary-week-grid{grid-template-columns:minmax(0,3.2fr) minmax(185px,1fr)}
.summary-analysis-plot{min-height:285px;display:block;overflow:visible;padding:12px}
.summary-analysis-plot svg{min-width:0!important;max-height:340px;width:100%;height:auto}
.summary-analysis-plot .summary-trend-empty{min-height:260px}
.summary-analysis-plot .summary-top-list{max-width:770px;padding:12px 4px;gap:19px}
.summary-analysis-plot .summary-top-list li{grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr)}
.summary-analysis-plot .summary-payment-bars{grid-template-columns:1fr;gap:19px;padding:12px 4px}
.summary-analysis-plot .summary-payment-row{grid-template-columns:96px minmax(0,1fr) 92px}
.summary-analysis-plot .summary-traffic-weekdays{padding:12px 4px;gap:19px}
.summary-analysis-plot .summary-traffic-row{grid-template-columns:90px minmax(0,1fr) 44px}
.summary-analysis-plot .summary-hour-bars-large{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));padding:20px 4px;gap:8px;align-items:stretch;min-height:220px}
.summary-analysis-plot .summary-hour-bars-large .summary-hour-track{height:185px}
.summary-analysis .summary-week-aside{grid-template-columns:1fr}
.summary-view-note{color:var(--summary-muted);font-size:11px;line-height:1.5;margin:12px 0 0}
.summary-alertbar{border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);padding:16px 18px;margin:0 0 18px}
.summary-alertbar-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline;margin-bottom:12px}
.summary-alertbar-head>strong{font-size:15px}.summary-alertbar-head>span{font-size:11px;color:var(--summary-muted)}
.summary-alert-items{display:flex;flex-wrap:wrap;gap:9px}
.summary-alert-action{display:flex;align-items:center;gap:11px;justify-content:space-between;min-height:42px;padding:9px 14px;background:var(--soft,#f4f8fa);border:1px solid var(--line);border-radius:8px;color:var(--ink);font:inherit;font-size:12px;cursor:pointer;min-width:165px;text-align:left}
.summary-alert-action:hover{border-color:var(--pulse-sales)}.summary-alert-action b{font-size:15px;font-variant-numeric:tabular-nums}
.summary-alert-none{font-size:12px;color:var(--summary-muted)}
.summary-alert-expand{border-top:1px solid var(--line);margin:12px 0 0;padding-top:8px}.summary-alert-expand summary{font-size:12px;cursor:pointer;padding:8px 0;min-height:32px}
.summary-alert-expand .summary-low-list{margin:0}.summary-alert-expand .summary-low-list li{padding:8px 0}.summary-alert-expand .summary-low-list strong{font-size:12px}
@media(max-width:1100px){.summary-screen .summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-analysis .summary-week-grid{grid-template-columns:minmax(0,1fr)}.summary-analysis .summary-week-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 0 0;border-left:0;border-top:1px solid var(--line);gap:8px}.summary-analysis .summary-week-stat{border:0;padding:8px 0}}
@media(max-width:760px){.summary-screen .summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-screen .summary-metrics>div{min-height:100px;padding:12px}.summary-screen .summary-metrics strong,.summary-screen .summary-metrics .summary-net strong{font-size:21px}.summary-analysis{padding:13px}.summary-view-tabs{margin-right:-6px}.summary-view-tab{font-size:12px;padding:10px 11px}.summary-analysis-plot{min-height:220px;padding:7px;overflow:visible}.summary-analysis-plot .summary-trend-empty{min-height:210px}.summary-analysis .summary-week-aside{grid-template-columns:1fr 1fr}.summary-analysis .summary-week-stat:last-child{grid-column:1/-1}.summary-analysis .summary-week-stat strong{font-size:18px}.summary-analysis-plot .summary-top-list li{grid-template-columns:1fr}.summary-analysis-plot .summary-payment-row{grid-template-columns:80px minmax(0,1fr) 75px;gap:5px}.summary-analysis-plot .summary-traffic-row{grid-template-columns:66px minmax(0,1fr) 35px}.summary-analysis-plot .summary-hour-bars-large{gap:4px}.summary-analysis-plot .summary-hour-bars-large .summary-hour-track{height:140px}.summary-analysis-plot .summary-hour-group span{font-size:9px}.summary-alertbar{padding:13px}.summary-alert-items{display:grid;grid-template-columns:1fr 1fr}.summary-alert-action{min-width:0;padding:9px}}
@media(max-width:360px){.summary-alert-items{grid-template-columns:1fr}.summary-analysis .summary-week-aside{grid-template-columns:1fr 1fr}.summary-analysis-plot .summary-hour-bars-large{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:12px}.summary-analysis-plot .summary-hour-bars-large .summary-hour-track{height:100px}}

/* 7 legible bars on phones; no sideways chart scrolling or tiny axis labels. */
.summary-day-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;padding:8px 2px 4px;min-height:210px;width:100%}
.summary-day-bar{display:grid;grid-template-rows:175px auto;gap:9px;justify-items:center;min-width:0}
.summary-day-column{width:100%;display:flex;align-items:flex-end;justify-content:center;border-radius:6px;background:var(--soft,#e8f1f5);overflow:hidden}
.summary-day-fill{display:block;background:var(--pulse-sales);width:100%;border-radius:6px 6px 0 0}
.summary-day-bar span{font-size:10px;line-height:1.2;white-space:nowrap;color:var(--summary-muted)}
@media(max-width:380px){.summary-day-bars{gap:4px}.summary-day-bar{grid-template-rows:150px auto}.summary-day-bar span{font-size:9px}}

/* 0.20.83 · Precise, theme-safe value bars (0 has no colored fill). */
.summary-screen .summary-bar-track.summary-bar-svg-track{background:#e8f0f5;overflow:hidden;height:12px;line-height:0}
.summary-screen .summary-bar-track.summary-bar-svg-track svg.summary-value-bar,
.summary-analysis-plot svg.summary-value-bar{display:block;width:100%;height:12px;min-width:0;max-width:100%;max-height:none;aspect-ratio:auto}

/* 0.20.84 - Honest hour distribution; no theme can stretch a percentage-height <i> to 100%. */
.summary-screen .summary-hour-group{min-width:0;gap:7px}
.summary-screen .summary-hour-group .summary-hour-count{font-size:11px;font-weight:750;line-height:1.3;color:var(--pulse-ink,#132d42);font-variant-numeric:tabular-nums;text-align:center}
.summary-screen .summary-hour-track.summary-hour-svg-track{display:block;position:relative;min-width:0;width:100%;height:132px;overflow:hidden;border-radius:5px;background:#e8f0f5}
.summary-screen .summary-analysis-plot .summary-hour-bars-large .summary-hour-track.summary-hour-svg-track{height:185px}
.summary-screen .summary-hour-svg-track svg.summary-hour-svg,
.summary-screen .summary-analysis-plot .summary-hour-svg-track svg.summary-hour-svg{display:block;width:100%;height:100%;min-width:0;max-width:100%;max-height:none;aspect-ratio:auto;overflow:hidden}
.summary-screen .summary-hour-group .summary-hour-label{font-size:10px;line-height:1.25;white-space:nowrap;color:var(--summary-muted)}
@media(max-width:760px){.summary-screen .summary-analysis-plot .summary-hour-bars-large .summary-hour-track.summary-hour-svg-track{height:140px}.summary-screen .summary-hour-group .summary-hour-label{font-size:9px}}
@media(max-width:360px){.summary-screen .summary-analysis-plot .summary-hour-bars-large .summary-hour-track.summary-hour-svg-track{height:100px}}

/* 0.20.86 · Gráfico diario móvil: geometría SVG, valores siempre visibles. */
.summary-mobile-trend{min-width:0;width:100%}
.summary-screen .summary-analysis-plot .summary-day-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end;width:100%;min-height:0;padding:10px 0 3px}
.summary-screen .summary-analysis-plot .summary-day-bar{display:grid;grid-template-rows:18px 160px auto;justify-items:stretch;gap:7px;min-width:0;text-align:center}
.summary-screen .summary-analysis-plot .summary-day-value{display:block;color:var(--pulse-ink,#132d42);font-size:10px;line-height:18px;font-weight:750;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.summary-screen .summary-analysis-plot .summary-day-column{width:100%;height:160px;min-height:0;background:transparent;display:block;overflow:hidden;border-radius:5px}
.summary-screen .summary-analysis-plot .summary-day-column svg.summary-day-svg{display:block;width:100%;height:100%;max-height:none;min-width:0;max-width:100%;aspect-ratio:auto;overflow:hidden}
.summary-screen .summary-analysis-plot .summary-day-bar>span{font-size:10px;white-space:nowrap;line-height:1.3}
.summary-mobile-trend-caption{font-size:11px;color:var(--summary-muted,#64748b);line-height:1.4;margin:10px 0 3px}
@media(max-width:380px){.summary-screen .summary-analysis-plot .summary-day-bars{gap:4px}.summary-screen .summary-analysis-plot .summary-day-bar{grid-template-rows:18px 134px auto;gap:5px}.summary-screen .summary-analysis-plot .summary-day-column{height:134px}.summary-screen .summary-analysis-plot .summary-day-value{font-size:9px}.summary-screen .summary-analysis-plot .summary-day-bar>span{font-size:9px}}
.production-summary{max-width:1160px;margin:auto}.production-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.production-summary-metrics article{background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.production-summary-metrics article strong{font-size:30px;line-height:1;color:#102d44}.production-summary-metrics small,.production-summary-head small{font-size:11px;letter-spacing:.08em;color:#57718a;font-weight:700}.production-summary-metrics article span,.production-summary-order small{color:#60758a}.production-summary-metrics .btn{margin-top:auto}.production-summary-head,.production-summary-order{display:flex;justify-content:space-between;align-items:center;gap:16px}.production-summary-order{border-top:1px solid #e4eaf0;padding:12px 0}.production-summary-order div{min-width:0}.production-summary-order small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.production-summary-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}@media(max-width:720px){.production-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.production-summary-metrics article:last-child{grid-column:1/-1}.production-summary-order{display:grid;grid-template-columns:1fr auto}.production-summary-order span{grid-column:1}.production-summary-order b{grid-row:1/3;grid-column:2}}
.production-summary-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 10px;border-bottom:1px solid var(--line);margin:18px 0}.production-summary-tabs button{flex:0 0 auto;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:var(--panel,#fff);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}.production-summary-tabs button.active{background:var(--blue,#1767ad);color:#fff;border-color:transparent}.production-summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.production-summary-section{padding:18px;margin:16px 0}.production-summary-section h3{margin:0 0 12px}.production-summary-actions{display:flex;flex-wrap:wrap;gap:8px}.production-summary-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:10px 0;min-width:0}.production-summary-line div{min-width:0}.production-summary-line strong,.production-summary-line small{display:block;overflow-wrap:anywhere}.production-summary-line small{color:var(--muted);font-size:12px;margin-top:3px}.production-summary-line b,.production-summary-line>span{flex:none;font-variant-numeric:tabular-nums}
@media(max-width:800px){.production-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.production-summary-metrics article:last-child{grid-column:auto}.production-summary-line{align-items:flex-start}.production-summary-line>span{max-width:40%;white-space:normal;text-align:right}}
@media(max-width:420px){.production-summary-metrics{gap:8px}.production-summary-metrics article{padding:12px}.production-summary-metrics article strong{font-size:23px}.production-summary-section{padding:13px}.production-summary-actions .btn{flex:1;text-align:center}}


/* Archivo: production-dashboard.css */
/* MIONEXO 0.20.214: tablero de negocio por encargo, aislado del Comercio. */
.workspace[data-operation="production"] .pbd-dashboard{--pbd-line:#dce6f0;--pbd-muted:#60758c;--pbd-navy:#102c4a;--pbd-blue:#246cd5;max-width:1320px;margin:0 auto 36px;min-width:0;color:#142e49}
.workspace[data-operation="production"] .pbd-dashboard button:focus-visible,.workspace[data-operation="production"] .pbd-dashboard select:focus-visible,.workspace[data-operation="production"] .pbd-dashboard input:focus-visible,.workspace[data-operation="production"] .pbd-dashboard summary:focus-visible{outline:3px solid #21b7da;outline-offset:3px}
.workspace[data-operation="production"] .pbd-header{min-height:154px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(110deg,#0d2846 5%,#15517d 63%,#1e6ca0);border-radius:19px;padding:27px 33px 36px;color:#fff}
.workspace[data-operation="production"] .pbd-header:after{content:"";position:absolute;inset:auto -55px -115px auto;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(96,206,239,.23) 0,rgba(96,206,239,0) 72%);z-index:-1}
.workspace[data-operation="production"] .pbd-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#83d8ef;margin-bottom:8px}
.workspace[data-operation="production"] .pbd-header h1{font-size:clamp(25px,2.4vw,34px);line-height:1.13;letter-spacing:-.035em;margin:0 0 9px;color:white}
.workspace[data-operation="production"] .pbd-header p{max-width:66ch;color:#d9eafa;font-size:13.5px;line-height:1.55;margin:0}
.workspace[data-operation="production"] .pbd-header-label{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.19);color:#eef8ff;white-space:nowrap;border-radius:30px;padding:9px 13px;font-size:12px}
.workspace[data-operation="production"] .pbd-header .nav-icon{filter:brightness(0) invert(1)}
.workspace[data-operation="production"] .pbd-toolbar{position:relative;margin:-22px 16px 20px;background:white;border:1px solid var(--pbd-line);box-shadow:0 12px 26px rgba(13,42,73,.08);border-radius:12px;padding:12px 15px;display:flex;align-items:end;gap:13px;flex-wrap:wrap}
.workspace[data-operation="production"] .pbd-filter-label{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:700;color:#214363;align-self:center;padding:7px}
.workspace[data-operation="production"] .pbd-toolbar .field{margin:0;min-width:160px}
.workspace[data-operation="production"] .pbd-toolbar .label{font-size:11px;font-weight:700;color:#62778a;margin-bottom:4px}
.workspace[data-operation="production"] .pbd-toolbar select,.workspace[data-operation="production"] .pbd-toolbar input{min-height:38px;padding:7px 12px;border-color:#cedce9;background:#f8fafc;border-radius:8px;font-size:13px}
.workspace[data-operation="production"] .pbd-toolbar .btn{min-height:38px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650}
.workspace[data-operation="production"] .pbd-date-range{display:flex;flex-wrap:wrap;gap:10px}
.workspace[data-operation="production"] .pbd-date-range[hidden]{display:none!important}
.workspace[data-operation="production"] .pbd-period-caption{margin-left:auto;align-self:center;font-size:12px;color:var(--pbd-muted);font-weight:650;white-space:nowrap}
.workspace[data-operation="production"] .pbd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 24px}
.workspace[data-operation="production"] .pbd-kpi{position:relative;background:#fff;border:1px solid var(--pbd-line);border-radius:14px;padding:17px 17px 16px;display:flex;flex-direction:column;gap:7px;min-width:0;min-height:139px;box-shadow:0 3px 15px rgba(15,54,88,.035);transition:border-color .15s,transform .15s}
.workspace[data-operation="production"] .pbd-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--pbd-accent);border-radius:14px 0 0 14px}
.workspace[data-operation="production"] .pbd-kpi:hover{border-color:#b6d1e7;transform:translateY(-1px)}
.workspace[data-operation="production"] .pbd-tone-blue{--pbd-accent:#2475cc;--pbd-soft:#eaf4ff}
.workspace[data-operation="production"] .pbd-tone-green{--pbd-accent:#189678;--pbd-soft:#e9f8f1}
.workspace[data-operation="production"] .pbd-tone-amber{--pbd-accent:#d59b3f;--pbd-soft:#fff7e9}
.workspace[data-operation="production"] .pbd-tone-violet{--pbd-accent:#8067c7;--pbd-soft:#f3effe}
.workspace[data-operation="production"] .pbd-kpi-top{display:flex;align-items:center;gap:9px;min-width:0}
.workspace[data-operation="production"] .pbd-kpi-icon{display:inline-flex;width:29px;height:29px;align-items:center;justify-content:center;border-radius:8px;background:var(--pbd-soft)}
.workspace[data-operation="production"] .pbd-kpi-icon img{width:17px;height:17px;opacity:.84}
.workspace[data-operation="production"] .pbd-kpi-label{text-transform:uppercase;letter-spacing:.045em;font-size:10.4px;line-height:1.35;font-weight:750;color:#5b7085}
.workspace[data-operation="production"] .pbd-kpi strong{color:#162e46;font-size:clamp(20px,2vw,28px);letter-spacing:-.025em;line-height:1.15;overflow-wrap:anywhere;font-weight:760;font-variant-numeric:tabular-nums}
.workspace[data-operation="production"] .pbd-kpi small{color:#687d90;line-height:1.4;font-size:11.5px}
.workspace[data-operation="production"] .pbd-alert{border:1px solid #f0d6a5;border-left:4px solid #dc9f3f;border-radius:12px;background:#fff8e9;color:#684b20;display:flex;align-items:center;gap:10px;padding:12px 15px;font-size:13px;margin:-5px 0 20px;flex-wrap:wrap}
.workspace[data-operation="production"] .pbd-alert .btn{margin-left:auto;background:white;white-space:nowrap}
.workspace[data-operation="production"] .pbd-content-header{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:23px 0 14px}
.workspace[data-operation="production"] .pbd-content-header h2{margin:0 0 4px;font-size:19px;letter-spacing:-.02em}
.workspace[data-operation="production"] .pbd-content-header p{font-size:12.5px;color:#64798d;margin:0}
.workspace[data-operation="production"] .pbd-actions{display:flex;gap:7px;flex-wrap:wrap}
.workspace[data-operation="production"] .pbd-actions .btn{min-height:36px;border-radius:8px;font-size:12px}
.workspace[data-operation="production"] .pbd-tabs{display:flex;gap:8px;border-bottom:1px solid #cfdfeb;overflow-x:auto;margin:0 0 15px;padding:0 0 9px;scrollbar-width:thin}
.workspace[data-operation="production"] .pbd-tabs button{min-height:38px;flex:0 0 auto;border-radius:9px;border:1px solid transparent;background:transparent;color:#567189;padding:8px 14px;font:inherit;font-size:12.5px;cursor:pointer;font-weight:700}
.workspace[data-operation="production"] .pbd-tabs button:hover{background:#eaf2f9}
.workspace[data-operation="production"] .pbd-tabs button.is-active{color:#fff;background:#14569a;box-shadow:0 3px 8px rgba(19,75,129,.16)}
.workspace[data-operation="production"] .pbd-layout{display:grid;gap:15px;min-width:0}
.workspace[data-operation="production"] .pbd-layout-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.workspace[data-operation="production"] .pbd-cost-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.workspace[data-operation="production"] .pbd-cost-summary>div{border:1px solid #dbe6ee;border-radius:10px;padding:14px;background:#f8fbfd;min-width:0}
.workspace[data-operation="production"] .pbd-cost-summary span,.workspace[data-operation="production"] .pbd-cost-summary small{display:block;color:#5b7085;line-height:1.4}
.workspace[data-operation="production"] .pbd-cost-summary span{font-size:12px;font-weight:700}
.workspace[data-operation="production"] .pbd-cost-summary strong{display:block;color:#123753;font-size:22px;margin:7px 0;font-variant-numeric:tabular-nums}
.workspace[data-operation="production"] .pbd-cost-summary small{font-size:11px}
@media(max-width:850px){.workspace[data-operation="production"] .pbd-cost-summary{grid-template-columns:1fr}}
.workspace[data-operation="production"] .pbd-panel{background:white;border:1px solid var(--pbd-line);border-radius:15px;padding:18px 20px 19px;min-width:0;box-shadow:0 2px 14px rgba(15,54,88,.035)}
.workspace[data-operation="production"] .pbd-panel.pbd-wide{grid-column:1/-1}
.workspace[data-operation="production"] .pbd-panel-top{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.workspace[data-operation="production"] .pbd-panel-top h3{font-size:16px;letter-spacing:-.01em;margin:0 0 5px;color:#163553}
.workspace[data-operation="production"] .pbd-panel-top p{font-size:12px;line-height:1.4;margin:0;color:var(--pbd-muted)}
.workspace[data-operation="production"] .pbd-panel-top .btn{min-height:32px;padding:6px 9px;font-size:11.5px}
.workspace[data-operation="production"] .pbd-soft-tag{background:#e9f2fb;color:#28629b;font-size:11px;font-weight:750;padding:5px 10px;border-radius:20px}
.workspace[data-operation="production"] .pbd-chart-wrap{width:100%;max-height:310px;overflow:hidden}
.workspace[data-operation="production"] .pbd-chart-wrap svg{display:block;width:100%;height:auto;max-height:305px}
.workspace[data-operation="production"] .pbd-sales-bar{fill:#2678d1;transition:fill .2s}
.workspace[data-operation="production"] .pbd-sales-bar:hover{fill:#11a4ba}
.workspace[data-operation="production"] .pbd-chart-grid{stroke:#e7edf3;stroke-width:1}
.workspace[data-operation="production"] .pbd-chart-tick{fill:#7890a4;font-size:12px}
.workspace[data-operation="production"] .pbd-chart-details{margin-top:7px;font-size:12px;color:#647b90}
.workspace[data-operation="production"] .pbd-chart-details summary{cursor:pointer;color:#285f9a;font-weight:700;padding:8px 0}
.workspace[data-operation="production"] .pbd-detail-scroll{max-height:240px;overflow:auto}
.workspace[data-operation="production"] .pbd-detail-scroll table{width:100%;border-collapse:collapse;font-size:12px}
.workspace[data-operation="production"] .pbd-detail-scroll td,.workspace[data-operation="production"] .pbd-detail-scroll th{border-bottom:1px solid #e7edf4;padding:7px;text-align:left}
.workspace[data-operation="production"] .pbd-donut-row{display:grid;grid-template-columns:minmax(165px,220px) 1fr;align-items:center;gap:12px}
.workspace[data-operation="production"] .pbd-donut{width:100%;max-width:206px}
.workspace[data-operation="production"] .pbd-donut-value{font-weight:750;font-size:31px;fill:#143b59}
.workspace[data-operation="production"] .pbd-donut-caption{font-size:12px;fill:#7890a4}
.workspace[data-operation="production"] .pbd-legend{margin:0;padding:0;list-style:none;display:grid;gap:9px;min-width:0}
.workspace[data-operation="production"] .pbd-legend li{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;color:#60748c}
.workspace[data-operation="production"] .pbd-legend i{width:9px;height:9px;border-radius:3px;flex:none}
.workspace[data-operation="production"] .pbd-legend span{flex:1;min-width:0;overflow-wrap:anywhere}
.workspace[data-operation="production"] .pbd-legend strong{color:#163553;font-variant-numeric:tabular-nums}
.workspace[data-operation="production"] .pbd-footnote{margin:11px 0 0;font-size:11.5px;line-height:1.55;color:#728599}
.workspace[data-operation="production"] .pbd-empty{min-height:140px;border:1px dashed #d7e3ee;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:20px;color:#6b8093;text-align:center}
.workspace[data-operation="production"] .pbd-empty .nav-icon{opacity:.5;width:24px;height:24px}
.workspace[data-operation="production"] .pbd-empty p{max-width:42ch;margin:0;font-size:12.5px;line-height:1.6}
.workspace[data-operation="production"] .pbd-bar-list{display:grid;gap:13px;padding:6px 0}
.workspace[data-operation="production"] .pbd-bar-line{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;align-items:center}
.workspace[data-operation="production"] .pbd-bar-title{display:flex;flex-direction:column;gap:3px;min-width:0}
.workspace[data-operation="production"] .pbd-bar-title b{font-size:12.5px;overflow-wrap:anywhere}
.workspace[data-operation="production"] .pbd-bar-title small{font-size:11px;color:#75899b;overflow-wrap:anywhere}
.workspace[data-operation="production"] .pbd-bar-value{display:flex;align-items:center;gap:7px;font-size:11px;color:#425e78;min-width:0}
.workspace[data-operation="production"] .pbd-bar-track{height:9px;background:#e9f0f7;border-radius:8px;overflow:hidden;flex:1}
.workspace[data-operation="production"] .pbd-bar-track span{display:block;background:linear-gradient(90deg,#2678d1,#52b7e5);height:100%;border-radius:8px}
.workspace[data-operation="production"] .pbd-bar-value b{min-width:52px;font-size:11px;font-variant-numeric:tabular-nums;text-align:right}
.workspace[data-operation="production"] .pbd-compare{display:flex;justify-content:space-evenly;gap:15px;align-items:end;padding:11px 20px 0;min-height:215px}
.workspace[data-operation="production"] .pbd-compare-col{display:flex;align-items:center;gap:5px;flex-direction:column;text-align:center;width:42%;max-width:180px}
.workspace[data-operation="production"] .pbd-compare-track{height:139px;width:80%;max-width:90px;display:flex;align-items:end;justify-content:center;background:#f1f5f9;border-radius:10px 10px 2px 2px;overflow:hidden}
.workspace[data-operation="production"] .pbd-compare-track span{display:block;width:100%;min-height:0;background:#42a9dc;border-radius:9px 9px 0 0}
.workspace[data-operation="production"] .pbd-compare-track span.pbd-compare-orders{background:#198f83}
.workspace[data-operation="production"] .pbd-compare-col strong{font-size:18px;color:#143b59}
.workspace[data-operation="production"] .pbd-compare-col small{font-size:11px;line-height:1.4;color:#687f92}
.workspace[data-operation="production"] .pbd-money-control{padding:9px 2px 6px}
.workspace[data-operation="production"] .pbd-money-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#5b7087;margin:12px 0}
.workspace[data-operation="production"] .pbd-money-line strong{font-size:25px;color:#164669}
.workspace[data-operation="production"] .pbd-money-line b{font-size:16px}
.workspace[data-operation="production"] .pbd-text-danger{color:#bd425b}
.workspace[data-operation="production"] .pbd-money-meter{height:15px;background:#eaf3f7;border-radius:10px;overflow:hidden}
.workspace[data-operation="production"] .pbd-money-meter span{display:block;height:100%;background:#d96a7c;border-radius:10px}
.workspace[data-operation="production"] .pbd-number-feature{display:flex;flex-direction:column;gap:10px;padding:12px 0}
.workspace[data-operation="production"] .pbd-number-feature span{font-size:12px;color:#597086}
.workspace[data-operation="production"] .pbd-number-feature strong{font-size:29px;color:#173e62;font-variant-numeric:tabular-nums}
.workspace[data-operation="production"] .pbd-number-feature p{color:#6d8394;font-size:12px;line-height:1.55;margin:0}
.workspace[data-operation="production"] .pbd-table-scroll{width:100%;overflow-x:auto}
.workspace[data-operation="production"] .pbd-table{width:100%;border-collapse:collapse;white-space:nowrap;min-width:490px}
.workspace[data-operation="production"] .pbd-table th{text-align:left;color:#73889c;text-transform:uppercase;letter-spacing:.06em;font-size:10px;padding:10px;border-bottom:1px solid #e1eaf3}
.workspace[data-operation="production"] .pbd-table td{font-size:12px;color:#34516c;padding:12px 10px;border-bottom:1px solid #edf1f5;vertical-align:middle}
.workspace[data-operation="production"] .pbd-table td b{font-weight:730;color:#173e62}
.workspace[data-operation="production"] .pbd-table td small{display:block;font-size:11px;color:#8193a5;margin-top:3px}
.workspace[data-operation="production"] .pbd-chip{border-radius:20px;padding:5px 8px;font-size:10.5px;font-weight:730;display:inline-block}
.workspace[data-operation="production"] .pbd-chip-blue{background:#e7f2ff;color:#2069ae}
.workspace[data-operation="production"] .pbd-chip-red{background:#fff0ee;color:#b44952}
.workspace[data-operation="production"] .pbd-method{margin:19px 0 0;background:#f2f7fb;border:1px solid #dce8f2;border-radius:12px;font-size:12px;padding:11px 15px;color:#59728a}
.workspace[data-operation="production"] .pbd-method summary{cursor:pointer;font-size:12px;font-weight:750;color:#315b7c}
.workspace[data-operation="production"] .pbd-method div{padding:4px 0}
.workspace[data-operation="production"] .pbd-method p{margin:7px 0;line-height:1.55}
.workspace[data-operation="production"] .pbd-loading{padding:70px 24px;color:#59748e;text-align:center;background:#fff;border:1px solid #dce6f0;border-radius:15px}
@media(max-width:1050px){.workspace[data-operation="production"] .pbd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace[data-operation="production"] .pbd-donut-row{grid-template-columns:180px 1fr}}
@media(max-width:800px){.workspace[data-operation="production"] .pbd-header{padding:25px 22px 41px}.workspace[data-operation="production"] .pbd-layout-2{grid-template-columns:1fr}.workspace[data-operation="production"] .pbd-panel.pbd-wide{grid-column:1}.workspace[data-operation="production"] .pbd-chart-wrap{overflow-x:auto}.workspace[data-operation="production"] .pbd-chart-wrap svg{min-width:580px}.workspace[data-operation="production"] .pbd-toolbar{margin:-20px 10px 20px}}
@media(max-width:480px){.workspace[data-operation="production"] .pbd-header{padding:22px 19px 35px;min-height:162px}.workspace[data-operation="production"] .pbd-header-label{display:none}.workspace[data-operation="production"] .pbd-toolbar{gap:9px}.workspace[data-operation="production"] .pbd-filter-label{width:100%}.workspace[data-operation="production"] .pbd-toolbar .field{flex:1;min-width:0}.workspace[data-operation="production"] .pbd-date-range{width:100%}.workspace[data-operation="production"] .pbd-date-range .field{min-width:120px}.workspace[data-operation="production"] .pbd-period-caption{margin:0}.workspace[data-operation="production"] .pbd-kpis{gap:9px}.workspace[data-operation="production"] .pbd-kpi{padding:14px 13px;min-height:132px}.workspace[data-operation="production"] .pbd-kpi-label{font-size:9.6px}.workspace[data-operation="production"] .pbd-kpi strong{font-size:21px}.workspace[data-operation="production"] .pbd-kpi small{font-size:10.5px}.workspace[data-operation="production"] .pbd-kpi-icon{width:24px;height:24px}.workspace[data-operation="production"] .pbd-content-header h2{font-size:18px}.workspace[data-operation="production"] .pbd-actions{width:100%}.workspace[data-operation="production"] .pbd-panel{padding:16px 14px}.workspace[data-operation="production"] .pbd-donut-row{grid-template-columns:148px 1fr;gap:7px}.workspace[data-operation="production"] .pbd-legend li{font-size:11px;gap:4px}.workspace[data-operation="production"] .pbd-bar-line{grid-template-columns:1fr;gap:6px}.workspace[data-operation="production"] .pbd-chart-wrap svg{min-width:570px}.workspace[data-operation="production"] .pbd-tabs button{padding:8px 11px}.workspace[data-operation="production"] .pbd-compare{padding:7px 2px 0}}
@media(prefers-reduced-motion:reduce){.workspace[data-operation="production"] .pbd-dashboard *{transition:none!important}}
/* El selector nunca debe colapsar al espacio restante del teléfono. */
@media(max-width:520px){
 .workspace[data-operation="production"] .pbd-toolbar .pbd-period-select{min-width:150px;flex:1 1 150px}
 .workspace[data-operation="production"] .pbd-toolbar .pbd-period-select select{width:100%;min-width:150px}
 .workspace[data-operation="production"] .pbd-toolbar .pbd-period-caption{width:100%;padding-left:4px}
 .workspace[data-operation="production"] .pbd-toolbar #pbd-refresh{flex:none}
}


/* Archivo: catalog-lifecycle.css */
.page[data-module="products"] .catalog-item-action{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.page[data-module="products"] .catalog-item-action .btn{white-space:nowrap}
.page[data-module="products"] .product-subgroup-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;padding:5px 0}
.page[data-module="products"] .product-subgroup-row .product-subgroup{margin-right:auto}
.page[data-module="products"] .group-lifecycle{display:flex;gap:7px;flex-wrap:wrap;width:100%;margin-top:10px}
.page[data-module="products"] .product-group-item .category-actions{position:relative;flex:none}
.page[data-module="products"] .product-group-item .category-actions>summary,
.page[data-module="products"] .product-group-item .category-group-actions>summary{display:inline-flex;flex-direction:row;align-items:center;gap:4px;width:auto;min-height:0;padding:5px 7px;border-radius:5px;color:#52687d;font-size:11px;font-weight:500;cursor:pointer}
.page[data-module="products"] .product-group-item .category-actions>summary:hover,
.page[data-module="products"] .product-group-item .category-group-actions>summary:hover{background:#eef3f7;color:#0a2540}
.page[data-module="products"] .product-group-item .category-actions>div{display:flex;gap:6px;justify-content:flex-end;padding:6px 0}
.page[data-module="products"] .product-group-item .category-actions .btn,
.page[data-module="products"] .product-group-item .category-group-actions .btn{min-height:30px;padding:5px 8px;font-size:11px}
.page[data-module="products"] .product-group-item .category-group-actions{margin:4px 17px 12px}
.page[data-module="products"] .product-group-item .category-group-actions .group-lifecycle{margin-top:0}


/* Archivo: catalog-category-members.css */
.category-members-dialog{width:min(860px,calc(100vw - 24px));max-width:860px;max-height:min(88vh,850px);overflow:auto;padding:22px}
.category-members-dialog .pos-picker-header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.category-members-dialog .pos-picker-header h3{margin:0}
.category-members-filters,.category-members-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;flex-wrap:wrap}
.category-members-filters input[type=search]{flex:1;min-width:220px}
.category-members-filters label{display:flex;align-items:center;gap:6px}
.category-members-list{max-height:330px;overflow:auto;border:1px solid #dbe5ed;border-radius:8px}
.category-member{display:grid;grid-template-columns:auto minmax(150px,1fr) auto;gap:8px 12px;align-items:center;padding:11px;border-bottom:1px solid #e3eaf0;cursor:pointer}
.category-member:last-child{border-bottom:0}
.category-member>span small{display:block;color:#63778b}
.category-member-stock{font-variant-numeric:tabular-nums}
.category-member-warning{grid-column:2/-1;color:#946423}
.category-members-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;border-top:1px solid #dce6ec;padding-top:14px}
.category-members-actions .field{min-width:150px;flex:1}
.category-members-delete{border-top:1px solid #dce6ec;margin-top:15px;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.category-members-delete p{margin:0;color:#63778b;font-size:12px}
.category-members-delete .btn{flex:none}
.category-members-dialog [data-error]{color:#ae3030}
@media(max-width:620px){.category-member{grid-template-columns:auto 1fr}.category-member-stock,.category-member-warning{grid-column:2}.category-members-actions .btn{flex:1}}


/* Archivo: product-camera.css */
.product-code-control{display:flex;gap:8px;align-items:stretch;min-width:0;width:100%}.product-code-control>input,.product-code-control>select{flex:1;min-width:0;width:0;margin:0}.product-camera-launch{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;flex-shrink:0;padding:9px}.product-camera-launch img{display:block;width:20px;height:20px}.product-code-control .product-camera-launch:focus-visible{outline:2px solid var(--green);outline-offset:2px}.product-code-control .product-camera-launch:hover{background:var(--soft,#edf5f2)}
@media(max-width:760px){.product-code-control .product-camera-launch{min-height:44px;width:44px}}

.product-code-control>textarea{flex:1;min-width:0;width:0;margin:0}.product-code-control:has(textarea)>.product-camera-launch{align-self:flex-start}


/* Archivo: fiscal-settings.css */
/* Configuración de trabajo del responsable fiscal: controles compactos y estado legible. */
.fiscal-settings-workspace{max-width:1000px}.fiscal-settings-workspace>.panel{padding:20px}.fiscal-mode-control{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 16px;border-bottom:1px solid var(--line)}.fiscal-mode-control label{font-size:16px;font-weight:600;color:var(--ink)}.fiscal-mode-control p{margin:4px 0 0;color:var(--muted);max-width:64ch}.fiscal-mode-control input[role=switch]{appearance:none;flex:0 0 48px;width:48px;height:28px;margin:0;border:1px solid var(--line-strong);border-radius:16px;background:var(--line-strong);cursor:pointer;position:relative}.fiscal-mode-control input[role=switch]::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px #0002;transition:transform .15s ease}.fiscal-mode-control input[role=switch]:checked{background:var(--green);border-color:var(--green)}.fiscal-mode-control input[role=switch]:checked::after{transform:translateX(20px)}.fiscal-mode-control input[role=switch]:focus-visible{outline:2px solid var(--green);outline-offset:4px}.fiscal-mode-control input:disabled{opacity:.6;cursor:not-allowed}.fiscal-mode-description{display:grid;gap:4px;padding:16px 0}.fiscal-mode-description strong{font-size:16px}.fiscal-mode-description span{color:var(--muted)}.fiscal-settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fiscal-settings-save{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.fiscal-settings-save [role=status]{font-size:12px;color:var(--muted)}.fiscal-settings-form [role=alert]{color:var(--danger)}.fiscal-provider-details{margin:16px 0;border:1px solid var(--line);border-radius:8px;padding:16px;background:var(--surface)}.fiscal-provider-details>summary{font-size:16px;font-weight:600;cursor:pointer;min-height:28px}.fiscal-provider-details .panel{box-shadow:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;margin:0}.fiscal-provider-details .panel:last-child{border-bottom:0}@media(max-width:640px){.fiscal-settings-workspace>.panel,.fiscal-provider-details{padding:16px}.fiscal-settings-fields{grid-template-columns:1fr}.fiscal-mode-control{gap:16px}.fiscal-settings-save .btn{width:100%}}@media(prefers-reduced-motion:reduce){.fiscal-mode-control input[role=switch]::after{transition:none}}

/* El resumen masivo permanece visible sin extender toda la página. */
#fbo-group-mapping .fbo-group-preview-list{max-height:320px;overflow:auto;margin:12px 0;border:1px solid var(--line);border-radius:8px}
#fbo-group-mapping .fbo-group-preview-list .tablewrap{margin:0;border:0}
#fbo-group-mapping [data-apply-group]{margin-top:4px}
#fbo-individual-details>summary,#fbo-purchase-details>summary{cursor:pointer;font-weight:600;min-height:36px}

/* Homologación: una tarea visible, con el mismo sistema de color del ERP. */
.fiscal-homologation-tabs{gap:4px;border-bottom:1px solid var(--line);padding:0 0 8px;margin:0 0 16px}
.fiscal-homologation-tabs .btn{min-height:40px;white-space:nowrap}
[data-fbo-section][hidden],[data-fbo-mapping-panel][hidden]{display:none!important}
.fbo-pending-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.fbo-pending-head p{margin:0}.fbo-pending-head .btn{white-space:normal;text-align:center}
@media(max-width:640px){.fbo-pending-head{align-items:stretch;flex-direction:column}.fbo-pending-head .btn{width:100%;box-sizing:border-box}}
.fiscal-filter .field{min-width:0}
@media(max-width:640px){.fiscal-homologation-tabs{flex-wrap:nowrap;overflow-x:auto}.fiscal-filter{display:flex;flex-wrap:wrap}.fiscal-filter .field{flex:1 1 180px}}
.fiscal-homologation-tabs .btn{border-color:transparent;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted)}
.fiscal-homologation-tabs .btn.primary{border-bottom-color:var(--green);color:var(--ink);background:transparent}
@media(max-width:640px){.page[data-module="fiscal-integration"] .finance-navigation .module-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%}.page[data-module="fiscal-integration"] .finance-navigation .module-tabs .btn{flex-shrink:0}}
.workspace[data-theme] .fiscal-homologation-tabs .btn.primary,.workspace[data-theme] .fiscal-homologation-tabs .btn.primary:hover{background:transparent;border-color:transparent;border-bottom-color:var(--green);color:var(--ink)}

/* Un solo contenedor de desplazamiento para la vista previa masiva. */
#fbo-group-mapping .fbo-group-preview-list{max-height:none;overflow:visible;border:0}
#fbo-group-mapping .fbo-group-preview-list .tablewrap{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.fbo-mapping-selection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}
.fbo-mapping-selection dt{color:var(--muted);font-size:12px}
.fbo-mapping-selection dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
@media(max-width:640px){.fbo-mapping-selection{grid-template-columns:1fr;gap:12px}}
.fbo-invoice-cuf{max-width:280px;white-space:normal;overflow-wrap:anywhere}
#fbo-invoices .fiscal-row-actions{margin:0;gap:8px}
[data-saved-api-key],[data-saved-token]{letter-spacing:3px;color:var(--muted);cursor:default}
.fbo-invoice-identity{display:grid;gap:4px;min-width:0;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.fbo-invoice-identity small{display:block}

/* Resumen fiscal: saldo confirmado, estado SIN y sincronización en una sola vista. */
.fbo-overview{display:grid;gap:18px}
.fbo-overview-head,.fbo-overview-next{display:flex;align-items:center;justify-content:space-between;gap:20px}
.fbo-overview-head h2{margin:5px 0 3px;font-size:23px;line-height:1.2;color:var(--ink)}
.fbo-overview-head p,.fbo-overview-next p{margin:4px 0 0;color:var(--muted);font-size:12px}
.fbo-overline{font-size:10px;font-weight:750;letter-spacing:.09em;color:#36718a}
.fbo-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fbo-overview-card{min-width:0;min-height:142px;display:flex;flex-direction:column;gap:9px;padding:20px;border:1px solid #dbe5ee;border-radius:14px;background:#fff}
.fbo-overview-card>span{font-size:11px;font-weight:700;color:#5c7185}
.fbo-overview-card>strong{font-size:21px;line-height:1.15;color:var(--ink);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fbo-overview-balance>strong{font-size:35px;letter-spacing:-.04em}
.fbo-overview-card>small{margin-top:auto;font-size:11px;line-height:1.45;color:#60758a;overflow-wrap:anywhere}
.fbo-overview-card[data-tone="ok"]{border-top:3px solid #17855c}
.fbo-overview-card[data-tone="working"]{border-top:3px solid #2681c3}
.fbo-overview-card[data-tone="danger"]{border-top:3px solid #b7424c}
.fbo-overview-card[data-tone="neutral"]{border-top:3px solid #c5d5df}
.fbo-overview-next{padding:20px;border:1px solid #dce8ee;border-radius:14px;background:#f7fafc}
.fbo-overview-next strong{font-size:13px;color:var(--ink)}
.fbo-overview-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.fbo-connection-guide{margin:0 0 14px}
.fbo-saved-state{margin:12px 0}
@media(max-width:1050px){.fbo-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.fbo-overview-grid{grid-template-columns:1fr 1fr;gap:8px}.fbo-overview-card{min-height:130px;padding:14px}.fbo-overview-card>strong{font-size:17px}.fbo-overview-balance>strong{font-size:29px}.fbo-overview-head,.fbo-overview-next{align-items:flex-start;flex-direction:column}.fbo-overview-actions{width:100%}.fbo-overview-actions .btn{flex:1}}
@media(max-width:380px){.fbo-overview-grid{grid-template-columns:1fr}.fbo-overview-card{min-height:105px}}
.fbo-excel-flow{display:grid;gap:12px}
.fbo-excel-flow .field{max-width:680px}
.fbo-excel-flow .form-actions{margin:0}
.fbo-excel-flow form{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:16px}
.fbo-excel-flow form .btn{justify-self:start}
.fbo-excel-check{display:flex;align-items:center;gap:8px;font-size:12px}
.fbo-excel-check input{width:auto}
.fbo-excel-summary{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;margin:16px 0}
.fbo-excel-summary strong{color:var(--ink)}
.fbo-excel-flow #fbo-excel-result .tablewrap{max-height:380px;overflow:auto}
.fbo-register-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(180px,1fr);gap:12px;align-items:end;margin:8px 0 16px}
.fbo-register-list .tablewrap{max-height:560px;overflow:auto}
.fbo-register-list table{table-layout:fixed;width:100%;min-width:900px}
.fbo-register-list th:nth-child(1){width:32%}.fbo-register-list th:nth-child(2){width:18%}.fbo-register-list th:nth-child(3){width:18%}.fbo-register-list th:nth-child(4){width:11%}.fbo-register-list th:nth-child(5){width:11%}.fbo-register-list th:nth-child(6){width:10%}
.fbo-register-list th,.fbo-register-list td{padding:9px 8px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;line-height:1.4}
.fbo-register-list td:last-child .btn{padding:7px 8px;min-width:0}
.fbo-register-list small{display:block;color:#63788a;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.fbo-register-mobile{display:none}
.fbo-register-status{display:inline-block;padding:5px 8px;border-radius:8px;background:#f1f5f8;color:#40566a;font-size:11px;font-weight:700;white-space:nowrap}
.fbo-register-status.mapped{background:#e5f5ed;color:#126946}
.fbo-register-status.review{background:#fff1dc;color:#905817}
@media(max-width:760px){.fbo-register-filters{grid-template-columns:1fr;gap:0}.fbo-register-list>.tablewrap{display:none}.fbo-register-mobile{display:grid;gap:8px}.fbo-register-card{min-width:0;border:1px solid var(--line);border-radius:9px;padding:11px;background:#fff}.fbo-register-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.fbo-register-card-head>div{min-width:0}.fbo-register-card strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.fbo-register-card small{margin-top:2px}.fbo-register-card-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px}.fbo-register-card-actions summary{cursor:pointer;color:#376075;font-size:11px}.fbo-register-card-actions details{min-width:0;flex:1}.fbo-register-card-actions dl{margin:9px 0 0;font-size:11px}.fbo-register-card-actions dt{color:var(--muted);margin-top:5px}.fbo-register-card-actions dd{margin:1px 0;overflow-wrap:anywhere}.fbo-register-card-actions .btn{flex:none}.fbo-register-status{flex:none}}
.fbo-super-environment{border:1px solid #d9e3ee;border-radius:10px;padding:12px 16px;margin:14px 0;background:#f7fafc}
.fbo-super-environment summary{cursor:pointer;font-weight:650}
.fbo-super-environment .grid2{margin-top:14px}

/* V20.449 · Facturación SIN: todas las pestañas visibles en móvil, sin cortes laterales. */
@media(max-width:640px){
 .page[data-module="fiscal-integration"] .finance-navigation .module-tabs,
 #page.mx66-workspace[data-module="fiscal-integration"] .finance-navigation .module-tabs.mx66-tabbar{
   display:flex!important;flex-wrap:wrap!important;overflow-x:visible!important;overflow-y:visible!important;
   width:100%!important;max-width:100%!important;gap:6px!important;box-sizing:border-box!important;
 }
 .page[data-module="fiscal-integration"] .finance-navigation .module-tabs .btn,
 #page.mx66-workspace[data-module="fiscal-integration"] .finance-navigation .module-tabs.mx66-tabbar .btn{
   flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
   white-space:normal!important;overflow-wrap:break-word!important;min-height:40px!important;
   text-align:center!important;padding:9px 10px!important;
 }
 .page[data-module="fiscal-integration"] .fiscal-homologation-tabs,
 #page[data-module="fiscal-integration"] .fiscal-homologation-tabs{
   display:flex!important;flex-wrap:wrap!important;overflow-x:visible!important;gap:6px!important;max-width:100%!important;
 }
 .page[data-module="fiscal-integration"] .fiscal-homologation-tabs .btn{
   white-space:normal!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
   overflow-wrap:break-word!important;text-align:center!important;
 }
}


/* Archivo: commercial-invoices.css */
/* Vista comercial de facturas: independiente de la mesa técnica de Facturación SIN. */
.ci-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:12px;margin:8px 0 16px}
.ci-summary-card{border:1px solid #d9e3ee;background:var(--card,#fff);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:5px}
.ci-summary-card small{font-size:12px;color:#5e7185}.ci-summary-card strong{font-size:24px;color:#0a2540}
.ci-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:10px}.ci-toolbar .field{min-width:230px;max-width:480px;flex:1}
.ci-toolbar .btn{margin-bottom:2px}.ci-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ci-actions .btn{white-space:nowrap;font-size:12px}.ci-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.ci-bottom small{color:#5e7185}#commercial-invoice-content .tablewrap{max-height:min(65vh,760px);overflow:auto}
#commercial-invoice-content td:first-child strong,#commercial-invoice-content td:nth-child(5) strong{display:block}
#commercial-invoice-content td:first-child small,#commercial-invoice-content td:nth-child(5) small{display:block;margin-top:3px;line-height:1.4;color:#5e7185;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.ci-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ci-summary-card{padding:12px}.ci-summary-card strong{font-size:20px}}
@media(max-width:390px){.ci-summary{grid-template-columns:1fr}}
.ci-backups{padding:0;overflow:hidden}
.ci-backups>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;padding:15px 20px;cursor:pointer;list-style:none}
.ci-backups>summary::-webkit-details-marker{display:none}
.ci-backups>summary::after{content:'Ver opciones';flex:none;color:var(--blue);font-size:12px;font-weight:600}
.ci-backups[open]>summary::after{content:'Ocultar opciones'}
.ci-backups>summary strong,.ci-backups>summary small{display:block}
.ci-backups>summary strong{font-size:15px;color:var(--ink)}
.ci-backups>summary small{margin-top:3px;color:var(--muted);font-size:12px;font-weight:400}
.ci-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--line)}
.ci-backup-action{min-width:0;padding:20px}
.ci-backup-action+ .ci-backup-action{border-left:1px solid var(--line)}
.ci-backup-action h4{margin:0 0 6px;font-size:15px;line-height:1.35}
.ci-backup-action p{margin:0 0 17px;color:var(--muted);font-size:12px;line-height:1.5}
.ci-backup-action>.btn{min-width:215px}
.ci-backup-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:480px}
.ci-backup-period .field{min-width:0;margin:0 0 12px}
.ci-backup-period :is(input,select){width:100%}
.ci-backup-action .ci-backup-feedback{min-height:18px;margin:10px 0 0;color:var(--ink)}
.ci-monthly-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.ci-monthly-files .btn{white-space:normal;text-align:left}
@media(max-width:760px){.ci-backup-grid{grid-template-columns:1fr}.ci-backup-action+ .ci-backup-action{border-left:0;border-top:1px solid var(--line)}.ci-backup-action{padding:16px}.ci-backup-action>.btn{width:100%}.ci-backups>summary{padding:15px 16px}.ci-backups>summary small{max-width:250px}.ci-backups>summary::after{font-size:11px}}


/* Archivo: production-workspace.css */
/* Producción: mesa de trabajo compacta, misma identidad y controles del ERP. */
.production-workspace{--production-material:var(--surface-subtle);--production-stage:var(--green);--production-paper:var(--surface);--production-rule:var(--line);font-size:14px;min-width:0}
.production-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px}
.production-heading h2{font-size:28px;font-weight:600;line-height:1.2;letter-spacing:-.035em;margin:4px 0 8px}
.production-heading p{color:var(--muted);margin:0;max-width:640px;line-height:1.5}
.production-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.production-workspace .btn{min-height:44px;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.production-navigation{display:flex;gap:24px;border-bottom:1px solid var(--production-rule);margin-bottom:20px}
.production-navigation a,.production-context a{display:flex;align-items:center;min-height:48px;padding:8px 0;color:var(--muted);font-size:14px;text-decoration:none;border-bottom:2px solid transparent;font-weight:500;white-space:nowrap}
.production-navigation a[aria-current]{color:var(--production-stage);border-bottom-color:var(--production-stage);font-weight:600}
.production-context{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 20px}
.production-context a{font-size:13px;min-height:40px;padding:6px 0}
.production-context a[aria-current]{color:var(--ink);border-bottom-color:var(--line-strong);font-weight:600}
.production-mobile-section,.production-mobile-view{display:none}
.production-content{min-width:0}
.production-content .panel{padding:24px}
.production-content h3{font-size:18px;line-height:1.3}
.production-content .grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
.production-content :is(input,select,textarea){max-width:100%;min-width:0}
.production-content fieldset{min-width:0;border:1px solid var(--production-rule);border-radius:8px;padding:16px;margin:16px 0}
.production-content legend{font-size:13px;font-weight:600;padding:0 8px}
.production-task{margin:0 0 16px;border:1px solid var(--production-rule);border-radius:8px;background:var(--production-paper)}
.production-task>summary{min-height:52px;cursor:pointer;padding:16px 20px;font-size:14px;font-weight:600;color:var(--ink)}
.production-task[open]>summary{border-bottom:1px solid var(--production-rule)}
.production-task>.panel{border:0;margin:0;background:transparent}
.production-guidance{padding:16px 20px;background:var(--production-material);border-left:2px solid var(--production-stage);color:var(--muted);line-height:1.5;margin:0 0 20px}
.production-pulse{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--production-paper);border-block:1px solid var(--production-rule);margin-bottom:24px}
.production-pulse>:is(div,a){display:flex;align-items:baseline;gap:12px;padding:20px;text-decoration:none;color:var(--ink)}
.production-pulse>:not(:last-child){border-right:1px solid var(--production-rule)}
.production-pulse strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}
.production-pulse span{font-size:13px;color:var(--muted)}
.production-start{position:relative;padding:28px!important}
.production-start h3{font-size:24px;margin:8px 0 12px;letter-spacing:-.025em}
.production-start>p{max-width:640px;color:var(--muted);font-size:14px;line-height:1.65;margin-bottom:20px}
.production-start ol{list-style:decimal-leading-zero;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:28px 0 0;padding:24px 0 0 24px;border-top:1px solid var(--production-rule)}
.production-start li{padding-left:4px;font-size:13px;color:var(--production-stage)}
.production-start li b{display:block;color:var(--ink);font-weight:600;margin-bottom:8px}
.production-start li span{color:var(--muted);display:block;line-height:1.55}
.production-order{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-top:1px solid var(--production-rule)}
.production-order:first-child{border-top:0;padding-top:4px}
.production-order h4{font-size:16px;font-weight:600;margin:4px 0}
.production-order a:not(.btn){color:var(--production-stage);font-size:12px;text-decoration:none}
.production-order p{color:var(--muted);font-size:12px;margin:0}
.production-progress{list-style:none;display:flex;gap:0;padding:0;margin:16px 0 0}
.production-progress li{position:relative;padding:12px 20px 0 0;border-top:2px solid var(--production-rule);color:var(--muted);font-size:11px}
.production-progress li:before{position:absolute;content:'';width:6px;height:6px;border-radius:50%;background:var(--line-strong);top:-4px;left:0}
.production-progress li.current{border-color:var(--production-stage);color:var(--production-stage);font-weight:600}
.production-progress li.current:before,.production-progress li.complete:before{background:var(--production-stage)}
.production-progress li.complete{border-color:var(--production-stage)}
.production-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.production-balances{margin:0 0 20px}.production-balances div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--production-rule);padding:10px 0}
.production-balances dt{color:var(--muted);font-size:13px}.production-balances dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}
.production-count strong{font-size:28px;margin-right:8px;font-variant-numeric:tabular-nums}
.production-content .production-empty{padding:16px 0;color:var(--muted)}
.company-module-access{max-width:none;padding:24px;margin-bottom:24px;border-top:3px solid var(--green)}
.company-module-access h3{font-size:20px;margin-bottom:8px}.company-module-access>p{max-width:720px;color:var(--muted)}
.company-module-access .module-access-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:32px;align-items:start;margin-top:24px}
.company-module-access .feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.company-module-access .option-card{border:1px solid var(--line);padding:12px;border-radius:6px;align-items:flex-start;min-height:48px}
.company-module-access .option-card:has(input:checked){background:var(--surface-subtle);border-color:var(--green)}
.company-module-access .credit-module-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle);font-size:13px}
.company-module-access .credit-module-status span{color:var(--muted)}
.company-module-access .credit-module-option{grid-column:1/-1;border-color:var(--green)}
.company-module-access .option-card small{display:block;font-size:11px;color:var(--muted)}
.company-module-access input:disabled+span{color:var(--muted)}
.company-module-access [data-base-modules]{padding:16px;background:var(--surface-subtle);border-radius:6px}
.company-module-access [data-base-modules] ul{padding-left:20px;margin:8px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px}
.company-module-access .module-access-save{display:flex;align-items:center;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.company-module-access button{min-height:44px}
@media(hover:hover) and (pointer:fine){.production-navigation a:hover,.production-context a:hover{color:var(--green)}.production-task>summary:hover{background:var(--surface-subtle)}}
@media(max-width:1150px){.production-navigation{gap:16px}.production-navigation a{font-size:13px}.production-heading{gap:16px}.production-heading-actions{max-width:260px}.production-pulse>:is(div,a){flex-direction:column;gap:8px}}
@media(max-width:900px){.production-navigation{gap:12px;flex-wrap:wrap}.production-navigation a{min-height:44px}.production-start ol{gap:20px}.company-module-access .module-access-grid{grid-template-columns:1fr;gap:24px}}
@media(max-width:760px){
 .production-heading{display:block;margin-bottom:20px}.production-heading h2{font-size:26px}.production-heading p{font-size:14px}.production-heading-actions{max-width:none;justify-content:flex-start;margin-top:16px}.production-heading-actions .btn{flex:1}
 .production-navigation,.production-context{display:none}.production-mobile-section,.production-mobile-view{display:flex;margin-bottom:16px}.production-mobile-section select,.production-mobile-view select{min-height:48px;font-size:16px;width:100%}
 .production-pulse{grid-template-columns:1fr;margin-bottom:20px}.production-pulse>:is(div,a){flex-direction:row;align-items:center;gap:16px;padding:16px}.production-pulse>:not(:last-child){border-right:0;border-bottom:1px solid var(--production-rule)}.production-pulse strong{font-size:24px;min-width:32px}
 .production-content .panel,.production-start{padding:20px!important}.production-start h3{font-size:22px}.production-start ol{grid-template-columns:1fr;gap:20px;margin-top:24px;padding-top:20px}.production-bottom-grid{grid-template-columns:1fr;gap:0}
 .production-content .grid3{grid-template-columns:1fr}.production-order{align-items:flex-start;flex-direction:column;gap:16px}.production-progress li{padding-right:12px;font-size:10px}.production-progress{flex-wrap:wrap;row-gap:12px}
 .production-task>summary{padding:16px;min-height:52px}.production-content fieldset{padding:12px}.production-content .field{min-width:0}.production-content .proposal-variant{grid-template-columns:1fr 1fr}.production-content .proposal-variant>:last-child{align-self:end}
 .production-content input,.production-content select,.production-content textarea{font-size:16px}.production-content .tablewrap{max-width:100%}.production-content .btn{white-space:normal}
 .company-module-access{padding:20px}.company-module-access .feature-grid{grid-template-columns:1fr}.company-module-access .module-access-save{align-items:stretch;flex-direction:column}.company-module-access [data-base-modules] ul{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.production-workspace button:active{transform:none}.production-workspace .btn{transition:none}}
.production-job-next,.production-job-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;margin:0 0 20px;background:var(--production-material);border-left:2px solid var(--production-stage);border-radius:0 8px 8px 0}
.production-job-next p{margin:4px 0 0;font-size:14px}.production-job-context{font-size:13px}
@media(max-width:760px){.production-job-next,.production-job-context{align-items:stretch;flex-direction:column;gap:12px;padding:16px}}
.order-return{display:flex;margin:8px 0 14px}.order-return .btn{min-height:42px}
@media(max-width:540px){.order-return .btn{width:100%;text-align:left}}
.order-fiscal-links{margin-top:14px}.order-fiscal-links h3{margin:0 0 6px}.order-fiscal-line{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:10px;align-items:center;border-top:1px solid var(--line);padding:9px 0;font-size:13px}.order-fiscal-line span{color:var(--muted)}
@media(max-width:620px){.order-fiscal-line{grid-template-columns:minmax(0,1fr) auto}.order-fiscal-line span{grid-column:1;grid-row:2}.order-fiscal-line .btn{grid-column:2;grid-row:1/3}}
.production-content .production-form [data-purchase-lines]>fieldset{margin:20px 0;padding:20px;border:1px solid var(--production-rule)}
.production-content .production-form [data-purchase-lines] .grid3{gap:16px 20px}
.production-content .production-form [data-create-supplier]{align-self:end;justify-self:start;margin-bottom:2px}
.production-content .production-form [data-purchase-lines] .field{min-width:0}
@media(max-width:720px){.production-content .production-form [data-purchase-lines] .grid3{grid-template-columns:1fr}}
.production-content .purchase-quick-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:-5px;margin-bottom:3px}

/* Pedido: historial y registro de cobros en una sola tarjeta. */
#order-payment-history>.panel{padding:18px 20px}
#order-payment-history .order-payment-summary{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--line);font-size:13px}
#order-payment-history .order-payment-summary strong{font-variant-numeric:tabular-nums;color:var(--ink)}
#order-payment-history .order-payment-summary span:last-child strong{font-size:15px}
#order-payment-history .order-payment-entry{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
#order-payment-history .order-payment-entry>summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink)}
#order-payment-history .order-payment-entry .production-form{padding-top:14px}
#order-payment-history .order-payment-entry .note{margin:10px 0 0}
#order-payment-history .order-payment-entry .form-actions{margin-top:10px}
#order-payment-history .row-note{display:block;font-size:11px;color:var(--muted)}
@media(max-width:720px){#order-payment-history>.panel{padding:14px}#order-payment-history .order-payment-summary{gap:6px 14px}#order-payment-history .order-payment-summary span{flex:1 1 40%}}

/* Ruta visible de la cotización al cobro; el trabajo interno queda accesible al final. */
.order-flow-guide{position:sticky;top:0;z-index:8;margin:12px 0 18px;padding:10px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 14px rgba(10,31,70,.08)}
.order-flow-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;color:var(--ink)}
.order-flow-guide-heading strong,.order-flow-guide-heading small{display:block}.order-flow-guide-heading small{font-size:11px;font-weight:400;color:var(--muted)}
.order-flow-guide-heading .btn{white-space:nowrap}
.order-flow-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0}
.order-flow-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--muted);font:inherit;font-size:12px;font-weight:650;text-align:center;line-height:1.3;white-space:normal}
.order-flow-stage small{display:block;font-size:10px;font-weight:500}
button.order-flow-stage{cursor:pointer;color:var(--ink)}button.order-flow-stage:hover,button.order-flow-stage:focus-visible{border-color:var(--green);text-decoration:underline}
.order-flow-stage[aria-current="step"]{border-color:var(--green);background:#eaf7f3;color:#075747}.order-flow-stage.is-done{color:#075747}
.order-flow-content-stage[hidden]{display:none!important}.order-flow-content-stage>h3{margin:0 0 14px;color:var(--ink)}.order-flow-content-stage{min-width:0}.order-flow-content-stage>.panel,.order-flow-content-stage>#order-payment-history{margin:12px 0}.order-flow-content-stage .form-actions{flex-wrap:wrap}
.order-internal-work{margin:18px 0;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);min-width:0}
.order-internal-work>summary{display:flex;align-items:center;min-height:48px;padding:12px 16px;font-size:13px;font-weight:650;color:var(--ink);cursor:pointer}
.order-internal-work[open]>summary{border-bottom:1px solid var(--line)}.order-internal-work>.panel,.order-internal-work>details.panel{margin:12px}
@media(max-width:600px){.order-flow-guide{margin:8px 0 14px;padding:8px}.order-flow-guide-heading{align-items:flex-start}.order-flow-guide-heading .btn{padding:7px;font-size:11px}.order-flow-stages{display:flex;overflow-x:auto;gap:6px;scrollbar-width:thin}.order-flow-stage{flex:0 0 132px;padding:7px 6px;font-size:12px;overflow-wrap:anywhere}.order-internal-work>.panel,.order-internal-work>details.panel{margin:8px}}
.order-receipt-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.order-receipt-actions details{position:relative}
.order-receipt-actions summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:6px;padding:9px 11px;font-size:12px;font-weight:650;white-space:nowrap}
.order-receipt-actions summary::-webkit-details-marker{display:none}
.order-receipt-actions details[open]{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.order-receipt-actions .btn{font-size:12px;white-space:normal}

/* Permisos de Producción: filas legibles por módulo, sin tablas anchas. */
.production-access-table{display:grid;gap:8px;margin-top:12px}.production-access-row{border:1px solid var(--border,#dbe3eb);border-radius:8px;padding:12px;background:#fafcff}.production-access-row>strong{display:block;margin-bottom:8px}.production-access-actions{display:flex;flex-wrap:wrap;gap:8px 18px}.production-access-actions .checkline{min-width:72px;margin:0;font-size:.85rem}.production-access-actions input:disabled{opacity:.35}

.receipt-format-dialog{width:min(420px,calc(100vw - 24px));padding:22px}.receipt-format-choices{display:grid;gap:8px;margin:15px 0}.receipt-format-choices .btn{justify-content:center;min-height:42px}
.order-receipt-actions .receipt-paper-choice select{max-width:160px;min-height:36px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:6px 8px;color:var(--ink);font:inherit;font-size:12px}


/* Archivo: production-site-admin.css */
.production-site-admin{max-width:1100px;margin:auto;min-width:0}.site-admin-head,.site-work-head,.site-item-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.site-admin-head{margin:12px 0 18px}.site-admin-head .note{overflow-wrap:anywhere}.site-admin-fields{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;margin-top:16px}.site-admin-options{display:flex;flex-wrap:wrap;gap:12px 26px;margin:10px 0 20px}.site-work-head{border-top:1px solid var(--line);padding-top:15px}.site-work-head h3{margin:0 0 4px}.site-work-head p{margin:0;color:var(--muted)}.site-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.production-site-item{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}.site-item-title{margin-bottom:10px}.site-item-fields{display:grid;gap:8px}.site-item-fields .field{margin:0}.site-item-fields textarea{min-height:70px}.site-image-upload{margin-top:10px}.site-item-preview{width:100%;max-height:160px;object-fit:cover;border-radius:6px;margin:8px 0}.production-site-admin .form-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:720px){.site-admin-fields,.site-items{grid-template-columns:1fr}.site-admin-head,.site-work-head{align-items:flex-start}.production-site-admin .panel{padding:16px}.site-admin-head .btn{flex:none}.site-work-head p{font-size:12px}}
@media(max-width:420px){.site-admin-head{flex-direction:column}.site-work-head{flex-wrap:wrap}.site-work-head .btn{width:100%}}
.site-guide{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;background:var(--surface-subtle,#eef5f7);border:1px solid var(--line);border-radius:12px;padding:20px;margin:18px 0}.site-guide strong{font-size:16px}.site-guide p{margin:5px 0 0;color:var(--muted);line-height:1.5}.site-preset-actions{display:flex;flex-wrap:wrap;gap:8px}.site-empty{border:1px dashed var(--line);padding:22px;border-radius:10px;color:var(--muted)}.site-empty p{margin:5px 0 0}.site-preview{margin:22px 0;border-top:1px solid var(--line);padding-top:20px}.site-preview-card{margin-top:10px;padding:24px;border-radius:12px;border:1px solid var(--line);background:linear-gradient(140deg,var(--surface-subtle,#eef5f7),#fff)}.site-preview-card small{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--green,#1662a6)}.site-preview-card h3{font-size:25px;margin:10px 0}.site-preview-card p{max-width:600px;line-height:1.6;color:var(--muted)}.site-preview-card div{font-size:12px;font-weight:600;margin-top:16px}
@media(max-width:850px){.site-guide{grid-template-columns:1fr}}
/* V20.212: editor y vista previa de la web del negocio. */
.production-site-admin .site-admin-head{border:1px solid #d9e5ed;border-radius:12px;background:#f5f9fb;padding:14px 16px}.production-site-admin .site-guide{background:linear-gradient(115deg,#ecf6fa,#f5f9fb);border-color:#d5e8f0}.production-site-admin .site-preset-actions .btn{border-radius:9px}.production-site-admin .site-items{gap:14px}.production-site-admin .production-site-item{border-radius:14px;background:#fff;box-shadow:0 5px 17px rgba(20,60,90,.035);padding:16px}.production-site-admin .site-item-title b{font-size:13px}.production-site-admin .site-item-preview{max-height:200px;border-radius:10px}.site-preview-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.site-preview-head p{margin:3px 0}.site-preview-hint{font-size:10px;font-weight:850;letter-spacing:.1em;color:#25698d;background:#e9f4f9;padding:8px 10px;border-radius:8px;white-space:nowrap}.production-site-admin .site-preview-card{padding:0;background:#f6f9fb;border:1px solid #d9e8f0;overflow:hidden;border-radius:18px}.site-preview-topbar{display:flex;align-items:center;gap:9px;padding:15px 20px;background:#fff;border-bottom:1px solid #e6edf3}.site-preview-topbar .site-preview-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#13547d;color:#fff}.site-preview-topbar strong{font-size:13px;color:#193b57}.site-preview-topbar>span:last-child{margin-left:auto;font-size:10px;font-weight:850;letter-spacing:.09em;color:#59839a}.site-preview-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:center;padding:26px}.site-preview-copy small{font-size:10px;letter-spacing:.11em;font-weight:850;color:#13739c}.production-site-admin .site-preview-copy h3{font-size:clamp(22px,3vw,34px);letter-spacing:-.045em;line-height:1.1;max-width:480px;margin:10px 0;color:#123b57}.production-site-admin .site-preview-copy p{font-size:12px;line-height:1.6;color:#516b80}.site-preview-cta{display:inline-block;background:#127bb4;border-radius:8px;color:white;padding:10px 14px;font-size:11px;font-weight:800;margin-top:5px}.site-preview-count{margin-top:13px!important;color:#708498;font-size:11px!important}.site-preview-products{display:flex;gap:6px;justify-content:center;align-items:center;min-width:0}.site-preview-product{flex:1;min-width:0;min-height:145px;padding:12px 7px;border:3px solid #fff;background:linear-gradient(145deg,#dcf0f4,#aacfdc);border-radius:13px;box-shadow:0 9px 16px rgba(20,56,82,.12);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;transform:rotate(-5deg);text-align:center}.site-preview-product:nth-child(2){transform:rotate(4deg) translateY(-10px)}.site-preview-product:nth-child(3){transform:rotate(6deg)}.site-preview-product>span{font-size:40px;color:#367d99}.site-preview-product strong{font-size:10px;color:#2c4c64;overflow-wrap:anywhere}
@media(max-width:740px){.site-preview-head{align-items:flex-start;flex-direction:column}.site-preview-layout{grid-template-columns:1fr;padding:20px}.site-preview-products{max-width:100%}.site-preview-product{min-height:100px}.site-preview-product>span{font-size:27px}}

/* V20.217 · cinco diseños seleccionables con miniaturas visibles, sin formularios adicionales. */
.production-site-admin .site-guide{display:block;margin:11px 0;padding:11px 15px;background:#f7fafb}.production-site-admin .site-guide>summary{cursor:pointer;font-size:12px}.production-site-admin .site-guide .site-preset-actions{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.site-design-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;border:0;padding:6px 0 17px;margin:0 0 10px}.site-design-picker legend{font-size:12px;font-weight:700;margin-bottom:4px}.site-design-option{position:relative;display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid #d8e2e8;border-radius:12px;cursor:pointer;background:#fff;min-width:0}.site-design-option:has(input:checked){border:2px solid #0e87cd;background:#eff9ff;padding:7px}.site-design-option input{position:absolute;top:10px;right:10px;width:18px;height:18px;accent-color:#1386ca}.site-design-option strong{font-size:12px}.site-design-option small{font-size:11px;color:var(--muted,#597489);line-height:1.3}.site-design-thumbnail{height:61px;display:flex;align-items:end;gap:5px;padding:10px;border-radius:7px;background:linear-gradient(135deg,#102e52,#16739c);overflow:hidden}.site-design-thumbnail i{flex:1;height:80%;background:rgba(255,255,255,.84);border-radius:4px}.site-design-thumbnail i:nth-child(2){height:60%}.site-design-thumbnail i:nth-child(3){height:45%}.site-design-elegante .site-design-thumbnail{background:#283a30}.site-design-elegante .site-design-thumbnail i{background:#e5c79f;border-radius:1px}.site-design-artesanal .site-design-thumbnail{background:#a45c38}.site-design-artesanal .site-design-thumbnail i{background:#f9e3c5;border-radius:12px 3px 12px 3px}.site-design-catalogo .site-design-thumbnail{background:#c9e4f3}.site-design-catalogo .site-design-thumbnail i{background:#27769a;border-radius:2px}.site-design-minimalista .site-design-thumbnail{background:#f6f7f8;border:1px solid #d7e0e5}.site-design-minimalista .site-design-thumbnail i{background:#4f626a;border-radius:0}.site-preview-theme-elegante{background:#2e4036!important;color:#faf1df!important}.site-preview-theme-elegante h3,.site-preview-theme-elegante p{color:#faf1df!important;font-family:Georgia,serif}.site-preview-theme-artesanal{background:#f9ebd5!important}.site-preview-theme-artesanal .site-preview-topbar{color:#8f5131}.site-preview-theme-catalogo{background:#e7f3fc!important}.site-preview-theme-catalogo .site-preview-products{grid-template-columns:repeat(3,minmax(0,1fr))}.site-preview-theme-minimalista{background:white!important;box-shadow:none!important;border:1px solid #d8e2e6!important}.site-preview-theme-minimalista .site-preview-product{border-radius:0}
@media(max-width:920px){.site-design-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:580px){.site-design-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

.site-slug-card{border:1px solid var(--line,#d9e5ed);border-radius:10px;background:var(--surface,#fff);padding:14px 16px;margin:0 0 14px}
.site-slug-card>div>p{margin:3px 0 12px;color:var(--muted,#667d8d);font-size:12px}
.site-slug-form{display:flex;flex-wrap:wrap;gap:9px;align-items:end}
.site-slug-form .field{flex:1;min-width:min(100%,230px);margin:0}
.site-slug-form input{width:100%;min-height:38px}
.site-slug-form .btn{min-height:38px}
.site-slug-card [data-site-slug-status]{margin:9px 0 0;overflow-wrap:anywhere}
@media(max-width:560px){.site-slug-form .field{flex-basis:100%}.site-slug-form .btn{flex:1}}


/* Archivo: cost-sheet.css */
/* Hoja de trabajo MIONEXO: conserva tinta, acento y controles del ERP. */
.cost-sheet-dialog{width:min(860px,calc(100vw - 24px));max-height:92dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff);color:var(--text);box-shadow:0 16px 56px #142c4530}
.cost-sheet-dialog::backdrop{background:#142c4570}
.cost-sheet-dialog form{display:block}.cost-sheet-dialog fieldset{padding:0;margin:20px 0;border:0;min-width:0}.cost-sheet-dialog fieldset[hidden]{display:none}.cost-sheet-dialog legend{font-size:18px;font-weight:600;margin-bottom:16px}
.cost-dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.cost-dialog-heading h3{font-size:22px;margin:4px 0 0;letter-spacing:-.02em}.cost-dialog-heading .btn{flex-shrink:0}
.cost-steps{display:flex;list-style:none;padding:0;gap:16px;border-bottom:1px solid var(--line);margin:20px 0;color:var(--muted);font-size:13px}.cost-steps li{padding:8px 0}.cost-steps [aria-current=step]{font-weight:600;color:var(--text);border-bottom:2px solid var(--accent,#19665b)}
.cost-sheet-dialog .field{margin-bottom:12px}.cost-sheet-dialog input,.cost-sheet-dialog select{min-width:0;max-width:100%}.cost-sheet-dialog .btn,.cost-sheet-dialog summary{min-height:44px}.cost-sheet-dialog summary{display:flex;align-items:center;cursor:pointer;font-weight:500}.cost-sheet-dialog details{margin:12px 0}.cost-sheet-dialog .form-actions{flex-wrap:wrap}
.cost-row{padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.cost-row:first-child{padding-top:0}.cost-row-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.cost-row-inputs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.cost-yield{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cost-yield[hidden]{display:none}.cost-row [data-material-results]{display:grid;gap:4px;margin-bottom:8px}.cost-row [data-material-results] button{text-align:left;justify-content:flex-start;white-space:normal}
.cost-total-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:var(--soft,#f4f8f7);padding:16px;border-radius:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.cost-total-strip strong{display:block;font-size:19px;color:var(--text);margin-top:4px}.cost-dialog-footer{margin-top:16px;justify-content:flex-end}.cost-price-summary{font-variant-numeric:tabular-nums}.cost-price-summary>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0}.cost-price-summary dt{color:var(--muted)}.cost-price-summary dd{font-weight:600;margin:0}.cost-shared-row{display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:end;margin-bottom:12px}.cost-shared-row label{min-width:0}.cost-shared-row input{width:100%}
#quote-cost-add{margin:8px 0 16px}.simple-work-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.simple-work-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.simple-work-card h4{margin:4px 0}.simple-work-card p{margin:4px 0;color:var(--muted)}.simple-work-card .form-actions{flex-wrap:wrap}.simple-work-stats{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0}.simple-work-stats strong{font-size:24px;display:block;font-variant-numeric:tabular-nums}.simple-work-stats span{font-size:13px;color:var(--muted)}.simple-actual-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.simple-actual-row input,.simple-actual-row select{width:100%}.simple-actual-row label{min-width:0}.order-checkout-line{display:grid;grid-template-columns:2fr 1fr;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.order-checkout-line p{font-size:12px;color:var(--muted);margin:4px 0}.order-checkout-line input{width:100%}.simple-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.simple-filter label{min-width:0}
@media(max-width:600px){.cost-sheet-dialog{padding:16px}.cost-sheet-dialog input,.cost-sheet-dialog select{font-size:16px}.cost-steps{gap:12px;font-size:12px}.cost-row-inputs{grid-template-columns:1fr 1fr}.cost-row-inputs>.field:last-child{grid-column:1/-1}.cost-total-strip{gap:8px;padding:12px}.cost-total-strip strong{font-size:16px}.cost-total-strip span{font-size:11px}.cost-shared-row{grid-template-columns:1fr 1fr}.cost-shared-row>label:first-child{grid-column:1/-1}.simple-work-card{align-items:start;flex-direction:column}.simple-actual-row{grid-template-columns:1fr 1fr}.simple-actual-row>label:first-child{grid-column:1/-1}.order-checkout-line{grid-template-columns:1fr}.cost-dialog-heading h3{font-size:20px}}

/* MIONEXO 0.20.90: libreta de costos y cotizaciones de dos tipos */
.cost-sheet-workspace{width:min(1140px,calc(100vw - 32px));height:min(94dvh,900px);max-height:94dvh;padding:0;overflow:auto}
.cost-sheet-workspace form{padding:22px clamp(14px,3vw,32px);min-height:100%}
.cost-sheet-workspace .cost-dialog-heading{position:sticky;top:-22px;z-index:3;padding:12px 0;background:var(--panel,#fff);border-bottom:1px solid var(--line)}
.cost-sheet-workspace .cost-steps{justify-content:space-between;gap:10px;font-size:14px}
.cost-sheet-workspace .cost-steps li{flex:1;text-align:center}
.cost-sheet-workspace .cost-row{border:1px solid var(--line);border-radius:12px;padding:14px;margin:10px 0;background:var(--panel,#fff)}
.cost-sheet-workspace .cost-row-heading{display:flex;flex-wrap:wrap;gap:10px}
.cost-sheet-workspace .cost-row-heading small{margin-left:auto;color:var(--accent,#19665b);font-weight:700}
.cost-sheet-workspace .cost-total-strip{position:static;border:1px solid var(--line)}
.cost-sheet-workspace .cost-dialog-footer{position:sticky;bottom:-22px;z-index:3;padding:12px 0;background:var(--panel,#fff);border-top:1px solid var(--line)}
.cost-sheet-workspace [data-cost-step="2"]{margin:10px 0}
.cost-sheet-workspace [data-cost-step="2"] legend{margin-bottom:8px}
.cost-sheet-workspace [data-cost-step="2"] h4{margin:16px 0 8px}
.cost-review{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:8px 0 12px}
.cost-review-heading,.cost-review-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;background:var(--soft,#f4f8f7)}
.cost-review-heading .btn,.cost-review-line .btn{min-height:32px;padding:4px 9px}
.cost-review-list{max-height:235px;overflow:auto}
.cost-review-line{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px auto;gap:10px;align-items:center;padding:6px 12px;border-top:1px solid var(--line);font-size:13px;font-variant-numeric:tabular-nums}
.cost-review-line>div{min-width:0}.cost-review-line strong{overflow-wrap:anywhere}.cost-review-line small{display:block;color:var(--muted);font-size:11px;line-height:1.3}
.cost-review-line>span,.cost-review-line>strong{text-align:right}.cost-review-total{border-top:1px solid var(--line);font-size:13px}
.cost-notebook-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:15px}
.cost-notebook-card{border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px}
.cost-notebook-card small{color:var(--muted)}
.quote-kind-picker{border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff);padding:18px;margin:14px 0;display:flex;justify-content:space-between;align-items:center;gap:14px}
.quote-kind-picker p{margin:5px 0 0}.quote-kind-actions{display:flex;flex-wrap:wrap;gap:9px}
.quote-free-editor{border:1px solid #b9d8d0;border-radius:12px;background:#f5fbf9;padding:16px;margin:0 0 16px}.quote-free-editor[hidden]{display:none!important}.quote-free-editor h4{margin:0 0 6px}.quote-free-editor>button{margin-top:10px}.quote-free-selected{border-color:#86bba9;background:#f7fcfa}.page[data-module="quotations"] .finance-navigation .module-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.page[data-module="quotations"] .finance-navigation .module-tabs .btn{white-space:normal}@media(max-width:600px){.page[data-module="quotations"] .finance-navigation .module-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.page[data-module="quotations"] .finance-navigation .module-tabs .btn:first-child{grid-column:1/-1}}
.quote-mode-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--panel,#fff);color:var(--text);box-shadow:0 20px 60px #122b4850}.quote-mode-dialog::backdrop{background:#102c4c80}.quote-mode-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.quote-mode-head h3{margin:0}.quote-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.quote-mode-option{display:block;text-align:left;min-height:115px;border:1px solid #bacdde;border-radius:12px;padding:16px;background:#f9fbfe;color:var(--text);cursor:pointer}.quote-mode-option:hover,.quote-mode-option:focus-visible{border-color:#165da4;background:#edf6ff}.quote-mode-option strong,.quote-mode-option span{display:block}.quote-mode-option span{margin-top:8px;font-size:13px;line-height:1.4;color:var(--muted)}
.quote-quick-workspace{max-width:960px}.quote-quick-workspace .quote-free-editor{background:#fff;border-color:var(--line)}.quote-quick-workspace .quote-free-editor .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-quick-workspace #quote-lines{display:block}.quote-quick-table{width:100%;border-collapse:collapse;min-width:580px}.quote-quick-table th{text-align:left;background:#f2f6fa;font-size:12px}.quote-quick-table th,.quote-quick-table td{padding:9px;border-bottom:1px solid var(--line)}.quote-quick-table input{width:100%;min-width:0;box-sizing:border-box}.quote-quick-table th:nth-child(2),.quote-quick-table td:nth-child(2){width:100px}.quote-quick-table th:nth-child(3),.quote-quick-table td:nth-child(3){width:150px}.quote-quick-table th:nth-child(4),.quote-quick-table td:nth-child(4){width:125px;text-align:right}.quote-quick-total{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.quote-quick-total strong{margin-left:12px;font-size:19px}
.quote-quick-workspace .quote-quick-stage[hidden],.quote-quick-workspace .form-actions[hidden],.quote-quick-workspace .quote-quick-stage [hidden]{display:none!important}.quote-quick-stage[data-quick-stage="terms"]{margin:12px auto;max-width:900px}.quote-quick-stage[data-quick-stage="terms"] h4{margin:0 0 10px;font-size:20px}.quote-quick-stage[data-quick-stage="terms"]>.btn{margin:12px 0}.quote-quick-stage[data-quick-stage="terms"]>.form-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.quote-quick-stage[data-full-stage][hidden]{display:none!important}.quote-quick-stage[data-full-stage="terms"]{margin:12px auto;max-width:900px}.quote-quick-stage[data-full-stage="terms"]>.form-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.quote-workspace:has([data-full-stage]) .quote-desktop-steps{display:flex;flex-wrap:wrap}.quote-workspace:has([data-full-stage]) .quote-desktop-steps button[aria-current="step"]{background:#e7f2ef;color:#0b574e;font-weight:700}
@media(max-width:650px){.quote-mode-dialog{padding:16px}.quote-mode-options{grid-template-columns:1fr}.quote-mode-option{min-height:0}.quote-quick-workspace .quote-free-editor .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-quick-workspace .tablewrap{overflow-x:auto}.quote-quick-workspace .quote-free-editor input{font-size:16px}}
.cost-resale-dialog{width:min(760px,calc(100vw - 24px))}.cost-resale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cost-resale-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--soft,#f4f8f7);padding:15px;border-radius:10px;margin:10px 0}
.cost-resale-result div{display:flex;flex-direction:column;gap:4px}.cost-resale-result strong{font-size:20px}.cost-resale-result .note{grid-column:1/-1}
.quote-whatsapp-dialog textarea{min-height:220px;line-height:1.5;width:100%}
.quote-price-anchor{display:grid;gap:4px;padding:14px 16px;margin:16px 0;background:var(--soft,#f4f8f7);border-radius:10px}.quote-price-anchor strong{font-size:25px;font-variant-numeric:tabular-nums}.quote-price-anchor small{color:var(--muted)}
.quote-negotiate-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quote-price-result{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px;background:var(--soft,#f4f8f7);border-radius:10px;font-size:13px}.quote-price-result strong{display:block;font-size:20px;margin-top:4px;font-variant-numeric:tabular-nums}.quote-price-result small{grid-column:1/-1;color:var(--muted)}
.order-checkout-workspace{width:min(760px,calc(100vw - 24px));box-sizing:border-box}.order-step-nav{display:none}.order-checkout-workspace section[data-order-section]{min-width:0}.order-checkout-workspace .cost-total-strip{margin:12px 0 20px}
.quote-mobile-steps{display:none}.quote-mobile-stage{min-width:0}
@media(max-width:720px){.quote-kind-picker{flex-direction:column;align-items:stretch}.quote-kind-actions .btn{flex:1;white-space:normal}.cost-sheet-workspace{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.cost-sheet-workspace form{padding:12px}.cost-sheet-workspace .cost-dialog-heading{top:-12px}.cost-sheet-workspace .cost-dialog-footer{bottom:-12px}.cost-sheet-workspace .cost-total-strip{bottom:60px}.cost-sheet-workspace .cost-row-inputs{grid-template-columns:1fr 1fr}.cost-sheet-workspace .cost-yield{grid-template-columns:1fr 1fr}.cost-resale-grid{grid-template-columns:1fr}.cost-resale-result{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.cost-review-line{grid-template-columns:minmax(0,1fr) auto auto;gap:5px 8px}.cost-review-line>div{grid-column:1/-1}.cost-review-line>span{text-align:left}.cost-review-line>strong{text-align:right}.cost-review-line .btn{justify-self:end}}
@media(max-width:380px){.cost-sheet-workspace .cost-row-inputs,.cost-sheet-workspace .cost-yield{grid-template-columns:1fr}.cost-sheet-workspace .cost-total-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-sheet-workspace .cost-total-strip span:last-child{grid-column:1/-1}.cost-resale-result{grid-template-columns:1fr}}
@media(max-width:720px){
 .cost-sheet-workspace,.cost-resale-dialog{position:fixed;inset:0;box-sizing:border-box;max-width:none;width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow-y:auto;overflow-x:hidden}
 .cost-resale-dialog{padding:18px 14px 36px}
 .cost-sheet-workspace .cost-total-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
}
@media(max-width:380px){.cost-sheet-workspace .cost-total-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
 .quote-workspace .quote-mobile-steps{display:flex;gap:6px;overflow-x:auto;position:sticky;top:0;z-index:3;background:var(--panel,#fff);padding:10px 0;margin-bottom:12px}.quote-mobile-steps .btn{flex:1;min-width:max-content;font-size:12px;white-space:nowrap}.quote-mobile-steps [aria-current=step]{border-color:var(--accent,#19665b);color:var(--accent,#19665b);font-weight:700}
 .quote-workspace [data-quote-stage]{display:none}.quote-workspace #quote-form[data-quote-active=customer] [data-quote-stage=customer],.quote-workspace #quote-form[data-quote-active=products] [data-quote-stage=products],.quote-workspace #quote-form[data-quote-active=terms] [data-quote-stage=terms]{display:block}
 .quote-workspace .quote-kind-picker{min-width:0}.quote-workspace .quote-kind-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quote-workspace .quote-kind-actions .btn{min-width:0;white-space:normal}.quote-workspace .quote-search-row input{min-width:0}.quote-workspace .quote-form-grid{grid-template-columns:1fr}.quote-workspace .quote-edit-fields{grid-template-columns:1fr 1fr}
 .order-checkout-workspace,.quote-negotiate-dialog{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100dvh;max-width:none;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto;overflow-x:hidden;padding:16px 16px 96px}
 .order-checkout-workspace form{min-width:0}.order-checkout-workspace .cost-dialog-heading{position:sticky;top:-16px;z-index:3;background:var(--panel,#fff);padding:10px 0;border-bottom:1px solid var(--line)}
 .order-step-nav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;position:sticky;top:65px;z-index:3;background:var(--panel,#fff);padding:10px 0}.order-step-nav .btn{flex:1;white-space:nowrap;min-width:max-content;font-size:12px}.order-step-nav [aria-current=step]{color:var(--accent,#19665b);border-color:var(--accent,#19665b);font-weight:700}
 .order-checkout-workspace section[data-order-section]{display:none}.order-checkout-workspace[data-order-active=items] section[data-order-section=items],.order-checkout-workspace[data-order-active=payment] section[data-order-section=payment],.order-checkout-workspace[data-order-active=invoice] section[data-order-section=invoice]{display:block}
 .order-checkout-workspace .cost-total-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px;margin:8px 0}.order-checkout-workspace .cost-total-strip strong{font-size:15px;overflow-wrap:anywhere}.order-checkout-workspace .cost-total-strip span{font-size:11px}
 .order-checkout-workspace .form-actions{position:fixed;bottom:0;left:0;right:0;z-index:4;background:var(--panel,#fff);padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:8px}.order-checkout-workspace .form-actions .btn{flex:1;white-space:normal}
 .quote-negotiate-fields{grid-template-columns:1fr}.quote-price-result{grid-template-columns:1fr 1fr}
}
/* Opciones comerciales de la cotización de Producción. */
.proposal-price-options,.proposal-public-prices{border:1px solid #cbd9e6;border-radius:10px;background:#f7fafc;padding:14px;margin:12px 0}
.proposal-price-options h4{margin:0 0 6px}.proposal-price-options .quote-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.proposal-public-prices{display:flex;flex-wrap:wrap;gap:10px 25px}.proposal-public-prices p{margin:0}.proposal-public-prices strong{display:block;font-size:1.08rem}
@media(max-width:720px){.proposal-price-options .quote-form-grid{grid-template-columns:1fr}.proposal-public-prices{display:grid;grid-template-columns:1fr 1fr}.proposal-price-options{padding:10px}}
/* Cotización de taller: lectura clara y acciones contenidas. */
.quote-workspace:has(.quote-detail-head){max-width:1040px;padding:24px}.quote-workspace .quote-detail-head{background:#f2f7fa;border-radius:12px;padding:18px 20px;margin:12px 0 18px;align-items:center}.quote-workspace .quote-detail-head h3{font-size:23px;margin:5px 0}.quote-workspace .quote-detail-head>strong{font-size:26px;color:#123b58;font-variant-numeric:tabular-nums}.quote-workspace .quote-table{width:100%;table-layout:fixed}.quote-workspace .quote-table td,.quote-workspace .quote-table th{vertical-align:top;overflow-wrap:anywhere}.quote-workspace .quote-table td:first-child{width:48%}.quote-workspace .quote-detail-terms{background:#fafcfd;border:1px solid #e0e8ee;border-radius:10px;padding:14px;margin:16px 0}.quote-workspace:has(.quote-detail-head)>.form-actions{display:flex;position:static;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid #dce5ed;padding-top:16px}.quote-workspace:has(.quote-detail-head)>.form-actions .btn{white-space:normal;max-width:100%}.quote-workspace .proposal-public-prices{background:#edf5fa;border-color:#c9deec;margin-bottom:14px}.quote-workspace #quote-form .proposal-terms,.quote-workspace #quote-form .quote-conditions,.quote-workspace #quote-form .proposal-price-options{margin-top:16px}.quote-workspace #quote-form .quote-mobile-stage{min-width:0}@media(max-width:720px){.quote-workspace:has(.quote-detail-head){padding:14px}.quote-workspace .quote-detail-head{padding:13px}.quote-workspace .quote-detail-head>strong{font-size:22px}.quote-workspace:has(.quote-detail-head)>.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-workspace:has(.quote-detail-head)>.form-actions .btn{width:100%}.quote-workspace .quote-table{table-layout:auto}.quote-workspace .quote-table td:first-child{width:auto}}
/* Taller: pestañas y registro real legibles en pantallas estrechas. */
@media(max-width:720px){
 .cost-sheet-workspace .module-navigation,.cost-sheet-workspace .cost-sheet-tabs,.quote-workspace .module-navigation,.production-workspace .module-navigation{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:6px;max-width:100%;padding-bottom:8px}
 .cost-sheet-workspace .module-navigation>*,.cost-sheet-workspace .cost-sheet-tabs>*,.quote-workspace .module-navigation>*{flex:0 0 auto;white-space:nowrap;min-height:42px}
 .simple-finish-dialog{box-sizing:border-box;width:100%;height:100dvh;max-height:100dvh;max-width:none;margin:0;border-radius:0;padding:14px 14px 84px;overflow-x:hidden}
 .simple-finish-dialog input,.simple-finish-dialog select,.simple-finish-dialog textarea{min-width:0;max-width:100%;font-size:16px}
}
.simple-finish-dialog{max-width:min(760px,96vw)}
.simple-finish-dialog .field{min-width:0}.simple-finish-dialog .cost-dialog-heading{margin-bottom:10px}
.simple-finish-dialog .simple-expense-row{padding:8px 0;border-bottom:1px solid var(--line)}
@media(max-width:720px){
 .simple-work-nav,.cost-sheet-workspace .simple-work-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;gap:6px;padding-bottom:8px}
 .simple-work-nav>.btn{flex:0 0 auto;white-space:nowrap;min-height:42px}
 .simple-finish-dialog .form-actions{position:sticky;bottom:-84px;background:var(--panel,#fff);padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:2;display:flex;gap:8px}
 .simple-finish-dialog .form-actions .btn{flex:1;white-space:normal}
}
@media(max-width:720px){.simple-finish-dialog{max-width:none;width:100vw;height:100dvh;max-height:100dvh}}
.proposal-writing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin:3px 0 7px}.proposal-writing .field{margin:0}.proposal-writing .btn{min-height:40px}.proposal-advance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}.proposal-advance .field{margin:0}.proposal-advance [hidden]{display:none!important}
@media(max-width:720px){.proposal-advance{grid-template-columns:1fr 1fr}.proposal-advance>.field:first-child{grid-column:1/-1}}
@media(max-width:420px){.proposal-writing{grid-template-columns:1fr}.proposal-writing .btn{width:100%}.proposal-advance{grid-template-columns:1fr}.proposal-advance>.field:first-child{grid-column:auto}}
.production-site-admin .site-items{gap:14px}
.simple-finish-dialog .production-material-card{border:1px solid var(--line);border-left:3px solid var(--accent,#19665b);border-radius:8px;padding:12px;margin:8px 0;gap:8px;background:var(--soft,#f4f8f7)}
.simple-finish-dialog .production-material-tag{grid-column:1/-1;font-size:11px;font-weight:700;color:var(--accent,#19665b)}
.simple-finish-dialog .production-expense-card{border:1px solid var(--line);border-radius:9px;padding:12px;margin:10px 0;background:var(--panel,#fff)}
.simple-finish-dialog .production-expense-card[data-category=material]{border-left:3px solid var(--accent,#19665b)}
.simple-finish-dialog .production-expense-type{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px;font-size:12px}
.simple-finish-dialog .production-expense-type small{color:var(--muted)}
.quotation-materials-table th,.quotation-materials-table td{padding:10px 14px}
.proposal-fiscal-base{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0;display:grid;gap:8px}
.proposal-fiscal-base .field{margin:0}.proposal-fiscal-base [data-fiscal-base-results]{display:flex;gap:6px;flex-wrap:wrap}.proposal-fiscal-base [data-fiscal-base-clear]{justify-self:start}
.proposal-fiscal-base [data-fiscal-base-picked]{padding:10px 12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px}
.proposal-fiscal-base [data-fiscal-base-picked].is-selected{border-style:solid;border-color:var(--brand-primary,#1767ad);border-left-width:4px;background:var(--brand-surface,#eef5fa);color:var(--ink)}
.proposal-fiscal-base [data-fiscal-base-picked] strong{font-size:13px}.proposal-fiscal-base [data-fiscal-base-picked] span{font-size:12px}
.proposal-fiscal-option[aria-selected="true"]{background:var(--brand-surface,#eef5fa);box-shadow:inset 3px 0 var(--brand-primary,#1767ad)}
.proposal-fiscal-combobox{position:relative;min-width:0}.proposal-fiscal-base [data-fiscal-base-results]{position:absolute;z-index:30;top:100%;left:0;right:0;display:block;max-height:260px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px rgba(15,39,68,.17);padding:5px}.proposal-fiscal-base [data-fiscal-base-results][hidden]{display:none}.proposal-fiscal-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:none;border:0;border-radius:6px;padding:10px 12px;color:var(--ink);cursor:pointer}.proposal-fiscal-option:hover,.proposal-fiscal-option:focus-visible{background:#eaf5ff;outline:2px solid #1683d8;outline-offset:-2px}.proposal-fiscal-option small{color:var(--muted);white-space:nowrap}

[data-reference-list] table{table-layout:fixed;width:100%}[data-reference-list] th,[data-reference-list] td{padding:12px 16px;vertical-align:middle}[data-reference-list] th:first-child,[data-reference-list] td:first-child{width:29%}[data-reference-list] td:first-child strong{display:block;line-height:1.4;overflow-wrap:anywhere}[data-reference-list] td:first-child small{display:block;margin-top:5px;color:var(--muted)}[data-reference-list] td:last-child{width:115px}@media(max-width:720px){[data-reference-list] table{table-layout:auto}[data-reference-list] th,[data-reference-list] td{padding:9px 10px}}

/* V20.203: Presupuestos por encargo para emprendedores. No altera cálculos ni tablas. */
.cost-sheet-simple .cost-steps{display:none}
.cost-sheet-simple fieldset[data-cost-step]{display:block;opacity:1;pointer-events:auto;border:0;margin:16px 0 24px;padding:0}
.cost-sheet-order fieldset[data-cost-step="2"]{display:none!important}
.cost-sheet-simple fieldset[data-cost-step]+fieldset{border-top:1px solid var(--line);padding-top:20px}
.cost-sheet-simple fieldset[data-cost-step] legend{font-size:18px;font-weight:750;margin:0 0 14px}
.cost-sheet-simple .cost-review-list,.cost-sheet-simple .cost-review-heading,.cost-sheet-simple .cost-review-line,.cost-sheet-simple .cost-dozen{display:none}
.cost-sheet-simple .cost-total-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
.cost-sheet-simple .cost-row-advanced{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--soft,#f4f8f7)}
.cost-sheet-simple .cost-row-advanced:not([open]){padding:8px 12px}
.cost-sheet-simple .cost-review{margin:10px 0;background:var(--soft,#f4f8f7)}
.cost-sheet-simple .cost-review-total{font-size:15px;padding:14px}
.cost-sheet-simple .cost-dialog-footer{position:sticky;bottom:-22px}
.cost-sheet-simple #cost-rows>.cost-row{margin:8px 0 12px}
.cost-sheet-simple [data-material-results]{display:flex;gap:7px;flex-wrap:wrap;margin:4px 0 10px}
.cost-sheet-simple [data-material-results]>.btn{white-space:normal;text-align:left}
.quote-material-select [data-editor]{display:none}
.quote-material-picker table{width:100%;min-width:0}
.quote-material-picker th,.quote-material-picker td{padding:7px 9px;vertical-align:middle}
.quote-material-picker td:first-child{min-width:0;overflow-wrap:anywhere}
.quote-material-picker td small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.quote-material-picker td:last-child{text-align:right;width:1%}
.quote-material-picker .btn{min-height:36px}
.cost-sheet-simple .cost-price-summary>div:nth-child(2){display:none}
.cost-sheet-simple .cost-price-summary>div:nth-child(3){font-size:17px;font-weight:700}
.cost-quantity-status{display:block;margin:4px 0;color:var(--accent,#19665b)}
.production-extra{border:1px solid var(--line);border-radius:9px;padding:10px 13px;margin:8px 0}
.production-extra>summary{cursor:pointer;font-size:13px;color:var(--muted);font-weight:600}
.production-extra-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.production-extra-links>a{padding:8px 11px;border:1px solid var(--line);border-radius:8px;font-size:13px;text-decoration:none}
@media(max-width:720px){.cost-sheet-simple .cost-total-strip{grid-template-columns:1fr 1fr}.cost-sheet-simple .cost-row-advanced{padding:8px}.cost-sheet-simple fieldset[data-cost-step] legend{font-size:17px}.production-extra-links{flex-direction:column}}

.cost-sheet-simple .cost-setup-advanced{border:1px solid var(--line);border-radius:9px;padding:10px 13px;margin:15px 0;background:var(--soft,#f3f7fa)}
.cost-sheet-simple .cost-setup-advanced>summary{cursor:pointer;font-size:14px;font-weight:600}
.cost-sheet-simple .cost-setup-advanced[open]>.field:first-of-type{margin-top:12px}
.cost-sheet-simple .cost-setup-advanced .field{margin:10px 0}
.cost-sheet-simple .cost-template-costs{border:1px solid var(--line);border-radius:10px;background:var(--soft,#f3f7fa);padding:0 14px;margin:16px 0}
.cost-sheet-simple .cost-template-costs>summary{justify-content:space-between;gap:12px;padding:12px 0;list-style:none}
.cost-sheet-simple .cost-template-costs>summary::-webkit-details-marker{display:none}
.cost-sheet-simple .cost-template-costs>summary span:first-child{display:grid;gap:3px;min-width:0}
.cost-sheet-simple .cost-template-costs>summary small{font-size:12px;color:var(--muted);font-weight:400}
.cost-sheet-simple .cost-template-costs .cost-summary-action{font-size:12px;color:var(--accent,#19665b);font-weight:700;white-space:nowrap}
.cost-sheet-simple .cost-template-costs[open]{background:var(--panel,#fff)}
.cost-sheet-simple .cost-template-costs[open]>summary{border-bottom:1px solid var(--line)}
.cost-sheet-simple .cost-template-costs fieldset[data-cost-step]{margin:12px 0 16px}
.cost-sheet-simple .cost-template-costs fieldset legend{display:none}
.cost-sheet-simple .cost-template-costs:not([open])>fieldset[data-cost-step]{display:none}
.cost-sheet-simple .cost-review{display:none}
/* V20.204: preparar origen de terminados antes de registrar la venta */
.order-fulfillment-dialog{width:min(96vw,860px)}
.order-fulfillment-dialog .order-checkout-line{display:block;padding:12px;margin:9px 0;border:1px solid var(--line,#dce4ee);border-radius:10px}
.order-fulfillment-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:9px 0}
.order-fulfillment-dialog [data-sum]{margin:4px 0}
@media(max-width:640px){.order-fulfillment-inputs{grid-template-columns:1fr 1fr}.order-fulfillment-inputs .field:last-child{grid-column:1/-1}}

/* Entrada rápida de terminados para un pedido ya cotizado */
.order-finished-dialog{width:min(94vw,660px)}
.order-finished-dialog .field{margin:9px 0}
.order-finished-dialog [type=search]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364788b' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;padding-left:40px}

/* V20.206: costos diferenciados en el reparto interno */
.order-fulfillment-dialog .order-fulfillment-inputs{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.order-fulfillment-dialog .order-fulfillment-inputs .field[hidden]{display:none}
.order-fulfillment-dialog [data-make-cost][readonly]{background:var(--soft,#f3f7fa);cursor:default}
.order-fulfillment-dialog [data-cost-breakdown]{margin:2px 0 7px;font-weight:600}
.order-fulfillment-dialog .order-fulfillment-inputs small{display:block;margin-top:4px;font-size:11px;line-height:1.45}
@media(max-width:560px){.order-fulfillment-dialog .order-fulfillment-inputs{grid-template-columns:1fr 1fr}.order-fulfillment-dialog [data-make-cost-field],.order-fulfillment-dialog [data-buy-cost-field]{grid-column:1/-1}}

/* V20.206 · Diseño operativo con jerarquía real: cotización y preparación. */
.order-fulfillment-dialog{width:min(96vw,790px);max-height:min(94dvh,960px);padding:0;border:1px solid #d4deeb;border-radius:18px;box-shadow:0 32px 90px #071c3652;background:#f7f9fd;color:#172d48}
.order-fulfillment-dialog .fulfillment-form{padding:0}
.order-fulfillment-dialog .fulfillment-heading{padding:22px 26px 17px;background:#fff;border-bottom:1px solid #e4eaf3;align-items:center;gap:14px}
.order-fulfillment-dialog .fulfillment-heading h3{margin:5px 0 6px;font-size:23px;line-height:1.2;letter-spacing:-.035em;color:#102948}
.order-fulfillment-dialog .fulfillment-heading p{margin:0;color:#5a6f87;font-size:13px;line-height:1.45}
.order-fulfillment-dialog .section-eyebrow{font-weight:750;font-size:10px;letter-spacing:.095em;color:#1f77a5}
.order-fulfillment-dialog .fulfillment-overview{display:grid;grid-template-columns:1fr 1fr 1.5fr;margin:16px 22px;gap:9px}
.order-fulfillment-dialog .fulfillment-overview>div{min-width:0;padding:10px 13px;border:1px solid #e1e9f1;border-radius:11px;background:#fff}
.order-fulfillment-dialog .fulfillment-overview span{display:block;color:#64778d;font-size:9px;letter-spacing:.07em;font-weight:700}
.order-fulfillment-dialog .fulfillment-overview strong{font-weight:800;color:#143c66;display:block;font-size:17px;margin-top:5px;font-variant-numeric:tabular-nums}
.order-fulfillment-dialog .fulfillment-cards{display:grid;gap:13px;padding:0 22px 6px}
.order-fulfillment-dialog .fulfillment-card{margin:0;padding:0;border:1px solid #dce5f1;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 5px 16px #1135540c}
.order-fulfillment-dialog .fulfillment-card:nth-child(even){border-color:#d5e2ee}
.order-fulfillment-dialog .fulfillment-card-head{display:flex;align-items:center;gap:11px;padding:12px 15px;background:linear-gradient(90deg,#eaf3fc,#f8fbff);border-bottom:1px solid #dce5f0}
.order-fulfillment-dialog .fulfillment-index{border-radius:9px;display:grid;place-items:center;flex:none;width:38px;height:38px;background:#195c9b;color:#fff;font-weight:800;letter-spacing:.035em;font-size:13px}
.order-fulfillment-dialog .fulfillment-card:nth-child(even) .fulfillment-index{background:#117d83}
.order-fulfillment-dialog .fulfillment-product{flex:1;min-width:0}.order-fulfillment-dialog .fulfillment-product span{font-size:9px;letter-spacing:.085em;color:#60809f;font-weight:800}
.order-fulfillment-dialog .fulfillment-product h4{font-size:16px;color:#102d50;line-height:1.22;margin:2px 0;overflow-wrap:anywhere}
.order-fulfillment-dialog .fulfillment-quantity{flex:none;background:#fff;color:#18588b;padding:6px 12px;border:1px solid #cddfed;border-radius:999px;font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.order-fulfillment-dialog .fulfillment-quantity small{font-size:10px;font-weight:600;color:#68829a}
.order-fulfillment-dialog .fulfillment-card-content{padding:12px 15px 14px}
.order-fulfillment-dialog .fulfillment-section-title{display:flex;gap:8px;align-items:baseline;justify-content:space-between;margin:2px 0 8px}
.order-fulfillment-dialog .fulfillment-section-title strong{font-size:12px;color:#21425e}.order-fulfillment-dialog .fulfillment-section-title small{font-size:10px;color:#667e97}
.order-fulfillment-dialog .fulfillment-qty-grid,.order-fulfillment-dialog .fulfillment-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.order-fulfillment-dialog .field{margin:0;min-width:0}.order-fulfillment-dialog .field>.label{font-size:11px;color:#4f6580;margin-bottom:5px;display:block;font-weight:650}
.order-fulfillment-dialog .field input{width:100%;height:39px;box-sizing:border-box;border:1px solid #cbd8e6;border-radius:8px;background:#fff;padding:7px 10px;color:#16324f;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 2px #09284e05}
.order-fulfillment-dialog .field input:focus{outline:2px solid #70acdf;outline-offset:1px;border-color:#3782bb}
.order-fulfillment-dialog .field input[readonly]{background:#edf4f9;color:#315d80}
.order-fulfillment-dialog .field small{font-size:10px;color:#75889c;display:block;margin-top:3px;line-height:1.35}
.order-fulfillment-dialog .fulfillment-mixbar{height:6px;background:#e8eff5;border-radius:999px;margin-top:11px;overflow:hidden;display:flex}
.order-fulfillment-dialog [data-mix-make]{background:#2075ba;transition:width .15s}.order-fulfillment-dialog [data-mix-buy]{background:#1c9f94;transition:width .15s}
.order-fulfillment-dialog .fulfillment-sum{color:#237d70;font-weight:700;font-size:11px;margin:6px 0 2px}
.order-fulfillment-dialog .fulfillment-sum.invalid{color:#b13c48}
.order-fulfillment-dialog .fulfillment-cost-title{margin-top:13px;padding-top:10px;border-top:1px dashed #dae4ec}
.order-fulfillment-dialog .fulfillment-card-total{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding:10px 12px;border-radius:8px;background:#f0f6fb}
.order-fulfillment-dialog .fulfillment-card-total span{font-size:11px;color:#4e6579;font-weight:650}
.order-fulfillment-dialog .fulfillment-card-total strong{font-size:17px;color:#154d7b;font-variant-numeric:tabular-nums}
.order-fulfillment-dialog .fulfillment-cost-warning{font-size:11px;color:#aa3c30;padding:6px 8px;margin:5px 0 0;background:#fff4f1;border-radius:6px}
.order-fulfillment-dialog .fulfillment-grand-total{margin:13px 22px 6px;padding:13px 16px;border-radius:12px;background:#133c62;color:#fff}
.order-fulfillment-dialog .fulfillment-grand-total>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.order-fulfillment-dialog .fulfillment-grand-total span{font-size:11px;font-weight:700;letter-spacing:.03em;color:#d7eafa}
.order-fulfillment-dialog .fulfillment-grand-total strong{font-size:23px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-fulfillment-dialog .fulfillment-grand-total p{margin:3px 0 0;color:#bdd6ea;font-size:10px}
.order-fulfillment-dialog .fulfillment-help{margin:8px 22px 3px;font-size:11px;color:#526b82}.order-fulfillment-dialog .fulfillment-help summary{min-height:unset;cursor:pointer;font-size:11px;font-weight:650}
.order-fulfillment-dialog .fulfillment-help p{line-height:1.5}
.order-fulfillment-dialog .fulfillment-actions{display:flex;justify-content:flex-end;margin:12px 0 0;padding:12px 22px;background:#fff;border-top:1px solid #dde6f0;position:sticky;bottom:0;z-index:1;gap:8px}
.order-fulfillment-dialog .fulfillment-actions .btn{min-height:39px;border-radius:8px}
.order-fulfillment-dialog [role=alert]:not([hidden]){margin:10px 22px}
.order-fulfillment-dialog .order-checkout-line{border:none;padding:0;margin:0}
@media(max-width:600px){.order-fulfillment-dialog{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border-radius:0}.order-fulfillment-dialog .fulfillment-heading{padding:15px 14px 12px}.order-fulfillment-dialog .fulfillment-heading h3{font-size:19px}.order-fulfillment-dialog .fulfillment-overview{margin:12px;gap:6px}.order-fulfillment-dialog .fulfillment-overview>div{padding:9px 7px}.order-fulfillment-dialog .fulfillment-overview span{font-size:8px}.order-fulfillment-dialog .fulfillment-overview strong{font-size:14px}.order-fulfillment-dialog .fulfillment-cards{padding:0 12px;gap:10px}.order-fulfillment-dialog .fulfillment-card-head{padding:10px}.order-fulfillment-dialog .fulfillment-index{height:32px;width:32px}.order-fulfillment-dialog .fulfillment-product h4{font-size:14px}.order-fulfillment-dialog .fulfillment-quantity{font-size:13px;padding:5px 8px}.order-fulfillment-dialog .fulfillment-card-content{padding:10px}.order-fulfillment-dialog .fulfillment-cost-grid{gap:8px}.order-fulfillment-dialog .fulfillment-section-title{flex-wrap:wrap}.order-fulfillment-dialog .fulfillment-grand-total{margin:12px}.order-fulfillment-dialog .fulfillment-grand-total strong{font-size:20px}.order-fulfillment-dialog .fulfillment-help{margin:10px 12px}.order-fulfillment-dialog .fulfillment-actions{padding:10px 12px}.order-fulfillment-dialog .field input{font-size:16px}}
/* Cotización: tarjetas auténticas para que no parezcan renglones de texto. */
.quote-workspace #quote-lines{display:grid;gap:13px;margin-top:10px}
.quote-workspace #quote-lines .quote-edit-line{margin:0;padding:0;background:#fff;border:1px solid #d9e5f1;border-radius:13px;box-shadow:0 5px 16px #15334d0d;overflow:hidden}
.quote-workspace #quote-lines .quote-edit-head{margin:0 0 12px;padding:10px 14px;display:flex;gap:10px;align-items:center;background:linear-gradient(90deg,#eef5fc,#fafcff);border-bottom:1px solid #dbe6f0}
.quote-workspace #quote-lines .quote-edit-index{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:8px;background:#175e9b;color:#fff;font-size:12px;font-weight:800;letter-spacing:.04em}
.quote-workspace #quote-lines .quote-edit-line:nth-child(even) .quote-edit-index{background:#127f84}
.quote-workspace #quote-lines .quote-edit-identity{min-width:0;flex:1}
.quote-workspace #quote-lines .quote-edit-identity span{font-size:9px;color:#587d9b;font-weight:750;letter-spacing:.07em;display:block}
.quote-workspace #quote-lines .quote-edit-identity strong{font-size:16px;display:block;color:#123452;margin-top:2px}
.quote-workspace #quote-lines .quote-edit-identity strong::before{content:none}
.quote-workspace #quote-lines .quote-edit-head .btn{min-height:32px;border-radius:7px;padding:5px 11px;font-size:12px}
.quote-workspace #quote-lines .quote-edit-fields,.quote-workspace #quote-lines>.quote-edit-line>.field,.quote-workspace #quote-lines .proposal-fiscal-base,.quote-workspace #quote-lines>.quote-edit-line>.form-actions,.quote-workspace #quote-lines>.quote-edit-line>details,.quote-workspace #quote-lines>.quote-edit-line>p{margin-left:13px;margin-right:13px}
.quote-workspace #quote-lines .quote-edit-line>.field{display:block;margin-top:10px;margin-bottom:8px}
.quote-workspace #quote-lines .quote-edit-line>.form-actions{margin-top:10px;margin-bottom:12px;padding-top:10px;border-top:1px solid #e3ebf2;flex-wrap:wrap;gap:7px}
.quote-workspace #quote-lines .proposal-fiscal-base{background:#f7fafc}
.quote-workspace #quote-lines .quote-edit-line>p.tiny{padding:8px 10px;background:#f0f6fb;border-radius:7px;font-weight:650;color:#315c7b;margin-top:10px}
.quote-workspace #quote-lines textarea{min-height:46px}
.quote-workspace .quote-search-row input[type=search]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364788b' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;padding-left:39px}
@media(max-width:650px){.quote-workspace #quote-lines{gap:10px}.quote-workspace #quote-lines .quote-edit-head{padding:9px 10px}.quote-workspace #quote-lines .quote-edit-fields,.quote-workspace #quote-lines>.quote-edit-line>.field,.quote-workspace #quote-lines .proposal-fiscal-base,.quote-workspace #quote-lines>.quote-edit-line>.form-actions,.quote-workspace #quote-lines>.quote-edit-line>details,.quote-workspace #quote-lines>.quote-edit-line>p{margin-left:10px;margin-right:10px}.quote-workspace #quote-lines .quote-edit-identity strong{font-size:14px}}
.order-fulfillment-dialog [hidden]{display:none!important}

/* V20.207: cierre simple; los datos fiscales se solicitan al pulsar Facturar la venta en el comprobante. */
.order-checkout-workspace .order-step-nav{display:none;gap:6px;margin:8px 0 10px}
.order-checkout-workspace .order-invoice-simple{margin:10px 0 7px;padding:0;border:0}
.order-checkout-workspace .order-invoice-choice{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 13px;background:#f1f7fc;border:1px solid #d0e1ef;border-radius:9px;cursor:pointer}
.order-checkout-workspace .order-invoice-choice input{margin-top:4px;accent-color:#176bb0;width:18px;height:18px;flex:none}
.order-checkout-workspace .order-invoice-choice span{display:grid;gap:3px}
.order-checkout-workspace .order-invoice-choice strong{font-size:13px;color:#123b5b}
.order-checkout-workspace .order-invoice-choice small{font-size:11px;color:#506a82;line-height:1.4}
.order-checkout-workspace .order-invoice-choice:has(input:disabled){cursor:default}
.order-checkout-workspace [data-order-section=payment] h4{margin:10px 0 8px}
.order-checkout-workspace [data-order-section=payment]>.field{margin:7px 0}
.order-checkout-workspace [hidden]{display:none!important}
@media(max-width:600px){.order-checkout-workspace .order-step-nav{display:flex;flex-wrap:wrap}.order-checkout-workspace .order-invoice-simple{display:none}.order-checkout-workspace[data-order-active=payment] .order-invoice-simple{display:block}.order-checkout-workspace .order-invoice-choice{padding:11px}}

/* V20.217: selección de inventario o compra antes de cotizar el terminado. */
.cost-resale-dialog form{display:grid;gap:11px}.cost-resale-dialog .field{margin:0}.resale-stock-summary{padding:13px 15px;border-radius:12px;border:1px solid #b9d8e9;background:#f1f9fd}.resale-stock-summary strong{display:block;color:#144b6b}.resale-stock-summary p{margin:4px 0;font-size:13px}.resale-source-choice{display:flex;gap:16px;flex-wrap:wrap;border:1px solid #dce6ed;border-radius:12px;padding:11px 15px}.resale-source-choice legend{font-weight:700;font-size:13px;padding:0 5px}.resale-source-choice .checkline{display:flex;align-items:center;gap:8px;margin:3px 0;cursor:pointer}.resale-source-choice input{accent-color:#1480c6}[data-resale-purchase][hidden]{display:none!important}[data-resale-purchase]{display:grid;gap:9px;background:#f8fafb;padding:12px;border-radius:10px}.cost-resale-dialog .cost-dialog-heading{margin-bottom:0}.cost-resale-dialog .warning{color:#a14d18;font-size:12px;line-height:1.4}
/* V20.218: recorrido de cierre coherente en escritorio y móvil. */
.order-checkout-workspace .order-step-nav{display:flex;position:sticky;top:0;z-index:3;gap:6px;overflow:auto;background:var(--panel,#fff);padding:8px 0;margin:6px 0 12px}
.order-checkout-workspace .order-step-nav .btn{flex:1 0 auto;min-width:80px;padding:9px 7px;font-size:12px}
.order-checkout-workspace .order-step-nav [aria-current=step]{border-color:var(--accent,#176bb0);background:#edf6ff;font-weight:750;color:#135b93}
.order-checkout-workspace section[data-order-section]{display:none!important}
.order-checkout-workspace[data-order-active=items] section[data-order-section=items],
.order-checkout-workspace[data-order-active=payment] section[data-order-section=payment],
.order-checkout-workspace[data-order-active=invoice] section[data-order-section=invoice]{display:block!important}
.order-billing-choice{display:grid;gap:10px;margin:12px 0}
.order-billing-card{display:flex;align-items:flex-start;gap:12px;border:1px solid #cadbea;background:#f8fbff;border-radius:12px;padding:14px;cursor:pointer}
.order-billing-card:has(input:checked){border-color:#1679c6;box-shadow:0 0 0 2px rgba(22,121,198,.12)}
.order-billing-card input{width:20px;height:20px;flex:none;accent-color:#157ac8;margin:1px 0}
.order-billing-card span{display:grid;gap:5px;min-width:0}
.order-billing-card strong{font-size:14px;color:#123b5b}
.order-billing-card small{font-size:12px;color:#52697c;line-height:1.45}
.order-review{background:#f7f9fc;border:1px solid #dce6ef;padding:15px;border-radius:12px;margin-top:14px}
.order-review p{margin:8px 0;font-size:13px;overflow-wrap:anywhere}
.order-checkout-workspace .order-checkout-actions{display:flex;gap:8px;flex-wrap:wrap}
.order-checkout-workspace .order-checkout-actions .btn{min-width:0}
.order-checkout-workspace .order-checkout-actions [hidden]{display:none!important}
@media(max-width:600px){.order-checkout-workspace{padding:16px 16px max(20px,env(safe-area-inset-bottom))}.order-checkout-workspace .cost-dialog-heading{position:static}.order-checkout-workspace .order-step-nav{top:0;flex-wrap:nowrap;overflow-x:auto}.order-checkout-workspace .order-checkout-actions,.order-checkout-workspace .form-actions{position:static;z-index:auto;background:#fff;padding:14px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid #dce4ed;margin-top:18px}.order-checkout-workspace .order-checkout-actions .btn{flex:1 1 120px;min-height:46px}.order-checkout-workspace .cost-total-strip{position:relative}}

.resale-search-box{display:flex;align-items:center;gap:8px;border:1px solid #c6d9e5;border-radius:9px;padding:0 12px;background:#fff}.resale-search-box span{font-size:22px;color:#317ca8}.resale-search-box input{border:0;box-shadow:none;outline:none;width:100%;min-height:40px}.resale-product-list{display:grid;max-height:210px;overflow-y:auto;border:1px solid #d9e5ed;border-radius:10px;margin-top:8px;background:#fff}.resale-product-option{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:11px 13px;text-align:left;background:#fff;border:0;border-bottom:1px solid #e8eef2;color:#173650;cursor:pointer}.resale-product-option:last-child{border-bottom:0}.resale-product-option:hover,.resale-product-option[aria-pressed="true"]{background:#eaf5fd}.resale-product-option small{color:#59788e;white-space:nowrap}.resale-product-list>p{padding:12px;margin:0}

/* V20.257: cada cotización es un grupo operativo propio, sin fusionar trabajos por nombre. */
.simple-work-group-filters{display:grid;grid-template-columns:minmax(250px,1fr) minmax(185px,245px);gap:12px;align-items:end;margin:18px 0}
.simple-work-group-filters .field{margin:0;min-width:0}
.simple-work-group-filters :is(input,select){width:100%;max-width:100%}
.simple-work-group{border:1px solid var(--line,#d8e3ec);border-radius:10px;background:var(--panel,#fff);margin:12px 0;overflow:hidden}
.simple-work-group[hidden]{display:none!important}
.simple-work-group-summary{cursor:pointer;padding:16px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--soft,#f5f9fc);list-style:none}
.simple-work-group-summary::-webkit-details-marker{display:none}
.simple-work-group-summary:focus-visible{outline:2px solid var(--accent,#176bb0);outline-offset:-3px}
.simple-work-group-summary::before{content:'▸';font-size:17px;color:var(--accent,#176bb0);flex:none}
.simple-work-group[open]>.simple-work-group-summary::before{content:'▾'}
.simple-work-group-heading{flex:1;min-width:190px;display:grid;gap:3px}
.simple-work-group-heading strong{font-size:15px;color:var(--text,#132e45);overflow-wrap:anywhere}
.simple-work-group-heading small{font-size:12px;color:var(--muted,#587080);overflow-wrap:anywhere}
.simple-work-group-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}
.simple-work-group-tags span{background:#fff;border:1px solid var(--line,#d8e3ec);border-radius:16px;padding:4px 9px;font-weight:600}
.simple-work-group-tags .is-pending{background:#fff6e7;color:#8b570b;border-color:#eed9b0}
.simple-work-group-tags .is-finished{background:#eaf6ee;color:#1c6942;border-color:#b6d9c6}
.simple-work-group-body{padding:0 16px 8px}
.simple-work-group-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:var(--muted,#587080);border-bottom:1px solid var(--line,#d8e3ec);padding:12px 0}
.simple-work-group-meta strong{color:var(--text,#132e45)}
.simple-work-group-meta .btn:first-of-type{margin-left:auto}
.simple-work-item-main{min-width:0;flex:1}
.simple-work-item-main h4{overflow-wrap:anywhere}
.simple-work-state{display:inline-block;font-size:11px;font-weight:700;border-radius:16px;padding:3px 9px;border:1px solid var(--line,#d8e3ec);margin-top:6px}
.simple-work-state.is-pending{background:#fff6e7;color:#8b570b;border-color:#eed9b0}
.simple-work-state.is-finished{background:#eaf6ee;color:#1c6942;border-color:#b6d9c6}
.simple-work-group .simple-work-card:last-child{border-bottom:none}
@media(max-width:700px){.simple-work-group-filters{grid-template-columns:1fr}.simple-work-group-summary{align-items:start;gap:7px}.simple-work-group-tags{width:100%;padding-left:16px}.simple-work-group-meta .btn:first-of-type{margin-left:0}.simple-work-group-body{padding:0 12px 6px}}

/* V20.259: gastos reales, cada concepto es un bloque independiente y fácil de reconocer. */
.simple-finish-dialog [data-actual-expenses]{display:grid;gap:16px;margin:14px 0 18px}
.simple-finish-dialog .production-expense-card{margin:0;padding:16px;background:var(--panel,#fff);border:1px solid #b5cbdc;border-left:4px solid var(--brand-primary,#173f6a);border-radius:12px;box-shadow:0 2px 6px rgba(14,42,69,.08)}
.simple-finish-dialog .production-expense-card:nth-child(even){background:var(--soft,#f8fafc)}
.simple-finish-dialog .production-expense-type{align-items:center;gap:9px;padding-bottom:11px;margin-bottom:13px;border-bottom:1px solid var(--line,#d5e2ec)}
.simple-finish-dialog .production-expense-type strong{display:flex;align-items:center;gap:9px;font-size:13px}
.simple-finish-dialog .production-expense-index{width:26px;height:26px;border-radius:7px;display:inline-grid;place-items:center;font-size:12px;background:#183f65;color:#fff}
.simple-finish-dialog [data-expense-bank],.simple-finish-dialog [data-expense-credit]{padding-top:10px;margin-top:10px;border-top:1px dashed var(--line,#d5e2ec)}
.simple-finish-dialog .production-expense-card .simple-actual-row{gap:11px;align-items:end}
.simple-finish-dialog .production-expense-card [data-remove-expense]{align-self:end}
@media(max-width:650px){.simple-finish-dialog .production-expense-card{padding:12px}}

/* V20.260: resultados resumidos por cotización, con desglose de sus prendas. */
.production-result-group .simple-work-group-summary{background:var(--soft,#f5f9fc)}
.production-result-headline{display:grid;gap:4px;text-align:right;min-width:145px}
.production-result-headline small,.production-results-overall small,.production-results-metrics small{color:var(--muted,#587080);font-size:11px}
.production-result-headline strong{font-size:16px;font-variant-numeric:tabular-nums}
.production-results-overall,.production-results-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:16px 0}
.production-results-overall>div,.production-results-metrics>div{display:grid;gap:5px;border:1px solid var(--line,#d8e3ec);border-radius:9px;background:var(--panel,#fff);padding:12px;min-width:0}
.production-results-overall strong,.production-results-metrics strong{font-variant-numeric:tabular-nums;font-size:14px;overflow-wrap:anywhere}
.production-results-overall>div:last-child{background:var(--soft,#f5f9fc)}
.production-results-actions{margin:8px 0 18px;justify-content:flex-end}
.production-results-search{max-width:100%;margin:12px 0}
.production-results-table-wrap{width:100%;overflow-x:auto;margin:12px 0}
.production-results-table-wrap table{min-width:700px}
.production-results-table-wrap small{display:block;font-size:11px;margin-top:4px}
@media(max-width:700px){.production-result-headline{text-align:left}.production-results-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.production-results-overall{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order-fiscal-choice{width:min(610px,calc(100vw - 24px))}.order-fiscal-choice [data-results]{display:grid;gap:8px;margin:16px 0}.order-fiscal-choice .proposal-fiscal-option{display:grid;justify-content:stretch;border:1px solid var(--line);white-space:normal}.order-fiscal-choice .proposal-fiscal-option[aria-pressed=true]{border-color:var(--brand-primary,#1767ad);background:#eaf4fc}.order-fiscal-choice .proposal-fiscal-option small{white-space:normal}.order-fiscal-choice [data-confirm]{width:100%}.order-fiscal-choice .order-fiscal-unit{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.order-checkout-fiscal{margin:16px 0;padding:16px;border:1px solid var(--line,#dbe4eb);border-radius:10px;background:var(--surface,#fff)}
.order-checkout-fiscal[hidden]{display:none!important}
.order-checkout-fiscal h4{margin:0 0 6px}
.order-checkout-fiscal .order-fiscal-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line,#dbe4eb)}
.order-checkout-fiscal .order-fiscal-line strong{flex:1;min-width:160px}
.order-fiscal-choice [data-browse]{margin-top:16px;padding:12px;border:1px solid var(--line,#dbe4eb);border-radius:8px}
.order-fiscal-choice [data-browse] summary{cursor:pointer;font-weight:700}
.order-fiscal-choice [data-browse-results]{display:grid;gap:6px;max-height:300px;overflow:auto;margin:10px 0}

.quote-new-customer{display:inline-flex;align-items:center;gap:5px;width:max-content!important;min-width:0;min-height:34px;padding:6px 10px;margin-top:6px}.quote-new-customer svg{flex:none}.quote-form-grid .field:has(.quote-new-customer){min-width:0}


/* Archivo: production-catalog.css */
/* V20.212: catálogo de Producción únicamente; no modifica Comercio. */
.production-catalog-main-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line,#dbe4eb)}
.production-catalog-main-tabs button{padding:10px 17px;border:1px solid transparent;border-bottom:2px solid transparent;background:transparent;color:var(--muted,#667d8d);cursor:pointer;font:inherit;font-weight:700}
.production-catalog-main-tabs button.active{color:var(--text,#163049);border-bottom-color:var(--primary,#103a76)}
[data-cost-panel][hidden]{display:none!important}
.production-catalog [hidden]{display:none!important}
.production-catalog-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.production-catalog-tab{padding:12px 14px;box-shadow:none!important}
.production-catalog-tab.active{background:var(--surface,#fff);border-color:var(--primary,#103a76)}
.production-inventory-filters{display:flex;gap:8px;flex-wrap:wrap}
.production-inventory-filters .active{border-color:var(--primary,#103a76);background:var(--surface,#fff);font-weight:700}
.production-inventory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted,#667d8d)}
.production-inventory-picker-list{display:grid;gap:6px;max-height:48vh;overflow:auto}
.production-inventory-picker-list button{text-align:left;display:flex;justify-content:space-between;gap:12px}
.production-inventory-picker-list small{color:var(--muted,#667d8d)}
@media(max-width:760px){.production-catalog-tabs{grid-template-columns:1fr}.production-inventory-toolbar .btn{width:100%}}
.production-catalog{display:grid;gap:16px;min-width:0}
.production-catalog-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;overflow:hidden;border-radius:18px;padding:25px 28px;background:linear-gradient(118deg,#102e52 0%,#164b76 65%,#126f90 100%);color:#fff;box-shadow:0 12px 28px rgba(9,46,81,.09)}
.production-catalog-hero>div{position:relative;z-index:1;max-width:730px}.production-catalog-overline{color:#91e7ee;font-weight:750;letter-spacing:.12em;font-size:10px}.production-catalog-hero h3{margin:8px 0;font-size:clamp(18px,2.3vw,25px);letter-spacing:-.035em;line-height:1.15;color:#fff}.production-catalog-hero p{margin:0;max-width:690px;font-size:13px;line-height:1.7;color:#d9eaf7}
.production-catalog-art{height:124px;width:170px;position:relative;flex:none;opacity:.92}.production-catalog-art span{position:absolute;display:block;width:72px;height:72px;border-radius:20px;border:1px solid rgba(255,255,255,.4);transform:rotate(-17deg);background:linear-gradient(130deg,rgba(255,255,255,.22),rgba(255,255,255,.03));box-shadow:0 10px 25px rgba(3,29,51,.12)}.production-catalog-art span:nth-child(1){top:8px;left:17px}.production-catalog-art span:nth-child(2){top:24px;left:64px;border-color:rgba(146,233,236,.5)}.production-catalog-art span:nth-child(3){top:44px;left:102px;width:55px;height:55px;border-color:#77e5e4}
.production-catalog-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.production-catalog-tab{display:flex;align-items:center;gap:13px;border-radius:13px;padding:15px 17px;background:var(--surface,#fff);border:1px solid var(--line,#dbe4eb);color:var(--text,#163049);text-align:left;cursor:pointer;font:inherit;transition:border-color .16s,background .16s,box-shadow .16s}.production-catalog-tab:hover{border-color:#83adc8}.production-catalog-tab.active{border-color:#1e8fd5;background:#ebf6ff;box-shadow:0 0 0 1px rgba(30,143,213,.25)}.production-catalog-tab-symbol{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;color:#166899;background:#e6f2f7;font-size:24px}.production-catalog-tab.active .production-catalog-tab-symbol{background:#d5eaff;color:#0866a6}.production-catalog-tab strong,.production-catalog-tab small{display:block}.production-catalog-tab strong{font-size:14px}.production-catalog-tab small{font-size:12px;color:var(--muted,#667d8d);margin-top:2px}
.production-catalog-content{min-width:0;border-radius:14px}.production-catalog-tools{display:flex;align-items:end;gap:12px}.production-catalog-tools .field{flex:1;margin:0;min-width:0}.production-catalog-search-wrap{position:relative;display:block}.production-catalog-search-wrap>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:26px;color:#6b879b;pointer-events:none}.production-catalog-search-wrap input{padding-left:42px;min-height:44px;width:100%;background:var(--surface,#fff)}.production-catalog-add{min-height:44px}.production-catalog-count{margin:13px 0 10px}
.production-catalog-list{display:grid;gap:8px}.production-catalog-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line,#dae5ec);border-radius:11px;background:var(--surface,#fff);transition:border-color .15s,box-shadow .15s}.production-catalog-item:hover{border-color:#a6c9df;box-shadow:0 4px 14px rgba(25,64,98,.05)}.production-catalog-item-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#eef5f9;color:#2e6a92;font-size:23px}.production-catalog-item-info{min-width:0}.production-catalog-item-info strong{display:block;overflow-wrap:anywhere;font-size:13px}.production-catalog-item small{display:block;color:var(--muted,#62798a);font-size:11px;margin-top:3px}.production-catalog-item .production-catalog-stock{color:#27734f}.production-catalog-item .production-catalog-stock b{font-variant-numeric:tabular-nums}.production-catalog-price{min-width:106px;text-align:right}.production-catalog-price b{font-size:13px;font-variant-numeric:tabular-nums}.production-catalog-item-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.production-catalog-dialog{width:min(590px,calc(100vw - 24px))}.production-catalog-dialog form{display:grid;gap:12px}.production-catalog-dialog .production-catalog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.production-catalog-fields>.field:first-child{grid-column:1/-1}.production-catalog-dialog .field{min-width:0;margin:0}.production-catalog-dialog input,.production-catalog-dialog select{width:100%;min-width:0}.production-catalog-dialog .form-actions{margin:0}
.production-stock-dialog{width:min(590px,calc(100vw - 24px))}.production-stock-fields{display:grid;gap:10px}.production-stock-dialog [data-stock-purchase]{display:grid;gap:10px}.production-stock-dialog [data-stock-purchase][hidden],.production-stock-dialog [data-stock-supplier][hidden],.production-stock-dialog [data-stock-due][hidden]{display:none}
.production-catalog-tools[hidden]{display:none}
.production-inventory-list{display:grid;gap:7px;margin:10px 0 22px}
.production-inventory-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff)}
.production-inventory-item strong,.production-inventory-item small{display:block}.production-inventory-item small{font-size:11px;color:var(--muted);margin-top:3px}
.production-inventory-item>div:last-child{display:flex;flex-wrap:wrap;gap:14px;font-size:12px}.production-inventory-item b{font-variant-numeric:tabular-nums}
@media(max-width:600px){.production-inventory-item{display:block}.production-inventory-item>div:last-child{margin-top:9px}}
@media(max-width:760px){.production-catalog-hero{padding:20px}.production-catalog-art{display:none}.production-catalog-tab{padding:12px;gap:9px}.production-catalog-tab-symbol{width:34px;height:34px}.production-catalog-tab small{font-size:11px}.production-catalog-tools{align-items:stretch;flex-direction:column}.production-catalog-add{width:100%}.production-catalog-item{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:12px}.production-catalog-item-info{grid-column:2/-1}.production-catalog-price{grid-column:2;text-align:left}.production-catalog-item-actions{grid-column:3;justify-content:flex-end}.production-catalog-dialog{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100dvh;max-width:none;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto;padding:16px}.production-catalog-dialog .production-catalog-fields{grid-template-columns:1fr}.production-catalog-dialog .production-catalog-fields>.field:first-child{grid-column:auto}.production-stock-dialog{width:calc(100vw - 20px);max-height:90dvh;overflow:auto}}
@media(max-width:420px){.production-catalog-tabs{grid-template-columns:1fr}.production-catalog-item{grid-template-columns:auto minmax(0,1fr)}.production-catalog-item-info{grid-column:2}.production-catalog-price{grid-column:2}.production-catalog-item-actions{grid-column:1/-1;justify-content:stretch}.production-catalog-item-actions .btn{flex:1}}
/* Separate the catalog definition from physical inventory. */
.production-catalog .production-catalog-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.production-catalog .production-catalog-tab{padding:12px 14px;box-shadow:none}
.production-catalog .production-catalog-tab.active{background:var(--surface,#fff);border-color:var(--primary,#103a76);box-shadow:none}
@media(max-width:760px){.production-catalog .production-catalog-tabs{grid-template-columns:1fr}}


/* Archivo: production-navigation.css */
/* V20.211: organización del menú propia de Producción; no afecta comercio. */
.workspace[data-operation="production"] #sidebar .nav-section{margin:2px 0 4px;padding-top:3px;border-top-color:rgba(255,255,255,.11)}
.workspace[data-operation="production"] #sidebar .nav-section summary{padding:9px 11px;min-height:36px;font-size:10.5px;letter-spacing:.055em;color:#b0d1e2;line-height:1.25}
.workspace[data-operation="production"] #sidebar .nav-section[open]>summary{background:rgba(53,119,184,.16);color:#ffffff}
.workspace[data-operation="production"] #sidebar .nav-section-items{padding:4px 2px 7px 5px;display:grid;gap:2px}
.workspace[data-operation="production"] #sidebar .nav-section-items .navitem{min-height:37px;font-size:12.5px;padding:8px 10px;border-radius:8px;line-height:1.2}
.workspace[data-operation="production"] #sidebar .nav-section-items .navitem.active{box-shadow:inset 3px 0 0 #51d6eb;background:#17477e;color:#ffffff;font-weight:700}
.workspace[data-operation="production"][data-theme="personalizado"] #sidebar .nav-section-items .navitem.active{background:color-mix(in srgb,var(--nav) 80%,#000);box-shadow:inset 3px 0 0 var(--accent);color:#fff}
.workspace[data-operation="production"][data-theme="personalizado"] #sidebar .nav-section[open]>summary{background:color-mix(in srgb,var(--nav) 84%,#000);color:#fff}
.workspace[data-operation="production"] #sidebar .nav-section-items .navitem .nav-icon{opacity:.88}
.workspace[data-operation="production"] .production-receipt-product{display:block;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.workspace[data-operation="production"] .production-receipt-product small{display:block;font-weight:400;color:var(--muted,#697e91);margin-top:3px;white-space:normal}
@media(max-width:760px){.workspace[data-operation="production"] #sidebar .nav-section summary{min-height:43px}.workspace[data-operation="production"] #sidebar .nav-section-items .navitem{min-height:44px}}


/* Archivo: credit-orders.css */
/* Créditos: una tarea principal por pantalla; mantiene los colores de MIONEXO. */
.credit-workspace{max-width:1000px}
.credit-flow-hint{margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.5}
.credit-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--line);margin:0 0 18px;scrollbar-width:thin}
.credit-tab{flex:none;border:0;border-bottom:2px solid transparent;margin:0;padding:10px 14px 12px;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.credit-tab:hover{color:var(--text)}
.credit-tab.active{color:var(--text);border-bottom-color:var(--green,#19675b)}
.credit-tab:focus-visible{outline:2px solid var(--green,#19675b);outline-offset:-3px}
.credit-workspace>.panel{margin:0;min-width:0}
.credit-workspace .credit-empty{padding:34px 28px;max-width:640px}
.credit-empty h3{margin:0 0 7px;font-size:18px}
.credit-empty p{max-width:520px;margin:0 0 18px;color:var(--muted);line-height:1.55}
.credit-workspace #credit-product-results:not(:empty){display:flex;gap:6px;flex-wrap:wrap;align-content:start}
.credit-workspace #credit-order-lines{margin:12px 0}
.credit-workspace #credit-order-lines .tablewrap{overflow-x:auto}
.credit-workspace #credit-order-lines input{min-width:74px;max-width:130px}
.credit-workspace .form-actions{justify-content:flex-start;margin:0;padding:0;border:0}
@media(max-width:700px){.credit-flow-hint{font-size:11px}.credit-tab{padding:10px}.credit-workspace .credit-empty{padding:22px 18px}}
.credit-order-summary{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}
.credit-order-summary span{display:flex;flex-direction:column;gap:4px;min-width:145px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:12px}
.credit-order-summary strong{color:var(--text);font-size:16px;font-variant-numeric:tabular-nums}
.pos-picker:has(.credit-order-summary) h4{margin:17px 0 8px;font-size:14px}
.credit-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.credit-dialog-actions p{margin:0;color:var(--muted);font-size:12px}
@media(max-width:600px){.credit-dialog-actions{align-items:stretch;flex-direction:column}.credit-order-summary span{flex:1}}
.credit-workspace .credit-preview{margin:16px 0;padding:16px;border:1px solid #cfe5dc;border-radius:10px;background:#f3faf6;color:var(--text);font-size:13px}
.credit-preview-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.credit-preview-totals span{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}
.credit-preview-totals strong{color:var(--text);font-size:17px;font-variant-numeric:tabular-nums}
.credit-preview-schedule{margin-top:16px;padding-top:12px;border-top:1px solid #cfe5dc}
.credit-preview-schedule>.tablewrap{margin-top:9px;overflow-x:auto;background:#fff}
.credit-workspace .credit-weights[hidden]{display:none}
.credit-workspace .credit-weights small{color:var(--muted);font-size:11px}


/* Archivo: online-store-admin.css */
.store-admin{max-width:1440px;margin:auto;color:#19352e}.store-admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}.store-admin-head h2{font-size:clamp(28px,3vw,39px);line-height:1.1;letter-spacing:-.05em;margin:5px 0}.store-admin-head p{color:#64766d;max-width:650px;margin:0}.store-kicker,.store-step{color:#467e6a;letter-spacing:.13em;text-transform:uppercase;font-weight:800;font-size:10px}.store-status{background:#f3f5f3;color:#53655a;border:1px solid #dbe4df;padding:9px 14px;border-radius:99px;font-weight:700;font-size:12px;white-space:nowrap}.store-status.is-live{background:#def3e9;color:#14654d;border-color:#b9e5d1}.store-admin-tabs{display:flex;gap:4px;border-bottom:1px solid #dce5df;margin-bottom:25px}.store-admin-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#62756a;padding:13px 18px;font-weight:700}.store-admin-tabs button.active{color:#14654d;border-color:#14654d}.store-admin-tabs span{border-radius:99px;background:#e7f0e9;padding:3px 7px;margin-left:3px}.store-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:23px}.store-admin-main,.store-admin-side{display:grid;gap:19px;min-width:0}.store-admin-card{padding:24px;background:#fff;border:1px solid #dce5df;border-radius:15px;box-shadow:0 4px 22px #153a2910;min-width:0}.store-admin-card h3{font-size:22px;letter-spacing:-.035em;margin:4px 0}.store-admin-card p{color:#6a7b72;margin:0;font-size:13px}.store-section-head{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:22px}.store-selection{padding:7px 10px;background:#e8f3ec;color:#14654d;border-radius:7px;font-size:11px;font-weight:800;white-space:nowrap}.store-fields{display:grid;gap:13px}.store-fields label{display:grid;gap:6px;font-size:12px;color:#43574c;font-weight:750}.store-fields input,.store-fields select,.store-picker-head input,#store-order-filter{width:100%;border:1px solid #d2e0d8;background:white;border-radius:9px;padding:12px;color:#19352e;min-width:0}.store-fields input:focus-visible,.store-picker-head input:focus-visible{outline:2px solid #14654d}.store-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.store-template{cursor:pointer;border:1px solid #dbe6dd;border-radius:12px;padding:9px;display:flex;flex-direction:column;gap:4px;position:relative;min-width:0}.store-template:has(input:checked){border-color:#14654d;box-shadow:0 0 0 2px #14654d}.store-template input{position:absolute;right:14px;top:17px;accent-color:#14654d;z-index:1}.store-template strong{font-size:13px}.store-template small{font-size:11px;color:#6c7c70}.store-template-art{height:105px;border-radius:6px;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:35px 1fr;gap:5px;overflow:hidden}.store-template-art b{grid-column:1/-1;border-radius:3px}.store-template-art i{border-radius:3px;min-width:0}.store-template-market{background:#e8f5e7}.store-template-market b{background:#95caa8}.store-template-market i{background:#fff}.store-template-editorial{background:#faf0de}.store-template-editorial b{background:#c99b73}.store-template-editorial i{background:#fff9ed}.store-template-vivid{background:#e4e5fc}.store-template-vivid b{background:#344188}.store-template-vivid i{background:#a9b1fc}.store-checkbox{display:flex;gap:11px;align-items:start;padding:14px 0;font-size:13px;cursor:pointer}.store-checkbox input{accent-color:#14654d;margin:2px 0}.store-checkbox small{display:block;color:#78887d;margin-top:3px;font-size:11px}.store-picker{margin-top:14px;border:1px solid #dce5df;border-radius:11px;overflow:hidden}.store-picker-head{padding:13px;background:#f6faf7;display:flex;align-items:center;justify-content:space-between;gap:13px}.store-picker-head strong{font-size:13px;white-space:nowrap}.store-picker-head input{max-width:280px;padding:9px}.store-product{display:flex;align-items:center;gap:12px;padding:10px 13px;border-top:1px solid #eef2ef;cursor:pointer}.store-product.unavailable{opacity:.55;cursor:not-allowed}.store-product input{accent-color:#14654d}.store-product-icon{display:grid;place-items:center;background:#eaf3eb;color:#14654d;border-radius:7px;width:36px;height:36px;flex:none}.store-product-name{flex:1;min-width:0}.store-product-name strong{font-size:12px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.store-product-name small{font-size:11px;color:#78867c;display:block}.store-product>strong{font-size:12px;white-space:nowrap}.store-picker .btn{margin:12px}.store-publish{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;border-radius:13px;background:#e9f4ec;border:1px solid #c7e3d2}.store-publish .store-checkbox{padding:0}.store-preview{position:sticky;top:20px}.store-preview-frame{margin:13px 0;background:#f6faf7;border:1px solid #dbe8dd;border-radius:11px;padding:9px;box-shadow:0 9px 20px #203b2d18}.store-preview-top{display:flex;gap:3px;padding:3px 2px 9px}.store-preview-top i{width:4px;height:4px;background:#b0bdaf;border-radius:50%}.store-preview-hero{background:#d7eadb;min-height:100px;border-radius:6px;padding:17px;display:flex;flex-direction:column;gap:3px}.store-preview-hero span{font-size:7px;text-transform:uppercase;color:#297057}.store-preview-hero strong{font-size:18px;letter-spacing:-.04em;overflow:hidden;text-overflow:ellipsis}.store-preview-hero em{font-size:8px;font-style:normal}.store-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.store-preview-grid div{height:60px;border-radius:4px;background:#e6efdf}.store-preview-grid div:nth-child(2){background:#e8e7db}.store-preview-grid div:nth-child(3){background:#e4f0ef}.store-preview .btn{display:block;margin-top:12px;text-align:center}.store-open[aria-disabled=true]{pointer-events:none;opacity:.55}.store-hint strong{font-size:14px}.store-hint p{margin:9px 0}.store-hint small{color:#7a877d}.store-empty{padding:30px;text-align:center;color:#728076}.store-order{border-top:1px solid #e0e7e1;padding:20px 0}.store-order-head,.store-order-foot{display:flex;align-items:center;justify-content:space-between;gap:15px}.store-order-head h4{margin:5px 0;font-size:17px}.store-order-head a{color:#14654d}.store-order-items{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.store-order-items span{padding:6px 9px;border-radius:6px;background:#f1f5f1;font-size:12px}.store-order-foot .btn{margin:3px}.store-admin [hidden]{display:none!important}
@media(max-width:1100px){.store-admin-layout{grid-template-columns:minmax(0,1fr)}.store-admin-side{grid-template-columns:1fr 1fr}.store-preview{position:static}}@media(max-width:650px){.store-admin-card{padding:17px}.store-admin-head{align-items:start}.store-admin-head p{font-size:12px}.store-status{font-size:10px}.store-admin-side{grid-template-columns:1fr}.store-templates{gap:6px}.store-template{padding:6px}.store-template-art{height:76px;padding:7px}.store-template strong{font-size:11px}.store-template small{font-size:9px}.store-picker-head{display:block}.store-picker-head input{max-width:100%;margin-top:8px}.store-product{gap:7px}.store-product-icon{display:none}.store-publish{display:block;padding:14px}.store-publish button{margin-top:14px;width:100%}.store-order-foot{display:block}.store-order-foot .btn{margin:6px 3px 0 0}.store-admin-tabs button{padding:11px;font-size:12px}}@media(max-width:380px){.store-templates{grid-template-columns:1fr}.store-template-art{height:70px}.store-product>strong{font-size:11px}}

.store-preview-editorial .store-preview-hero{background:#f1e4d2;color:#704936;font-family:Georgia,serif}.store-preview-editorial .store-preview-grid div{background:#f4e9d9}.store-preview-vivo .store-preview-hero{background:linear-gradient(130deg,#142343,#6673c4);color:#fff}.store-preview-vivo .store-preview-hero span{color:#e1e2ff}.store-preview-vivo .store-preview-grid div{background:#dde0fb}
/* Previews reproduce five different product compositions. */
.store-templates{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.store-bulk{display:flex;flex-wrap:wrap;gap:8px;padding:8px;background:#f6faf7}.store-bulk .btn{margin:0}.store-template-editorial{grid-template-columns:1.6fr 1fr 1fr;grid-template-rows:1fr 1fr}.store-template-editorial b{grid-column:1;grid-row:1/-1}.store-template-vivid{grid-template-columns:1.4fr 1fr 1fr;grid-template-rows:repeat(2,1fr)}.store-template-vivid b{grid-column:1;grid-row:1/-1;border-radius:12px}.store-template-catalog{background:#e9f1f2;grid-template-columns:1fr 3fr;grid-template-rows:repeat(4,1fr)}.store-template-catalog b{grid-column:2;grid-row:1}.store-template-catalog i{grid-column:2}.store-template-catalog i:first-child{grid-column:1;grid-row:1/-1}.store-template-catalog i{background:#fff}.store-template-catalog b{background:#83b9bf}.store-template-boutique{background:#1a1917;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr}.store-template-boutique b{background:#aa9065;grid-column:1/-1;border-radius:0}.store-template-boutique i{background:#575045;border-radius:0}.store-preview-editorial .store-preview-hero{width:65%;min-height:145px}.store-preview-editorial .store-preview-grid{width:35%;margin-top:-145px;margin-left:65%;grid-template-columns:1fr}.store-preview-editorial .store-preview-grid div{height:45px}.store-preview-vivo .store-preview-grid{grid-template-columns:repeat(2,1fr)}.store-preview-vivo .store-preview-grid div:first-child{grid-row:span 2;height:auto}.store-preview-catalogo{background:#edf3f3}.store-preview-catalogo .store-preview-hero{min-height:50px;padding:7px}.store-preview-catalogo .store-preview-hero strong{font-size:12px}.store-preview-catalogo .store-preview-grid{display:grid;grid-template-columns:1fr;gap:3px}.store-preview-catalogo .store-preview-grid div{height:22px;background:#d6e4e5}.store-preview-boutique{background:#1d1b18;color:#eee0ca}.store-preview-boutique .store-preview-hero{background:#3b342b;text-align:center;align-items:center;justify-content:center;min-height:150px;border-radius:0}.store-preview-boutique .store-preview-hero span{color:#d3ae75}.store-preview-boutique .store-preview-grid div{height:70px;background:#4f463a;border-radius:0}

.store-mail-warning{padding:12px 16px;border:1px solid #e4be70;background:#fff4dd;color:#734f10;border-radius:10px;margin:12px 0;font-weight:650;font-size:13px}
.store-merch{margin:18px 0}.store-merch-form{display:grid;grid-template-columns:minmax(160px,2fr) minmax(110px,1fr) minmax(100px,1fr) minmax(100px,1fr) auto;gap:10px;align-items:end;margin:18px 0}.store-merch-form label,.store-image-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#43574c}.store-merch-form input:not([type=checkbox]),.store-image-form input{width:100%;padding:10px;border:1px solid #d2e0d8;border-radius:8px;background:#fff}.store-custom-row{display:flex;gap:14px;border-top:1px solid #e2eae4;padding:13px 0}.store-custom-thumb{width:72px;height:72px;flex:none;display:grid;place-items:center;background:#eaf3eb;border-radius:8px;color:#14654d;font-size:28px;overflow:hidden}.store-custom-thumb img{width:100%;height:100%;object-fit:cover}.store-custom-content{flex:1;min-width:0}.store-custom-content .store-merch-form{margin:0 0 8px}.store-image-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:10px 0}.store-image-form label{flex:1;min-width:200px}.store-check{align-self:center}.store-product-line{display:flex;align-items:center;border-top:1px solid #eef2ef}.store-product-line .store-product{border:0;flex:1;min-width:0}.store-edit-button{margin:8px!important;flex:none}.store-merch[hidden]{display:none!important}#store-edit-preview{width:110px;height:110px;object-fit:contain;background:#edf3ee;border-radius:7px;margin-top:12px}#store-edit-preview[hidden]{display:none}
@media(max-width:900px){.store-merch-form{grid-template-columns:repeat(2,minmax(0,1fr))}.store-custom-row{display:block}.store-custom-thumb{margin-bottom:8px}}@media(max-width:550px){.store-merch-form{grid-template-columns:1fr}.store-product-line{align-items:stretch;flex-direction:column}.store-product-line .store-product{padding-bottom:4px}.store-edit-button{align-self:flex-start}}

/* 0.20.73: Vista previa actualizada al formato real de las cinco tiendas. */
.store-preview-top{justify-content:space-between;align-items:center;padding:5px 7px;margin-bottom:7px;border:1px solid #d9e3e7;border-radius:6px;background:#fff}
.store-preview-top span{font-size:8px;font-weight:800;color:#204858}
.store-preview-top span:last-child{color:#027178}
.store-preview-categories{margin:8px 0 6px;padding:6px 7px;border-radius:4px;background:#fff;color:#395665;font-size:8px;font-weight:700}
.store-preview-grid{grid-template-columns:1fr!important;gap:4px}
.store-preview-grid div{height:25px!important;border:1px solid #d6e4e7;border-radius:6px!important;background:linear-gradient(90deg,#e0f0f1 0 20%,#fff 20% 65%,#e6f4f3 65%)!important}
.store-preview-frame{background:#f7fafb}
.store-preview-editorial .store-preview-grid,.store-preview-vivo .store-preview-grid{width:100%;margin:8px 0 0}
.store-preview-editorial .store-preview-hero{width:100%;min-height:90px}
.store-preview-boutique .store-preview-grid div{background:linear-gradient(90deg,#403a31 0 20%,#2b2925 20% 65%,#645644 65%)!important;border-color:#5a5145}
.store-preview-boutique .store-preview-top,.store-preview-boutique .store-preview-categories{background:#302c25;color:#efe9e0;border-color:#60533e}
.store-preview-boutique .store-preview-top span{color:#efe9e0}

/* v0.20.74: enlace corto de la tienda, sin modificar la clave empresarial. */
.store-slug-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.store-slug-form label{flex:1;min-width:min(100%,230px);font-size:12px;font-weight:750;display:grid;gap:7px;color:inherit}
.store-slug-form input{width:100%;padding:12px;border-radius:9px;border:1px solid #cbd9dc;background:#fff;color:#1a3845;font-size:14px}
.store-slug-form input:focus-visible{outline:2px solid var(--color-primary,#147ca3)}
.store-slug-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:end}
.store-slug-actions .btn{white-space:nowrap}
.store-slug-feedback{margin-top:10px!important;overflow-wrap:anywhere}
.store-slug-feedback[data-status=success]{color:#11744f!important}
.store-slug-feedback[data-status=warning]{color:#93620d!important}
@media(max-width:620px){.store-slug-form{display:grid;grid-template-columns:1fr}.store-slug-actions{display:grid;grid-template-columns:1fr 1fr}.store-slug-actions .btn{white-space:normal}}

.store-manual-review{padding:16px;margin-top:14px;background:var(--surface,#f3f7fb);border:1px solid var(--line,#dce5ee);border-radius:12px;display:grid;gap:10px}.store-manual-review label{font-size:13px;font-weight:700;display:grid;gap:6px}.store-manual-review input{width:100%;padding:11px;border:1px solid #cad8e4;border-radius:8px}.store-manual-review>div{display:flex;gap:8px;flex-wrap:wrap}.store-payment-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:10px 0}

/* 0.20.76 · organización en áreas funcionales y estado de servicios */
.store-management-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;background:transparent;border:0;padding:0}
.store-management-tabs button{border:1px solid #cbdde9;border-radius:12px;background:#fff;color:#28425c;font-weight:750;padding:12px 15px;min-height:45px}
.store-management-tabs button.active{border-color:var(--color-primary,#1b83c5);box-shadow:0 0 0 2px #138dde17;background:#eaf5ff;color:#073f76}
.store-management-tabs button span{background:#e7f3fa;color:#174d73;padding:2px 7px;border-radius:10px;margin-left:4px}
.store-admin-card{box-shadow:0 4px 18px #0c2b4810;border-color:#dce6ed;border-radius:16px}
.store-section-head h3{font-size:20px;letter-spacing:-.025em;color:#15344b}
.store-section-head p{max-width:650px;line-height:1.55}
.store-stock-setting{margin:13px 0!important;padding:14px!important;background:#eaf4ff!important;border:1px solid #c9ddf0!important;border-radius:12px}
.store-stock-setting small{display:block;margin-top:4px;line-height:1.5;color:#4a667d}
.store-access-status{display:flex;gap:14px;justify-content:space-between;align-items:center;border:1px solid #d7e4ef;border-radius:12px;padding:15px;margin:12px 0}
.store-access-status>div{display:grid;gap:4px}.store-access-status strong{font-size:15px}.store-access-status span{font-size:12px;color:#5c6e7b;line-height:1.4}
.store-access-state{white-space:nowrap;border-radius:20px;padding:6px 11px;font-size:11px!important;font-weight:750}
.store-access-state.ready{background:#dff3e9;color:#176242}.store-access-state.pending{background:#fff1d9;color:#815512}
@media(max-width:650px){.store-management-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.store-management-tabs button{padding:9px;font-size:12px}.store-access-status{align-items:flex-start;flex-direction:column}}

/* Respetar el tema seleccionado por cada empresa sin mezclar acentos fijos */
.workspace[data-theme] .store-admin{--store-current-accent:var(--green,#1BA2FF);--store-current-soft:color-mix(in srgb,var(--store-current-accent) 9%,white);--store-current-border:color-mix(in srgb,var(--store-current-accent) 35%,#e4edf4)}
.workspace[data-theme] .store-management-tabs button.active{color:var(--store-current-accent);border-color:var(--store-current-border);background:var(--store-current-soft);box-shadow:0 0 0 2px var(--store-current-border)}
.workspace[data-theme] .store-stock-setting{background:var(--store-current-soft)!important;border-color:var(--store-current-border)!important}
.workspace[data-theme] .store-admin .store-step, .workspace[data-theme] .store-admin .store-kicker{color:var(--store-current-accent)}
.workspace[data-theme] .store-admin .store-template:has(input:checked){border-color:var(--store-current-accent);box-shadow:0 0 0 2px var(--store-current-border)}
.workspace[data-theme] .store-admin .store-checkbox input{accent-color:var(--store-current-accent)}
/* 0.20.79 · vistas esquemáticas con diferencias estructurales reales entre plantillas */
.store-availability-card{border-left:4px solid var(--store-current-accent,#1ba2ff)}
.store-preview-canvas{display:grid;grid-template-columns:27% minmax(0,1fr);gap:5px;margin-top:7px;min-height:75px}
.store-preview-sidebar{background:linear-gradient(#dcecf0 0 12px,transparent 12px 22px,#dcecf0 22px 34px,transparent 34px 44px,#dcecf0 44px 56px);border-radius:4px}
.store-preview-canvas .store-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.store-preview-canvas .store-preview-grid div{background:#e1e9ed;min-height:18px;border-radius:4px}
.store-preview-mercado .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(4,1fr)}
.store-preview-mercado .store-preview-hero{min-height:80px}
.store-preview-catalogo .store-preview-hero{min-height:50px;background:#e6f3f5!important}
.store-preview-catalogo .store-preview-canvas{grid-template-columns:30% 1fr}
.store-preview-catalogo .store-preview-canvas .store-preview-grid{grid-template-columns:1fr}
.store-preview-catalogo .store-preview-canvas .store-preview-grid div{min-height:10px}
.store-preview-editorial .store-preview-top{display:flex;flex-direction:row-reverse}
.store-preview-editorial .store-preview-hero{min-height:120px!important;display:flex;align-items:flex-end;text-align:right;padding-left:45%!important;background:linear-gradient(90deg,#c5a281 45%,#f4e8d8 45%)!important}
.store-preview-editorial .store-preview-canvas{display:block}
.store-preview-editorial .store-preview-sidebar{display:none}
.store-preview-editorial .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(3,1fr)}
.store-preview-editorial .store-preview-canvas .store-preview-grid div{min-height:75px}
.store-preview-vivo .store-preview-hero{min-height:105px!important;background:linear-gradient(120deg,#2c327f,#7f61ff)!important;border-radius:18px!important;transform:rotate(-.5deg)}
.store-preview-vivo .store-preview-canvas{display:block}
.store-preview-vivo .store-preview-sidebar{display:none}
.store-preview-vivo .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(4,1fr)}
.store-preview-vivo .store-preview-canvas .store-preview-grid div{min-height:60px;border-radius:10px}
.store-preview-boutique .store-preview-top{justify-content:center;min-height:25px}
.store-preview-boutique .store-preview-hero{min-height:130px!important;text-align:center;align-items:center;justify-content:center;background:#eae1d4!important;border-radius:0!important}
.store-preview-boutique .store-preview-canvas{display:block}
.store-preview-boutique .store-preview-sidebar{display:none}
.store-preview-boutique .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(3,1fr)}
.store-preview-boutique .store-preview-canvas .store-preview-grid div{min-height:95px;border-radius:0;background:#ded2c4}
.store-admin,.store-admin *,.store-admin *::before,.store-admin *::after{box-sizing:border-box}
.store-preview-frame{overflow:hidden;max-width:100%}
.store-preview-editorial .store-preview-hero{width:100%!important}
.store-preview-editorial .store-preview-canvas .store-preview-grid,.store-preview-vivo .store-preview-canvas .store-preview-grid{width:100%;margin:0}

/* Estado real: no marcar mantenimiento como publicación disponible */
.store-status.is-paused{background:#fff1db;color:#755016;border-color:#efd6a3}
/* Esquemas compactos de estructura: desactivar las reglas antiguas de lista uniforme */
.store-preview-frame .store-preview-canvas .store-preview-grid{width:100%!important;margin:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px}
.store-preview-frame .store-preview-canvas .store-preview-grid>div{height:55px!important;border:0!important;background:linear-gradient(180deg,#cfe7e8 0 68%,#fff 68%)!important;border-radius:3px!important;min-height:0}
.store-preview-catalogo .store-preview-canvas .store-preview-grid{grid-template-columns:1fr!important}
.store-preview-catalogo .store-preview-canvas .store-preview-grid>div{height:13px!important;background:linear-gradient(90deg,#d7e6e8 0 20%,#fff 20% 80%,#e2f0f0 80%)!important}
.store-preview-editorial .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(3,1fr)!important}
.store-preview-editorial .store-preview-canvas .store-preview-grid>div{height:65px!important;background:linear-gradient(180deg,#d6c1a6 0 72%,#fff8f0 72%)!important}
.store-preview-boutique .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(3,1fr)!important}
.store-preview-boutique .store-preview-canvas .store-preview-grid>div{height:85px!important;background:linear-gradient(180deg,#d6d6d2 0 78%,#fafafa 78%)!important;border-radius:0!important}
.store-preview-boutique{background:#f7f7f6;color:#2a2a2a}
.store-preview-boutique .store-preview-hero{background:#ededeb!important;color:#262626}
.store-preview-boutique .store-preview-hero span{color:#555}
.store-preview-vivo .store-preview-canvas .store-preview-grid{grid-template-columns:repeat(4,1fr)!important}
.store-preview-vivo .store-preview-canvas .store-preview-grid>div{height:55px!important;background:linear-gradient(180deg,#d8d4f9 0 70%,#fff 70%)!important;border-radius:7px!important}


/* Archivo: visual-workspaces.css */
/* MIONEXO 0.20.64 — tarjetas funcionales para 8 áreas. Aislado bajo .mxv-workspace. */
.mxv-workspace{--mxv-ink:#17324d;--mxv-muted:#65778d;--mxv-soft:#f4f7fb;--mxv-border:#dce6f1;--mxv-accent:#1e7287}
.mxv-workspace.mxv-fiscal{--mxv-accent:#0c776f}.mxv-workspace.mxv-catalog{--mxv-accent:#195aa6}.mxv-workspace.mxv-credit{--mxv-accent:#6550ac}.mxv-workspace.mxv-company{--mxv-accent:#127d6c}.mxv-workspace.mxv-modules{--mxv-accent:#2256a4}.mxv-workspace.mxv-store{--mxv-accent:#13785f}.mxv-workspace.mxv-purchases{--mxv-accent:#ad6f22}.mxv-workspace.mxv-users{--mxv-accent:#7457a0}
.mxv-hero{display:flex;align-items:center;gap:18px;padding:22px 24px;margin:14px 0 23px;border-radius:19px;background:linear-gradient(113deg,#fff 5%,#f2f8fe 100%);border:1px solid #dce8f3;box-shadow:0 8px 26px #173e6110;position:relative;min-width:0;overflow:hidden}
.mxv-hero:before{content:'';position:absolute;inset:0 auto 0 0;width:5px;background:var(--mxv-accent)}
.mxv-hero-graphic{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:color-mix(in srgb,var(--mxv-accent) 11%,white);border:1px solid color-mix(in srgb,var(--mxv-accent) 22%,white);flex:none}
.mxv-hero .mxv-icon{width:28px;height:28px;opacity:.92}.mxv-hero-copy{flex:1;min-width:0}.mxv-eyebrow{display:block;font-size:10px;letter-spacing:.16em;font-weight:850;color:var(--mxv-accent);margin-bottom:5px}.mxv-hero h3{font-size:clamp(19px,2.1vw,26px);letter-spacing:-.035em;color:var(--mxv-ink);margin:0 0 4px}.mxv-hero p{font-size:13px;line-height:1.5;margin:0;color:var(--mxv-muted)}.mxv-hero-trailing{border:1px solid #dbe5ef;border-radius:50px;font-size:10px;font-weight:750;color:#62768b;background:#fff;padding:9px 12px;white-space:nowrap}
.mxv-workspace .mxv-icon{display:block;object-fit:contain;flex:none}.mxv-workspace .mxv-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #e8eef5}.mxv-workspace .mxv-panel-heading h3{margin:0!important;min-width:0;font-weight:780;line-height:1.3;color:#19344c}.mxv-panel-eyebrow{border:1px solid #e0e9f3;color:#687c90;background:#f6f9fc;border-radius:30px;padding:5px 10px;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.02em}
.mxv-workspace .mxv-elevated-panel{background:#fff;border:1px solid var(--mxv-border);border-radius:17px;box-shadow:0 7px 24px #182f4c0b;min-width:0;overflow:visible}.mxv-workspace .panel input:not([type=checkbox]):not([type=radio]),.mxv-workspace .panel select,.mxv-workspace .panel textarea{border-radius:10px;border-color:#cedce9;min-width:0}.mxv-workspace .panel :is(input,select,textarea):focus-visible{outline:2px solid var(--mxv-accent);outline-offset:2px}
.mxv-workspace .module-navigation.mxv-card-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start;background:transparent;border:0;margin:16px 0 20px;padding:0;overflow:visible}.mxv-navigation-card{min-width:0;background:#fff;border:1px solid var(--mxv-border);border-radius:18px;overflow:hidden;box-shadow:0 6px 22px #1336580a;transition:border-color .15s,box-shadow .15s}.mxv-navigation-card.mxv-card-expanded{border-color:color-mix(in srgb,var(--mxv-accent) 52%,#e7ecf5);box-shadow:0 11px 29px #18334e13;grid-column:span 2}.mxv-navigation-card .module-tab.mxv-choice{width:100%;max-width:none;display:flex;align-items:center;gap:13px;padding:17px 19px;border:0;border-radius:0;background:#fff;color:#193449!important;text-align:left;box-shadow:none;margin:0;font-size:inherit;white-space:normal}.mxv-navigation-card.mxv-card-expanded>.mxv-choice{background:linear-gradient(108deg,#fff,#f3f8fc);border-bottom:1px solid #e4edf5}.mxv-navigation-card .mxv-choice:hover,.mxv-secondary-navigation .mxv-choice:hover{background:#f5f9fd}.mxv-choice-symbol{width:42px;height:42px;display:grid;place-items:center;background:#ecf3fa;border:1px solid #dbe7f2;border-radius:13px;flex:none}.mxv-choice-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.mxv-choice-copy strong{font-size:14px;line-height:1.3;color:#17354b}.mxv-choice-copy small{font-size:11px;color:#698095;font-weight:500;line-height:1.35;white-space:normal}.mxv-choice-arrow{font-size:19px;opacity:.45}.mxv-card-expanded .mxv-choice-arrow{transform:rotate(180deg);opacity:.75}.mxv-navigation-card .module-view{padding:17px 18px 19px;background:#fcfdff;display:block;min-width:0}.mxv-navigation-card .module-view[hidden]{display:none!important}.mxv-navigation-card .module-view>.panel{margin:0 0 14px;box-shadow:none}.mxv-navigation-card .module-view>.panel:last-child{margin-bottom:0}.mxv-navigation-card .module-view>.grid2,.mxv-navigation-card .module-view>.grid3{min-width:0}
.mxv-workspace .mxv-secondary-navigation{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;border-bottom:0;padding:0;overflow:visible;align-items:stretch;margin-bottom:18px;min-width:0}.mxv-workspace .mxv-secondary-navigation .mxv-choice{display:flex!important;align-items:center;gap:10px;white-space:normal;min-width:0;min-height:70px;border:1px solid #dce6f0!important;border-radius:13px!important;padding:10px 12px!important;box-shadow:0 4px 15px #18314908;background:white;color:#2a4760!important;line-height:1.2}.mxv-workspace .mxv-secondary-navigation .mxv-choice.primary,.mxv-workspace .mxv-secondary-navigation .mxv-choice.active{border-color:color-mix(in srgb,var(--mxv-accent) 50%,#e5edf2)!important;background:#f1f7fd!important;box-shadow:0 5px 17px #184e6811}.mxv-secondary-navigation .mxv-choice-symbol{width:35px;height:35px;border-radius:10px}.mxv-secondary-navigation .mxv-choice .mxv-icon{width:17px;height:17px}.mxv-secondary-navigation .mxv-choice-copy strong{font-size:12px}.mxv-secondary-navigation .mxv-choice-copy small{font-size:10px}.mxv-secondary-navigation .mxv-choice-arrow{display:none}
.mxv-workspace.mxv-credit .credit-tabs{padding:0;overflow:visible}.mxv-workspace.mxv-credit .credit-tabs .credit-tab{border-bottom-width:1px}.mxv-workspace.mxv-credit .credit-workspace{border:1px solid #e0e7f1;border-radius:17px;background:#fff;padding:18px 20px;box-shadow:0 7px 20px #19375b0b}
.mxv-workspace .mxv-accordion-trigger{border:1px solid #d8e5ee;background:#fff;color:#246481;border-radius:10px;padding:8px 11px;cursor:pointer;font-size:11px;font-weight:750}.mxv-workspace .mxv-accordion-trigger:hover{background:#f0f7fc}.mxv-workspace .mxv-accordion-body[hidden]{display:none!important}.mxv-workspace .mxv-fiscal-accordion{margin-bottom:12px}.mxv-workspace .mxv-fiscal-accordion .mxv-panel-heading{margin-bottom:0;padding-bottom:0;border-bottom:0}.mxv-workspace .mxv-fiscal-accordion:has(.mxv-accordion-body:not([hidden])) .mxv-panel-heading{margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #e8eef5}.mxv-workspace .mxv-fiscal-accordion .mxv-panel-eyebrow{display:none}
.mxv-workspace #business-form .mxv-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 18px}.mxv-workspace #business-form .mxv-option-card{background:#f8fbfd;border:1px solid #dce6ef;border-radius:12px;padding:13px 14px;min-height:54px;line-height:1.35}.mxv-workspace #business-form .mxv-option-card:has(input:checked){border-color:#9bcec1;background:#f1faf7}.mxv-workspace #business-form .mxv-option-card:has(input:disabled){background:#f7f8fc;color:#68768b}.mxv-workspace .mxv-business-setting{border:1px solid #e1e8f1;border-radius:14px;background:#fafcff;margin:15px 0;padding:17px}.mxv-workspace .mxv-business-setting h3{margin-top:0}.mxv-workspace .mxv-business-setting a.btn{display:inline-flex;margin-top:9px}
.mxv-workspace.mxv-store .mxv-hero{margin-top:8px}.mxv-workspace .store-admin-card.mxv-store-card{position:relative;border-radius:18px;border-color:#dce6ef;box-shadow:0 6px 24px #17384c0c}.mxv-workspace .mxv-store-medallion{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#eef5fb;border:1px solid #deebf6;flex:none}.mxv-workspace .store-section-head:has(.mxv-store-medallion){align-items:center}.mxv-workspace .mxv-store-nav{border:1px solid #d8e6f0!important;border-radius:11px;padding:11px 15px!important;background:#fff}.mxv-workspace .mxv-store-nav.active{background:#ecf8f2;border-color:#83c6aa!important}.mxv-workspace .store-admin-tabs.mxv-secondary-navigation{display:flex;flex-wrap:wrap}
.mxv-workspace .role-cards .role-card{border-radius:14px;border:1px solid #e1e8f1;background:#f9fbff;padding:14px}.mxv-workspace .staff-actions .btn{border-radius:9px}.mxv-workspace .mxv-panel-heading h3{font-size:clamp(16px,1.6vw,19px)}
@media(max-width:900px){.mxv-hero-trailing{display:none}.mxv-workspace #business-form .mxv-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mxv-workspace .mxv-secondary-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}.mxv-navigation-card.mxv-card-expanded{grid-column:span 2}}
@media(max-width:620px){.mxv-hero{padding:16px;gap:11px;border-radius:14px}.mxv-hero-graphic{width:45px;height:45px;border-radius:12px}.mxv-hero .mxv-icon{width:22px;height:22px}.mxv-hero h3{font-size:19px}.mxv-hero p{font-size:12px}.mxv-eyebrow{font-size:9px}.mxv-workspace .module-navigation.mxv-card-navigation{grid-template-columns:1fr;gap:10px}.mxv-navigation-card.mxv-card-expanded{grid-column:span 1}.mxv-navigation-card .module-tab.mxv-choice{padding:13px}.mxv-navigation-card .module-view{padding:12px}.mxv-workspace .mxv-secondary-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mxv-workspace .mxv-secondary-navigation .mxv-choice{padding:9px!important;min-height:60px;gap:8px}.mxv-secondary-navigation .mxv-choice-symbol{width:29px;height:29px}.mxv-secondary-navigation .mxv-choice-copy strong{font-size:11px}.mxv-secondary-navigation .mxv-choice-copy small{font-size:9px}.mxv-workspace #business-form .mxv-module-grid{grid-template-columns:1fr}.mxv-workspace .mxv-panel-heading{flex-wrap:wrap}.mxv-workspace .mxv-panel-eyebrow{font-size:9px}}
@media print{.mxv-hero,.mxv-choice-symbol,.mxv-accordion-trigger,.mxv-panel-eyebrow{display:none!important}.mxv-workspace .mxv-elevated-panel{box-shadow:none;border:none}.mxv-workspace .mxv-navigation-card{box-shadow:none}}


/* Archivo: operational-workspaces.css */
/* MIONEXO 0.20.65: capa visual de lectura, sin alterar contratos de negocio */
.mx65-workspace{--mx65-border:#dce7ed;--mx65-ink:#16364c;--mx65-muted:#687c8b;--mx65-accent:#15658c}
.mx65-page-title{display:flex!important;align-items:center;gap:14px}
.mx65-title-icon{display:grid;place-items:center;flex:0 0 47px;height:47px;border:1px solid #d5e8e6;border-radius:15px;background:#eef8f6;box-shadow:0 5px 18px rgba(19,53,69,.05)}
.mx65-title-icon img{width:24px;height:24px}
.mx65-page-intro{background:linear-gradient(116deg,#f0f8f6,#f6f9ff 63%,#fff);border:1px solid var(--mx65-border);border-radius:17px;padding:22px 24px;margin:16px 0 14px;box-shadow:0 7px 24px rgba(21,46,62,.035)}
.mx65-page-intro h3{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:6px 0;color:var(--mx65-ink)}
.mx65-page-intro p{margin:0;line-height:1.5;color:var(--mx65-muted);font-size:13px}
.mx65-page-kicker{font-size:10px;letter-spacing:.15em;font-weight:800;color:#247f76}
.mx65-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:12px;margin:14px 0 20px}
.mx65-stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;min-width:0;min-height:110px;border:1px solid var(--mx65-border);background:#fff;border-radius:15px;padding:17px 18px;box-shadow:0 7px 23px rgba(22,54,76,.035);color:var(--mx65-ink);font-family:inherit;text-align:left}
.mx65-stat span{font-size:12px;font-weight:700;color:#557080}.mx65-stat strong{font-size:25px;line-height:1.16;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mx65-stat small{font-size:11px;color:#7c8f9d;line-height:1.35}
.mx65-stat-button{cursor:pointer;transition:border-color .14s,background .14s,transform .14s}.mx65-stat-button:hover{border-color:#8dc9c0;transform:translateY(-1px)}.mx65-stat-button[aria-pressed="true"],.mx65-stat-button:focus-visible{border-color:#267c7b;background:#effaf7;outline:2px solid transparent;box-shadow:0 0 0 2px rgba(38,124,123,.12)}
.mx65-filter-bar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:10px 0 16px}
.mx65-filter-bar label{flex:1 1 160px;min-width:0;display:grid;gap:5px;font-size:12px;font-weight:650;color:#426176}.mx65-filter-bar input,.mx65-filter-bar select{width:100%;height:40px;box-sizing:border-box;border:1px solid #d3e0e7;border-radius:10px;background:#fff;padding:7px 10px;color:#213e52;font:inherit}.mx65-filter-bar button{min-height:40px}
.mx65-inline-detail{min-width:140px;max-width:460px}.mx65-inline-detail summary{font-weight:650;cursor:pointer;color:#146d84;font-size:12px}.mx65-inline-detail div{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px;padding:10px;border-radius:9px;background:#f5f8fa;border:1px solid #e5edf2;font-size:12px;line-height:1.5}
.mx65-action-label{display:inline-block;max-width:250px;white-space:normal;line-height:1.3;background:#eef5fa;color:#245774;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:650}
.mx65-audit-table{overflow:auto}.mx65-audit-table tr[hidden],.mx65-company-list tr[hidden]{display:none!important}
.mx65-elevated{border-radius:16px!important;border:1px solid var(--mx65-border)!important;box-shadow:0 9px 28px rgba(17,50,70,.035)!important}
.mx65-report-toolbar{background:#fff;border:1px solid var(--mx65-border);padding:15px 17px;border-radius:14px}.mx65-report-toolbar>.btn{min-height:40px}
.mx65-workspace .print-report{box-shadow:0 8px 24px rgba(16,48,68,.06);border-radius:16px}
.mx65-workspace .report-total-grid>div{min-width:0}.mx65-workspace .report-total-grid>div strong{overflow-wrap:anywhere}
.mx65-stock-summary{margin:14px 0}.mx65-export-toolbar{border-radius:12px;padding:10px;display:flex;gap:10px;flex-wrap:wrap;background:#f6f9fb}
.mx65-company-list .table-actions{display:flex;gap:7px;flex-wrap:wrap}.mx65-company-list .tablewrap{border-radius:12px;overflow-x:auto}
.mx65-admin-link{display:flex!important;align-items:center;gap:13px;border:1px solid #e0eaf0!important;border-radius:13px!important;background:#fff!important;padding:16px!important}.mx65-admin-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:#eff7f7}.mx65-admin-icon img{width:19px;height:19px}
@media(max-width:680px){.mx65-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mx65-stat{min-height:94px;padding:12px}.mx65-stat strong{font-size:21px}.mx65-page-intro{padding:16px}.mx65-page-title{align-items:flex-start;gap:10px}.mx65-title-icon{flex-basis:38px;height:38px}.mx65-report-toolbar{padding:11px}.mx65-report-toolbar label{width:100%}.mx65-report-toolbar select{max-width:100%}
.mx65-company-list .tablewrap{border:0;overflow:visible}.mx65-company-list table,.mx65-company-list tbody{display:block;width:100%;min-width:0}.mx65-company-list thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}.mx65-company-list tr{display:grid!important;gap:0;border:1px solid var(--mx65-border);border-radius:14px;background:white;padding:10px 12px;margin:10px 0;box-shadow:0 6px 18px rgba(21,45,62,.035)}.mx65-company-list td{display:flex!important;align-items:start;justify-content:space-between;gap:8px;border:0!important;border-bottom:1px solid #f0f3f6!important;padding:9px 0!important;white-space:normal!important;min-width:0!important;text-align:right!important}.mx65-company-list td:before{content:attr(data-label);flex-shrink:0;text-align:left;color:#78909d;font-size:11px;font-weight:650}.mx65-company-list td:last-child{display:block!important;text-align:left!important;border-bottom:0!important}.mx65-company-list td:last-child:before{display:block;margin-bottom:8px}.mx65-company-list .table-actions{justify-content:flex-start}
}
@media(max-width:390px){.mx65-summary-grid{grid-template-columns:1fr 1fr}.mx65-stat strong{font-size:19px}.mx65-filter-bar label{flex-basis:100%}}
@media print{.mx65-page-intro,.mx65-summary-grid,.mx65-report-toolbar,.mx65-page-title .mx65-title-icon{display:none!important}.mx65-workspace .print-report{border:0!important;box-shadow:none!important;border-radius:0!important}}

@media(max-width:680px){
 .mx65-audit-table{overflow:visible!important;border:0!important}
 .mx65-audit-table table,.mx65-audit-table tbody{display:block!important;width:100%!important;min-width:0!important}
 .mx65-audit-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
 .mx65-audit-table #mx65-audit-list tr{display:grid!important;gap:0;min-width:0;border:1px solid #dce7ed;border-radius:13px;margin:9px 0;padding:10px 13px;background:#fff}
 .mx65-audit-table #mx65-audit-list tr[hidden]{display:none!important}
 .mx65-audit-table #mx65-audit-list td{display:flex!important;justify-content:space-between;align-items:start;gap:12px;border:0!important;border-bottom:1px solid #edf2f6!important;padding:8px 0!important;white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;text-align:right!important}
 .mx65-audit-table #mx65-audit-list td:last-child{border-bottom:0!important}
 .mx65-audit-table #mx65-audit-list td::before{content:attr(data-label)!important;display:block!important;font-size:11px!important;font-weight:700;flex:0 0 67px;text-align:left;color:#78909d}
 .mx65-inline-detail{min-width:0;max-width:100%}
}
.fiscal-cuf-detail{max-width:28ch}
.fiscal-cuf-detail summary{cursor:pointer;color:var(--blue,#176454);font-weight:600}
.fiscal-cuf-detail code{display:block;margin-top:6px;overflow-wrap:anywhere;white-space:normal;font-size:11px;line-height:1.5}


/* Archivo: horizontal-workspaces.css */
/* MIONEXO 0.20.66 · Navegación operativa horizontal, sin tarjetas verticales */
#page.mx66-workspace{--mx66-border:#dce5ef;--mx66-ink:#18324b;--mx66-active:#176454;--mx66-soft:#ecf7f2;max-width:1530px}
#page.mx66-workspace .page-title{margin:0 0 18px;align-items:flex-start}
#page.mx66-workspace .page-title h2{font-size:clamp(21px,2vw,26px);margin:0 0 5px}
#page.mx66-workspace .page-title p{font-size:12px;line-height:1.5}
#page.mx66-workspace .mxv-hero{display:none!important}
/* Native role=tab for catalog, delegated finance tab handlers for other three pages. */
#page.mx66-workspace .module-navigation.mx66-tabbar,
#page.mx66-workspace .finance-navigation .module-tabs.mx66-tabbar{
 display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important;
 gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:6px!important;margin:0!important;border:1px solid var(--mx66-border)!important;
 border-radius:13px!important;background:#e9eef4!important;
 box-shadow:none!important;scrollbar-width:thin!important;scroll-padding-inline:8px;
}
#page.mx66-workspace .finance-navigation.mx66-finance-nav{display:block!important;min-width:0!important;width:100%!important;margin:0 0 18px!important;padding:0!important}
#page.mx66-workspace .module-navigation.mx66-tabbar{margin-bottom:18px!important}
#page.mx66-workspace .mx66-tabbar>:is(.module-tab,.btn){
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 flex:0 0 auto!important;min-height:41px!important;min-width:0!important;
 padding:10px 16px!important;margin:0!important;border:1px solid transparent!important;
 border-radius:9px!important;background:transparent!important;color:#476077!important;
 box-shadow:none!important;font-size:12px!important;font-weight:650!important;
 line-height:1.2!important;white-space:nowrap!important;letter-spacing:0!important;
}
#page.mx66-workspace .mx66-tabbar>:is(.module-tab,.btn):hover{background:#f7fafc!important;color:#153b55!important}
#page.mx66-workspace .mx66-tabbar>.module-tab.active,
#page.mx66-workspace .mx66-tabbar>.btn.primary{
 border-color:#c8ded5!important;background:#fff!important;color:var(--mx66-active)!important;
 box-shadow:0 2px 7px #173d4e13!important;font-weight:800!important;
}
#page.mx66-workspace .mx66-tabbar>:is(.module-tab,.btn):focus-visible{outline:3px solid #5dbb9d!important;outline-offset:-2px!important}
#page.mx66-workspace .module-body.mx66-tab-content{display:block!important;width:100%!important;min-width:0!important}
#page.mx66-workspace .mx66-tab-content>.module-view{display:block;max-width:none!important;min-width:0!important}
#page.mx66-workspace .mx66-tab-content>.module-view[hidden]{display:none!important}
#page.mx66-workspace .mx66-tab-content .panel{width:100%!important;max-width:none!important;margin-bottom:13px!important}
#page.mx66-workspace .mx66-tab-content>.module-view>.panel:has(form){max-width:none!important}
#page.mx66-workspace .mx66-tab-content>.module-view>.panel form{max-width:880px}
/* Don't narrow actual grid/table areas, especially the full catalog product list. */
#page.mx66-workspace :is(.panel,.module-body,[data-fbo-section],.tablewrap){min-width:0}
#page.mx66-workspace .panel.mxv-elevated-panel{padding:18px 19px;border-radius:13px;box-shadow:0 3px 14px #193a5509}
#page.mx66-workspace .mxv-panel-heading{padding-bottom:10px!important;margin-bottom:14px!important}
#page.mx66-workspace .mxv-panel-eyebrow{display:none!important}
#page.mx66-workspace .finance-navigation~.panel,
#page.mx66-workspace .finance-navigation~section>.panel{max-width:none!important}
/* On purchases the finish form remains in place; inputs and submit are never re-created. */
#page.mx66-purchases .purchase-receive{max-width:none}
#page.mx66-purchases .purchase-find{max-width:960px}
/* Clients: summary of actually loaded rows + local-only filter. */
#page.mx66-customers .mx66-customer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 15px}
#page.mx66-customers .mx66-mini-stat{background:#f6f9fc;border:1px solid #e0e8f0;border-radius:11px;padding:11px 14px;display:flex;flex-direction:column;gap:5px}
#page.mx66-customers .mx66-mini-stat span{font-size:11px;color:#60738a}
#page.mx66-customers .mx66-mini-stat strong{font-size:21px;letter-spacing:-.04em;color:var(--mx66-ink)}
#page.mx66-customers .mx66-customer-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
#page.mx66-customers .mx66-customer-tools input{display:block;width:min(100%,480px);min-height:40px;padding:9px 12px;border:1px solid #cbdce9;border-radius:9px;background:#fff}
#page.mx66-customers .mx66-customer-count{font-size:11px;color:#61758c;white-space:nowrap}
#page.mx66-customers tr[hidden]{display:none!important}
#page.mx66-customers .form-actions{margin:0 0 10px;padding:0;border:0}
@media(max-width:760px){
 #page.mx66-workspace .page-title{margin-bottom:12px}
 #page.mx66-workspace .page-title h2{font-size:21px}
 #page.mx66-workspace .mx66-tabbar>:is(.module-tab,.btn){padding:10px 12px!important;font-size:11px!important;min-height:42px!important}
 #page.mx66-workspace .panel.mxv-elevated-panel{padding:14px 13px}
 #page.mx66-customers .mx66-customer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #page.mx66-customers .mx66-customer-tools{align-items:stretch;flex-direction:column}
 #page.mx66-customers .mx66-customer-tools input{width:100%}
 #page.mx66-customers .mx66-customer-count{white-space:normal}
}
@media(max-width:420px){#page.mx66-customers .mx66-customer-summary{grid-template-columns:1fr 1fr}#page.mx66-customers .mx66-mini-stat{padding:9px 10px}#page.mx66-customers .mx66-mini-stat strong{font-size:19px}}
@media print{#page.mx66-workspace .mx66-tabbar,#page.mx66-customers .mx66-customer-summary,#page.mx66-customers .mx66-customer-tools{display:none!important}}


/* Archivo: tenant-theme-067.css */
/* MIONEXO 0.20.67 — apariencia de empresa es la unica fuente del color de identidad.
   Verde nativo sigue igual; colores de marcas bancarias y estados semanticos no son tema. */
.workspace[data-theme] {
  --mx67-primary:var(--green);
  --mx67-primary-soft:color-mix(in srgb,var(--green) 9%,white);
  --mx67-primary-border:color-mix(in srgb,var(--green) 32%,#dfe7f0);
  --mx67-primary-focus:color-mix(in srgb,var(--green) 32%,transparent);
}
.workspace[data-theme=personalizado]{
  --mx67-primary-soft:color-mix(in srgb,var(--bg) 92%,var(--accent) 8%);
  --mx67-primary-border:color-mix(in srgb,var(--bg) 72%,var(--accent) 28%);
  --mx67-primary-focus:color-mix(in srgb,var(--accent) 32%,transparent);
}
.workspace[data-theme] #page.mxv-workspace{
  --mxv-accent:var(--mx67-primary);
  --mxv-border:var(--line);
  --mxv-ink:var(--ink);
  --mxv-muted:var(--muted);
}
.workspace[data-theme] #page.mx66-workspace{
  --mx66-active:var(--mx67-primary);
  --mx66-soft:var(--mx67-primary-soft);
  --mx66-border:var(--line);
  --mx66-ink:var(--ink);
}
.workspace[data-theme] #page.mx65-workspace{
  --mx65-accent:var(--mx67-primary);
  --mx65-border:var(--line);
  --mx65-ink:var(--ink);
}
/* Un unico encabezado compacto, sin segunda cabecera hero ni tarjetas de navegacion. */
.workspace[data-theme] #page.mxv-workspace>.mxv-hero{display:none!important}
.workspace[data-theme] #page.mxv-workspace>.page-title{margin-bottom:15px!important}
.workspace[data-theme] #page.mx67-workspace .module-navigation.mx66-tabbar,
.workspace[data-theme] #page.mx67-workspace .finance-navigation .module-tabs.mx66-tabbar,
.workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs{
  display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:5px!important;
  overflow-x:auto!important;overflow-y:hidden!important;width:100%!important;min-width:0!important;
  padding:5px!important;margin:0 0 17px!important;border:1px solid var(--line)!important;
  border-radius:12px!important;background:var(--mx67-primary-soft)!important;
  box-shadow:none!important;scrollbar-width:thin!important;
}
.workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs>:is(button,.credit-tab,.module-tab),
.workspace[data-theme] #page.mx67-workspace .mx66-tabbar>:is(.module-tab,.btn){
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  flex:0 0 auto!important;min-width:0!important;min-height:40px!important;
  padding:9px 13px!important;margin:0!important;border:1px solid transparent!important;
  border-radius:8px!important;background:transparent!important;color:var(--muted)!important;
  box-shadow:none!important;font-size:12px!important;font-weight:650!important;
  line-height:1.2!important;white-space:nowrap!important;
}
.workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs>:is(button,.credit-tab,.module-tab):is(.active,.primary,[aria-selected='true']),
.workspace[data-theme] #page.mx67-workspace .mx66-tabbar>.module-tab.active,
.workspace[data-theme] #page.mx67-workspace .mx66-tabbar>.btn.primary{
  background:var(--surface,#fff)!important;border-color:var(--mx67-primary-border)!important;
  color:var(--mx67-primary)!important;box-shadow:0 2px 7px #15263a12!important;
}
.workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs>:is(button,.credit-tab,.module-tab):focus-visible,
.workspace[data-theme] #page.mx67-workspace .mx66-tabbar>:is(.module-tab,.btn):focus-visible{
  outline:2px solid var(--mx67-primary)!important;outline-offset:-2px!important;
}
.workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs>:is(button,.credit-tab,.module-tab):hover,
.workspace[data-theme] #page.mx67-workspace .mx66-tabbar>:is(.module-tab,.btn):hover{
  color:var(--mx67-primary)!important;background:var(--surface,#fff)!important;
}
.workspace[data-theme] #page.mx67-workspace .mx66-tab-content>.module-view{width:100%!important;max-width:none!important}
.workspace[data-theme] #page.mx67-workspace .mx66-tab-content>.module-view[hidden]{display:none!important}
.workspace[data-theme] #page.mx67-workspace .mx66-tab-content .panel{max-width:none!important}
.workspace[data-theme] #page.mx67-workspace .mxv-panel-heading{margin-bottom:11px!important;padding-bottom:10px!important}
.workspace[data-theme] #page.mx67-workspace .mxv-panel-eyebrow{display:none!important}
/* Los componentes originales usan --green/--blue; completar los de capas visuales posteriores. */
.workspace[data-theme] #page .mxv-eyebrow,
.workspace[data-theme] #page .mx65-page-kicker,
.workspace[data-theme] #page .mx65-inline-detail summary,
.workspace[data-theme] #page .mxv-accordion-trigger,
.workspace[data-theme] #page .mx65-stat-button[aria-pressed='true'],
.workspace[data-theme] #page .mx65-action-label,
.workspace[data-theme] #page .mx65-admin-link:focus-visible{color:var(--mx67-primary)!important}
.workspace[data-theme] #page .mxv-hero:before{background:var(--mx67-primary)!important}
.workspace[data-theme] #page .mx65-title-icon,
.workspace[data-theme] #page .mxv-choice-symbol,
.workspace[data-theme] #page .mx65-admin-icon{background:var(--mx67-primary-soft)!important;border-color:var(--mx67-primary-border)!important}
.workspace[data-theme] #page .mx65-stat-button[aria-pressed='true'],
.workspace[data-theme] #page .mxv-option-card:has(input:checked),
.workspace[data-theme] #page .mxv-store-nav.active,
.workspace[data-theme] #page .mx65-stat-button:focus-visible{
  background:var(--mx67-primary-soft)!important;border-color:var(--mx67-primary-border)!important;
}
.workspace[data-theme] #page .mxv-elevated-panel :is(input,select,textarea):focus-visible,
.workspace[data-theme] #page .mxv-accordion-trigger:focus-visible{outline-color:var(--mx67-primary)!important}
.workspace[data-theme] #page .mx66-mini-stat{background:var(--mx67-primary-soft);border-color:var(--mx67-primary-border)}
.workspace[data-theme] #page .mx66-customer-tools input:focus-visible{outline:2px solid var(--mx67-primary)}
.workspace[data-theme] #page .mx65-page-intro{background:linear-gradient(115deg,var(--mx67-primary-soft),var(--surface,#fff))}
.workspace[data-theme] #page .mx65-stat-button:hover{border-color:var(--mx67-primary-border)}
/* Componentes anteriores que conservaban verde fijo en su estado de seleccion. */
.workspace[data-theme] .brand-choice:has(input:checked),
.workspace[data-theme] .lot-filter-card:is(:hover,.active){
  border-color:var(--mx67-primary)!important;background:var(--mx67-primary-soft)!important;
  box-shadow:0 0 0 2px var(--mx67-primary-focus)!important;
}
.workspace[data-theme] .pos-quantity{border-color:var(--mx67-primary-border);background:var(--mx67-primary-soft)}
.workspace[data-theme] .pos-quantity :is(input,.btn),
.workspace[data-theme] .pos-confirm-total{color:var(--mx67-primary)}
.workspace[data-theme] .credit-workspace .credit-preview{border-color:var(--mx67-primary-border);background:var(--mx67-primary-soft)}
.workspace[data-theme] .credit-workspace .credit-preview-schedule{border-color:var(--mx67-primary-border)}
.workspace[data-theme] .qr-integration-configure,
.workspace[data-theme] .qr-integration-configure:hover,
.workspace[data-theme] .qr-integration-configure.is-open{
  background:var(--mx67-primary-soft)!important;border-color:var(--mx67-primary-border)!important;
  color:var(--mx67-primary)!important;
}
.workspace[data-theme] .qr-integration-inner-tab.active{color:var(--mx67-primary)!important}
.workspace[data-theme] .qr-integration-card--expanded{border-color:var(--mx67-primary-border)}
/* Las marcas y estados (BNB verde, Baneco rojo, aprobado, error) conservan su significado. */
@media(max-width:700px){
 .workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs,
 .workspace[data-theme] #page.mx67-workspace .mx66-tabbar{scroll-snap-type:x proximity}
 .workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs>button{scroll-snap-align:start}
}
@media print{
 .workspace[data-theme] #page.mx67-workspace .mx67-secondary-tabs,
 .workspace[data-theme] #page.mx67-workspace .mx66-tabbar{display:none!important}
}
/* Focus feedback and legacy authorization labels must follow the company theme. */
.workspace[data-theme] :is(input,select,textarea):focus{
  border-color:var(--mx67-primary)!important;
  outline:2px solid var(--mx67-primary-focus)!important;
  box-shadow:none!important;
}
.workspace[data-theme] .auth-type{color:var(--mx67-primary)!important}
.workspace[data-theme] .lot-filter-card:focus-visible,
.workspace[data-theme] .pos-confirm-sale .btn.primary:focus-visible{
  outline:3px solid var(--mx67-primary)!important;
}
/* Persistent tenant palette across loading and module tab transitions. */
.workspace[data-theme=personalizado] #page .mx67-secondary-tabs,
.workspace[data-theme=personalizado] #page .mx66-tabbar,
.workspace[data-theme=personalizado] #page .module-tabs {
  background:color-mix(in srgb,var(--bg) 92%,var(--accent) 8%)!important;
  border-color:color-mix(in srgb,var(--bg) 72%,var(--accent) 28%)!important;
  box-shadow:none!important;
}
.workspace[data-theme=personalizado] #page :is(.mx67-secondary-tabs,.mx66-tabbar,.module-tabs) > :is(button,.module-tab,.credit-tab,.btn) {
  color:var(--ink,#15233b)!important;
}
.workspace[data-theme=personalizado] #page :is(.mx67-secondary-tabs,.mx66-tabbar,.module-tabs) > :is(button,.module-tab,.credit-tab,.btn):is(.active,.primary,[aria-selected=true]) {
  background:#fff!important;
  color:var(--nav)!important;
  border-color:var(--nav)!important;
  box-shadow:none!important;
}
.workspace[data-theme=personalizado] #page :is(.mx67-secondary-tabs,.mx66-tabbar,.module-tabs) > :is(button,.module-tab,.credit-tab,.btn):hover {
  color:var(--nav)!important;
}
.workspace[data-theme=personalizado] #page :is(.btn,.module-tab,.credit-tab):is(:active,:focus-visible){
  box-shadow:none!important;
}
.workspace[data-theme=personalizado] #page.mx67-workspace .mx67-secondary-tabs>:is(button,.credit-tab,.module-tab):is(.active,.primary,[aria-selected='true']),
.workspace[data-theme=personalizado] #page.mx67-workspace .mx66-tabbar>:is(.module-tab,.btn):is(.active,.primary,[aria-selected='true']){
  box-shadow:none!important;
}
.brand-color-control{display:flex;gap:8px;align-items:center}
.brand-color-control input[type=color]{flex:1;min-width:45px}
.brand-color-control input[type=text]{width:108px;min-width:0;font:600 13px ui-monospace,SFMono-Regular,monospace;text-transform:uppercase}
.workspace[data-theme=personalizado] #sidebar :is(.brand-wordmark,.navitem,.nav-section>summary,.nav-group-label,.aside-company-eyebrow,.aside-company-name,.aside-version){
  color:var(--menu-text,#fff)!important;opacity:1!important;
}
.workspace[data-theme=personalizado] #sidebar .navitem.active,
.workspace[data-theme=personalizado] #sidebar .nav-section[open]>summary{
  color:var(--menu-text,#fff)!important;
}
.brand-palette-preview::after{content:'Vista previa del menú';background:var(--preview-primary);color:var(--preview-menu-text);padding:10px 14px;border-radius:8px;font-weight:700}


/* Archivo: nexo-secure-brand.css */
/* MIONEXO 0.20.69 — Marca corporativa MIONEXO. Default only; tenant themes remain independent. */
:root{--nexo-navy:#0A2540;--nexo-blue:#1BA2FF;--nexo-teal:#22C7C7;--nexo-violet:#6F5BFF;--nexo-paper:#F3F7FB}
.workspace[data-theme=nexo]{
  --green:var(--nexo-blue);--blue:var(--nexo-blue);--accent:var(--nexo-teal);--nav:var(--nexo-navy);
  --mx67-primary:var(--nexo-blue);--mx67-primary-soft:#eaf6ff;--mx67-primary-border:#b6dbff;
  --mx67-primary-focus:rgba(27,162,255,.3);
  --mxv-accent:var(--nexo-blue);--mx65-accent:var(--nexo-blue);--mx66-active:var(--nexo-blue);
  --mx66-soft:#eaf6ff;--mxv-border:#dce7f4;
}
.workspace[data-theme=nexo] #sidebar{background:linear-gradient(180deg,#071e38,#0A2540 52%,#092b53)}
.workspace[data-theme=nexo] .navitem.active{background:#153f73;color:white;box-shadow:inset 3px 0 #22C7C7}
.workspace[data-theme=nexo] .navitem:hover{background:#123b69;color:#fff}
.workspace[data-theme=nexo] .nav-section summary:hover{color:#e8fbff}
.workspace[data-theme=nexo] .btn.primary,
.workspace[data-theme=nexo] button.btn.primary{background:#137fd6!important;border-color:#137fd6!important;color:white!important}
.workspace[data-theme=nexo] .btn.primary:hover{background:#0964b3!important;border-color:#0964b3!important}
.workspace[data-theme=nexo] .brand-mark:has(img){background:white!important;padding:3px!important;border-radius:10px;box-shadow:0 5px 14px #00122838}
.workspace[data-theme=nexo] .brand-mark img{object-fit:contain!important}
.workspace[data-theme=nexo] .profile-pill{background:#e8f6ff;color:#1365a7!important;border:1px solid #bee1ff}
.workspace[data-theme=nexo] .brand-wordmark{color:#fff}
.workspace[data-theme=nexo] .module-tab.active,
.workspace[data-theme=nexo] .mx67-secondary-tabs>:is(.active,[aria-selected=true]),
.workspace[data-theme=nexo] .brand-choice:has(input:checked){color:#0b65a7!important;border-color:#a6d8ff!important}
.workspace[data-theme=nexo] input:focus-visible,
.workspace[data-theme=nexo] select:focus-visible,
.workspace[data-theme=nexo] button:focus-visible{outline-color:#6F5BFF}
.workspace[data-theme=nexo] #page .mxv-hero:before{background:var(--nexo-blue)!important}
.workspace[data-theme=nexo] #page .mxv-eyebrow,.workspace[data-theme=nexo] #page .mx65-page-kicker{color:#157cce!important}
.workspace[data-theme=nexo] #page .mx65-stat-button[aria-pressed=true]{background:#eaf6ff!important;color:#126da7!important}
.workspace[data-theme=nexo] .brand-choice:has(input:checked){background:#eaf6ff!important}
/* The blue/turquoise/violet brand is not a replacement for success, warning or error semantics. */
/* Login and platform screens outside a company retain the new corporate accent. */
body:not(:has(.workspace[data-theme])) .login .btn.primary{background:#137fd6!important;border-color:#137fd6!important}
body:not(:has(.workspace[data-theme])) .login .hero .accent{color:#22C7C7}
@media (max-width:640px){.workspace[data-theme=nexo] #sidebar{background:#0A2540}}

/* Pantallas de inicio de sesión y recuperación, marca corporativa Nexo Seguro. */
.login .hero{background:radial-gradient(circle at 65% 20%,#185baa66,transparent 45%),linear-gradient(150deg,#061933,#0A2540)!important}
.login .hero .nexo03-login-logo{display:block;width:min(310px,75%);height:auto;max-height:300px;object-fit:contain;object-position:left center;margin:0 0 16px;padding:10px;background:white;border-radius:16px;box-shadow:0 12px 35px #03112644}
.login .hero .subtitle{color:#bce9ff}
.login .hero .sm{color:#b9d3ed}
.login .btn.primary{background:#137fd6!important;border-color:#137fd6!important}
.login .btn.primary:hover{background:#095dba!important;border-color:#095dba!important}
.login .field input:focus-visible{border-color:#1BA2FF!important;outline-color:#6F5BFF!important}


/* Archivo: subscriptions.css */
/* El módulo consume los tokens de apariencia de la empresa; los colores de alerta son semánticos. */
.subscription-dashboard-chip{display:inline-flex;gap:11px;align-items:center;margin:0 0 16px auto;padding:10px 15px;border:1px solid var(--line,#dbe5ee);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#0A2540);font:inherit;text-align:left;cursor:pointer;box-shadow:0 5px 20px rgba(12,35,62,.05)}
.subscription-dashboard-chip strong{display:block;font-size:13px}.subscription-dashboard-chip small{display:block;color:var(--muted,#64748b);font-size:11px}.subscription-dashboard-icon{font-size:23px;color:var(--mx67-primary,var(--green,#1BA2FF))}
.subscription-dashboard-chip:hover{border-color:var(--mx67-primary,var(--green,#1BA2FF))}.subscription-overview{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.subscription-primary-card{border-top:4px solid var(--mx67-primary,var(--green,#1BA2FF))}.subscription-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--muted,#64748b)}
.subscription-state{background:var(--surface-soft,#edf5fa);border-radius:20px;padding:5px 11px;color:var(--ink,#0A2540)}.subscription-primary-card h3{font-size:24px;margin:15px 0 2px}
.subscription-main-number{font-size:29px;font-weight:850;color:var(--mx67-primary,var(--green,#1BA2FF));margin:16px 0 10px;line-height:1.2}.subscription-main-number--warning,.subscription-main-number--notice{color:#ad6906}.subscription-main-number--critical,.subscription-main-number--expired,.subscription-main-number--suspended{color:#b42332}
.subscription-primary-card p,.subscription-detail-card p{color:var(--muted,#64748b)}.subscription-advice{border-left:3px solid #d97706;padding:8px 12px;background:#fff7ed}.subscription-detail-card dl{margin:0}.subscription-detail-card dl div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line,#e2e8f0);padding:12px 0}.subscription-detail-card dt{color:var(--muted,#64748b)}.subscription-detail-card dd{margin:0;font-weight:750;text-align:right}
.subscription-features{margin-bottom:14px}.subscription-feature-grid{display:flex;gap:10px;flex-wrap:wrap}.subscription-feature{border-radius:12px;padding:9px 12px;background:var(--surface-soft,#eaf4ff);border:1px solid var(--line,#dce7f2);font-size:12px}
.subscription-history{padding-left:0;list-style:none}.subscription-history li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line,#e2e8f0)}.subscription-history small{color:var(--muted,#64748b)}
.subscription-admin-pulse{margin:18px 0}.subscription-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.subscription-admin-stats>div{padding:16px;background:var(--surface-soft,#f3f7fb);border:1px solid var(--line,#dee7ef);border-radius:12px}.subscription-admin-stats strong{display:block;font-size:26px;color:var(--ink,#0A2540)}.subscription-admin-stats span{font-size:12px;color:var(--muted,#64748b)}
.subscription-admin-panel{margin-top:18px}.subscription-admin-toolbar{display:flex;gap:10px;margin:12px 0 18px;flex-wrap:wrap}.subscription-admin-toolbar input{flex:1;min-width:180px}.subscription-license-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border-bottom:1px solid var(--line,#e5edf3)}.subscription-license-row strong,.subscription-license-row small{display:block}.subscription-license-row small{font-size:11px;color:var(--muted,#64748b)}.subscription-license-row[hidden]{display:none}
.subscription-status{display:inline-block;padding:4px 9px;border-radius:8px;background:var(--surface-soft,#f3f7fb);font-size:12px;font-weight:800;color:var(--ink,#0A2540)}.subscription-status--notice,.subscription-status--warning{color:#985a0b;background:#fff4d9}.subscription-status--critical,.subscription-status--expired,.subscription-status--suspended{color:#b42332;background:#fff1f2}
#sub-admin-form{background:var(--surface-soft,#f6f9fc);border-radius:16px;padding:18px;margin-top:18px;border:1px solid var(--line,#e2e8f0)}#sub-admin-form[hidden]{display:none}.subscription-edit-name{font-size:16px;font-weight:700}
@media(min-width:900px){.summary-screen>.subscription-dashboard-chip{float:right;margin-top:-62px;position:relative;z-index:1}}@media(max-width:650px){.subscription-overview{grid-template-columns:1fr}.subscription-license-row{grid-template-columns:1fr auto}.subscription-license-row>div:nth-child(2){grid-column:1}.subscription-admin-stats{grid-template-columns:1fr}.subscription-dashboard-chip{margin:12px 0}.subscription-main-number{font-size:24px}}

.subscription-dashboard-chip--notice,.subscription-dashboard-chip--warning{border-color:#e9bc77}.subscription-dashboard-chip--critical,.subscription-dashboard-chip--expired,.subscription-dashboard-chip--suspended{border-color:#eb929c}.subscription-dashboard-chip--critical .subscription-dashboard-icon,.subscription-dashboard-chip--expired .subscription-dashboard-icon{color:#b42332}

/* 0.20.71: membresía visible en la cabecera global de todos los perfiles. */
.subscription-topbar-slot{display:inline-flex;align-items:center;min-width:0;flex-shrink:0}
.subscription-topbar-slot:empty{display:none}
.subscription-topbar-indicator{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line,#dbe5ee);border-radius:11px;padding:7px 10px;background:var(--surface,#fff);color:var(--ink,#0A2540);font:inherit;text-align:left;min-height:38px}
button.subscription-topbar-indicator{cursor:pointer}
button.subscription-topbar-indicator:hover{border-color:var(--mx67-primary,var(--green,#1BA2FF));background:var(--surface-soft,#f3f7fb)}
.subscription-topbar-clock{font-size:20px;color:var(--mx67-primary,var(--green,#1BA2FF));line-height:1}
.subscription-topbar-copy strong,.subscription-topbar-copy small{display:block;line-height:1.25}
.subscription-topbar-copy strong{font-size:12px;font-weight:800}
.subscription-topbar-copy small{font-size:10px;color:var(--muted,#64748b)}
.subscription-topbar-indicator--notice,.subscription-topbar-indicator--warning{border-color:#e9bc77;background:#fffaf0}
.subscription-topbar-indicator--notice .subscription-topbar-clock,.subscription-topbar-indicator--warning .subscription-topbar-clock{color:#a65c08}
.subscription-topbar-indicator--critical,.subscription-topbar-indicator--expired,.subscription-topbar-indicator--suspended{border-color:#eb929c;background:#fff4f4}
.subscription-topbar-indicator--critical .subscription-topbar-clock,.subscription-topbar-indicator--expired .subscription-topbar-clock,.subscription-topbar-indicator--suspended .subscription-topbar-clock{color:#b42332}
.subscription-date-hint{font-size:11px;color:var(--muted,#64748b);margin-top:3px}
@media(max-width:850px){.subscription-topbar-indicator{padding:6px 8px;gap:5px}.subscription-topbar-copy strong{font-size:11px}.subscription-topbar-copy small{display:none}.subscription-topbar-clock{font-size:17px}}
@media(max-width:520px){.workspace .topbar{padding:0 8px}.subscription-topbar-indicator{min-height:32px;padding:5px 6px}.subscription-topbar-copy strong{font-size:10px}.subscription-topbar-indicator>span:last-child[aria-hidden="true"]{display:none}.workspace .topbar .header-actions .profile-pill{display:none}.workspace .topbar .context-header strong{max-width:31vw}}

/* Estado del SIN en la cabecera global, exactamente junto a Membresía. */
.siat-topbar-slot{display:inline-flex;align-items:center;min-width:0;flex-shrink:0}
.siat-topbar-slot:empty{display:none}
.siat-topbar-indicator{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #d7e3ed;border-radius:11px;padding:7px 10px;min-height:38px;background:#f8fafc;color:#324354}
.siat-topbar-dot{width:9px;height:9px;border-radius:50%;background:#8994a4;flex-shrink:0;box-shadow:0 0 0 3px #8994a417}
.siat-topbar-copy strong,.siat-topbar-copy small{display:block;line-height:1.25}
.siat-topbar-copy strong{font-size:12px;font-weight:800}
.siat-topbar-copy small{font-size:10px;color:#637185}
.siat-topbar-indicator--operativo{border-color:#b7dfcd;background:#f2fbf6;color:#11643d}
.siat-topbar-indicator--operativo .siat-topbar-dot{background:#17935d;box-shadow:0 0 0 3px #17935d1c}
.siat-topbar-indicator--degradado{border-color:#f3d19b;background:#fff9ec;color:#895509}
.siat-topbar-indicator--degradado .siat-topbar-dot{background:#db931b;box-shadow:0 0 0 3px #db931b20}
.siat-topbar-indicator--caido{border-color:#ecb6b8;background:#fff4f4;color:#ab2d36}
.siat-topbar-indicator--caido .siat-topbar-dot{background:#d73a48;box-shadow:0 0 0 3px #d73a4820}
@media(max-width:850px){.siat-topbar-indicator{padding:6px 8px;min-height:35px}.siat-topbar-copy strong{font-size:11px}.siat-topbar-copy small{display:none}}
@media(max-width:520px){.siat-topbar-indicator{padding:5px 6px;min-height:32px;gap:5px}.siat-topbar-copy strong{font-size:10px}.siat-topbar-dot{width:7px;height:7px}}


/* Archivo: atomic-render.css */
/* MIONEXO 0.20.72 · Impedir mostrar vistas intermedias antes de ordenar pestañas. */
#page[data-rendering="true"] { position: relative; min-height: 220px; }
#page[data-rendering="true"] > :not(.skeleton) { visibility: hidden !important; }
#page[data-rendering="true"]:not(:has(> .skeleton))::before {
  content: "Preparando tu espacio…";
  visibility: visible; position: absolute; z-index: 1;
  inset: 18px auto auto 14px; display: block; padding: 12px 18px;
  border: 1px solid var(--line, #dce5ef); border-radius: 12px;
  background: var(--surface, #fff); color: var(--muted, #587084);
  font-size: 13px; font-weight: 600;
}


/* Archivo: mobile-table-fixes.css */
/* MIONEXO 0.20.80 — Evitar tarjetas recortadas y pie superpuesto en móvil.
   La altura máxima 570px del panel aplica solamente a tablas desplazables de escritorio.
   Las tablas convertidas en tarjetas deben participar en el flujo normal del documento. */
@media (max-width:760px){
  #page .panel .tablewrap[data-mobile-layout="cards"]{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
  #page .panel .tablewrap[data-mobile-layout="cards"] table,
  #page .panel .tablewrap[data-mobile-layout="cards"] tbody{
    height:auto!important;
    max-height:none!important;
  }
  #page:has([data-panel-key="cash-history"]) > footer{
    display:block;
    clear:both;
    position:static;
    margin-top:24px;
    padding-top:16px;
  }
  #page [data-panel-key="cash-history"]{min-width:0}
  #page [data-panel-key="cash-history"] .cash-history-table tbody{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  #page [data-panel-key="cash-history"] .cash-history-table tbody tr{
    display:grid!important;
    width:100%;
    min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"terminal terminal" "cashier state" "opening opening" "counted counted" "result result" "action action";
    gap:10px 14px;
    padding:14px;
    margin:0;
    border:1px solid var(--line,#dce5ec);
    border-radius:13px;
    background:var(--surface,#fff);
    box-shadow:0 3px 10px rgba(15,33,51,.04);
  }
  #page [data-panel-key="cash-history"] .cash-history-table tbody tr td{
    display:block!important;
    min-width:0!important;
    max-width:100%;
    width:auto!important;
    grid-template-columns:none!important;
    padding:0!important;
    margin:0;
    border:0!important;
    line-height:1.35;
    white-space:normal!important;
    overflow-wrap:anywhere;
    font-size:13px;
    text-align:left!important;
    align-self:start;
  }
  #page [data-panel-key="cash-history"] .cash-history-table td::before{
    content:attr(data-label);
    display:block!important;
    font-size:11px;
    line-height:1.3;
    font-weight:500;
    color:var(--muted,#68768a);
    margin-bottom:3px;
  }
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(1){grid-area:terminal;font-size:15px;font-weight:750;padding-bottom:9px!important;border-bottom:1px solid var(--line,#dce5ec)!important}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(1)::before{display:none!important}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(2){grid-area:cashier}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(3){grid-area:opening}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(4){grid-area:state}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(5){grid-area:counted}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(6){grid-area:result}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(7){grid-area:action;padding-top:8px!important;border-top:1px solid var(--line,#dce5ec)!important}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(7)::before{display:none!important}
  #page [data-panel-key="cash-history"] .cash-history-table td:nth-child(7) .btn{
    width:100%;
    min-height:44px;
    white-space:normal;
    font-size:13px;
  }
  #page [data-panel-key="cash-history"] .cash-history-table .row-note{
    display:block;
    margin-top:4px;
    font-size:11px;
    line-height:1.3;
    font-weight:400;
    color:var(--muted,#68768a);
  }
  #page [data-panel-key="cash-history"] .cash-history-table td.empty{
    grid-column:1/-1;
  }
}


/* Archivo: restaurant.css */
#page[data-module=restaurant] .restaurant-shell{display:grid;gap:16px}
.restaurant-tabs,.restaurant-filters{display:flex;gap:8px;flex-wrap:wrap}
.restaurant-tabs button,.restaurant-filters button{border:1px solid var(--border,#d7e2db);background:var(--surface,#fff);color:inherit;border-radius:9px;padding:10px 14px;min-height:42px}
.restaurant-tabs button.active,.restaurant-filters button.active{background:#176b4b;color:white;border-color:#176b4b}
.restaurant-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px}
.restaurant-card{background:var(--surface,#fff);border:1px solid var(--border,#dae3dd);border-radius:14px;padding:18px;min-width:0}
.restaurant-card h3{margin:0 0 14px}.restaurant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:16px}
.restaurant-product{border:1px solid var(--border,#dce5df);background:var(--surface,#fff);border-radius:11px;text-align:left;min-height:108px;padding:12px;color:inherit;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.restaurant-product:hover{border-color:#176b4b}.restaurant-product img{width:40px;height:40px;object-fit:cover;border-radius:7px}.restaurant-product strong{line-height:1.25}.restaurant-product small{opacity:.7}
.restaurant-order-lines{min-height:150px}.restaurant-line,.restaurant-ticket-line{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border,#e3e9e5)}
.restaurant-line button{min-width:32px;min-height:32px;border:1px solid var(--border,#dce5df);border-radius:7px;background:transparent;color:inherit}.restaurant-total{display:flex;justify-content:space-between;font-size:20px;font-weight:700;margin:17px 0}
.restaurant-formrow{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.restaurant-formrow label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:110px}.restaurant-formrow input,.restaurant-formrow select,.restaurant-card input{min-height:40px;padding:9px;border:1px solid var(--border,#cfd8d2);border-radius:8px;background:var(--surface,#fff);color:inherit;max-width:100%}
.restaurant-main-action{border:0;border-radius:9px;background:#176b4b;color:#fff;padding:12px 16px;min-height:44px;font-weight:700}.restaurant-main-action:disabled{opacity:.5}.restaurant-muted{opacity:.7;font-size:13px}.restaurant-tickets{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.restaurant-ticket{border:1px solid var(--border,#dce5df);background:var(--surface,#fff);border-radius:12px;padding:15px}.restaurant-ticket h3{margin:0 0 8px}.restaurant-ticket .restaurant-formrow{align-items:center}.restaurant-ticket button{min-height:38px}.restaurant-tag{display:inline-block;background:#e4f4ea;color:#145b40;padding:5px 8px;border-radius:20px;font-size:12px}.restaurant-owner-item{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border,#dce5df)}.restaurant-owner-item input[type=checkbox]{width:20px;height:20px;min-height:20px}.restaurant-owner-item input[type=text]{max-width:120px}.restaurant-owner-item span{flex:1}.restaurant-error{color:#b52626}
@media(max-width:850px){.restaurant-layout{grid-template-columns:1fr}}@media(max-width:480px){.restaurant-card{padding:12px}.restaurant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.restaurant-wide{width:100%}.restaurant-search{margin-top:12px}.restaurant-between{justify-content:space-between}
/* V20.215 – superficies exclusivas de Restaurante, sin modificar estilos de Comercio. */
.workspace[data-operation="restaurant"] .page{max-width:none}
.workspace[data-operation="restaurant"] .nav-section .navitem{font-size:13px}
.restaurant-workspace{--rest-green:#0e7563;--rest-dark:#12382f;--rest-line:#dce7e4;--rest-muted:#607a72;color:#19372f;max-width:1380px;margin:0 auto;padding-bottom:40px}
.restaurant-workspace *{box-sizing:border-box}
.restaurant-workspace button{cursor:pointer}
.rest-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800;color:#4bcba4}
.rest-hero{display:flex;align-items:center;justify-content:space-between;padding:32px 36px;background:linear-gradient(112deg,#104335,#167f67);color:#fff;border-radius:22px;gap:24px;overflow:hidden;box-shadow:0 16px 38px rgba(18,75,59,.12)}
.rest-hero h2{font-size:clamp(21px,2.5vw,34px);line-height:1.13;margin:12px 0 8px;color:#fff;letter-spacing:-.035em}
.rest-hero p{color:#d4efe3;margin:0 0 20px;max-width:610px}
.rest-hero-emoji{font-size:100px;filter:drop-shadow(0 8px 15px rgba(0,0,0,.18));transform:rotate(-8deg)}
.rest-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.restaurant-primary,.restaurant-outline{padding:10px 15px;border-radius:10px;border:1px solid #0f7965;font-weight:700;font-size:13px;min-height:41px}
.restaurant-primary{background:#0b7965;color:#fff}.restaurant-outline{background:#fff;color:#0f6050;border-color:#b9d8cc}
.rest-hero .restaurant-primary{background:#fff;color:#0e5d48;border-color:#fff}.rest-hero .restaurant-outline{background:transparent;color:#fff;border-color:#6ab09e}
.restaurant-primary:hover{background:#096753}.restaurant-primary:disabled{opacity:.55;cursor:not-allowed}
.rest-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:17px 0}
.rest-stat{background:#fff;border:1px solid var(--rest-line);padding:19px;border-radius:15px;box-shadow:0 5px 12px rgba(13,62,48,.04);min-width:0}
.rest-stat>span{display:block;font-size:12px;font-weight:650;color:#60796f;margin-bottom:10px}
.rest-stat>strong{display:block;font-size:clamp(22px,2.8vw,31px);line-height:1.1;color:#143d31;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rest-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}
.rest-shortcuts button{border:1px solid var(--rest-line);background:#fff;border-radius:14px;padding:17px;text-align:left;font-weight:750;color:#204b40;min-height:100px;transition:transform .15s,border-color .15s}
.rest-shortcuts button:hover{transform:translateY(-2px);border-color:#65b5a0}.rest-shortcuts span{display:block;font-size:29px;margin-bottom:5px}
.restaurant-panel{background:#fff;border:1px solid var(--rest-line);border-radius:17px;padding:20px;min-width:0;box-shadow:0 4px 18px rgba(14,45,34,.035)}
.restaurant-panel h3{font-size:17px;color:#173d34;margin:0 0 12px;font-weight:800}
.rest-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.rest-section-head h3{margin:0 0 3px;color:#173b33}.rest-section-head p{font-size:13px;color:var(--rest-muted);margin:0}
.rest-flag{font-size:10px;font-weight:800;padding:6px 9px;border-radius:20px;background:#e7f7ef;color:#197352;white-space:nowrap}
.restaurant-order-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,340px);gap:16px;align-items:start}
.rest-cart-panel{position:sticky;top:14px}
.restaurant-workspace input:not([type="checkbox"]):not([type="file"]),.restaurant-workspace select{width:100%;min-width:0;min-height:43px;background:#fff;border:1px solid #ccdcd6;border-radius:9px;color:#243a33;padding:10px 12px;font-size:14px}
.restaurant-workspace input:focus,.restaurant-workspace select:focus{outline:2px solid #7bceaf;outline-offset:1px}
.restaurant-workspace label:not(.rest-inline-check):not(.rest-check):not(.rest-photo-btn){display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#476b61}
.rest-formrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.rest-form{display:grid;gap:13px}.rest-hint{color:#657b74;font-size:13px;line-height:1.45}
.rest-input{margin:8px 0 13px}.rest-filter{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 15px}.rest-filter button{padding:7px 12px;border:1px solid #cdded7;background:#f8fbf9;border-radius:20px;color:#42695c;font-weight:700}
.rest-filter button.active{background:#e1f3ea;border-color:#2c9474;color:#155d44}
.rest-dishes{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
.rest-dish{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid #d5e5de;border-radius:13px;overflow:hidden;padding:0 0 12px;gap:5px;color:#20453a;min-width:0}
.rest-dish:hover{border-color:#129370;box-shadow:0 4px 17px rgba(12,81,61,.10)}
.rest-dish>img,.rest-dish-placeholder{height:104px;width:100%;object-fit:cover;background:#edf7f0;display:grid;place-items:center;font-size:40px}
.rest-dish>strong,.rest-dish>small,.rest-dish>b{margin:0 11px;max-width:calc(100% - 22px);overflow-wrap:anywhere}.rest-dish>strong{font-size:13px;line-height:1.3}.rest-dish>small{color:#698276}.rest-dish>b{margin-top:auto;font-size:15px;color:#0f7355}
.rest-cart{min-height:115px;margin:13px 0;border-top:1px solid #e7efec;border-bottom:1px solid #e7efec;padding:10px 0}
.rest-cart-line{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:13px;margin:5px 0}.rest-cart-line>div{display:flex;align-items:center;gap:6px;font-weight:750;white-space:nowrap}.rest-cart-line button{background:#f1f9f5;border:1px solid #a9d4c2;border-radius:7px;min-width:30px;height:30px;color:#146149}
.rest-cart-total{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:15px 0;font-size:13px}.rest-cart-total strong{font-size:22px;color:#12553f;white-space:nowrap}.rest-block{width:100%}
.rest-tickets{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:13px}
.rest-ticket{background:#fff;border:1px solid #d8e5df;border-top:4px solid #16856c;border-radius:14px;padding:16px;min-width:0}
.rest-ticket>header,.rest-ticket>footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.rest-ticket>header strong{font-size:16px}
.rest-status{font-size:11px;border-radius:20px;background:#eff5f2;color:#3f6555;padding:5px 8px;font-weight:800}.rest-ready{background:#e4f9e9;color:#126d38}.rest-pending{background:#fff3d6;color:#976900}.rest-preparing{background:#e7f2ff;color:#23609c}
.rest-ticket-meta{font-size:12px;color:#6a7d76;margin:10px 0}.rest-ticket-lines{border-top:1px solid #e6eeeb;border-bottom:1px solid #e6eeeb;padding:9px 0;margin:10px 0}.rest-ticket-lines>div{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:12px}.rest-ticket-lines small{color:#6e8279}.rest-note{font-size:12px;background:#f5f8f5;border-radius:7px;padding:8px;color:#47645a}.rest-ticket footer{flex-wrap:wrap;margin-top:10px}
.rest-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.rest-manage-dish,.rest-list-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6efea;padding:11px 0}.rest-manage-dish:last-child,.rest-list-row:last-child{border-bottom:0}.rest-manage-photo{width:52px;height:52px;flex-shrink:0;border-radius:10px;background:#eef8f0;display:grid;place-items:center;font-size:24px;overflow:hidden}.rest-manage-photo img{width:100%;height:100%;object-fit:cover}.rest-manage-body,.rest-list-row>div{min-width:0;flex:1}.rest-manage-body strong,.rest-list-row strong{display:block;color:#193f31;font-size:13px}.rest-manage-body small,.rest-list-row small{display:block;color:#6b7e74;margin:3px 0 7px;font-size:12px}.rest-manage-dish .restaurant-outline,.rest-list-row .restaurant-outline{min-height:34px;padding:6px 10px}.rest-check,.rest-inline-check{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.rest-photo-btn{border:1px solid #b9d8cc;border-radius:9px;padding:7px 12px;font-weight:700;font-size:12px;cursor:pointer}.rest-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.rest-table-card{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;border:1px solid #d1e5d9;border-radius:12px;padding:14px 8px;background:#f7fcf8}.rest-table-card span{font-size:30px}.rest-table-card small{color:#667e71}.rest-inactive{opacity:.55}
.rest-empty{text-align:center;padding:33px 14px;color:#587468}.rest-empty>span{font-size:45px;display:block}.rest-empty h3{margin:8px 0;color:#1b5541}.rest-empty p{margin:3px 0 15px}.rest-modal-backdrop{position:fixed;z-index:1000;inset:0;background:rgba(6,26,21,.68);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.rest-modal{width:min(100%,480px);max-height:90vh;overflow:auto;background:#fff;border-radius:17px;padding:20px;color:#17382f;box-shadow:0 20px 55px rgba(0,0,0,.24)}.rest-modal>header{display:flex;align-items:center;justify-content:space-between;gap:9px}.rest-modal>header h3{margin:0}.rest-amount{font-size:27px;font-weight:800;margin:10px 0 16px;color:#146c51}
@media(max-width:1050px){.restaurant-order-layout{grid-template-columns:1fr}.rest-cart-panel{position:static}}
@media(max-width:760px){.rest-two-col{grid-template-columns:1fr}.rest-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-hero{padding:25px}.rest-hero-emoji{font-size:70px}}
@media(max-width:420px){.restaurant-panel{padding:14px}.rest-stat{padding:13px}.rest-stat>strong{font-size:23px}.rest-hero{padding:19px}.rest-hero-emoji{display:none}.rest-formrow{grid-template-columns:1fr}.rest-dishes{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Los elementos condicionales permanecen realmente ocultos aunque tengan layout flex. */
.restaurant-workspace [hidden],.rest-modal [hidden]{display:none!important}
.rest-customer-picker{width:min(100%,680px)}
.rest-customer-picker [hidden]{display:none!important}
.rest-customer-picker [data-invoice-search]>label{display:block;margin:16px 0 10px}
.rest-customer-picker [data-customer-query]{display:block;width:100%;margin-top:6px}
.rest-customer-results{max-height:min(48vh,430px);overflow-y:auto;border:1px solid #d6e5ec;border-radius:9px}
.rest-customer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid #e6edf1}
.rest-customer-row:last-child{border-bottom:0}
.rest-customer-row strong,.rest-customer-row small{display:block}
.rest-customer-row small{color:#587468}
.rest-customer-picker .rest-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
.rest-other-methods{display:grid;gap:7px;padding:8px 0 3px}
.rest-other-methods label{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.restaurant-workspace textarea{width:100%;min-height:80px;border:1px solid #ccdcd6;border-radius:9px;padding:10px 12px;font-family:inherit;font-size:14px;line-height:1.4;resize:vertical}
.rest-choice-picker{padding:12px 14px;border:1px solid #16856c;background:#f4fbf7;border-radius:12px;margin:8px 0 14px;width:max-content;max-width:100%;box-shadow:0 6px 18px #062a7815}
.rest-choice-picker strong{display:block;font-size:15px}.rest-choice-picker p{margin:4px 0 8px}.rest-choice-picker>div{display:flex;gap:7px;flex-wrap:wrap}.rest-choice-picker>div button{font-size:14px;min-height:40px}.rest-choice-cancel{border:0;background:none;padding:7px 0 0;color:#375e50;cursor:pointer}
.rest-options-editor{margin:16px 0}.rest-cash-dishes{max-width:650px;margin:8px 0 18px}.rest-cash-dishes>div{display:grid;grid-template-columns:minmax(0,1fr) 65px 100px;gap:8px;padding:8px 0;border-bottom:1px solid #e6eeeb}.rest-cash-dishes b,.rest-cash-dishes strong{text-align:right}
.rest-handoff .rest-actions button{flex:1 1 145px}
@media print{.rest-choice-picker,.rest-options-editor,.rest-handoff{display:none!important}}
/* Carta con cupos, ticket y cuadre gastronómico. */
.rest-pos-dish:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.rest-stock-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0 18px}
.rest-stock-form>label{min-width:155px;flex:1}.rest-stock-form>.rest-inline-check{flex:0 0 auto;align-self:center}
.rest-stock-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:8px;color:#49675b;font-size:12px}
.rest-stock-list>div{padding:10px;border:1px solid #dce9e1;border-radius:9px;background:#f7faf8}
.rest-cash-report{display:grid;gap:8px;max-width:530px}.rest-cash-report>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e6eeeb}
.rest-cash-report b{font-variant-numeric:tabular-nums;color:#163f34}.rest-cash-report hr{border:0;border-top:1px solid #cfddd5;width:100%;margin:2px 0}.rest-cash-report .rest-cash-difference{font-size:18px;font-weight:800}
@media(min-width:850px){#rest-cash-result .restaurant-panel:has(> .rest-cash-report){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:30px;align-items:start}#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>h3:first-child,#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>p,#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>.rest-ledger-actions{grid-column:1/-1}#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>.rest-cash-report{grid-column:1;grid-row:3/5;max-width:none}#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>h3:not(:first-child),#rest-cash-result .restaurant-panel:has(> .rest-cash-report)>.rest-cash-dishes{grid-column:2;margin-top:0;max-width:none}}
@media print{.workspace[data-operation="restaurant"] #sidebar,.workspace[data-operation="restaurant"] .topbar,.workspace[data-operation="restaurant"] #page>*:not(.restaurant-workspace),.restaurant-workspace #restaurant-content>*:not(#rest-cash-result),#rest-cash-result button{display:none!important}.workspace[data-operation="restaurant"] #page,.restaurant-workspace,#rest-cash-result{max-width:none;padding:0;margin:0;box-shadow:none}}
/* V20.216 POS gastronómico independiente — carta visual y pedido en una sola pantalla. */
.workspace[data-operation="restaurant"] .restaurant-workspace{max-width:1520px;--rest-green:#147b62}
.workspace[data-operation="restaurant"] #page{padding-top:18px}
.rest-pos-shell{display:grid;gap:16px}
.rest-pos-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--rest-line);border-radius:18px;padding:21px 24px}
.rest-pos-toolbar h2{margin:4px 0;color:#12362d;font-size:clamp(21px,2vw,28px);letter-spacing:-.028em;line-height:1.18}
.rest-pos-toolbar p{margin:0;color:#658076;font-size:13px}
.rest-pos-kicker{font-size:10px;font-weight:850;letter-spacing:.14em;color:#197b65}
.rest-pos-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rest-pos-cash-indicator{font-size:12px;font-weight:800;padding:9px 12px;border-radius:12px;white-space:nowrap}
.rest-pos-cash-indicator.is-open{background:#e7f8ed;color:#177449}.rest-pos-cash-indicator.is-closed{background:#fff5e3;color:#9c6321}
.rest-pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(345px,405px);align-items:start;gap:16px}
.rest-pos-menu,.rest-pos-ticket{min-width:0}
.rest-pos-menu{padding:23px}
.rest-pos-menu #rest-search{min-height:46px;background:#f8fbfa;font-size:14px}
.rest-pos-menu .rest-filter{margin:9px 0 18px}
.rest-pos-menu .rest-filter button{border-radius:9px;padding:9px 14px}
.rest-pos-menu .rest-filter button.active{background:#0c7961;border-color:#0c7961;color:#fff}
.rest-pos-dishes{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:13px}
.rest-pos-dish{position:relative;display:flex;flex-direction:column;min-height:216px;padding:0 0 15px;gap:0;border-radius:15px;border:1px solid #d7e5df;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.025);transition:box-shadow .16s,transform .16s,border-color .16s}
.rest-pos-dish:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(6,89,67,.13)}
.rest-pos-dish.in-cart{border-color:#12866b;box-shadow:0 0 0 2px rgba(18,134,107,.11)}
.rest-pos-dish>img,.rest-pos-dish>.rest-dish-placeholder{width:100%;height:126px;object-fit:cover;border-radius:14px 14px 0 0;background:linear-gradient(145deg,#e5f4ee,#f1f7ea)}
.rest-pos-dish>.rest-dish-placeholder{font-size:46px}
.rest-pos-dish-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 15px 0;flex:1;min-width:0}
.rest-pos-dish-text strong{color:#173e33;font-size:14px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.rest-pos-dish-text small{font-size:11px;color:#7a9288}
.rest-pos-dish-text b{color:#0d7159;font-size:16px;margin-top:auto;padding-top:5px}
.rest-pos-add{position:absolute;right:9px;top:103px;width:35px;height:35px;border:3px solid #fff;background:#0c7e61;border-radius:50%;color:#fff;font-size:24px;line-height:30px;text-align:center;box-shadow:0 3px 8px rgba(0,0,0,.13)}
.rest-pos-ticket{position:sticky;top:12px;padding:20px 22px}
.rest-pos-ticket-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4eeea;padding-bottom:11px;margin-bottom:12px}
.rest-pos-ticket-heading span{font-size:11px;font-weight:750;color:#779186}
.rest-pos-ticket-heading h3{margin:4px 0 0;color:#113e31;font-size:22px}
.rest-pos-ticket-heading>span{font-size:28px}
.rest-pos-ticket .rest-cart{min-height:155px;max-height:320px;overflow:auto;margin:7px 0 12px}
.rest-pos-order-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;font-size:12px;color:#395d50}
.rest-clear,.rest-pos-remove{color:#ad5146;background:none;border:0;font-weight:800}
.rest-pos-cart-item{padding:10px 0;border-bottom:1px dashed #e0e9e4}
.rest-pos-cart-line,.rest-pos-cart-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rest-pos-cart-line strong{font-size:13px;color:#1d4b3c}.rest-pos-cart-line b{font-size:13px;color:#147757;white-space:nowrap}
.rest-pos-cart-bottom{margin-top:8px}
.rest-pos-cart-bottom>input{width:100%;min-width:20px;min-height:32px!important;font-size:12px!important;padding:6px 8px!important}
.rest-pos-qty{display:flex;align-items:center;gap:3px;flex-shrink:0}
.rest-pos-qty button{width:28px;height:28px;border:1px solid #c5dbcf;border-radius:7px;background:#eff9f3;color:#155c45;font-size:17px}
.rest-pos-qty span{min-width:24px;text-align:center;font-size:13px;font-weight:800}
.rest-pos-remove{font-size:20px;flex-shrink:0}
.rest-pos-empty{height:140px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#879b92;text-align:center;font-size:28px}
.rest-pos-empty strong{font-size:13px;color:#47695a}.rest-pos-empty span{font-size:12px;max-width:230px}
.rest-pos-ticket .rest-cart-total{padding:12px 0;border-top:1px solid #dce8e1;margin:14px 0}
.rest-pos-ticket .rest-cart-total strong{font-size:26px}
.rest-pos-checkout-actions{display:grid;grid-template-columns:1fr;gap:8px}
.rest-pos-checkout-actions button{font-size:13px;padding:10px;min-height:49px}
.rest-pos-pending{padding:21px 24px}
.rest-pos-pending-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:11px}
.rest-pos-open-order{display:grid;gap:5px;background:#fbfdfb;border:1px solid #d8e7dc;padding:13px;border-radius:12px;min-width:0}
.rest-pos-open-order>span{font-size:11px;color:#238566;font-weight:750}.rest-pos-open-order>strong{color:#174635;font-size:14px}
.rest-pos-open-order>small{color:#738578;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rest-pos-open-order>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:6px}
.rest-pos-open-order button{min-height:35px;padding:6px 13px;font-size:12px}
.rest-pos-pay-modal{width:min(95vw,550px)}
.rest-pos-pay-modal>header{border-bottom:1px solid #e1e9e3;padding-bottom:12px}
.rest-pos-pay-modal .rest-amount{background:#e8f7f0;border-radius:14px;text-align:center;padding:15px;margin:12px 0;font-size:32px}
.rest-pay-label{display:block;font-weight:750;font-size:12px;color:#49655b;margin-bottom:8px}
.rest-pay-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rest-pay-methods label{position:relative;cursor:pointer;display:block!important}
.rest-pay-methods input{position:absolute;opacity:0}
.rest-pay-methods span{display:flex;justify-content:center;align-items:center;min-height:47px;padding:8px;white-space:nowrap;border:1px solid #d6e1dc;border-radius:9px;background:#f8fbf9;font-size:12px;font-weight:800;color:#466657}
.rest-pay-methods input:checked+span{border-color:#148669;background:#e1f4e9;color:#0e6751;box-shadow:0 0 0 1px #148669}
.rest-counter-pay{border-top:1px solid #dce8e3;margin-top:16px;padding-top:16px;display:grid;gap:10px}.rest-counter-pay h3{margin:0}.rest-counter-pay>label{display:grid;gap:6px}.rest-counter-pay .rest-inline-check{display:flex;align-items:center}.rest-inline-total{background:#eaf6f1;border:1px solid #d5e9e0;border-radius:9px;padding:12px}.rest-inline-total span{display:block;color:#55746a;font-size:12px}.rest-inline-total strong{font-size:27px;color:#10644f}.rest-inline-checkout{margin-top:16px}.rest-inline-pay{padding:17px;background:#fff;border:1px solid #cdded5;border-radius:12px}.rest-inline-pay>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.rest-inline-pay h3{margin:4px 0}.rest-complete-lines{margin:18px 0}.rest-complete-lines>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #e9efec}.rest-complete-lines strong,.rest-complete-lines small{display:block}.rest-complete-lines small{color:#667a71;margin-top:3px}.rest-complete-lines b{white-space:nowrap}.rest-complete-buttons{display:grid;gap:8px}.rest-complete-buttons>button,.rest-sale-complete .sale-close-fiscal-action>button,.rest-sale-complete .sale-receipt-footer>button{min-height:42px;width:100%}.rest-sale-complete .sale-close-fiscal-action{margin-top:20px;padding-top:18px;border-top:1px solid #e1e9e4}.rest-sale-complete .sale-close-fiscal-action p{margin:7px 0 12px}.rest-sale-complete .sale-receipt-footer{display:grid;gap:8px;margin-top:18px}
.rest-mixed-amounts{display:grid;gap:7px}.rest-mixed-amounts[hidden]{display:none}.rest-mixed-amounts label{display:grid;gap:4px}.rest-counter-pay details summary,.rest-inline-pay details summary{cursor:pointer;color:#526a80;font-size:12px}.rest-counter-pay .rest-pos-checkout-actions{grid-template-columns:1fr}.rest-inline-checkout .rest-pos-qr-panel[hidden]{display:none}
.rest-pos-qr-panel{background:#f5fafa;border:1px solid #cae1d6;border-radius:12px;padding:13px;text-align:center}
.rest-pos-qr-panel>#rest-qr-information{font-size:12px;font-weight:750;color:#346b58;margin-bottom:9px}
.rest-pos-qr-panel #rest-qr-display{display:flex;align-items:center;flex-direction:column;gap:8px}
.rest-qr-image{width:210px;height:210px;max-width:100%;object-fit:contain;background:#fff;border:1px solid #cbded3;padding:10px;border-radius:10px}
.rest-pos-qr-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:9px}


.rest-pos-qr-controls button{font-size:12px;min-height:38px}
@media(max-width:1180px){.rest-pos-layout{grid-template-columns:minmax(0,1fr) minmax(305px,360px)}.rest-pos-dishes{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))}}
@media(max-width:760px){.rest-pos-layout{grid-template-columns:1fr}.rest-pos-ticket{position:static}.rest-pos-toolbar{align-items:flex-start;flex-direction:column}.rest-pos-dishes{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
@media(max-width:540px){.rest-pos-toolbar{padding:16px}.rest-pos-toolbar h2{font-size:21px}.rest-pos-toolbar-actions{justify-content:space-between;width:100%}.rest-pos-menu,.rest-pos-pending,.rest-pos-ticket{padding:15px}.rest-pos-dishes{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rest-pos-dish{min-height:188px}.rest-pos-dish>img,.rest-pos-dish>.rest-dish-placeholder{height:105px}.rest-pos-add{top:87px;right:7px;width:29px;height:29px;font-size:21px;line-height:24px}.rest-pos-dish-text{padding:9px 10px}.rest-pos-dish-text strong{font-size:12px}.rest-pos-checkout-actions{grid-template-columns:1fr}.rest-pos-pending-grid{grid-template-columns:1fr 1fr}.rest-pos-pay-modal{width:100%;padding:15px}}

.rest-pos-mobile-basket{display:none}
@media(max-width:540px){.rest-pos-shell{padding-bottom:65px}.rest-pos-mobile-basket{display:block;position:fixed;bottom:0;left:0;right:0;z-index:24;padding:9px 14px;background:rgba(255,255,255,.96);box-shadow:0 -6px 25px rgba(8,44,32,.12);border-top:1px solid #cfe0d7}.rest-pos-mobile-basket button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;background:#087a60;border:0;border-radius:10px;color:#fff;padding:14px 17px;text-align:left;font-size:13px;font-weight:750}.rest-pos-mobile-basket strong{font-size:17px;white-space:nowrap}.rest-pos-mobile-basket b{background:#fff;color:#087a60;border-radius:50%;padding:3px 7px;margin-left:5px}}

/* Ventas y facturas de restaurante: consulta operativa del cobro original. */
.rest-sales-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:3px 0 18px}
.rest-sales-heading h2{font-size:24px;letter-spacing:-.025em;margin:4px 0;color:#173d34}.rest-sales-heading p{font-size:13px;color:var(--rest-muted);margin:0}
.rest-sales-kicker{display:block;font-size:10px;letter-spacing:.1em;font-weight:800;color:#427666}
.rest-sales-tabs{display:flex;gap:6px;border-bottom:1px solid var(--rest-line);margin-bottom:16px}
.rest-sales-tabs button{border:0;background:transparent;color:#59776c;font-weight:750;padding:11px 15px;border-bottom:3px solid transparent}
.rest-sales-tabs button.active{color:#0b6952;border-bottom-color:#0b8064}.rest-sales-tabs span{font-size:11px;color:#668474;background:#e9f3ed;border-radius:12px;padding:3px 7px;margin-left:4px}
.rest-sales-toolbar{display:grid;grid-template-columns:auto minmax(210px,1fr) minmax(145px,180px) minmax(145px,180px);gap:10px;align-items:end;margin-bottom:12px}
.rest-sales-toolbar label{font-size:11px!important}.rest-sales-toolbar input,.rest-sales-toolbar select{min-height:39px!important}
.rest-sales-period{display:flex;gap:3px;padding:3px;border:1px solid var(--rest-line);background:#f5faf7;border-radius:9px}
.rest-sales-period button{background:none;border:0;border-radius:6px;padding:9px 12px;color:#4b6a60;font-weight:750;white-space:nowrap}.rest-sales-period button.active{color:#fff;background:#0e7962}
.rest-sales-summary{display:flex;align-items:center;gap:12px;font-size:12px;color:#688076;margin-bottom:10px}.rest-sales-summary strong{color:#204e3d;font-size:14px}
.rest-sales-layout{display:grid;grid-template-columns:minmax(280px,38%) minmax(0,1fr);gap:14px;align-items:start}
.rest-sale-list{border:1px solid var(--rest-line);background:#fff;border-radius:14px;max-height:690px;overflow:auto;min-height:180px}
.rest-sale-row{display:flex;align-items:start;justify-content:space-between;gap:12px;text-align:left;width:100%;padding:13px 14px;border:0;border-bottom:1px solid #e7eeea;background:#fff;color:#1f4639}
.rest-sale-row:hover,.rest-sale-row.active{background:#edf8f2}.rest-sale-row.active{box-shadow:inset 3px 0 #0e8062}
.rest-sale-row>span:first-child{min-width:0}.rest-sale-row strong,.rest-sale-row small{display:block}.rest-sale-row strong{font-size:13px}.rest-sale-row small{font-size:11px;color:#6e8278;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.rest-sale-row-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0;font-size:13px}.rest-sale-row-right b{white-space:nowrap}
.rest-fiscal{display:inline-block;font-size:10px;font-weight:800;font-style:normal;border-radius:7px;padding:5px 7px;white-space:nowrap}.rest-fiscal-issued{background:#e2f5e9;color:#116b43}.rest-fiscal-pending{background:#fff3d9;color:#875e0b}.rest-fiscal-attention{background:#fce8e7;color:#a63731}.rest-fiscal-neutral{background:#eef3f2;color:#657c75}
.rest-sale-detail{padding:0;overflow:hidden}.rest-sale-detail-top{padding:19px 20px 15px;background:#f2f8f5;border-bottom:1px solid var(--rest-line)}.rest-sale-detail-top h3{font-size:22px;margin:5px 0}.rest-sale-detail-top p{font-size:12px;color:#657a70;margin:0 0 11px}
.rest-sale-lines{padding:5px 19px}.rest-sale-line{display:grid;grid-template-columns:minmax(0,1fr) 45px 85px 92px;gap:8px;align-items:start;padding:9px 0;border-bottom:1px solid #ecf1ee;font-size:12px}.rest-sale-line>span:not(:first-child),.rest-sale-line>b{text-align:right}.rest-sale-line strong,.rest-sale-line small{display:block}.rest-sale-line small{font-size:11px;color:#78897f;margin-top:3px}.rest-sale-line-head{color:#698076;font-size:10px;font-weight:800}
.rest-sale-total{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:#eaf6ef;color:#164e38;font-weight:800}.rest-sale-total strong{font-size:21px}
.rest-sale-payment{padding:13px 20px;border-bottom:1px solid var(--rest-line)}.rest-sale-payment h4{font-size:12px;margin:0 0 9px}.rest-sale-payment>div{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:12px}.rest-sale-payment span{color:#698178}.rest-sale-payment b{text-align:right;overflow-wrap:anywhere}
.rest-sale-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:12px 20px}.rest-sale-actions .restaurant-outline{min-height:35px;padding:7px 10px;font-size:11px}.rest-sale-detail>.rest-hint{padding:0 20px 12px;margin:0}
.rest-invoice-toolbar{grid-template-columns:minmax(230px,430px) auto;justify-content:space-between}.rest-invoice-list{padding:0 18px}.rest-invoice-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;border-bottom:1px solid var(--rest-line);padding:15px 0}.rest-invoice-row:last-child{border:0}.rest-invoice-identity{min-width:0}.rest-invoice-identity strong,.rest-invoice-identity small{display:block}.rest-invoice-identity strong{font-size:14px;margin:4px 0}.rest-invoice-identity small{font-size:11px;color:#70857c}.rest-invoice-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap;font-size:13px}.rest-invoice-row .rest-sale-actions{padding:0}
@media(max-width:950px){.rest-sales-toolbar{grid-template-columns:1fr 1fr}.rest-sales-layout{grid-template-columns:1fr}.rest-sale-list{max-height:300px}.rest-invoice-row{grid-template-columns:minmax(0,1fr) auto}.rest-invoice-row .rest-sale-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:560px){.rest-sales-heading{align-items:flex-start}.rest-sales-toolbar{grid-template-columns:1fr 1fr}.rest-sales-toolbar label:nth-child(2){grid-column:1/-1;grid-row:1}.rest-sales-period{grid-column:1/-1}.rest-sale-line{grid-template-columns:minmax(0,1fr) 32px 65px 75px;gap:4px;font-size:11px}.rest-sale-lines{padding:5px 11px}.rest-sale-row small{max-width:175px}.rest-invoice-toolbar{grid-template-columns:1fr}.rest-invoice-row{gap:8px}}

/* Registro de ventas del restaurante: libro compacto + comprobante. */
.rest-ledger-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:8px 0 22px;color:#142e40}
.rest-ledger-heading h2{font-size:30px;letter-spacing:-.035em;margin:0 0 4px;color:#142e40}
.rest-ledger-heading p,.rest-ledger-total>span{font-size:12px;color:#688097;margin:0}
.rest-ledger-total{text-align:right;min-width:180px}.rest-ledger-total strong{display:block;font-size:27px;font-weight:720;color:#142e40;font-variant-numeric:tabular-nums;margin-top:3px}
.rest-ledger-tabs,.rest-ledger-period{display:flex;align-items:center;gap:20px;border-bottom:1px solid #dae2e9}
.rest-ledger-tabs button,.rest-ledger-period button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 0;color:#637d92;font-weight:650}
.rest-ledger-tabs button.active,.rest-ledger-period button.active{border-color:#1369b4;color:#153c64}
.rest-ledger-tabs span{font-size:11px;padding:2px 6px;background:#edf3f7;border-radius:9px;margin-left:3px}
.rest-ledger-period{margin:8px 0 15px;border:0;gap:16px}.rest-ledger-period span{font-size:11px;color:#70879b}.rest-ledger-period .rest-ledger-refresh{margin-left:auto}
.rest-ledger-query{display:flex;gap:12px;position:relative;margin-bottom:24px}.restaurant-workspace .rest-ledger-query>input{flex:1;min-height:45px;border-radius:4px;font-size:13px;background:#fff}
.rest-ledger-query details{min-width:100px}.rest-ledger-query summary{list-style:none;display:grid;place-items:center;height:45px;padding:0 14px;background:#fff;border:1px solid #d6e0e9;border-radius:4px;color:#263f58;font-size:12px;font-weight:700;cursor:pointer}
.rest-ledger-query summary::-webkit-details-marker{display:none}.rest-ledger-query details[open] summary{border-color:#4085ba}
.rest-ledger-query details>div{position:absolute;right:0;top:50px;width:min(380px,100%);z-index:10;background:white;border:1px solid #cddde7;box-shadow:0 15px 36px #173b531c;border-radius:9px;padding:15px;display:grid;gap:10px}
.rest-ledger-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.9fr);gap:22px;align-items:start;color:#193048}
.rest-ledger-book{min-width:0}.rest-ledger-columns,.rest-ledger-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.05fr) 110px;gap:16px}
.rest-ledger-columns{font-size:10px;color:#698093;padding:0 10px 12px}.rest-ledger-columns span:last-child{text-align:right}
.rest-ledger-row{width:100%;text-align:left;background:none;color:#1b3249;padding:15px 10px;min-height:84px;border:0;border-top:1px solid #dce5eb;align-items:start;font-size:12px}
.rest-ledger-row:hover,.rest-ledger-row.active{background:#eaf2f9}.rest-ledger-row.active{box-shadow:inset 2px 0 #2268a9}
.rest-ledger-row span{min-width:0}.rest-ledger-row strong,.rest-ledger-row small,.rest-ledger-row time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rest-ledger-row strong{font-size:13px;font-weight:750}.rest-ledger-row small,.rest-ledger-row time{font-size:11px;color:#647c94;margin-top:4px}.rest-ledger-row>b{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rest-ledger-slip{min-width:0;background:#fff;border:1px solid #d5e0e8;border-radius:5px;padding:17px 20px;box-shadow:0 5px 12px #122a3c09}
.rest-ledger-slip-top{display:flex;justify-content:space-between;font-size:10px;color:#3d607b;letter-spacing:.06em}.rest-ledger-detail-tabs{display:flex;gap:20px;border-bottom:1px solid #d6e1e9;margin:12px 0 20px}
.rest-ledger-detail-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 0;color:#5b7790;font-size:12px}.rest-ledger-detail-tabs button.active{color:#13599b;border-color:#216db2}
.rest-ledger-receipt-head{text-align:center;display:grid;gap:6px;margin:24px 0 26px}.rest-ledger-receipt-head strong{font-size:15px}.rest-ledger-receipt-head b{font-size:20px}.rest-ledger-receipt-head time,.rest-ledger-receipt-head span{font-size:11px;color:#70869a}
.rest-ledger-buyer{border-top:1px dashed #dce5eb;border-bottom:1px dashed #dce5eb;padding:14px 0;margin:0 0 7px}.rest-ledger-buyer strong,.rest-ledger-buyer small{display:block}.rest-ledger-buyer strong{font-size:12px}.rest-ledger-buyer small{margin-top:3px;font-size:11px;color:#637a91}
.rest-ledger-items>div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0;font-size:12px}.rest-ledger-items small{display:block;font-size:11px;color:#688299;margin-top:3px}.rest-ledger-items b{white-space:nowrap;font-variant-numeric:tabular-nums}
.rest-ledger-grand{display:flex;justify-content:space-between;border-top:1px solid #1e364b;padding:15px 0 18px;font-size:13px}.rest-ledger-grand strong{font-size:18px;font-variant-numeric:tabular-nums}
.rest-ledger-payment{display:grid;gap:8px;padding:0 0 16px;border-bottom:1px dashed #dce5eb}.rest-ledger-payment>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.rest-ledger-payment b{white-space:nowrap}
.rest-ledger-fiscal{margin-top:15px;font-size:12px}.rest-ledger-fiscal strong{color:#254e70}.rest-ledger-fiscal p{font-size:11px;color:#647f97;margin:5px 0 0}
.rest-ledger-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #e4ebef;margin-top:16px}.rest-ledger-actions button{min-height:34px;padding:6px 10px;font-size:11px}
.rest-ledger-timeline{padding:0 0 0 19px;margin:12px 0 22px;border-left:1px solid #d7e4ed;list-style:none}.rest-ledger-timeline li{position:relative;margin:0 0 18px;font-size:12px}.rest-ledger-timeline li:before{content:'';position:absolute;left:-23px;top:3px;width:7px;height:7px;background:#2674a8;border-radius:50%}.rest-ledger-timeline strong,.rest-ledger-timeline time{display:block}.rest-ledger-timeline time{font-size:11px;color:#72889a;margin-top:3px}
@media(max-width:1100px){.rest-ledger-grid{grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:12px}.rest-ledger-columns,.rest-ledger-row{grid-template-columns:minmax(0,1fr) 90px}.rest-ledger-columns span:nth-child(2),.rest-ledger-row>span:nth-child(2){display:none}}
@media(max-width:760px){.rest-ledger-grid{grid-template-columns:1fr}.rest-ledger-slip{max-width:100%}.rest-ledger-heading h2{font-size:24px}.rest-ledger-total strong{font-size:20px}}

/* Historial fiscal del restaurante, con acciones según documento disponible. */
.rest-invoices-head{margin:8px 0 18px;color:#183246}.rest-invoices-head h2{font-size:26px;margin:0 0 5px}.rest-invoices-head p{font-size:12px;color:#6a8193;margin:0}
.rest-invoice-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.rest-invoice-metrics>div{padding:15px;background:white;border:1px solid #d9e4ec;border-radius:11px}.rest-invoice-metrics span{display:block;color:#6e8194;font-size:11px}.rest-invoice-metrics strong{display:block;color:#17334e;font-size:22px;margin-top:9px}
.rest-invoice-panel{background:#fff;border:1px solid #d9e4ec;border-radius:11px;padding:17px 18px}.rest-invoice-panel>header{display:flex;align-items:start;justify-content:space-between;gap:15px}.rest-invoice-panel h3{margin:0;font-size:16px}.rest-invoice-panel header p{margin:5px 0 15px;font-size:11px;color:#71869a}
.rest-invoice-search{display:block!important;max-width:470px;color:#5f7890!important;font-size:11px!important;margin:5px 0 11px}.restaurant-workspace .rest-invoice-search input{margin-top:4px;border-radius:5px}
.rest-invoice-table{overflow-x:auto}.rest-invoice-table-head,.rest-invoice-entry{display:grid;grid-template-columns:minmax(95px,1fr) minmax(100px,.85fr) minmax(100px,1.05fr) 85px minmax(110px,1fr) minmax(95px,.9fr) minmax(160px,1.45fr);gap:10px;align-items:start;min-width:960px}
.rest-invoice-table-head{background:#f3f7f7;border:1px solid #e0e8ed;font-size:10px;color:#657e8e;padding:11px 10px}.rest-invoice-entry{border-bottom:1px solid #e5ecf0;padding:13px 10px;color:#1a354b;font-size:11px}.rest-invoice-entry>div,.rest-invoice-entry>span{min-width:0;overflow-wrap:anywhere}.rest-invoice-entry strong,.rest-invoice-entry small{display:block}.rest-invoice-entry small{font-size:10px;color:#72889a;margin-top:4px}.rest-invoice-entry>b{white-space:nowrap;font-variant-numeric:tabular-nums}
.rest-invoice-entry-actions{display:flex;flex-wrap:wrap;gap:5px}.rest-invoice-entry-actions a,.rest-invoice-entry-actions button{font-size:10px;min-height:30px;padding:6px 8px;border:1px solid #b8cddd;border-radius:5px;background:#fff;color:#24516f;text-decoration:none;font-weight:650}.rest-invoice-entry-actions .restaurant-primary{color:#fff;background:#0b7965;border-color:#0b7965}
@media(max-width:730px){.rest-invoice-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-invoice-panel{padding:12px}}
.rest-invoice-hint{font-size:11px;color:#667e8e;line-height:1.35}
.rest-ledger-more{display:flex;justify-content:center;margin:18px 0}
.rest-ticket-preview{color:#17232b;background:#fff;font:12px/1.3 Arial,sans-serif;padding:4px 6px 12px}
.rest-ticket-preview>img{display:block;max-width:110px;max-height:58px;object-fit:contain;margin:7px auto 8px;filter:grayscale(1)}
.rest-ticket-shop,.rest-ticket-caption,.rest-ticket-number{display:block;text-align:center}
.rest-ticket-shop{font-size:17px;overflow-wrap:anywhere}.rest-ticket-caption{font-size:10px;letter-spacing:.035em;margin:5px 0;color:#425765}.rest-ticket-number{font:800 24px/1.2 Arial,sans-serif;margin:14px 0 18px;letter-spacing:.02em}
.rest-ticket-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:0 0 13px;border-bottom:1px dashed #8fa0a8}.rest-ticket-meta time{font-size:11px}
.rest-ticket-products{display:flex;justify-content:space-between;font-size:10px;font-weight:700;color:#54636c;padding:12px 0 4px}
.rest-ticket-line{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;padding:7px 0;align-items:start}.rest-ticket-line span{overflow-wrap:anywhere}.rest-ticket-line strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.rest-ticket-total{display:flex;justify-content:space-between;gap:8px;border-top:1px dashed #899aa2;margin:9px 0 14px;padding:12px 0 0;font-size:16px;font-variant-numeric:tabular-nums}
.rest-ticket-pay{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:12px;font-variant-numeric:tabular-nums}
.rest-ticket-legal{display:block;text-align:center;border-top:1px dashed #a7b4ba;margin-top:16px;padding-top:12px;font-size:10px;color:#51616a}
.rest-print-menu{position:relative}.rest-print-menu>summary{list-style:none;cursor:pointer;border:1px solid #b8cddd;border-radius:5px;background:#fff;color:#24516f;font-size:11px;font-weight:700;min-height:34px;padding:9px 12px}.rest-print-menu>summary::-webkit-details-marker{display:none}.rest-print-menu>summary:after{content:' ▾'}
.rest-print-menu[open]>summary{border-color:#3f809d}.rest-print-menu>div{position:absolute;left:0;bottom:calc(100% + 5px);z-index:15;min-width:190px;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#fff;border:1px solid #c6d8e1;border-radius:6px;padding:10px;box-shadow:0 8px 24px #16344524}
.rest-print-menu strong{grid-column:1/-1;font-size:11px;color:#38556b;margin-top:5px}.rest-print-menu button{border:1px solid #c9d8e1;border-radius:4px;background:#f8fbfc;font-size:11px;padding:6px;cursor:pointer}
.rest-print-menu button:hover{background:#e5f0f4}.rest-print-menu>summary:focus-visible,.rest-print-menu button:focus-visible{outline:2px solid #2368a0;outline-offset:2px}
.rest-ledger-logo{max-width:110px;max-height:54px;object-fit:contain;filter:grayscale(1);margin:0 auto 3px}
.rest-buyer-details{border:1px solid #d4e3dc;border-radius:7px;padding:10px 12px}.rest-buyer-details summary{cursor:pointer;font-size:12px;font-weight:700}.rest-buyer-details>div{display:grid;gap:10px;padding-top:12px}
.rest-logo-setting{display:flex;align-items:center;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid var(--rest-line)}.rest-logo-setting img{max-width:105px;max-height:68px;object-fit:contain}.rest-logo-setting>div{min-width:0;display:grid;gap:9px}.rest-logo-setting strong{font-size:13px}.rest-logo-setting input{width:100%;max-width:340px;font-size:12px}.rest-logo-setting button{justify-self:start}

/* Identidad corporativa MIONEXO. Los estados de éxito mantienen su semántica verde. */
.workspace[data-operation="restaurant"] .restaurant-workspace{--rest-green:#0f6bff;--rest-dark:#0f172a;--rest-line:#dbe7f4;--rest-muted:#60738c;color:#0f172a}
.workspace[data-operation="restaurant"] .nav-section summary{letter-spacing:.055em}
.workspace[data-operation="restaurant"] .nav-section .navitem.active{border-left-color:#20d6e7}
.restaurant-workspace .restaurant-panel{border-color:#dbe7f4;box-shadow:0 6px 22px #062a780a}
.restaurant-workspace .restaurant-panel h3,.restaurant-workspace .rest-section-head h3,.restaurant-workspace .rest-pos-toolbar h2{color:#0f172a}
.restaurant-workspace .restaurant-primary{background:#0f6bff;border-color:#0f6bff;color:#fff}
.restaurant-workspace .restaurant-primary:hover{background:#0759de}
.restaurant-workspace .restaurant-outline{background:#fff;border-color:#b8cce4;color:#062a78}
.restaurant-workspace .restaurant-outline:hover{background:#eaf4ff;border-color:#0f6bff}
.restaurant-workspace .rest-hero{background:linear-gradient(115deg,#062a78 0%,#0f6bff 73%,#20d6e7 100%)}
.restaurant-workspace .rest-hero .restaurant-primary{background:#fff;color:#062a78;border-color:#fff}
.restaurant-workspace .rest-hero .restaurant-outline{background:#ffffff14;color:#fff;border-color:#ffffff80}
.restaurant-workspace .rest-eyebrow,.restaurant-workspace .rest-pos-kicker{color:#0f6bff}
.restaurant-workspace .rest-hero .rest-eyebrow{color:#20d6e7}
.restaurant-workspace .rest-pos-toolbar{border-color:#c9dff8;background:linear-gradient(110deg,#fff 68%,#eaf4ff 100%);box-shadow:inset 4px 0 #20d6e7}
.rest-pos-brand{display:flex;align-items:center;gap:13px;margin-bottom:7px;color:#0f6bff;font-size:10px;font-weight:800;letter-spacing:.09em}
.rest-pos-brand img{display:block;width:124px;height:auto;max-height:34px;object-fit:contain;border-right:1px solid #c6dcf3;padding-right:13px}
.restaurant-workspace .rest-filter button.active,.restaurant-workspace .rest-pos-menu .rest-filter button.active{background:#0f6bff;border-color:#0f6bff;color:#fff}
.restaurant-workspace .rest-filter button:not(.active){background:#f4f9ff;border-color:#d8e6f6;color:#375472}
.restaurant-workspace .rest-pos-dish{border-color:#d6e4f2}
.restaurant-workspace .rest-pos-dish:hover,.restaurant-workspace .rest-pos-dish.in-cart{border-color:#0f6bff;box-shadow:0 8px 22px #062a7822}
.restaurant-workspace .rest-pos-dish>img,.restaurant-workspace .rest-pos-dish>.rest-dish-placeholder{background:#eaf4ff}
.restaurant-workspace .rest-pos-dish-text strong,.restaurant-workspace .rest-manage-body strong{color:#0f172a}
.restaurant-workspace .rest-pos-dish-text b,.restaurant-workspace .rest-cart-total strong,.restaurant-workspace .rest-inline-total strong{color:#062a78}
.restaurant-workspace .rest-pos-add{background:#0f6bff}
.restaurant-workspace .rest-inline-total{background:#eaf4ff;border-color:#cfe3fb}
.restaurant-workspace .rest-pay-methods input:checked+span{background:#e7f3ff;border-color:#0f6bff;color:#062a78;box-shadow:0 0 0 1px #0f6bff}
.restaurant-workspace input:focus,.restaurant-workspace select:focus,.restaurant-workspace textarea:focus{outline:2px solid #20d6e7;outline-offset:1px}
.restaurant-workspace .rest-pos-open-order{background:#f8fbff;border-color:#dbe7f4}
.restaurant-workspace .rest-pos-open-order>span{color:#0f6bff}
.restaurant-workspace .rest-pos-open-order>strong{color:#062a78}
@media(max-width:500px){.rest-pos-brand{flex-wrap:wrap;gap:6px}.rest-pos-brand img{width:110px}}
.rest-table-grid>.rest-empty{grid-column:1/-1;min-width:0;max-width:100%;padding:28px 18px}
.rest-table-grid>.rest-empty p{max-width:320px;margin:8px auto 0;line-height:1.5}
/* Carta y panel gastronómico: identidad y jerarquía de uso diario. */
.rest-hero-logo{width:min(34%,230px);max-height:90px;object-fit:contain;background:#fff;border-radius:18px;padding:16px;box-shadow:0 14px 35px #00194344}
.restaurant-workspace .rest-shortcuts{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.restaurant-workspace .rest-shortcuts button{min-height:92px;padding:17px 19px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-color:#cfe0f5;box-shadow:0 5px 18px #062a7809}
.restaurant-workspace .rest-shortcuts button small{color:#0f6bff;font-size:12px;font-weight:750}
.restaurant-workspace .rest-shortcuts button strong{font-size:16px;color:#0f172a}
.rest-menu-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;margin-bottom:18px;border-radius:18px;background:linear-gradient(112deg,#062a78,#0f6bff 78%,#20d6e7);color:#fff}
.rest-menu-intro .rest-eyebrow{color:#86eff5}.rest-menu-intro h2{color:#fff;font-size:clamp(23px,2.2vw,30px);margin:7px 0}.rest-menu-intro p{max-width:620px;margin:0;color:#eaf4ff;font-size:15px;line-height:1.5}
.rest-menu-intro img{width:180px;max-width:35%;background:#fff;border-radius:14px;padding:13px;object-fit:contain}
.rest-menu-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.45fr);gap:18px;align-items:start}
.rest-menu-layout>.restaurant-panel:last-child{min-height:340px}
.rest-menu-layout .rest-manage-dish{padding:15px 0;align-items:center;gap:16px}
.rest-menu-layout .rest-manage-photo{width:88px;height:88px;border-radius:13px;background:#eaf4ff;font-size:35px}
.rest-menu-layout .rest-manage-body strong{font-size:16px;line-height:1.3}.rest-menu-layout .rest-manage-body small{font-size:13px;line-height:1.4;margin:5px 0 10px}
.rest-menu-layout .rest-actions button,.rest-menu-layout .rest-photo-btn{min-height:38px;font-size:13px}
.rest-menu-identity{margin-top:18px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.rest-menu-identity>div{flex:1 1 270px}.rest-menu-identity h3{margin-bottom:3px}.rest-menu-identity p{margin:0}
.rest-menu-identity img{max-width:115px;max-height:60px;object-fit:contain}.rest-menu-identity .rest-photo-btn{background:#eaf4ff;color:#062a78;border-color:#b8cce4}
@media(max-width:900px){.rest-menu-layout{grid-template-columns:1fr}}
@media(max-width:600px){.rest-menu-intro{padding:20px}.rest-menu-intro img,.rest-hero-logo{display:none}.rest-menu-layout .rest-manage-photo{width:64px;height:64px}}
/* Opción C: categorías, carta visual y alta con foto en el mismo espacio. */
.rest-catalog-head{padding:7px 0 21px}.rest-catalog-head h2{font-size:clamp(24px,2.3vw,31px);margin:7px 0;color:#0f172a}.rest-catalog-head p{font-size:15px;color:#60748e;margin:0}.restaurant-workspace .rest-catalog-head .rest-eyebrow{font-size:11px;letter-spacing:.1em}
.rest-catalog-layout{display:grid;grid-template-columns:170px minmax(0,1fr) minmax(290px,340px);gap:16px;align-items:start}
.rest-catalog-categories,.rest-catalog-editor{position:sticky;top:16px}.rest-catalog-categories h3{font-size:16px}.rest-catalog-categories>div{display:grid;gap:6px}
.rest-catalog-categories button{border:0;background:transparent;text-align:left;border-radius:8px;padding:11px 9px;color:#365472;font-size:14px;line-height:1.3;display:flex;justify-content:space-between;gap:5px}.rest-catalog-categories button.active{background:#eaf4ff;color:#0759de;font-weight:750}.rest-catalog-categories button:hover{background:#f1f7ff}
.rest-catalog-center{min-width:0}.rest-catalog-center>.rest-input{margin:0 0 15px}.rest-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:15px;margin-bottom:17px}
.rest-catalog-card{background:#fff;border:1px solid #d5e3f4;border-radius:14px;overflow:hidden;min-width:0}.rest-catalog-photo{height:150px;margin:12px 12px 0;border-radius:11px;background:#eaf4ff;display:grid;place-items:center;color:#557baf;font-size:14px;overflow:hidden}.rest-catalog-photo img{width:100%;height:100%;object-fit:cover}.rest-catalog-info{padding:14px}.rest-catalog-info h3{margin:0 0 5px;font-size:16px;line-height:1.3}.rest-catalog-info p{font-size:13px;color:#687d94;min-height:35px;margin:0 0 7px;line-height:1.35}.rest-catalog-info>div:not(.rest-catalog-actions){display:flex;align-items:center;justify-content:space-between;gap:8px}.rest-catalog-info strong{color:#062a78;font-size:18px}.rest-catalog-visible{font-size:12px;color:#557087;white-space:nowrap}.rest-catalog-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.rest-catalog-actions .restaurant-outline{padding:7px 10px;min-height:36px;font-size:12px}
.rest-catalog-photo-action{display:inline-flex;align-items:center;position:relative;cursor:pointer;border:1px solid #b8cce4;border-radius:9px;color:#062a78;background:#fff;font-weight:700}.rest-catalog-photo-action input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.rest-catalog-photo-action:focus-within{outline:2px solid #0f6bff;outline-offset:2px}
.rest-catalog-editor>.rest-hint{margin:0 0 16px}.rest-catalog-editor .rest-form{gap:12px}.rest-catalog-editor .rest-form>label{font-size:13px}.rest-catalog-upload{border:2px dashed #99c5f7;background:#f2f8ff;border-radius:12px;padding:15px;text-align:center;cursor:pointer;min-height:112px;justify-content:center}.rest-catalog-upload>span{color:#3a607e;font-size:13px}.rest-catalog-upload strong{font-size:16px;color:#0759de;overflow-wrap:anywhere}.rest-catalog-upload small{font-size:12px;color:#70849b}.rest-catalog-upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.rest-catalog-upload:focus-within{outline:2px solid #0f6bff;outline-offset:2px}.rest-catalog-editor textarea{min-height:70px}
.rest-catalog-center>.restaurant-panel h3{font-size:17px}.rest-catalog-center .rest-stock-form{margin-bottom:12px}.rest-catalog-center .rest-stock-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:1180px){.rest-catalog-layout{grid-template-columns:155px minmax(0,1fr)}.rest-catalog-editor{grid-column:2;position:static}.rest-catalog-categories{grid-row:1 / span 2}}
@media(max-width:710px){.rest-catalog-layout{grid-template-columns:1fr}.rest-catalog-categories{position:static;grid-row:auto}.rest-catalog-categories>div{display:flex;overflow-x:auto}.rest-catalog-categories button{flex:none}.rest-catalog-editor{grid-column:auto}.rest-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-catalog-photo{height:120px}}
@media(max-width:460px){.rest-catalog-grid{grid-template-columns:1fr}.rest-catalog-photo{height:180px}}
.rest-catalog-tabs{display:flex;gap:8px;border-bottom:1px solid #d5e3f4;margin-bottom:16px}
.rest-catalog-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:11px 16px;color:#50657d;font:inherit;font-weight:700;cursor:pointer}
.rest-catalog-tabs button.active{color:#0759de;border-bottom-color:#0f6bff}
.rest-pos-cart-line strong{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.rest-chosen-option{display:block;width:fit-content;max-width:100%;margin-top:5px;padding:4px 7px;border-radius:6px;background:#e7f3ff;color:#062a78;font-size:12px;font-weight:750;white-space:normal}
.rest-counter-change{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:5px 0 12px;padding:12px;border:1px solid #9fd7bd;border-radius:9px;background:#e8f7ef;color:#12543e;font-size:13px;font-weight:700}
.rest-counter-change strong{font-size:20px;white-space:nowrap}.rest-counter-change.is-short{background:#fff5e9;border-color:#f2c48b;color:#8a4b0d}.rest-counter-change[hidden]{display:none}
.rest-draft-dialog{width:min(92vw,440px);border:1px solid #c9dff8;border-radius:15px;padding:24px;color:#0f172a;box-shadow:0 22px 60px #0f172a35}
.rest-draft-dialog::backdrop{background:#09182ab3}.rest-draft-dialog h3{margin:0 0 10px;font-size:20px}.rest-draft-dialog p{line-height:1.5;color:#43556a}.rest-draft-dialog>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:20px}.rest-draft-dialog button{border:1px solid #9ab6da;border-radius:8px;background:white;color:#062a78;padding:10px 12px;font:inherit;font-weight:700;cursor:pointer}.rest-draft-dialog [data-draft=save]{background:#0f6bff;color:white;border-color:#0f6bff}
@media(max-width:540px){.rest-pos-layout,.rest-pos-menu,.rest-pos-ticket{min-width:0;width:100%}.rest-pos-menu,.rest-pos-ticket{box-sizing:border-box}.rest-pos-ticket .rest-cart{max-height:none;min-height:80px}.rest-pos-cart-line{align-items:flex-start}.rest-pos-cart-line b{padding-top:2px}.rest-pos-cart-bottom{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px}.rest-pos-cart-bottom>input{min-width:0}.rest-pos-qty button{width:36px;height:36px}.rest-pos-ticket input,.rest-pos-ticket select{font-size:16px}.rest-pay-methods span{min-height:48px}.rest-draft-dialog>div{display:grid}.rest-draft-dialog button{width:100%}}
.rest-category-item{display:flex;align-items:center;gap:3px;min-width:0}
.rest-catalog-categories .rest-category-item>button:first-child{flex:1;min-width:0}
.rest-catalog-categories .rest-category-remove{flex:none;color:#9b3340;padding:6px 9px;font-size:19px}
.rest-catalog-categories #rest-add-category{margin-top:17px;border-top:1px solid #d5e3f4;padding-top:15px;gap:8px}
.rest-catalog-categories #rest-add-category label{font-size:12px}
.rest-delete-dish{color:#9b3340!important;border-color:#e3b4bc!important}
.rest-availability-mode{margin-bottom:16px}
.rest-availability-mode .rest-inline-check{display:inline-flex;align-items:center;gap:10px;font-weight:700}
.rest-availability-mode .rest-inline-check input{width:20px;height:20px}
.rest-availability-mode .rest-hint{max-width:680px;margin-top:10px}
/* Arqueo legible en una columna estrecha, incluso en escritorio. */
#rest-cash-result{max-width:760px;margin:16px auto}
#rest-cash-result .restaurant-panel{display:block!important;max-width:760px;padding:18px}
#rest-cash-result .rest-cash-report{max-width:none!important}
#rest-cash-result .rest-cash-dishes{margin:14px 0;max-width:none!important}
.rest-count-summary{border:1px solid #d7e4ec;border-radius:10px;padding:8px 14px;margin-top:16px}
.rest-count-summary>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e5eef3}
.rest-count-summary>div:last-child{border-bottom:0;font-size:18px}
.rest-count-alert{color:#a32b35}.rest-count-ok{color:#087350}
#rest-cash-result .rest-ledger-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:600px){#rest-cash-result .restaurant-panel{padding:14px}#rest-cash-result .rest-ledger-actions>*{flex:1}}
#rest-cash-list{max-width:900px;margin:0 auto}
.restaurant-workspace:has(#rest-cash-list)>section.restaurant-panel{max-width:950px;margin:0 auto}
.rest-cash-audit p{font-size:12px;color:#536e64;margin:12px 0}
/* Teléfono: una tarea visible a la vez. La barra inferior cambia entre carta y cobro. */
.rest-mobile-new-product,.rest-mobile-add-category,.rest-ledger-back{display:none}
@media(max-width:600px){
 .workspace[data-operation="restaurant"] #page{padding:12px!important;min-width:0}
 .restaurant-workspace{width:100%;padding-bottom:78px}
 .restaurant-workspace .restaurant-panel{border-radius:13px;padding:13px}
 .rest-pos-shell{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 .rest-pos-toolbar{padding:12px!important;margin-bottom:10px;gap:7px}
 .rest-pos-toolbar h2{font-size:18px;line-height:1.22;margin:4px 0}
 .rest-pos-toolbar p{display:none}.rest-pos-brand{display:none}
 .rest-pos-toolbar-actions{width:100%;align-items:center;gap:8px}
 .rest-pos-toolbar-actions .restaurant-outline{min-height:36px;padding:6px 10px;margin-left:auto}
 .rest-pos-shell[data-mobile-view="menu"] .rest-pos-ticket{display:none}
 .rest-pos-shell[data-mobile-view="cart"] .rest-pos-menu{display:none}
 .rest-pos-menu,.rest-pos-ticket{padding:12px!important}
 .rest-pos-menu .rest-section-head{margin-bottom:8px}.rest-pos-menu .rest-section-head p{display:none}
 .rest-pos-ticket .rest-pos-ticket-heading{margin-bottom:9px}
 .rest-pos-dishes{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .rest-pos-mobile-basket{padding:8px 11px calc(8px + env(safe-area-inset-bottom))}
 .rest-pos-mobile-basket button{min-height:52px;padding:9px 12px}
 .rest-pos-ticket .rest-cart{min-height:0}
 .rest-pos-ticket .rest-cart-total{margin:10px 0}
 .rest-catalog-head{padding-bottom:10px}.rest-catalog-head p{font-size:12px}
 .rest-mobile-new-product{display:block;width:100%;margin:4px 0 12px}
 .rest-catalog-layout{display:flex;flex-direction:column;gap:10px}
 .rest-catalog-categories,.rest-catalog-center,.rest-catalog-editor{width:100%;position:static!important}
 .rest-catalog-categories{padding:10px!important}
 .rest-catalog-categories h3{margin-bottom:6px;font-size:14px}
 .rest-catalog-categories>div{display:flex;overflow-x:auto;gap:5px;padding-bottom:3px}
 .rest-catalog-categories .rest-category-item{flex:none}
 .rest-catalog-categories button{padding:7px 9px;white-space:nowrap;font-size:12px}
 .rest-mobile-add-category{display:block;margin-top:6px;min-height:34px}
 .rest-catalog-categories #rest-add-category{display:none;margin-top:8px}
 .rest-catalog-categories #rest-add-category.mobile-open{display:grid}
 .rest-catalog-center>.rest-input{margin:0 0 9px}
 .rest-catalog-grid{grid-template-columns:1fr;gap:8px}
 .rest-catalog-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:0;border-radius:11px}
 .rest-catalog-photo{width:70px;height:70px;margin:7px;border-radius:7px}
 .rest-catalog-info{padding:8px 9px 8px 7px;min-width:0}
 .rest-catalog-info h3{font-size:13px;margin:0 0 2px}
 .rest-catalog-info p{font-size:11px;min-height:0;margin:0 0 5px}
 .rest-catalog-info strong{font-size:15px}
 .rest-catalog-actions{margin-top:5px;gap:5px}
 .rest-catalog-actions .restaurant-outline,.rest-catalog-actions .rest-photo-btn{font-size:11px;min-height:30px;padding:4px 8px}
 .rest-catalog-editor{display:none}
 .rest-catalog-editor.mobile-open{display:block}
 .rest-ledger-heading{margin:2px 0 10px;gap:10px}
 .rest-ledger-heading h2{font-size:21px}.rest-ledger-total{min-width:0}
 .rest-ledger-total strong{font-size:18px}
 .rest-ledger-period{gap:10px;flex-wrap:wrap;margin:0 0 9px}
 .rest-ledger-period span{order:3;width:100%}
 .rest-ledger-query{margin-bottom:10px;gap:6px}
 .rest-ledger-query details{min-width:74px}
 .rest-ledger-query summary{padding:0 8px}
 .rest-ledger-grid.mobile-list .rest-ledger-slip{display:none}
 .rest-ledger-grid.mobile-detail .rest-ledger-book{display:none}
 .rest-ledger-grid.mobile-detail .rest-ledger-slip{display:block}
 .rest-ledger-back{display:block;margin:0 0 10px;min-height:38px}
 .rest-ledger-columns{display:none}
 .rest-ledger-row{min-height:62px;padding:10px 8px;gap:7px}
 .rest-ledger-row strong{font-size:13px}
 .rest-ledger-row small,.rest-ledger-row time{font-size:10px}
 .rest-ledger-slip{padding:12px}
 .rest-ledger-actions{gap:6px}
 .rest-ledger-actions button{min-height:38px}
 .rest-catalog-tabs{gap:0;justify-content:space-around}
 .rest-catalog-tabs button{font-size:12px;padding:10px 7px;line-height:1.2;white-space:nowrap}
 #rest-cash-list .rest-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:10px 0}
 #rest-cash-list .rest-list-row>div{grid-column:1/-1}
 #rest-cash-list .rest-list-row>button{grid-column:auto;min-height:35px;padding:5px 9px;font-size:11px}
 #rest-cash-list .rest-list-row small{margin:2px 0;font-size:11px}
 .restaurant-workspace:has(#rest-cash-list)>section.restaurant-panel{padding:12px!important}
}
@media(max-width:600px){
 .restaurant-workspace:has(#rest-cash-list) .rest-catalog-tabs{justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}
 .restaurant-workspace:has(#rest-cash-list) .rest-catalog-tabs button{flex:none}
 .rest-pos-mobile-basket button>span:last-child{font-size:11px;white-space:nowrap}
 .rest-pos-mobile-basket button>span:first-child{white-space:nowrap}
 .rest-catalog-categories .rest-category-remove{padding:4px 7px}
}
.rest-inline-checkout{position:fixed;inset:0;z-index:1100;background:#0d2339a8;display:grid;place-items:center;overflow:auto;padding:20px;margin:0}.rest-inline-checkout .rest-inline-pay{width:min(100%,610px);max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 24px 80px #071a3452;padding:24px}.rest-inline-checkout #rest-qr-countdown{display:block;margin:10px auto;color:#af321f;font-size:19px}.rest-inline-checkout #rest-qr-countdown[hidden]{display:none}.rest-inline-checkout .rest-qr-image{max-width:min(100%,300px);max-height:300px;object-fit:contain}@media(max-width:640px){.rest-inline-checkout{padding:10px}.rest-inline-checkout .rest-inline-pay{max-height:calc(100vh - 20px);padding:16px}}
.restaurant-workspace .rest-inline-checkout .rest-inline-pay{border:1px solid #b9d7f2;border-top:4px solid #0f6bff;color:#0f172a}.restaurant-workspace .rest-inline-checkout .rest-checkout-brand{display:block;width:118px;height:auto;max-height:36px;object-fit:contain;margin:0 0 10px}.restaurant-workspace .rest-inline-checkout .rest-pos-kicker{display:block;color:#0f6bff}.restaurant-workspace .rest-inline-checkout .rest-pos-qr-panel{background:#f3f8ff;border-color:#c9dff8}.restaurant-workspace .rest-inline-checkout .rest-pos-qr-panel>#rest-qr-information{color:#173f79}.restaurant-workspace .rest-inline-checkout .rest-qr-image{border-color:#c9dff8}.restaurant-workspace .rest-inline-checkout #rest-qr-countdown{color:#062a78}.restaurant-workspace .rest-inline-checkout .rest-inline-total{background:#eaf4ff;border-color:#cfe3fb}.restaurant-workspace .rest-inline-checkout .rest-inline-total strong{color:#062a78}.restaurant-workspace .rest-inline-checkout .rest-pay-methods input:checked+span{border-color:#0f6bff;background:#e7f3ff;color:#062a78;box-shadow:0 0 0 1px #0f6bff}.restaurant-workspace .rest-inline-checkout .restaurant-primary{background:#0f6bff;border-color:#0f6bff;color:#fff}.restaurant-workspace .rest-inline-checkout .restaurant-outline{color:#062a78;border-color:#b8cce4;background:#fff}.restaurant-workspace .rest-checkout-terminal{display:grid;gap:3px;margin:5px 0 12px;padding:10px 12px;border:1px solid #d8e5f3;border-radius:8px;background:#f8fbff}.restaurant-workspace .rest-checkout-terminal span{font-size:11px;color:#5e7087}.restaurant-workspace .rest-checkout-terminal strong{font-size:14px;color:#173f79}
.restaurant-workspace .rest-pos-dishes{position:relative}.restaurant-workspace .rest-choice-picker{position:absolute;z-index:30;width:min(280px,calc(100% - 8px));margin:0;background:#f4f9ff;border-color:#0f6bff;box-shadow:0 14px 30px #062a7830}.restaurant-workspace .rest-choice-picker[hidden]{display:none!important}
.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-pay{width:min(100%,440px);padding:18px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-pay h3{font-size:18px;line-height:1.3}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-checkout-brand{width:95px;margin-bottom:6px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-checkout-terminal,.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-pay-label,.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-pay-methods,.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-pay details,.restaurant-workspace .rest-inline-checkout.rest-qr-stage #rest-ref-label,.restaurant-workspace .rest-inline-checkout.rest-qr-stage #rest-verified-label,.restaurant-workspace .rest-inline-checkout.rest-qr-stage #rest-tendered-label,.restaurant-workspace .rest-inline-checkout.rest-qr-stage #rest-checkout-mixed{display:none!important}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-total{padding:8px 12px;margin-bottom:8px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-total strong{font-size:22px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-pos-qr-panel{padding:10px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-qr-image{width:220px;height:220px;padding:5px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage #rest-qr-countdown{font-size:15px;margin:7px auto}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-qr-abort{display:block;width:100%;margin-top:8px}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-qr-abort[hidden],.restaurant-workspace .rest-inline-checkout.rest-qr-stage [data-rdismiss][hidden]{display:none!important}.restaurant-workspace .rest-inline-checkout.rest-qr-stage .rest-inline-pay{max-height:calc(100dvh - 20px)}
#restaurant-content:has(#rest-cash-result)>.restaurant-panel{max-width:1050px;margin:16px auto;padding:18px 22px}#restaurant-content:has(#rest-cash-result)>#rest-cash-result:not(:empty){max-width:780px;margin:16px auto}#restaurant-content:has(#rest-cash-result)>#rest-cash-result>.restaurant-panel{padding:18px 22px}#restaurant-content:has(#rest-cash-list) .rest-formrow{max-width:100%;margin:0 0 10px}#rest-cash-list{max-width:none;margin:0}#rest-cash-list .rest-list-row{display:flex;align-items:center;gap:12px;padding:12px 4px}#rest-cash-list .rest-list-row>div{flex:1;min-width:0}#rest-cash-list .rest-list-row small{margin:3px 0;font-size:11px}#rest-cash-list .rest-list-row button{flex:none;min-height:34px;padding:5px 10px}#restaurant-content:has(#rest-cash-result) .rest-cash-compact{max-width:760px;margin:0 auto}@media(max-width:650px){#restaurant-content:has(#rest-cash-result)>.restaurant-panel{padding:14px}#rest-cash-list .rest-list-row{display:flex;flex-wrap:wrap}#rest-cash-list .rest-list-row>div{flex:0 0 100%}#restaurant-content:has(#rest-cash-result)>#rest-cash-result>.restaurant-panel{padding:15px}}
/* Cobro de mostrador: los medios secundarios conservan el formato de botones del POS comercio. */
.restaurant-workspace .rest-other-methods{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 0 0;border-top:1px solid #e2e9ef}
.restaurant-workspace .rest-other-methods label{position:relative;display:block;min-height:0}
.restaurant-workspace .rest-other-methods input{position:absolute;opacity:0;width:1px;height:1px}
.restaurant-workspace .rest-other-methods span{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;min-height:40px;border:1px solid #cbd8e5;border-radius:8px;background:#fff;color:#213b55;font-size:12px;font-weight:650}
.restaurant-workspace .rest-other-methods input:checked+span{border-color:#0f6bff;background:#e7f3ff;color:#062a78}
.restaurant-workspace .rest-other-methods input:focus-visible+span,.restaurant-workspace .rest-pay-methods input:focus-visible+span{outline:2px solid #0f6bff;outline-offset:2px}
.restaurant-workspace .rest-pos-customer{display:grid;gap:8px;padding:14px 0;border-bottom:1px solid #e1e9ef}
.restaurant-workspace .rest-pos-customer>label{display:grid;gap:6px}
.restaurant-workspace .rest-pos-customer>button{justify-self:start}
.restaurant-workspace .rest-pos-customer form{background:#f5f9fe;border:1px solid #d8e5f2;border-radius:10px;padding:14px}
.restaurant-workspace .rest-pos-customer form[hidden],.restaurant-workspace #rest-counter-card[hidden],.restaurant-workspace #rest-card-fields[hidden]{display:none!important}
.restaurant-workspace #rest-counter-card,.restaurant-workspace #rest-card-fields{padding:10px 12px;background:#f4f8fc;border-radius:9px}
.restaurant-workspace #rest-counter-card .rest-hint,.restaurant-workspace #rest-card-fields .rest-hint{margin:0 0 8px}
/* El selector de opciones ocupa el centro del visor, incluso al elegir la tarjeta derecha. */
#rest-choice-picker.rest-choice-picker{position:fixed;inset:0;z-index:2100;width:auto;max-width:none;height:auto;padding:16px;margin:0;border:0;border-radius:0;background:rgba(8,28,49,.58);display:grid;place-items:center;box-shadow:none}
#rest-choice-picker.rest-choice-picker[hidden]{display:none!important}
#rest-choice-picker .rest-choice-card{box-sizing:border-box;width:min(100%,380px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #b9d7f2;border-radius:14px;background:#fff;box-shadow:0 20px 60px #071a3460;color:#16354e}
#rest-choice-picker .rest-choice-card>strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
#rest-choice-picker .rest-choice-card>p{margin:7px 0 14px;color:#597087}
#rest-choice-picker .rest-choice-card>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#rest-choice-picker .rest-choice-card>div button{min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:48px}
#rest-choice-picker .rest-choice-cancel{margin-top:12px;min-height:40px}
@media(max-width:420px){#rest-choice-picker .rest-choice-card{width:100%;padding:16px}#rest-choice-picker .rest-choice-card>div{grid-template-columns:1fr}}
/* Ventas: el menú de formatos nunca amplía el ancho del comprobante. */
.restaurant-workspace .rest-ledger-grid,.restaurant-workspace .rest-ledger-slip,.restaurant-workspace .rest-ledger-actions,.restaurant-workspace .rest-print-menu{min-width:0;max-width:100%}
.restaurant-workspace .rest-print-menu>div{box-sizing:border-box;left:auto;right:0;width:min(310px,calc(100vw - 32px));min-width:0;max-width:100%}
@media(max-width:760px){
 .restaurant-workspace .rest-ledger-grid{display:block;width:100%;min-width:0}
 .restaurant-workspace .rest-ledger-slip{box-sizing:border-box;width:100%;overflow:visible}
 .restaurant-workspace .rest-print-menu{width:100%}
 .restaurant-workspace .rest-print-menu>div{position:static;width:100%;max-width:100%;margin-top:8px;box-shadow:none}
 .restaurant-workspace .rest-ledger-actions>*{max-width:100%;box-sizing:border-box}
}
/* En móvil la venta transcurre en tres vistas sin repetir el panel de cobro. */
.rest-pos-steps{display:none}
@media(max-width:600px){
 .rest-pos-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 10px}
 .rest-pos-steps button{min-width:0;min-height:38px;padding:6px 3px;border:1px solid #d2dfeb;border-radius:8px;background:#fff;color:#526b82;font-size:12px;font-weight:700}
 .rest-pos-steps button[aria-current="step"]{border-color:#0f6bff;background:#e7f3ff;color:#062a78}
 .rest-pos-shell[data-mobile-view="cart"] .rest-counter-pay{display:none}
 .rest-pos-shell[data-mobile-view="pay"] .rest-pos-menu{display:none}
 .rest-pos-shell[data-mobile-view="pay"] .rest-pos-ticket> :not(.rest-counter-pay){display:none}
 .rest-pos-shell[data-mobile-view="pay"] .rest-pos-ticket{display:block}
 .rest-pos-shell[data-mobile-view="pay"] .rest-counter-pay{border-top:0;margin:0;padding:0}
 .rest-pos-shell:has(.rest-inline-counter-qr) .rest-pos-mobile-basket{display:none}
}
/* El QR bancario se controla en el mismo paso Cobro; no aparece otro formulario de métodos. */
.restaurant-workspace .rest-inline-checkout.rest-inline-counter-qr{position:static;inset:auto;display:block;z-index:auto;width:100%;padding:0;margin:8px 0 0;background:none;overflow:visible}
.restaurant-workspace .rest-inline-counter-qr .rest-inline-pay{box-sizing:border-box;width:100%;max-height:none;overflow:visible;padding:14px;border:1px solid #cfe0f0;border-radius:12px;box-shadow:none}
.restaurant-workspace .rest-inline-counter-qr .rest-inline-pay>header{margin-bottom:8px}
.restaurant-workspace .rest-inline-counter-qr .rest-inline-pay>header h3{font-size:15px}
.restaurant-workspace .rest-inline-counter-qr .rest-inline-total{padding:8px 12px;margin-bottom:8px}
.restaurant-workspace .rest-inline-counter-qr form> :not(#rest-qr-panel){display:none!important}
.restaurant-workspace .rest-inline-counter-qr #rest-qr-panel{display:block!important}
.restaurant-workspace .rest-inline-counter-qr #rest-qr-panel[hidden]{display:none!important}
.restaurant-workspace .rest-inline-counter-qr #rest-qr-abort{display:none!important}
/* Clientes: alta con contactos en el mismo formato de comercio. */
.restaurant-workspace .rest-customer-layout{grid-template-columns:minmax(0,1fr);max-width:900px;margin:0 auto}
.restaurant-workspace .rest-customer-layout [data-mx-phone]{display:grid;gap:7px}
.restaurant-workspace .rest-customer-layout [data-mx-phone-fields]{display:grid;gap:10px}
.restaurant-workspace .rest-customer-layout [data-mx-phone-fields][hidden]{display:none!important}
.restaurant-workspace .rest-customer-layout [data-mx-phone] .field{display:grid;gap:5px}
.restaurant-workspace .rest-customer-layout [data-mx-phone] .checkline{display:flex;align-items:center;gap:8px}
.restaurant-workspace .rest-customer-tabs{display:flex;gap:6px;margin:0 0 14px;grid-column:1/-1}
.restaurant-workspace .rest-customer-tabs button{border:1px solid #cbdce8;border-radius:7px;background:#fff;color:#28516c;padding:9px 14px;font-size:13px;font-weight:700;cursor:pointer}
.restaurant-workspace .rest-customer-tabs button.active{background:#0f6bff;border-color:#0f6bff;color:#fff}
.restaurant-workspace [data-rest-customer-tab][hidden]{display:none!important}
.restaurant-workspace .rest-inline-checkout.rest-inline-counter-qr .rest-inline-pay{width:100%;max-height:none}

.restaurant-workspace .rest-customer-layout{max-width:1100px}
.restaurant-workspace .rest-customer-export{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.restaurant-workspace .rest-customer-export a{display:inline-flex;align-items:center;text-decoration:none;padding:9px 13px;font-size:13px}
.restaurant-workspace .rest-customer-table-wrap{max-width:100%;overflow-x:auto}
.restaurant-workspace .rest-customer-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.restaurant-workspace .rest-customer-table th,.restaurant-workspace .rest-customer-table td{padding:10px 8px;border-bottom:1px solid #e2e9ec;text-align:left;overflow-wrap:anywhere}
.restaurant-workspace .rest-customer-table th{color:#526879;background:#f6f8f9}
.restaurant-workspace .rest-customer-table th:nth-child(1){width:22%}.restaurant-workspace .rest-customer-table th:nth-child(2){width:17%}.restaurant-workspace .rest-customer-table th:nth-child(3){width:22%}.restaurant-workspace .rest-customer-table th:nth-child(4){width:17%}.restaurant-workspace .rest-customer-table th:nth-child(5){width:10%}.restaurant-workspace .rest-customer-table th:nth-child(6){width:12%}
.restaurant-workspace .rest-customer-error{padding:10px;border-radius:6px;color:#8b2633;background:#fff0f1}
.restaurant-workspace .rest-mixed-balance{font-size:13px;color:#176e67;margin:0}.restaurant-workspace .rest-mixed-balance.is-short{color:#9b3636}
@media(max-width:680px){.restaurant-workspace .rest-customer-table thead{display:none}.restaurant-workspace .rest-customer-table,.restaurant-workspace .rest-customer-table tbody,.restaurant-workspace .rest-customer-table tr,.restaurant-workspace .rest-customer-table td{display:block;width:100%}.restaurant-workspace .rest-customer-table tr{border:1px solid #dce6e8;border-radius:8px;margin:10px 0;padding:8px}.restaurant-workspace .rest-customer-table td{border:0;padding:5px 7px}.restaurant-workspace .rest-customer-table td[data-label]::before{content:attr(data-label) ': ';font-weight:700;color:#526879}.restaurant-workspace .rest-customer-table td:last-child{text-align:right}}

/* El QR del POS se abre sobre la pantalla de cobro, igual que el QR comercial. */
.restaurant-workspace dialog.rest-qr-overlay{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:12px;border:0;background:transparent;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;place-items:center}
.restaurant-workspace dialog.rest-qr-overlay::backdrop{background:rgba(11,32,53,.68)}
.restaurant-workspace dialog.rest-qr-overlay .rest-inline-pay{width:min(100%,440px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay{width:min(100%,440px)}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage form>button[type=submit]{display:none!important}
@media(max-width:640px){.restaurant-workspace dialog.rest-qr-overlay{padding:8px}.restaurant-workspace dialog.rest-qr-overlay .rest-inline-pay{max-height:calc(100dvh - 16px)}}

.restaurant-workspace .rest-qr-glosa{display:block;font-size:13px;line-height:1.35;color:#173f79;overflow-wrap:anywhere;text-align:center}

/* En escritorio, la carta y el carrito permanecen lado a lado. */
@media(min-width:761px) and (max-width:1180px){.restaurant-workspace .rest-pos-layout{grid-template-columns:minmax(0,1fr) minmax(280px,43%)}.restaurant-workspace .rest-pos-dishes{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Misma densidad que el diálogo QR del POS Comercio: importe, QR, estado y acciones. */
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage{padding:12px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay{width:min(390px,100%);max-height:calc(100dvh - 24px);padding:16px 18px;border:1px solid #d7e2eb;border-radius:12px;box-shadow:0 20px 55px #10284035}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay>header{margin:0 0 8px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-checkout-brand{display:none}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-kicker{font-size:11px;font-weight:750;letter-spacing:.025em;text-transform:uppercase;color:#365670;overflow-wrap:anywhere}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay h3{font-size:18px;line-height:1.25;margin:4px 0 0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;background:none;border:0;border-top:1px solid #e4ebf2;border-radius:0;padding:8px 0;margin:0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total span{font-size:12px;color:#60738c}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total strong{font-size:23px;white-space:nowrap}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-panel{background:none;border:0;border-radius:0;padding:0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-panel>#rest-qr-information{margin:0 0 6px;padding:6px 8px;border-radius:6px;background:#f3f7fb;font-size:12px;line-height:1.3;color:#435b71}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-image{width:min(250px,100%);height:auto;max-height:250px;aspect-ratio:1/1;object-fit:contain;padding:4px;border-radius:7px;border-color:#d7e2eb}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-display{gap:3px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-glosa{font-size:12px;line-height:1.3;margin-top:4px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-display small{font-size:11px;color:#687c8a}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-countdown{font-size:13px;font-weight:700;margin:6px auto}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-controls{margin-top:4px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-controls button{min-height:34px;padding:5px 12px;font-size:12px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-abort{min-height:42px;margin-top:8px;font-size:12px}
/* Cobro del carrito: lectura rápida sin repetir un bloque grande de importe. */
.restaurant-workspace .rest-counter-pay{gap:8px;padding-top:12px;margin-top:12px}
.restaurant-workspace .rest-counter-pay h3{font-size:18px;line-height:1.25}
.restaurant-workspace .rest-counter-pay>.rest-inline-total{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:9px 12px}
.restaurant-workspace .rest-counter-pay>.rest-inline-total strong{font-size:23px}
.restaurant-workspace .rest-counter-pay .rest-pay-label{margin-bottom:2px}
.restaurant-workspace .rest-counter-pay .rest-pay-methods{gap:6px}
.restaurant-workspace .rest-counter-pay .rest-pay-methods span{min-height:43px;padding:7px}
.restaurant-workspace .rest-counter-pay .rest-other-methods{padding-top:7px}
.restaurant-workspace .rest-counter-pay .rest-other-methods span{min-height:36px;padding:7px 10px}
.restaurant-workspace .rest-counter-pay .rest-hint{font-size:11px;line-height:1.4;margin:2px 0}
@media(max-width:600px){.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage{padding:8px}.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay{width:min(390px,100%);max-height:calc(100dvh - 16px);padding:13px 14px}.restaurant-workspace .rest-counter-pay .rest-pay-methods span{min-height:48px}}

/* Visor QR del restaurante con el orden del POS Comercio. */
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay{width:min(390px,100%);padding:17px 19px 0;border:1px solid #d6e0e9;border-top:1px solid #d6e0e9;border-radius:10px;box-shadow:0 20px 55px #10203036}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay>header{margin:0 0 10px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-kicker{display:none}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay h3{font-size:18px;line-height:1.32;letter-spacing:0;margin:0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total{border:0;padding:6px 0 9px;margin:0;align-items:baseline}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total span{font-size:13px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-total strong{font-size:24px;color:#172b43}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-panel{display:flex;flex-direction:column;gap:7px;text-align:left}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-display{order:1;display:flex;justify-content:center;margin:0 0 5px;line-height:0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-image{display:block;width:min(260px,100%);height:auto;max-height:none;aspect-ratio:1/1;border:0;border-radius:0;padding:0;object-fit:contain}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-panel>#rest-qr-information{order:2;margin:0;padding:8px 10px;border:0;border-radius:6px;background:#f3f6fa;color:#243a50;text-align:left;font-size:12px;font-weight:650;line-height:1.35}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-time{order:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e1e7ed;border-radius:7px;background:#f7f9fc;color:#243a50;font-size:12px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-time[hidden]{display:none!important}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-countdown{display:block;margin:0;color:#172b43;font-size:20px;font-weight:750;font-variant-numeric:tabular-nums}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-sale-line{order:4;margin:1px 0 3px;padding:0;font-size:12px;line-height:1.35;color:#263a50;overflow-wrap:anywhere}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-sale-line[hidden]{display:none!important}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-controls{order:5;margin:0}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-pos-qr-controls button:not([hidden]){width:100%;min-height:36px}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-abort{order:6;width:calc(100% + 38px);min-height:44px;margin:5px -19px 0;padding:9px 12px;border:0;border-top:1px solid #e1e7ed;border-radius:0 0 10px 10px;background:#fff;color:#172b43;font-size:13px;font-weight:700}
.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-abort:hover{background:#f5f8fb}
@media(max-width:600px){.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-inline-pay{width:100%;padding:14px 14px 0}.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage #rest-qr-abort{width:calc(100% + 28px);margin:5px -14px 0}.restaurant-workspace dialog.rest-qr-overlay.rest-qr-stage .rest-qr-image{width:min(250px,100%)}}
/* Turnos y arqueos usa la tabla, pestañas y controles del módulo Caja comercial. */
#restaurant-content:has(#rest-cash-result) .module-navigation{margin:0 0 14px}
#restaurant-content:has(#rest-cash-result) .rest-commerce-cash-history{max-width:none;margin:0;padding:16px}
#restaurant-content:has(#rest-cash-result) .rest-commerce-cash-history>h3{margin:0 0 12px}
#restaurant-content:has(#rest-cash-result) .rest-history-table{overflow-x:auto;max-width:none}
#restaurant-content:has(#rest-cash-result) .rest-history-table table{width:100%;min-width:730px}
#restaurant-content:has(#rest-cash-result) .rest-history-table td{vertical-align:middle}
#restaurant-content:has(#rest-cash-result) .rest-history-table .row-note{display:block;color:var(--muted);margin-top:3px}
#restaurant-content:has(#rest-cash-result) .rest-history-actions{margin:0;gap:5px;flex-wrap:wrap}
#restaurant-content:has(#rest-cash-result) .rest-history-actions .btn{white-space:nowrap;font-size:11px;padding:6px 9px}

/* V20.453 — Tesorería Restaurante: diseño equivalente a Comercio, sin reutilizar sus datos ni caja. */
.restaurant-workspace .rest-treasury-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 27px;background:linear-gradient(113deg,#eaf5fc 0%,#f6faff 58%,#fff 100%);border:1px solid #d3e5f4;border-radius:17px;margin:2px 0 15px;color:#102b43}
.restaurant-workspace .rest-treasury-hero h2{font-size:clamp(20px,2.3vw,27px);font-weight:790;line-height:1.2;letter-spacing:-.025em;margin:4px 0 6px;color:#132b44}
.restaurant-workspace .rest-treasury-hero p{font-size:13px;color:#63768b;margin:0;max-width:690px;line-height:1.55}
.restaurant-workspace .rest-finance-kicker{display:block;font-size:11px;font-weight:850;letter-spacing:.10em;color:#1275bd;text-transform:uppercase;margin-bottom:7px}
.restaurant-workspace .rest-treasury-hero .restaurant-outline{white-space:nowrap;border-color:#a8c9e4;color:#155b90;background:#fff}
.restaurant-workspace .rest-treasury-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(4,minmax(0,1fr))}
.restaurant-workspace .rest-treasury-dashboard article{min-width:0;display:flex;flex-direction:column;gap:7px;padding:19px 20px;background:#fff;border:1px solid #dbe4ed;border-radius:13px;box-shadow:0 3px 9px rgba(20,49,77,.035)}
.restaurant-workspace .rest-treasury-dashboard article:first-child{background:#edf7ff;border-color:#b4d5ef}
.restaurant-workspace .rest-treasury-dashboard article>span{font-size:12px;font-weight:730;color:#61748b}
.restaurant-workspace .rest-treasury-dashboard article>strong{font-size:clamp(25px,2vw,32px);line-height:1.1;letter-spacing:-.04em;color:#112b4a;font-variant-numeric:tabular-nums}
.restaurant-workspace .rest-treasury-dashboard article:first-child>strong{color:#0c70b7}
.restaurant-workspace .rest-treasury-dashboard article>small{font-size:11px;color:#738398;line-height:1.4}
#restaurant-content:has(#rest-cash-result)>#rest-cash-result:not(:empty),#restaurant-content:has(#rest-cash-result)>#rest-cash-result{max-width:none!important;width:100%;margin:17px 0 0}
#restaurant-content:has(#rest-cash-result)>.rest-commerce-cash-history{max-width:none!important;width:100%;margin:0!important;border-radius:14px;border:1px solid #dce5ee;padding:18px 20px;background:#fff}
#restaurant-content:has(#rest-cash-result)>.rest-commerce-cash-history h3{font-size:18px;color:#153047}
#restaurant-content:has(#rest-cash-result) .module-navigation{margin:0 0 18px;flex-wrap:wrap}
.restaurant-workspace .rest-treasury-result{scroll-margin-top:20px}
.restaurant-workspace .rest-treasury-report{background:#fff;border:1px solid #d9e4ed;border-radius:17px;box-shadow:0 12px 28px rgba(13,42,73,.065);overflow:hidden;color:#183249}
.restaurant-workspace .rest-treasury-report-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:24px 26px;border-bottom:1px solid #e4ebf2;background:linear-gradient(120deg,#f5faff 0%,#fff 70%)}
.restaurant-workspace .rest-treasury-report-head h3{font-size:clamp(19px,2vw,24px);line-height:1.24;font-weight:800;margin:0 0 7px;color:#112b45}
.restaurant-workspace .rest-treasury-report-head p{font-size:12px;color:#667c91;margin:0}
.restaurant-workspace .rest-treasury-status{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;font-weight:800;line-height:1.25;padding:7px 11px;color:#125e41;background:#e8f8ef;border:1px solid #c2e7d0;border-radius:999px}
.restaurant-workspace .rest-treasury-status.pending{color:#88590b;background:#fff6e4;border-color:#f0d9a6}
.restaurant-workspace .rest-treasury-status.attention{color:#a23b34;background:#fff0ee;border-color:#f3cbc7}
.restaurant-workspace .rest-treasury-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:22px 26px}
.restaurant-workspace .rest-treasury-kpis>div{min-width:0;padding:16px;border-radius:12px;border:1px solid #dbe6f0;background:#f9fbfd;display:flex;flex-direction:column;gap:8px}
.restaurant-workspace .rest-treasury-kpis>div:first-child{background:#ebf6fd;border-color:#b7d8ef}
.restaurant-workspace .rest-treasury-kpis span{font-size:12px;font-weight:750;color:#5b7085}
.restaurant-workspace .rest-treasury-kpis strong{font-size:clamp(18px,2vw,25px);color:#153653;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.restaurant-workspace .rest-treasury-kpis small{font-size:11px;color:#788999}
.restaurant-workspace .rest-treasury-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:0 26px 20px}
.restaurant-workspace .rest-treasury-subpanel{border:1px solid #dfe7ef;border-radius:12px;padding:19px 20px;background:#fff;min-width:0}
.restaurant-workspace .rest-treasury-subpanel h4,.restaurant-workspace .rest-treasury-products h4{font-size:16px;color:#1a3149;margin:0 0 13px;font-weight:800}
.restaurant-workspace .rest-treasury-payment-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;padding:10px 0;color:#4f6377;font-size:13px}
.restaurant-workspace .rest-treasury-payment-row strong{font-variant-numeric:tabular-nums;font-weight:760;color:#152f47;white-space:nowrap}
.restaurant-workspace .rest-treasury-payment-row.total{font-weight:850;color:#19344e;border-bottom:0;padding-top:16px}
.restaurant-workspace .rest-treasury-payment-row.total strong{font-size:17px;color:#0d6da9}
.restaurant-workspace .rest-treasury-help{font-size:12px;color:#768699;margin:14px 0 0;line-height:1.5}
.restaurant-workspace .rest-treasury-products{padding:19px 26px 10px;border-top:1px solid #e6edf3}
.restaurant-workspace .rest-treasury-products-head{display:flex;justify-content:space-between;gap:14px;align-items:center}
.restaurant-workspace .rest-treasury-products-head>span{font-size:12px;color:#728294}
.restaurant-workspace .rest-treasury-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #e0e8ef;border-radius:11px;background:#fff}
.restaurant-workspace .rest-treasury-table-wrap table{width:100%;border-collapse:collapse;min-width:530px;font-size:12px}
.restaurant-workspace .rest-treasury-table-wrap thead{background:#f4f7fa}
.restaurant-workspace .rest-treasury-table-wrap th{font-size:11px;font-weight:800;color:#607183;text-align:left;padding:13px 13px;border-bottom:1px solid #e0e7ee;white-space:nowrap}
.restaurant-workspace .rest-treasury-table-wrap td{padding:13px;border-bottom:1px solid #eaf0f4;vertical-align:middle;color:#22384e;font-size:12px}
.restaurant-workspace .rest-treasury-table-wrap tr:last-child td{border-bottom:0}
.restaurant-workspace .rest-treasury-table-wrap tbody tr:nth-child(even){background:#f8fafc}
.restaurant-workspace .rest-treasury-table-wrap td small{display:block;color:#708399;margin-top:5px;font-size:11px;line-height:1.4}
.restaurant-workspace .rest-treasury-products .rest-treasury-table-wrap td:last-child{text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
.restaurant-workspace .rest-treasury-actions{display:flex;flex-wrap:wrap;gap:9px;padding:19px 26px 23px;background:#f8fbfd;border-top:1px solid #e7edf3}
.restaurant-workspace .rest-treasury-actions .restaurant-primary{background:#087bc8;border-color:#087bc8}
.restaurant-workspace .rest-treasury-whatsapp{border-color:#b1d9c5!important;color:#136747!important;background:#f1fbf5!important}
.restaurant-workspace .rest-treasury-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.restaurant-workspace .rest-treasury-row-actions button{font-size:11px;min-height:34px;padding:6px 10px}
.restaurant-workspace .rest-treasury-blind{padding:24px;display:grid;gap:10px}.restaurant-workspace .rest-treasury-blind>span{color:#62758c;font-size:12px}.restaurant-workspace .rest-treasury-blind>strong{font-size:26px;color:#1a3349}.restaurant-workspace .rest-treasury-blind>p{font-size:12px;color:#677b8b}
.restaurant-workspace .rest-treasury-empty{padding:26px;color:#667e90;font-size:13px}
.restaurant-workspace .rest-treasury-operations{background:#fff;border:1px solid #dce5ee;border-radius:16px;padding:20px 20px 14px}
.restaurant-workspace .rest-treasury-operations-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:14px}
.restaurant-workspace .rest-treasury-operations-head h3{font-size:18px;margin:0 0 7px;color:#17324d}
.restaurant-workspace .rest-treasury-operations-head p{font-size:12px;color:#65798c;margin:0;max-width:650px}
.restaurant-workspace .rest-treasury-qr-search{width:min(280px,100%);font-size:11px!important;color:#546d82!important}
.restaurant-workspace .rest-treasury-filters{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.restaurant-workspace .rest-treasury-filters button{border:1px solid #d2e1ef;background:#fff;color:#365972;border-radius:9px;min-height:34px;padding:7px 12px;font-size:12px;font-weight:750}
.restaurant-workspace .rest-treasury-filters button.active{background:#0c78bc;color:#fff;border-color:#0c78bc}
.restaurant-workspace .rest-treasury-result-count{font-size:11px;color:#738398;margin-top:12px}
@media(max-width:1100px){.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(2,minmax(0,1fr))}.restaurant-workspace .rest-treasury-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.restaurant-workspace .rest-treasury-hero{flex-direction:column;align-items:stretch;padding:18px}.restaurant-workspace .rest-treasury-hero .restaurant-outline{width:100%}.restaurant-workspace .rest-treasury-dashboard,.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.restaurant-workspace .rest-treasury-dashboard article{padding:13px}.restaurant-workspace .rest-treasury-dashboard article>strong{font-size:23px}.restaurant-workspace .rest-treasury-report-head{padding:18px;flex-direction:column}.restaurant-workspace .rest-treasury-kpis{padding:15px;gap:8px}.restaurant-workspace .rest-treasury-kpis>div{padding:12px}.restaurant-workspace .rest-treasury-kpis strong{font-size:18px}.restaurant-workspace .rest-treasury-panels{grid-template-columns:1fr;padding:0 15px 15px}.restaurant-workspace .rest-treasury-products{padding:16px 15px}.restaurant-workspace .rest-treasury-actions{padding:16px}.restaurant-workspace .rest-treasury-actions button{flex:1 1 100%;min-height:43px}.restaurant-workspace .rest-treasury-operations{padding:16px}.restaurant-workspace .rest-treasury-operations-head{align-items:stretch;flex-direction:column}.restaurant-workspace .rest-treasury-qr-search{width:100%}}
@media(max-width:600px){.restaurant-workspace .rest-treasury-table-wrap{overflow:visible;border:0;background:transparent}.restaurant-workspace .rest-treasury-table-wrap table{min-width:0;display:block}.restaurant-workspace .rest-treasury-table-wrap thead{display:none}.restaurant-workspace .rest-treasury-table-wrap tbody{display:grid;gap:10px}.restaurant-workspace .rest-treasury-table-wrap tr{display:grid;gap:7px;background:#fff!important;border:1px solid #e0e8f1;border-radius:10px;padding:13px}.restaurant-workspace .rest-treasury-table-wrap td{border:0;padding:0;display:flex;align-items:start;justify-content:space-between;gap:8px;min-width:0;overflow-wrap:anywhere}.restaurant-workspace .rest-treasury-table-wrap td:not(:first-child)::before{content:'Detalle';font-size:11px;font-weight:730;color:#718297;flex:0 0 auto}.restaurant-workspace .rest-treasury-table-wrap td:nth-child(2)::before{content:'Caja / sucursal'}.restaurant-workspace .rest-treasury-table-wrap td:nth-child(3)::before{content:'Fecha / cantidad'}.restaurant-workspace .rest-treasury-table-wrap td:nth-child(4)::before{content:'Estado'}.restaurant-workspace .rest-treasury-table-wrap td:nth-child(5)::before{content:'Acciones'}.restaurant-workspace .rest-treasury-table-wrap td:nth-child(5){display:block}.restaurant-workspace .rest-treasury-row-actions{margin-top:5px}.restaurant-workspace .rest-treasury-products .rest-treasury-table-wrap td:nth-child(2)::before{content:'Cantidad'}.restaurant-workspace .rest-treasury-products .rest-treasury-table-wrap td:nth-child(3)::before{content:'Importe'}.restaurant-workspace .rest-treasury-products .rest-treasury-table-wrap td:last-child{text-align:left}.restaurant-workspace .rest-treasury-products-head{align-items:start}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap td:nth-child(2)::before{content:'Banco'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap td:nth-child(3)::before{content:'Importe'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap td:nth-child(4)::before{content:'Fecha'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap td:nth-child(5)::before{content:'Estado'} }
/* Precedencia de la tabla histórica: el módulo anterior fijaba min-width:730px. */
@media(max-width:600px){
 #restaurant-content:has(#rest-cash-result) .rest-history-table{max-width:100%;overflow:visible!important}
 #restaurant-content:has(#rest-cash-result) .rest-history-table table{display:block!important;min-width:0!important;width:100%!important}
 #restaurant-content:has(#rest-cash-result) .rest-history-table tbody{display:grid!important;gap:10px}
 #restaurant-content:has(#rest-cash-result) .rest-history-table tr{display:grid!important;width:100%;padding:13px;min-width:0;gap:7px}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td{display:flex!important;align-items:flex-start;justify-content:space-between;gap:8px;padding:0;min-width:0;white-space:normal;overflow-wrap:anywhere}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:first-child{display:block!important}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:last-child{display:block!important}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(2)::before{content:'Caja / sucursal'}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(3)::before{content:'Responsable'}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(4)::before{content:'Cierre'}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(5)::before{content:'Total cobrado'}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(6)::before{content:'Estado'}
 #restaurant-content:has(#rest-cash-result) .rest-history-table td:nth-child(7)::before{content:'Acciones'}
}
.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.restaurant-workspace .rest-treasury-dashboard.qr{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V20.454 · QR Restaurante: misma trazabilidad del remitente que Comercio. */
.restaurant-workspace .rest-qr-table{min-width:1050px}
.restaurant-workspace .rest-qr-payer-cell{min-width:205px;max-width:300px}
.restaurant-workspace .rest-qr-payer-cell strong{display:block;color:#17324d;font-size:13px;overflow-wrap:anywhere}
.restaurant-workspace .rest-qr-payer-detail{margin-top:5px;font-size:12px}
.restaurant-workspace .rest-qr-payer-detail summary{color:#1369a2;cursor:pointer;font-weight:700;list-style:revert}
.restaurant-workspace .rest-qr-payer-detail dl{margin:9px 0 0;background:#f1f7fb;border:1px solid #dce8f0;border-radius:9px;padding:11px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:7px}
.restaurant-workspace .rest-qr-payer-detail dt{color:#60758a;font-weight:500}
.restaurant-workspace .rest-qr-payer-detail dd{margin:0;font-weight:700;color:#19344d;overflow-wrap:anywhere}
.restaurant-workspace .rest-qr-recover{margin-top:5px;min-height:30px;padding:5px 8px;font-size:12px}
.restaurant-workspace .rest-qr-muted{font-size:12px;color:#65798c}
@media(max-width:600px){.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table{min-width:0}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table td:nth-child(4)::before{content:'Pagador'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table td:nth-child(5)::before{content:'Fecha QR'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table td:nth-child(6)::before{content:'Banco'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table td:nth-child(7)::before{content:'Venta'}.restaurant-workspace .rest-treasury-operations .rest-treasury-table-wrap .rest-qr-table .rest-qr-payer-cell{display:block;max-width:none}.restaurant-workspace .rest-qr-payer-detail dl{grid-template-columns:1fr}.restaurant-workspace .rest-qr-payer-detail dt{font-size:11px}.restaurant-workspace .rest-qr-payer-detail dd{margin-bottom:6px}}

/* V20.464 – Bandeja de pedidos web directamente en caja gastronómica. */
.rest-web-inbox{background:#f6fcf7;border:1px solid #b7dfc8;border-left:4px solid #138661;border-radius:13px;padding:14px 17px;margin:0 0 15px;min-width:0}
.rest-web-inbox[hidden]{display:none!important}.rest-web-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.rest-web-inbox-head h3{font-size:16px;margin:3px 0 0;color:#144733}.rest-web-inbox-kicker{font-size:10px;letter-spacing:.1em;color:#1b8660;font-weight:850}.rest-web-inbox-head button{background:#fff;min-height:37px}.rest-web-items{display:grid;gap:9px;max-height:350px;overflow-y:auto}.rest-web-item{background:#fff;border:1px solid #d1e9d7;border-radius:10px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:15px}.rest-web-item-info{min-width:0;flex:1}.rest-web-item-info>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rest-web-item-info strong{font-size:13px;color:#173d2f}.rest-web-item-info p{margin:6px 0 2px;color:#506e60;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.rest-web-item-info small{font-size:11px;color:#8c6243}.rest-web-state{border-radius:20px;padding:3px 7px;background:#eaf4ed;color:#3b7056;font-size:10px;font-weight:750}.rest-web-state.urgent{background:#fff0dc;color:#9c5c20}.rest-web-item-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.rest-web-item-actions>strong{color:#11583c;font-size:14px;white-space:nowrap}.rest-web-item-actions button{min-height:36px;padding:7px 10px}.rest-web-ticket{border:0;background:transparent;color:#187450;font-weight:750;font-size:11px}.rest-table-qr{display:flex;gap:15px;align-items:center;margin-top:15px;padding:16px;background:#f2faf5;border:1px solid #cde5d2;border-radius:15px;overflow-wrap:anywhere}.rest-table-qr img{background:#fff;flex:none;max-width:100%;width:192px;height:192px;object-fit:contain;border:8px solid #fff;border-radius:12px}.rest-table-qr strong{color:#155a3e;font-size:18px}.rest-table-qr p{color:#4c7561;font-size:12px;line-height:1.45}.rest-table-qr-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.rest-table-qr-actions .restaurant-outline{display:inline-flex;align-items:center;min-height:38px;font-size:12px;padding:8px 10px;text-decoration:none}
@media(max-width:760px){.rest-web-item{align-items:flex-start;flex-direction:column}.rest-web-item-actions{justify-content:flex-start;width:100%}.rest-table-qr{flex-direction:column;align-items:stretch}.rest-table-qr img{align-self:center}.rest-web-inbox-head{align-items:flex-start}.rest-web-inbox-head button{flex:none}}

/* V20.470 · Mi menú: administración compacta, distinta del POS visual. */
.restaurant-workspace .rest-simple-menu{--rest-menu-line:#e3e9f0;--rest-menu-ink:#102a49}
.restaurant-workspace .rest-simple-menu .rest-catalog-layout{display:grid!important;grid-template-columns:minmax(280px,370px) minmax(0,1fr);gap:18px;align-items:start}
.restaurant-workspace .rest-simple-menu .rest-catalog-editor{grid-column:auto;grid-row:auto;position:sticky;top:12px;display:block;padding:22px}
.restaurant-workspace .rest-simple-menu .rest-simple-header{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}
.restaurant-workspace .rest-simple-menu .rest-simple-header h3,.restaurant-workspace .rest-simple-menu .rest-simple-list-top h3{margin:0;color:var(--rest-menu-ink);font-size:18px}
.restaurant-workspace .rest-simple-menu .rest-simple-header p{margin:5px 0 0;font-size:12px}
.restaurant-workspace .rest-simple-menu #rest-cancel-edit{font-size:11px;padding:7px 9px;white-space:nowrap}
.restaurant-workspace .rest-simple-menu .rest-catalog-editor .rest-form{gap:15px}
.restaurant-workspace .rest-simple-menu .rest-catalog-editor .rest-form>label{font-size:12px;color:#37516d}
.restaurant-workspace .rest-simple-menu .rest-catalog-editor .rest-form input:not([type=file]),.restaurant-workspace .rest-simple-menu .rest-catalog-editor .rest-form select{min-height:42px}
.restaurant-workspace .rest-simple-menu .rest-catalog-upload{display:flex!important;flex-direction:row!important;align-items:center;text-align:left!important;gap:14px;padding:0;border:0;background:none;min-height:100px;cursor:pointer;margin-bottom:3px}
.restaurant-workspace .rest-simple-menu .rest-photo-preview{flex:0 0 95px;height:95px;border:2px dashed #c9d6e5;border-radius:11px;background:#f7faff;display:grid;place-content:center;text-align:center;color:#6682a1;overflow:hidden}
.restaurant-workspace .rest-simple-menu .rest-photo-preview>span{font-size:26px;line-height:1}
.restaurant-workspace .rest-simple-menu .rest-photo-preview small{font-size:11px}
.restaurant-workspace .rest-simple-menu .rest-photo-preview img{display:block;width:95px;height:95px;object-fit:contain;background:#fff}
.restaurant-workspace .rest-simple-menu .rest-photo-explainer{display:grid;gap:5px;min-width:0}
.restaurant-workspace .rest-simple-menu .rest-photo-explainer strong{font-size:13px;color:#195a9f;overflow-wrap:anywhere}
.restaurant-workspace .rest-simple-menu .rest-photo-explainer small{font-size:11px;line-height:1.25;color:#6c8096}
.restaurant-workspace .rest-simple-menu .rest-simple-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.restaurant-workspace .rest-simple-menu .rest-simple-form-row>label{min-width:0;font-size:12px;color:#37516d;display:grid;gap:7px}
.restaurant-workspace .rest-simple-menu .rest-simple-options{border:1px solid var(--rest-menu-line);border-radius:9px;padding:10px 12px;color:#38556c;font-size:12px}
.restaurant-workspace .rest-simple-menu .rest-simple-options summary{cursor:pointer;font-weight:700}
.restaurant-workspace .rest-simple-menu .rest-simple-options summary small{font-weight:400}
.restaurant-workspace .rest-simple-menu .rest-simple-options label{display:grid;gap:8px;margin-top:12px}
.restaurant-workspace .rest-simple-menu .rest-simple-options textarea{width:100%;min-height:80px}
.restaurant-workspace .rest-simple-menu .rest-simple-options p{margin:7px 0 0}
.restaurant-workspace .rest-simple-menu .rest-catalog-center{min-width:0;padding:0!important;border-radius:13px;overflow:hidden}
.restaurant-workspace .rest-simple-menu .rest-simple-list-top{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:17px 18px 12px}
.restaurant-workspace .rest-simple-menu .rest-simple-list-top h3{white-space:nowrap}
.restaurant-workspace .rest-simple-menu .rest-simple-list-top h3 span{font-size:13px;color:#698098;font-weight:600}
.restaurant-workspace .rest-simple-menu .rest-simple-list-top .rest-input{width:min(260px,50%);margin:0;min-height:38px}
.restaurant-workspace .rest-simple-menu .rest-simple-categories{display:flex;gap:7px;overflow:auto;padding:0 17px 13px;border-bottom:1px solid var(--rest-menu-line)}
.restaurant-workspace .rest-simple-menu .rest-simple-categories button{border:1px solid var(--rest-menu-line);background:#fff;color:#536c83;padding:7px 12px;white-space:nowrap;border-radius:22px;font-size:12px;font-weight:700}
.restaurant-workspace .rest-simple-menu .rest-simple-categories button.active{background:#eaf4ff;border-color:#afd6ff;color:#0861ad}
.restaurant-workspace .rest-simple-menu .rest-simple-categories button span{font-size:10px;margin-left:4px}
.restaurant-workspace .rest-simple-menu .rest-simple-product-list{display:grid;grid-template-columns:1fr;gap:0;margin:0}
.restaurant-workspace .rest-simple-menu .rest-catalog-card{display:grid;grid-template-columns:70px minmax(0,1fr) minmax(160px,auto);gap:13px;align-items:center;border:0;border-bottom:1px solid var(--rest-menu-line);border-radius:0;padding:13px 16px;background:#fff}
.restaurant-workspace .rest-simple-menu .rest-catalog-card:last-child{border-bottom:0}
.restaurant-workspace .rest-simple-menu .rest-catalog-photo{width:65px;height:65px;margin:0;border:0;border-radius:10px;overflow:hidden;background:#f3f6fa;display:grid;place-items:center}
.restaurant-workspace .rest-simple-menu .rest-catalog-photo img{display:block;width:100%;height:100%;object-fit:contain}
.restaurant-workspace .rest-simple-menu .rest-catalog-info{padding:0;min-width:0}
.restaurant-workspace .rest-simple-menu .rest-catalog-info h3{font-size:14px;margin:0 0 4px;color:#102a49}
.restaurant-workspace .rest-simple-menu .rest-catalog-info p{min-height:0;font-size:11px;color:#72869a;margin:0 0 6px;line-height:1.35}
.restaurant-workspace .rest-simple-menu .rest-catalog-info>strong{font-size:14px;color:#0a55ab}
.restaurant-workspace .rest-simple-menu .rest-catalog-controls{display:flex;flex-direction:column;gap:7px;align-items:flex-end}
.restaurant-workspace .rest-simple-menu .rest-simple-status{border:1px solid #c4dfcf;background:#f0fbf5;color:#176b47;padding:6px 10px;border-radius:25px;font-size:11px;font-weight:800;min-height:29px}
.restaurant-workspace .rest-simple-menu .rest-simple-status.soldout{color:#8b4f1b;background:#fff4e6;border-color:#f3d3b5}
.restaurant-workspace .rest-simple-menu .rest-simple-visibility{font-size:11px;color:#647a8e;display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.restaurant-workspace .rest-simple-menu .rest-simple-visibility input{margin:0}
.restaurant-workspace .rest-simple-menu .rest-catalog-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;margin:0}
.restaurant-workspace .rest-simple-menu .rest-catalog-actions .restaurant-outline{font-size:11px;min-height:28px;padding:5px 8px}
.restaurant-workspace .rest-simple-menu .rest-catalog-actions .rest-delete-dish{color:#a23d40;border-color:#f0d1d4}
.restaurant-workspace .rest-simple-menu .rest-simple-category-admin{border-top:1px solid var(--rest-menu-line);padding:13px 18px;color:#536c83;font-size:12px}
.restaurant-workspace .rest-simple-menu .rest-simple-category-admin summary{font-weight:700;cursor:pointer}
.restaurant-workspace .rest-simple-menu .rest-simple-category-admin form{max-width:370px;display:flex;gap:8px;align-items:flex-end;margin:14px 0}
.restaurant-workspace .rest-simple-menu .rest-simple-category-admin form label{flex:1;min-width:0}
.restaurant-workspace .rest-simple-menu .rest-simple-category-admin form button{white-space:nowrap;min-height:38px}
.restaurant-workspace .rest-simple-menu .rest-simple-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--rest-menu-line);padding:10px 0}
.restaurant-workspace .rest-simple-menu .rest-simple-category-row button{font-size:11px;padding:5px 9px;min-height:29px}
@media(max-width:1100px){.restaurant-workspace .rest-simple-menu .rest-catalog-layout{grid-template-columns:minmax(245px,330px) minmax(0,1fr);gap:12px}.restaurant-workspace .rest-simple-menu .rest-catalog-card{grid-template-columns:62px minmax(0,1fr);gap:10px}.restaurant-workspace .rest-simple-menu .rest-catalog-controls{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.restaurant-workspace .rest-simple-menu .rest-catalog-actions{margin-left:auto}}
@media(max-width:750px){.restaurant-workspace .rest-simple-menu .rest-catalog-layout{display:flex!important;flex-direction:column;gap:12px}.restaurant-workspace .rest-simple-menu .rest-catalog-editor{display:block!important;position:static;width:100%;padding:16px}.restaurant-workspace .rest-simple-menu .rest-catalog-center{width:100%}.restaurant-workspace .rest-simple-menu .rest-simple-list-top{padding:14px 12px;flex-wrap:wrap}.restaurant-workspace .rest-simple-menu .rest-simple-list-top .rest-input{width:100%}.restaurant-workspace .rest-simple-menu .rest-simple-categories{padding:0 12px 12px}.restaurant-workspace .rest-simple-menu .rest-catalog-card{padding:11px 10px}.restaurant-workspace .rest-simple-menu .rest-catalog-controls{gap:6px}.restaurant-workspace .rest-simple-menu .rest-catalog-photo{width:60px;height:60px}.restaurant-workspace .rest-simple-menu .rest-catalog-actions{width:100%;justify-content:flex-start;margin-left:0}.restaurant-workspace .rest-simple-menu .rest-simple-status{padding:5px 9px}}

/* V20.471 — Cantidades por plato accesibles, sin cuadros bloqueados. */
.restaurant-workspace .rest-qty-panel{max-width:1100px;padding:20px}
.restaurant-workspace .rest-qty-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}
.restaurant-workspace .rest-qty-head h3{margin:0 0 4px;font-size:17px}
.restaurant-workspace .rest-qty-head p{margin:0;color:#65788a}
.restaurant-workspace .rest-qty-location{font-size:12px;font-weight:700;color:#65788a;border:1px solid #dbe5ed;background:#f8fafc;padding:9px 11px;border-radius:9px}
.restaurant-workspace .rest-qty-branch{min-width:180px;font-size:12px;font-weight:700}
.restaurant-workspace .rest-qty-branch select{margin-top:5px;min-height:40px}
.restaurant-workspace .rest-qty-mode{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px;padding:12px 14px;background:#f5f8fc;border:1px solid #e2e9f1;border-radius:12px;margin:0 0 15px;cursor:pointer}
.restaurant-workspace .rest-qty-mode input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:var(--brand-primary,#188cdb)}
.restaurant-workspace .rest-qty-mode span{display:flex;flex-direction:column;gap:3px}
.restaurant-workspace .rest-qty-mode strong{font-size:13px;color:#172f48}
.restaurant-workspace .rest-qty-mode small{color:#617489;line-height:1.4;font-size:11px}
.restaurant-workspace .rest-qty-table-head{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:12px;padding:9px 13px;border-bottom:1px solid #d9e4ed;color:#677e91;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.05em}
.restaurant-workspace .rest-qty-row{display:grid;grid-template-columns:minmax(0,1fr) 185px;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #ebeff3;min-width:0}
.restaurant-workspace .rest-qty-product{display:flex;align-items:center;gap:12px;min-width:0}
.restaurant-workspace .rest-qty-product>div:last-child{min-width:0}
.restaurant-workspace .rest-qty-product strong{font-size:13px;line-height:1.3;display:block;color:#183149;overflow-wrap:anywhere}
.restaurant-workspace .rest-qty-product small{font-size:11px;color:#667b8d;display:block;margin-top:3px}
.restaurant-workspace .rest-qty-thumbnail{width:54px;height:54px;flex:0 0 54px;border:1px solid #dce6ed;background:#fff;border-radius:9px;display:grid;place-items:center;overflow:hidden}
.restaurant-workspace .rest-qty-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.restaurant-workspace .rest-qty-value{display:flex;flex-direction:column;gap:4px;min-width:0}
.restaurant-workspace .rest-qty-value input{width:100%;height:38px;min-height:38px;border:1px solid #bed2e3;border-radius:9px;padding:7px 11px;font-size:14px;font-weight:750;color:#193146;background:white;box-shadow:none}
.restaurant-workspace .rest-qty-unit{color:#64798a;font-size:11px;font-weight:550}
.restaurant-workspace .rest-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.restaurant-workspace .rest-qty-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 3px 0}
.restaurant-workspace .rest-qty-actions #rest-quantity-hint{max-width:590px;margin:0;line-height:1.45}
.restaurant-workspace .rest-qty-actions button{white-space:nowrap;min-height:40px}
.restaurant-workspace .rest-simple-menu .rest-catalog-stock-link{display:block;width:fit-content;text-align:left;border:0;background:transparent;color:#1679bc;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:2px;padding:5px 0 0}
.restaurant-workspace .rest-simple-menu .rest-catalog-stock-link:hover{color:#0a5282}
@media(max-width:650px){.restaurant-workspace .rest-qty-panel{padding:14px}.restaurant-workspace .rest-qty-head{flex-wrap:wrap}.restaurant-workspace .rest-qty-branch{width:100%}.restaurant-workspace .rest-qty-table-head{grid-template-columns:minmax(0,1fr) 106px;gap:7px}.restaurant-workspace .rest-qty-row{grid-template-columns:minmax(0,1fr) 106px;gap:8px;padding:10px 2px}.restaurant-workspace .rest-qty-thumbnail{width:42px;height:42px;flex-basis:42px}.restaurant-workspace .rest-qty-product{gap:8px}.restaurant-workspace .rest-qty-product strong{font-size:12px}.restaurant-workspace .rest-qty-mode{padding:10px}.restaurant-workspace .rest-qty-actions{flex-direction:column;align-items:stretch}.restaurant-workspace .rest-qty-actions button{width:100%}}

/* V20.472 · Mesas compactas y cocina centrada en caja; paleta de empresa heredada. */
.rest-tables-intro{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 15px;padding:12px 14px;border:1px solid var(--border-color,#dce5e9);background:#fff;border-radius:12px}
.rest-tables-intro p{font-size:13px;color:#536878;margin:0;max-width:610px}
.rest-tables-workspace{grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);align-items:start}
.rest-table-form-buttons{display:flex;flex-wrap:wrap;gap:9px}.rest-table-form-buttons .restaurant-primary{flex:1;min-width:160px}
.rest-table-list,.rest-kitchen-paid-list{display:grid;gap:9px}
.rest-table-row,.rest-kitchen-paid-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e0e7ed;border-radius:10px;padding:12px}
.rest-table-number{display:flex;align-items:center;justify-content:center;min-width:48px;max-width:90px;min-height:48px;padding:6px;border:1px solid #c6d9eb;border-radius:11px;background:#f0f6ff;font-size:15px;font-weight:800;color:#16436a;overflow-wrap:anywhere}
.rest-table-description{min-width:0;flex:1}.rest-table-description strong,.rest-kitchen-paid-row strong{display:block;font-size:13px;color:#203446}.rest-table-description small,.rest-kitchen-paid-row small{display:block;margin:3px 0;color:#647587;font-size:11px}
.rest-table-state{display:inline-block;margin-top:4px;font-size:11px;font-weight:700;color:#137551}.rest-table-state.inactive{color:#8b6973}
.rest-table-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.rest-table-actions button{font-size:11px;min-height:34px;padding:5px 8px}
.rest-kitchen-counts{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.rest-kitchen-counts span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dbe4ea;border-radius:8px;background:#fff;font-size:12px;color:#647587}.rest-kitchen-counts strong{color:#163e63;font-size:15px}
.rest-kitchen-section{margin:18px 0 24px}.rest-kitchen-section>h3{font-size:16px;margin:0 0 11px}.rest-kitchen-paid-row>div{flex:1;min-width:0}.rest-kitchen-paid-row p{font-size:12px;color:#526a77;margin:5px 0;overflow-wrap:anywhere}.rest-kitchen-paid-row .restaurant-outline{white-space:nowrap}
@media(max-width:800px){.rest-tables-workspace{grid-template-columns:1fr}.rest-table-row,.rest-kitchen-paid-row{align-items:flex-start}.rest-kitchen-paid-row{flex-direction:column}.rest-kitchen-paid-row button{width:100%}}
@media(max-width:490px){.rest-table-row{flex-wrap:wrap}.rest-table-actions{width:100%;justify-content:flex-start}.rest-table-actions button{flex:1;min-width:75px}.rest-tables-intro .restaurant-outline{width:100%}}

/* V20.473 · Pedidos online vs QR por mesa, gestión de enlaces cortos. */
.rest-web-simple .rest-inline-check{display:flex;gap:12px;align-items:flex-start;line-height:1.4}
.rest-web-simple .rest-inline-check input{flex:none;margin-top:3px}
.rest-web-simple .rest-inline-check span{display:flex;flex-direction:column;gap:3px}
.rest-web-simple .rest-inline-check small{font-size:12px;color:var(--text-muted,#64748b);font-weight:400}
.rest-web-simple .rest-web-secondary{border-top:1px solid #d7e0e7;padding-top:14px;margin-top:16px}
.rest-web-simple .rest-web-secondary>summary{font-weight:700;cursor:pointer;margin-bottom:12px}
.rest-web-simple .rest-table-qr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.rest-web-simple .rest-table-qr-actions>a,.rest-web-simple .rest-table-qr-actions>button{max-width:100%;width:auto}
@media(max-width:540px){.rest-web-simple .restaurant-panel{min-width:0}.rest-web-simple input{min-width:0}}

/* V20.476: dos canales operativos, sin mezclar tienda online y QR de mesa. */
.restaurant-workspace .rest-web-layout{display:grid;gap:14px;max-width:960px;margin:0 auto}
.restaurant-workspace .rest-web-tabs{display:flex;gap:8px;padding:5px;background:#f1f5fa;border-radius:12px}
.restaurant-workspace .rest-web-tabs button{flex:1;min-width:0;padding:12px 9px;font-weight:800;font-size:14px;border:1px solid transparent;background:transparent;color:#46617b;border-radius:9px;cursor:pointer}
.restaurant-workspace .rest-web-tabs button.active{background:#fff;border-color:#ccddeb;color:#075fc4;box-shadow:0 3px 10px #193f6420}
.restaurant-workspace .rest-web-pane{display:grid;gap:13px;min-width:0}
.restaurant-workspace .rest-web-pane[hidden]{display:none!important}
.restaurant-workspace .rest-web-pane .restaurant-panel{min-width:0}
@media(max-width:560px){.restaurant-workspace .rest-web-tabs button{font-size:12px;padding:11px 7px}}

.rest-web-item .rest-delivery-map-link{display:inline-block;font-size:12px;font-weight:800;color:#1474d7;text-decoration:underline;margin-top:7px}

/* V20.492 — Pedidos Online y existencias mixtas */
.rest-online-dashboard,.rest-stock-panel{display:grid;gap:18px;max-width:1280px;margin:auto}
.rest-online-head{display:flex;justify-content:space-between;align-items:start;gap:16px}
.rest-online-head h2{margin:2px 0 5px;font-size:24px}.rest-online-head p{margin:0;color:var(--muted,#667085);max-width:720px}
.rest-online-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rest-online-summary>div{border:1px solid #dfe7ed;border-radius:14px;background:#f7fafc;padding:14px;display:flex;flex-direction:column;gap:6px}
.rest-online-summary span{font-size:12px;color:#587080}.rest-online-summary strong{font-size:23px;color:#153c54}
.rest-online-tools{display:flex;gap:12px;flex-wrap:wrap}.rest-online-tools label,.rest-stock-branch{font-weight:600;font-size:13px;display:grid;gap:5px;min-width:180px}
.rest-online-tools select,.rest-stock-branch select{background:#fff;min-height:42px;border-radius:9px;border:1px solid #d2dce6;padding:8px}
.rest-online-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rest-online-order{border:1px solid #dbe4eb;border-radius:14px;padding:16px;display:grid;gap:9px;background:#fff;min-width:0}
.rest-online-order-head,.rest-online-meta,.rest-online-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rest-online-order-head>div{display:grid;gap:2px}.rest-online-order-head small{font-size:11px;color:#667085}
.rest-online-state{background:#e6f5f0;border-radius:30px;padding:5px 9px;font-size:11px;color:#155849;font-weight:700}
.rest-online-state.warn{background:#fff1dc;color:#885211}.rest-online-meta{font-size:12px;color:#486275}.rest-online-meta b{font-size:17px;color:#11364c}
.rest-online-products{margin:0;font-weight:600;line-height:1.55;overflow-wrap:anywhere}.rest-online-customer,.rest-online-address{font-size:12px;color:#657383;margin:0;overflow-wrap:anywhere}
.rest-stock-panel .rest-online-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.rest-stock-table-wrap{overflow-x:auto}
.rest-stock-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:480px}
.rest-stock-table th,.rest-stock-table td{border-bottom:1px solid #e8edf1;padding:11px 8px;vertical-align:middle}.rest-stock-table th{color:#667085;background:#f8fafc}
.rest-stock-table td small{display:block;font-size:11px;color:#748496}.rest-stock-table .rest-stock-low td:nth-child(2){color:#b4570c;font-weight:700}
.rest-stock-two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
.rest-stock-two>section{border:1px solid #dfe7ed;border-radius:12px;padding:15px;min-width:0}.rest-stock-two h3{margin-top:0}
.rest-stock-purchase-lines{display:grid;gap:8px}.rest-stock-purchase-head,.rest-stock-purchase-line{display:grid;grid-template-columns:minmax(130px,1.5fr) repeat(3,minmax(80px,1fr));gap:8px;align-items:center}
.rest-stock-purchase-head{font-size:11px;color:#708092}.rest-stock-purchase-line{padding:5px 0;border-bottom:1px solid #eef1f4;font-size:12px}
.rest-stock-purchase-line input{min-width:0;width:100%;border:1px solid #d2dce6;border-radius:7px;padding:9px}
.rest-stock-history summary{cursor:pointer;font-weight:700;padding:10px}.rest-mixed-config{display:grid;grid-template-columns:1fr 170px;gap:12px;align-items:center;border:1px solid #e0e7ef;border-radius:10px;padding:12px}
@media(max-width:760px){.rest-online-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-online-list,.rest-stock-two{grid-template-columns:1fr}.rest-online-head{align-items:start}.rest-online-head .restaurant-outline{white-space:nowrap}.rest-online-tools label{flex:1;min-width:130px}.rest-stock-purchase-head{display:none}.rest-stock-purchase-line{grid-template-columns:repeat(3,1fr)}.rest-stock-purchase-line strong{grid-column:1/-1}.rest-mixed-config{grid-template-columns:1fr}}

@media(max-width:560px){.rest-online-dashboard .rest-online-head,.rest-stock-panel .rest-online-head{flex-direction:column;align-items:stretch}.rest-online-dashboard .rest-online-head button,.rest-stock-panel .rest-online-head button{align-self:flex-start}.rest-online-head h2{font-size:22px}}

/* SIAT en la ficha del plato: diálogo acotado, sin alterar otros módulos. */
.rest-fiscal-dialog{width:min(94vw,530px);max-height:90dvh;overflow:auto;border:1px solid #dce5f2;border-radius:16px;padding:0;box-shadow:0 20px 65px #102a4a55;color:#16304a;background:#fff}
.rest-fiscal-dialog::backdrop{background:#0b223c90;backdrop-filter:blur(3px)}
.rest-fiscal-content{padding:22px}
.rest-fiscal-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
.rest-fiscal-heading h3{font-size:18px;margin:0}
.rest-fiscal-dialog label{display:block;width:100%}
.rest-fiscal-dialog select,.rest-fiscal-dialog input{max-width:100%;width:100%;box-sizing:border-box}
@media(max-width:480px){.rest-fiscal-content{padding:16px}}

/* V20.494: seguimiento QR web en Pedidos Online, no en el POS. */
.rest-online-qr{border-top:1px solid #dce8ed;padding-top:14px;display:grid;gap:10px}
.rest-online-qr-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rest-online-qr-title h3{margin:0;font-size:16px}
.rest-online-qr-title span{font-size:12px;color:#536e80}
.rest-online-qr .rest-hint{margin:0}
.rest-online-qr-list{display:grid;gap:7px}
.rest-online-qr-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce8ed;border-radius:9px;padding:10px 12px;background:#fafcfe}
.rest-online-qr-row>div{display:grid;gap:3px;min-width:0}.rest-online-qr-row small{color:#536e80;overflow-wrap:anywhere}
.rest-online-qr-history{border-top:1px solid #e1e7ed;padding-top:9px}.rest-online-qr-history summary{cursor:pointer;font-size:12px;font-weight:600;color:#375d73;padding:3px 0}
.rest-online-qr-history .rest-online-qr-list{margin-top:9px}
@media(max-width:600px){.rest-online-qr-row{align-items:flex-start;flex-direction:column}.rest-online-qr-row button{width:100%}}
/* V20.527 · Cocina: tablero operativo, histórico y pantalla de preparación. */
.rest-k-shell{padding:0 0 20px;min-width:0}.rest-k-toolbar,.rest-k-controls,.rest-k-tabs,.rest-k-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rest-k-toolbar{justify-content:flex-end}.rest-k-live{font-size:12px;color:#23745d}.rest-k-offline,.rest-k-danger{color:#a12d2d!important}.rest-k-controls{margin:14px 0;align-items:end}.rest-k-controls label{flex:0 1 220px;min-width:130px}.rest-k-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.rest-k-summary>div{background:#fff;border:1px solid #dce5eb;border-radius:10px;padding:12px 16px}.rest-k-summary span{display:block;font-size:12px;color:#647587}.rest-k-summary strong{display:block;font-size:24px;color:#183d5c;margin-top:4px}.rest-k-tabs{margin:15px 0;border-bottom:1px solid #dce5eb}.rest-k-tabs button{padding:11px 13px;border:0;border-bottom:3px solid transparent;background:transparent;color:#4a6276;font-weight:600}.rest-k-tabs button[aria-pressed=true]{border-color:#1485c9;color:#125c8d}.rest-k-notice{border:1px solid #e4d7b9;border-radius:8px;background:#fffaf0;color:#72531f;padding:10px 13px;font-size:13px;overflow-wrap:anywhere}.rest-k-bulk{margin:12px 0;padding:10px;background:#fff;border:1px solid #dce5eb;border-radius:8px}.rest-k-bulk span{font-weight:600;font-size:13px}.rest-k-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.rest-k-column{min-width:0;background:#eaf0f5;border:1px solid #dbe4ec;border-radius:12px;padding:10px;display:grid;gap:10px;align-content:start}.rest-k-column h3{display:flex;justify-content:space-between;font-size:14px;margin:4px 3px 2px;color:#28465e}.rest-k-column h3 span{font-size:12px;background:#fff;border-radius:20px;padding:2px 8px}.rest-k-empty{color:#61788b;font-size:13px;padding:12px}.rest-k-card{border-top-color:#9a772f;padding:13px}.rest-k-card.rest-k-preparing{border-top-color:#1684c2}.rest-k-card.rest-k-ready,.rest-k-card.rest-k-dispatched{border-top-color:#16856c}.rest-k-card.rest-k-delivered,.rest-k-card.rest-k-cancelled{border-top-color:#8092a2}.rest-k-meta{display:flex;gap:8px;justify-content:space-between;align-items:center;color:#647587;font-size:11px;margin:8px 0}.rest-k-age{white-space:nowrap;color:#466176}.rest-k-late{color:#a12d2d}.rest-k-tags{display:flex;flex-wrap:wrap;gap:5px}.rest-k-tags span{font-size:11px;background:#edf2f6;color:#486173;border-radius:5px;padding:4px 6px}.rest-k-tags .rest-k-pay-paid{background:#e5f3ea;color:#186644}.rest-k-tags .rest-k-pay-unpaid,.rest-k-tags .rest-k-pay-unverified{background:#fff3dc;color:#8c5f13}.rest-k-tags .rest-k-pay-credit{background:#e8effc;color:#355d99}.rest-k-card .rest-ticket-lines>div{flex-direction:column;gap:3px}.rest-k-card .rest-ticket-lines strong{font-size:13px;overflow-wrap:anywhere}.rest-k-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:100%}.rest-k-actions details{font-size:12px;color:#536e84}.rest-k-actions details>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.rest-k-actions button{font-size:12px;min-height:34px;padding:7px 10px}.rest-k-actions button:disabled,.rest-k-bulk button:disabled{opacity:.5;cursor:default}#restaurant-content:fullscreen,#restaurant-content.rest-k-fullscreen-fallback{background:#f2f6f9;padding:20px;overflow:auto;width:100%;height:100%}#restaurant-content.rest-k-fullscreen-fallback{position:fixed;inset:0;z-index:2000}#restaurant-content:fullscreen .rest-k-board,#restaurant-content.rest-k-fullscreen-fallback .rest-k-board{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.rest-k-board,#restaurant-content:fullscreen .rest-k-board,#restaurant-content.rest-k-fullscreen-fallback .rest-k-board{grid-template-columns:1fr}.rest-k-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.rest-k-toolbar{justify-content:flex-start}}

/* V20.533 · POS gastronómico compacto; alcance exclusivo restaurante. */
.restaurant-workspace .rest-pos-toolbar{padding:9px 14px;min-height:46px;border-radius:10px;gap:8px;background:#fff;box-shadow:none}
.restaurant-workspace .rest-pos-toolbar>div:first-child{font-size:13px;color:#0f172a}.rest-pos-flow{color:#657a90;font-size:12px}
.restaurant-workspace .rest-pos-menu,.restaurant-workspace .rest-pos-ticket{padding:14px}
.restaurant-workspace .rest-pos-shell{gap:10px}.restaurant-workspace .rest-pos-layout{gap:12px}
.restaurant-workspace .rest-pos-menu .rest-section-head{margin-bottom:7px}.restaurant-workspace .rest-pos-menu #rest-search{min-height:38px;padding:7px 10px}
.restaurant-workspace .rest-pos-menu .rest-filter{margin:8px 0 12px;gap:5px}.restaurant-workspace .rest-pos-menu .rest-filter button{padding:7px 10px}
.restaurant-workspace .rest-pos-dishes{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:9px}
.restaurant-workspace .rest-pos-dish{min-height:166px;padding-bottom:9px;border-radius:10px}
.restaurant-workspace .rest-pos-dish>img,.restaurant-workspace .rest-pos-dish>.rest-dish-placeholder{height:84px;object-fit:contain;border-radius:9px 9px 0 0;background:#eff5fb}
.restaurant-workspace .rest-pos-add{top:65px;width:29px;height:29px;font-size:21px;line-height:23px}
.restaurant-workspace .rest-pos-dish-text{padding:8px 9px 0;gap:2px}.restaurant-workspace .rest-pos-dish-text strong{font-size:12px}.restaurant-workspace .rest-pos-dish-text b{font-size:15px}
.rest-favorite-mark,.restaurant-workspace .rest-favorite-toggle[aria-pressed=true]{color:#9a6700}
.restaurant-workspace .rest-pos-ticket-heading{margin:0 0 7px;padding-bottom:7px;gap:5px}.restaurant-workspace .rest-pos-ticket-heading h3{font-size:17px;margin:0}.restaurant-workspace .rest-pos-ticket-heading button{font-size:11px;padding:5px 8px}
.rest-pos-service-row{display:grid;gap:6px}.rest-service-buttons,.rest-table-buttons{display:flex;gap:5px;flex-wrap:wrap}.rest-service-buttons button,.rest-table-buttons button{border:1px solid #cad9ea;border-radius:7px;background:white;color:#173c6c;font-size:12px;min-height:34px;padding:6px 9px}.rest-service-buttons button{flex:1}.rest-service-buttons button[aria-pressed=true],.rest-table-buttons button[aria-pressed=true]{border-color:#0f6bff;background:#e7f3ff;color:#062a78;font-weight:700}.rest-table-buttons button:disabled{background:#f1f3f5;color:#718096;cursor:not-allowed}.rest-table-buttons{margin-top:6px}
.restaurant-workspace .rest-pos-order-head{margin-top:8px}.restaurant-workspace .rest-pos-ticket .rest-cart{min-height:48px;max-height:210px;margin:4px 0 7px}.restaurant-workspace .rest-pos-empty{height:66px;font-size:18px;gap:2px}.restaurant-workspace .rest-pos-cart-item{padding:6px 0}.restaurant-workspace .rest-pos-cart-bottom{margin-top:4px}.rest-line-note{flex:1;min-width:0}.rest-line-note summary,.rest-order-note summary{font-size:12px;color:#526b82;cursor:pointer}.rest-line-note input,.rest-order-note input{margin-top:4px}.restaurant-workspace .rest-order-note{margin:4px 0}.restaurant-workspace .rest-counter-pay{margin-top:9px;padding-top:8px;gap:6px}.restaurant-workspace .rest-counter-pay .rest-pay-methods span{min-height:36px}.restaurant-workspace .rest-pos-checkout-actions button{min-height:43px}.restaurant-workspace .rest-pos-ticket .rest-mobile-cart-total{display:none}.rest-order-actions{display:flex;gap:4px}.rest-order-actions button,.restaurant-workspace .rest-catalog-actions button[data-dish-up],.restaurant-workspace .rest-catalog-actions button[data-dish-down]{min-width:32px;padding:5px 7px}.restaurant-workspace .rest-k-mode{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}.rest-table-account-dialog{max-width:min(500px,94vw);max-height:80vh;overflow:auto}.rest-table-account-dialog .rest-table-account{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #e0e8f1}.rest-table-account-dialog>button{margin-top:10px}
@media(min-width:761px){.restaurant-workspace .rest-pos-ticket{max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}.restaurant-workspace .rest-pos-checkout-actions{position:sticky;bottom:0;background:white;z-index:2;padding:4px 0}.restaurant-workspace .rest-pos-ticket .rest-cart{max-height:clamp(85px,22dvh,210px)}}
@media(max-width:600px){.restaurant-workspace .rest-pos-toolbar{flex-direction:row;align-items:center;padding:8px!important}.restaurant-workspace .rest-pos-toolbar-actions{width:auto}.restaurant-workspace .rest-pos-dishes{grid-template-columns:repeat(2,minmax(0,1fr))}.restaurant-workspace .rest-pos-dish>img,.restaurant-workspace .rest-pos-dish>.rest-dish-placeholder{height:80px}.restaurant-workspace .rest-pos-dish{min-height:150px}.restaurant-workspace .rest-pos-add{top:60px}.restaurant-workspace .rest-pos-ticket .rest-cart{max-height:none}.restaurant-workspace .rest-pos-shell[data-mobile-view=cart] .rest-mobile-cart-total{display:flex;margin:6px 0;padding:5px 0}.restaurant-workspace .rest-pos-cart-bottom{grid-template-columns:auto minmax(0,1fr) auto}}
/* V20.534: responsive table order-taking, isolated from Commerce. */
.rest-waiter{display:grid;gap:12px;max-width:1100px}.rest-waiter .rest-w-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.rest-w-head h3,.rest-w-grid h3{margin:0 0 8px}.rest-w-mesas{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.rest-w-mesa{display:grid;text-align:left;gap:5px;border:1px solid #cddedc;background:#fff;border-radius:10px;padding:12px;min-height:80px;color:#1b4950}.rest-w-mesa small{font-size:12px}.rest-w-mesa.occupied{background:#fff9ec;border-color:#e4c98e}.rest-w-mesa.bill{background:#e9f2ff;border-color:#9cc4f1}.rest-w-mesa[aria-pressed=true]{outline:2px solid #1779cf;outline-offset:-2px}.rest-w-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr);gap:12px;align-items:start}.rest-w-grid>*{min-width:0}.rest-w-dishes{display:grid;gap:6px;margin-top:8px}.rest-w-dish,.rest-w-line{display:flex;align-items:center;gap:8px;justify-content:space-between;border-bottom:1px solid #e4ebed;padding:8px 0}.rest-w-dish>div,.rest-w-line>div:first-child{flex:1;min-width:0}.rest-w-dish small,.rest-w-line small{display:block;color:#58717a}.rest-w-dish select{max-width:40%}.rest-w-line input{width:100%;min-height:32px;border:1px solid #d4e0e5;border-radius:6px;padding:4px;margin-top:5px}.rest-w-qty{display:flex;align-items:center;gap:6px}.rest-w-qty button,.rest-w-dish button{min-width:42px;min-height:42px;padding:4px}.rest-w-account-line{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #e4ebed;font-size:13px}.rest-w-notice{padding:10px;background:#edf7f3;color:#16634d;border-radius:8px}.rest-w-dish[hidden],.rest-counter-pay[hidden]{display:none!important}@media(max-width:760px){.rest-w-grid{grid-template-columns:minmax(0,1fr)}.rest-w-mesas{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.rest-waiter .restaurant-panel{padding:12px}.rest-w-dish select{max-width:34%}.rest-w-head .rest-actions{flex-wrap:wrap}.rest-w-qty button{min-width:40px}}

.restaurant-workspace .rest-pos-deferred .rest-mobile-cart-total{display:flex;margin:8px 0}.rest-pos-deferred [data-rest-step=pay][hidden]{display:none!important}@media(max-width:600px){.rest-pos-deferred .rest-pos-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Experience dashboard scoped to restaurant only. */
.rest-experience-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}.rest-experience-kpis>div{border:1px solid var(--border,#d8e2e9);border-radius:10px;padding:14px;display:grid;gap:8px}.rest-experience-kpis strong{font-size:24px;font-variant-numeric:tabular-nums}.rest-experience-distribution{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.rest-experience-distribution span{padding:6px 10px;border:1px solid var(--border,#d8e2e9);border-radius:7px}.rest-experience-case{padding:15px 0;border-bottom:1px solid var(--border,#d8e2e9);overflow-wrap:anywhere}.rest-experience-case header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.rest-experience-case .rest-experience-stars{font-size:19px;color:#a96c06}.rest-experience-case details{margin-top:12px}.rest-experience-case form{display:grid;gap:8px;margin:10px 0}.rest-experience-case form label{display:grid;gap:5px}
/* V20.542 — configuración visible de turnos y QR, exclusiva de restaurante. */
.exp-settings .exp-settings-intro{color:var(--muted,#667788);margin:0 0 16px}
.exp-settings .exp-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(170px,.68fr);gap:14px;align-items:start}
.exp-settings .exp-settings-block,.exp-settings .exp-ticket-preview{min-width:0;border:1px solid var(--line,#d9e3ec);border-radius:12px;padding:14px;background:var(--surface,#fff)}
.exp-settings .exp-settings-block h4{margin:0 0 12px;font-size:14px}
.exp-settings .option-card{align-items:flex-start;gap:9px;padding:12px;margin:0 0 10px;white-space:normal}
.exp-settings .option-card input{flex:none;margin-top:3px}.exp-settings .option-card span{display:grid;gap:5px;min-width:0}.exp-settings .option-card small{font-size:12px;line-height:1.45;color:var(--muted,#607383);font-weight:400}
.exp-settings .exp-qr-choice{border-color:#a8c9e5;background:rgba(20,130,210,.05)}
.exp-settings .exp-settings-hint{font-size:12px;line-height:1.5;color:var(--muted,#607383);margin:8px 0}
.exp-settings details summary{cursor:pointer;font-size:13px;font-weight:600}.exp-settings details[open] summary{margin-bottom:12px}
.exp-settings .exp-ticket-preview{text-align:center;background:rgba(120,140,160,.06)}.exp-settings .exp-ticket-preview>small{font-size:10px;letter-spacing:.06em;color:var(--muted,#607383)}
.exp-settings .exp-ticket-paper{background:#fff;color:#222;border:1px dashed #b2b8bc;border-radius:4px;margin:12px auto;padding:14px 9px;max-width:230px;display:grid;gap:12px;font-size:11px;line-height:1.4}
.exp-settings .exp-ticket-turn{display:grid;gap:0}.exp-settings .exp-ticket-turn strong{font-size:42px;line-height:1.2;font-variant-numeric:tabular-nums}.exp-settings .exp-ticket-lines{border-block:1px dashed #bbb;padding:9px 0;display:grid;gap:6px;text-align:left}.exp-settings .exp-ticket-qr{display:grid;justify-items:center;gap:6px}.exp-settings .exp-qr-placeholder{display:grid;place-items:center;width:47px;height:47px;border:2px solid #222;font-weight:800;font-size:17px}.exp-settings [hidden]{display:none!important}
.exp-settings .exp-notice-settings{margin-top:14px}.exp-settings .exp-settings-save{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.exp-settings [data-settings-status]{font-size:12px;color:var(--muted,#607383)}
@media(max-width:1100px){.exp-settings .exp-settings-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.exp-settings .exp-ticket-preview{grid-column:1/-1}.exp-settings .exp-ticket-paper{max-width:230px}}
@media(max-width:650px){.exp-settings .exp-settings-layout{grid-template-columns:minmax(0,1fr)}.exp-settings .exp-settings-block{padding:12px}.exp-settings .exp-settings-save .btn{width:100%}}

/* Cierre de restaurante: formatos de impresión en el encabezado. */
.restaurant-workspace .rest-close-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0}
.restaurant-workspace .rest-close-print{position:relative;min-width:112px}
.restaurant-workspace .rest-close-print>summary{list-style:none;cursor:pointer;display:block;text-align:center;padding:10px 14px;border-radius:6px;background:#087bc8;color:#fff;font-weight:700;white-space:nowrap}
.restaurant-workspace .rest-close-print>summary::-webkit-details-marker{display:none}
.restaurant-workspace .rest-close-print>div{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:184px;background:#fff;border:1px solid #d9e4ed;border-radius:8px;box-shadow:0 8px 24px #18324922;padding:5px}
.restaurant-workspace .rest-close-print button{display:block;width:100%;padding:10px;text-align:left;border:0;background:#fff;color:#183249;border-radius:4px;white-space:nowrap;cursor:pointer}
.restaurant-workspace .rest-close-print button:hover,.restaurant-workspace .rest-close-print button:focus-visible{background:#eef5fb}
@media(max-width:700px){.restaurant-workspace .rest-close-header-actions{width:100%;justify-content:space-between}.restaurant-workspace .rest-close-print>div{max-width:calc(100vw - 48px)}}


/* Archivo: multicode.css */

.fbo-multicode-scroll{max-height:min(60vh,620px);overflow:auto;max-width:100%;border:1px solid #dce4ea;border-radius:9px;margin:14px 0}.fbo-multicode-table{min-width:980px;width:100%;border-collapse:collapse;font-size:12px}.fbo-multicode-table th,.fbo-multicode-table td{padding:10px;border-bottom:1px solid #e6ebef;text-align:left;vertical-align:top;max-width:250px}.fbo-multicode-table th{position:sticky;top:0;background:#f7fafb;z-index:1}.fbo-multicode-table small{display:block;color:#66788a;margin-top:3px}.fbo-multicode-table select{max-width:220px;width:100%;margin-top:6px}
.fbo-multicode-table td{overflow-wrap:anywhere}.fbo-multicode-table td:nth-child(4){max-width:210px}.fbo-multicode-table td:nth-child(4) small{max-height:2.6em;overflow:hidden}.fbo-multicode-table td:nth-child(6){min-width:160px}
@media(max-width:700px){.fbo-multicode-scroll{max-height:55vh}.fbo-multicode-table{min-width:760px}.fbo-multicode-table th,.fbo-multicode-table td{padding:8px}}
.fbo-multicode-decisions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:14px;margin:16px 0}.fbo-multicode-decisions section{padding:16px;border:1px solid #dce5ee;border-radius:10px;background:#f8fbfd;min-width:0}.fbo-multicode-decisions h4{margin:0 0 6px}.fbo-multicode-decisions .field{margin:12px 0 0}.fbo-multicode-decisions select{width:100%;min-width:0}.fbo-multicode-filter{max-width:230px}


/* Archivo: direct-invoices.css */
#direct-new,#direct-history{max-width:1020px}.direct-tabs{display:flex;gap:8px;margin:12px 0}.direct-line,.direct-payment{border:1px solid #d9e4ed;border-radius:10px;padding:16px;margin:12px 0;background:#fff}.direct-line-head{display:flex;align-items:center;justify-content:space-between}.direct-suggestions{display:grid;gap:4px;max-height:180px;overflow:auto;margin:8px 0}.direct-suggestions button{text-align:left;white-space:normal}.direct-payment{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;align-items:end;gap:8px}.direct-payment .field{min-width:0}.direct-backdrop{position:fixed;inset:0;z-index:1000;background:#102642ad;display:grid;place-items:center;padding:16px}.direct-modal{max-height:90vh;overflow:auto;background:#fff;border-radius:12px;padding:24px;width:min(780px,100%);box-shadow:0 24px 65px #1026424d}.direct-total{font-size:1.3rem;font-weight:700;text-align:right}@media(max-width:760px){.direct-payment{grid-template-columns:1fr 1fr}.direct-modal{padding:16px}}
.direct-buyer-lookup{position:relative;min-width:0}.direct-customer-results:not(:empty){position:absolute;z-index:6;top:100%;left:0;right:0;display:grid;gap:4px;background:#fff;border:1px solid #c8d9e5;border-radius:8px;padding:8px;box-shadow:0 12px 24px #1026421c;max-height:240px;overflow:auto}.direct-customer-results .btn{text-align:left;white-space:normal}.direct-contact{margin:8px 0 16px;padding:10px 12px;border:1px solid #d9e4ed;border-radius:8px}.direct-contact summary{cursor:pointer;font-weight:600}.direct-suggestions button{display:grid;gap:3px}.direct-suggestions small{font-size:11px;color:var(--muted)}
.direct-payment-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.direct-payment-options button,.direct-payment-other button{min-height:45px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:650;cursor:pointer}.direct-payment-options button:hover,.direct-payment-other button:hover{background:#f4faf7;border-color:#338f77}.direct-payment-options button[aria-pressed="true"],.direct-payment-other button[aria-pressed="true"]{border-color:#128065;background:#eaf8f1;color:#075840;box-shadow:inset 0 0 0 1px #128065}.direct-payment-options button:focus-visible,.direct-payment-other button:focus-visible{outline:3px solid #7ccbb1;outline-offset:2px}.direct-payment-other{margin:6px 0 12px;color:var(--muted);font-size:12px}.direct-payment-other summary{cursor:pointer}.direct-payment-other>div{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.direct-payment-other button{padding:0 12px}.direct-payment{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:8px 0;background:#f6fafb}.direct-payment>strong{min-width:95px}.direct-payment .field{min-width:145px;margin:0}.direct-payment-amount{font-weight:700;font-size:20px;color:#16496e}.direct-payment [hidden],#direct-mixed-payments[hidden],#direct-payments[hidden]{display:none!important}#direct-mixed-balance{font-weight:650;font-variant-numeric:tabular-nums}@media(max-width:760px){.direct-payment-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
#direct-lines{display:grid;gap:12px;margin:12px 0}.direct-line{margin:0;padding:0;overflow:hidden;border:1px solid #cfdde9;border-radius:10px;background:#fff;box-shadow:0 1px 2px #1026420b}.direct-line-head{display:flex;gap:10px;align-items:center;padding:12px 14px;background:#eef5f8;border-bottom:1px solid #cfdde9}.direct-line-head>div{display:grid;gap:2px;flex:1}.direct-line-head small{font-size:10px;letter-spacing:.06em;color:#4f7185}.direct-line-head strong{font-size:14px;color:#102b46}.direct-line-number{display:grid;place-items:center;min-width:34px;height:34px;border-radius:7px;background:#16496e;color:#fff;font-weight:700}.direct-line-body{padding:14px}.direct-fiscal{margin-top:12px;padding:12px;border:1px solid #d7e5ec;border-radius:8px;background:#f6fafb}.direct-fiscal>strong{font-size:13px}.direct-fiscal>p{margin:5px 0 9px}.direct-suggestions{display:grid;gap:5px;margin:8px 0;max-height:none;overflow:visible}.direct-suggestions[hidden],.direct-fiscal-selected[hidden],.direct-unit-picker[hidden]{display:none}.direct-suggestion{display:grid;gap:3px;width:100%;padding:10px;border:1px solid #d2e0e9;border-radius:7px;background:#fff;text-align:left;cursor:pointer}.direct-suggestion:hover,.direct-suggestion:focus-visible{border-color:#2e7392;background:#eef7fa}.direct-suggestion strong{font-size:13px}.direct-suggestion small{font-size:11px;color:#547083}.direct-fiscal details{margin-top:8px}.direct-fiscal details summary{cursor:pointer;font-size:12px;color:#225a7a}.direct-fiscal-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #b4dbc9;border-radius:7px;background:#edf8f3;font-size:12px;font-weight:600}.direct-unit-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;font-size:12px}.direct-unit-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px}.direct-contact>.grid2{margin-top:10px}@media(max-width:640px){.direct-unit-picker{grid-template-columns:1fr}.direct-line-body{padding:10px}}
.direct-unit-picker [data-direct-unit-status]{grid-column:1/-1;margin:0;line-height:1.25}.direct-payment-options{gap:6px;margin:6px 0}.direct-payment-options button,.direct-payment-other button{min-height:36px;font-size:12px;border-radius:7px}.direct-payment-other{margin:3px 0 6px}.direct-payment-other>div{margin:5px 0}.direct-payment{gap:8px;padding:9px 11px;margin:5px 0;border-radius:8px;align-items:center}.direct-payment>strong{min-width:78px;font-size:12px}.direct-payment-value{display:flex;flex-direction:column;min-width:100px;gap:1px}.direct-payment-amount{font-size:16px;line-height:1.2;white-space:nowrap}.direct-payment-value small{font-size:10px;color:var(--muted)}.direct-payment .field{min-width:140px}.direct-payment .field .label{font-size:10px;margin-bottom:3px}.direct-payment .field input{min-height:33px;padding:6px 9px}.direct-payment [data-direct-reference]{flex:1;min-width:140px}.direct-payment [data-direct-card]{flex:1;min-width:185px}#direct-mixed-payments>.tiny{margin:4px 0}#direct-mixed-balance{margin:4px 0 8px;font-size:12px}@media(max-width:520px){.direct-payment-options{grid-template-columns:repeat(2,minmax(0,1fr))}.direct-payment>strong{min-width:64px}.direct-payment [data-direct-reference],.direct-payment [data-direct-card]{flex-basis:100%}}
.direct-payment [data-direct-card]{flex:1 1 270px}.direct-card-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.direct-payment .direct-card-inputs .field{min-width:0}.direct-card-note{margin:0 0 5px;line-height:1.25}#direct-later-card{margin:10px 0}#direct-later-card[hidden]{display:none!important}@media(max-width:520px){.direct-card-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.direct-document-pane{margin:0}.direct-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.direct-document-pane iframe{display:block;width:100%;height:min(76vh,800px);border:0;border-radius:8px;background:#202124}.direct-modal:has(.direct-document-pane){width:min(460px,100%);padding:14px;max-height:94dvh}.direct-document-help{margin:8px 0 0}.direct-document-actions{display:flex;gap:8px;margin-top:8px}@media(max-width:760px){.direct-document-pane iframe{height:70dvh}}
.direct-document-pane iframe[hidden]{display:none}
.direct-modal:has(.direct-document-pane){width:min(480px,100%)}.direct-document-tools{display:flex;gap:8px;justify-content:flex-end;margin:0 0 10px}.direct-pdf-pages{max-height:min(74vh,800px);overflow:auto;display:grid;justify-items:center;gap:10px;background:#edf1f5;border:1px solid #d9e4ed;border-radius:8px;padding:12px}.direct-pdf-pages canvas{display:block;width:min(100%,340px);height:auto;background:#fff;box-shadow:0 2px 9px #10264220}.direct-print-frame{position:absolute;width:0;height:0;border:0;visibility:hidden}.direct-document-pane [hidden]{display:none!important}

#direct-customer-new{display:inline-flex;align-items:center;gap:5px;width:auto;min-width:0;min-height:34px;margin-top:5px;padding:5px 10px}#direct-customer-new span:first-child{font-size:17px;line-height:1}

.direct-ai-action{display:inline-flex;align-items:center;justify-content:center;margin:2px 0 10px;max-width:100%;min-height:39px}.direct-ai-action[hidden]{display:none}.direct-ai-action:disabled{opacity:.7;cursor:wait}

/* V20.509: una sola tira continua, sin separaciones artificiales entre páginas. */
.direct-document-tools{flex-wrap:wrap;gap:7px}
.direct-pdf-pages{gap:0}
.direct-pdf-pages canvas{box-shadow:none}
.direct-pdf-pages canvas+canvas{margin-top:0}
@media(max-width:500px){.direct-document-tools{justify-content:stretch}.direct-document-tools .btn{flex:1 1 auto;white-space:normal;text-align:center}}

/* V20.596: ancho de visor por documento, no por pantalla de emisión. */
.direct-modal.direct-sheet-modal{width:min(860px,100%)}
.direct-sheet-modal .direct-pdf-pages canvas{width:100%;max-width:760px;height:auto}
.direct-paper-choice{margin:0 0 10px}.direct-paper-choice select{width:100%}


/* Archivo: staff-invitations.css */
.staff-mode-options{margin:12px 0 0;max-width:760px}
.staff-mode-options .pos-payment-option{display:grid;gap:4px;min-height:76px;text-align:left;padding:12px 16px}
.staff-mode-options .pos-payment-option strong{font-size:14px}
.staff-mode-options .pos-payment-option small{font-size:11px;line-height:1.35;color:var(--muted);font-weight:400}
#page .panel[hidden]{display:none!important}


/* Archivo: order-purchases.css */
/* V20.259 - Compras de Producción: separación clara entre materiales, orden y documento. */
.order-purchase-panel{margin-top:16px;min-width:0}
.order-purchase-panel>header{margin-bottom:18px}
.order-purchase-panel h3,.order-purchase-panel h4{margin:0 0 5px}
.order-purchase-panel p{margin:4px 0 0}
.order-purchase-grid{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(370px,1fr);gap:18px;align-items:start}
.order-purchase-area{border:1px solid var(--line,#d8e4ec);border-radius:12px;padding:18px;min-width:0;background:var(--panel,#fff)}
.order-purchase-section-heading{display:flex;align-items:center;gap:11px;margin:0 0 17px}
.order-purchase-section-heading h4{font-size:15px}
.order-purchase-step{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;background:var(--brand-primary,#163b66);color:#fff;font-size:13px;font-weight:700}
.order-purchase-scroll{overflow-x:auto;max-width:100%}
.order-purchase-panel table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.order-purchase-panel th{background:var(--soft,#eff5fa);color:var(--muted,#415c69);font-size:11px;text-align:left}
.order-purchase-panel th,.order-purchase-panel td{padding:13px 11px;border-bottom:1px solid var(--line,#e1e9ed);vertical-align:middle;min-width:0}
.order-purchase-panel td small{display:block;color:var(--muted,#667d89);margin-top:4px;line-height:1.4}
.order-purchase-panel [data-need] td:first-child{width:64px;text-align:center}
.order-purchase-panel [data-need]:has(input:checked){background:var(--brand-surface,#f0f7fb)}
.order-purchase-panel [data-need] td strong{overflow-wrap:anywhere}
.order-purchase-select input{width:19px;height:19px;accent-color:var(--brand-primary,#173d66);cursor:pointer}
.order-purchase-supplier{display:flex;align-items:end;gap:9px;margin-bottom:11px}
.order-purchase-supplier .field{flex:1;min-width:0}
.order-purchase-supplier .btn{white-space:nowrap;margin-bottom:1px}
.order-purchase-terms{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.order-purchase-terms .field{min-width:0}
.order-purchase-panel [hidden]{display:none!important}
.order-purchase-qr{border:1px solid #b8d8e9;background:#f3f9fc;border-radius:8px;padding:12px;margin:12px 0}
.order-purchase-line-title{border-top:1px solid var(--line,#d8e4ec);padding-top:18px;margin-top:18px;margin-bottom:13px}
.order-purchase-empty{border:1px dashed var(--line,#c5d7e4);border-radius:8px;background:var(--soft,#f8fafc);padding:15px;color:var(--muted,#64758b)}
.order-purchase-item{border:1px solid #cbdbe8;border-radius:11px;background:var(--panel,#fff);margin:0 0 13px;overflow:hidden;box-shadow:0 1px 3px rgba(15,38,65,.05)}
.order-purchase-item-head{display:flex;gap:11px;align-items:center;background:var(--soft,#f0f6fa);padding:13px 14px;border-bottom:1px solid var(--line,#d8e4ec)}
.order-purchase-number{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#e0eaf5;color:#173d66;font-size:12px;font-weight:700}
.order-purchase-item-head>div{min-width:0}
.order-purchase-item-head strong{display:block;line-height:1.35;overflow-wrap:anywhere}
.order-purchase-item-head small{display:block;margin-top:3px;color:var(--muted,#637385)}
.order-purchase-item-fields{padding:14px;display:grid;grid-template-columns:minmax(110px,1fr) minmax(130px,1fr) minmax(105px,auto);gap:12px;align-items:end}
.order-purchase-item-fields .field{min-width:0;margin:0}
.order-purchase-item-fields input{width:100%;min-width:0}
.order-purchase-item-subtotal{display:flex;flex-direction:column;align-items:end;gap:8px;padding-bottom:12px}
.order-purchase-item-subtotal span{color:var(--muted,#637385);font-size:12px}
.order-purchase-item-subtotal strong{font-size:14px;white-space:nowrap}
.order-purchase-extra{margin:0!important;border-top:1px solid #ead9bd;background:#fff9ef;padding:10px 14px;color:#815511;font-size:12px}
.order-purchase-total{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:2px solid var(--brand-primary,#173d66);margin:14px 0!important;padding:15px 3px 0;color:var(--ink,#162c45)}
.order-purchase-total strong{font-size:19px;white-space:nowrap}
.order-purchase-save{width:100%;min-height:41px}
.order-purchase-error{color:#a22b37;font-size:13px;line-height:1.5}
.order-purchase-linked{margin-top:19px;border-top:1px solid var(--line,#d8e4ec);padding-top:17px}
.order-purchase-linked h4{font-size:15px;margin-bottom:12px}
.order-purchase-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.order-purchase-actions .btn{white-space:nowrap}
@media(max-width:1100px){.order-purchase-grid{grid-template-columns:1fr}}
@media(max-width:670px){.order-purchase-area{padding:13px}.order-purchase-supplier{display:block}.order-purchase-supplier .btn{margin-top:8px}.order-purchase-terms{grid-template-columns:1fr}.order-purchase-item-fields{grid-template-columns:1fr 1fr}.order-purchase-item-subtotal{grid-column:1/-1;align-items:flex-start;padding:0}.order-purchase-panel th,.order-purchase-panel td{padding:9px 7px}}


/* Archivo: pricing-policy.css */
.pricing-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:16px;align-items:start}
.pricing-simulation dl{margin-top:20px;display:grid;gap:12px}
.pricing-simulation dl>div{border-bottom:1px solid var(--line,#dde5ed);display:flex;justify-content:space-between;gap:8px;padding-bottom:12px}
.pricing-simulation dl dt{font-size:.86rem;max-width:60%}.pricing-simulation dl dd{margin:0;font-weight:700}
@media(max-width:850px){.pricing-layout{grid-template-columns:1fr}}
/* La política afecta solamente la composición de precios de cotizaciones de Producción. */
.production-quote-policy-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:12px 0;padding:14px 16px;border:1px solid #9bcaca;border-left:3px solid #148b8f;border-radius:9px;background:#f4faf9;color:var(--text,#14223d)}
.production-quote-policy-intro p{margin:5px 0 3px}.production-quote-policy-intro small{color:var(--muted,#62768a)}
.production-quote-policy-line{margin:12px 0;padding:12px 14px;border:1px solid #dae6e8;border-radius:8px;background:#f8fbfc}
.production-quote-policy-title{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.production-quote-policy-title small{color:var(--muted,#64748b)}
.production-quote-policy-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(175px,1fr) auto;align-items:end;gap:10px}
.production-quote-policy-fields .field{margin:0}
.production-quote-policy-preview{display:flex;flex-direction:column;gap:4px;padding-bottom:4px}
.production-quote-policy-preview span{display:flex;gap:8px;justify-content:space-between}
.production-quote-policy-preview small,.production-quote-policy-line [data-policy-state]{color:var(--muted,#64748b)}
.production-quote-policy-line [data-policy-state]{margin:8px 0 0}
@media(max-width:900px){.production-quote-policy-fields{grid-template-columns:1fr}.production-quote-policy-intro{flex-direction:column}.production-quote-policy-fields .btn{width:100%}}

/* Resultado final visible, sin opciones técnicas ni porcentajes ocultos. */
.pricing-simulation dl>.pricing-final-total{padding:13px 12px;border-radius:7px;background:var(--surface-subtle,#f2f8fb);border:1px solid var(--line,#dde5ed);align-items:center}
.pricing-simulation .pricing-final-total dt{font-weight:700;font-size:.94rem}
.pricing-simulation .pricing-final-total dd{font-size:1.3rem;white-space:nowrap;color:var(--text,#112c53)}
@media(max-width:550px){.pricing-simulation dl>div{gap:6px}.pricing-simulation dl dt{max-width:66%}.pricing-simulation .pricing-final-total dd{font-size:1.08rem}}

/* V20.256: precio por unidad y monto de toda la cantidad, sin scroll horizontal. */
.production-quote-policy-preview{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.production-quote-policy-preview span{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.production-quote-policy-preview strong{white-space:nowrap}
.quote-quantity-summary{margin:8px 0 12px;padding:8px 12px;background:var(--surface-subtle,#f2f8fb);border:1px solid var(--line,#dde5ed);border-radius:7px}
.quote-edit-identity small{display:block;margin-top:4px;font-size:.78rem;color:var(--muted,#64748b)}
.quote-agreed-price{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.quote-agreed-price .field{margin:0}.quote-agreed-price input{font-size:1.15rem;font-weight:700}
.quote-policy-hint{margin-top:12px;border-top:1px solid var(--line,#dde5ed);padding-top:10px}
.quote-policy-hint>summary{cursor:pointer;font-size:12px;color:var(--muted,#64748b);font-weight:650}
.quote-policy-hint[open]>.production-quote-policy-title{margin-top:12px}
.quote-policy-hint .production-quote-policy-title strong{font-size:12px;color:var(--muted,#64748b)}
.quote-policy-hint .production-quote-policy-fields{margin-top:10px}
@media(max-width:600px){.quote-agreed-price{grid-template-columns:1fr}.quote-agreed-price .btn{width:100%}}


/* Archivo: pdf-viewer.css */
.mnx-pdf-backdrop{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;background:#0c1d35b8;padding:12px}.mnx-pdf-dialog{width:min(840px,100%);max-height:96dvh;display:flex;flex-direction:column;background:#fff;border-radius:12px;padding:14px;box-shadow:0 18px 60px #07142b55}.mnx-pdf-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.mnx-pdf-head strong{flex:1;min-width:180px}.mnx-pdf-pages{overflow:auto;background:#edf1f5;border-radius:8px;padding:16px;display:grid;justify-items:center;gap:12px}.mnx-pdf-pages canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 9px #10264220}.mnx-pdf-dialog[data-ticket] {width:min(460px,100%)}.mnx-pdf-dialog[data-ticket] canvas{width:min(100%,340px)}.mnx-pdf-status{margin:10px 0;color:#52647c}.mnx-pdf-backdrop [hidden]{display:none!important}
@media(max-width:600px){.mnx-pdf-backdrop{padding:4px}.mnx-pdf-dialog{max-height:98dvh;padding:9px}.mnx-pdf-head strong{flex-basis:100%}}
.mnx-send-dialog{width:min(94vw,530px);max-height:90dvh;overflow:auto;border:1px solid #bed9e9;border-radius:18px;padding:24px;color:#0a2540;background:#fff;box-shadow:0 25px 80px #061b3399}.mnx-send-dialog::backdrop{background:#061b33b3}.mnx-send-dialog h3{margin:0 0 12px;font-size:1.3rem}.mnx-send-dialog .field{display:block;margin:14px 0}.mnx-send-dialog .field input,.mnx-send-dialog .field textarea{width:100%;box-sizing:border-box;border:1px solid #cbdcea;border-radius:10px;padding:11px;font:inherit}.mnx-send-dialog textarea{min-height:110px}.mnx-send-dialog .form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}.mnx-send-dialog .warning{color:#9b371f}

/* Voucher PDF opened in the top layer, outside the scrollable template form. */
dialog.mnx-pdf-native{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;background:transparent;overflow:hidden}dialog.mnx-pdf-native::backdrop{background:#0c1d35b8}dialog.mnx-pdf-native .mnx-pdf-backdrop{position:absolute;background:transparent;box-sizing:border-box;width:100%;height:100%}dialog.mnx-pdf-native .mnx-pdf-dialog{box-sizing:border-box;min-width:0;overflow:hidden}dialog.mnx-pdf-native .mnx-pdf-pages{min-height:0;min-width:0}dialog.mnx-pdf-native .mnx-pdf-pages canvas{width:100%;max-width:100%;height:auto}


/* Archivo: fiscal-indicator-301.css */
/* V20.301 · Indicador fiscal compacto, accesible y adaptable sin reestructurar módulos. */
.workspace .topbar{position:relative;z-index:15;overflow:visible}
.siat-topbar-slot{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;min-width:0;z-index:2}
.siat-topbar-slot:empty{display:none}
.siat-topbar-slot .siat-topbar-indicator{display:inline-flex;gap:7px;align-items:center;justify-content:center;box-sizing:border-box;min-height:38px;padding:7px 11px;border:1px solid #cad8e3;border-radius:24px;background:#f7fafc;color:#627080;font:inherit;font-weight:750;font-size:12px;white-space:nowrap;line-height:1.2;cursor:pointer;box-shadow:none;max-width:100%}
.siat-status-wifi{display:block;flex:0 0 auto}
.siat-topbar-compact{display:block;overflow:hidden;text-overflow:ellipsis}
.siat-topbar-chevron{font-size:16px;line-height:1;color:inherit;opacity:.8}
.siat-topbar-indicator--conectado{background:#effbf4;border-color:#8bdbad;color:#167b43}
.siat-topbar-indicator--sin-emision,.siat-topbar-indicator--advertencia{background:#fff9ed;border-color:#ecc47b;color:#9b650b}
.siat-topbar-indicator--desconectado{background:#fff3f3;border-color:#efa9ae;color:#b22d3d}
.siat-topbar-indicator--desconocido{background:#f5f7fa;border-color:#ccd5df;color:#667488}
.siat-topbar-slot .siat-topbar-indicator:hover,.siat-topbar-slot .siat-topbar-indicator:focus-visible{filter:brightness(.98);outline-offset:3px}
.siat-topbar-panel{display:none;position:absolute;right:0;top:calc(100% + 9px);width:min(350px,calc(100vw - 26px));max-width:calc(100vw - 26px);box-sizing:border-box;padding:15px;border:1px solid #d8e1ed;border-radius:15px;background:#fff;color:#15233b;box-shadow:0 15px 38px #162d4a33;z-index:45;white-space:normal;text-align:left}
.siat-topbar-slot.is-open .siat-topbar-panel{display:block}
.siat-topbar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.siat-topbar-panel-heading strong{font-size:16px;font-weight:800}
.siat-panel-close{border:0;background:transparent;color:#596678;font-size:22px;line-height:1;min-height:32px;min-width:32px}
.siat-topbar-status{display:flex;align-items:start;gap:13px;padding:13px;background:#f2f5f9;border-radius:12px}
.siat-panel-wifi{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex:0 0 auto;background:#e2e8f0;color:#67768b}
.siat-panel-wifi .siat-status-wifi{width:25px;height:25px}
.siat-topbar-status strong{display:block;font-weight:800;font-size:14px;margin:0 0 3px}
.siat-topbar-status small{display:block;color:#536579;font-size:12px;line-height:1.45}
.siat-topbar-status--conectado{background:#ecf9f0;color:#157d41}.siat-topbar-status--conectado .siat-panel-wifi{background:#dcf3e4;color:#168748}
.siat-topbar-status--sin-emision,.siat-topbar-status--advertencia{background:#fff7e8;color:#956107}
.siat-topbar-status--sin-emision .siat-panel-wifi,.siat-topbar-status--advertencia .siat-panel-wifi{background:#ffedc5;color:#9c6709}
.siat-topbar-status--desconectado{background:#fff1f1;color:#ad2836}.siat-topbar-status--desconectado .siat-panel-wifi{background:#ffe3e4;color:#bd293b}
.siat-topbar-detail-list{margin:12px 0;padding:0}
.siat-topbar-detail-list>div{display:flex;gap:12px;justify-content:space-between;align-items:baseline;padding:9px 0;border-bottom:1px solid #e8edf3;font-size:12px}
.siat-topbar-detail-list dt{color:#65758a}.siat-topbar-detail-list dd{margin:0;font-weight:700;text-align:right;overflow-wrap:anywhere}
.siat-topbar-disclaimer{margin:10px 0;color:#718197;font-size:11px;line-height:1.4}
.siat-panel-refresh{display:block;width:100%;min-height:38px;background:#f5f9fe;color:#1555bb;border:1px solid #d7e5f8;border-radius:9px;font-size:12px;font-weight:750;cursor:pointer}
.siat-panel-refresh:hover{background:#eaf3ff}
@media(max-width:1150px) and (min-width:761px){.workspace .topbar{gap:10px}.workspace .topbar .context-header{flex:1;min-width:100px}.workspace .topbar .context-header strong{max-width:22vw}.workspace .topbar .header-actions{gap:6px}.siat-topbar-slot .siat-topbar-indicator{padding:7px 8px}}
@media(max-width:760px){
 .workspace .topbar{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;padding:10px 12px}
 .workspace .topbar .context-header{display:flex;flex:0 0 100%;width:100%;min-width:0;gap:9px}
 .workspace .topbar .context-header>div{min-width:0;flex:1}
 .workspace .topbar .context-header strong{max-width:calc(100vw - 88px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .workspace .topbar .header-actions{display:flex;flex:0 0 100%;width:100%;max-width:100%;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:7px;min-width:0}
 .workspace .topbar .header-actions .profile-pill,.workspace .topbar .header-actions .user-email{display:none}
 .workspace .topbar .header-actions .btn{flex:0 0 auto;min-height:38px;white-space:nowrap;padding:7px 9px}
 .workspace .topbar .siat-topbar-slot{flex:0 0 42px;width:42px}
 .siat-topbar-slot .siat-topbar-indicator{width:42px;min-width:42px;height:40px;min-height:40px;padding:7px;border-radius:12px}
 .siat-topbar-compact,.siat-topbar-chevron{display:none}
 .workspace .topbar .subscription-topbar-slot{display:flex;flex:1 1 auto;min-width:0;max-width:100%}
 .workspace .topbar .subscription-topbar-indicator{min-width:0;max-width:100%;width:100%;justify-content:center;overflow:hidden;gap:5px;min-height:40px;padding:5px 7px}
 .workspace .topbar .subscription-topbar-copy{min-width:0;overflow:hidden}
 .workspace .topbar .subscription-topbar-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
 .siat-topbar-panel{left:0;right:auto;top:calc(100% + 9px);width:min(350px,calc(100vw - 24px))}
}
@media(max-width:380px){.workspace .topbar .subscription-topbar-clock{display:none}.workspace .topbar .subscription-topbar-indicator{padding-left:4px;padding-right:4px}}

/* Tablets compactas: dos renglones sin apretar el nombre de empresa. */
@media(min-width:761px) and (max-width:1050px){
 .workspace .topbar{display:flex;flex-wrap:wrap;gap:6px;align-content:center}
 .workspace .topbar .context-header{flex:0 0 100%;width:100%;min-width:0}
 .workspace .topbar .context-header strong{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .workspace .topbar .header-actions{display:flex;flex:0 0 100%;width:100%;min-width:0;justify-content:flex-end;flex-wrap:nowrap;gap:7px}
 .workspace .topbar .header-actions .profile-pill,.workspace .topbar .header-actions .user-email{display:none}
}


/* Archivo: mobile-density-302.css */
/* V20.302 — encabezado único y compacto, tarjetas móviles de trabajo.
   Solo estilos de presentación; no altera operaciones, pagos ni el estado oficial. */
.subscription-topbar-slot{position:relative;z-index:3}
.subscription-topbar-panel{display:none;position:absolute;right:0;top:calc(100% + 8px);width:min(300px,calc(100vw - 24px));box-sizing:border-box;border:1px solid #d8e1ed;border-radius:13px;background:#fff;color:#192b45;padding:13px;box-shadow:0 12px 32px #0d29442b;white-space:normal;text-align:left;z-index:50}
.subscription-topbar-slot.is-open .subscription-topbar-panel{display:block}
.subscription-topbar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.subscription-topbar-panel-heading strong{font-size:15px;font-weight:800}
.subscription-topbar-close{border:0;background:transparent;min-width:30px;min-height:30px;color:#617389;font-size:23px;cursor:pointer}
.subscription-topbar-main{display:flex;justify-content:space-between;gap:8px;margin:0 0 6px;color:#a12f40;font-size:14px}
.subscription-topbar-main strong{font-variant-numeric:tabular-nums}
.subscription-topbar-main span{color:#243b57;font-size:12px}
.subscription-topbar-until{margin:0 0 11px;color:#607186;font-size:12px}
.subscription-topbar-more{min-height:36px;width:100%;border:1px solid #d0e1f3;border-radius:9px;background:#f1f7ff;color:#155ca9;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
/* El encabezado móvil debe ser UNA fila, incluso con empresa de nombre largo. */
@media(max-width:760px){
 .workspace .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;box-sizing:border-box!important;min-height:52px!important;max-width:100%!important;padding:6px 8px!important;overflow:visible!important}
 .workspace .topbar .context-header{display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;gap:5px!important;align-items:center!important}
 .workspace .topbar .context-header .menu-button{flex:0 0 34px!important;width:34px!important;min-width:34px!important;min-height:36px!important;padding:7px!important}
 .workspace .topbar .workspace-context{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
 .workspace .topbar .context-eyebrow{display:none!important}
 .workspace .topbar .context-header strong{display:block!important;max-width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:11px!important;line-height:1.2!important}
 .workspace .topbar .header-actions{display:flex!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;min-width:0!important;flex-wrap:nowrap!important}
 .workspace .topbar .header-actions .profile-pill,.workspace .topbar .header-actions .user-email{display:none!important}
 .workspace .topbar .siat-topbar-slot{flex:0 0 34px!important;width:34px!important;min-width:34px!important}
 .workspace .topbar .siat-topbar-slot .siat-topbar-indicator{width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;padding:6px!important;border-radius:10px!important}
 .workspace .topbar .siat-status-wifi{width:20px!important;height:20px!important}
 .workspace .topbar .siat-topbar-compact,.workspace .topbar .siat-topbar-chevron{display:none!important}
 .workspace .topbar .subscription-topbar-slot{display:flex!important;flex:0 1 auto!important;width:auto!important;max-width:100px!important;min-width:0!important}
 .workspace .topbar .subscription-topbar-indicator{width:auto!important;min-width:0!important;max-width:100px!important;min-height:36px!important;padding:6px 7px!important;gap:0!important;border-radius:10px!important;justify-content:center!important}
 .workspace .topbar .subscription-topbar-copy{display:block!important;min-width:0!important}
 .workspace .topbar .subscription-topbar-copy strong{display:block!important;font-size:10px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;line-height:1.18!important}
 .workspace .topbar .subscription-topbar-copy small,.workspace .topbar .subscription-topbar-clock{display:none!important}
 .workspace .topbar .header-actions .btn{flex:0 0 auto!important;min-height:36px!important;height:36px!important;padding:6px 7px!important;font-size:11px!important;white-space:nowrap!important}
 /* En móvil los paneles flotan bajo la fila, sin desplazar contenidos ni salirse de pantalla. */
 .siat-topbar-panel,.subscription-topbar-panel{position:fixed!important;left:10px!important;right:10px!important;top:61px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 80px)!important;overflow:auto!important;z-index:200!important}
 .workspace .topbar .subscription-topbar-slot:empty,.workspace .topbar .siat-topbar-slot:empty{display:none!important}
}
@media(max-width:350px){.workspace .topbar{padding:6px 5px!important;gap:3px!important}.workspace .topbar .context-header{gap:3px!important}.workspace .topbar .context-header .menu-button{flex-basis:31px!important;width:31px!important;min-width:31px!important}.workspace .topbar .subscription-topbar-indicator{padding:5px!important}.workspace .topbar .subscription-topbar-copy strong{font-size:9px!important}.workspace .topbar .header-actions{gap:3px!important}}
/* Tabletas: conservar una fila tanto como permita el ancho. */
@media(min-width:761px) and (max-width:1050px){.workspace .topbar{flex-wrap:nowrap!important;gap:8px!important}.workspace .topbar .context-header{flex:1 1 auto!important;width:auto!important;min-width:0!important}.workspace .topbar .header-actions{flex:0 0 auto!important;width:auto!important;min-width:0!important}.workspace .topbar .context-header strong{max-width:26vw!important}}
/* Catálogo: mantener las tres acciones accesibles, en una sola hilera. */
@media(max-width:620px){
 #page[data-module="products"] .catalog-item{grid-template-columns:minmax(0,1fr) auto!important;gap:7px 8px!important;padding:11px 2px!important;min-height:0!important}
 #page[data-module="products"] .catalog-item-action{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:5px!important;width:100%!important;align-items:stretch!important}
 #page[data-module="products"] .catalog-item-action .btn{display:flex!important;min-width:0!important;width:auto!important;min-height:35px!important;padding:7px 8px!important;font-size:11px!important;justify-content:center!important;text-align:center!important;line-height:1.1!important;white-space:nowrap!important}
 #page[data-module="products"] .catalog-item-action .btn span[aria-hidden]{display:none!important}
 #page[data-module="products"] .catalog-item-main>strong{font-size:13px!important}
 #page[data-module="products"] .catalog-list-toolbar{margin-bottom:11px!important;gap:10px!important}
 #page[data-module="products"] .catalog-toolbar-actions{gap:7px!important}
 #page[data-module="products"] .catalog-toolbar-actions .btn{min-height:37px!important}
}
/* QR: evitar quinto indicador aislado y reducir altura de cada operación. */
@media(max-width:680px){
 #page.mx65-qr-operations .mx65-page-intro{padding:11px 13px!important;margin:7px 0 10px!important}
 #page.mx65-qr-operations .mx65-page-intro h3{font-size:15px!important;margin:4px 0!important}
 #page.mx65-qr-operations .mx65-page-intro p{font-size:11px!important;line-height:1.4!important}
 #page.mx65-qr-operations #mx65-qr-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:9px 0 11px!important}
 #page.mx65-qr-operations .mx65-stat{min-height:72px!important;gap:3px!important;padding:9px 10px!important;border-radius:10px!important}
 #page.mx65-qr-operations .mx65-stat span{font-size:11px!important}
 #page.mx65-qr-operations .mx65-stat strong{font-size:22px!important}
 #page.mx65-qr-operations .mx65-stat small{font-size:10px!important;line-height:1.25!important}
 #page.mx65-qr-operations #mx65-qr-summary .mx65-stat:last-child{grid-column:1/-1!important;min-height:55px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-content:center!important;align-items:center!important;gap:2px 10px!important}
 #page.mx65-qr-operations #mx65-qr-summary .mx65-stat:last-child strong{grid-column:2;grid-row:1/-1}
 #page.mx65-qr-operations #mx65-qr-summary .mx65-stat:last-child small{grid-column:1}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 12px!important;padding:11px!important}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] tbody tr[hidden]{display:none!important}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td{display:block!important;width:auto!important;min-width:0!important;padding:1px 0!important;border:0!important;font-size:12px!important;overflow-wrap:anywhere!important}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td::before{content:attr(data-label);display:block!important;margin:0 0 2px!important;color:#6f8094;font-size:10px!important;font-weight:600}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:first-child{grid-column:1!important;grid-row:1!important;font-weight:750}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:nth-child(4){grid-column:2!important;grid-row:1!important;text-align:right!important;font-weight:750}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:nth-child(4)::before{text-align:right}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:nth-child(5){grid-column:1/-1!important}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:last-child{grid-column:1/-1!important;border-top:1px solid #e7edf3!important;padding-top:7px!important}
 #page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] td:last-child .btn{min-height:34px!important;font-size:11px!important}
}
/* Facturas: 2 indicadores por fila y registros convertidos en tarjetas compactas. */
@media(max-width:700px){
 #page[data-module="commercial-invoices"] .ci-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:11px!important}
 #page[data-module="commercial-invoices"] .ci-summary-card{padding:10px 12px!important;min-height:59px!important;gap:3px!important}
 #page[data-module="commercial-invoices"] .ci-summary-card small{font-size:10px!important;line-height:1.2!important}
 #page[data-module="commercial-invoices"] .ci-summary-card strong{font-size:22px!important}
 #page[data-module="commercial-invoices"] .ci-toolbar{gap:7px!important}
 #page[data-module="commercial-invoices"] .ci-toolbar .field{min-width:0!important;flex:1 1 180px!important;margin:0!important}
 #page[data-module="commercial-invoices"] .ci-backups>summary{min-height:54px!important;padding:10px!important}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 11px!important;padding:10px 12px!important}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td{display:block!important;min-width:0!important;width:auto!important;padding:0!important;border:0!important;overflow-wrap:anywhere!important;font-size:12px!important}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td::before{content:attr(data-label);display:block!important;margin:0 0 2px!important;color:#718196;font-size:10px!important;font-weight:600}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td:nth-child(1),
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td:nth-child(3),
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td:nth-child(7){grid-column:1/-1!important}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td:nth-child(1){padding-bottom:5px!important;border-bottom:1px solid #e7edf3!important}
 #page[data-module="commercial-invoices"] #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] td:nth-child(7){padding-top:7px!important;border-top:1px solid #e7edf3!important}
 #page[data-module="commercial-invoices"] .ci-actions{gap:5px!important}
 #page[data-module="commercial-invoices"] .ci-actions .btn{min-height:33px!important;padding:6px 8px!important;font-size:11px!important}
}
/* Compras: menos espacio entre búsqueda, selección de producto y finalización. */
@media(max-width:680px){
 #page.mx66-purchases .page-title{margin-bottom:10px!important}
 #page.mx66-purchases .purchase-find{padding-bottom:8px!important}
 #page.mx66-purchases .purchase-find .field{margin-bottom:8px!important}
 #page.mx66-purchases .purchase-find .form-actions{margin:0 0 6px!important;gap:7px!important}
 #page.mx66-purchases .purchase-find .form-actions .btn{min-height:38px!important}
 #page.mx66-purchases #purchase-new-button{min-height:36px!important;font-size:12px!important;margin-top:9px!important}
 #page.mx66-purchases .purchase-progress{padding:8px!important;margin:9px 0 5px!important;font-size:12px!important}
 #page.mx66-purchases .purchase-grand{padding:10px 0!important;font-size:13px!important}
 #page.mx66-purchases .purchase-grand strong{font-size:18px!important}
 #page.mx66-purchases #purchase-finish .field{margin:0 0 8px!important}
 #page.mx66-purchases #purchase-finish #purchase-reload-warehouses,
 #page.mx66-purchases #purchase-finish #purchase-reload-suppliers{display:inline-flex!important;min-height:30px!important;width:auto!important;padding:4px 5px!important;border-color:transparent!important;background:transparent!important;color:var(--mx67-primary,#205b91)!important;font-size:11px!important;box-shadow:none!important;margin:0 0 6px!important}
 #page.mx66-purchases #purchase-finish details{margin:6px 0!important}
 #page.mx66-purchases #purchase-finish #purchase-confirm{min-height:42px!important}
}
/* Caja: 2 columnas de datos sin perder estado, contado ni resultado. */
@media(max-width:760px){
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table tbody{gap:7px!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table tbody tr{grid-template-areas:"terminal terminal" "cashier state" "opening result" "counted counted" "action action"!important;gap:7px 10px!important;padding:10px 11px!important;border-radius:10px!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table td:nth-child(1){font-size:13px!important;padding-bottom:6px!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table td{font-size:12px!important;line-height:1.2!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table td::before{font-size:10px!important;margin-bottom:2px!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table td:nth-child(7){padding-top:5px!important}
 #page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table td:nth-child(7) .btn{min-height:37px!important}
}
/* Mi suscripción: jerarquía visual más pequeña sin quitar contenido. */
@media(max-width:680px){
 #page[data-module="subscription"] .subscription-overview{gap:9px!important;margin-bottom:9px!important}
 #page[data-module="subscription"] .subscription-primary-card,
 #page[data-module="subscription"] .subscription-detail-card{padding:15px!important}
 #page[data-module="subscription"] .subscription-primary-card h3{margin:9px 0 0!important;font-size:21px!important}
 #page[data-module="subscription"] .subscription-main-number{font-size:24px!important;margin:9px 0 7px!important}
 #page[data-module="subscription"] .subscription-primary-card p{margin:8px 0!important;line-height:1.4!important}
 #page[data-module="subscription"] .subscription-advice{padding:8px 10px!important}
 #page[data-module="subscription"] .subscription-detail-card dl div{padding:8px 0!important}
}

@media(min-width:761px) and (max-width:1050px){.workspace .topbar .siat-topbar-panel{left:0!important;right:auto!important;width:min(320px,calc(100vw - 28px))!important}}

@media(min-width:1051px){.siat-topbar-slot .siat-topbar-panel{left:0!important;right:auto!important;width:min(340px,calc(100vw - 28px))!important}}
/* V20.301 tenía el color neutro del botón con mayor especificidad que sus estados. */
.siat-topbar-slot .siat-topbar-indicator--conectado{background:#effbf4;border-color:#8bdbad;color:#167b43}
.siat-topbar-slot .siat-topbar-indicator--sin-emision,.siat-topbar-slot .siat-topbar-indicator--advertencia{background:#fff9ed;border-color:#ecc47b;color:#9b650b}
.siat-topbar-slot .siat-topbar-indicator--desconectado{background:#fff3f3;border-color:#efa9ae;color:#b22d3d}
.siat-topbar-slot .siat-topbar-indicator--desconocido{background:#f5f7fa;border-color:#ccd5df;color:#667488}


/* Archivo: visual-density-304.css */
/* V20.304 - Compras reposición y fichas de consulta: compacto y distinguible. */
#page.mx66-purchases .finance-navigation .module-tabs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:4px 0}
#page.mx66-purchases .finance-navigation .module-tabs .btn{white-space:normal;line-height:1.25;min-height:38px}
#page.mx66-purchases .panel:has(.stock-note-intro){min-width:0;overflow:visible}
#page.mx66-purchases .stock-note-intro{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
#page.mx66-purchases .stock-note-intro p{min-width:180px;flex:1 1 270px;margin:0;line-height:1.45;color:#52677e}
#page.mx66-purchases .mnx-repo-print-actions{display:flex;align-items:end;justify-content:flex-end;gap:9px;flex:0 1 auto;max-width:100%}
#page.mx66-purchases .mnx-repo-paper{margin:0;min-width:152px}
#page.mx66-purchases .mnx-repo-paper select{min-height:39px;max-width:100%;width:100%}
#page.mx66-purchases #stock-note-preview{min-height:39px;white-space:nowrap}
#page.mx66-purchases .mnx-repo-tablewrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;margin:0 0 13px;border:1px solid #dce5f0;border-radius:12px;background:#fff}
#page.mx66-purchases .stock-note-table{width:100%;border-collapse:collapse;table-layout:auto;min-width:690px}
#page.mx66-purchases .stock-note-table th{background:#edf5fb;color:#264f75;font-size:11px;line-height:1.25;text-align:left;padding:10px 9px;white-space:nowrap;border-bottom:1px solid #dce6ef}
#page.mx66-purchases .stock-note-table td{padding:11px 9px;vertical-align:middle;font-size:12px;line-height:1.35;border-bottom:1px solid #edf1f7}
#page.mx66-purchases .stock-note-table tbody tr:nth-child(even){background:#f7fafd}
#page.mx66-purchases .stock-note-table tbody tr:hover{background:#edf6fc}
#page.mx66-purchases .stock-note-table td:nth-child(2) strong{display:block;font-size:12px;color:#163450}
#page.mx66-purchases .stock-note-table td:nth-child(2) small{display:block;margin-top:3px;color:#64788e;font-size:11px}
#page.mx66-purchases .stock-note-table input[type=number]{width:86px;max-width:100%;min-height:36px;text-align:right}
#page.mx66-purchases #stock-to-purchase{max-width:100%;white-space:normal;line-height:1.35;min-height:40px}
/* Record identity - soft rows, status colors reserved for actual state. */
#commercial-invoice-content .tablewrap tbody tr:nth-child(odd),#page.mx65-qr-operations .panel>.tablewrap tbody tr:nth-child(odd){background:#f5f9fd}
#commercial-invoice-content .tablewrap tbody tr:nth-child(even),#page.mx65-qr-operations .panel>.tablewrap tbody tr:nth-child(even){background:#fff}
#commercial-invoice-content .tablewrap tbody tr:hover,#page.mx65-qr-operations .panel>.tablewrap tbody tr:hover{background:#eef5fc}
#commercial-invoice-content .tablewrap tbody tr td:first-child,#page.mx65-qr-operations .panel>.tablewrap tbody tr td:first-child{border-left:3px solid #a3c4e0}
#commercial-invoice-content .tablewrap tbody tr td{line-height:1.45}
#page[data-module="commercial-invoices"] .ci-summary-card:nth-child(4n+1){border-top:3px solid #63a5d8;background:#f5faff}
#page[data-module="commercial-invoices"] .ci-summary-card:nth-child(4n+2){border-top:3px solid #83b3a0;background:#f6fbf9}
#page[data-module="commercial-invoices"] .ci-summary-card:nth-child(4n+3){border-top:3px solid #e3b86b;background:#fffaf2}
#page[data-module="commercial-invoices"] .ci-summary-card:nth-child(4n){border-top:3px solid #a8a2d7;background:#faf9ff}
/* Sales workbench records inherit native status colors; alternate backgrounds for legibility. */
#sales-workbench .sales-list tbody tr:nth-child(odd){background:#f4f8fd}
#sales-workbench .sales-list tbody tr:nth-child(even){background:#fff}
#sales-workbench .sales-list tbody tr:hover{background:#ebf5fb}
#sales-workbench .sales-list tbody tr td:first-child{border-left:3px solid #a0c6e4}
/* Generic mobile card rows when existing layout converts native table to cards. */
@media(max-width:760px){
 #page.mx66-purchases .finance-navigation{max-width:100%;min-width:0;overflow:hidden}
 #page.mx66-purchases .finance-navigation .module-tabs{display:flex!important;flex-wrap:nowrap!important;gap:7px;max-width:100%;overflow-x:auto!important;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:3px 2px 8px;scrollbar-width:thin}
 #page.mx66-purchases .finance-navigation .module-tabs .btn{min-width:0;flex:0 0 auto;width:auto!important;max-width:none!important;white-space:nowrap;scroll-snap-align:start;padding:8px 10px;font-size:11px}
 #page.mx66-purchases .stock-note-intro{display:grid;gap:10px;align-items:stretch;margin:0 0 10px}
 #page.mx66-purchases .stock-note-intro p{min-width:0;font-size:12px;margin:0}
 #page.mx66-purchases .mnx-repo-print-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;justify-content:stretch}
 #page.mx66-purchases .mnx-repo-paper{min-width:0;max-width:none}
 #page.mx66-purchases .mnx-repo-paper .label{font-size:11px}
 #page.mx66-purchases .mnx-repo-tablewrap{overflow:visible;border:0;background:transparent}
 #page.mx66-purchases .stock-note-table{min-width:0;display:block;width:100%;border:0}
 #page.mx66-purchases .stock-note-table thead{display:none}
 #page.mx66-purchases .stock-note-table tbody{display:grid;gap:10px}
 #page.mx66-purchases .stock-note-table tbody tr{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) minmax(0,1fr);gap:8px 10px;align-items:start;background:#fff!important;border:1px solid #dee8f2;border-left:4px solid #73a7cd;border-radius:12px;padding:12px;box-shadow:0 2px 7px #102e4310}
 #page.mx66-purchases .stock-note-table tbody tr:hover{background:#f6faff!important}
 #page.mx66-purchases .stock-note-table td{border:0!important;display:block;width:auto;padding:0!important;min-width:0;font-size:12px}
 #page.mx66-purchases .stock-note-table td::before{display:block;content:attr(data-label);color:#64778a;font-size:10px;font-weight:700;margin-bottom:3px}
 #page.mx66-purchases .stock-note-table td:nth-child(1){grid-column:1;grid-row:1;align-self:center}
 #page.mx66-purchases .stock-note-table td:nth-child(2){grid-column:2/-1;grid-row:1;min-width:0}
 #page.mx66-purchases .stock-note-table td:nth-child(3){grid-column:1/3}
 #page.mx66-purchases .stock-note-table td:nth-child(4){grid-column:3}
 #page.mx66-purchases .stock-note-table td:nth-child(5){grid-column:1/-1;display:grid;grid-template-columns:1fr minmax(80px,110px);gap:8px;align-items:center;padding-top:8px!important;border-top:1px solid #e9eef5!important}
 #page.mx66-purchases .stock-note-table td:nth-child(5)::before{margin:0}
 #page.mx66-purchases .stock-note-table td:nth-child(5) input{width:100%;margin:0}
 #page.mx66-purchases .stock-note-table td:nth-child(6),#page.mx66-purchases .stock-note-table td:nth-child(7){display:none}
 #page.mx66-purchases .stock-note-table td:nth-child(2) strong{font-size:13px;overflow-wrap:anywhere}
 #page.mx66-purchases .stock-note-table td:nth-child(2) details{margin-top:5px;max-width:100%;overflow-wrap:anywhere}
 #page.mx66-purchases #stock-to-purchase{width:100%;font-size:12px}
 #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr,#page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] tbody tr{border-left:4px solid #7aa9ca!important;box-shadow:0 2px 7px #152e4910!important;border-radius:12px!important;margin-bottom:8px!important}
 #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr:nth-child(even),#page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] tbody tr:nth-child(even){background:#f6f9fd!important}
 #commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr td:first-child,#page.mx65-qr-operations .panel>.tablewrap[data-mobile-layout="cards"] tbody tr td:first-child{border-left:0!important}
 #sales-workbench .sales-list tbody tr{border-left:3px solid #81aecf}
}
@media(max-width:390px){#page.mx66-purchases #stock-note-preview{padding:8px 10px;font-size:11px}}

/* Ventas: el historial real usa botones sales-entry, no tabla. */
#sales-workbench .sales-book .sales-entry:nth-child(odd){background:#f6f9fd;border-left:3px solid #8bb4d3;padding-left:11px}
#sales-workbench .sales-book .sales-entry:nth-child(even){background:#fff;border-left:3px solid #bdcee0;padding-left:11px}
#sales-workbench .sales-book .sales-entry:hover{background:#ebf5fc}
#sales-workbench .sales-book .sales-entry[aria-pressed="true"]{background:var(--sales-selected);border-left:3px solid var(--green);box-shadow:inset 1px 0 var(--green)}
#sales-workbench .sales-book .sales-entry[data-state="voided"],#sales-workbench .sales-book .sales-entry[data-state="cancelled"]{border-left-color:#cc8a91}
#sales-workbench .sales-book .sales-entry[data-state="corrected"]{border-left-color:#d7ad65}
@media(max-width:900px){#sales-workbench .sales-book .sales-entry{margin:5px 0!important;border:1px solid #e1e9f2!important;border-left:4px solid #8bb4d3!important;border-radius:10px!important;min-height:80px!important}}

/* Fichas con borde según el estado real recibido del backend. */
#commercial-invoice-content tbody tr[data-record-tone="success"] td:first-child,#page.mx65-qr-operations tbody tr[data-record-tone="success"] td:first-child{border-left-color:#6fb49a}
#commercial-invoice-content tbody tr[data-record-tone="warning"] td:first-child,#page.mx65-qr-operations tbody tr[data-record-tone="warning"] td:first-child{border-left-color:#dca854}
#commercial-invoice-content tbody tr[data-record-tone="danger"] td:first-child,#page.mx65-qr-operations tbody tr[data-record-tone="danger"] td:first-child{border-left-color:#c77c86}
#commercial-invoice-content tbody tr[data-record-tone="neutral"] td:first-child,#page.mx65-qr-operations tbody tr[data-record-tone="neutral"] td:first-child{border-left-color:#9da9ba}
@media(max-width:760px){
#commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="success"],#page.mx65-qr-operations .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="success"]{border-left-color:#6fb49a!important}
#commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="warning"],#page.mx65-qr-operations .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="warning"]{border-left-color:#dca854!important}
#commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="danger"],#page.mx65-qr-operations .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="danger"]{border-left-color:#c77c86!important}
#commercial-invoice-content .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="neutral"],#page.mx65-qr-operations .tablewrap[data-mobile-layout="cards"] tbody tr[data-record-tone="neutral"]{border-left-color:#9da9ba!important}
}

/* Compras registradas / Caja: cada registro se reconoce de un vistazo. */
.purchase-history-book .purchase-history-entry:nth-child(odd){background:#f5f9fd;border-left:3px solid #94b8d4}
.purchase-history-book .purchase-history-entry:nth-child(even){background:#fff;border-left:3px solid #c8d6e4}
.purchase-history-book .purchase-history-entry:hover{background:#eaf4fa}
.purchase-history-book .purchase-history-entry[aria-pressed="true"]{background:var(--purchase-soft);border-left:3px solid var(--green);box-shadow:inset 1px 0 var(--green)}
#page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table tbody tr:nth-child(even){background:#f6f9fd}
#page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table tbody tr:nth-child(odd){background:#fff}
@media(max-width:760px){.purchase-history-book .purchase-history-entry{border:1px solid #dfe8f1;border-left:4px solid #94b8d4!important;border-radius:10px;margin:7px 0;padding-left:10px}.purchase-history-book .purchase-history-entry[aria-pressed="true"]{border-left-color:var(--green)!important}#page[data-module="cash"] [data-panel-key="cash-history"] .cash-history-table tbody tr{border-left:4px solid #94b8d4!important}}


/* Archivo: plans-305.css */
/* Planes por giro / habilitación individual de complementos. */
.mx305-onboarding{display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.mx305-onboarding>div{flex:1 1 270px}.mx305-onboarding p{margin:6px 0}
.mx305-plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px;margin-top:15px}
.mx305-plan-card{padding:15px;border:1px solid var(--border,#d8dee7);border-radius:14px;background:var(--card,#fff);display:flex;flex-direction:column;gap:16px;min-width:0}
.mx305-plan-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.mx305-plan-head h3{margin:4px 0;font-size:1.05rem}.mx305-plan-head small,.mx305-plan-foot small{font-size:.78rem}.mx305-plan-head b{white-space:nowrap}.mx305-plan-foot{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-top:auto}
.mx305-feature-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mx305-feature{border:1px solid var(--border,#d9dfe8);border-radius:100px;padding:6px 10px;background:var(--surface,#f6f8fa);font-size:.84rem}
.mx305-included{padding:14px;border:1px solid var(--border,#d9dfe8);border-radius:12px;margin:15px 0}
.mx305-edit-dialog{width:min(95vw,440px);border:1px solid var(--border,#d9dfe8);border-radius:16px;padding:20px;box-shadow:0 18px 50px #0002}.mx305-edit-dialog::backdrop{background:#0007}
.mx305-edit-form{display:grid;gap:13px}.mx305-edit-form .form-actions{display:flex;justify-content:flex-end;gap:8px}
.mx305-addons form{display:grid;gap:12px}.mx305-license-note{margin-top:12px}
@media(max-width:700px){.mx305-plan-grid{grid-template-columns:1fr}.mx305-plan-head{align-items:start}.mx305-onboarding button{width:100%}}


/* Archivo: plans-306.css */
/* Contratación de la licencia sin pasos posteriores a la aprobación. */
.mx306-contract{border:1px solid var(--border,#d7e1ec);border-radius:14px;padding:15px;margin:14px 0;background:var(--surface,#fff)}
.mx306-contract h3{margin:0 0 8px}.mx306-contract .note{margin:10px 0 0}
.mx306-contract output{display:block;min-height:40px;padding:10px 12px;border-radius:9px;background:var(--surface-alt,#f3f6fa);font-weight:600}
.mx306-contract .grid2{gap:10px}
.mx306-current{margin:12px 0}
@media(max-width:760px){.mx306-contract{padding:12px}.mx306-contract .grid2{grid-template-columns:1fr}.review-layout{grid-template-columns:1fr}}

/* V20.310: precio de empresa siempre editable en migración conservada. */
.mx306-contract input[name="agreed_price"]:not(:disabled):not([readonly]){background:#fff;color:var(--text,#142c45);cursor:text;opacity:1}
.mx306-contract input[name="agreed_price"]:focus-visible{border-color:#1785d0;outline:2px solid #8bc4ee;outline-offset:1px}


/* Archivo: plans-307.css */
/* Planes comerciales por giro, con editor y estructura móvil propia. */
.mx307-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mx307-intro p{margin:5px 0}.mx307-intro>div{flex:1 1 280px}
.mx307-sector-head p{margin:0 0 12px}.mx307-sector-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}
.mx307-sector-btn{border:1px solid var(--line,#dce3eb);border-radius:10px;background:#f5f8fd;color:#385273;white-space:nowrap;display:flex;align-items:center;gap:8px;padding:11px 13px;font-weight:700;min-height:42px}
.mx307-sector-btn.active{background:#1555bb;color:white;border-color:#1555bb}.mx307-sector-btn span{opacity:.85;border-radius:99px;padding:2px 6px;background:#0001}
.mx307-heading{display:flex;gap:10px;justify-content:space-between;align-items:baseline;flex-wrap:wrap;margin:13px 0}.mx307-heading h3{margin:0}
.mx307-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mx307-card{border:1px solid #d7e1ed;border-radius:14px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:10px;min-width:0;box-shadow:0 2px 8px #162f5010}
.mx307-card[data-mx307-tier=standard]{border-top:4px solid #418cc1}.mx307-card[data-mx307-tier=super_vip]{border-top:4px solid #b58a2d}.mx307-card[data-mx307-tier=basic]{border-top:4px solid #7892af}
.mx307-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.mx307-tier{font-size:.78rem;font-weight:850;color:#365c86}.mx307-accounts{font-size:.72rem;color:#5f7085}
.mx307-card h3{font-size:1.06rem;margin:0;line-height:1.3;overflow-wrap:anywhere}.mx307-subtext{font-size:.72rem;color:#738092;margin:0;overflow-wrap:anywhere}
.mx307-prices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mx307-prices>div{border:1px solid #e3e9f0;border-radius:9px;padding:9px;min-width:0;background:#f8fafc}
.mx307-prices small{display:block;font-size:.71rem;color:#586c81;margin-bottom:4px}.mx307-prices strong{font-size:1.1rem;white-space:nowrap}
.mx307-card-desc{color:#6c7c8d;font-size:.76rem;line-height:1.5;margin:0}.mx307-edit{margin-top:auto;white-space:normal}
.mx307-legacy>summary{cursor:pointer;padding:5px;user-select:none}.mx307-legacy .mx307-grid{margin-top:16px}
.mx307-dialog{width:min(96vw,720px);max-height:90dvh;overflow:auto;border-radius:16px;border:1px solid #d7e1ed;padding:22px;background:white;box-shadow:0 24px 60px #06162940}
.mx307-dialog::backdrop{background:#0c1d3899}.mx307-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mx307-dialog-title h3{margin:0}.mx307-price-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mx307-dialog h4{margin:18px 0 5px}.mx307-module-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.mx307-module-option{display:flex;gap:10px;align-items:center;border:1px solid #e3eaf2;border-radius:9px;background:#f9fbfe;padding:10px;min-width:0;font-size:.84rem}
.mx307-module-option.required{background:#ecf4fc;border-color:#cddfec}.mx307-module-option span{overflow-wrap:anywhere}.mx307-module-option input{flex:0 0 auto}
.mx307-form-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.mx307-migrate{display:flex;gap:10px;align-items:flex-start;border:1px solid #b8d4ec;background:#eff7fd;padding:13px;border-radius:12px;margin:12px 0}
.mx307-migrate[hidden]{display:none!important}.mx307-migrate small{display:block;color:#5a6d83;margin-top:5px;line-height:1.5}
.mx307-migrate input{flex:0 0 auto;margin-top:4px}
@media(max-width:1150px){.mx307-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mx307-grid{grid-template-columns:1fr}.mx307-catalog{padding:14px}.mx307-intro>button{width:100%}.mx307-dialog{padding:15px}.mx307-price-row,.mx307-module-list{grid-template-columns:1fr}.mx307-card{padding:14px}.mx307-prices strong{font-size:1.05rem}.mx307-sector-btn{font-size:.85rem}}

.mx307-legacy-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.mx307-legacy-actions .btn{flex:1;white-space:normal}


/* Archivo: subscription-billing-308.css */
/* Cobros SaaS, totalmente separados de los QR operativos de cada empresa. */
.mx308-renewal{margin:18px 0;border-top:4px solid #1b82d9;background:var(--surface,#fff)}
.mx308-title{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.mx308-title h3{margin:4px 0 10px}.mx308-eyebrow{font-size:10px;letter-spacing:.06em;color:#3b719c;font-weight:800}
.mx308-secure{background:#eaf5ff;color:#15588c;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:800}
.mx308-warning{padding:11px 14px;background:#fff6e9;border-left:3px solid #cf8615;border-radius:9px;color:#7a4f14;margin:12px 0}
.mx308-success{padding:12px;background:#ecf8f1;border-left:3px solid #16854b;color:#195d36;border-radius:9px}
.mx308-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.mx308-plan-choice{border:1px solid var(--line,#d4e0eb);border-radius:12px;padding:14px 12px;display:flex;align-items:start;gap:10px;cursor:pointer;min-width:0}
.mx308-plan-choice:has(input:checked){background:#eff7ff;border-color:#287acc;box-shadow:0 0 0 1px #287acc}
.mx308-plan-choice:has(input:disabled){opacity:.6;cursor:not-allowed}.mx308-plan-choice strong,.mx308-plan-choice small{display:block}
.mx308-plan-choice strong{font-size:13px}.mx308-plan-choice small{font-size:11px;color:var(--muted,#64748b);margin-top:4px}
.mx308-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:end;margin:10px 0 16px;max-width:540px}
.mx308-total{background:#eef5fc;border:1px solid #d9e9f5;border-radius:12px;padding:10px 15px}
.mx308-total small,.mx308-total strong{display:block}.mx308-total strong{font-size:24px;color:#084876}
.mx308-payment{display:flex;align-items:center;flex-direction:column;gap:12px;border:1px solid #d3e6f4;border-radius:14px;background:#f7fbfe;padding:18px;margin:18px 0}
.mx308-payment-summary{text-align:center}.mx308-payment-summary>*{display:block}.mx308-payment-summary strong{font-size:28px;color:#0d5184}.mx308-payment-summary small{font-size:12px;color:var(--muted,#64748b)}
.mx308-qr-image{width:240px;height:240px;max-width:100%;object-fit:contain;background:white;border:12px solid white;border-radius:12px}
.mx308-state{font-size:12px;font-weight:800;border-radius:20px;padding:6px 10px;background:#edf4fa;color:#305b73}
.mx308-state--applied{background:#e6f7eb;color:#166c35}.mx308-state--review,.mx308-state--uncertain{background:#fff4e3;color:#88560e}
.mx308-admin{margin-bottom:16px}.mx308-admin details{padding:12px;border:1px solid var(--line,#d4e0eb);border-radius:12px;margin-top:15px}
.mx308-admin details summary{cursor:pointer;font-weight:750}.mx308-admin details .grid2{margin-top:12px}
.mx308-admin-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}.mx308-admin-actions>span{font-size:12px;color:var(--muted,#64748b)}
.mx308-admin-payment{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border-bottom:1px solid var(--line,#e2e8f0);padding:12px 0}
.mx308-admin-payment small{display:block;margin-top:3px;font-size:11px;color:var(--muted,#64748b)}
@media(max-width:740px){.mx308-choices{grid-template-columns:1fr}.mx308-controls{grid-template-columns:1fr}.mx308-admin-payment{grid-template-columns:1fr auto}.mx308-admin-payment .btn{grid-column:1/-1}.mx308-payment{padding:12px}.mx308-qr-image{width:220px;height:220px}}


/* Archivo: grace-309.css */
/* V20.449: alerta clara y responsiva sin alterar la identidad visual global. */
.mx309-grace-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:14px;row-gap:10px;background:#fff9f2;border:1px solid #e7cc9a;border-left:5px solid #b16a11;color:#593d1c;border-radius:15px;padding:16px 18px;margin:0 0 20px;max-width:100%;box-sizing:border-box}
.mx309-grace-symbol{font-size:25px;line-height:1;color:#b42332}
.mx309-grace-content{min-width:0;max-width:66ch}
.mx309-grace-content>strong{display:block;font-size:17px;font-weight:800;line-height:1.25;color:#992b32}
.mx309-grace-content>p{margin:5px 0 8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.mx309-grace-remaining{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;font-size:12px;color:#765321}
.mx309-grace-remaining>b{font-weight:800;font-size:16px;color:#912c32;font-variant-numeric:tabular-nums}
.mx309-grace-action{align-self:center;white-space:normal;text-align:center;line-height:1.3;min-height:44px;max-width:215px;min-width:165px;background:var(--mx67-primary,#1684d6)!important;border-color:var(--mx67-primary,#1684d6)!important;color:#fff!important;font-weight:800!important}
.mx309-grace-action:hover{filter:brightness(.94)}
.subscription-topbar-indicator--grace,.subscription-status--grace{color:#a52f3c!important;background:#fff0f1!important;border-color:#e7a2ad!important}
.subscription-topbar-grace{display:flex;justify-content:space-between;gap:8px;color:#8f3941;font-size:12px;margin:6px 0 9px}
.subscription-topbar-grace strong{font-variant-numeric:tabular-nums}
@media(max-width:650px){.mx309-grace-banner{grid-template-columns:minmax(0,1fr);padding:16px;gap:11px}.mx309-grace-symbol{display:none}.mx309-grace-content>strong{font-size:18px}.mx309-grace-content>p{font-size:13px;margin:5px 0 9px}.mx309-grace-remaining{background:#fff5e9;border:1px solid #ead6bb;border-radius:9px;padding:10px 12px;justify-content:space-between}.mx309-grace-action{width:100%;max-width:none;min-width:0;min-height:44px}}
.mx309-staff-restricted{text-align:center;max-width:670px;margin:22px auto;padding:24px!important;border-top:4px solid #c17c19!important}
.mx309-staff-lock{font-size:44px;display:block;margin-bottom:12px}.mx309-staff-restricted p{max-width:480px;margin:10px auto;line-height:1.5}.mx309-staff-restricted small{display:block;color:var(--muted,#64748b);margin:20px auto}
.mx309-policy-card{border-top:4px solid #2386c5;margin:18px 0}.mx309-policy-card form{display:flex;flex-direction:column;gap:12px;max-width:630px}.mx309-policy-check{display:flex;align-items:center;gap:10px;font-size:13px}.mx309-policy-check input{width:18px;height:18px}



/* Archivo: admin-tabs-311.css */
/* V20.311 · Superadministración organizada por pestañas, con adaptación móvil. */
.mx311-heading{margin:1rem 0 .65rem;padding:.15rem .1rem;max-width:850px}
.mx311-heading-eyebrow{font-size:.7rem;letter-spacing:.075em;text-transform:uppercase;color:var(--muted,#64748b);font-weight:750}
.mx311-heading h3{font-size:1.08rem;line-height:1.35;margin:.22rem 0 .25rem;color:var(--ink,#13243a)}
.mx311-heading p{font-size:.88rem;line-height:1.5;color:var(--muted,#64748b);margin:0}
.mx311-tabs,.mx311-filter-tabs{display:flex;align-items:stretch;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;max-width:100%;padding:3px 2px 9px;margin:.2rem 0 .9rem;border-bottom:1px solid #dae4eb}
.mx311-tab,.mx311-filter-tab{appearance:none;border:1px solid #d5e0e9;background:#fff;border-radius:10px 10px 8px 8px;color:#4b6174;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer;font:inherit;font-size:.86rem;font-weight:650;min-height:44px;padding:9px 14px;flex-shrink:0;transition:background-color .12s,color .12s,border-color .12s}
.mx311-tab:hover,.mx311-filter-tab:hover{border-color:#72b8d5;background:#f2f9fc}
.mx311-tab.active,.mx311-filter-tab.active{border-color:#0b83be;background:#e9f5fc;color:#075d88;box-shadow:inset 0 -2px 0 #0b83be}
.mx311-tab:focus-visible,.mx311-filter-tab:focus-visible{outline:3px solid #55a6cf;outline-offset:2px}
.mx311-tab-count,.mx311-filter-count{border-radius:999px;background:#eef3f6;color:#4e6577;min-width:22px;padding:2px 6px;text-align:center;font-size:.71rem;font-variant-numeric:tabular-nums}
.mx311-tab.active .mx311-tab-count,.mx311-filter-tab.active .mx311-filter-count{background:#ccecf9;color:#075277}
.mx311-tab-panel{min-width:0;animation:mx311Fade .12s ease-out}
.mx311-tab-panel[hidden]{display:none!important}
.mx311-tab-panel:focus{outline:none}
.mx311-tab-description{margin:.2rem 0 1rem;color:#52687c;font-size:.88rem;line-height:1.55;max-width:800px}
.mx311-tab-panel>.panel,.mx311-tab-panel>.backup-summary,.mx311-tab-panel>.note{margin-top:0;margin-bottom:1rem}
.mx311-tab-panel>.panel:last-child{margin-bottom:.3rem}
.mx311-filter-tabbed>.filter-field,.mx311-filter-tabbed>.list-toolbar>.filter-field{display:none!important}
.mx311-filter-tabbed>.mx311-filter-tabs{margin:0 0 1rem}
.mx311-tab-panel>.subscription-admin-panel,.mx311-tab-panel>.focused-form{width:100%;max-width:none}
.mx311-tab-panel .subscription-admin-panel{min-width:0}
.mx311-tab-panel .subscription-license-row{min-width:0}
.mx311-tab-panel .mx308-admin-list{min-width:0}
.mx311-tab-panel .backup-card{width:100%;max-width:900px}
.mx311-tab-panel .backup-external-card{max-width:none}
@keyframes mx311Fade{from{opacity:.8}to{opacity:1}}
@media(max-width:760px){
 .mx311-heading{margin:.65rem 0 .25rem}
 .mx311-heading h3{font-size:.96rem}
 .mx311-heading p{font-size:.79rem}
 .mx311-tabs,.mx311-filter-tabs{gap:6px;margin:0 0 .65rem;padding:3px 1px 8px}
 .mx311-tab,.mx311-filter-tab{min-height:40px;font-size:.8rem;padding:8px 10px;border-radius:9px}
 .mx311-tab-description{font-size:.8rem;margin:.25rem 0 .7rem}
 .mx311-tab-panel>.panel{padding:clamp(12px,3.3vw,18px)}
 .mx311-tab-panel .mx306-contract,.mx311-tab-panel .subscription-admin-toolbar{min-width:0}
}
@media(prefers-reduced-motion:reduce){.mx311-tab-panel{animation:none}.mx311-tab,.mx311-filter-tab{transition:none}}


/* Archivo: subscription-renewal-312.css */
/* V20.312 · Membrsesía simple para el cliente y QR Baneco modal. */
.mx312-subscription-home{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:18px}
.mx312-primary-card{margin:0;min-width:0}.mx312-subscription-note{min-width:0}
.mx312-membership-facts>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#e2e8f0)}
.mx312-membership-facts span{color:var(--muted,#64748b);font-size:12px}
.mx312-membership-facts strong{text-align:right;font-size:13px;overflow-wrap:anywhere}
.mx312-subscription-note>p{margin:16px 0 2px;color:var(--muted,#64748b);font-size:13px}
.mx312-renewal{margin:12px 0;border-top:4px solid #0d83cc;max-width:100%;padding:22px}
.mx312-plan-current{padding:14px 17px;border:1px solid #c8ddeb;background:#f3f9fd;border-radius:13px;margin:15px 0}
.mx312-plan-current span,.mx312-plan-current strong{display:block}.mx312-plan-current span{font-size:11px;color:#43647c}.mx312-plan-current strong{font-size:18px;color:#133f5f;margin-top:3px}
.mx312-pay-button{min-height:49px;min-width:240px;font-size:15px}
.mx312-assistance{border-top:1px solid var(--line,#dfe7ec);margin-top:18px;padding-top:11px;font-size:12px;color:var(--muted,#586979)}
.mx312-assistance p{margin:8px 0}.mx312-assistance strong{color:var(--ink,#204057)}
body.mx312-modal-active{overflow:hidden}
.mx312-overlay{position:fixed;inset:0;background:rgba(5,22,38,.76);z-index:15000;display:flex;align-items:center;justify-content:center;padding:14px}
.mx312-dialog{background:white;color:#172b3a;width:min(510px,100%);max-height:min(94dvh,960px);overflow:auto;border-radius:19px;box-shadow:0 22px 70px rgba(0,0,0,.3);outline:0}
.mx312-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px 22px 8px}
.mx312-dialog-head h2{font-size:21px;line-height:1.22;margin:4px 0 2px;color:#142f44}
.mx312-eyebrow{font-size:10px;letter-spacing:.08em;font-weight:800;color:#39759c}
.mx312-x{border:1px solid #dae6ec;background:#f8fbfd;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:25px;cursor:pointer;color:#385769;flex-shrink:0}
.mx312-modal-body{text-align:center;padding:0 20px}
.mx312-bank-label{font-size:13px;font-weight:750;margin:6px 0 4px}
.mx312-modal-price{font-size:33px;font-weight:850;color:#075e98;line-height:1.2}
.mx312-clock{display:flex;justify-content:center;align-items:center;gap:10px;margin:9px auto;padding:9px 12px;background:#eff6fd;border-radius:12px;width:max-content}
.mx312-clock span{font-size:12px;color:#496779}.mx312-clock strong{font-variant-numeric:tabular-nums;font-size:22px;color:#a65300}
.mx312-qr-frame{background:white;border:2px solid #c4dfed;border-radius:15px;box-shadow:0 4px 16px #c9dce555;margin:9px auto;display:grid;place-items:center;width:min(300px,100%);padding:8px}
.mx312-qr-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.mx312-dialog-foot{padding:12px 22px 20px;text-align:center;display:grid;justify-items:center;gap:8px}
.mx312-dialog-foot small{font-size:11px;color:#677788;max-width:400px;line-height:1.45}
.mx312-dialog-foot .btn{min-width:200px}
.mx312-success{padding:10px 13px;background:#e8f7ee;color:#176239;border-radius:10px;font-size:13px}
.mx312-applied .mx312-dialog-head{justify-content:center;text-align:center;padding:26px 22px 8px}
.mx312-applied .mx312-dialog-head h2{font-size:24px;color:#12553c}
.mx312-applied .mx312-modal-body{padding:12px 24px 30px}
.mx312-applied .mx312-bank-label{margin:0 0 20px;line-height:1.5}
.mx312-applied .mx312-success{background:#e9f8ee;border:1px solid #a8dec0;border-radius:16px;padding:26px 18px;color:#145537}
.mx312-success-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 13px;border-radius:50%;background:#198454;color:white;font-size:34px;font-weight:700}
.mx312-applied .mx312-success h3{margin:0 0 8px;font-size:24px;line-height:1.2;color:#145537}
.mx312-applied .mx312-success p{margin:0 0 14px;font-size:15px;line-height:1.45}
.mx312-applied .mx312-success strong{font-size:28px;font-variant-numeric:tabular-nums}
.mx312-applied .mx312-return{display:flex;justify-content:center;width:100%;min-height:50px;margin:18px 0 0;font-size:15px}
@media(max-width:760px){.mx312-subscription-home{grid-template-columns:minmax(0,1fr)}.mx312-renewal{padding:16px}.mx312-dialog-head{padding:15px 16px 5px}.mx312-dialog-head h2{font-size:18px}.mx312-dialog{max-height:96dvh;border-radius:15px}.mx312-modal-body{padding:0 12px}.mx312-qr-frame{width:min(250px,70vw)}.mx312-dialog-foot{padding:7px 14px 13px}}
@media(max-height:650px){.mx312-qr-frame{width:min(205px,55vw)}.mx312-dialog-head{padding-top:10px}.mx312-modal-price{font-size:27px}}

/* V20.313: renovación compacta para todos los perfiles operativos */
.mx313-staff-renew{max-width:680px;margin:16px auto}.mx313-staff-renew .mx312-plan-current small{display:block;margin-top:5px;color:var(--muted,#64748b)}.mx313-staff-renew .mx308-total{padding:12px 16px;border-radius:12px;background:#edf6fd}.mx313-staff-renew .mx312-pay-button{width:100%;margin-top:16px}.mx313-bank-neutral{text-align:center;padding:10px 14px;margin:0 0 12px;border-radius:14px;background:#eaf4ff;color:#144b74;font-weight:700}@media(max-width:600px){.mx313-staff-renew{max-width:100%}.mx313-bank-neutral{font-size:.93rem}}


/* Archivo: salon.css */
/* Controles específicos de peluquería; colores y tipografía del panel MIONEXO. */
.page[data-module="salon"] .tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.page[data-module="salon"] .tabs .btn{min-height:42px}
.salon-setup-list{display:grid;gap:8px;margin-top:14px}
.salon-setup-row{display:grid;grid-template-columns:minmax(100px,150px) 1fr auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line,#d9e3ed)}
.salon-setup-row strong{font-size:14px}.salon-setup-row span{color:var(--muted,#607387);font-size:13px}
.salon-book-layout{grid-template-columns:minmax(360px,0.85fr) minmax(0,1.15fr);align-items:start}.salon-book-layout>.panel{min-width:0;align-self:start}.salon-book-layout #salon-agenda-list{max-height:min(65vh,720px);overflow:auto}.salon-book-more{margin:14px 0;border-top:1px solid var(--line,#d9e3ed);padding-top:12px}
.salon-book-more summary{cursor:pointer;font-weight:600}.salon-book-more .field{margin-top:12px}
.salon-extra-service{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:12px 0}
.salon-service-quick .grid2{margin:10px 0}
.salon-hours-day{border:0;border-top:1px solid var(--line,#d9e3ed);padding:12px 0;margin:0}.salon-hours-day legend{font-weight:700;padding:0 8px 0 0}.salon-hour-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin:6px 0}.salon-hour-row .field{margin:0}
.salon-quick-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:12px 0}.salon-quick-service{min-height:66px;padding:11px 12px;text-align:left;font:inherit;color:var(--ink,#163049);background:var(--surface,#fff);border:1px solid var(--line,#d9e3ed);border-radius:8px;cursor:pointer}.salon-quick-service strong,.salon-quick-service span{display:block}.salon-quick-service span{margin-top:4px;font-size:12px;color:var(--muted,#607387)}.salon-quick-service:hover,.salon-quick-service:focus-visible{border-color:var(--primary,#103a76);outline:2px solid transparent}.salon-quick-service:active{transform:scale(.98)}
.salon-loyalty-options{margin:14px 0;padding:12px;border:1px solid var(--line,#d9e3ed);border-radius:8px}.salon-loyalty-options summary,.salon-loyalty-options legend{font-weight:600;cursor:pointer}.salon-loyalty-choices{max-height:210px;overflow:auto}.salon-reward-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#d9e3ed)}.salon-reward-row:last-child{border-bottom:0}.salon-reward-row small{display:block;margin-top:3px;color:var(--muted,#607387)}
.salon-agenda-entry{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;padding:14px 2px;border-bottom:1px solid var(--line,#d9e3ed)}
.salon-agenda-entry:last-child{border-bottom:0}.salon-agenda-entry time{font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink,#163049)}
.salon-agenda-entry strong{display:block;color:var(--ink,#163049)}.salon-agenda-entry p{margin:4px 0;line-height:1.4}.salon-agenda-entry small{color:var(--muted,#607387)}
.salon-agenda-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.salon-agenda-empty{margin:0;padding:18px 0}
.salon-agenda-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;margin:12px 0}.salon-agenda-column{min-width:0;border:1px solid var(--line,#d9e3ed);border-radius:8px;overflow:hidden}.salon-agenda-column h4{margin:0;padding:10px 12px;background:var(--page,#f4f7fa);font-size:13px}.salon-agenda-slot{display:flex;gap:9px;padding:11px 12px;border-top:1px solid var(--line,#d9e3ed);font-size:13px}.salon-agenda-slot time{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.salon-agenda-slot strong,.salon-agenda-slot span{display:block;line-height:1.35}.salon-agenda-slot span{color:var(--muted,#607387);margin-top:3px}.salon-agenda-free{padding:11px 12px;margin:0;font-size:13px}.salon-agenda-management{margin-top:12px}.salon-agenda-management>summary{cursor:pointer;font-weight:600;padding:8px 0}
@media(max-width:1250px){.salon-book-layout{grid-template-columns:1fr}}
@media(max-width:760px){.page[data-module="salon"] .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.page[data-module="salon"] .tabs .btn{flex:none;white-space:nowrap}.salon-book-layout{grid-template-columns:1fr}.salon-book-layout #salon-agenda-list{max-height:none;overflow:visible}.salon-setup-row{grid-template-columns:1fr auto}.salon-setup-row span{grid-column:1/-1;grid-row:2}.salon-extra-service{grid-template-columns:1fr}.salon-extra-service .btn{justify-self:start}.salon-hour-row{grid-template-columns:1fr 1fr}.salon-hour-row .btn{grid-column:1/-1;justify-self:start}}

/* Agenda · correcciones responsive usando exclusivamente tokens de MIONEXO. */
.page[data-module="salon"] #salon-body,.page[data-module="salon"] .panel{min-width:0}
.salon-reschedule-requests{margin:18px 0 6px;padding:14px;border:1px solid var(--line,#d9e3ed);border-radius:12px;background:var(--surface,#fff)}
.salon-reschedule-requests h3{margin:0 0 8px;font-size:15px}
.salon-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border-radius:999px;background:var(--page,#f4f7fa);color:var(--ink,#163049);font-size:12px}
.salon-reschedule-request{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0;border-top:1px solid var(--line,#d9e3ed)}
.salon-reschedule-request p{margin:5px 0}.salon-reschedule-request small{color:var(--muted,#607387)}
.salon-reschedule-card{border:1px solid var(--line,#d9e3ed);border-radius:12px;padding:16px;margin:16px 0;background:var(--surface,#fff);display:grid;gap:12px}
.salon-reschedule-card p{margin:5px 0 0}.salon-reschedule-card .field{max-width:410px;margin:0}
.salon-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.salon-actions>.btn{min-height:42px}
.salon-status{display:inline-block;vertical-align:middle;font-weight:600;font-size:11px;line-height:1.4;border:1px solid var(--line,#d9e3ed);border-radius:999px;padding:3px 8px;margin-left:6px;color:var(--muted,#607387);background:var(--page,#f4f7fa)}
.salon-status-confirmed,.salon-status-completed{color:var(--ink,#163049)}
.salon-entry-pending{border-left:3px solid var(--primary,#103a76);padding-left:12px}
.salon-book-layout .panel label.field input,.salon-book-layout .panel label.field select{max-width:100%;min-width:0}
@media (max-width:760px){
 .salon-agenda-entry{grid-template-columns:1fr;gap:5px;padding:14px 4px}
 .salon-agenda-entry time{font-size:13px}
 .salon-agenda-board{grid-template-columns:minmax(0,1fr)}
 .salon-agenda-actions>.btn,.salon-reschedule-request .btn{min-height:44px}
 .salon-reschedule-request{align-items:stretch}.salon-reschedule-request .salon-actions{width:100%}.salon-reschedule-request .salon-actions .btn{flex:1}
 .salon-reschedule-card input[type=datetime-local]{width:100%}
 .salon-hour-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .salon-quick-services{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))}
}
@media(max-width:380px){.salon-book-layout .grid2,.salon-setup-row{grid-template-columns:1fr}.salon-quick-services{grid-template-columns:1fr 1fr}.salon-reschedule-card{padding:12px}}

.salon-professional-services{border:1px solid var(--line,#d9e3ed);border-radius:10px;padding:14px;margin:10px 0;display:grid;gap:10px}
.salon-professional-services .salon-loyalty-choices{max-height:180px;display:grid;gap:5px}
.salon-professional-services .btn{justify-self:start;min-height:42px}

/* Navegación de cinco áreas: dos filas táctiles en móvil, sin pestañas cortadas. */
@media(max-width:760px){
 .page[data-module="salon"] .tabs{flex-wrap:wrap;overflow:visible;gap:7px}
 .page[data-module="salon"] .tabs .btn{flex:1 1 calc(33.333% - 8px);min-width:0;min-height:44px;text-align:center;justify-content:center;padding:10px 8px}
}

/* V20.451 · Experiencia operativa MIONEXO, sin redefinir la identidad global. */
#page:has(.salon-workspace){max-width:1680px;padding-top:26px}
.salon-workspace{--salon-ink:var(--ink,#15233b);--salon-muted:var(--muted,#68768a);--salon-primary:var(--blue,#1555bb);--salon-line:var(--line,#e5eaf2);--salon-paper:var(--surface,var(--white,#fff));color:var(--salon-ink);width:100%;min-width:0}
.salon-workspace *{box-sizing:border-box}
.salon-workspace h1,.salon-workspace h2,.salon-workspace h3,.salon-workspace h4{letter-spacing:-.025em}
.salon-workspace h1{font-size:clamp(26px,2.2vw,34px);line-height:1.17;margin:6px 0 7px;font-weight:780}
.salon-workspace h2{font-size:clamp(21px,1.8vw,27px);line-height:1.2;margin:4px 0 8px}
.salon-workspace h3{font-size:17px;line-height:1.3;margin:3px 0 7px;font-weight:750}
.salon-workspace p{font-size:14px;line-height:1.55;color:var(--salon-muted);margin:5px 0 0}
.salon-workspace .label{font-size:11px;letter-spacing:.04em;color:var(--salon-muted)}
.salon-workspace :is(input,select){min-height:44px;font-size:14px}
.salon-workspace button:focus-visible,.salon-workspace summary:focus-visible{outline:3px solid var(--salon-primary);outline-offset:3px}
.salon-workspace .btn{min-height:42px;border-radius:10px;font-size:13px;transition:background-color .14s,border-color .14s,transform .14s}
.salon-workspace .btn:not(:disabled):hover{transform:translateY(-1px)}
.salon-workspace .btn.primary{background:var(--salon-primary);border-color:var(--salon-primary);color:#fff}
.salon-workspace .panel{padding:20px 22px;margin-bottom:14px;border-color:var(--salon-line);box-shadow:0 5px 18px rgba(20,48,75,.025)}
.salon-workspace .panel>.panel{box-shadow:none}
.salon-page-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:20px}
.salon-page-heading p{margin:0;font-size:14px}
.salon-eyebrow{font-weight:800;text-transform:uppercase;color:var(--salon-primary);letter-spacing:.09em;font-size:10px;line-height:1.3}
.salon-module-label{padding:8px 12px;background:var(--salon-paper);border:1px solid var(--salon-line);border-radius:999px;font-size:12px;color:var(--salon-muted);white-space:nowrap}
#page .salon-nav{display:flex;gap:7px;flex-wrap:wrap;padding:6px;border:1px solid var(--salon-line);border-radius:13px;background:var(--salon-paper);margin:0 0 20px;box-shadow:0 3px 10px #15233b06}
#page .salon-nav .btn{flex:1 1 125px;gap:9px;border:0;min-width:0;border-radius:9px;min-height:45px;justify-content:center;font-size:14px;box-shadow:none;color:var(--salon-muted);background:transparent}
#page .salon-nav .btn.primary{background:var(--salon-primary);color:#fff;box-shadow:0 4px 11px rgba(0,0,0,.09)}
#page .salon-nav .btn:not(.primary):hover{background:var(--bg,#f5f7fb);color:var(--salon-ink)}
.salon-tab-icon{font-size:17px;line-height:1;width:17px;text-align:center;font-weight:400}
.salon-today{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:2px 0 16px}
.salon-today .btn{min-height:47px;padding:11px 19px;font-size:14px;flex-shrink:0}
.salon-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.salon-metrics>div{padding:15px 18px;border-radius:13px;background:var(--salon-paper);border:1px solid var(--salon-line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.salon-metrics small{font-size:13px;color:var(--salon-muted);font-weight:570}
.salon-metrics strong{font-size:28px;font-weight:790;line-height:1.2;font-variant-numeric:tabular-nums}
.salon-attention-layout{display:grid;grid-template-columns:minmax(280px,.88fr) minmax(400px,1.12fr);gap:16px;align-items:start}
.salon-work-card{background:var(--salon-paper);border:1px solid var(--salon-line);border-radius:15px;min-width:0;padding:21px 22px;box-shadow:0 5px 18px rgba(20,48,75,.025)}
.salon-card-top{display:flex;align-items:start;justify-content:space-between;gap:12px}
.salon-card-top p{max-width:570px}
.salon-day-picker{min-width:172px;margin:0!important}
.salon-workspace .salon-branch{margin:14px 0 18px}
.salon-services-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;border-top:1px solid var(--salon-line);padding-top:16px;gap:8px}
.salon-services-label span{font-size:12px;color:var(--salon-muted)}
.salon-workspace .salon-quick-services{display:grid;grid-template-columns:1fr;gap:9px;margin:12px 0 14px}
.salon-service-tile{display:flex;align-items:center;gap:11px;border:1px solid var(--salon-line);border-radius:12px;padding:12px;background:var(--salon-paper);min-width:0;transition:border-color .15s,background .15s}
.salon-service-tile:hover{border-color:var(--salon-primary);background:var(--bg,#f5f7fb)}
.salon-service-monogram{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--salon-primary) 8%,white);color:var(--salon-primary);font-size:21px;font-weight:700}
.salon-service-tile-main{flex:1;min-width:0;display:grid;gap:4px}
.salon-service-tile-main strong{font-weight:740;font-size:14px;overflow-wrap:anywhere}
.salon-service-tile-main span{color:var(--salon-muted);font-size:12px}
.salon-workspace .salon-service-charge{border-color:color-mix(in srgb,var(--salon-primary) 30%,white);color:var(--salon-primary);background:var(--salon-paper);font-weight:740;padding:8px 15px;min-height:40px}
.salon-charge-bottom{border-top:1px solid var(--salon-line);padding-top:14px;justify-content:flex-end}
.salon-attention-list{display:grid;gap:10px;margin-top:17px}
.salon-attention-card{border:1px solid var(--salon-line);border-radius:12px;padding:14px;background:var(--salon-paper);min-width:0}
.salon-attention-head{display:flex;justify-content:space-between;align-items:flex-start;gap:9px}
.salon-attention-head>div{display:grid;gap:5px;min-width:0}.salon-attention-head strong{font-size:15px}.salon-attention-head small{font-size:12px;color:var(--salon-muted)}
.salon-attention-time{color:var(--salon-primary);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.salon-attention-card .salon-status{flex:none;margin:0}
.salon-attention-lines{padding:0;margin:12px 0 10px;list-style:none;border-top:1px solid var(--salon-line)}
.salon-attention-lines li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 0;border-bottom:1px solid var(--salon-line)}
.salon-attention-lines li>div{display:grid;gap:3px}.salon-attention-lines li strong{font-size:13px}.salon-attention-lines li span{font-size:12px;color:var(--salon-muted)}
.salon-attention-footer{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.salon-pay-indicator{font-weight:700;font-size:12px;color:#ac6b0b}.salon-pay-indicator.is-paid{color:#16846b}
.salon-workspace .salon-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.salon-attention-footer .btn{padding:9px 12px}
.salon-empty{padding:30px 12px;text-align:center;background:var(--bg,#f5f7fb);border:1px dashed var(--salon-line);border-radius:12px;display:grid;gap:8px;justify-items:center}
.salon-empty strong{font-size:15px}.salon-empty p{max-width:350px;margin:0 0 6px}.salon-empty-symbol{font-size:24px;color:var(--salon-primary)}
.salon-book-mode{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:16px}
.salon-book-mode h2{margin-top:5px}.salon-book-mode p{max-width:540px}
#page .salon-book-layout{display:grid;grid-template-columns:minmax(370px,.93fr) minmax(420px,1.07fr);gap:16px;align-items:start}
#page .salon-book-layout>.panel{margin:0;min-width:0}
.salon-workspace .salon-agenda-column{border-radius:12px;border-color:var(--salon-line)}
.salon-workspace .salon-agenda-column h4{font-size:14px;padding:13px;background:var(--bg,#f5f7fb)}
.salon-workspace .salon-agenda-slot{padding:13px}
.salon-workspace .salon-agenda-entry{padding:16px 5px;gap:12px}
.salon-workspace .salon-agenda-entry p{font-size:13px}
.salon-workspace .salon-agenda-board{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}
.salon-workspace .salon-agenda-management>summary,.salon-disclosure>summary{cursor:pointer;padding:12px 0;font-size:14px;font-weight:740;color:var(--salon-ink)}
.salon-disclosure>summary{list-style-position:inside}
.salon-disclosure[open]>summary{border-bottom:1px solid var(--salon-line);margin-bottom:12px}
.salon-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:10px}
.salon-team-card{display:flex;align-items:center;gap:12px;border:1px solid var(--salon-line);border-radius:12px;padding:13px;min-width:0}
.salon-team-card>div{flex:1;display:grid;gap:3px;min-width:0}.salon-team-card strong{font-size:14px;overflow-wrap:anywhere}.salon-team-card small{font-size:12px;color:var(--salon-muted)}
.salon-avatar{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--salon-primary) 10%,white);color:var(--salon-primary);font-weight:800;font-size:17px}
.salon-workspace .salon-status{border-radius:999px;padding:5px 10px;font-size:11px;margin-left:0;white-space:nowrap}
.salon-status-completed,.salon-status-confirmed{border-color:rgba(22,132,107,.25);background:rgba(22,132,107,.08);color:#13765f}
.salon-status-in_progress{border-color:rgba(21,85,187,.24);background:rgba(21,85,187,.08);color:var(--salon-primary)}
.salon-status-pending,.salon-status-ready{border-color:rgba(201,135,34,.25);background:rgba(201,135,34,.09);color:#96640e}
.salon-status-cancelled,.salon-status-expired{border-color:rgba(170,53,72,.2);background:rgba(170,53,72,.07);color:#a33e4c}
.salon-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.salon-catalog-item{display:flex;align-items:center;gap:10px;border:1px solid var(--salon-line);border-radius:12px;padding:12px;min-width:0}
.salon-catalog-item>div{flex:1;min-width:0;display:grid;gap:4px}.salon-catalog-item strong{font-size:14px;overflow-wrap:anywhere}.salon-catalog-item small{font-size:12px;color:var(--salon-muted)}
.salon-catalog-item b{font-size:14px;white-space:nowrap}
.salon-inline-help{margin:0 0 12px!important}
.salon-loyalty-intro{margin:0 0 16px}.salon-loyalty-intro h2{margin-top:4px}
.salon-workspace .salon-hours-day{padding:15px 0}.salon-workspace .salon-hours-day legend{font-size:14px}
.salon-workspace .salon-setup-list{gap:0}.salon-workspace .salon-setup-row{padding:12px}
@media(max-width:1220px){.salon-attention-layout,#page .salon-book-layout{grid-template-columns:1fr}}
@media(max-width:760px){
 #page:has(.salon-workspace){padding:15px 13px 40px;max-width:none}
 .salon-module-label{display:none}
 .salon-workspace .panel{padding:17px;margin-bottom:11px}
 .salon-workspace h1{font-size:26px}
 .salon-workspace h2{font-size:22px}
 #page .salon-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:15px;padding:5px}
 #page .salon-nav .btn{display:flex;flex-direction:column;gap:4px;min-height:58px;padding:8px 3px;font-size:12px;line-height:1.2;white-space:normal;flex:none}
 .salon-tab-icon{font-size:18px}
 .salon-today{align-items:start}.salon-today .btn{font-size:13px;padding:9px 11px;min-height:43px}
 .salon-metrics{gap:7px;margin-bottom:12px}.salon-metrics>div{padding:12px 10px;display:grid;justify-items:start;gap:5px}
 .salon-metrics strong{font-size:23px}.salon-metrics small{font-size:11px}
 .salon-attention-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .salon-work-card{padding:16px;border-radius:13px}
 .salon-card-top{flex-wrap:wrap}.salon-day-picker{width:100%;min-width:0}
 .salon-service-tile{padding:10px}.salon-service-monogram{width:37px;height:37px;font-size:18px}
 .salon-service-tile-main strong{font-size:13px}.salon-service-charge{padding:9px 10px!important}
 #page .salon-book-layout{grid-template-columns:minmax(0,1fr)}
 .salon-book-mode{align-items:stretch}.salon-book-mode .salon-actions{width:100%}.salon-book-mode .salon-actions>.btn{flex:1}
 .salon-team-grid,.salon-catalog{grid-template-columns:1fr}
 .salon-hours-day .salon-hour-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .salon-workspace .salon-attention-card{padding:11px}
 .salon-workspace .salon-actions>.btn{min-height:42px}
}
@media(max-width:390px){
 .salon-today{flex-wrap:wrap}.salon-today>.btn{width:100%}
 .salon-attention-footer{align-items:stretch}.salon-attention-footer .salon-actions{width:100%}.salon-attention-footer .salon-actions .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){.salon-workspace .btn,.salon-service-tile{transition:none}}
/* V20.451 · Configuración progresiva en lugar de formularios interminables */
.salon-section-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 17px}
.salon-section-intro h2{margin:6px 0 4px}.salon-section-intro p{margin:0}
.salon-count-label{white-space:nowrap;color:var(--salon-primary);background:color-mix(in srgb,var(--salon-primary) 8%,white);font-size:12px;font-weight:800;padding:9px 13px;border-radius:999px}
.salon-services-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px;align-items:start}
.salon-services-layout>div,.salon-services-layout>aside,.salon-personal-layout>div,.salon-personal-layout>aside{min-width:0}
.salon-personal-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:16px;align-items:start}
.salon-personal-config{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0}
.salon-personal-config>.panel{margin:0;padding:15px}
.salon-service-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px;margin-top:12px}
.salon-service-settings>.panel{margin:0;padding:16px}
.salon-workspace .salon-disclosure summary{padding:10px 0 12px}
.salon-workspace .salon-disclosure:not([open])>summary{padding:2px 0 4px}
.salon-workspace .salon-disclosure .field{margin:10px 0}
#salon-body:has(>.salon-loyalty-intro){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#salon-body>.salon-loyalty-intro{grid-column:1/-1}
#salon-body:has(>.salon-loyalty-intro)>.panel{margin:0;min-width:0}
@media(max-width:1120px){.salon-services-layout,.salon-personal-layout{grid-template-columns:minmax(0,1fr)}#salon-body:has(>.salon-loyalty-intro){grid-template-columns:1fr}}
@media(max-width:760px){.salon-section-intro{align-items:flex-start}.salon-count-label{font-size:11px;padding:7px 9px}.salon-service-settings,.salon-personal-config{grid-template-columns:minmax(0,1fr)}}
.salon-availability-check{margin:14px 0;padding:13px 15px;border:1px dashed var(--salon-line);border-radius:12px;background:var(--bg,#f5f7fb);display:grid;gap:9px}
.salon-availability-check>.btn{justify-self:start;background:var(--salon-paper)}
.salon-availability-message{font-size:12px;color:var(--salon-muted);line-height:1.4}
.salon-availability-message.available{color:#167358;font-weight:700}
.salon-availability-message.unavailable{color:#a14921;font-weight:700}


/* Archivo: subscription-notice-450.css */
/* V20.450 · Alerta de renovación previa y jerarquía de membresía. */
.mx450-preexpiry{border-color:#e7b35b!important;background:#fff8e9!important;color:#91510b!important}
.mx450-preexpiry .subscription-topbar-clock{color:#ab6907!important}
.subscription-state--grace,.subscription-state--expired{background:#fff1f2;color:#a52c3e}
.subscription-state--suspended{background:#fff1f2;color:#9a2635}
.subscription-state--critical{background:#fff6e7;color:#93540d}
.mx450-account-notice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;margin:0 0 18px;padding:16px 18px;border:1px solid #e7bd73;border-left:4px solid #c47b10;border-radius:14px;background:#fff9ef;color:#553c1a;min-width:0}
.mx450-account-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff0d0;color:#af6a04;font-size:21px;font-weight:900}
.mx450-account-notice strong{display:block;font-size:17px;line-height:1.25}.mx450-account-notice p{margin:5px 0 0;font-size:13px;line-height:1.5}.mx450-account-notice .btn{min-height:44px;max-width:230px;white-space:normal;text-align:center}
.mx450-overlay{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:16px;background:rgba(8,24,44,.58)}
body.mx450-modal-open{overflow:hidden}
.mx450-dialog{position:relative;box-sizing:border-box;width:min(440px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:29px 30px 23px;border:1px solid #dce4ee;border-radius:20px;background:var(--surface,#fff);color:var(--ink,#15233b);text-align:center;box-shadow:0 24px 75px rgba(7,27,49,.29)}
.mx450-close{position:absolute;right:14px;top:10px;background:none;border:0;color:#64748b;font-size:25px;width:37px;height:37px;line-height:1;cursor:pointer}
.mx450-dialog-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;margin:0 auto 16px;background:#fff1d7;color:#ad6b08;font-size:31px;font-weight:800}
.mx450-dialog h2{font-size:clamp(22px,3vw,27px);line-height:1.15;margin:0 0 12px;letter-spacing:-.025em}
.mx450-dialog>p{font-size:14px;line-height:1.55;margin:0 0 16px;color:var(--muted,#64748b)}
.mx450-time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 12px;border:1px solid #f0c775;background:#fff8e8;border-radius:12px;padding:12px 15px;margin:16px 0;font-size:13px;color:#865005}
.mx450-time strong{font-size:20px;color:#8c4a05;font-variant-numeric:tabular-nums}
.mx450-dialog .mx450-main-action,.mx450-dialog .mx450-secondary{width:100%;display:flex;min-height:46px;white-space:normal;margin:8px 0;justify-content:center}
.mx450-dialog .mx450-main-action{background:var(--mx67-primary,var(--blue,#1555bb));border-color:var(--mx67-primary,var(--blue,#1555bb))}
.mx450-dialog .mx450-secondary{border:1px solid #cbd6e4}
.mx450-dialog .mx450-dialog-foot{margin:14px 0 0;padding-top:12px;border-top:1px solid #e6edf4;font-size:11px;color:var(--muted,#64748b)}
@media(max-width:760px){.mx450-account-notice{grid-template-columns:minmax(0,1fr);gap:10px;padding:15px}.mx450-account-icon{display:none}.mx450-account-notice .btn{width:100%;max-width:none}.mx450-dialog{padding:25px 19px 18px;border-radius:16px}.mx450-time{align-items:flex-start;flex-direction:column}.mx312-subscription-home{grid-template-columns:minmax(0,1fr)}.mx312-membership-facts>div{flex-wrap:wrap}.mx312-membership-facts strong{text-align:left}}
@media(prefers-reduced-motion:reduce){.mx450-overlay,.mx450-dialog{animation:none!important}}

/* No mostrar el último día como vencido: la alerta previa sigue siendo ámbar. */
.subscription-main-number.mx450-main-preexpiry{color:#a7650d}
.mx450-expired-banner{background:#fff3f3;border-color:#e6a7ae;border-left-color:#c43142;color:#712832}
.mx450-expired-banner .mx309-grace-content>strong,.mx450-expired-banner .mx309-grace-symbol{color:#a32535}
.mx450-dialog:focus{outline:none}

/* Navegación fiscal móvil legible, sin cambiar botones ni gestión de datos. */
#page.mx66-workspace .mx450-fiscal-mobile{display:none}
@media(max-width:640px){
 #page.mx66-workspace[data-module="fiscal-integration"] .mx450-fiscal-mobile{display:flex;flex-direction:column;gap:7px;margin:0 0 10px;padding:0;max-width:100%;font-size:12px;color:var(--muted,#64748b);font-weight:750}
 #page.mx66-workspace[data-module="fiscal-integration"] .mx450-fiscal-mobile select{width:100%;min-width:0;min-height:45px;padding:10px 12px;border:1px solid var(--line,#cedceb);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#15233b);font-size:14px;font-weight:700}
 #page.mx66-workspace[data-module="fiscal-integration"] .finance-navigation .module-tabs.mx66-tabbar,
 #page.mx66-workspace[data-module="fiscal-integration"] .mx450-fiscal-mobile-wrap>.fiscal-homologation-tabs{display:none!important}
 #page.mx66-workspace[data-module="fiscal-integration"] .mx450-fiscal-mobile-wrap{width:100%;max-width:100%;min-width:0}
 /* The themed tab bar has a stronger display:flex rule; keep only the mobile selector. */
 .workspace[data-theme] #page.mx66-workspace[data-module="fiscal-integration"] .finance-navigation .module-tabs.mx66-tabbar,
 .workspace[data-theme] #page.mx66-workspace[data-module="fiscal-integration"] .mx450-fiscal-mobile-wrap>.fiscal-homologation-tabs{display:none!important}
}


/* Archivo: document-scanner.css */
/* MIONEXO escáner de documentos: namespace autónomo, sin afectar lector de códigos. */
.mnx-docscan{border:0;padding:0;border-radius:18px;max-width:min(790px,96vw);width:100%;max-height:94dvh;box-shadow:0 22px 74px rgba(4,27,47,.32);background:var(--panel,#fff);color:var(--text,#193247);overflow:hidden}
.mnx-docscan::backdrop{background:rgba(3,20,37,.75);backdrop-filter:blur(3px)}
.mnx-docscan [hidden]{display:none!important}
.mnx-docscan .ds-shell{display:flex;flex-direction:column;gap:12px;padding:clamp(12px,2.4vw,22px);max-height:93dvh;overflow-y:auto;min-width:0}
.mnx-docscan .ds-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mnx-docscan h2{font-size:clamp(20px,3.2vw,25px);margin:3px 0;font-weight:750;line-height:1.2}
.mnx-docscan .ds-eyebrow{letter-spacing:.12em;font-size:10px;font-weight:750;color:var(--brand-primary,#155d93)}
.mnx-docscan .ds-close{background:var(--soft,#f2f6fa);border:1px solid var(--line,#dce6ee);border-radius:50%;width:37px;height:37px;display:grid;place-items:center;cursor:pointer;font-size:24px;color:var(--text,#193247);flex:none}
.mnx-docscan .ds-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:var(--soft,#edf3f7);border-radius:12px;padding:4px;align-items:stretch}
.mnx-docscan .ds-mode-switch button{appearance:none;min-height:41px;font-size:13px;font-weight:650;border:0;border-radius:9px;background:transparent;color:var(--muted,#566b7a);cursor:pointer}
.mnx-docscan .ds-mode-switch button.selected{background:var(--panel,#fff);color:var(--brand-primary,#0d68ad);box-shadow:0 1px 6px rgba(9,40,72,.15)}
.mnx-docscan .ds-mode-switch button:disabled{opacity:.45;cursor:not-allowed}
.mnx-docscan .ds-camera-panel{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0}
.mnx-docscan .ds-native-panel{display:grid;gap:12px;min-width:0}
.mnx-docscan .ds-native-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;text-align:center;padding:22px 14px;background:var(--soft,#f1f6fa);border:1px solid var(--line,#dce6ee);border-radius:16px;min-height:190px}
.mnx-docscan .ds-native-illustration{width:84px;height:84px;border-radius:24px;background:var(--panel,#fff);display:grid;place-items:center;color:var(--brand-primary,#1268b5);border:1px solid var(--line,#dce6ee)}
.mnx-docscan .ds-native-hero strong{font-size:17px}
.mnx-docscan .ds-native-hero p{margin:0;max-width:380px;line-height:1.5;font-size:13px;color:var(--muted,#586b7a)}
.mnx-docscan .ds-native-counter{font-size:12px;color:var(--muted,#586b7a);font-weight:650}
.mnx-docscan .ds-native-trigger{min-height:54px;font-size:16px;font-weight:750;width:100%;touch-action:manipulation}
.mnx-docscan .ds-native-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mnx-docscan .ds-native-actions .btn{min-height:43px}
.mnx-docscan .ds-extra{display:flex;justify-content:center;gap:8px}
.mnx-docscan .ds-finish{width:100%;min-height:43px}
.mnx-docscan .ds-review{display:grid;gap:10px}
.mnx-docscan .ds-review-title{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mnx-docscan .ds-review-title strong{font-size:15px}
.mnx-docscan .ds-review-title button{font-size:12px}
.mnx-docscan .ds-editor,.mnx-docscan .ds-queue{background:var(--soft,#f5f9fc);border:1px solid var(--line,#dce6ee);border-radius:12px;padding:11px;min-width:0}
.mnx-docscan .ds-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:9px;flex-wrap:wrap;padding-bottom:9px}
.mnx-docscan .ds-section-title strong{font-size:13px}.mnx-docscan .ds-section-title small{font-size:11px;color:var(--muted,#677785)}
.mnx-docscan canvas[data-ds-canvas]{width:100%;height:auto;max-height:350px;object-fit:contain;border-radius:9px;background:#d9e5ed;touch-action:none;cursor:crosshair;display:block}
.mnx-docscan .ds-filter{display:flex;align-items:center;gap:10px;font-size:13px;margin-top:10px;flex-wrap:wrap}
.mnx-docscan .ds-filter select{flex:1;min-width:150px;min-height:37px}
.mnx-docscan .ds-editor-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap;margin-top:11px}
.mnx-docscan .ds-pages{display:flex;align-items:stretch;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:2px 3px 4px}
.mnx-docscan .ds-page{min-width:110px;max-width:125px;flex:0 0 115px;border:1px solid var(--line,#d9e4eb);background:var(--panel,#fff);padding:5px;border-radius:9px;display:grid;gap:4px}
.mnx-docscan .ds-page.is-current{outline:2px solid var(--brand-primary,#0d77bd);outline-offset:-1px}
.mnx-docscan .ds-page img{width:100%;height:84px;object-fit:contain;background:#dfe9f0;border-radius:5px}
.mnx-docscan .ds-page strong{font-size:11px}.mnx-docscan .ds-page-tools{display:flex;gap:2px;flex-wrap:wrap}
.mnx-docscan .ds-page-tools button{font-size:10px;border:1px solid var(--line,#d9e4eb);border-radius:6px;background:var(--panel,#fff);padding:4px;cursor:pointer;color:inherit}
.mnx-docscan .ds-page-tools button:disabled{opacity:.3}
.mnx-docscan .ds-status{background:transparent;margin:0;padding:4px 2px;min-height:20px;font-size:12px;color:var(--muted,#667987);text-align:center}
.mnx-docscan .ds-status[data-error=true]{background:#fff0f0;color:#a22121;border-radius:8px;padding:9px}
.mnx-docscan .ds-footer{display:flex;gap:9px;align-items:center;justify-content:flex-end;border-top:1px solid var(--line,#dce6ee);padding-top:12px}
.mnx-docscan .ds-footer .ds-primary{flex:1;min-height:45px;font-weight:700}
.mnx-docscan .ds-footer .ds-secondary{min-height:45px}
.ds-purchase-section{padding:14px;border:1px solid var(--line,#dce6ee);background:var(--soft,#f4f8fb);border-radius:12px;margin:12px 0;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.ds-purchase-section h4{margin:0}.ds-purchase-section .ds-purchase-files{display:flex;flex-wrap:wrap;gap:6px;width:100%}.ds-purchase-section .ds-purchase-files a{font-size:12px}

@media(max-width:760px){.mnx-docscan{max-width:100vw;width:100vw;max-height:100dvh;border-radius:0}.mnx-docscan .ds-shell{max-height:100dvh;padding:12px 14px 18px;gap:9px}.mnx-docscan .ds-native-hero{min-height:190px}.mnx-docscan .ds-page{flex-basis:100px;min-width:100px}.mnx-docscan .ds-footer{flex-wrap:wrap}.mnx-docscan .ds-footer .ds-primary{flex-basis:100%}.mnx-docscan .ds-footer .ds-secondary{flex-basis:100%}}

/* V20.460: documentos adjuntos y borrado autorizado */
.ds-stored-document,.exp-doc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0}
.ds-delete-document,.exp-delete-doc{color:#a32731!important;border-color:#efb5b8!important}


/* Archivo: tenant-brand-consistency-466.css */
/* V20.466 · El tema de Mi empresa, no el color fijado en cada modulo, gobierna la identidad.
   Se limitan cambios a acentos de interfaz. No modificar el color semantico de
   cobros bancarios, alertas, disponibilidad, estados fiscales o resultados. */
.workspace[data-theme] {
  --mx466-brand:var(--green,#1BA2FF);
  --mx466-brand-dark:var(--nav,#0A2540);
  --mx466-brand-soft:color-mix(in srgb,var(--mx466-brand) 9%,white);
  --mx466-brand-border:color-mix(in srgb,var(--mx466-brand) 34%,white);
  --mx466-brand-hover:color-mix(in srgb,var(--mx466-brand) 82%,black);
}
/* Restaurante/Snack: el POS, catalogo y tesoreria ya comparten identidad.
   Los estilos anteriores tenian azul y verde fijos, incluso en modo personalizado. */
.workspace[data-theme] .restaurant-workspace{
  --rest-green:var(--mx466-brand);
  --rest-dark:var(--mx466-brand-dark);
  --rest-line:var(--line,#dce7e4);
  --rest-muted:var(--muted,#607a72);
  color:var(--ink,#15233b);
}
.workspace[data-theme] #page[data-module^="restaurant"] .restaurant-tabs button.active,
.workspace[data-theme] #page[data-module^="restaurant"] .restaurant-filters button.active,
.workspace[data-theme] #page[data-module^="restaurant"] .restaurant-main-action,
.workspace[data-theme] .restaurant-workspace .restaurant-primary,
.workspace[data-theme] .restaurant-workspace .rest-pos-add,
.workspace[data-theme] .restaurant-workspace .rest-filter button.active,
.workspace[data-theme] .restaurant-workspace .rest-customer-tabs button.active,
.workspace[data-theme] .restaurant-workspace .rest-treasury-filters button.active,
.workspace[data-theme] .restaurant-workspace .rest-treasury-actions .restaurant-primary,
.workspace[data-theme] .restaurant-workspace .rest-invoice-entry-actions .restaurant-primary,
.workspace[data-theme] .restaurant-workspace .rest-draft-dialog [data-draft="save"]{
  background:var(--mx466-brand)!important;
  border-color:var(--mx466-brand)!important;
  color:#fff!important;
}
.workspace[data-theme] .restaurant-workspace .restaurant-primary:hover{
  background:var(--mx466-brand-hover)!important;
  border-color:var(--mx466-brand-hover)!important;
}
.workspace[data-theme] .restaurant-workspace .rest-hero .restaurant-primary{
  background:#fff!important;border-color:#fff!important;color:var(--mx466-brand-dark)!important;
}
.workspace[data-theme] .restaurant-workspace .rest-hero,
.workspace[data-theme] .restaurant-workspace .rest-menu-intro,
.workspace[data-theme] .restaurant-workspace .rest-treasury-hero{
  background:linear-gradient(115deg,var(--mx466-brand-dark),var(--mx466-brand) 85%,var(--accent,#22C7C7))!important;
}
.workspace[data-theme] .restaurant-workspace .rest-hero :is(h2,p),
.workspace[data-theme] .restaurant-workspace .rest-menu-intro :is(h2,p){color:#fff}
.workspace[data-theme] .restaurant-workspace :is(.rest-pos-brand,.rest-pos-kicker,.rest-eyebrow,.rest-pos-open-order>span,.rest-shortcuts button small,.rest-dish>b,.rest-cart-total strong,.rest-catalog-upload strong),
.workspace[data-theme] .restaurant-workspace .rest-catalog-tabs button.active{
  color:var(--mx466-brand)!important;
}
.workspace[data-theme] .restaurant-workspace .rest-hero :is(.rest-pos-kicker,.rest-eyebrow),
.workspace[data-theme] .restaurant-workspace .rest-menu-intro .rest-eyebrow{color:#fff!important}
.workspace[data-theme] .restaurant-workspace .rest-pos-dish:is(:hover,.in-cart),
.workspace[data-theme] .restaurant-workspace .rest-catalog-photo-action:focus-within,
.workspace[data-theme] .restaurant-workspace .rest-catalog-upload:focus-within,
.workspace[data-theme] .restaurant-workspace .rest-choice-picker,
.workspace[data-theme] .restaurant-workspace .rest-inline-checkout .rest-inline-pay{
  border-color:var(--mx466-brand)!important;
}
.workspace[data-theme] .restaurant-workspace .rest-pos-dish:is(:hover,.in-cart){box-shadow:0 7px 20px color-mix(in srgb,var(--mx466-brand) 14%,transparent)}
.workspace[data-theme] .restaurant-workspace :is(.rest-pay-methods,.rest-other-methods) input:checked+span,
.workspace[data-theme] .restaurant-workspace .rest-pos-steps button[aria-current="step"],
.workspace[data-theme] .restaurant-workspace .rest-catalog-categories button.active{
  background:var(--mx466-brand-soft)!important;
  border-color:var(--mx466-brand)!important;
  color:var(--mx466-brand)!important;
  box-shadow:none!important;
}
.workspace[data-theme] .restaurant-workspace .rest-catalog-tabs button.active{border-bottom-color:var(--mx466-brand)!important}
.workspace[data-theme] .restaurant-workspace .rest-choice-picker{background:var(--mx466-brand-soft)!important}
.workspace[data-theme] .restaurant-workspace .rest-qr-stage .rest-inline-pay .restaurant-primary{background:var(--mx466-brand)!important}
.workspace[data-theme] .restaurant-workspace .restaurant-outline:hover{
  background:var(--mx466-brand-soft)!important;border-color:var(--mx466-brand-border)!important;
}
.workspace[data-theme] .restaurant-workspace :is(input,select,textarea):focus-visible{
  outline-color:var(--mx466-brand)!important;
}
/* Gastos: el azul fijo no debe imponerse a la identidad de un comercio, salon o restaurante. */
.workspace[data-theme] #page[data-module="expenses"] .exp-header{
  background:linear-gradient(115deg,var(--mx466-brand-soft),#fff 85%)!important;
  border-color:var(--mx466-brand-border)!important;
}
.workspace[data-theme] #page[data-module="expenses"] .exp-kicker{color:var(--mx466-brand)!important}
.workspace[data-theme] #page[data-module="expenses"] .exp-payment-preview,
.workspace[data-theme] #page[data-module="expenses"] .exp-pay-form{
  background:var(--mx466-brand-soft)!important;
  border-color:var(--mx466-brand-border)!important;
}
/* Salon y Tienda (administracion): usar el token empresarial, sin alterar la
   paleta propia que el dueno haya elegido para su tienda publica. */
.workspace[data-theme] #page[data-module="salon"]{--primary:var(--mx466-brand)}
.workspace[data-theme] #page[data-module="salon"] .salon-quick-service:is(:hover,:focus-visible),
.workspace[data-theme] #page[data-module="salon"] .salon-entry-pending{
  border-color:var(--mx466-brand)!important;
}
.workspace[data-theme] #page[data-module="online-store"] .store-admin{
  --store-current-accent:var(--mx466-brand);
  --store-current-soft:var(--mx466-brand-soft);
  --store-current-border:var(--mx466-brand-border);
}
/* Los codigos verdes/rojos de bancos, comprobantes fiscales y los estados
   pendientes/listos/errores no se reescriben: siguen representando estados. */

/* Produccion: el progreso del flujo debe usar el acento de la empresa. */
.workspace[data-theme] #page .order-flow-stage[aria-current="step"]{
  border-color:var(--mx466-brand)!important;
  background:var(--mx466-brand-soft)!important;
  color:var(--mx466-brand)!important;
}
.workspace[data-theme] #page .order-flow-stage.is-done{color:var(--mx466-brand)!important}
/* V20.470: el filtro activo de Mi menú utiliza el color corporativo. */
.workspace[data-theme] .restaurant-workspace .rest-simple-menu .rest-simple-categories button.active{
 background:var(--mx466-brand-soft)!important;
 border-color:var(--mx466-brand)!important;
 color:var(--mx466-brand)!important;
}
.workspace[data-theme] .restaurant-workspace .rest-simple-menu .rest-photo-explainer strong{
 color:var(--mx466-brand)!important;
}

/* Caja restaurante: neutral, readable independently of brand gradients. */
.workspace[data-theme] .restaurant-workspace .rest-treasury-hero.rest-cash-hero{background:#f5faff!important;color:#132b44!important}
.workspace[data-theme] .restaurant-workspace .rest-cash-hero h2{color:#132b44!important}
.workspace[data-theme] .restaurant-workspace .rest-cash-hero p{color:#455b70!important}


/* Archivo: quotation-mobile-481.css */
/* V20.482 · Cliente con documento y WhatsApp; formularios adaptables al contenedor. */
.quote-workspace .quote-customer-combo{grid-column:auto;min-width:0;position:relative;display:flex;flex-direction:column;gap:8px}
.quote-workspace .quote-customer-combo .quote-customer-select{min-width:0;margin:0;display:flex;flex-direction:column}
.quote-workspace .quote-customer-combo select[name="customer_id"]{display:none!important}
.quote-workspace #quote-customer-search{box-sizing:border-box;font-size:16px;min-width:0;width:100%;min-height:48px;padding:12px 36px 12px 44px;border-radius:10px;background-position:14px center;background-repeat:no-repeat}
.quote-workspace .quote-customer-matches{position:static;box-sizing:border-box;width:100%;max-height:270px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 4px 16px #102b381b;padding:5px}
.quote-workspace .quote-customer-matches[hidden]{display:none!important}
.quote-workspace .quote-customer-option{width:100%;min-height:48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;border:0;border-radius:6px;background:white;color:var(--ink);padding:9px 11px;text-align:left;white-space:normal}
.quote-workspace .quote-customer-option strong{font-size:14px;overflow-wrap:anywhere}
.quote-workspace .quote-customer-identifiers{display:flex;flex-wrap:wrap;gap:3px 10px;max-width:100%;overflow-wrap:anywhere}
.quote-workspace .quote-customer-option small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.quote-workspace .quote-customer-selected-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.quote-workspace .quote-customer-selected-meta[hidden]{display:none!important}
.quote-workspace .quote-customer-option:hover,.quote-workspace .quote-customer-option:focus-visible{background:#eaf4fb}
.quote-workspace .quote-customer-empty{font-size:13px;margin:8px 10px;color:var(--muted)}
.quote-workspace .quote-create-result{display:flex;white-space:normal;width:100%;min-height:42px;justify-content:center}
.quote-workspace .quote-customer-combo>.quote-new-customer{align-self:flex-start;max-width:100%;min-height:42px;white-space:normal;font-size:13px;padding:9px 12px;overflow-wrap:anywhere}
.quote-workspace .quote-customer-combo>.quote-new-customer[hidden]{display:none!important}
@media(max-width:800px){
 .page:has(.quote-workspace){width:100%;max-width:100%;min-width:0;padding:12px!important;overflow-x:clip}
 .page:has(.quote-workspace) .module-tabs{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 .page:has(.quote-workspace) .module-tabs .btn{white-space:normal;min-height:44px}
 .page:has(.quote-workspace) .quote-workspace{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:14px!important;margin:0 0 12px}
 .quote-workspace .quote-list-head,.quote-workspace .quote-form-grid,.quote-workspace .quote-customer-combo,.quote-workspace .quote-quick-stage{max-width:100%;min-width:0}
 .quote-workspace .quote-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .quote-workspace .quote-free-editor .grid2,.quote-quick-workspace .quote-free-editor .grid2{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .quote-workspace .quote-quick-stage .form-actions{justify-content:stretch;flex-wrap:wrap}
 .quote-workspace .quote-quick-stage .form-actions .btn{flex:1;min-width:0;white-space:normal;min-height:44px}
 .quote-workspace .quote-list-head h3{font-size:19px}
 .quote-workspace .quote-free-editor{padding:12px!important}
 .quote-workspace .quote-quick-table{min-width:560px}
 .quote-workspace .tablewrap{max-width:100%;overflow-x:auto}
}
@media(max-width:380px){.quote-workspace .quote-free-editor .grid2{grid-template-columns:1fr}}

/* El ancho del panel puede ser menor que la ventana cuando el menú está visible,
   incluso si el navegador del teléfono solicita la versión de escritorio. */
.quote-workspace{container-type:inline-size}
.quote-workspace .quote-form-grid > *,
.quote-workspace .quote-quick-stage,
.quote-workspace .quote-quick-stage .field,
.quote-workspace .quote-free-editor,
.quote-workspace .quote-free-editor .grid2 > *{box-sizing:border-box;min-width:0;max-width:100%}
.quote-workspace .quote-form-grid input,
.quote-workspace .quote-free-editor input{box-sizing:border-box;max-width:100%;min-width:0}
@container (max-width:740px){
 .quote-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .quote-free-editor .grid2{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .quote-quick-stage .form-actions{flex-wrap:wrap;gap:8px}
 .quote-quick-stage .form-actions .btn{white-space:normal;max-width:100%}
 .quote-search-row{flex-wrap:wrap}
 .quote-search-row input{flex:1 1 220px}
}
@media(max-width:800px){
 .quote-workspace .quote-customer-matches{max-height:240px}
 .quote-workspace #quote-customer-search{padding-left:44px!important}
}


/* Archivo: agreement-editor.css */
.agreement-editor{width:min(760px,95vw);max-height:90dvh;padding:0;overflow:auto;color:var(--text,#182a3b)}
.agreement-editor .agreement-head{position:sticky;top:0;z-index:2;padding:18px 22px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#dbe4ee);margin:0;align-items:flex-start}
.agreement-editor .agreement-head h3{margin:0 0 4px;font-size:18px}.agreement-editor .agreement-head p{margin:0}
.agreement-editor form{display:block;margin:0;padding:0}.agreement-editor .agreement-body{padding:18px 22px;display:grid;gap:16px}
.agreement-editor .agreement-section{border:0;border-top:1px solid var(--line,#dbe4ee);padding:12px 0 0;margin:0;min-width:0}.agreement-editor legend{padding:0 8px 0 0;font-size:14px;font-weight:700}
.agreement-editor .agreement-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.agreement-editor .agreement-branches{grid-template-columns:repeat(2,minmax(0,1fr))}
.agreement-editor .agreement-choice{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line,#dbe4ee);border-radius:9px;padding:12px;cursor:pointer;min-width:0;background:var(--surface,#fff)}
.agreement-editor .agreement-choice:has(input:checked){border-color:var(--brand,#1584c8);background:var(--surface-soft,#edf6fc);box-shadow:inset 0 0 0 1px var(--brand,#1584c8)}
.agreement-editor input[type=radio],.agreement-editor input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none;margin:2px 0 0;accent-color:var(--brand,#1584c8)}
.agreement-editor .agreement-choice strong,.agreement-editor .agreement-choice small,.agreement-editor .agreement-result strong,.agreement-editor .agreement-result small{display:block;overflow-wrap:anywhere}.agreement-editor .agreement-choice strong{font-size:13px}.agreement-editor small{font-size:11px;color:var(--muted,#617486);line-height:1.4}.agreement-editor .agreement-choice small{margin-top:4px}
.agreement-editor .agreement-picker{border:1px solid var(--line,#dbe4ee);border-radius:9px;padding:12px;margin-top:10px}.agreement-editor [hidden]{display:none!important}.agreement-editor .agreement-picker-tools,.agreement-editor .agreement-pages{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.agreement-editor .agreement-only{display:flex;align-items:center;gap:6px;font-size:12px}.agreement-editor .agreement-results{max-height:212px;overflow:auto;margin:8px 0;border:1px solid var(--line,#dbe4ee);border-radius:6px}.agreement-editor .agreement-result{display:flex;align-items:flex-start;gap:10px;padding:10px;border-bottom:1px solid var(--line,#dbe4ee);cursor:pointer;font-size:13px}.agreement-editor .agreement-result:last-child{border-bottom:0}.agreement-editor .agreement-result:has(input:checked){background:var(--surface-soft,#edf6fc)}.agreement-editor .agreement-empty{padding:12px;margin:0}.agreement-editor .agreement-pages .btn{padding:5px 9px;font-size:12px}
.agreement-editor .agreement-summary{display:grid;gap:5px;background:var(--surface-soft,#f2f7fa);border:1px solid var(--line,#dbe4ee);border-radius:8px;padding:12px;font-size:13px}.agreement-editor .agreement-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;background:var(--surface,#fff);border-top:1px solid var(--line,#dbe4ee);padding:12px 22px}
@media(max-width:600px){.agreement-editor .agreement-head,.agreement-editor .agreement-body,.agreement-editor .agreement-footer{padding:12px}.agreement-editor .agreement-choices,.agreement-editor .agreement-branches{grid-template-columns:1fr}.agreement-editor .agreement-choice{padding:9px}.agreement-editor .agreement-footer .btn{flex:1}}
.agreement-editor .agreement-head{display:flex;flex-direction:row;justify-content:space-between;gap:12px}.agreement-editor .agreement-head>div{min-width:0}.agreement-editor .agreement-head button{flex:none;width:auto}

.pos-payment #pos-agreement{display:flex;align-items:center;gap:7px;width:100%;text-align:left;background:none;border:0;border-radius:5px;padding:5px 0 9px;color:var(--muted,#52687c);font:inherit;font-size:12px;cursor:pointer;overflow-wrap:anywhere}.pos-payment #pos-agreement:before{content:'%';font-weight:700}.pos-payment #pos-agreement:after{content:'›';margin-left:auto}.pos-payment #pos-agreement.is-applied{color:#14785f;font-weight:650}.pos-payment #pos-agreement[hidden]{display:none!important}.pos-payment #pos-payment-label{display:block}.agreement-pos-dialog .benefit-choices{display:grid;gap:6px;max-height:45vh;overflow:auto;margin:12px 0}.agreement-pos-dialog .benefit-option{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line,#dbe4ee);border-radius:8px;cursor:pointer}.agreement-pos-dialog .benefit-option[hidden]{display:none}.agreement-pos-dialog .benefit-option input{width:16px;height:16px;min-height:0;flex:none}.agreement-pos-dialog .benefit-option span{flex:1}.agreement-pos-dialog .benefit-option strong{color:#14785f}.agreement-pos-dialog .benefit-option:has(input:checked){background:#edf7f2;border-color:#16866e}
.gift-issue-dialog{width:min(700px,95vw);max-height:90dvh;padding:0;overflow:auto}.gift-issue-dialog [hidden]{display:none!important}.gift-head,.gift-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;background:var(--surface,#fff);position:sticky;z-index:2}.gift-head{top:0;border-bottom:1px solid var(--line,#dbe4ee)}.gift-head h3,.gift-head p{margin:0}.gift-footer{bottom:0;border-top:1px solid var(--line,#dbe4ee);justify-content:flex-end}.gift-body{padding:16px 22px;display:grid;gap:16px}.gift-body section{min-width:0}.gift-body h4{font-size:14px;margin:0 0 10px}.gift-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.gift-results{max-height:165px;overflow:auto;border:1px solid var(--line,#dbe4ee);border-radius:8px;padding:4px;min-height:40px}.gift-results>p{padding:6px;margin:0}.gift-invoice{display:flex;justify-content:space-between;align-items:center;gap:10px;background:transparent;border:0;border-bottom:1px solid var(--line,#dbe4ee);width:100%;text-align:left;padding:10px;font:inherit;color:inherit;cursor:pointer}.gift-invoice:hover,.gift-invoice:focus-visible{background:#eaf5fb}.gift-invoice strong,.gift-invoice small,.gift-selected small{display:block}.gift-invoice small,.gift-selected small{font-size:11px;color:var(--muted,#60758a);overflow-wrap:anywhere}.gift-invoice b{white-space:nowrap}.gift-pages{display:flex;justify-content:space-between;margin:6px 0}.gift-pages button{font-size:11px;padding:4px 8px}.gift-selected,.gift-summary{padding:12px;border:1px solid #c9ded8;background:#edf6f2;border-radius:8px}.gift-summary>div{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-top:6px}.gift-mismatch{color:#a33528}.gift-selected small{margin-top:4px}@media(max-width:600px){.gift-head,.gift-body,.gift-footer{padding:12px}.gift-grid{grid-template-columns:1fr 1fr}.gift-grid>.field:last-child{grid-column:1/-1}.gift-footer button{flex:1}.gift-invoice{padding:8px}}

.gift-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.gift-contract-form{margin-top:20px;padding-top:18px;border-top:1px solid var(--line,#dbe4ee)}@media(max-width:900px){.gift-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gift-card-preview{display:grid;gap:8px;background:#16364e;color:#fff;padding:22px;border-radius:12px}.gift-card-preview.holiday{background:#852c3b}.gift-card-preview small{letter-spacing:2px;color:#e9c675}.gift-card-preview strong{font-size:30px}.gift-card-preview span{font-size:12px}
.gift-delivery-list{display:grid;gap:8px;max-height:44dvh;overflow:auto}.gift-delivery-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;align-items:center;padding:10px;border:1px solid #dbe4ed;border-radius:8px}.gift-delivery-row span{display:grid;gap:3px}.gift-delivery-row small{color:#64748b}.gift-delivery-row [data-result]{grid-column:1/-1}.gift-issue-dialog input[type=color]{min-height:40px;padding:4px}.gift-issue-dialog details{margin-top:10px}.gift-issue-dialog details summary{cursor:pointer;color:#24678a;font-weight:600}
@media(max-width:520px){.gift-delivery-row{grid-template-columns:1fr}}

/* Licencia de vales: tarjeta comercial compacta, independiente del formulario SIAT. */
.mx305-addons .gift-contract-form{border:1px solid var(--line,#dbe4ee);border-radius:12px;padding:0;margin:18px 0 0;overflow:hidden;display:block;background:var(--surface,#fff)}
.gift-contract-head{display:flex;align-items:center;gap:12px;padding:16px;background:#f1f7fc;color:#17364e;border-bottom:1px solid #dbe4ee}.gift-contract-head h3,.gift-contract-head p{margin:0!important}.gift-contract-head p{font-size:12px;margin-top:4px!important;color:#50677d}.gift-contract-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:10px;background:#dceeff;color:#087cc1}.gift-contract-state{margin-left:auto;border-radius:20px;background:#e7edf3;color:#415970;padding:5px 10px;font-size:12px;font-weight:650;white-space:nowrap}.gift-contract-state.active{background:#dff2e8;color:#17633c}.gift-contract-state.expired{background:#fff0d4;color:#815400}.gift-contract-body{padding:16px;display:grid;gap:12px}.gift-contract-section{display:grid;gap:8px}.gift-contract-section h4{margin:0!important;font-size:14px}.gift-contract-toggle,.gift-contract-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line,#dbe4ee);border-radius:8px;padding:10px;margin:0!important;cursor:pointer}.gift-contract-toggle input,.gift-contract-choice input{width:16px!important;height:16px!important;min-height:0!important;margin:2px 0 0!important;flex:none}.gift-contract-toggle span,.gift-contract-choice span{display:grid;gap:3px}.gift-contract-toggle small,.gift-contract-choice small{font-size:12px;color:var(--muted,#52687c)}.gift-contract-choice:has(input:checked),.gift-contract-toggle:has(input:checked){border-color:#1687cf;background:#edf7ff}.gift-contract-choice:has(input:disabled){opacity:.65;cursor:not-allowed}.gift-contract-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gift-contract-grid .field{margin:0!important}.gift-contract-section p{margin:0!important}.gift-contract-note{display:grid;gap:4px;background:#edf6f2;color:#245b49;border-radius:8px;padding:10px;font-size:12px}.gift-contract-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line,#dbe4ee)}.gift-contract-form>p[role=alert]{margin:0;padding:0 16px;color:#a33528}.gift-contract-form>p[role=alert]:empty{display:none}@media(max-width:600px){.gift-contract-head{flex-wrap:wrap}.gift-contract-state{margin-left:0}.gift-contract-grid{grid-template-columns:1fr}.gift-contract-footer{flex-wrap:wrap}}
/* V20.557: módulo de vales, sin el límite genérico de 480px de client-dialog. */
.client-dialog.gift-issue-dialog{max-width:min(760px,calc(100vw - 32px));width:calc(100vw - 32px);padding:0}.client-dialog.gift-issue-wide{max-width:min(1060px,calc(100vw - 32px));width:calc(100vw - 32px)}.gift-issue-wide .gift-body{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:22px}.gift-issue-column{display:grid;gap:16px;min-width:0}.gift-issue-column>section{border:1px solid var(--line,#dbe4ee);border-radius:10px;padding:14px}.gift-issue-wide .gift-full{grid-column:1/-1}.gift-issue-wide .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-issue-wide .gift-grid>.field:last-child{grid-column:1/-1}.gift-mode-section{margin:18px 0}.gift-mode-section h3{font-size:15px;margin:0 0 10px}.gift-mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.gift-mode-card{display:grid;gap:8px;text-align:left;align-content:start;padding:16px;background:var(--surface,#fff);color:inherit;border:1px solid var(--line,#dbe4ee);border-radius:12px;font:inherit;cursor:pointer}.gift-mode-card:hover,.gift-mode-card:focus-visible{border-color:#1687cf;background:#f4faff}.gift-mode-card strong{font-size:15px}.gift-mode-card small{color:var(--muted,#52687c);font-size:12px;line-height:1.4}.gift-mode-icon{display:grid;place-items:center;width:36px;height:36px;background:#e3f2ff;color:#087cc1;border-radius:9px}.gift-mode-action{font-size:12px;font-weight:650;color:#087cc1}.gift-tabs{margin:18px 0 10px}.gift-issue-wide [data-pos]{margin-top:10px}.gift-issue-wide .checkline{align-items:flex-start}.gift-issue-wide .gift-summary{background:#f0f7fb;border-color:#cbddeb}.gift-issue-wide input[type=file]{max-width:100%}@media(max-width:760px){.gift-issue-wide .gift-body{grid-template-columns:1fr;gap:12px}.gift-issue-column>section{padding:10px}.gift-mode-grid{grid-template-columns:1fr}.client-dialog.gift-issue-dialog{max-width:calc(100vw - 20px);width:calc(100vw - 20px)}}


/* Gift card template redesign */
.gift-template-preview{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) 170px;grid-template-rows:auto 1fr auto;gap:14px;min-height:260px;padding:22px;border-radius:18px;overflow:hidden;background:var(--gift-bg,#16364e);color:var(--gift-text,#fff);box-shadow:0 18px 48px rgba(16,38,59,.18)}
.gift-template-preview::before{content:'';position:absolute;inset:0;background-image:var(--gift-bg-image,none);background-size:cover;background-position:center;opacity:1;z-index:0}
.gift-template-preview .gift-template-overlay{position:absolute;inset:0;background:linear-gradient(135deg,color-mix(in srgb,var(--gift-bg,#16364e) 80%,transparent),color-mix(in srgb,var(--gift-panel,#0f2940) 72%,transparent));opacity:var(--gift-overlay,.62);z-index:0}
.gift-template-preview>*{position:relative;z-index:1}
.gift-template-copy{display:grid;align-content:start;gap:10px;padding:16px;border-radius:16px;background:color-mix(in srgb,var(--gift-panel,#0f2940) 88%,transparent);backdrop-filter:blur(3px);min-height:170px}
.gift-template-chip{display:inline-flex;align-items:center;justify-content:center;max-width:max-content;padding:6px 12px;border-radius:999px;background:var(--gift-accent,#e9c675);color:#102638;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.gift-template-company{font-size:20px;font-weight:800;line-height:1.2}
.gift-template-amount{font-size:44px;font-weight:900;letter-spacing:-.03em;line-height:1}
.gift-template-beneficiary,.gift-template-meta{font-size:13px;opacity:.95}
.gift-template-side{display:grid;grid-template-columns:1fr;gap:12px;align-content:center}
.gift-template-qr{display:grid;place-items:center;height:88px;border-radius:14px;background:#fff;color:#102638;font-size:12px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(16,38,59,.1)}
.gift-template-qr.secondary{background:#f8fafc}
.gift-template-foot{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;font-size:11px;opacity:.95;padding:10px 14px;border-radius:12px;background:color-mix(in srgb,var(--gift-panel,#0f2940) 82%,transparent)}
@media(max-width:760px){.gift-template-preview{grid-template-columns:1fr;min-height:unset}.gift-template-side{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-template-amount{font-size:36px}.gift-template-foot{flex-direction:column}}

/* V20.562: keep secondary POS payment methods inside the cashier panel. */
#page .pos-workspace .pos-payment,#page .pos-payment #sale-form,#page .pos-payment .pos-payment-other{min-width:0;max-width:100%;box-sizing:border-box}
#page .pos-payment .pos-payment-other>.form-actions{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;gap:6px;width:100%;max-width:100%;min-width:0;margin:8px 0 10px;padding:0;box-sizing:border-box}
#page .pos-payment .pos-payment-other>.form-actions>.btn{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;margin:0;min-height:36px;text-align:center;line-height:1.25;padding:8px 10px}
#page .pos-payment .pos-payment-other>.form-actions>.btn[hidden]{display:none!important}
#page .pos-payment .pos-payment-other>.form-actions>.btn[aria-pressed="true"]{border-color:#128065;background:#eaf8f1;color:#075840;box-shadow:inset 0 0 0 1px #128065}
@media(max-width:760px){#page .pos-payment .pos-payment-other>.form-actions>.btn{min-height:44px}}
/* V20.563 · fixed-layout voucher studio */
.gift-print-studio{width:min(820px,96vw);max-height:92vh}.gift-template-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0}.gift-template-tile{display:flex;flex-direction:column;justify-content:center;align-items:start;min-height:72px;border:2px solid transparent;border-radius:9px;background:var(--voucher-color);color:white;padding:12px;cursor:pointer;text-align:left}.gift-template-tile span{font-weight:700}.gift-template-tile i{font-size:9px;font-style:normal;letter-spacing:1px;margin-top:7px;opacity:.85}.gift-template-tile.selected{outline:2px solid var(--primary,#169f75);outline-offset:2px}.gift-voucher-sample{aspect-ratio:2.25;display:grid;grid-template-columns:27% 73%;gap:0;padding:2%;border-radius:8px;background-size:cover;background-position:center;margin:12px 0;overflow:hidden;color:#fff}.gift-voucher-sample aside{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;padding:8px;font-size:clamp(10px,2vw,16px)}.gift-voucher-sample aside span{font-size:9px}.gift-voucher-sample section{display:flex;flex-direction:column;background:white;color:#23363d;border-radius:6px;padding:3%;gap:3px;overflow:hidden}.gift-voucher-sample section small{align-self:flex-end;font-size:9px}.gift-voucher-sample section b{font-size:clamp(11px,2vw,19px)}.gift-voucher-sample section strong{font-size:clamp(15px,3vw,28px);color:#164b3b;align-self:flex-end}.gift-voucher-sample section span{font-size:clamp(7px,1.2vw,11px)}.gift-voucher-sample section i{font-style:normal;font-size:9px;letter-spacing:1px}.gift-print-studio [hidden]{display:none!important}

/* Fixed corporate voucher geometry: display only the real generated PDF. */
.gift-print-studio{box-sizing:border-box;max-width:calc(100vw - 24px);overflow-x:hidden}.gift-print-studio .gift-body{min-width:0;overflow-x:hidden}.gift-voucher-real{display:block;min-height:100px;aspect-ratio:2.25;overflow:hidden;background:#edf1f5;border:1px solid #dce3df;border-radius:8px;margin:12px 0;padding:8px;box-sizing:border-box}.gift-voucher-real canvas{display:block;width:100%;height:100%;object-fit:contain}.gift-voucher-real p{padding:12px;text-align:center}.gift-template-tile{background:linear-gradient(100deg,var(--voucher-color) 0%,var(--voucher-color) 34%,#d6b557 34.5%,#f9f8ef 35%,#fffef8 100%);color:#203b35;min-width:0;position:relative;padding:12px 8px 12px 40%;min-height:72px}.gift-template-tile span{font-size:12px;line-height:1.2}.gift-template-tile i{font-size:7px;letter-spacing:.2px;color:#53665c}.gift-template-tile::before{content:'◆';color:#fff;position:absolute;left:12%;top:25%;font-size:20px}.gift-template-tile.selected{outline-offset:1px}
/* V20.564 · pedido corporativo en dos pasos, sin caja para pagos electrónicos */
.client-dialog.gift-commercial{width:min(590px,calc(100vw - 24px));max-width:min(590px,calc(100vw - 24px));overflow-x:hidden}.gift-commercial .gift-body{gap:12px}.gift-stepper{display:flex;gap:8px;border-bottom:1px solid var(--line,#dbe4ee);padding-bottom:10px}.gift-stepper span{flex:1;text-align:center;padding:8px;border-radius:7px;font-size:12px;background:var(--surface-secondary,#edf1f5);color:var(--muted,#52687c)}.gift-stepper span.current{background:#e1f2e9;color:#145b3d;font-weight:700}.gift-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gift-quick-amounts{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}.gift-quick-amounts button{flex:1;min-width:45px;padding:6px}.gift-customer-line{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:6px 0 12px}.gift-customer-line span{overflow-wrap:anywhere;min-width:0}.gift-commercial .gift-results{max-height:160px}.gift-commercial .gift-summary{margin-top:2px}.gift-commercial .gift-summary>div{margin:0;align-items:center}.gift-commercial .gift-summary strong{font-size:22px}.gift-commercial [data-order-summary]{margin-bottom:12px}.gift-commercial details{margin-top:12px;padding:10px;border:1px solid var(--line,#dbe4ee);border-radius:8px}.gift-commercial .gift-footer{flex-wrap:wrap}.gift-commercial .field{min-width:0}.gift-commercial [data-physical-cash] select{max-width:100%}
/* V20.565 · impresión de lotes y administración de plantillas separadas */
.client-dialog.gift-print-only,.client-dialog.gift-template-manager{width:min(740px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:94dvh;overflow-x:hidden}
.gift-print-only .gift-body,.gift-template-manager .gift-body{gap:10px;padding:16px 22px;min-width:0}
.gift-print-meta{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:8px 0;color:var(--muted,#52687c);border-bottom:1px solid var(--line,#dbe4ee)}.gift-print-meta strong{color:var(--text,#1f3342)}
.gift-print-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gift-print-choices .field{min-width:0;margin:0}.gift-print-choices select{width:100%}
.gift-print-only .gift-voucher-real,.gift-template-manager .gift-voucher-real{margin:2px 0;display:grid;place-items:center;min-height:80px;padding:8px;aspect-ratio:2.25}.gift-print-only .gift-voucher-real canvas,.gift-template-manager .gift-voucher-real canvas{max-width:100%;width:100%;height:auto;display:block;object-fit:contain}
.gift-template-manager .gift-template-options{margin:0;padding:12px;border:1px solid var(--line,#dbe4ee);border-radius:8px}.gift-template-manager .gift-template-options[open] summary{margin-bottom:12px}.gift-template-manager .gift-template-options .form-actions{flex-wrap:wrap}.gift-print-only .gift-footer,.gift-template-manager .gift-footer{flex-wrap:wrap}.gift-print-only .tiny,.gift-template-manager .tiny{margin:0}
@media(max-width:520px){.gift-print-only .gift-body,.gift-template-manager .gift-body{padding:12px}.gift-print-choices{grid-template-columns:1fr}.gift-print-meta{flex-wrap:wrap}}
/* V20.578: una tabla y un único desplazamiento; estados persistentes por canal. */
.client-dialog.gift-dispatch-dialog{width:min(960px,calc(100vw - 24px));max-width:min(960px,calc(100vw - 24px));max-height:86dvh;overflow:hidden}.gift-dispatch-dialog[open]{display:flex;flex-direction:column}.gift-dispatch-dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.gift-dispatch-tools{padding:12px 20px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line,#dbe4ee)}.gift-dispatch-tools>[data-count]{margin-right:auto}.gift-dispatch-tools select{font-size:12px;padding:5px 8px;min-height:32px}.gift-dispatch-tools .btn{font-size:12px;padding:7px 10px}.gift-dispatch-scroll{overflow:auto;padding:0 20px;min-height:0}.gift-dispatch-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.gift-dispatch-table th{position:sticky;top:0;background:var(--surface,#fff);z-index:1;text-align:left;padding:10px 8px;color:var(--muted,#64748b);border-bottom:1px solid var(--line,#dbe4ee)}.gift-dispatch-table th:first-child{width:24%}.gift-dispatch-table td{padding:9px 8px;vertical-align:middle;border-bottom:1px solid var(--line,#dbe4ee);overflow-wrap:anywhere}.gift-dispatch-table td>small{display:block;font-size:11px;color:var(--muted,#64748b);margin-top:3px}.gift-dispatch-table input{width:100%;min-width:0;min-height:34px;font-size:13px;padding:6px 8px}.gift-send-status{display:inline-block;font-size:11px;font-weight:650;padding:3px 7px;border-radius:5px;line-height:1.35;background:#f1f5f9;color:#475569}.gift-send-status.is-sent{background:#e5f5eb;color:#166534}.gift-send-status.is-queued{background:#fff4d5;color:#854d0e}.gift-send-status.is-review{background:#fff1ed;color:#a33d26}.gift-send-legacy{font-size:11px!important;padding:4px 7px!important;margin-top:4px}.gift-dispatch-footer{justify-content:space-between;align-items:center;padding:12px 20px;flex-shrink:0}.gift-dispatch-footer>div{min-width:0}.gift-dispatch-footer small{display:block;max-width:600px;max-height:64px;overflow:auto;font-size:11px;color:var(--muted,#64748b);overflow-wrap:anywhere}.gift-dispatch-footer .checkline{margin:0;font-size:12px}.gift-dispatch-scroll>[data-empty]{text-align:center;padding:20px 0}@media(max-width:600px){.gift-dispatch-tools,.gift-dispatch-scroll,.gift-dispatch-footer{padding-left:10px;padding-right:10px}.gift-dispatch-table th,.gift-dispatch-table td{padding:7px 4px}.gift-dispatch-table th:first-child{width:25%}.gift-dispatch-table input{font-size:12px}.gift-dispatch-footer{gap:8px}.gift-dispatch-footer button{flex:0 0 auto}}
/* V20.580 · distribución masiva: paneles exclusivos y pie compacto. */
.gift-dispatch-580{width:min(1080px,calc(100vw - 24px))!important;max-width:min(1080px,calc(100vw - 24px))!important;max-height:90dvh!important}.gift-dispatch-580 form{min-height:0;display:flex;flex-direction:column;overflow:hidden}.gift-mass-top{padding:12px 16px 8px;display:grid;gap:10px}.gift-mass-metrics{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--muted,#667085)}.gift-mass-metrics b{font-size:17px;color:var(--text,#26374d)}.gift-mass-metrics .gift-metric-ok b{color:#16805a}.gift-mass-metrics .gift-metric-error b{color:#b42318}.gift-mass-tabs{display:flex;flex-wrap:wrap;gap:6px}.gift-mass-panel{padding:0 16px;overflow:auto;min-height:0;flex:1}.gift-mass-panel[hidden],.gift-mass-paste[hidden]{display:none!important}.gift-dispatch-580 .gift-dispatch-tools{gap:8px;flex-wrap:wrap;padding:8px 0}.gift-mass-table th:nth-child(1){width:17%}.gift-mass-table th:nth-child(2){width:24%}.gift-mass-table th:nth-child(3){width:25%}.gift-mass-table th:nth-child(4){width:34%}.gift-mass-table input{width:100%;min-width:100px}.gift-mass-table td{vertical-align:middle}.gift-row-error{color:#b42318!important;white-space:normal!important}.gift-mass-paste{border:1px solid var(--line,#dce3e9);padding:10px;border-radius:8px;margin:4px 0 8px}.gift-message-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:18px;padding:8px 0 16px}.gift-message-edit textarea{width:100%;min-height:200px;resize:vertical;line-height:1.5}.gift-emoji-tools{display:flex;gap:4px;flex-wrap:wrap;margin:7px 0}.gift-emoji-tools .btn{padding:5px 8px;font-size:12px;min-height:28px}.gift-wa-preview{background:#e8e1d7;color:#21312d;border-radius:12px;padding:12px;min-height:180px;align-self:start;max-width:360px}.gift-wa-bubble{background:#fff;border-radius:10px;padding:5px;box-shadow:0 1px 2px #0002}.gift-wa-bubble img{display:block;width:100%;border-radius:7px}.gift-wa-caption{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.5 system-ui,sans-serif;padding:10px 8px;color:#111b21}.gift-wa-bubble small{display:block;color:#6b777d;text-align:right;padding:0 8px 4px;font-size:10px}.gift-mass-footer{padding:10px 16px 12px;border-top:1px solid var(--line,#dce3e9);display:grid;gap:10px;flex-shrink:0}.gift-mass-send-options,.gift-mass-footer-row{display:flex;gap:10px 16px;align-items:center;flex-wrap:wrap}.gift-mass-send-options label{display:flex;gap:6px;align-items:center}.gift-mass-send-options input[type=datetime-local]{max-width:185px}.gift-mass-footer-row{justify-content:space-between}.gift-mass-footer-row>div{flex:1;min-width:180px}.gift-mass-footer-row small{display:block;max-width:780px;color:var(--muted,#63748a);overflow-wrap:anywhere}.gift-dispatch-580 [data-tracking] td{vertical-align:top}.gift-dispatch-580 .gift-send-recipient{white-space:normal;overflow-wrap:anywhere}.gift-dispatch-580 [data-panel=contacts] .gift-dispatch-scroll,.gift-dispatch-580 [data-panel=queue] .gift-dispatch-scroll{max-height:45dvh;overflow:auto}@media(max-width:650px){.gift-message-layout{grid-template-columns:1fr}.gift-mass-panel{padding:0 10px}.gift-mass-top,.gift-mass-footer{padding:10px}.gift-mass-table{min-width:680px}.gift-mass-footer-row>button{width:100%}.gift-mass-send-options{gap:6px 10px}.gift-mass-tabs .btn{font-size:12px;padding:6px 8px}}
/* V20.592: studio with an actual server-rendered wallet beside the controls. */
.client-dialog.gift-wallet-studio{width:min(1050px,calc(100vw - 24px));max-width:min(1050px,calc(100vw - 24px));max-height:92dvh;overflow:hidden}.gift-wallet-studio form{display:flex;flex-direction:column;min-height:0;max-height:calc(92dvh - 76px);overflow:hidden}.gift-wallet-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);min-height:0;overflow:hidden;gap:0}.gift-wallet-controls,.gift-wallet-preview-column{min-width:0;overflow:auto;padding:18px 22px;max-height:65dvh}.gift-wallet-controls{display:flex;flex-direction:column;gap:14px}.gift-wallet-option{display:grid;gap:8px;border:1px solid var(--line,#dce3e9);border-radius:10px;padding:12px}.gift-wallet-option .field{margin:0}.gift-wallet-option .btn{justify-self:start}.gift-wallet-art{min-height:44px;background:#f3f5f8;color:#596a80;border-radius:7px;padding:8px;text-align:center;font-size:12px;overflow:hidden}.gift-wallet-art img{display:block;max-width:100%;max-height:100px;object-fit:contain;margin:auto}.gift-wallet-preview-column{background:#eef2f6;border-left:1px solid var(--line,#dce3e9)}.gift-wallet-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}.gift-wallet-live{min-height:250px;max-width:470px;margin:auto;border:1px solid #dce3ea;border-radius:12px;overflow:hidden;background:#f1f3f6}.gift-wallet-studio .gift-footer{flex-shrink:0}.gift-wallet-studio [data-status]{overflow-wrap:anywhere}.gift-distribution-preview{min-width:0}.gift-distribution-preview .gift-wa-preview{max-width:none}.gift-wallet-controls output{font-weight:700;margin-left:8px}.gift-wallet-controls input[type=range]{width:100%}@media(max-width:760px){.gift-wallet-studio form{overflow:auto;max-height:calc(92dvh - 76px)}.gift-wallet-workspace{display:block;overflow:visible}.gift-wallet-controls,.gift-wallet-preview-column{max-height:none;overflow:visible;padding:14px}.gift-wallet-preview-column{border-left:0;border-top:1px solid var(--line,#dce3e9)}.gift-wallet-studio .gift-footer{position:sticky;bottom:0;z-index:2}}

