:root{--bg:#f4f6f8;--card:#fff;--ink:#17191d;--muted:#69707d;--line:#dfe3e8;--primary:#111827;--accent:#2563eb;--green:#15803d;--red:#b91c1c;--orange:#c2410c;--purple:#7e22ce;--shadow:0 10px 30px rgba(16,24,40,.08);--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login-view{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef2f7,#dbe5f4)}.login-card{width:min(420px,92vw);background:#fff;border-radius:24px;padding:36px;box-shadow:0 30px 70px rgba(0,0,0,.12)}.login-card h1{margin:14px 0 6px}.login-card p{color:var(--muted);margin:0 0 24px}.login-card label{display:block;margin:14px 0}.login-card input{margin-top:6px}.brandmark{width:64px;height:64px;border-radius:18px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px}.brandmark.small{width:40px;height:40px;border-radius:12px;font-size:16px}.app-shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{background:#111827;color:#fff;padding:22px 14px;display:flex;flex-direction:column;gap:18px;position:fixed;left:0;top:0;bottom:0;width:240px}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px}.sidebar-brand small{display:block;color:#94a3b8;margin-top:2px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:12px 14px;border-radius:10px;cursor:pointer;font-weight:650}.sidebar nav button:hover,.sidebar nav button.active{background:#253047;color:#fff}.server-badge{margin-top:auto;font-size:12px;color:#cbd5e1;padding:10px}.dot{display:inline-block;width:9px;height:9px;background:#22c55e;border-radius:50%;margin-right:7px}.main{grid-column:2;padding:0 28px 40px;min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between}.topbar h2{margin:0}.top-actions{display:flex;align-items:center;gap:10px}.pill{background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:999px;font-size:13px}.ghost,.link{background:transparent;border:0;color:#475569;cursor:pointer}.section{display:none}.section.active{display:block}.hero{background:linear-gradient(135deg,#111827,#334155);color:#fff;padding:28px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h1{margin:0 0 8px}.hero p{margin:0;color:#cbd5e1}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.metric .value{font-size:25px;font-weight:850;margin-top:5px}.metric .label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 1px 0 rgba(0,0,0,.02)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.card h3{margin:0 0 10px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.toolbar input{min-width:260px}.spacer{flex:1}.button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button,.button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700}.primary{background:var(--primary);color:#fff}.secondary{background:#eef2f7;color:#263041;border:1px solid #d7dee7}.danger{background:#b91c1c;color:#fff}.green{background:#15803d;color:#fff}.big{padding:13px 18px}.full{width:100%}input,select,textarea{width:100%;border:1px solid #cfd6df;border-radius:10px;padding:10px 12px;background:#fff;color:#111827}label{font-size:13px;font-weight:650;color:#344054;display:block;margin-bottom:12px}label input,label select,label textarea{margin-top:6px;font-weight:400}.inline{display:flex;gap:8px;align-items:center}.inline input{flex:1}.muted{color:var(--muted)}.tiny{font-size:12px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:11px 12px;border-bottom:1px solid #edf0f3;text-align:left;vertical-align:middle;font-size:13px}th{background:#f8fafc;color:#475569;font-size:11px;text-transform:uppercase;letter-spacing:.04em}tbody tr:hover{background:#fbfcfd}.status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:750;background:#eef2ff;color:#3730a3}.status.Listo{background:#dcfce7;color:#166534}.status.Entregado{background:#e2e8f0;color:#334155}.status.Producción{background:#fef3c7;color:#92400e}.status.Pausado{background:#fee2e2;color:#991b1b}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions button{padding:7px 9px;font-size:12px}.order-mini{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f3}.order-mini:last-child{border-bottom:0}.cash-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.cash-value{font-size:28px;font-weight:900;text-align:right}.cash-buttons{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-bottom:16px}.cash-btn{min-height:78px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px}.cash-btn.start{background:#0f766e}.cash-btn.entry{background:#2563eb}.cash-btn.expense{background:#c2410c}.cash-btn.charge{background:#15803d}.cash-btn.sale{background:#0f766e}.cash-btn.discount{background:#7e22ce}.cash-btn.close{background:#b91c1c}kbd{background:rgba(255,255,255,.18);padding:4px 7px;border-radius:6px}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.report-card p{color:var(--muted);min-height:38px}.tabs{display:flex;gap:6px;margin-bottom:14px}.tabs button{background:#e8edf3;color:#334155}.tabs button.active{background:#111827;color:#fff}.tab-panel{display:none}.tab-panel.active{display:block}.logo-preview{height:130px;border:2px dashed #d5dbe4;border-radius:14px;display:grid;place-items:center;margin:12px 0;background:#fafbfc}.logo-preview img{max-width:90%;max-height:100px;object-fit:contain}.network-list{display:grid;gap:10px;margin-top:16px}.network-url{padding:12px 14px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;font-family:Consolas,monospace}.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:grid;place-items:center;padding:22px;z-index:100}.modal-box{width:min(780px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-head h2{margin:0}.icon-btn{width:36px;height:36px;border-radius:50%;background:#eef2f7;font-size:22px;padding:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.permission-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.permission-grid label{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border:1px solid #e4e7ec;border-radius:8px}.permission-grid input{width:auto;margin:0}#toast{position:fixed;right:20px;bottom:20px;z-index:200;display:grid;gap:8px}.toast{background:#111827;color:#fff;padding:12px 14px;border-radius:10px;box-shadow:var(--shadow);max-width:360px}.toast.error{background:#991b1b}.toast.ok{background:#166534}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.cash-buttons{grid-template-columns:repeat(3,1fr)}}@media(max-width:820px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto}.sidebar nav{grid-template-columns:repeat(4,1fr)}.server-badge{display:none}.main{padding:0 14px 30px}.grid-2,.report-grid{grid-template-columns:1fr}.cash-buttons{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.sidebar nav button{padding:9px;font-size:12px}.metrics{grid-template-columns:1fr 1fr}}

.sale-lines{display:grid;gap:10px;margin:10px 0 14px}
.sale-line{display:grid;grid-template-columns:minmax(220px,2fr) 90px 120px 42px;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}
.sale-total{font-size:24px;font-weight:900;text-align:right;margin:10px 0}
@media(max-width:1000px){.cash-buttons{grid-template-columns:repeat(3,1fr)}.sale-line{grid-template-columns:1fr 80px 110px 42px}}

.wa-button{border:0;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer;background:#16a34a;color:white;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.wa-button:hover{filter:brightness(.95)}
.notice{padding:12px 14px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;margin:12px 0;line-height:1.45}

.work-panel{display:none}.work-panel.active{display:block}.work-tabs{margin-bottom:14px}.quote-lines{display:grid;gap:8px;margin:10px 0}.quote-line{display:grid;grid-template-columns:minmax(140px,2fr) 90px 125px 100px 40px;gap:8px;align-items:end;padding:9px;border:1px solid var(--line);border-radius:10px}.quote-total{text-align:right;font-size:22px;font-weight:800;margin:10px 0}@media(max-width:760px){.quote-line{grid-template-columns:1fr 80px 120px}.quote-line .quote-line-amount{grid-column:1/3}}

.quote-settings-note{font-size:12px;color:#64748b}

.quote-preview-wrap{display:flex;justify-content:center;padding:8px 0;max-height:72vh;overflow:auto;background:#eef2f7}
.quote-preview-sheet{width:8.5in;max-width:8.5in;min-height:11in;background:#fff;color:#111;padding:.75in;box-shadow:0 8px 26px rgba(15,23,42,.12);font-family:Arial,sans-serif;font-size:12px;overflow:hidden}
.qp-topbar{height:12px;background:#000;width:58%;margin:0 0 18px 0}
.qp-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.qp-brand{display:flex;gap:14px;align-items:center}.qp-logo{width:86px;max-height:62px;object-fit:contain}.qp-business-text{line-height:1.3;font-size:12px}.qp-meta{min-width:250px}.qp-title{font-size:20px;font-weight:800;font-style:italic;margin-bottom:10px}.qp-meta-grid{display:grid;grid-template-columns:110px 1fr;gap:3px 8px;font-size:12px}.qp-client-box{border:2px solid #111;padding:10px;margin:24px 0 14px auto;max-width:320px;line-height:1.35}.qp-client-title{font-weight:800;margin-bottom:8px}.qp-table{width:100%;max-width:100%;min-width:0!important;border-collapse:collapse;table-layout:fixed;font-size:12px}.qp-table thead th{background:#000;color:#fff;text-align:left;padding:6px;border:1px solid #000}.qp-table td{border:1px solid #222;padding:6px;vertical-align:top;height:22px;overflow-wrap:anywhere;word-break:break-word}.qp-totals{margin:8px 0 0 auto;width:230px}.qp-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:2px 0}.qp-totals>div>span{text-align:right}.qp-totals>div>b{text-align:right;white-space:nowrap}.qp-totals .total{font-weight:800;font-size:14px}.qp-bottom{margin-top:18px;line-height:1.45}.qp-payment,.qp-important,.qp-notes{margin-top:12px}.qp-important{font-weight:700}

.quote-commandbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.quote-commandbar button{min-height:38px;font-size:12px;font-weight:800;letter-spacing:.02em}
.quote-commandbar button:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.35)}
.quote-searchbar{margin-bottom:10px}
#quotesBody tr{cursor:pointer;transition:background .12s ease,box-shadow .12s ease}
#quotesBody tr:hover{background:#f8fafc}
#quotesBody tr.selected-row{background:#e8f0ff!important;box-shadow:inset 4px 0 0 #1d4ed8}

.dgii-card{border:1px solid var(--line);border-left:5px solid #64748b;border-radius:12px;padding:12px;background:#fff;display:grid;gap:8px}.dgii-card.good{border-left-color:#16a34a}.dgii-card.bad{border-left-color:#dc2626}.dgii-card>div{display:grid;grid-template-columns:150px 1fr;gap:12px}.dgii-card span{color:#64748b}.rnc-ok{color:#15803d;font-weight:800}.rnc-warn{color:#b45309;font-weight:700}.notice.error{border-color:#fecaca;background:#fef2f2;color:#991b1b}

/* Editor visual de cotizaciones */
.quote-format-editor{border:1px solid var(--line);border-radius:14px;padding:16px;background:#f8fafc;margin-top:6px}
.quote-format-mini-preview{margin-top:14px;max-height:520px;overflow:auto;background:#e5e7eb;padding:14px;border-radius:12px}
.quote-format-mini-preview .quote-preview-sheet{transform:scale(.52);transform-origin:top left;margin-bottom:-5.1in}
.quote-preview-sheet{color:var(--qp-text,#111)!important}
.quote-preview-sheet .qp-topbar{background:var(--qp-primary,#000)!important}
.quote-preview-sheet .qp-title{color:var(--qp-primary,#000)}
.quote-preview-sheet .qp-client-box{border-color:var(--qp-primary,#000)!important}
.quote-preview-sheet .qp-table thead th{background:var(--qp-table,#000)!important;color:#fff!important}
.quote-preview-sheet[data-striped="true"] .qp-table tbody tr:nth-child(even) td{background:var(--qp-secondary,#e5e7eb)}
.quote-preview-sheet[data-client-style="relleno"] .qp-client-box{background:var(--qp-secondary,#e5e7eb);border-color:transparent!important}
.quote-preview-sheet[data-client-style="linea"] .qp-client-box{border:0!important;border-top:3px solid var(--qp-primary,#000)!important}
.quote-preview-sheet.qp-style-moderno .qp-topbar{width:100%;height:10px}
.quote-preview-sheet.qp-style-moderno .qp-title{font-style:normal;letter-spacing:.04em}
.quote-preview-sheet.qp-style-minimalista .qp-topbar{width:100%;height:2px}
.quote-preview-sheet.qp-style-minimalista .qp-client-box{border-width:1px}
.quote-preview-sheet.qp-style-minimalista .qp-table thead th{background:#fff!important;color:var(--qp-primary,#000)!important;border-top:2px solid var(--qp-primary,#000)!important;border-bottom:2px solid var(--qp-primary,#000)!important}
.quote-preview-sheet.qp-style-corporativo .qp-topbar{width:70%;height:12px;box-shadow:calc(30% + 8px) 0 0 var(--qp-secondary,#e5e7eb)}
.quote-preview-sheet.qp-style-corporativo .qp-title{font-style:normal;text-transform:uppercase}

.inline-map-field{display:flex;gap:8px;align-items:center}.inline-map-field input{flex:1}.inline-map-field button{white-space:nowrap}.qp-official-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:18px;align-items:start;border-top:10px solid var(--qp-primary);padding-top:14px;max-width:100%}.qp-issuer{display:flex;gap:12px;line-height:1.35;min-width:0;overflow-wrap:anywhere;word-break:break-word}.qp-document{border-left:4px solid var(--qp-primary);padding-left:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere;word-break:break-word}.qp-client-official{border:2px solid var(--qp-primary);padding:10px;margin:18px 0 12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.qp-map-note{font-size:10px;margin-top:4px}.qp-official-table td{height:23px}.qp-footer{margin-top:18px;font-size:10px;font-style:italic}
.shipping-cost{font-size:34px;font-weight:800;margin-bottom:10px}.dgii-result p{margin:7px 0}

@media print{
  @page{size:Letter;margin:0}
  html,body{width:8.5in!important;margin:0!important;padding:0!important;background:#fff!important}
  .quote-preview-wrap{display:block!important;padding:0!important;margin:0!important;max-height:none!important;overflow:visible!important;background:#fff!important}
  .quote-preview-sheet{width:8.5in!important;max-width:8.5in!important;min-height:11in!important;margin:0!important;padding:.75in!important;box-shadow:none!important;overflow:hidden!important}
}

.shipping-card{max-width:1120px}.shipping-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;align-items:stretch}.shipping-form-pane,.shipping-result-pane{min-width:0}.shipping-result-pane{border-left:1px solid var(--line);padding-left:20px}.shipping-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.shipping-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:820px){.shipping-layout{grid-template-columns:1fr}.shipping-result-pane{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:16px}.shipping-actions{justify-content:stretch}.shipping-actions button{flex:1 1 180px}}
/* Venta rápida 2.7.2 */
.quick-sale-form{display:grid;gap:14px}.quick-sale-top{display:grid;grid-template-columns:2fr 1fr;gap:12px}.quick-sale-items{border-top:1px solid var(--line);padding-top:12px}.quick-sale-checkout{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}.quick-sale-total{border:1px solid #d7dee7;border-radius:14px;padding:16px;background:#f8fafc;display:flex;flex-direction:column;justify-content:center}.quick-sale-total span{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.08em}.quick-sale-total strong{font-size:30px;line-height:1.1;margin-top:5px}.cash-change-card{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;padding:12px;border:1px solid #d7dee7;border-radius:14px;background:#fff}.cash-change-card.compact{margin:0}.cash-change-card label{margin:0}.change-box{height:100%;min-height:68px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;padding:10px 12px;display:flex;flex-direction:column;justify-content:center}.change-box span{font-size:11px;color:#166534;font-weight:800;letter-spacing:.06em}.change-box strong{font-size:24px;color:#166534}.change-positive{color:#166534!important}.quick-sale-note{border-top:1px solid var(--line);padding-top:10px}.quick-sale-note summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:700}.quick-sale-note textarea{margin-top:8px}.quick-charge-btn{min-width:150px}.quick-pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-pay-form .cash-change-card{margin:4px 0 12px}.quick-sale-line{background:#fff;padding:8px}.quick-sale-line label{font-size:12px}
@media(max-width:700px){.quick-sale-top,.quick-sale-checkout,.quick-pay-grid,.cash-change-card{grid-template-columns:1fr}.quick-sale-line{grid-template-columns:1fr 76px 100px 40px}.quick-sale-total strong{font-size:26px}}


/* Diseño 2.8.0 */
.design-toolbar-card{margin-bottom:14px}.metrics.compact{grid-template-columns:repeat(5,minmax(120px,1fr));margin-top:12px}.metrics.compact .metric{padding:12px}.metrics.compact .value{font-size:21px}
.design-board{display:grid;grid-template-columns:repeat(7,minmax(230px,1fr));gap:12px;overflow-x:auto;padding:2px 2px 12px}.design-column{background:#f6f7f9;border:1px solid var(--border);border-radius:12px;min-height:340px}.design-column-head{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid var(--border);position:sticky;top:0;background:#f6f7f9;border-radius:12px 12px 0 0}.design-cards{padding:9px;display:flex;flex-direction:column;gap:9px}.design-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:11px;cursor:pointer}.design-card:hover{border-color:#9ca3af}.design-card-top,.design-card-row{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.design-card-row{font-size:12px;margin-top:9px;color:var(--muted)}.design-priority{font-size:11px;font-weight:700;padding:3px 7px;border-radius:999px;background:#eef0f3;white-space:nowrap}.design-priority.urgente{background:#fee2e2;color:#991b1b}.design-priority.alta{background:#ffedd5;color:#9a3412}.design-priority.normal{background:#e0f2fe;color:#075985}.design-priority.baja{background:#ecfdf5;color:#065f46}.design-empty{padding:16px 6px;text-align:center}.design-files{padding:10px 0}.design-files>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.file-chip{display:inline-block;padding:6px 9px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:inherit;background:#fff}
@media(max-width:900px){.metrics.compact{grid-template-columns:repeat(2,minmax(120px,1fr))}.design-board{grid-template-columns:repeat(7,220px)}}


/* Nuevo pedido minimalista 2.8.2 */
.order-quick-form{display:grid;gap:12px}
.order-quick-section{border:1px solid var(--line);border-radius:14px;padding:14px 15px;background:#fff}
.order-quick-title{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.order-quick-title>span{width:26px;height:26px;border-radius:999px;background:#111827;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;flex:0 0 auto}
.order-quick-title b{display:block;font-size:14px;color:#111827}.order-quick-title small{display:block;color:var(--muted);font-size:11px;margin-top:1px;font-weight:500}
.order-client-row{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(190px,.8fr);gap:10px}
.order-job-grid{display:grid;grid-template-columns:150px minmax(0,1fr) 155px;gap:10px}.order-article{min-width:0}
.order-money-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end}.order-money-grid #orderPaidMethodWrap{grid-column:3/5}
.order-quick-form label{margin-bottom:0;font-size:12px}.order-quick-form label input,.order-quick-form label select,.order-quick-form label textarea{margin-top:4px}
.order-notes{margin-top:9px!important}.order-notes textarea{resize:vertical;min-height:58px}
.order-total-field input{font-weight:850;font-size:16px}
.order-balance-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb}.order-balance-bar span{font-size:12px;color:var(--muted);font-weight:700}.order-balance-bar strong{font-size:19px;color:#111827}
.order-more{border:1px solid var(--line);border-radius:12px;background:#fafbfc}.order-more summary{cursor:pointer;padding:12px 14px;font-weight:750;font-size:12px;color:#475569;list-style:none}.order-more summary::-webkit-details-marker{display:none}.order-more summary:after{content:'+';float:right;font-size:18px;line-height:14px}.order-more[open] summary:after{content:'–'}.order-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding:0 14px 14px}.order-more-grid .full{grid-column:1/-1}
.order-quick-actions{margin-top:0;padding-top:2px}.order-quick-actions .primary{min-width:150px}
.remember-client-prices{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin:8px 0;border:1px solid #cfe2d5;border-radius:10px;background:#f2fbf5}.remember-client-prices input{width:18px;height:18px;margin-top:2px;accent-color:#168a53}.remember-client-prices span{display:flex;flex-direction:column;gap:3px}.remember-client-prices small{font-size:12px;color:#667085}
@media(max-width:760px){.order-client-row,.order-job-grid,.order-money-grid,.order-more-grid{grid-template-columns:1fr}.order-money-grid #orderPaidMethodWrap,.order-more-grid .full{grid-column:auto}.order-quick-section{padding:12px}.order-quick-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 0}.order-quick-actions button{flex:1}}

/* Nuevo pedido compacto 2.8.2 */
.order-client-row.three{grid-template-columns:minmax(0,1.4fr) minmax(170px,.8fr) minmax(145px,.65fr)}
.order-service-row{display:grid;grid-template-columns:180px 170px;gap:10px;margin-bottom:10px}
.order-item-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.55fr) minmax(110px,.45fr);gap:10px}
.order-money-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.order-delivery-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.35fr) minmax(135px,.55fr);gap:10px;padding:0 14px 10px}
.order-delivery-row .inline-map-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.order-delivery-row .inline-map-field button{white-space:nowrap;padding-inline:10px}
.order-shipping-cost{padding:0 14px 10px;max-width:220px}
.order-notes-files-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:10px;padding:0 14px 14px;align-items:start}
.order-notes-files-row textarea{resize:vertical;min-height:72px}
.order-notes-files-row input[type=file]{min-height:72px;padding:10px;background:#fff}
@media(max-width:900px){.order-client-row.three,.order-item-row,.order-delivery-row,.order-notes-files-row{grid-template-columns:1fr 1fr}.order-client-row.three label:first-child,.order-item-row label:first-child,.order-delivery-row label:first-child,.order-notes-files-row label:first-child{grid-column:1/-1}}
@media(max-width:760px){.order-client-row.three,.order-service-row,.order-item-row,.order-money-grid.compact,.order-delivery-row,.order-notes-files-row{grid-template-columns:1fr}.order-client-row.three label:first-child,.order-item-row label:first-child,.order-delivery-row label:first-child,.order-notes-files-row label:first-child{grid-column:auto}.order-shipping-cost{max-width:none}}

/* Pedido 2.8.3: confirmación previa y resumen */
.order-confirm-panel{display:grid;gap:14px;padding:2px 0}
.order-confirm-head{padding:12px 14px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}
.order-confirm-head b{display:block;font-size:18px}.order-confirm-head small{display:block;margin-top:4px;color:#64748b}
.order-confirm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.order-confirm-grid>div,.order-confirm-wide{padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;min-width:0}
.order-confirm-grid span,.order-confirm-wide span,.saved-order-summary span{display:block;font-size:12px;color:#64748b;margin-bottom:3px}
.order-confirm-grid strong,.order-confirm-wide strong{display:block;overflow-wrap:anywhere}
.saved-order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.saved-order-summary>div{padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;min-width:0}
.saved-order-summary b{display:block;overflow-wrap:anywhere}
@media(max-width:760px){.order-confirm-grid{grid-template-columns:1fr 1fr}.saved-order-summary{grid-template-columns:1fr 1fr}}
.label-preview-box{margin:16px auto;padding:14px;background:#eef2f7;border:1px solid #d7dee8;border-radius:12px;display:flex;justify-content:center;align-items:center;min-height:150px}.label-preview-box .article-label{width:260px;min-height:150px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.label-preview-box .label-business{font-size:12px;font-weight:700}.label-preview-box .label-product-name{font-size:17px;font-weight:800;line-height:1.1;margin-bottom:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.label-preview-box .barcode-svg{width:92%;height:60px;display:block}.label-preview-box .label-code{font-size:11px;letter-spacing:1px}.label-preview-box .label-price{font-size:25px;font-weight:900;margin-top:4px}.label-preview-box .label-no-code{border:1px solid #111;padding:8px;font-weight:700}
.label-settings-live{margin:18px 0;padding:16px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc}.label-settings-live .label-preview-box{max-width:720px;min-height:190px;margin:0 auto 8px}.label-settings-live .label-preview-box .article-label{max-width:100%;padding:clamp(10px,2vw,18px)}.label-live-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:#dcfce7;color:#166534;font-size:11px;font-weight:900;letter-spacing:.05em}.label-settings-live #labelSettingsLiveInfo{text-align:center;margin:4px 0 0}

/* Etiquetas personalizadas por pedido */
.order-label-builder .order-label-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.order-label-entry-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.order-label-entry-row label{min-width:0}.order-label-entry-row textarea{width:100%}.order-label-entry-row .label-action{margin-top:8px}.order-label-builder textarea{min-height:105px}.order-label-toolbar{margin:14px 0}.order-label-builder table input{min-width:110px}.order-label-builder table input[name="label_name"]{min-width:210px}.order-label-builder table input[name="label_size"]{min-width:75px}.order-label-builder table input[name="label_copies"]{min-width:70px;max-width:90px}.order-label-preview{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));padding:14px;background:#eef2f7;border:1px solid var(--border);border-radius:12px}.order-label-preview-card{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:12px;min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.order-label-preview-card .ocl-logo{max-width:70%;max-height:24px;object-fit:contain}.order-label-preview-card .ocl-custom,.order-label-preview-card .ocl-business{font-size:10px;line-height:1.15;font-weight:700}.order-label-preview-card .ocl-name{font-size:20px;font-weight:900;line-height:1.05}.order-label-preview-card .ocl-size{font-size:16px;font-weight:800;margin-top:5px}.order-label-preview-card .ocl-detail{font-size:12px;margin-top:5px}.order-label-preview-card .ocl-order{font-size:10px;margin-top:7px;color:#555}@media(max-width:760px){.order-label-builder .order-label-controls{grid-template-columns:1fr}.order-label-entry-row{grid-template-columns:1fr}.order-label-builder table input[name="label_name"]{min-width:150px}}
.order-label-builder .label-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:0;border-radius:11px;color:#fff;font-weight:850;box-shadow:0 3px 8px #0f172a24;transition:transform .14s ease,filter .14s ease}.order-label-builder .label-action:hover{filter:brightness(1.07);transform:translateY(-1px)}.order-label-builder .label-action:focus-visible{outline:3px solid #0f172a;outline-offset:2px}.order-label-builder .label-action span{font-size:18px;line-height:1}.order-label-builder .label-action-generate{background:#2563eb}.order-label-builder .label-action-list{background:#7c3aed}.order-label-builder .label-action-add{background:#059669}.order-label-builder .label-action-clear{background:#d97706}.order-label-builder .label-action-print{background:#0f766e}.order-label-builder .label-remove-action{min-width:40px;min-height:38px;border:1px solid #fecaca;border-radius:9px;background:#fff1f2;font-size:18px;cursor:pointer}.order-label-builder .label-remove-action:hover{background:#ffe4e6}.order-label-live{margin-top:18px;border:1px solid #cbd5e1;border-radius:15px;background:#f8fafc;padding:16px}.order-label-live-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.order-label-live-head h3{margin:0}.order-label-live-head p{margin:4px 0 0}.order-label-live-count{flex:0 0 auto;border-radius:999px;background:#dbeafe;color:#1e40af;padding:7px 12px;font-weight:850}.order-label-live-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;align-items:center}.order-label-live-card{aspect-ratio:var(--label-ratio,1.67);width:100%;max-height:240px;min-height:105px;overflow:hidden;border:2px solid #334155;border-radius:9px;background:#fff;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 3px 10px #0f172a18}.order-label-live-card .ocl-logo{max-width:70%;max-height:22px;object-fit:contain;margin:0 auto 5px}.order-label-live-card .ocl-custom,.order-label-live-card .ocl-business{font-size:10px;line-height:1.1;font-weight:750;margin-bottom:4px}.order-label-live-card .ocl-name{font-size:clamp(15px,2vw,23px);font-weight:900;line-height:1.02;max-width:100%;overflow-wrap:anywhere}.order-label-live-card .ocl-size{font-size:15px;font-weight:850;margin-top:5px}.order-label-live-card .ocl-detail{font-size:11px;line-height:1.1;margin-top:5px;overflow-wrap:anywhere}.order-label-live-card .ocl-order{font-size:9px;margin-top:6px;color:#475569;overflow-wrap:anywhere}.order-label-live-empty,.order-label-live-more{grid-column:1/-1;border:1px dashed #94a3b8;border-radius:10px;background:#fff;color:#475569;text-align:center;padding:20px;font-weight:700}.order-label-live-more{background:#eff6ff;color:#1d4ed8;border-style:solid}.order-label-summary{font-weight:700}

#suppliersBody tr.selected-row{background:#e8f0ff!important;box-shadow:inset 4px 0 0 #1d4ed8}
.supplier-layout{align-items:start}
.supplier-price-toolbar input{min-width:220px}
.purchase-select-toolbar{margin-top:10px;border-top:1px solid #e5e7eb;padding-top:10px}.check-col{width:38px;text-align:center}.purchase-total{margin:16px 0 4px auto;max-width:320px;border-top:2px solid #111;padding-top:10px;display:flex;justify-content:space-between;font-size:18px}.po-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;margin-bottom:14px}

.po-history-toolbar{margin-bottom:10px}.po-history-toolbar input{min-width:280px;flex:1}.po-history-toolbar select{min-width:170px}

.supplier-panel{display:none}.supplier-panel.active{display:block}.supplier-tabs{margin-bottom:16px}.purchase-editor-lines{display:grid;gap:8px;margin-top:10px}.purchase-editor-line{display:grid;grid-template-columns:minmax(220px,2.2fr) 100px 125px 130px 42px;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.purchase-editor-line label{margin:0}.purchase-editor-line .po-line-total-read{height:41px;display:flex;align-items:center;justify-content:flex-end;font-weight:800}.purchase-editor-total{display:flex;justify-content:flex-end;align-items:center;gap:24px;font-size:20px;font-weight:850;margin-top:14px;padding-top:12px;border-top:2px solid #111827}@media(max-width:850px){.purchase-editor-line{grid-template-columns:1fr 90px 110px}.purchase-editor-line .po-line-total-read{grid-column:2/4}.purchase-editor-line .po-remove-line{grid-column:1/4}}
.order-items-editor{display:flex;flex-direction:column;gap:9px;margin-top:10px}.order-item-entry{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(110px,.5fr) minmax(100px,.42fr) 44px;gap:10px;align-items:end;padding:9px;border:1px solid #dbe2ea;border-radius:12px;background:#fff}.order-item-entry label{margin:0}.order-item-entry .oi-remove{height:42px;padding:0;font-size:22px;line-height:1}.order-add-item-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.order-items-summary{display:flex;flex-direction:column;gap:7px;margin:8px 0 14px}.order-item-summary,.order-confirm-item{display:flex;justify-content:space-between;gap:14px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.order-item-summary span,.order-confirm-item span{white-space:nowrap}.order-confirm-wide .order-confirm-item+ .order-confirm-item{margin-top:6px}@media(max-width:760px){.order-item-entry{grid-template-columns:1fr 1fr}.order-item-entry .order-article{grid-column:1/-1}.order-item-entry .oi-remove{grid-column:2;justify-self:end;width:44px}.order-item-summary,.order-confirm-item{flex-direction:column;gap:3px}.order-item-summary span,.order-confirm-item span{white-space:normal}}

/* OK Print 2.9.5 improvements */
.quote-inline{display:grid;gap:12px;align-items:end}
.quote-inline-3{grid-template-columns:2fr 1fr 1.2fr}
.quote-inline-2{grid-template-columns:1fr 1fr}
.toggle-label{display:flex!important;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fafafa}
.switch{position:relative;display:inline-block;width:52px;height:28px;flex:0 0 auto}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;background:#cbd5e1;border-radius:999px;cursor:pointer;transition:.18s}.slider:before{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003;transition:.18s}.switch input:checked+.slider{background:#111827}.switch input:checked+.slider:before{transform:translateX(24px)}
.ocl-logo{display:block;max-width:70%;max-height:8mm;object-fit:contain;margin:0 auto .8mm}.ocl-custom{white-space:normal;text-align:center;font-size:7pt;font-weight:700;line-height:1.15;margin-bottom:.8mm}
@media(max-width:760px){.quote-inline-3,.quote-inline-2{grid-template-columns:1fr}}

/* Cambios 12-23 */
.cash-buttons{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.cash-btn{min-height:78px;font-size:18px;font-weight:850;padding:18px}.cash-btn kbd{font-size:11px}
.cash-history-details>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:850;font-size:17px;list-style:none}.cash-history-details>summary::-webkit-details-marker{display:none}.cash-history-details>summary:after{content:'+';font-size:22px;margin-left:12px}.cash-history-details[open]>summary:after{content:'−'}.cash-history-details[open]>summary{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.charge-amount-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:2px solid #111827;border-radius:16px;padding:16px;background:#f8fafc}.charge-amount-card label{margin:0;flex:1}.charge-amount-card input{font-size:30px;font-weight:900;min-height:64px;text-align:right}.charge-inline{display:grid;grid-template-columns:1fr 2fr;gap:12px}
.charge-balance-grid{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:10px;align-items:stretch;margin-top:12px}.charge-balance-card{border:1px solid #cbd5e1;border-radius:16px;background:#fff;padding:14px;display:flex;flex-direction:column;justify-content:center;gap:5px}.charge-balance-card span{font-size:11px;font-weight:800;color:#64748b;letter-spacing:.04em}.charge-balance-card strong{font-size:21px;line-height:1.1}.charge-balance-card.remaining{border-color:#f59e0b;background:#fffbeb}.charge-balance-card.remaining strong{font-size:24px}.charge-balance-card.remaining.paid{border-color:#86efac;background:#f0fdf4}.charge-balance-card.remaining.paid strong{color:#15803d}.charge-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.charge-type-switch button{min-height:48px}.charge-type-switch button.active{background:#111827;color:#fff}
.quick-client-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}.quick-partial-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;align-items:end}.quick-partial-grid .metric{min-height:72px}.quick-sale-discount{max-width:220px}
.order-money-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.order-money-grid .order-balance-inline input{font-weight:900;background:#f8fafc}
.chart-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:14px}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chart-panel{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}.simple-bars{display:flex;align-items:end;gap:8px;min-height:220px;padding:16px 8px 0;border-bottom:1px solid #cbd5e1}.simple-bar-wrap{flex:1;min-width:34px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:200px}.simple-bar{width:78%;min-height:2px;background:#111827;border-radius:7px 7px 0 0;position:relative}.simple-bar-value{font-size:10px;font-weight:800;margin-bottom:4px;white-space:nowrap}.simple-bar-label{font-size:10px;margin-top:6px;text-align:center;word-break:break-word;max-width:80px}.chart-legend-list{display:grid;gap:7px;margin-top:10px}.chart-legend-list div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eef2f7;padding-bottom:5px}
@media(max-width:800px){.charge-inline,.charge-balance-grid,.quick-client-grid,.quick-partial-grid,.chart-grid{grid-template-columns:1fr}}


/* Caja: 6 acciones principales en dos filas de tres */
.cash-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin-bottom:18px;
}
.cash-btn{
  min-height:112px!important;
  padding:20px 22px!important;
  font-size:20px!important;
  font-weight:900!important;
  border-radius:16px!important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow:0 6px 16px rgba(15,23,42,.12);
}
.cash-btn-main{display:flex;align-items:center;gap:14px;min-width:0}
.cash-btn-icon{font-size:30px;line-height:1;flex:0 0 auto}
.cash-btn-label{line-height:1.1;text-align:left}
.cash-btn kbd{
  flex:0 0 auto;
  min-width:42px;
  text-align:center;
  font-size:12px!important;
  font-weight:900;
  padding:7px 8px;
  border-radius:8px;
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.22);
}
@media(max-width:820px){
  .cash-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .cash-btn{min-height:98px!important;font-size:17px!important;padding:16px!important}
  .cash-btn-icon{font-size:25px}
}
@media(max-width:520px){
  .cash-buttons{grid-template-columns:1fr!important}
}
.purchase-auto-card{margin-bottom:16px}.po-auto-toolbar label{min-width:190px}.purchase-needs-summary{margin:8px 0 12px}.purchase-needs-groups{display:grid;gap:12px}.purchase-need-group{border:1px solid var(--line);border-radius:14px;overflow:hidden}.purchase-need-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;background:#f8fafc}.purchase-need-head b{font-size:15px}.purchase-need-head .need-total{font-size:17px;font-weight:850}.purchase-need-group table{margin:0}.purchase-needs-unmatched{margin-top:12px;border:1px solid #f59e0b;background:#fffbeb;border-radius:12px;padding:12px}.purchase-needs-unmatched h4{margin:0 0 6px}.purchase-needs-empty{padding:18px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}@media(max-width:760px){.po-auto-toolbar label{width:100%;min-width:0}.purchase-need-head{align-items:flex-start;flex-direction:column}.purchase-need-group .table-wrap{overflow-x:auto}}

.dtf-hero{margin-bottom:16px}.dtf-layout{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(420px,.95fr);gap:16px;align-items:start}.dtf-measure{display:grid;grid-template-columns:1fr 160px;gap:8px}.dtf-option{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin:7px 0;background:#fafbfc}.dtf-option input{width:auto;margin:0}.dtf-option span{flex:1}.dtf-summary{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.dtf-summary>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0}.dtf-summary .dtf-total{font-size:22px;font-weight:850;border-top:1px solid var(--line);margin-top:4px;padding-top:13px}.dtf-summary .dtf-subline{display:grid;gap:6px}.dtf-summary .dtf-subline>div{display:flex;justify-content:space-between;gap:12px}.dtf-config-row{display:grid;grid-template-columns:minmax(120px,2fr) 110px 130px 40px;gap:8px;align-items:center;margin:8px 0}.dtf-config-row input,.dtf-config-row select{margin:0}@media(max-width:1120px){.dtf-layout{grid-template-columns:1fr}}@media(max-width:600px){.dtf-measure{grid-template-columns:1fr 130px}.dtf-config-row{grid-template-columns:1fr 95px 110px 36px}}
.dtf-measure-rate-wrap{display:grid;gap:8px}.dtf-measure-rate-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px;align-items:end}.dtf-measure-rate-row label{margin:0}.dtf-mount-slot{min-width:0}.dtf-mount-row{min-height:48px;margin:0;flex-wrap:wrap}.dtf-mount-row span{flex:1;min-width:80px}.dtf-mount-toggle{min-width:125px;border:1px solid #b8c1cc;border-radius:999px;padding:8px 14px;background:#e8ebef;color:#394150;font-weight:750;cursor:pointer}.dtf-mount-toggle::before{content:"○";margin-right:7px}.dtf-mount-toggle.is-active{background:#dcfce7;border-color:#22a45a;color:#166534}.dtf-mount-toggle.is-active::before{content:"●"}
.dtf-module{--dtf-blue:#1554db;--dtf-pink:#ff2b9b;--dtf-bg:#eef0f2}.dtf-module .dtf-quote-card,.dtf-module .dtf-summary-card,.dtf-module .dtf-orders-card{border-radius:18px;padding:22px;box-shadow:0 8px 25px #0000000b}.dtf-module .dtf-summary-card{position:sticky;top:18px}.dtf-module .dtf-summary .dtf-total{color:var(--dtf-blue);font-size:27px}.dtf-module .dtf-primary-actions{display:grid;gap:5px;margin-top:20px}.dtf-module .dtf-action-button{width:100%;min-height:60px;padding:16px 20px;border-radius:12px;font-size:18px;font-weight:850}.dtf-module #dtfCreateBtn{background:var(--dtf-blue)}.dtf-module #dtfWhatsAppBtn{background:#16a34a}.dtf-module .dtf-copy-link{justify-self:center;border:0;background:transparent;color:var(--dtf-blue);font-size:13px;font-weight:700;text-decoration:underline;padding:4px 12px 12px}.dtf-module .dtf-save-client{padding:10px 13px;white-space:nowrap}.dtf-module .dtf-clear-action{margin-top:8px}.dtf-module .dtf-orders-card{margin-top:18px}.dtf-module .dtf-option{border-radius:11px;padding:12px 14px}.dtf-module input:focus,.dtf-module select:focus,.dtf-module textarea:focus{border-color:var(--dtf-blue);outline:3px solid #1554db22}
@media(max-width:1120px){.dtf-module .dtf-summary-card{position:static}}
@media(max-width:700px){.dtf-module .dtf-layout{grid-template-columns:1fr}.dtf-module .dtf-quote-card,.dtf-module .dtf-summary-card,.dtf-module .dtf-orders-card{padding:16px}.dtf-module .dtf-action-button{min-height:62px;font-size:17px}.dtf-module .dtf-hero .row-actions{width:auto}.dtf-module .dtf-hero .row-actions button{flex:0 0 auto}.dtf-module .form-grid{grid-template-columns:1fr}.dtf-module .form-grid>.full{grid-column:auto}.dtf-module .inline{align-items:stretch}.dtf-module .dtf-save-client{font-size:12px}.dtf-measure-rate-row{grid-template-columns:1fr}}
.forgot-pin{display:block;margin:12px auto 0;padding:6px 8px;color:#2563eb}

@media(max-width:700px){.dtf-hero{align-items:flex-start;flex-direction:column}.dtf-hero .row-actions{width:100%}.dtf-hero .row-actions button{flex:1}}

/* DTF Producción: presentación visual */
.dtf-module{--dtf-blue:#2563eb;--dtf-pink:#db2777;--dtf-teal:#0891b2;--dtf-orange:#ea580c}
.dtf-module .dtf-hero{background:linear-gradient(120deg,#4f46e5 0%,#a21caf 55%,#db2777 100%);box-shadow:0 14px 32px #7c3aed30}
.dtf-hero-copy{display:flex;align-items:center;gap:18px}.dtf-hero-icon{width:72px;height:72px;flex:0 0 auto;display:grid;place-items:center;border-radius:22px;background:#ffffff25;font-size:42px;box-shadow:inset 0 0 0 1px #ffffff35}
.dtf-module .dtf-hero .row-actions button{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:800;color:#fff;background:#ffffff20;border:1px solid #ffffff55}.dtf-module .dtf-hero .row-actions button span{font-size:24px}
.dtf-module .dtf-quote-card,.dtf-module .dtf-summary-card,.dtf-module .dtf-orders-card{border:1px solid #e3e8f4;box-shadow:0 10px 26px #3730a310;overflow:hidden}
.dtf-module .dtf-quote-card{border-top:5px solid #8b5cf6;background:linear-gradient(180deg,#faf8ff 0,#fff 110px)}.dtf-module .dtf-summary-card{border-top:5px solid #f59e0b;background:linear-gradient(180deg,#fffbeb 0,#fff 140px)}.dtf-module .dtf-orders-card{border-top:5px solid #06b6d4;background:linear-gradient(180deg,#f0fdff 0,#fff 110px)}
.dtf-card-title{display:flex;align-items:center;gap:13px}.dtf-card-title h3{margin:0 0 4px}.dtf-card-title p{margin:0}.dtf-card-icon{width:56px;height:56px;display:grid;place-items:center;flex:0 0 auto;border-radius:17px;font-size:32px;box-shadow:0 5px 12px #00000010}.dtf-card-icon.quote{background:#ede9fe}.dtf-card-icon.total{background:#fef3c7}.dtf-card-icon.orders{background:#cffafe}
.dtf-module .dtf-primary-actions{gap:10px}.dtf-module .dtf-action-button{display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 7px 14px #00000016;transition:transform .15s,filter .15s}.dtf-module .dtf-action-button:hover{filter:brightness(1.06);transform:translateY(-1px)}.dtf-module .dtf-action-button span{font-size:28px;line-height:1}
.dtf-module #dtfCreateBtn{background:linear-gradient(100deg,#4f46e5,#7c3aed)}.dtf-module #dtfWhatsAppBtn{background:linear-gradient(100deg,#16a34a,#059669)}.dtf-module .dtf-copy-link span{font-size:20px;vertical-align:middle;margin-right:5px}
.dtf-module .dtf-summary .dtf-total{padding:15px 13px;border:0;border-radius:13px;background:linear-gradient(100deg,#fff7ed,#fef3c7);color:#b45309}.dtf-module .dtf-summary .dtf-total b{font-size:30px}.dtf-module #dtfRefreshBtn{display:flex;align-items:center;gap:8px}.dtf-module #dtfRefreshBtn span{font-size:18px}
.dtf-report-card{border-top:5px solid #c026d3;background:linear-gradient(180deg,#fdf4ff,#fff 140px)}.dtf-report-card h3{display:flex;align-items:center;gap:10px}.dtf-report-card h3 span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#fae8ff;font-size:25px}.dtf-report-card button{background:linear-gradient(100deg,#7c3aed,#c026d3)}
.product-sales-report-card{border-top:5px solid #f59e0b;background:linear-gradient(180deg,#fffbeb,#fff 145px)}.product-sales-report-card h3{display:flex;align-items:center;gap:10px}.product-sales-report-card h3 span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#fef3c7;font-size:25px}.product-sales-report-card button{background:linear-gradient(100deg,#d97706,#f59e0b)}
.new-clients-report-card{border-top:5px solid #0ea5e9;background:linear-gradient(180deg,#f0f9ff,#fff 145px)}.new-clients-report-card h3{display:flex;align-items:center;gap:10px}.new-clients-report-card h3 span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e0f2fe;font-size:25px}.new-clients-report-card button{background:linear-gradient(100deg,#0284c7,#0ea5e9)}
@media(max-width:700px){.dtf-hero-copy{align-items:flex-start}.dtf-hero-icon{width:56px;height:56px;border-radius:17px;font-size:32px}.dtf-card-icon{width:48px;height:48px;font-size:28px}.dtf-module .dtf-action-button span{font-size:25px}}

.charge-confirm-modal .modal-box{width:min(720px,96vw);padding:28px}
.charge-confirm-modal .modal-head h2{font-size:30px;font-weight:900;letter-spacing:-.025em;color:#102a43}
.charge-confirm-intro{font-size:16px;color:#526273;margin:0 0 18px}
.charge-confirm-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.charge-confirm-stat{padding:16px 18px;border:1px solid #dbe3ec;border-radius:14px;background:#f8fafc;min-width:0}
.charge-confirm-stat span{display:block;color:#64748b;font-size:13px;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.charge-confirm-stat strong{display:block;margin-top:6px;color:#182b3c;font-size:21px;font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.charge-confirm-main{background:#eaf2ff;border-color:#9bbcf4}
.charge-confirm-main strong{color:#174ea6;font-size:27px}
.charge-confirm-pending{background:#fff7ed;border-color:#fed7aa}
.charge-confirm-pending strong{color:#b45309}
.charge-confirm-paid{background:#ecfdf3;border-color:#a7f3d0}
.charge-confirm-paid strong{color:#087443}
.charge-confirm-meta{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:16px;color:#465566;font-size:15px}
.charge-confirm-meta b{color:#172b3a;font-size:16px}
@media(max-width:600px){.charge-confirm-modal .modal-box{padding:20px}.charge-confirm-modal .modal-head h2{font-size:25px}.charge-confirm-summary{grid-template-columns:1fr}.charge-confirm-stat strong{font-size:20px}.charge-confirm-main strong{font-size:25px}}

.permission-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.permission-tools .link{padding:6px 8px;font-size:12px;font-weight:750;color:#2563eb}
.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.permission-group{min-width:0;border:1px solid #dfe5ec;border-radius:10px;background:#fff;overflow:hidden}
.permission-group summary{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:10px 12px;cursor:pointer;font-weight:750;color:#263648;list-style:none}
.permission-group summary::-webkit-details-marker{display:none}
.permission-group summary::after{content:"+";font-size:18px;color:#64748b;line-height:1}
.permission-group[open] summary::after{content:"−"}
.permission-group[open] summary{border-bottom:1px solid #e8edf2;background:#f8fafc}
.permission-count{margin-left:auto;color:#64748b;font-size:11px;font-weight:650;white-space:nowrap}
.permission-group .permission-grid{padding:9px;grid-template-columns:1fr;gap:6px}
.permission-group .permission-grid label{font-weight:550;font-size:12px}
@media(max-width:700px){.permission-groups{grid-template-columns:1fr}.permission-tools{gap:4px}}

.sidebar nav{flex:1;min-height:0;overflow-y:auto;align-content:start}
.app-icon-card{margin-top:16px}
.app-icon-preview{display:flex;align-items:center;gap:14px;min-height:110px;margin:12px 0;padding:14px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}
.app-icon-preview>img{width:82px;height:82px;border-radius:16px;object-fit:contain;background:white;box-shadow:0 2px 8px #0f172a20}
#loginAppBrand img,#sidebarAppBrand img{width:100%;height:100%;object-fit:contain;border-radius:inherit}

/* Diseño adaptable y menú lateral sin barra visible */
@media(min-width:821px){
  .app-shell{grid-template-columns:clamp(190px,18vw,240px) minmax(0,1fr)}
  .sidebar{width:clamp(190px,18vw,240px);padding:clamp(8px,2.5vh,22px) clamp(8px,1.15vw,14px);gap:clamp(6px,2vh,18px)}
  .sidebar nav{gap:clamp(2px,.65vh,6px);scrollbar-width:none;-ms-overflow-style:none}
  .sidebar nav::-webkit-scrollbar{display:none}
  .sidebar nav button{padding:clamp(5px,.9vh,12px) clamp(8px,1vw,14px);font-size:clamp(11px,.85vw,14px);line-height:1.15}
  .main{padding-inline:clamp(14px,2vw,28px)}
}
@media(min-width:821px) and (max-height:780px){
  .sidebar{gap:6px}
  .sidebar-brand{gap:8px}
  .sidebar nav{gap:2px}
  .sidebar nav button{padding-block:5px;font-size:12px}
  .server-badge{padding:5px 8px}
}
@media(max-width:820px){
  .sidebar nav{flex:none;min-height:auto;overflow:visible}
  .main{min-width:0}
}
@media(max-width:520px){
  .sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{height:auto;min-height:64px;gap:8px;flex-wrap:wrap;padding:10px 0}
  .top-actions{flex-wrap:wrap;justify-content:flex-end}
  .card{padding:14px}
}

/* Montos de Caja: resaltados para distinguir apertura, entradas y salidas */
.cash-amount-input{min-height:54px;padding:12px 14px;font-size:clamp(22px,2.5vw,28px);font-weight:900;text-align:right;font-variant-numeric:tabular-nums;border-width:2px}
.cash-amount-input:focus{box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.cash-amount-open{color:#047857;background:#ecfdf5;border-color:#6ee7b7}
.cash-amount-entry{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}
.cash-amount-expense{color:#c2410c;background:#fff7ed;border-color:#fdba74}
@media(max-width:520px){.cash-amount-input{min-height:52px;font-size:22px}}

/* 2.17.11: login appearance and clearer cash counting */
.login-view{background:var(--login-bg,#eef2f7);color:var(--login-text,#17191d)}
.login-card{background:var(--login-card,#fff);color:var(--login-text,#17191d)}
.login-card h1,.login-card label{color:var(--login-text,#17191d)}
.login-card p{color:var(--login-text,#17191d);opacity:.76}
.login-card .primary{background:var(--login-button,#111827)}
.login-settings-card{margin-top:18px}
.recovery-question-label{font-weight:800;margin:18px 0 4px}
.recovery-question{background:#f1f5f9;border-left:4px solid #2563eb;border-radius:8px;padding:12px;font-weight:750}
.cash-counted-label{font-size:18px;font-weight:850;color:#111827}
.cash-counted-input{display:block;margin-top:8px!important;min-height:64px;font-size:34px!important;font-weight:900!important;text-align:center;border:3px solid #2563eb!important;background:#eff6ff!important;color:#0f172a!important}
@media(max-width:600px){.cash-counted-input{font-size:30px!important;min-height:58px}}
.money-input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Ctext x='2' y='16' fill='%2364707d' font-family='Arial' font-size='15' font-weight='700'%3E%24%3C/text%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:10px center!important;padding-left:32px!important}
.shipping-province-rates{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;max-height:440px;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.shipping-province-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}.shipping-province-input{display:flex;align-items:center;gap:4px;color:#475569}.shipping-province-input input{width:100px;min-width:80px;padding:7px 8px}.shipping-province-row input::placeholder{font-size:10px}.shipping-province-rates+*{margin-top:10px}#shippingSettingsForm details summary{cursor:pointer;font-weight:700;margin:8px 0}
@media(max-width:520px){.shipping-province-rates{grid-template-columns:1fr;max-height:360px}}
.reminder-task-section,.wa-reminder-section{margin:8px 0 18px}.reminder-task-card{padding:14px;margin:10px 0;border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:12px;background:#fff}.reminder-task-card.is-overdue{border-left-color:var(--red);background:#fffafa}.reminder-task-card p{margin:8px 0;color:var(--muted);white-space:pre-wrap}.reminder-task-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.reminder-task-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0;color:var(--muted);font-size:13px}.reminder-priority{padding:4px 9px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:800}.priority-alta{background:#ffedd5;color:#9a3412}.priority-urgente{background:#fee2e2;color:#991b1b}.priority-baja{background:#dcfce7;color:#166534}.reminder-related-link{padding:0!important;min-height:0!important;text-align:left}.reminder-task-section .toolbar{align-items:end}.wa-reminder-section{border-top:1px solid var(--line);padding-top:12px}

/* Recordatorios: filtros rápidos, jerarquía visual y lectura sencilla */
.reminder-welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:18px;background:linear-gradient(115deg,#eef2ff,#fdf2f8 58%,#fff7ed);margin:6px 0 16px}.reminder-welcome>div,.reminder-section-title,.reminder-task-head,.reminder-title-wrap,.reminder-wa-title{display:flex;align-items:center;gap:12px}.reminder-welcome h3,.reminder-section-title h3{margin:0 0 4px}.reminder-welcome p,.reminder-section-title p{margin:0}.reminder-welcome-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff;font-size:25px;box-shadow:0 5px 16px #4338ca1a}.reminder-new-button{white-space:nowrap}.reminder-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 16px}.reminder-stat{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;padding:13px 15px;border:2px solid transparent;border-radius:16px;background:#f1f5f9;color:#334155;cursor:pointer;transition:transform .15s,border-color .15s}.reminder-stat:hover{transform:translateY(-2px)}.reminder-stat>span{grid-row:span 2;font-size:24px}.reminder-stat>b{font-size:22px;line-height:1.1}.reminder-stat small{font-size:12px;font-weight:700}.reminder-stat.is-active{border-color:#6366f1;background:#eef2ff;color:#3730a3}.reminder-stat.overdue{background:#fff1f2;color:#be123c}.reminder-stat.completed{background:#ecfdf5;color:#047857}.reminder-stat.all{background:#eff6ff;color:#1d4ed8}.reminder-filter-state{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.reminder-advanced{margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-radius:13px;background:#fafbff}.reminder-advanced summary{font-weight:750;color:#475569;cursor:pointer}.reminder-advanced .toolbar{padding-top:12px;align-items:end}.reminder-task-card{box-shadow:0 4px 14px #0f172a0a}.reminder-task-head{justify-content:space-between}.reminder-title-wrap{min-width:0}.reminder-title-wrap b{font-size:16px}.reminder-task-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:13px;background:#eef2ff;font-size:20px}.reminder-task-card.is-overdue .reminder-task-icon{background:#ffe4e6}.reminder-task-card .row-actions{display:flex;flex-wrap:wrap;gap:8px}.reminder-empty{display:grid;justify-items:center;gap:5px;padding:28px 14px;border-radius:16px;background:linear-gradient(135deg,#f0fdf4,#eff6ff);text-align:center;color:#334155}.reminder-empty>span{font-size:32px}.reminder-empty p{margin:0;color:var(--muted)}.reminder-section-title{margin-bottom:12px}.reminder-section-title>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#dcfce7;font-size:22px}.wa-reminder-count{margin-left:auto;padding:5px 11px;border-radius:999px;background:#dcfce7;color:#047857}.reminder-wa-card{margin:10px 0;padding:14px;border:1px solid #bbf7d0;border-radius:16px;background:linear-gradient(120deg,#f0fdf4,#fff)}.reminder-wa-title{margin-bottom:10px}.reminder-wa-title>span{font-size:21px}.reminder-wa-card textarea{width:100%;min-height:76px;margin-bottom:8px}.wa-reminder-section{border-top:1px solid var(--line);padding-top:16px}
@media(max-width:700px){.reminder-welcome{align-items:flex-start;flex-direction:column}.reminder-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.reminder-stat{padding:11px}.reminder-advanced .toolbar{display:grid;grid-template-columns:1fr 1fr}.reminder-advanced .toolbar input:first-child{grid-column:1/-1}.reminder-new-button{width:100%}}

/* Usuarios: panel de equipo con tarjetas e iconos grandes */
.users-page{gap:16px}.users-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-radius:20px;background:linear-gradient(115deg,#dbeafe 0%,#fce7f3 52%,#ffedd5 100%);box-shadow:0 8px 24px #1e293b12}.users-welcome-copy{display:flex;align-items:center;gap:16px}.users-welcome-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#fff;font-size:34px;box-shadow:0 7px 18px #33415518}.users-welcome h2{margin:0 0 5px;font-size:26px}.users-welcome p{margin:0;color:#475569}.users-new-button{min-height:48px;font-weight:800;white-space:nowrap}.users-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.users-summary-card{display:flex;align-items:center;gap:13px;padding:15px 18px;border:1px solid transparent;border-radius:16px}.users-summary-card>span{font-size:26px}.users-summary-card>div{display:grid;gap:1px}.users-summary-card b{font-size:23px;line-height:1.1}.users-summary-card small{font-weight:700}.users-count{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.users-active{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.users-admin{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.users-directory{padding:18px}.users-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.users-toolbar h3{margin:0 0 4px}.users-toolbar p{margin:0}.users-search{display:flex;align-items:center;gap:8px;width:min(360px,100%);padding:0 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff}.users-search input{width:100%;border:0!important;box-shadow:none!important}.users-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:14px}.user-card{position:relative;min-width:0;padding:16px;border:1px solid #e2e8f0;border-top:5px solid #60a5fa;border-radius:17px;background:#fff;box-shadow:0 5px 17px #0f172a0a;transition:transform .15s,box-shadow .15s}.user-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0f172a14}.user-card-purple{border-top-color:#8b5cf6}.user-card-blue{border-top-color:#3b82f6}.user-card-pink{border-top-color:#ec4899}.user-card-orange{border-top-color:#f97316}.user-card-green{border-top-color:#10b981}.user-card-slate{border-top-color:#64748b}.user-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.user-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#f1f5f9;font-size:25px}.user-card-purple .user-avatar{background:#ede9fe}.user-card-blue .user-avatar{background:#dbeafe}.user-card-pink .user-avatar{background:#fce7f3}.user-card-orange .user-avatar{background:#ffedd5}.user-card-green .user-avatar{background:#d1fae5}.user-state{display:flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.user-state i{width:7px;height:7px;border-radius:50%;background:currentColor}.user-state.is-active{background:#dcfce7;color:#15803d}.user-state.is-inactive{background:#f1f5f9;color:#64748b}.user-card h3{overflow:hidden;margin:13px 0 2px;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.user-handle{margin:0 0 12px;color:#64748b;font-size:13px}.user-role{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;background:#f1f5f9;color:#334155;font-size:13px;font-weight:800}.user-permission-hint{margin:12px 0;color:#64748b;font-size:12px}.user-card-actions{display:flex;gap:8px;padding-top:10px;border-top:1px solid #f1f5f9}.user-card-actions button{min-height:38px}.users-empty{grid-column:1/-1;display:grid;justify-items:center;gap:6px;padding:30px 14px;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#fdf2f8);text-align:center}.users-empty>span{font-size:32px}.users-empty p{margin:0;color:#64748b}.users-audit .card-head h3{margin:0}.permission-group-title{display:inline-flex;align-items:center;gap:9px}.permission-group-title i{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#eef2ff;font-size:17px;font-style:normal}.permission-group:nth-child(3n+2) .permission-group-title i{background:#fce7f3}.permission-group:nth-child(3n) .permission-group-title i{background:#dcfce7}
@media(max-width:650px){.users-welcome{align-items:stretch;flex-direction:column;padding:18px}.users-welcome h2{font-size:23px}.users-new-button{width:100%}.users-summary{gap:8px}.users-summary-card{gap:8px;padding:12px}.users-summary-card>span{font-size:21px}.users-summary-card b{font-size:20px}.users-summary-card small{font-size:11px}.users-toolbar{align-items:stretch;flex-direction:column}.users-search{width:auto}.users-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
@media(max-width:430px){.users-summary{grid-template-columns:1fr}.users-summary-card{padding:10px 14px}.users-grid{grid-template-columns:1fr}}

/* Inicio: métricas tipo tarjeta con iconos alegres */
#dashboardMetrics .dashboard-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:16px 14px;border:1px solid transparent;border-radius:18px;transition:transform .16s,box-shadow .16s;box-shadow:0 5px 16px #0f172a0a}#dashboardMetrics .dashboard-metric:hover{transform:translateY(-3px);box-shadow:0 10px 22px #0f172a15}#dashboardMetrics .dashboard-metric-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:16px;background:#fff;font-size:25px;box-shadow:0 4px 12px #0f172a0d}#dashboardMetrics .dashboard-metric-copy{min-width:0}#dashboardMetrics .dashboard-metric .label{font-size:12px;font-weight:750;color:#475569}#dashboardMetrics .dashboard-metric .value{overflow:hidden;margin-top:4px;font-size:clamp(18px,1.7vw,25px);font-weight:900;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}#dashboardMetrics .dashboard-metric-orders{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}#dashboardMetrics .dashboard-metric-sales{background:#ecfdf5;border-color:#a7f3d0;color:#047857}#dashboardMetrics .dashboard-metric-pending{background:#fff7ed;border-color:#fed7aa;color:#c2410c}#dashboardMetrics .dashboard-metric-due{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}#dashboardMetrics .dashboard-metric-overdue{background:#fff1f2;border-color:#fecdd3;color:#be123c}#dashboardMetrics .dashboard-metric-overdue .dashboard-metric-icon{animation:dashboard-flame 1.8s ease-in-out infinite}@keyframes dashboard-flame{0%,100%{transform:rotate(-3deg) scale(1)}50%{transform:rotate(3deg) scale(1.08)}}@media(max-width:820px){#dashboardMetrics .dashboard-metric{gap:9px;padding:12px 10px}#dashboardMetrics .dashboard-metric-icon{flex-basis:40px;width:40px;height:40px;border-radius:13px;font-size:22px}}
#dashboardMetrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){#dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Vista previa en vivo del ticket térmico */
.ticket-preview-area{margin-top:8px;padding:18px;border:1px solid #dbe3ee;border-radius:18px;background:linear-gradient(145deg,#f8fafc,#eef2ff)}.ticket-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.ticket-preview-heading h3{margin:0 0 4px}.ticket-preview-heading p{margin:0}.ticket-preview-chip{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800}.ticket-preview-stage{display:flex;justify-content:center;max-height:610px;overflow:auto;padding:18px 12px;border:1px dashed #cbd5e1;border-radius:15px;background-color:#e9edf3;background-image:linear-gradient(45deg,#dfe5ed 25%,transparent 25%),linear-gradient(-45deg,#dfe5ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe5ed 75%),linear-gradient(-45deg,transparent 75%,#dfe5ed 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}.ticket-preview-stage #ticketPreview{box-sizing:border-box;min-height:340px;padding:16px 12px;background:#fff;color:#111827;font-family:Arial,sans-serif;box-shadow:0 8px 25px #0f172a24;overflow-wrap:anywhere}.ticket-preview-stage #ticketPreview h4{margin:2px 0 6px;text-align:center;font-size:1.25em}.ticket-preview-logo{text-align:center;margin-bottom:5px}.ticket-preview-logo img{max-width:92%;width:auto;object-fit:contain}.ticket-preview-logo-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;margin:0 auto 5px;color:#94a3b8;font-size:21px}.ticket-preview-logo-placeholder small{font-size:10px}.ticket-preview-business{margin-bottom:6px;text-align:center;line-height:1.35}.ticket-preview-center{text-align:center;line-height:1.45}.ticket-preview-text{margin:6px 0;line-height:1.4;white-space:normal}.ticket-preview-separator{margin:7px 0;border-top:1px dashed #64748b}.ticket-preview-row{display:flex;justify-content:space-between;gap:8px;padding:3px 0;text-align:left}.ticket-preview-row b{text-align:right}.ticket-preview-item{display:flex;flex-direction:column;gap:2px;padding:5px 0;border-bottom:1px dashed #cbd5e1;text-align:left}.ticket-preview-item small{text-align:right}.ticket-preview-total{display:flex;justify-content:space-between;gap:8px;padding:8px 0;font-size:1.3em;font-weight:900}.ticket-preview-note{text-align:left;white-space:pre-wrap}.ticket-preview-stage #ticketPreview[style*="text-align: left"] h4,.ticket-preview-stage #ticketPreview[style*="text-align: right"] h4{ text-align:inherit }
@media(max-width:650px){.ticket-preview-area{padding:12px}.ticket-preview-heading{flex-direction:column}.ticket-preview-chip{align-self:flex-start}.ticket-preview-stage{padding:12px 6px}}
.reminder-wa-group{margin:14px 0;padding:12px;border:1px solid #dbeafe;border-radius:17px;background:#f8fbff}.reminder-wa-group-head{display:flex;align-items:center;gap:11px;padding:3px 4px 11px}.reminder-wa-group-head>span{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:14px;background:#dbeafe;font-size:22px}.reminder-wa-group-head h4{margin:0 0 3px;font-size:16px}.reminder-wa-group-head p{margin:0;color:#64748b;font-size:12px}.reminder-wa-group-head>b{margin-left:auto;min-width:30px;padding:5px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;text-align:center}.reminder-wa-group-invoices{border-color:#ddd6fe;background:#faf8ff}.reminder-wa-group-invoices .reminder-wa-group-head>span,.reminder-wa-group-invoices .reminder-wa-group-head>b{background:#ede9fe;color:#6d28d9}.reminder-wa-group-orders{border-color:#fed7aa;background:#fffaf5}.reminder-wa-group-orders .reminder-wa-group-head>span,.reminder-wa-group-orders .reminder-wa-group-head>b{background:#ffedd5;color:#c2410c}.reminder-wa-group-clients{border-color:#a7f3d0;background:#f4fdf8}.reminder-wa-group-clients .reminder-wa-group-head>span,.reminder-wa-group-clients .reminder-wa-group-head>b{background:#d1fae5;color:#047857}.reminder-wa-group .reminder-wa-card{margin:8px 0 0}
.restore-backup-box{margin-top:18px;padding:16px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7}.restore-backup-box h4{margin:0 0 6px;color:#991b1b}.restore-backup-box p{font-size:13px;line-height:1.5}.restore-backup-box .danger{width:100%}
