:root{--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#18211e;--muted:#67716d;--line:#dce2df;--line-strong:#c9d1cd;--paper:#fff;--canvas:#f3f6f4;--green:#1f5c4e;--green-dark:#173f36;--green-soft:#e5f1ed;--lime:#c9f24d;--lime-dark:#a7cf2d;--danger:#b33c32;--warning:#fff0b8;--shadow:0 18px 50px #18211e17;--radius-lg:22px;--radius-md:14px;--radius-sm:10px}*{box-sizing:border-box}html{background:var(--canvas);font-size:16px}body{min-width:320px;color:var(--ink);background:radial-gradient(circle at 92% -10%, #c9f24d30, transparent 25rem), var(--canvas);margin:0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.45}button,input,textarea,select{font:inherit}button,select,input[type=checkbox]{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #1f5c4e33}.hidden{display:none!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{min-height:100vh}.topbar{color:#fff;background:var(--green-dark);border-bottom:4px solid var(--lime);justify-content:space-between;align-items:center;gap:24px;min-height:86px;padding:16px clamp(20px,4vw,64px);display:flex}.brand-lockup,.topbar-actions,.section-heading,.highlight-heading,.queue-header,.queue-title-row,.queue-toolbar,.print-controls,.form-actions{align-items:center;display:flex}.brand-lockup{gap:14px}.brand-mark{width:46px;height:46px;color:var(--green-dark);background:var(--lime);letter-spacing:-.03em;border-radius:13px;place-items:center;font-size:.85rem;font-weight:900;display:grid;transform:rotate(-3deg)}.brand-logo{object-fit:contain;flex:none;width:112px;height:68px;display:block}.eyebrow,.section-kicker{letter-spacing:.14em;text-transform:uppercase;margin:0;font-size:.75rem;font-weight:800}.eyebrow{color:var(--lime)}.topbar h1{color:#fff;letter-spacing:-.035em;margin:1px 0 0;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.1}.topbar-actions{justify-content:flex-end;gap:20px}.storage-note{color:#dce9e5;white-space:nowrap;align-items:center;gap:8px;font-size:.875rem;display:inline-flex}.storage-dot{background:var(--lime);border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #c9f24d1f}main{width:min(1480px,100% - 40px);margin:34px auto 50px}.tab-nav{background:#e7eeea;border:1px solid #cbd8d2;border-radius:14px;gap:8px;margin-bottom:22px;padding:6px;display:flex}.tab-button{min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:1 1 0;padding:0 22px;font-weight:850;transition:color .14s,background .14s,box-shadow .14s}.tab-button:hover{color:var(--green-dark);background:#fff9}.tab-view{min-width:0}.workspace{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);align-items:start;gap:24px;display:grid}.editor-panel,.highlight-panel,.queue-section{border-radius:var(--radius-lg);box-shadow:var(--shadow);background:#fffffff2;border:1px solid #c9d1cdd1}.editor-panel{padding:clamp(22px,3vw,34px)}.highlight-panel{border-color:#bfd5c8;border-top:5px solid var(--green);background:#f6faf7;min-width:0;padding:clamp(22px,2.5vw,30px);scroll-margin-top:20px}.highlight-heading>div{min-width:0}.highlight-count{color:#fff;background:var(--green);text-align:center;border-radius:10px;flex:none;min-width:40px;padding:7px 10px;font-size:1.1rem;font-weight:850}.highlight-legend{flex-wrap:wrap;gap:10px 16px;margin-top:18px;font-size:.875rem;display:flex}.highlight-legend>span{align-items:center;gap:7px;display:inline-flex}.highlight-legend-dot{background:#216449;border-radius:3px;width:10px;height:10px}.highlight-legend-dot.is-problem{background:#a33128}.highlight-hint{color:var(--muted);margin:10px 0 18px;font-size:.875rem}.highlight-orders-content{scrollbar-gutter:stable;gap:8px;max-height:650px;padding:3px 5px 3px 3px;display:grid;overflow-y:auto}.highlight-empty{text-align:center;background:#fff;border:1px dashed #bfd5c8;border-radius:12px;padding:22px 16px}.highlight-empty h3{margin:0 0 8px;font-size:1rem}.highlight-empty p{color:var(--muted);margin:0;font-size:.875rem}.highlight-card{color:#fff;text-align:left;overflow-wrap:anywhere;background:#216449;border:1px solid #195039;border-radius:10px;gap:4px;width:100%;min-width:0;min-height:72px;padding:12px 15px;line-height:1.35;display:grid}.highlight-card.is-problem{background:#a33128;border-color:#8c241b}.highlight-card:hover{filter:brightness(1.08)}.highlight-card:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.highlight-card strong{font-size:1rem;font-weight:800}.highlight-card>span{font-size:.875rem}.highlight-queue-summary{border-left:4px solid var(--green);color:var(--green-dark);background:#e7f2eb;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px;padding:13px 16px;font-size:.875rem;display:flex}.highlight-queue-summary a{color:inherit;text-underline-offset:3px;font-weight:800}.section-heading,.highlight-heading,.queue-header{justify-content:space-between;gap:20px}.section-kicker,.highlight-panel .section-kicker{color:var(--green)}.section-heading h2,.highlight-heading h2,.queue-header h2{letter-spacing:-.04em;margin:3px 0 0;font-size:clamp(1.35rem,2.2vw,1.85rem);line-height:1.15}.highlight-heading h2{color:var(--green-dark);scroll-margin-top:24px}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px;display:grid}.customer-order-fieldset{border:1px solid var(--line);background:#f5f8f6;border-radius:12px;min-width:0;margin:0;padding:16px}.customer-order-fieldset legend{color:var(--green-dark);padding:0 6px;font-size:.95rem;font-weight:800}.customer-lookup-row,.customer-save-row,.customers-header,.client-form-heading,.client-form-actions,.client-list-item{justify-content:space-between;align-items:center;gap:14px;display:flex}.customer-lookup-row{align-items:end}.customer-lookup-field{flex:auto}.customer-new-button{flex:none;min-height:46px}.customer-suggestions{z-index:4;gap:5px;margin-top:6px;display:grid;position:relative}.customer-suggestions:empty{display:none}.customer-suggestion{width:100%;color:var(--ink);border:1px solid var(--line-strong);text-align:left;background:#fff;border-radius:9px;gap:2px;padding:9px 11px;display:grid}.customer-suggestion:hover,.customer-suggestion:focus-visible{background:var(--green-soft);border-color:#9dbfb2}.customer-suggestion strong{font-size:.875rem}.customer-suggestion span{color:var(--muted);font-size:.78rem}.customer-order-grid,.client-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.customer-address-field,.client-address-field{grid-column:1/-1}.customer-save-row{margin-top:12px}.customer-save-row p,.client-form-actions p{min-width:0;color:var(--muted);margin:0;font-size:.78rem}.customer-save-row p[data-state=saved]{color:var(--green);font-weight:750}.field select{width:100%;min-height:46px;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fbfcfb;padding:0 13px}.field select:hover{border-color:#9eaaa5}.field select:focus{border-color:var(--green);background:#fff;outline:none;box-shadow:0 0 0 3px #1f5c4e1a}.field{color:#33413c;gap:7px;min-width:0;font-size:.875rem;font-weight:700;display:grid}.field b{color:var(--danger)}.field-span-2{grid-column:span 2}.field-span-3{grid-column:1/-1}.field input,.field textarea,.compact-field select,.search-wrap input{width:100%;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fbfcfb;transition:border-color .15s,box-shadow .15s,background .15s}.field input,.compact-field select,.search-wrap input{min-height:46px;padding:0 13px}.field textarea{resize:vertical;min-height:72px;padding:11px 13px}.field input:hover,.field textarea:hover,.compact-field select:hover,.search-wrap input:hover{border-color:#9eaaa5}.field input:focus,.field textarea:focus,.compact-field select:focus,.search-wrap input:focus{border-color:var(--green);background:#fff;outline:none;box-shadow:0 0 0 3px #1f5c4e1a}.money-input{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fbfcfb;grid-template-columns:auto 1fr;align-items:center;min-height:46px;display:grid;overflow:hidden}.money-input:focus-within{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px #1f5c4e1a}.money-input>span{color:var(--muted);padding-left:13px;font-weight:600}.money-input input{background:0 0;border:0;min-width:0;box-shadow:none!important}.money-input-total{background:var(--green-soft);border-color:#aecbc1}.form-actions{justify-content:space-between;gap:20px;padding-top:24px}.form-actions p{color:var(--muted);margin:0;font-size:.78rem}kbd{color:#52605b;border:1px solid var(--line);background:#f1f4f2;border-bottom-width:2px;border-radius:5px;place-items:center;min-width:22px;padding:2px 5px;font-family:inherit;font-size:.7rem;display:inline-grid}.button{border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:0 17px;font-weight:800;transition:transform .14s,box-shadow .14s,background .14s,opacity .14s;display:inline-flex}.button svg,.dialog-close-button svg,.search-wrap svg,.row-action svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.45}.button-primary{color:var(--green-dark);background:var(--lime);border-color:var(--lime-dark);box-shadow:0 8px 18px #a7cf2d2e}.button-primary:hover:not(:disabled){background:#d6fa68;box-shadow:0 10px 22px #a7cf2d42}.button-secondary{color:var(--green-dark);background:#fff;border-color:#d3ddd9}.button-dark{color:#fff;background:var(--green-dark);border-color:var(--green-dark);box-shadow:0 8px 20px #173f3624}.text-button,.footer-action{color:var(--green);text-underline-offset:3px;background:0 0;border:0;padding:3px 0;font-size:.875rem;font-weight:800;text-decoration:underline;text-decoration-thickness:1px}.text-button.danger,.footer-action{color:var(--danger)}.text-button:disabled{color:var(--muted);cursor:not-allowed;opacity:.5;text-decoration:none}.ticket-card{color:#111;background:#fff;border:2px solid #111;font-family:Arial,Helvetica,sans-serif;line-height:1.25}.ticket-top{border-bottom:3px solid #111;justify-content:center;align-items:center;padding:12px 14px 10px;display:flex;position:relative}.ticket-brand{justify-content:center;align-items:center;gap:9px;display:flex}.ticket-brand-logo{object-fit:contain;object-position:center;filter:brightness(0);flex:none;width:118px;height:62px;display:block}.ticket-brand-mark{color:#000;border:2px solid #000;border-radius:6px;place-items:center;width:31px;height:31px;font-size:.58rem;font-weight:900;display:grid}.ticket-brand strong{letter-spacing:.05em;font-size:1rem;display:block}.ticket-brand small,.ticket-number small{color:#333;letter-spacing:.09em;text-transform:uppercase;font-size:.58rem;font-weight:700;display:block}.ticket-number{text-align:right}.ticket-heading-right{align-items:center;gap:9px;display:flex;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.ticket-copy-type{letter-spacing:.08em;border:2px solid #111;border-radius:4px;padding:4px 7px;font-size:.58rem;font-weight:900}.ticket-copy-type.is-copy{color:#fff;background:#111}.ticket-number strong{font-size:1.05rem;line-height:1;display:block}.ticket-customer{border-bottom:1px solid #111;padding:11px 14px}.ticket-customer-name{letter-spacing:-.02em;text-transform:uppercase;margin:0;font-size:1.08rem;font-weight:900}.ticket-cta{letter-spacing:.04em;vertical-align:2px;border:1px solid #111;border-radius:4px;margin-left:7px;padding:2px 6px;font-size:.67rem}.ticket-address{white-space:pre-line;margin:5px 0 0;font-size:.72rem}.ticket-date-grid,.ticket-money-grid{border-bottom:1px solid #111;grid-template-columns:repeat(2,1fr);display:grid}.ticket-date-cell,.ticket-money-cell{border-right:1px solid #111;min-width:0;padding:8px 9px}.ticket-date-cell:last-child,.ticket-money-cell:last-child{background:#e8e8e8;border-right:0}.ticket-delivery-window{background:#f2f2f2;border-bottom:1px solid #111;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px;padding:7px 9px;display:grid}.ticket-delivery-window .ticket-label{margin:0}.ticket-delivery-window strong{overflow-wrap:anywhere;text-align:right;font-size:.83rem}.ticket-date-cell strong,.ticket-money-cell strong{overflow-wrap:anywhere;font-size:.83rem;display:block}.ticket-money-cell{padding-top:7px;padding-bottom:7px}.ticket-label{letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px;font-size:.52rem;font-weight:800;display:block}.ticket-detail{border-bottom:1px solid #111;min-height:118px;padding:11px 14px}.ticket-detail-text{white-space:pre-line;margin:6px 0 0;font-size:.76rem;font-weight:700}.ticket-note{background:#f2f2f2;border-bottom:1px solid #111;padding:9px 14px}.ticket-note.is-empty{display:none}.ticket-note p{white-space:pre-line;margin:4px 0 0;font-size:.7rem;font-weight:800}.ticket-footer{grid-template-columns:1fr auto;align-items:end;gap:10px;padding:8px 14px 10px;font-size:.64rem;display:grid}.ticket-footer strong{font-size:.73rem;display:block}.ticket-checks{text-transform:uppercase;gap:7px;font-size:.57rem;font-weight:800;display:flex}.ticket-contact-note{text-align:center;border-top:1px solid #111;margin:0;padding:6px 14px 8px;font-size:.64rem;font-weight:700;line-height:1.2}.check-box{vertical-align:-1px;border:1.4px solid #111;width:10px;height:10px;margin-right:3px;display:inline-block}.queue-section{margin-top:24px;padding:clamp(22px,3vw,32px)}.queue-title-row{gap:10px}.count-badge{min-width:28px;height:28px;color:var(--green-dark);background:var(--green-soft);border-radius:999px;place-items:center;padding:0 8px;font-size:.8rem;font-weight:900;display:inline-grid}.print-controls{flex-wrap:wrap;gap:12px}.print-policy{color:var(--green-dark);background:var(--green-soft);white-space:nowrap;border:1px solid #c8ddd5;border-radius:8px;padding:7px 10px;font-size:.78rem;font-weight:850}.compact-field{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;gap:4px;font-size:.69rem;font-weight:800;display:grid}.compact-field select{letter-spacing:normal;text-transform:none;min-width:210px;height:44px;padding-right:34px;font-size:.875rem;font-weight:700}.queue-toolbar{border:1px solid var(--line);background:#f5f7f6;border-radius:12px;flex-wrap:wrap;justify-content:space-between;gap:18px;margin-top:24px;padding:12px 14px}.select-all-wrap{white-space:nowrap;align-items:center;gap:9px;font-size:.875rem;font-weight:750;display:inline-flex}.date-filter-group{align-items:center;gap:7px;display:flex}.date-filter-group select,.date-filter-group input{min-height:40px;color:var(--ink);border:1px solid var(--line-strong);background:#fff;border-radius:9px;padding:0 10px;font-size:.8rem;font-weight:700}.filter-clear{color:var(--danger);text-underline-offset:3px;white-space:nowrap;background:0 0;border:0;padding:4px 2px;font-size:.74rem;font-weight:800;text-decoration:underline}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.search-wrap{flex:260px;width:min(390px,100%);margin-left:auto;position:relative}.search-wrap svg{width:18px;color:var(--muted);position:absolute;top:50%;left:12px;transform:translateY(-50%)}.search-wrap input{background:#fff;min-height:40px;padding-left:39px;font-size:.875rem}.order-table-wrap{border:1px solid var(--line);border-radius:14px;margin-top:14px;overflow-x:auto}.order-table{border-collapse:collapse;width:100%;min-width:1020px;font-size:.875rem}.order-table th{color:var(--muted);border-bottom:1px solid var(--line);letter-spacing:.06em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f7f9f8;padding:11px 12px;font-size:.69rem;font-weight:850}.order-table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:14px 12px}.order-table tr:last-child td{border-bottom:0}.order-table tbody tr:hover{background:#fbfdfc}.order-table tbody tr.is-selected{background:#f0f7f4}.order-table tbody tr.is-highlighted{background:#e7f3ec}.order-table tbody tr.is-highlighted:hover,.order-table tbody tr.is-highlighted.is-selected{background:#d5eadf}.order-table tbody tr.is-highlighted td:first-child{box-shadow:inset 4px 0 #216449}.order-table tbody tr.has-problem{background:#fff3ee}.order-table tbody tr.has-problem:hover,.order-table tbody tr.has-problem.is-selected{background:#ffe7dd}.order-table tbody tr.has-problem td:first-child{box-shadow:inset 4px 0 #ad352a}.customer-cell strong,.detail-cell strong{text-overflow:ellipsis;white-space:nowrap;max-width:245px;display:block;overflow:hidden}.customer-cell small,.detail-cell small,.date-cell small{max-width:245px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:.75rem;display:block;overflow:hidden}.ticket-id-chip,.status-chip{white-space:nowrap;border-radius:6px;align-items:center;padding:4px 7px;font-size:.72rem;font-weight:850;display:inline-flex}.ticket-id-chip{color:#3b4843;background:#edf0ee}.status-chip{color:var(--green-dark);background:var(--green-soft)}.status-chip.printed{color:#59522d;background:#f5efcf}.order-status-cell{min-width:220px}.order-status-select{border:1px solid;border-radius:9px;width:100%;min-height:42px;margin-bottom:6px;padding:8px 28px 8px 10px;font-size:.875rem;font-weight:750;display:block}.order-status-select[data-status=por-armar]{color:#704b00;background:#fff4d6}.order-status-select[data-status=armada]{color:#195341;background:#e5f1ed}.order-status-select[data-status=en-logistica]{color:#1c5080;background:#eaf3ff}.order-status-select[data-status=en-ruta]{color:#633e85;background:#f1eafa}.order-status-select[data-status=entregada]{color:#165b2b;background:#e0f4e4}.order-status-select[data-status=devuelta]{color:#9b3027;background:#fce9e6}.order-status-select[data-status=pedido-con-problemas]{color:#8c241b;background:#ffe1d8}.order-status-select[data-status=pedido-destacado]{color:#195039;background:#d8eee1}.order-status-select[data-status=en-proceso]{color:#704b00;background:#fff4d6}.order-status-select[data-status=pedido-resuelto]{color:#195039;background:#e5f1ed}.order-status-select option{color:var(--ink);background:#fff}.menu-item-builder{border:1px solid var(--line);background:#f5f7f6;border-radius:12px;grid-template-columns:88px minmax(0,1fr) auto;align-items:end;gap:10px;min-width:0;margin:0;padding:14px;display:grid}.menu-item-builder legend{color:var(--green-dark);padding:0 5px;font-size:.875rem;font-weight:750}.menu-item-builder .field>span{font-size:.875rem}.menu-item-field{grid-column:2/-1}.menu-side-field{grid-column:1/3}.menu-item-builder select{width:100%;min-width:0;min-height:46px;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius-sm);text-overflow:ellipsis;background:#fbfcfb;padding:0 13px}.menu-management{flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:14px;display:flex}.menu-management .text-button{min-height:40px;font-size:.875rem}.button-outline{color:var(--green-dark);border-color:var(--line-strong);background:#fff}.button-outline:hover{background:var(--green-soft)}.new-dish-dialog{width:min(500px,100% - 28px)}.new-dish-form-body{margin-top:22px}.order-detail-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.order-detail-item{border:1px solid var(--line);background:#f5f9f6;border-radius:10px;align-items:center;gap:12px;padding:8px 10px 8px 14px;display:flex}.order-detail-item>span{white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-width:0;font-size:.9375rem;font-weight:650}.detail-remove-button{color:#9b3027;background:#fff;border:1px solid #e3bcb4;border-radius:8px;flex:none;place-items:center;width:44px;height:44px;display:grid}.detail-remove-button:hover{background:#ffe7df}.detail-remove-button svg{width:18px;height:18px}.order-detail-empty{border:1px dashed var(--line-strong);color:var(--muted);border-radius:10px;margin:0;padding:16px;font-weight:400}.order-detail-text-editor summary{width:fit-content;color:var(--green);cursor:pointer;padding:8px 0;font-weight:750}.order-detail-text-editor textarea{margin-top:6px;display:block}.button-danger{color:#fff;background:#9b3027;border-color:#9b3027}.button-danger:hover{background:#7d241d}.delete-order-dialog .view-order-header,.delete-order-dialog .view-order-actions{flex-shrink:0}.delete-order-body{min-height:0;margin-top:18px;overflow:auto}.delete-order-body>p:first-child{margin:0 0 12px}.delete-order-list{overflow-wrap:anywhere;border:1px solid var(--line);background:#fff;border-radius:10px;gap:6px;max-height:150px;margin:0 0 18px;padding:12px 12px 12px 28px;font-size:.875rem;display:grid;overflow:auto}#deleteOrderCode{letter-spacing:.25em;font-size:1.25rem}.delete-order-error{color:#9b3027;margin:10px 0 0;font-size:.875rem;font-weight:700}.delete-order-error:empty{display:none}#viewOrderDialog .view-order-header,#viewOrderDialog .view-order-actions{flex-shrink:0}.view-order-body{min-height:0;margin-top:20px;overflow:auto}#viewOrderDialog .view-order-content{margin-top:18px;overflow:visible}.view-order-controls{border:1px solid var(--line);background:#fff;border-radius:12px;gap:12px;padding:16px;display:grid}.view-highlight-label{color:#fff;background:#216449;border-radius:7px;width:fit-content;max-width:100%;padding:6px 10px;font-size:.875rem;font-weight:750}.view-highlight-label.is-problem{background:#a33128}.view-followup-label{gap:6px;min-width:0;font-size:.875rem;font-weight:750;display:grid}.view-followup-label .order-status-select{min-width:0;margin:0}.view-followup-note{color:var(--muted);margin:0;font-size:.875rem}.view-order-actions{flex-wrap:wrap;gap:10px}.menu-item-builder .button{min-height:46px}@media (width<=700px){.menu-item-builder{grid-template-columns:80px minmax(0,1fr)}.menu-item-builder .menu-side-field,.menu-item-builder .button{grid-column:1/-1}}.amount-cell{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800}.date-cell{color:#45524d;white-space:nowrap;font-size:.8rem;font-weight:750}.date-cell.delivery{color:var(--green-dark);font-weight:900}.row-actions{justify-content:flex-end;gap:4px;display:flex}.row-action{color:#405049;background:0 0;border:1px solid #0000;border-radius:9px;place-items:center;width:38px;height:38px;display:inline-grid}.row-action:hover{color:var(--green-dark);background:var(--green-soft)}.row-action.view{color:var(--green)}.row-action.danger:hover{color:var(--danger);background:#fae8e5}.empty-state{text-align:center;border:1px dashed #bec9c4;border-radius:14px;place-items:center;min-height:230px;margin-top:14px;padding:35px;display:grid}.empty-icon{width:54px;height:54px;color:var(--green);background:var(--green-soft);border-radius:15px;place-items:center;margin:0 auto 12px;font-size:1.5rem;display:grid}.empty-state h3{margin:0;font-size:1.08rem}.empty-state p{max-width:430px;color:var(--muted);margin:6px auto 0;font-size:.875rem}.customers-section{border-radius:var(--radius-lg);box-shadow:var(--shadow);background:#fffffff5;border:1px solid #c9d1cdd1;margin-top:24px;padding:clamp(22px,3vw,34px);scroll-margin-top:20px}.customers-header>div{min-width:0}.customers-header h2{color:var(--green-dark);letter-spacing:-.04em;margin:3px 0 0;font-size:clamp(1.4rem,2.4vw,1.95rem);line-height:1.15}.customers-subtitle{max-width:740px;color:var(--muted);margin:9px 0 0;font-size:.9375rem}.customers-toolbar{border:1px solid var(--line);background:#f5f7f6;border-radius:12px;gap:14px;margin-top:22px;padding:12px 14px;display:flex}.customers-toolbar .search-wrap{width:min(520px,100%);margin:0}.client-form{background:#f2f8f4;border:1px solid #b7d5c5;border-radius:13px;margin-top:16px;padding:18px}.client-form-heading h3{color:var(--green-dark);margin:3px 0 0;font-size:1.2rem}.client-form-actions{align-items:end;margin-top:14px}.client-form-actions p:empty{display:none}.client-list{gap:9px;margin-top:16px;display:grid}.client-list-item{border:1px solid var(--line);background:#fff;border-radius:12px;align-items:flex-start;padding:14px 16px}.client-list-item:hover{background:#fbfdfc;border-color:#b7d5c5}.client-list-main{min-width:0}.client-list-main strong{overflow-wrap:anywhere;font-size:1rem;display:block}.client-list-main span{color:var(--muted);overflow-wrap:anywhere;margin-top:3px;font-size:.82rem;display:block}.client-list-main span+span{margin-top:1px}.client-list-item .row-action{flex:none}.client-profile-link{color:inherit;text-align:left;background:0 0;border:0;flex:1;padding:0}.client-profile-link .client-profile-hint{color:var(--green);margin-top:8px;font-size:.875rem;font-weight:750}.client-list-main .client-ranking-value{color:var(--green-dark);margin:4px 0 7px;font-size:.9rem;font-weight:750}.client-ranking-note{color:var(--muted);margin:12px 0 0;font-size:.875rem}.subtab-nav{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:8px;margin:0 0 22px;padding-bottom:12px;display:flex}.subtab-button{border:1px solid var(--line);min-height:42px;color:var(--green-dark);font:inherit;cursor:pointer;background:#fff;border-radius:10px;padding:9px 18px;font-weight:750}.subtab-button[aria-selected=true]{background:var(--green-dark);border-color:var(--green-dark);color:#fff}.analytics-heading{margin-bottom:18px}.analytics-heading h2,.analytics-heading h3{color:var(--green-dark);margin:4px 0 8px}.analytics-heading p{color:var(--muted);margin:0;font-size:.9rem}.analytics-toolbar{flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0;display:flex}.analytics-toolbar .field{flex:160px}.analytics-table-wrap{border:1px solid var(--line);border-radius:12px;max-width:100%;overflow-x:auto}.analytics-table{border-collapse:collapse;width:100%;min-width:650px;font-size:.9rem}.analytics-table th,.analytics-table td{text-align:left;border-bottom:1px solid var(--line);padding:13px 14px}.analytics-table th{color:var(--green-dark);background:#edf4ef}.analytics-table td.numeric,.analytics-table th.numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.analytics-table tbody tr:last-child td{border-bottom:0}.analytics-table small{color:var(--muted);display:block}.analytics-table .text-button{text-align:left}.analytics-range{flex-wrap:wrap;flex:2 320px;gap:12px;display:flex}.analytics-note{color:var(--muted);margin:14px 0;font-size:.9rem}.pareto-chart{border:1px solid var(--line);background:#fff;border-radius:12px;max-width:100%;margin:20px 0;overflow-x:auto}.pareto-chart svg{width:100%;min-width:720px;height:auto;display:block}.pareto-vital td:first-child{border-left:4px solid #bf942f}.production-draft{gap:8px;margin:14px 0;display:grid}.production-draft-row{border:1px solid var(--line);background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.production-draft-row span{overflow-wrap:anywhere}.production-total{color:var(--green-dark);font-size:1.05rem;font-weight:800}.production-status{color:var(--green-dark)}.client-profile-nav,.client-profile-heading,.client-history-heading,.client-history-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;display:flex}.client-profile-heading{align-items:start;margin:26px 0 22px}.client-profile-heading h2{color:var(--green-dark);overflow-wrap:anywhere;margin:3px 0 8px;font-size:clamp(1.5rem,3vw,2rem)}.client-profile-contact p{color:var(--muted);overflow-wrap:anywhere;margin:3px 0}.client-profile-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}@media (width<=700px){.client-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=380px){.client-profile-metrics{grid-template-columns:minmax(0,1fr)}}.client-last-order{border:1px solid var(--line);background:#f5f7f6;border-radius:12px;max-width:100%;padding:14px 18px}.client-last-order span,.client-last-order small{color:var(--muted);font-size:.875rem;display:block}.client-last-order strong{color:var(--green-dark);overflow-wrap:anywhere;margin:5px 0;display:block}.client-metric{background:var(--green-soft);border:1px solid var(--line);border-radius:14px;min-width:0;padding:18px}.client-metric span,.client-metric small{font-size:.875rem;display:block}.client-metric strong{color:var(--green-dark);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:8px 0;font-size:clamp(1.3rem,2vw,1.75rem);display:block}.client-metric small,.client-profile-period{color:#506159}.client-profile-period{margin:14px 0 28px;font-size:.875rem}.client-history-heading h3{margin:0;font-size:1.2rem}.client-history-list{gap:14px;margin-top:16px;display:grid}.client-history-order{border:1px solid var(--line);background:#fff;border-radius:14px;min-width:0;padding:18px}.client-history-dates{flex-wrap:wrap;gap:8px 24px;margin:14px 0 0;font-size:.875rem;display:flex}.client-history-dates div{min-width:0}.client-history-dates dt{color:var(--muted)}.client-history-dates dd{overflow-wrap:anywhere;margin:2px 0 0}.client-history-detail{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;font-size:1rem}.client-history-order .status-chip{white-space:normal;font-size:.875rem}.report-section{border-radius:var(--radius-lg);box-shadow:var(--shadow);background:#fffffff5;border:1px solid #c9d1cdd1;margin-top:24px;padding:clamp(22px,3vw,34px);scroll-margin-top:20px}.report-header,.report-filters,.report-block-heading{align-items:center;display:flex}.report-header{justify-content:space-between;gap:22px}.report-header>div{min-width:0}.report-header h2{color:var(--green-dark);letter-spacing:-.04em;margin:3px 0 0;font-size:clamp(1.4rem,2.4vw,1.95rem);line-height:1.15}.report-subtitle{max-width:740px;color:var(--muted);margin:9px 0 0;font-size:.9375rem}.report-total-badge{min-width:110px;color:var(--green-dark);background:var(--green-soft);text-align:center;white-space:nowrap;border:1px solid #b7d5c5;border-radius:12px;flex:none;padding:11px 14px;font-size:1rem;font-weight:850}.report-filters{border:1px solid var(--line);background:#f5f8f6;border-radius:13px;flex-wrap:wrap;gap:12px;margin-top:26px;padding:16px}.report-filters .compact-field{min-width:170px}.report-filter-mode{min-width:185px}.report-range-fields{flex-wrap:wrap;gap:12px;display:flex}.report-range-fields .compact-field{min-width:165px}.report-clear-button{min-height:42px;margin-left:auto}.report-filter-summary{min-height:20px;color:var(--muted);margin:12px 2px 0;font-size:.875rem}.report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px;display:grid}.report-summary-card{border:1px solid var(--line);background:#f6f8f7;border-radius:12px;min-width:0;padding:18px}.report-summary-card span{color:var(--muted);font-size:.875rem;font-weight:700;display:block}.report-summary-card strong{color:var(--ink);font-variant-numeric:tabular-nums;margin-top:6px;font-size:clamp(1.65rem,3vw,2.2rem);line-height:1;display:block}.report-summary-card-primary{background:#e8f4ec;border-color:#b7d5c5}.report-summary-card-primary strong{color:var(--green-dark)}.report-block{margin-top:26px}.report-block+.report-block{border-top:1px solid var(--line);padding-top:24px}.report-block-heading{justify-content:space-between;gap:14px;margin-bottom:12px}.report-block-heading h3{color:var(--ink);margin:0;font-size:1.08rem}.report-block-heading p{color:var(--muted);margin:4px 0 0;font-size:.875rem}.report-table-wrap{border:1px solid var(--line);border-radius:11px;overflow-x:auto}.report-table{border-collapse:collapse;width:100%;min-width:420px;font-size:.9375rem}.report-table th,.report-table td{text-align:left;padding:11px 14px}.report-table th{color:var(--muted);border-bottom:1px solid var(--line);letter-spacing:.06em;text-transform:uppercase;background:#f7f9f8;font-size:.72rem;font-weight:850}.report-table td{border-bottom:1px solid var(--line)}.report-table tbody tr:last-child td{border-bottom:0}.report-table td:last-child,.report-table th:last-child{text-align:right;white-space:nowrap;width:1%}.report-table .report-number{color:var(--green-dark);font-variant-numeric:tabular-nums;font-weight:850}.report-empty{color:var(--muted);border:1px dashed var(--line-strong);background:#f7f9f8;border-radius:10px;padding:20px 16px;font-size:.875rem}.app-shell>footer{width:min(1480px,100% - 40px);color:var(--muted);justify-content:space-between;gap:20px;margin:0 auto;padding:0 4px 34px;font-size:.8rem;display:flex}.view-order-dialog{background:0 0;border:0;border-radius:20px;width:min(640px,100% - 28px);max-height:calc(100vh - 28px);padding:0;overflow:hidden;box-shadow:0 28px 90px #101e194d}.view-order-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0c1915ad}.view-order-shell{background:#f5f7f6;flex-direction:column;max-height:calc(100vh - 28px);padding:clamp(20px,4vw,30px);display:flex}.view-order-header{justify-content:space-between;align-items:center;gap:20px;display:flex}.view-order-header h2{letter-spacing:-.04em;margin:3px 0 0;font-size:clamp(1.35rem,3vw,1.8rem)}.dialog-close-button{width:42px;height:42px;color:var(--green-dark);border:1px solid var(--line-strong);background:#fff;border-radius:11px;flex:none;place-items:center;display:grid}.dialog-close-button:hover{background:var(--green-soft)}.view-order-content{width:min(100%,520px);margin:22px auto 0;overflow:auto}.view-order-content .ticket-card{box-shadow:0 16px 36px #173f3621}.view-order-actions{justify-content:flex-end;margin-top:18px;display:flex}.toast-region{z-index:20;pointer-events:none;gap:10px;display:grid;position:fixed;bottom:24px;right:24px}.toast{color:#fff;background:var(--green-dark);border-left:5px solid var(--lime);border-radius:10px;max-width:min(370px,100vw - 40px);padding:12px 15px;font-size:.875rem;font-weight:750;animation:.18s ease-out toast-in;box-shadow:0 14px 35px #0c191540}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.print-area{display:none}@media (width<=1100px){.workspace{grid-template-columns:1fr}.highlight-panel{grid-row:1}.highlight-orders-content{max-height:600px}}@media (width<=760px){.topbar{align-items:flex-start}.topbar-actions{flex-direction:column-reverse;align-items:flex-end;gap:9px}.storage-note{font-size:.74rem}.form-grid,.customer-order-grid,.client-form-grid{grid-template-columns:1fr}.customer-address-field,.client-address-field,.field-span-2,.field-span-3{grid-column:auto}.form-actions,.queue-header,.print-controls,.queue-toolbar,.report-header,.customers-header,.customer-lookup-row,.customer-save-row,.client-form-heading,.client-form-actions{flex-direction:column;align-items:stretch}.report-header{gap:14px}.report-total-badge{align-self:flex-start}.form-actions p{text-align:center;order:2}.print-controls .button,.compact-field,.compact-field select,.search-wrap,.customer-new-button,.customer-save-row .text-button,.client-form-actions .button,.customers-header .button{width:100%}.report-filters,.report-range-fields{flex-direction:column;align-items:stretch}.report-filters .compact-field,.report-range-fields .compact-field,.report-clear-button{width:100%}.report-clear-button{margin-left:0}.report-summary-grid{grid-template-columns:1fr}.queue-toolbar{gap:12px}.search-wrap{order:-1;margin:0}.date-filter-group{align-items:stretch;width:100%}.date-filter-group select,.date-filter-group input{flex:1;min-width:0}#deleteSelectedButton{align-self:flex-start}.app-shell>footer{flex-direction:column;align-items:center}}@media (width<=520px){.topbar{min-height:auto;padding:14px 16px}.brand-mark{width:40px;height:40px}.brand-logo{width:94px;height:58px}.topbar h1{font-size:1.08rem}.topbar-actions .button{min-height:38px;padding:0 11px;font-size:.77rem}.storage-note{display:none}main,.app-shell>footer{width:min(100% - 24px,1480px)}main{margin-top:18px}.tab-nav{margin-bottom:16px}.tab-button{min-height:42px;padding:0 12px}.editor-panel,.highlight-panel,.queue-section,.report-section,.customers-section{border-radius:16px;padding:19px}.highlight-panel{min-height:0}}@media print{html,body{width:auto;height:auto;background:#fff!important;margin:0!important;padding:0!important}body{-webkit-print-color-adjust:exact;print-color-adjust:exact;min-width:0}.app-shell,.view-order-dialog,.toast-region{display:none!important}.print-area{width:100%;display:block!important}.print-sheet{break-after:page;page-break-after:always;width:100%;margin:0}.print-sheet:last-child{break-after:auto;page-break-after:auto}.print-ticket{width:100%;box-shadow:none;break-inside:avoid;page-break-inside:avoid;font-size:12pt;line-height:1.12;overflow:visible}.print-ticket .ticket-brand-mark,.print-ticket .ticket-brand-logo,.print-ticket .ticket-brand strong,.print-ticket .ticket-brand small,.print-ticket .ticket-number small,.print-ticket .ticket-number strong,.print-ticket .ticket-copy-type,.print-ticket .ticket-customer-name,.print-ticket .ticket-cta,.print-ticket .ticket-address,.print-ticket .ticket-date-cell strong,.print-ticket .ticket-money-cell strong,.print-ticket .ticket-delivery-window strong,.print-ticket .ticket-label,.print-ticket .ticket-detail-text,.print-ticket .ticket-note p,.print-ticket .ticket-footer,.print-ticket .ticket-footer strong,.print-ticket .ticket-checks,.print-ticket .ticket-contact-note{font-size:12pt}.print-ticket .ticket-top{border-bottom-width:2px;gap:8px;padding:4px 8px;position:relative}.print-ticket .ticket-brand{gap:6px}.print-ticket .ticket-brand-mark{border-width:1px;border-radius:4px;width:28px;height:28px;line-height:1}.print-ticket .ticket-brand strong,.print-ticket .ticket-brand small,.print-ticket .ticket-number small,.print-ticket .ticket-number strong{line-height:1.05}.print-ticket .ticket-brand small,.print-ticket .ticket-number small,.print-ticket .ticket-copy-type,.print-ticket .ticket-label{letter-spacing:0}.print-ticket .ticket-heading-right{gap:6px;right:8px}.print-ticket .ticket-copy-type{border-width:1px;padding:1px 4px}.print-ticket .ticket-customer{padding:4px 8px}.print-ticket .ticket-customer-name{line-height:1.08}.print-ticket .ticket-cta{vertical-align:1px;margin-left:5px;padding:0 3px}.print-ticket .ticket-address{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px;line-height:1.12}.print-ticket .ticket-date-cell,.print-ticket .ticket-money-cell{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:7px;padding:3px 8px;display:grid}.print-ticket .ticket-date-cell strong,.print-ticket .ticket-money-cell strong{text-align:right;line-height:1.08;display:inline}.print-ticket .ticket-delivery-window{grid-template-columns:auto minmax(0,1fr);gap:7px;padding:3px 8px}.print-ticket .ticket-delivery-window strong{text-align:right;line-height:1.08;display:inline}.print-ticket .ticket-label{margin-bottom:1px;line-height:1.08}.print-ticket .ticket-date-cell .ticket-label,.print-ticket .ticket-money-cell .ticket-label{margin:0;display:inline}.print-ticket .ticket-detail{min-height:1.15in;max-height:none;padding:5px 8px;overflow:visible}.print-ticket .ticket-detail-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0;line-height:1.12}.print-ticket .ticket-note{max-height:none;padding:4px 8px;overflow:visible}.print-ticket .ticket-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:1px 0 0;line-height:1.12}.print-ticket .ticket-footer{gap:8px;padding:4px 8px 5px;line-height:1.08}.print-ticket .ticket-contact-note{padding:4px 8px 5px;line-height:1.1}.print-ticket .ticket-checks{gap:6px;line-height:1.08}.print-ticket .check-box{width:12px;height:12px}.print-half{break-inside:avoid;page-break-inside:avoid;min-height:0}.print-half .ticket-card{height:auto;min-height:5.035in;overflow:visible}.format-letter-pair .print-sheet,.format-letter-two .print-sheet{min-height:10.25in}.format-letter-two .print-ticket{height:auto;min-height:5.035in;overflow:visible}.format-letter-two .print-ticket+.print-ticket{margin-top:.18in}.format-letter-one .print-sheet{min-height:10.25in}.format-letter-one .print-ticket{min-height:9.8in}.format-a5 .print-sheet{min-height:7.55in}.format-a5 .print-ticket{min-height:7.3in}.format-thermal{width:74mm;min-width:0;max-width:100%}.format-thermal .print-sheet,.format-thermal .print-ticket{width:100%;min-width:0;max-width:100%}.format-thermal .print-ticket{border-width:1px;font-size:9pt;font-weight:600;line-height:1.05}.format-thermal .ticket-top{border-bottom-width:1px;min-width:0;padding:3px 5px 2px;display:block;position:relative}.format-thermal .ticket-brand{gap:5px;min-width:0}.format-thermal .print-ticket .ticket-brand-logo{filter:brightness(0);flex:0 auto;width:43mm;max-width:100%;height:auto}.format-thermal .ticket-brand>span:last-child{min-width:0}.format-thermal .print-ticket .ticket-brand-mark{flex:none;width:24px;height:24px;font-size:9pt}.format-thermal .print-ticket .ticket-brand strong{overflow-wrap:anywhere;font-size:10pt;line-height:1.05}.format-thermal .print-ticket .ticket-brand small{overflow-wrap:anywhere;font-size:8pt;line-height:1.08}.format-thermal .ticket-heading-right{justify-content:space-between;gap:5px;width:100%;min-width:0;margin-top:0;position:static;transform:none}.format-thermal .print-ticket .ticket-copy-type{white-space:nowrap;border-width:1px;border-radius:0;flex:0 auto;padding:1px 4px;font-size:8.5pt;font-weight:900}.format-thermal .ticket-number{min-width:0}.format-thermal .print-ticket .ticket-number small{font-size:7pt;line-height:1.05}.format-thermal .print-ticket .ticket-number strong{overflow-wrap:anywhere;font-size:9pt;line-height:1.05}.format-thermal .ticket-customer,.format-thermal .ticket-delivery-window,.format-thermal .ticket-detail,.format-thermal .ticket-note{padding-left:7px;padding-right:7px}.format-thermal .ticket-customer{padding-top:4px;padding-bottom:4px}.format-thermal .print-ticket .ticket-customer-name{overflow-wrap:anywhere;font-size:10pt;line-height:1.04}.format-thermal .print-ticket .ticket-cta{overflow-wrap:anywhere;border:0;max-width:100%;margin-left:0;padding:0;font-size:8.5pt;font-weight:900;line-height:1.1;display:inline-block}.format-thermal .print-ticket .ticket-address{overflow-wrap:anywhere;margin-top:1px;font-size:8pt;line-height:1.05}.format-thermal .print-ticket .ticket-delivery-window{gap:5px;padding-top:3px;padding-bottom:3px}.format-thermal .print-ticket .ticket-delivery-window strong{text-align:right;font-size:8.5pt;line-height:1.15}.format-thermal .ticket-footer{grid-template-columns:1fr;gap:2px;padding-left:7px;padding-right:7px;font-size:9pt;line-height:1.15}.format-thermal .print-ticket .ticket-footer strong{overflow-wrap:anywhere;font-size:9pt;line-height:1.1}.format-thermal .print-ticket .ticket-contact-note{text-align:center;padding:4px 7px 5px;font-size:7pt;font-weight:700;line-height:1.05}.format-thermal .print-ticket .ticket-checks{flex-wrap:wrap;gap:4px;font-size:8.5pt;line-height:1.1;display:flex}.format-thermal .ticket-date-grid,.format-thermal .ticket-money-grid{grid-template-columns:1fr}.format-thermal .ticket-date-cell,.format-thermal .ticket-money-cell{border-bottom:1px solid #111;border-right:0;grid-template-columns:minmax(0,1fr) auto;gap:4px;min-width:0;padding:2px 7px;display:grid}.format-thermal .ticket-date-cell:last-child,.format-thermal .ticket-money-cell:last-child{border-bottom:0}.format-thermal .print-ticket .ticket-label{overflow-wrap:anywhere;min-width:0;margin-bottom:1px;font-size:8pt;font-weight:900;line-height:1.1}.format-thermal .print-ticket .ticket-date-cell strong,.format-thermal .print-ticket .ticket-money-cell strong{text-align:right;overflow-wrap:anywhere;min-width:0;font-size:9pt;line-height:1.1}.format-thermal .ticket-detail{min-height:0;padding-top:3px;padding-bottom:3px}.format-thermal .print-ticket .ticket-detail-text{overflow-wrap:anywhere;margin-top:1px;font-size:9pt;font-weight:700;line-height:1.08}.format-thermal .ticket-note{padding-top:3px;padding-bottom:3px}.format-thermal .print-ticket .ticket-note p{overflow-wrap:anywhere;margin-top:2px;font-size:8.5pt;line-height:1.08}.print-divider{color:#555;break-inside:avoid;page-break-inside:avoid;border-top:1px dashed #777;justify-content:center;align-items:center;height:.18in;font:600 9pt Arial,Helvetica,sans-serif;display:flex;position:relative}.print-divider span{background:#fff;padding:0 7px;transform:translateY(-50%)}.format-letter-pair .ticket-card,.format-letter-two .ticket-card,.format-letter-one .ticket-card{grid-template-rows:auto auto auto auto minmax(1.15in,1fr) auto auto auto;display:grid}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.inventory-section{background:#fff;border:1px solid #dfe5df;border-radius:20px;padding:26px}.inventory-heading,.inventory-actions,.inventory-form-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.inventory-heading h2,.inventory-heading h3{margin:0}.inventory-subtitle,.inventory-form-footer p{color:#65766e;margin:8px 0 0;font-size:14px}.inventory-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 12px;display:grid}.inventory-metric{background:#f5f8f4;border:1px solid #dfe6e0;border-radius:14px;padding:16px}.inventory-metric span{color:#53685d;font-size:12px;display:block}.inventory-metric strong{font-variant-numeric:tabular-nums;margin-top:6px;font-size:28px;display:block}.inventory-metric.is-negative,.inventory-alert{color:#953920;background:#fff3ef;border-color:#edc0b4}.inventory-metric.is-value{color:#fff;background:#173f36;border-color:#173f36}.inventory-metric.is-value span{color:#e2eee4}.inventory-metric.is-value strong{overflow-wrap:anywhere;font-size:clamp(20px,2.3vw,28px)}.inventory-valuation-note{color:#596b61;margin:0 0 18px;font-size:13px;line-height:1.5}.inventory-table .stock-row-low td{background:#fff1ed}.inventory-table .stock-row-low td:first-child strong,.inventory-table td small.stock-low-label{color:#a2301b}.inventory-notes{color:#596b61;border:1px solid #dfe6e0;border-radius:12px;padding:14px 16px;font-size:13px;line-height:1.6}.inventory-notes summary{cursor:pointer;color:#173f36;font-weight:700}.inventory-notes p:last-child{margin-bottom:0}.inventory-alert{border:1px solid #edc0b4;border-radius:10px;margin-top:14px;padding:12px 16px;font-size:13px;line-height:1.5}.inventory-form{background:#f4f7f3;border:1px solid #cbdacf;border-radius:14px;margin-top:20px;padding:20px}.inventory-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;display:grid}.inventory-toolbar{flex-wrap:wrap;align-items:end;gap:14px;margin:22px 0 14px;display:flex}.inventory-toolbar .field{flex:1;min-width:170px}.inventory-table-wrap{border:1px solid #e0e6df;border-radius:12px;overflow:auto}.inventory-table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}.inventory-table th{color:#586b60;white-space:nowrap;background:#f5f7f2;padding:12px 14px;font-weight:600}.inventory-table td{vertical-align:middle;border-top:1px solid #e8ede7;padding:12px 14px}.inventory-table td small{color:#748179;margin-top:3px;display:block}.inventory-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.stock-balance{text-align:center;color:#246242;background:#e9f4e8;border-radius:6px;min-width:38px;padding:4px 8px;font-weight:700;display:inline-block}.stock-balance.is-zero{color:#74766e;background:#f1f1ec}.stock-balance.is-negative{color:#a2301b;background:#ffe4dd}.stock-action-cell{white-space:nowrap;text-align:right}.stock-action-cell .text-button{font-size:12px}.inventory-history-heading{margin-top:32px}.inventory-error{color:#a2301b;margin-bottom:0;font-size:13px}.inventory-empty{text-align:center;color:#65766e;padding:24px}.detail-stock-content{flex:1;min-width:0}.detail-stock-bindings{gap:6px;margin-top:8px;display:grid}.detail-stock-binding{color:#64766b;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:8px;font-size:11px;display:grid}.detail-stock-binding select{background:#fff;border:1px solid #cfdbd0;border-radius:6px;width:100%;min-width:0;padding:5px 7px;font-size:11px}.detail-stock-binding select.is-missing{background:#fff7f1;border-color:#b65b3e}.order-inventory-note{color:#5c7163;margin:0;padding:10px 0;font-size:12px;line-height:1.5}.order-inventory-note.is-warning{color:#a04328}.order-inventory-card{background:#f1f6ef;border:1px solid #d4dfd1;border-radius:10px;margin-bottom:16px;padding:12px 16px;font-size:13px;line-height:1.5}.order-inventory-card p{margin:4px 0}.order-status-select[data-status=desarmado]{color:#634487;background:#ede9f5;border-color:#d5cce5}@media (width<=700px){.inventory-section{padding:16px}.inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-form-grid{grid-template-columns:1fr}.inventory-heading>.inventory-actions{width:100%}.inventory-table{min-width:580px;font-size:12px}.inventory-table th,.inventory-table td{padding:10px}}.inventory-shortage-dialog{border:5px solid #bd292d;border-radius:18px;width:min(760px,100% - 28px);max-height:calc(100dvh - 32px);padding:0;overflow-y:auto;box-shadow:0 24px 90px #24050780}.inventory-shortage-dialog::backdrop{background:#260707bd}.shortage-heading{color:#fff;background:#b8232a;align-items:center;gap:16px;padding:24px;display:flex}.shortage-heading h2{color:#fff;margin:4px 0 0;font-size:clamp(1.5rem,3vw,2rem)}.shortage-heading p{letter-spacing:.08em;margin:0;font-size:.85rem;font-weight:800}.shortage-icon{border:3px solid #fff;border-radius:50%;flex:0 0 48px;place-items:center;height:48px;font-size:2rem;font-weight:900;display:grid}.shortage-body{background:#fff8f7;padding:22px 24px}.shortage-order-summary{color:#81191c;margin:0 0 18px;font-size:1.1rem;font-weight:750}.shortage-list{gap:10px;margin:0 0 20px;padding:0;list-style:none;display:grid}.shortage-list li{background:#fff;border:1px solid #e6b7b4;border-left:5px solid #bd292d;border-radius:9px;padding:14px}.shortage-list strong,.shortage-list span{overflow-wrap:anywhere;display:block}.shortage-list strong{color:#921e23}.shortage-list span{margin-top:5px;font-size:.95rem}.shortage-help{color:#6b3333;font-size:.9rem}.shortage-actions{background:#fff;border-top:1px solid #e6b7b4;padding:18px 24px}.shortage-actions .button{color:#fff;background:#b8232a;border-color:#b8232a;width:100%;min-height:50px;font-size:1.1rem}.internal-order-comments{overflow-wrap:anywhere;background:#fff7f4;border:1px solid #e7bdb4;border-radius:12px;margin-bottom:18px;padding:18px}.internal-order-comments h3{color:#8f2823;margin:0 0 12px}.internal-order-comments article+article{border-top:1px solid #e7bdb4;margin-top:14px;padding-top:14px}.internal-order-comments p{margin:6px 0}.internal-order-comments small{color:var(--muted)}@media print{.inventory-section,.order-inventory-card,.internal-order-comments,.inventory-shortage-dialog{display:none!important}}body.is-signed-out #appShell{display:none!important}body:not(.is-signed-out) #loginView{display:none}.login-surface{background:#103c32;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{background:#fff;border-radius:22px;width:min(100%,450px);padding:clamp(24px,5vw,44px);box-shadow:0 24px 70px #001f2460}.login-card h1{color:#173f36;margin:10px 0;font-size:2rem}.login-intro{color:var(--muted);margin:16px 0 26px}.login-card .field{margin-bottom:20px}.login-card .button{width:100%;min-height:48px}.login-help{color:var(--muted);margin-top:20px;font-size:.9rem;line-height:1.6}.session-user{text-align:right;gap:4px;display:grid}.session-user small{color:var(--muted)}.session-toolbar{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.access-description{max-width:850px;color:var(--muted);margin-bottom:24px}.access-editor{border:1px solid var(--line,#dce3df);background:#fff;border-radius:16px;margin-bottom:24px;padding:24px}.permission-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-top:24px;display:grid}.access-badge{color:#164638;white-space:nowrap;background:#e4f0eb;border-radius:8px;margin:2px;padding:6px 10px;font-size:.875rem;display:inline-block}.access-badge.read{color:#45556f;background:#edf0f5}.access-actions{flex-wrap:wrap;gap:10px;display:flex}#usersView{border:1px solid var(--line,#dce3df);background:#fff;border-radius:18px;padding:26px}#generatedCode{letter-spacing:.08em;font-family:ui-monospace,monospace;font-size:1.25rem}.readonly-note{color:#42536a;background:#edf0f5;border-radius:10px;margin:0 0 16px;padding:12px 18px;font-size:.95rem}body:not(.can-edit-orders) #ordersView .editor-panel,body:not(.can-edit-orders) [data-action=edit],body:not(.can-edit-orders) [data-action=delete],body:not(.can-edit-orders) #editViewedOrderButton,body:not(.can-edit-orders) #deleteSelectedButton,body:not(.can-edit-orders) [data-trash-action=restore],body:not(.can-edit-orders) [data-stock-incorporate],body:not(.can-edit-clients) [data-client-action=edit],body:not(.can-edit-clients) #newClientTabButton,body:not(.can-edit-clients) #editProfileClientButton,body:not(.can-edit-clients) #clientForm,body:not(.can-edit-clients) #saveCustomerButton,body:not(.can-edit-clients) #newCustomerButton,body:not(.can-edit-inventory) #stockAdjustButton,body:not(.can-edit-inventory) #stockNewButton,body:not(.can-edit-inventory) #inventoryAdjustForm,body:not(.can-edit-inventory) #inventoryNewForm,body:not(.can-edit-inventory) [data-stock-adjust],body:not(.can-edit-inventory) [data-stock-menu],body:not(.can-edit-production) #productionForm{display:none!important}body:not(.can-edit-orders) #ordersView .workspace{grid-template-columns:1fr}.order-status-select:disabled{opacity:1;color:inherit;cursor:default;background-image:none}@media (width<=650px){.session-user{text-align:left}.access-editor,#usersView{padding:16px}.permission-grid{grid-template-columns:1fr}}@media print{#loginView,#activationDialog,#userCodeDialog,#usersView,.session-toolbar,.readonly-note{display:none!important}}.presence-dot{vertical-align:middle;background:#8b929a;border-radius:50%;width:12px;height:12px;display:inline-block}.presence-dot.online{background:#16833d}.presence-dot.offline{background:#d12b32}.login-logo{object-fit:contain;filter:brightness(0)saturate()invert(18%)sepia(25%)saturate(1066%)hue-rotate(114deg)brightness(91%)contrast(96%);width:180px;max-width:70%;height:auto;margin:0 auto 20px;display:block}.queue-pages{flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;display:flex}.queue-pages button[aria-current=page]{color:#fff;background:#103c32}.queue-pages small{width:100%}.trash-section{border:1px solid var(--line);background:#fff;border-radius:14px;margin-top:22px;overflow:hidden}.trash-toggle{width:100%;min-height:70px;color:var(--ink);text-align:left;background:#f5f7f6;border:0;justify-content:space-between;align-items:center;gap:18px;padding:16px 20px;display:flex}.trash-toggle>span:first-child{gap:3px;display:grid}.trash-toggle strong{font-size:1.05rem}.trash-toggle small{color:var(--muted);font-weight:500}.trash-toggle:hover{background:#edf2ef}.trash-section>.hidden+*{display:none}.trash-section #trashContent{padding:16px}.trash-table td:last-child{text-align:right}.trash-empty{min-height:170px;margin:0}.trash-table .button{white-space:nowrap}@media (width<=700px){.trash-toggle{align-items:flex-start}.trash-section #trashContent{padding:10px}.trash-table{min-width:680px}}body.is-logistics #ordersView .editor-panel{display:none}body.is-logistics #ordersView .workspace{grid-template-columns:1fr}.backup-panel{border:1px solid var(--line);border-radius:12px;margin:18px 0;padding:20px}.backup-panel summary{cursor:pointer;font-weight:700}.backup-panel p{line-height:1.5}.backup-panel .field{max-width:600px;margin:14px 0}.menu-matches{background:#fff;border:1px solid #c5d7cf;border-radius:10px;max-height:240px;display:grid;overflow-y:auto}.menu-matches.hidden{display:none}.menu-match{text-align:left;color:#173f36;font:inherit;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #e4ebe7;padding:12px 14px;font-size:14px}.menu-match:hover,.menu-match:focus-visible,.menu-match[aria-pressed=true]{background:#e4f3e9}.menu-match:focus-visible{outline-offset:-2px;outline:2px solid #146b49}.menu-matches p{margin:0;padding:12px;font-size:14px}.inventory-sort{flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0;display:flex}.inventory-sort>span{color:#52685d;font-size:14px;font-weight:600}.inventory-sort [aria-pressed=true]{color:#fff;background:#163f2c;border-color:#163f2c}.inventory-sort .subtab-button{min-height:40px;padding:8px 13px;font-size:14px}.dashboard-filters{flex-wrap:wrap;justify-content:space-between;gap:12px;display:flex}.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0;display:grid}.dashboard-card{background:#fff;border:1px solid #dfe7e1;border-radius:14px;min-width:0;padding:20px}.dashboard-card>span{color:#425d4e;font-size:14px;font-weight:600;display:block}.dashboard-card>strong{color:#163f2c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:12px 0;font-size:clamp(22px,2.3vw,32px);line-height:1.25;display:block}.dashboard-card small{color:#687c71;font-size:13px}.dashboard-card p{color:#425d4e;margin:7px 0 0;font-size:14px}.dashboard-bar{background:#edf2ee;border-radius:3px;width:100%;max-width:440px;height:6px;margin-top:9px;display:block}.dashboard-bar i{background:#267047;border-radius:3px;height:100%;display:block}#itemList{margin-top:20px}#inventoryNewForm input[type=checkbox]{vertical-align:middle;width:18px;height:18px}body:not(.can-edit-inventory) [data-edit-item]{display:none!important}@media (width<=1000px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.dashboard-grid{gap:10px}.dashboard-card{padding:14px}.dashboard-card>strong{font-size:23px}}@media print{#dashboardView,#inventoryItemPanel{display:none!important}}.payment-chart{flex-wrap:wrap;align-items:center;gap:1.5rem;margin-bottom:1.5rem;display:flex}.payment-chart-svg{flex:none;width:220px;height:220px}.payment-chart-table{flex:320px}.payment-chart-dot{vertical-align:baseline;border-radius:999px;width:.75rem;height:.75rem;margin-right:.5rem;display:inline-block}.calendar-grid-wrapper{margin-top:16px}.calendar-month-label{text-transform:capitalize;margin-bottom:10px;font-size:1.05rem;font-weight:700}.calendar-weekdays{grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px;display:grid}.calendar-weekdays span{text-align:center;letter-spacing:.08em;text-transform:uppercase;opacity:.65;font-size:.72rem;font-weight:700}.calendar-grid{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.calendar-cell{background:#fff9;border:1px solid #0f172a1f;border-radius:10px;flex-direction:column;gap:4px;min-height:108px;padding:6px;display:flex}.calendar-cell.is-empty{opacity:.35;background:0 0;border-style:dashed;min-height:60px}.calendar-cell.has-orders{border-color:#0f172a47}.calendar-cell-head{justify-content:space-between;align-items:center;font-size:.8rem;font-weight:700;display:flex}.calendar-cell-head em{background:#0f172a1a;border-radius:999px;padding:1px 7px;font-size:.68rem;font-style:normal}.calendar-cell-body{flex-direction:column;gap:4px;max-height:140px;display:flex;overflow-y:auto}.calendar-order{text-align:left;cursor:pointer;background:#0f172a0a;border:1px solid #0f172a24;border-radius:8px;gap:1px;padding:4px 6px;display:grid}.calendar-order:hover{background:#0f172a1a}.calendar-order strong{font-size:.72rem}.calendar-order span{text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;overflow:hidden}.calendar-order small{opacity:.7;font-size:.64rem}@media (width<=720px){.calendar-grid,.calendar-weekdays{grid-template-columns:repeat(2,1fr)}.calendar-cell.is-empty{display:none}}.calendar-week-nav{align-items:flex-end;gap:6px;display:flex}.calendar-board{grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;padding-bottom:8px;display:grid;overflow-x:auto}.calendar-column{background:#ffffffb3;border:1px solid #0f172a24;border-radius:12px;flex-direction:column;min-height:420px;display:flex}.calendar-column.is-today{border-color:#107a57a6;box-shadow:0 0 0 1px #107a5740}.calendar-column.is-next-week{background:#0f172a08}.calendar-column-head{border-bottom:2px solid #0f172a40;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.calendar-column-head strong{font-size:.92rem;display:block}.calendar-column-head span{opacity:.7;text-transform:capitalize;font-size:.72rem;display:block}.calendar-column-head em{background:#0f172a1a;border-radius:999px;padding:2px 8px;font-size:.72rem;font-style:normal;font-weight:700}.calendar-column.is-today .calendar-column-head{border-bottom-color:#107a57cc}.calendar-column-body{flex-direction:column;flex:1;gap:8px;max-height:520px;padding:10px;display:flex;overflow-y:auto}.calendar-column-empty{opacity:.45;text-align:center;margin:0;padding:10px 0;font-size:.74rem}.calendar-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #0f172a24;border-radius:10px;gap:2px;padding:8px 9px;display:grid}.calendar-card:hover{border-color:#0f172a66;box-shadow:0 2px 8px #0f172a14}.calendar-card-top{justify-content:space-between;gap:6px;font-size:.76rem;display:flex}.calendar-card-top em{opacity:.75;font-style:normal}.calendar-card-name{text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:600;overflow:hidden}.calendar-card small{opacity:.65;font-size:.68rem}.calendar-column-foot{border-top:1px solid #0f172a1f;justify-content:space-between;gap:8px;padding:8px 12px;font-size:.74rem;display:flex}:root{--ink:#12160f;--muted:#6b7566;--line:#e2e7d6;--line-strong:#cfd8bd;--canvas:#f1f4e6;--green:#1d2a17;--green-dark:#10140d;--green-soft:#e9f2d2;--lime:#c9e265;--lime-dark:#b4d047;--shadow:0 22px 48px -24px #12160f59;--radius-lg:26px;--radius-md:18px;--radius-sm:12px}body{background:radial-gradient(1100px 520px at 85% -12%, #c9e2658c, transparent 70%), radial-gradient(760px 420px at -10% 0%, #c9e2654d, transparent 70%), var(--canvas);-webkit-font-smoothing:antialiased;background-attachment:fixed}.topbar{z-index:40;color:#f7fbef;background:color-mix(in oklab, var(--green-dark) 88%, transparent);-webkit-backdrop-filter:blur(14px)saturate(140%);backdrop-filter:blur(14px)saturate(140%);border-bottom:0;min-height:78px;margin:0;position:sticky;top:0;box-shadow:0 10px 30px -18px #12160fb3}.topbar:after{content:"";background:linear-gradient(90deg, var(--lime), transparent 70%);border-radius:2px;height:2px;position:absolute;bottom:0;left:clamp(20px,4vw,64px);right:clamp(20px,4vw,64px)}.topbar h1{font-weight:800}.brand-logo{transition:transform .22s cubic-bezier(.2,.8,.2,1)}.brand-logo:hover{transform:translateY(-2px)scale(1.02)}.storage-note{color:#eaf4d8;background:#ffffff14;border:1px solid #c9e26547;border-radius:999px;padding:7px 14px;font-size:.8rem;font-weight:700}.storage-dot{animation:2.2s ease-in-out infinite hub-pulse}@keyframes hub-pulse{0%,to{box-shadow:0 0 #c9e26573}50%{box-shadow:0 0 0 7px #c9e26500}}.topbar .text-button{color:#10140d;background:var(--lime);border:0;border-radius:999px;padding:9px 18px;font-weight:800;transition:transform .16s,box-shadow .16s,background .16s}.topbar .text-button:hover{background:#d8ef79;transform:translateY(-1px);box-shadow:0 10px 22px -12px #c9e265e6}.tab-nav{z-index:30;-webkit-backdrop-filter:blur(12px)saturate(150%);backdrop-filter:blur(12px)saturate(150%);scrollbar-width:none;background:#ffffffb8;border:1px solid #12160f0f;border-radius:999px;gap:6px;padding:7px;position:sticky;top:90px;overflow-x:auto;box-shadow:0 18px 40px -26px #12160f8c}.tab-nav::-webkit-scrollbar{display:none}.tab-button{letter-spacing:-.01em;white-space:nowrap;border-radius:999px;font-weight:800;transition:color .18s,background .18s,transform .18s cubic-bezier(.2,.8,.2,1)}.tab-button:hover{color:var(--ink);background:#c9e26566;transform:translateY(-1px)}.tab-button[aria-selected=true]{color:#f6fbe9;background:var(--ink);box-shadow:0 12px 24px -14px #12160fe6}.editor-panel,.highlight-panel,.queue-section,.inventory-section{border-radius:var(--radius-lg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--shadow);background:#ffffffdb;border:1px solid #12160f0f;transition:box-shadow .24s,transform .24s cubic-bezier(.2,.8,.2,1)}.editor-panel:hover,.highlight-panel:hover,.inventory-section:hover{box-shadow:0 30px 60px -30px #12160f6b}.tab-view:not(.hidden){animation:.32s cubic-bezier(.2,.8,.2,1) both hub-rise}@keyframes hub-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.calendar-card,.calendar-order{border-radius:16px;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s}.calendar-card:hover,.calendar-order:hover{transform:translateY(-2px);box-shadow:0 14px 26px -16px #12160f8c}.calendar-column{border-radius:22px}.calendar-column.is-today{box-shadow:0 0 0 2px var(--lime) inset}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
