:root{--ink:#172033;--muted:#697386;--line:#e7eaf0;--bg:#f5f7fb;--blue:#2559d6;--nav:#111a2e;--green:#13a471}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Arial,sans-serif}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--nav);color:#fff;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:20px;display:flex;gap:9px;align-items:center;margin:0 8px 26px}.brand span{background:#2f63dc;border-radius:9px;padding:9px}.company{position:relative;background:#1c2740;border:1px solid #2b3958;border-radius:10px;padding:12px;margin-bottom:24px}.company small{display:block;color:#8e9bb5;font-size:10px;margin-bottom:6px}.company span{position:absolute;right:12px;top:22px;color:#91a1c1}.sidebar nav{display:grid;gap:5px}.sidebar nav a{color:#aeb9ce;text-decoration:none;padding:12px;border-radius:9px;font-weight:600}.sidebar nav a:hover{background:#26324a;color:#fff}.sidebar nav i{font-style:normal;display:inline-block}.user{display:flex;gap:10px;align-items:center;margin-top:auto;border-top:1px solid #28344c;padding:18px 5px 0}.user>span{background:#2f63dc;border-radius:50%;padding:10px}.user small{display:block;color:#91a1b9;margin-top:3px}main{min-width:0}header{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 30px}.global-search{background:#f5f7fa;border:1px solid var(--line);border-radius:9px;padding:10px 14px;flex:1 1;max-width:520px}.global-search input{border:0;background:transparent;outline:0;width:90%;margin-left:8px}.ghost,.primary,.success{border:0;border-radius:8px;padding:11px 15px;font-weight:700;cursor:pointer}.ghost{background:#fff;border:1px solid var(--line)}.primary{background:var(--blue);color:#fff}.success{background:#e5f7f0;color:#087451}.page{padding:30px;max-width:1480px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.page-title h1{font-size:26px;margin:0 0 6px}.page-title p{color:var(--muted);margin:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px #1a254508}.card{padding:18px}.card small{color:var(--muted);font-weight:600}.card strong{display:block;font-size:25px;margin:13px 0 6px}.trend{font-size:12px;color:var(--green)}.grid2{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-top:18px}.panel{padding:20px}.panel h2{font-size:16px;margin:0 0 18px}.list{display:grid;gap:14px}.row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:13px}.row:last-child{border:0}.row .grow{flex:1 1}.row small{display:block;color:var(--muted);margin-top:4px}.badge{border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700}.blue{background:#e9efff;color:#2559d6}.amber{background:#fff4da;color:#9b6500}.green{background:#e2f7ee;color:#087451}.toolbar{display:flex;gap:10px;margin-bottom:18px}.input{background:#fff;border:1px solid var(--line);padding:11px 13px;border-radius:8px;min-width:240px}.table{width:100%;border-collapse:collapse}.table th{text-align:left;color:var(--muted);font-size:11px;padding:12px}.table td,.table th{border-bottom:1px solid var(--line)}.table td{padding:15px 12px}.avatar{width:34px;height:34px;border-radius:50%;background:#e7edff;color:#2559d6;display:grid;place-items:center;font-weight:700}.kanban{display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:14px;overflow:auto;padding-bottom:15px}.column{background:#edf0f5;border-radius:12px;padding:12px;min-height:500px}.column-head{display:flex;align-items:center;gap:8px;padding:4px 2px 14px;font-weight:700}.dot{width:9px;height:9px;border-radius:50%}.count{margin-left:auto;background:#dce1ea;border-radius:99px;padding:3px 7px;font-size:11px}.order-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:10px;box-shadow:0 2px 5px #18213b0a}.order-card .number{color:var(--muted);font-size:11px}.order-card h3{font-size:14px;margin:8px 0}.meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:12px}.order-card strong{display:block;margin-top:11px}.settings-grid{display:grid;grid-template-columns:230px 1fr;gap:18px}.settings-menu{padding:10px}.settings-menu button{width:100%;text-align:left;border:0;background:none;padding:12px;border-radius:8px}.settings-menu button:first-child{background:#eaf0ff;color:#2559d6;font-weight:700}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field label{display:block;font-weight:700;font-size:12px;margin-bottom:7px}.field input,.field select{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px}.full{grid-column:1/-1}.receipt{width:302px;margin:auto;background:#fff;border:1px dashed #aaa;padding:20px;color:#111;font:12px Courier New,monospace}.receipt h3{text-align:center;margin:0}.receipt hr{border:0;border-top:1px dashed #777}.receipt-line{display:flex;justify-content:space-between;margin:6px 0}@media(max-width:950px){.shell{grid-template-columns:76px 1fr}.sidebar{padding:20px 10px}.brand strong,.company,.sidebar nav a:not(:has(i)),.user div{display:none}.sidebar nav a{font-size:0;text-align:center}.sidebar nav i{font-size:18px}.cards{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}}@media print{.no-print,.page-title,.sidebar,header{display:none!important}.shell{display:block}.page{padding:0}.receipt{border:0;width:72mm}.panel{border:0;box-shadow:none;padding:0}}.browser-help-overlay{position:fixed;inset:0;z-index:999999;overflow:auto;padding:28px;background:#e8eef6;color:#172033;font-family:Arial,sans-serif;text-transform:none}.browser-help-dialog{width:min(980px,100%);margin:auto;padding:30px;border:1px solid #d7dfeb;border-radius:18px;background:#fff;box-shadow:0 24px 70px #14213d26}.browser-help-header{display:flex;gap:18px;align-items:flex-start;margin-bottom:22px}.browser-help-header>span{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:50%;background:#dc2626;color:#fff;font-size:28px;font-weight:800}.browser-help-header h1{margin:0 0 7px;font-size:28px;color:#14213d}.browser-help-header p,.browser-help-note p,.browser-help-priority p{margin:0;line-height:1.55}.browser-help-priority{padding:20px 22px;border-radius:12px;background:#eff6ff;border-left:5px solid #2563eb}.browser-help-priority h2{margin:0 0 8px;font-size:19px}.browser-help-priority ol{margin:14px 0 0;padding-left:22px;line-height:1.75}.browser-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.browser-help-grid section{padding:16px;border:1px solid #dfe6ef;border-radius:10px;background:#fafcff}.browser-help-grid h3{margin:0 0 7px;font-size:16px;color:#1d4ed8}.browser-help-grid p{margin:0;font-size:14px;line-height:1.5}.browser-help-note{padding:16px 18px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa}.browser-help-note p{margin-top:5px}.browser-help-reload{display:block;width:max-content;margin:22px auto 0;padding:13px 22px;border-radius:9px;background:#2563eb;color:#fff!important;font-weight:700;text-decoration:none}@media(max-width:700px){.browser-help-overlay{padding:12px}.browser-help-dialog{padding:20px}.browser-help-grid{grid-template-columns:1fr}.browser-help-header h1{font-size:22px}.browser-help-header>span{flex-basis:38px;height:38px;font-size:22px}}.orders-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 230px auto;gap:12px;align-items:center;margin-bottom:18px;padding:12px}.orders-toolbar .search-box{margin:0}.orders-toolbar>select{height:44px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 12px}.view-switcher{display:flex;padding:4px;border-radius:9px;background:#edf2f7}.view-switcher button{display:flex;align-items:center;gap:6px;padding:8px 11px;border:0;border-radius:7px;background:transparent;color:#536176;cursor:pointer}.view-switcher button.active{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px #14213d17}.order-card-link{display:flex;flex-direction:column;gap:7px;color:inherit;text-decoration:none}.order-card-link>span:last-child{font-size:12px;color:#667085}.order-card .meta>a{color:#2563eb;font-size:12px;font-weight:700}.orders-list-panel{overflow:auto}.orders-list-panel td small{display:block;margin-top:3px}.order-status-pill{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.order-status-pill i{width:9px;height:9px;border-radius:50%}.orders-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.order-wide-card header{display:flex;justify-content:space-between;gap:10px;color:#667085;font-size:12px;font-weight:800}.order-wide-card header i{padding:5px 8px;border-radius:14px;color:#fff;font-style:normal;font-size:10px}.order-wide-card h2{margin:16px 0 5px}.order-wide-card p{margin:0;color:#667085}.order-wide-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.order-wide-card dl div{padding:10px;border-radius:8px;background:#f5f7fa}.order-wide-card dt{font-size:10px;color:#667085}.order-wide-card dd{margin:4px 0 0;font-weight:800}.order-wide-card>a{display:block;text-align:center}.customer-search-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}.customer-search-actions .search-box{margin:0}.customer-search-button{min-width:132px}.customer-search-summary{display:block;margin:9px 2px 4px;color:var(--muted);font-size:11px;font-weight:700}@media(max-width:700px){.customer-search-actions{grid-template-columns:1fr}.customer-search-button{width:100%}}.list-search-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}.list-search-actions .input,.list-search-actions .search-box{margin:0;width:100%}.list-search-actions>button{height:44px;white-space:nowrap}.finance-search-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.finance-search-actions>input{min-width:0}.finance-search-actions>button{padding-inline:12px;white-space:nowrap}@media(max-width:700px){.finance-search-actions,.list-search-actions,.orders-toolbar{grid-template-columns:1fr}.table-toolbar{align-items:stretch;flex-direction:column}.finance-search-actions>button,.list-search-actions>button{width:100%}}.finance-search-actions input,.global-search input,.list-search-actions input,.search-box input{text-transform:uppercase}.orders-toolbar{grid-template-columns:minmax(280px,1fr) 230px auto auto}.show-hidden-orders{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:700;color:var(--muted);cursor:pointer}.show-hidden-orders input{width:17px;height:17px;accent-color:var(--primary)}.status-visibility-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.status-visibility-options small,.status-visibility-options strong{grid-column:1/-1}.status-visibility-options label{display:flex;align-items:center;gap:7px;font-weight:700}.status-visibility-options input{width:18px;height:18px;accent-color:var(--primary)}.status-visibility-options small{color:var(--muted)}.status-visibility-badges{display:flex;gap:4px;flex-wrap:wrap}.status-visibility-badges .badge.amber{text-decoration:line-through;opacity:.65}@media(max-width:1100px){.orders-toolbar{grid-template-columns:1fr 220px}.show-hidden-orders,.view-switcher{justify-self:start}}@media(max-width:700px){.orders-toolbar,.status-visibility-options{grid-template-columns:1fr}.status-visibility-options small,.status-visibility-options strong{grid-column:auto}}.finish-order-button{border:1px solid #15803d;border-radius:8px;background:#16a34a;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer;box-shadow:0 2px 7px #1665342b}.finish-order-button:hover{background:#15803d}.finish-order-button:disabled{opacity:.5;cursor:not-allowed}.finish-order-button.mini{padding:7px 9px;font-size:11px}.order-quick-actions{display:flex;align-items:center;gap:7px}.order-wide-card>.order-quick-actions{display:grid;grid-template-columns:1fr 1fr}.kanban-order-card .order-quick-actions{margin-top:3px}.kanban-order-card .order-quick-actions>*{flex:1 1;text-align:center;white-space:nowrap}@media(max-width:700px){.order-wide-card>.order-quick-actions{grid-template-columns:1fr}}.detail-actions{display:flex;gap:10px}.order-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.order-detail-summary article{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}.order-detail-summary small{color:#667085;font-weight:800}.order-detail-summary strong{display:flex;align-items:center;gap:8px;font-size:21px}.order-detail-summary strong i{width:11px;height:11px;border-radius:50%}.order-detail-summary span{color:#667085;font-size:12px}.order-detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:16px}.order-bottom-grid h2,.order-detail-grid h2,.order-detail-items h2,.order-edit-form h2{margin-top:0}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:17px}.detail-list div.full{grid-column:1/-1}.detail-list dt,.value-list dt{font-size:11px;color:#667085;font-weight:800}.detail-list dd{margin:5px 0 0;font-weight:700}.value-list{margin:0}.value-list div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--border)}.value-list dd{margin:0}.value-list .total{font-size:19px;border:0}.order-detail-items{margin-bottom:16px;overflow:auto}.order-detail-items td:first-child{min-width:340px}.order-detail-items td:first-child b,.order-detail-items td:first-child small{display:block}.order-detail-items td:first-child small{margin-bottom:4px;color:#667085}.order-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.history-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid var(--border)}.history-row span{font-weight:700}.history-row small{display:block;margin-top:4px;color:#667085;font-weight:400}.order-edit-form{padding:22px}.edit-items-head{display:flex;align-items:center;justify-content:space-between;margin-top:25px}.edit-items-head h2{margin:0}.edit-order-items{display:flex;flex-direction:column;gap:9px;margin-top:12px}.edit-order-item{display:grid;grid-template-columns:28px minmax(170px,1fr) minmax(230px,1.6fr) 85px 110px 120px 36px;gap:8px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:9px}.edit-order-item>input,.edit-order-item>select{width:100%;height:40px;border:1px solid var(--border);border-radius:7px;padding:0 9px}.order-edit-total{display:flex;align-items:end;justify-content:flex-end;gap:30px;margin:20px 0;padding:16px;border-radius:10px;background:#f5f7fa}.order-edit-total label{display:flex;flex-direction:column;gap:5px}.order-edit-total input{height:38px;border:1px solid var(--border);border-radius:7px;padding:0 9px}.order-edit-total strong{font-size:20px}.order-edit-total span,.order-edit-total strong{display:flex;flex-direction:column;gap:5px}@media(max-width:1100px){.orders-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-summary{grid-template-columns:repeat(2,1fr)}.edit-order-item{grid-template-columns:28px 1fr 1.5fr 80px 100px}.edit-order-item>.remove-item,.edit-order-item>strong{grid-column:auto}}@media(max-width:760px){.orders-toolbar{grid-template-columns:1fr}.view-switcher{justify-content:center}.order-bottom-grid,.order-detail-grid,.order-detail-summary,.orders-card-grid{grid-template-columns:1fr}.detail-actions{flex-wrap:wrap}.edit-order-item{grid-template-columns:28px 1fr}.edit-order-item>*{grid-column:2}.edit-order-item>b{grid-column:1;grid-row:1}.order-edit-total{align-items:stretch;flex-direction:column}.detail-list{grid-template-columns:1fr}}:root{--theme-primary:#1d4ed8;--theme-primary-hover:#163da8;--theme-primary-soft:#e8efff;--theme-accent:#0f766e;--theme-background:#f1f5f9;--theme-surface:#fff;--theme-surface-alt:#f8fafc;--theme-border:#b8c4d4;--theme-border-strong:#7f91a8;--theme-text:#172033;--theme-muted:#526174;--theme-focus:#2563eb;--theme-sidebar:#101b32;--theme-sidebar-active:#294879;--border:var(--theme-border)}body{background:var(--theme-background);color:var(--theme-text)}.sidebar{background:var(--theme-sidebar)}.sidebar nav a.active,.sidebar nav a:hover{background:var(--theme-sidebar-active);color:#fff}.card,.order-card,.order-detail-summary article,.panel,header{background:var(--theme-surface);border-color:var(--theme-border)}.card,.panel{box-shadow:0 3px 12px #17203310}.login-submit,.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--theme-primary);background:var(--theme-primary);color:#fff!important;box-shadow:0 2px 5px #17203324;transition:.15s ease}.login-submit:hover,.primary:hover{background:var(--theme-primary-hover);border-color:var(--theme-primary-hover);box-shadow:0 4px 10px #17203330;transform:translateY(-1px)}.ghost{border:1px solid var(--theme-border-strong);background:var(--theme-surface);color:var(--theme-text);box-shadow:0 1px 3px #17203312;transition:.15s ease}.ghost:hover{border-color:var(--theme-primary);background:var(--theme-primary-soft);color:var(--theme-primary);box-shadow:0 2px 7px #17203319}.success{border:1px solid var(--theme-accent);background:var(--theme-accent);color:#fff;box-shadow:0 2px 5px #1720331f}.ghost:disabled,.primary:disabled,button:disabled{cursor:not-allowed;opacity:.58;box-shadow:none;transform:none}.input,input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{border:1.5px solid var(--theme-border-strong);background:var(--theme-surface);color:var(--theme-text);box-shadow:inset 0 1px 2px #1720330d;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.input:hover,input:not([type=checkbox]):not([type=radio]):not([type=color]):hover,select:hover,textarea:hover{border-color:var(--theme-primary)}.input:focus,input:not([type=checkbox]):not([type=radio]):not([type=color]):focus,select:focus,textarea:focus{border-color:var(--theme-focus);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-focus) 20%,transparent),inset 0 1px 2px #1720330d}input:disabled,input[readonly],select:disabled,textarea:disabled,textarea[readonly]{border-color:var(--theme-border);background:#e9eef4;color:var(--theme-muted);cursor:not-allowed;box-shadow:none}.field label,fieldset legend{color:var(--theme-text);font-weight:800}.global-search{border:1.5px solid var(--theme-border-strong);background:var(--theme-surface-alt);box-shadow:inset 0 1px 2px #1720330d;transition:.15s ease}.global-search:focus-within{border-color:var(--theme-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-focus) 20%,transparent)}.global-search input,.global-search input:focus,.global-search input:hover{border:0;box-shadow:none;background:transparent}.theme-switcher{display:flex;align-items:center;gap:7px;height:40px;padding:0 8px 0 11px;border:1px solid var(--theme-border-strong);border-radius:8px;background:var(--theme-surface);color:var(--theme-primary);box-shadow:0 1px 3px #17203312;font-weight:700}.theme-switcher select,.theme-switcher select:focus,.theme-switcher select:hover{height:32px;padding:0 25px 0 3px;border:0;background:transparent;color:var(--theme-text);box-shadow:none;font-weight:700;cursor:pointer}.badge,.settings-menu button:first-child,.view-switcher button.active{border:1px solid color-mix(in srgb,var(--theme-primary) 30%,transparent)}.table th{color:var(--theme-muted);background:var(--theme-surface-alt)}.row,.table td,.table th{border-bottom-color:var(--theme-border)}.column{background:color-mix(in srgb,var(--theme-background) 72%,var(--theme-border))}.kanban-view-button{border-color:var(--theme-primary);color:var(--theme-primary)}@media(max-width:760px){.theme-switcher{padding:0 8px}.theme-switcher select{width:28px;padding:0;color:transparent}.theme-switcher select option{color:var(--theme-text)}}.kanban-dropzone{position:relative;border:2px solid transparent;transition:background-color .16s ease,border-color .16s ease,transform .16s ease}.kanban-dropzone.drag-target{border-color:#2563eb;background:#e8efff;transform:translateY(-2px)}.kanban.is-dragging .kanban-dropzone{min-height:520px}.kanban-order-card[draggable=true]{cursor:grab;-webkit-user-select:none;user-select:none;transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease}.kanban-order-card[draggable=true]:active{cursor:grabbing}.kanban-order-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #17203317}.kanban-order-card.dragging{opacity:.38;transform:scale(.97)}.kanban-order-card .number{display:block;font-weight:800;letter-spacing:.02em}.kanban-order-card h3{font-size:15px;margin:10px 0 14px}.kanban-due{margin:0 0 13px;padding:9px;border-radius:7px;background:#f5f7fa;color:#536176;font-size:12px;font-weight:700}.kanban-view-button{display:block;width:100%;text-align:center;text-decoration:none;color:#2559d6}.kanban-drop-hint{display:grid;place-items:center;min-height:74px;margin:9px 0;border:2px dashed #2563eb;border-radius:9px;color:#2563eb;font-size:11px;font-weight:800;background:#fff9;pointer-events:none}.global-search{position:relative;display:flex;align-items:center}.global-search>span{font-size:18px}.global-search-loading{margin-left:auto;font-style:normal;font-weight:800;color:var(--theme-primary)}.global-search-results{position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 8px);max-height:430px;overflow:auto;background:var(--theme-surface);border:1px solid var(--theme-border-strong);border-radius:12px;box-shadow:0 16px 36px #1720332b;padding:8px}.global-search-results section+section{border-top:1px solid var(--theme-border);margin-top:7px;padding-top:7px}.global-search-results section>small{display:block;padding:7px 9px;color:var(--theme-muted);font-weight:800}.global-search-results a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:8px;color:var(--theme-text);text-decoration:none}.global-search-results a:hover{background:var(--theme-primary-soft)}.global-search-results a span{min-width:0}.global-search-results a b,.global-search-results a em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search-results a em{font-style:normal;font-size:12px;color:var(--theme-muted);margin-top:3px}.global-search-results a>i{font-style:normal;font-size:20px;color:var(--theme-primary)}.global-search-results>p{margin:0;padding:16px;text-align:center;color:var(--theme-muted)}.button-link{text-decoration:none;display:inline-block}.modal-backdrop{position:fixed;inset:0;background:#0f172a99;z-index:100;display:grid;place-items:center;padding:20px}.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:24px;box-shadow:0 24px 80px #0004}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-head h2{font-size:20px;margin:0 0 6px}.modal-head p{margin:0;color:var(--muted)}.icon-button{border:0;background:#eef1f6;border-radius:50%;width:34px;height:34px;font-size:23px;line-height:1;cursor:pointer}.modal textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px;font:inherit;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.meta button{border:1px solid var(--line);background:#fff;border-radius:5px;cursor:pointer}.meta button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:650px){.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.modal{padding:18px}}.error-banner{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;border-radius:9px;padding:12px 14px;margin-bottom:16px}.customer-modal-bg{place-items:start center;overflow:auto}.customer-modal{width:min(1180px,100%);margin:25px auto}.customer-form-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:15px}.customer-form-grid .span-2{grid-column:span 2}.customer-form-grid .span-3{grid-column:span 3}.customer-form-grid .span-4{grid-column:span 4}.customer-form-grid .span-5{grid-column:span 5}.customer-form-grid .field input,.customer-form-grid .field select{font-size:15px}.customer-form-grid .field label{text-transform:uppercase;letter-spacing:.05em;font-size:10px;color:#334155}@media(max-width:850px){.customer-form-grid{grid-template-columns:1fr 1fr}.customer-form-grid .field{grid-column:span 1!important}.customer-form-grid .span-3,.customer-form-grid .span-4,.customer-form-grid .span-5{grid-column:1/-1!important}}@media(max-width:520px){.customer-form-grid{grid-template-columns:1fr}.customer-form-grid .field{grid-column:1!important}}.customer-profile{display:grid;grid-template-columns:320px 1fr;gap:18px}.profile-summary{text-align:center}.profile-avatar{width:88px;height:88px;border-radius:50%;background:#e7edff;color:#2559d6;display:grid;place-items:center;margin:0 auto 14px;font-size:28px;font-weight:800}.profile-summary h2{margin-bottom:14px}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0}.profile-stats>div{background:#edf5ff;border-radius:9px;padding:14px}.profile-stats small,.profile-stats strong{display:block}.profile-stats strong{font-size:20px}.profile-stats small{margin-top:5px;color:var(--muted)}.profile-stats .danger-stat{grid-column:1/-1;background:#fff0f0;color:#b42318}.wide{width:100%;margin-top:9px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail{border:1px solid var(--line);border-radius:9px;padding:13px}.detail small{display:block;color:var(--muted);text-transform:uppercase;font-size:10px;margin-bottom:6px}.detail strong{font-size:14px}.order-filters{display:flex;align-items:center;gap:20px;background:#f6f8fb;padding:12px;border-radius:9px;margin-bottom:15px}.order-filters select{padding:9px;border:1px solid var(--line);border-radius:7px}.due{color:#c52323;font-weight:700}.empty{text-align:center;color:var(--muted);padding:28px}@media(max-width:850px){.customer-profile,.detail-grid{grid-template-columns:1fr}.order-filters{align-items:flex-start;flex-direction:column}}.action-icons{display:flex;gap:7px}.icon-action{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--blue);font-size:17px;text-decoration:none}.icon-action:hover{background:#eaf0ff;border-color:#b9c9f5}.icon-action{font-size:0;background-position:50%;background-repeat:no-repeat;background-size:18px}.icon-action:first-child{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232559d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7C3.6 7.6 7.48 5 12 5c4.52 0 8.4 2.6 9.94 6.65a1 1 0 0 1 0 .7C20.4 16.4 16.52 19 12 19c-4.52 0-8.4-2.6-9.94-6.65Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}.icon-action:nth-child(2){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232559d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='18' x='4' y='3' rx='2'/%3E%3Cpath d='M8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E")}.icon-action:hover{background-color:#eaf0ff;box-shadow:0 2px 6px #2559d622;transform:translateY(-1px)}.icon-action{transition:background-size .15s ease;transform:none;box-shadow:none}.icon-action:hover{background-color:#fff;border-color:var(--line);background-position:50%;background-repeat:no-repeat;background-size:22px;transform:none;box-shadow:none}.customer-actions{gap:6px}.customer-action{position:relative;width:34px;height:34px;border:1px solid var(--line);border-radius:7px;background:#fff 50%/18px no-repeat;text-decoration:none}.customer-action:hover{background-size:21px}.customer-action small{position:absolute;right:-5px;top:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--blue);color:#fff;font:700 10px/16px Arial;text-align:center}.customer-action.success{border-color:#86d9b9;background-color:#effbf6}.customer-action.warning{border-color:#f5c76b;background-color:#fff9eb}.customer-action.danger{border-color:#f0a1a1;background-color:#fff1f1}.customer-action.danger small{background:#d92d20}.customer-action.eye{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232559d6' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}.customer-action.orders{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232559d6' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E")}.customer-action.notes{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z'/%3E%3Cpath d='M8 8h8M8 12h5'/%3E%3C/svg%3E")}.customer-action.price{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2'%3E%3Cpath d='M20 13 11 22l-9-9V2h11l7 7v4Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E")}.notes-timeline{display:grid;gap:13px}.note-card{background:#fff;border:1px solid var(--line);border-left:4px solid #f59e0b;border-radius:10px;padding:17px}.note-card.resolved{border-left-color:#10b981;opacity:.75}.note-top{display:flex;align-items:center;gap:12px}.note-card p{font-size:15px;line-height:1.55}.note-card footer{color:var(--muted);font-size:12px}.note-card footer button{float:right}.flame-field{margin-top:16px}.flame{border:0;background:none;font-size:29px;color:#cbd0d9;cursor:pointer;padding:3px}.flame.selected{color:#f97316;text-shadow:0 1px 2px #f9731655}.flames-read{margin-left:auto}.flames-read i{font-style:normal;color:#ccd2dc;font-size:18px}.flames-read i.on{color:#f97316}.price-layout{display:grid;grid-template-columns:260px 1fr;gap:18px}.price-list-nav{padding:10px;height:max-content}.price-list-nav button{display:block;width:100%;text-align:left;border:0;background:none;padding:12px;border-radius:8px}.price-list-nav button.selected{background:#eaf0ff;color:var(--blue)}.price-list-nav small{display:block;margin-top:5px;color:var(--muted)}.page-title.compact{margin-bottom:12px}.page-title.compact h2{margin:0}@media(max-width:850px){.price-layout{grid-template-columns:1fr}.note-card footer button{float:none;display:block;margin-top:10px}}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.table-toolbar>div{display:flex;align-items:center;gap:8px;color:var(--muted)}.table-toolbar select{padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}.table-wrap{padding-bottom:12px;overflow:auto}.sort-head{display:flex;align-items:center;gap:7px;border:0;background:none;color:var(--muted);font:inherit;font-weight:700;cursor:pointer;text-transform:uppercase}.sort-head span{font-size:9px;color:var(--blue)}.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 10px 3px;color:var(--muted);font-size:12px}.pagination>div{display:flex;gap:4px}.pagination button{min-width:32px;height:32px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.pagination button.current{background:var(--blue);border-color:var(--blue);color:#fff}.pagination button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:700px){.pagination,.table-toolbar{align-items:stretch;flex-direction:column}.table-toolbar .input{width:100%}}.customer-actions{display:flex!important;align-items:center!important;justify-content:flex-start;flex-wrap:nowrap;gap:7px;min-height:36px}.customer-action,.customer-action.danger,.customer-action.empty,.customer-action.success,.customer-action.warning{display:inline-block!important;flex:0 0 34px;width:34px!important;min-width:34px;max-width:34px;height:34px!important;min-height:34px;max-height:34px;margin:0!important;padding:0!important;box-sizing:border-box;vertical-align:middle;background-position:50%!important;background-repeat:no-repeat!important;background-size:18px;border-width:1px;border-style:solid;border-radius:7px;transform:none!important}.customer-action:hover{background-size:21px!important}.customer-action.empty{opacity:.45;filter:grayscale(1)}.sortable-table td:last-child{vertical-align:middle;white-space:nowrap}.field input:not([type=date]):not([type=datetime-local]):not([type=number]):not([type=color]),.field textarea,.global-search input,.table-toolbar .input{text-transform:uppercase}.field input::placeholder,.global-search input::placeholder,.table-toolbar .input::placeholder{text-transform:none}.customer-form-grid input:not([type=date]):not([type=datetime-local]),.customer-form-grid textarea,.data-uppercase,.detail strong,.note-card footer,.note-card p,.order-card h3,.order-card small,.price-list-nav b,.price-list-nav small,.profile-summary h2,.receipt,.table tbody td{text-transform:uppercase}.settings-menu button.selected{background:#eaf0ff!important;color:#2559d6!important;font-weight:700!important}.settings-menu button:first-child:not(.selected){background:none;color:inherit;font-weight:400}.success-banner{background:#e8f8f1;color:#087451;border:1px solid #a7e1c8;border-radius:9px;padding:12px 14px;margin-bottom:16px}.ghost.mini{padding:6px 9px;font-size:11px}.settings-grid .table{min-width:680px}.settings-grid>.panel:last-child{overflow:auto}.readonly-field{background:#eef1f5!important;color:#475569!important;cursor:not-allowed;font-weight:700}.account-form{max-width:850px}.account-form>h2{margin-bottom:18px}.account-password{border-top:1px solid #e3e7ee;margin-top:25px;padding-top:22px}.account-password h2,.account-password p{margin:0}.account-password p{color:#64748b;margin:5px 0 18px}.login-account-field{text-transform:none!important}.field>small{display:block;color:#64748b;font-size:10px;margin-top:5px}.sidebar nav a.active{background:#263b67;color:#fff}.sidebar .user{position:relative}.sidebar .user>button{margin-left:auto;border:0;background:#26344f;color:#fff;border-radius:7px;width:32px;height:32px;cursor:pointer}.auth-main,.login-page{min-height:100vh}.login-page{display:grid;place-items:center;background:radial-gradient(circle at 20% 15%,#315da944,transparent 32%),linear-gradient(145deg,#111a2e,#172b50);padding:30px;position:relative}.login-brand{position:absolute;left:35px;top:28px;display:flex;align-items:center;gap:11px;color:#fff}.login-brand>span{display:grid;place-items:center;width:45px;height:45px;border-radius:11px;background:#2f63dc;font-size:18px;font-weight:800}.login-brand div{display:grid}.login-brand b{font-size:19px}.login-brand small{color:#9eb0d0;font-size:9px;letter-spacing:.12em;margin-top:3px}.login-card{width:min(430px,100%);background:#fff;border-radius:18px;padding:34px;box-shadow:0 30px 90px #0006}.login-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border-radius:15px;background:#e8efff;color:#2559d6;font-size:26px}.login-card h1{text-align:center;margin:0;font-size:27px}.login-card>p{text-align:center;color:#64748b;margin:8px 0 25px}.login-card .field{margin-top:15px}.login-input{display:flex;align-items:center;border:1px solid #dce2ea;border-radius:9px;overflow:hidden;background:#fff}.login-input>span{padding-left:12px;color:#64748b}.login-input input{border:0!important;outline:0;padding:13px 10px!important;text-transform:none!important}.login-input button{border:0;background:none;color:#2559d6;font-size:11px;font-weight:700;padding:10px;cursor:pointer}.login-submit{width:100%;border:0;border-radius:9px;background:#2559d6;color:#fff;padding:14px;margin-top:22px;font-weight:800;cursor:pointer}.login-submit:disabled{opacity:.6}.login-help{display:block;text-align:center;color:#64748b;margin-top:18px}.login-page>footer{position:absolute;bottom:22px;color:#91a4c8;font-size:11px}@media(max-width:550px){.login-brand{position:static;margin-bottom:25px}.login-page{display:flex;flex-direction:column;justify-content:center}.login-card{padding:25px}.login-page>footer{position:static;margin-top:25px}}.login-name{display:inline-block;background:#eef2f8;color:#334155;border-radius:6px;padding:6px 8px;font-weight:700;text-transform:none}.sidebar .company select{width:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-weight:700}.sidebar .company option{color:#172033;background:#fff}.app-version{display:block;margin:12px 5px 0;color:#91a1b9;font-size:10px;text-align:center}.communication-settings{display:grid;gap:18px}.settings-help{margin:-8px 0 18px;color:var(--theme-muted)}.settings-toggle{display:flex;align-items:center;gap:8px;margin:14px 0;font-weight:700}.template-list{display:grid;gap:14px}.template-card{display:grid;gap:10px;padding:15px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.template-card textarea{width:100%;resize:vertical}.communication-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-alt)}.communication-tabs button{flex:1 1;padding:12px;border:0;border-radius:8px;background:transparent;color:var(--theme-muted);font:inherit;font-weight:800;cursor:pointer}.communication-tabs button.active{background:var(--theme-surface);color:var(--theme-primary);box-shadow:0 2px 8px #17203318}.communication-tab-panel{min-height:360px}.secret-input{display:flex;border:1px solid var(--theme-border);border-radius:8px;overflow:hidden;background:var(--theme-surface)}.secret-input input{flex:1 1;border:0!important;border-radius:0!important;text-transform:none!important}.secret-input button{padding:0 14px;border:0;border-left:1px solid var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-primary);font-weight:800;cursor:pointer}.api-checklist{display:grid;gap:8px;margin-top:18px;padding:16px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.api-checklist strong{margin-bottom:3px}.api-checklist span{color:var(--theme-muted);line-height:1.45}.communication-save{display:flex;justify-content:flex-end;padding-top:4px}@media(max-width:650px){.communication-tabs{flex-direction:column}.communication-tabs button{text-align:left}.communication-tab-panel{min-height:0}}.evolution-guide{margin-top:18px;padding:16px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.evolution-guide h3{margin:0 0 10px}.evolution-guide li{margin:7px 0;line-height:1.45}.evolution-guide code{padding:2px 5px;border-radius:4px;background:var(--theme-border);font-size:12px}.settings-grid>.settings-menu{display:flex;flex-direction:column;align-self:start;gap:4px}.settings-grid>.settings-menu>a,.settings-grid>.settings-menu>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:0 0 auto;width:100%;min-height:46px;margin:0;padding:12px;border:1px solid transparent;border-radius:8px;background:none;color:var(--theme-text);font:inherit;line-height:1.35;text-align:left;text-decoration:none;cursor:pointer}.settings-grid>.settings-menu .app-icon{flex-shrink:0;width:20px;height:20px}.settings-grid>.settings-menu>a:hover,.settings-grid>.settings-menu>button:hover{background:var(--theme-primary-soft);color:var(--theme-primary)}.settings-grid>.settings-menu>a:focus-visible,.settings-grid>.settings-menu>button:focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}@media(max-width:760px){.settings-grid{grid-template-columns:1fr}}.company-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}.company-card.current{border:2px solid #4d78df;box-shadow:0 8px 25px #2559d619}.company-card-head{display:flex;align-items:center;gap:12px}.company-card-head>span{display:grid;place-items:center;width:46px;height:46px;border-radius:10px;background:#e8efff;color:#2559d6;font-weight:800;font-size:17px}.company-card-head>div{flex:1 1}.company-card-head h2{margin:0 0 4px}.company-card-head small{color:#64748b}.company-card-head i{font-style:normal}.company-card dl{display:grid;grid-template-columns:repeat(3,1fr);background:#f7f9fc;border-radius:9px;margin:18px 0}.company-card dl div{padding:12px;border-right:1px solid #e3e7ee}.company-card dl div:last-child{border:0}.company-card dt{font-size:9px;color:#64748b}.company-card dd{font-size:19px;font-weight:800;margin:4px 0 0}.company-card>p{line-height:1.7;color:#475569}.company-card footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7eaf0;padding-top:14px}.current-company{color:#087451;font-weight:700}.user-cell{display:flex;align-items:center;gap:10px}.user-cell>span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e8efff;color:#2559d6;font-weight:800}.membership-badge{display:inline-block;background:#eef2f8;color:#475569;border-radius:20px;padding:6px 9px;margin:2px;font-size:10px}.user-access-bg{align-items:flex-start;overflow:auto}.user-access-modal{width:min(880px,calc(100vw - 30px));margin:25px auto}.permission-head{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.permission-head h3,.permission-head p{margin:0}.permission-head p{font-size:12px;color:#64748b;margin-top:4px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;background:#f7f9fc;padding:14px;border-radius:10px}.permission-grid label{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e7ee;border-radius:8px;padding:11px}.permission-grid input{width:17px;height:17px}@media(max-width:650px){.company-cards,.permission-grid{grid-template-columns:1fr}}.product-add-actions button{border:0;border-radius:8px;padding:11px 16px;color:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 4px 12px #0f172a1f;transition:filter .15s ease,transform .15s ease}.product-add-actions button:hover{filter:brightness(1.08);transform:translateY(-1px)}.add-product-button{background:#2563d9}.type-product-button{background:#e87918}.product-add-actions{display:flex;gap:9px;flex-wrap:wrap}.free-product-modal{width:min(760px,calc(100vw - 30px));padding:0;overflow:hidden}.free-product-head{display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(135deg,#2874b8,#3f91c8);color:#fff;padding:20px 22px}.free-product-head h2,.free-product-head p{margin:0}.free-product-head p{margin-top:5px;opacity:.85;font-size:12px}.free-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:22px}.free-product-grid .full{grid-column:1/-1}.free-product-grid+.modal-actions{margin:0 22px 22px}.produce-art{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-weight:700}.produce-art input{width:18px;height:18px}.order-data-grid select{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px;background:#fff;font:inherit}@media(max-width:600px){.free-product-grid{grid-template-columns:1fr}.free-product-grid .full{grid-column:auto}.product-add-actions,.product-add-actions button{width:100%}}.order-modal-bg{align-items:flex-start;overflow:auto}.order-modal{width:min(1240px,calc(100vw - 30px));margin:18px auto;padding:26px}.order-steps{justify-content:center;margin:-5px 0 24px}.order-steps,.order-steps span{display:flex;align-items:center}.order-steps span{gap:8px;color:#94a3b8;border:1px solid #dce2ea;border-radius:22px;padding:8px 14px}.order-steps span.active,.order-steps span.done{background:#eaf0ff;border-color:#9db4f2;color:#2559d6}.order-steps i{width:70px;height:1px;background:#dce2ea}.search-box{display:flex;align-items:center;border:2px solid #d7dfea;border-radius:12px;background:#fff;padding:0 16px;box-shadow:0 6px 20px #1f3b6d0d}.search-box span{font-size:26px;color:#64748b}.search-box input{width:100%;border:0;outline:0;padding:17px 12px;font:inherit;font-weight:600}.customer-results,.product-results{display:grid;gap:8px;margin-top:15px;max-height:430px;overflow:auto}.customer-results button,.product-results button{display:flex;align-items:center;gap:13px;width:100%;border:1px solid #e1e6ee;background:#fff;border-radius:10px;padding:12px;text-align:left;cursor:pointer}.customer-results button.selected,.customer-results button:hover,.product-results button:hover{border-color:#7d9eed;background:#f5f8ff}.customer-results button>span:nth-child(2),.product-results button span{display:grid;gap:4px;flex:1 1}.customer-results small{color:#64748b}.customer-results i{font-size:22px;color:#2559d6}.customer-initials{display:grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#e7edff;color:#2559d6;font-weight:800}.selected-customer{display:flex;align-items:center;gap:13px;background:#f5f8ff;border:1px solid #cfdcfb;border-radius:12px;padding:13px 16px;margin-bottom:15px}.selected-customer>div{display:grid;gap:2px;flex:1 1}.order-summary small,.selected-customer small{font-size:10px;color:#64748b;letter-spacing:.06em}.selected-customer span{font-size:12px;color:#64748b}.order-summary{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid #dce2ea;border-radius:10px;margin-bottom:16px;overflow:hidden}.order-summary>div{display:grid;gap:5px;padding:13px 16px;border-right:1px solid #dce2ea}.order-summary>div:last-child{border:0}.order-data-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:#f7f9fc;border-radius:10px;padding:14px}.items-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px}.items-head h3,.items-head p{margin:0}.items-head p{font-size:12px;color:#64748b;margin-top:4px}.order-items{display:grid;gap:9px}.order-item{display:grid;grid-template-columns:28px minmax(210px,2.2fr) .65fr .8fr .7fr 1.4fr .8fr 32px;align-items:center;gap:8px;border:1px solid #dce2ea;border-radius:10px;padding:10px;background:#fff}.item-number{display:grid;place-items:center;width:25px;height:25px;background:#edf2ff;color:#2559d6;border-radius:50%;font-weight:800}.product-lookup{display:grid;text-align:left;border:1px dashed #9db4d5;background:#f8fbff;border-radius:8px;padding:8px 10px;cursor:pointer}.order-item label>small,.product-lookup small{font-size:9px;color:#64748b;letter-spacing:.04em}.product-lookup span{font-size:10px;color:#2559d6;margin-top:3px}.order-item label{display:grid;gap:5px}.order-item input{min-width:0;width:100%;padding:9px 7px;border:1px solid #dce2ea;border-radius:7px}.dimension-inputs{display:flex;gap:4px}.order-item>strong{text-align:right;font-size:13px}.remove-item{border:0;background:#fff0f0;color:#c52323;border-radius:7px;font-size:20px;height:32px}.remove-item:disabled{opacity:.25}.order-footer{display:flex;justify-content:flex-end;align-items:flex-start;gap:40px;margin-top:16px}.discount-field{width:180px}.money-input{display:flex;align-items:center;border:1px solid #dce2ea;border-radius:8px;padding-left:10px}.money-input input{border:0!important}.totals{display:grid;gap:8px;width:280px}.totals span,.totals strong{display:flex;justify-content:space-between}.totals strong{border-top:1px solid #dce2ea;padding-top:10px;font-size:18px;color:#173a86}.product-picker-bg{z-index:140}.product-picker{width:min(680px,100%)}.product-results button strong{color:#173a86}.product-results small{color:#64748b}@media(max-width:900px){.order-data-grid{grid-template-columns:1fr 1fr}.order-item{grid-template-columns:28px 1fr 1fr}.product-lookup{grid-column:span 2}.order-summary{grid-template-columns:1fr}.order-summary>div{border-right:0;border-bottom:1px solid #dce2ea}.order-footer{flex-direction:column}.discount-field,.totals{width:100%}}@media(max-width:560px){.order-data-grid{grid-template-columns:1fr}.order-steps i{width:20px}.order-steps b{display:none}.order-modal{padding:16px}.customer-results small{font-size:10px}}.order-customer-bar{grid-template-columns:auto auto 1fr 1fr auto;align-items:center;gap:18px;margin-bottom:14px;border-top:4px solid var(--theme-text)}.order-customer-bar>small{grid-column:1/-1;font-weight:800}.order-customer-bar>b{font-size:18px}.order-customer-bar>span{color:var(--theme-primary);font-size:16px}.order-tabs{display:flex;gap:3px;margin-bottom:0}.order-tabs button{padding:14px 20px;border:1px solid var(--theme-border);border-bottom:0;border-radius:8px 8px 0 0;background:color-mix(in srgb,var(--theme-border) 30%,var(--theme-surface));color:var(--theme-text);font:inherit;cursor:pointer}.order-tabs button.active{font-weight:800}.order-tab-content{min-height:420px;border-radius:0 10px 10px 10px}.order-payments-tab,.order-summary-tab{display:grid;grid-template-columns:2fr 1fr;gap:40px}.order-facts{margin:0}.order-facts>div{display:grid;grid-template-columns:205px 1fr;gap:10px;padding:10px 7px;border-bottom:1px solid var(--theme-border)}.order-facts dt{font-weight:800}.order-facts dd{margin:0}.order-facts dd>i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}.order-values-box{height:max-content;margin:0;border-top:4px solid var(--theme-border);box-shadow:0 2px 6px #17203314}.order-values-box>div{display:flex;justify-content:space-between;padding:11px;border-bottom:1px solid var(--theme-border)}.order-values-box dt{font-weight:800}.order-values-box dd{margin:0}.order-values-box .total{background:var(--theme-surface-alt);font-size:16px}.order-payment-list{overflow:auto}.order-payment-list>.primary{margin:20px auto 0;display:flex}.order-payment-modal{width:min(820px,calc(100vw - 30px));padding:0;overflow:hidden}.order-payment-modal .modal-head{padding:20px 24px;background:var(--theme-primary);color:#fff}.order-payment-modal .modal-head p{margin:4px 0 0;opacity:.85}.order-payment-modal-body{display:grid;grid-template-columns:245px 1fr}.order-payment-modal-body>aside{padding:18px;background:var(--theme-surface-alt);border-right:1px solid var(--theme-border)}.order-payment-modal-body>aside div{display:grid;gap:7px;padding:15px;margin-bottom:12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);text-align:center}.order-payment-modal-body>aside small{font-weight:800}.order-payment-modal-body>aside strong{font-size:18px}.order-payment-modal-body>.form-grid{padding:22px}.order-payment-modal>.modal-actions{margin:0;padding:0 22px 22px}@media(max-width:760px){.order-customer-bar{grid-template-columns:1fr}.order-customer-bar>small{grid-column:auto}.order-tabs{overflow:auto}.order-tabs button{white-space:nowrap}.order-payment-modal-body,.order-payments-tab,.order-summary-tab{grid-template-columns:1fr}.order-payment-modal-body>aside{border-right:0;border-bottom:1px solid var(--theme-border)}.order-facts>div{grid-template-columns:1fr}.order-tab-content{padding:14px}}.order-detail-page{max-width:1380px}.order-detail-page>.page-title{padding:20px 22px;margin-bottom:18px;border:1px solid var(--theme-border);border-radius:14px;background:linear-gradient(135deg,var(--theme-surface),var(--theme-surface-alt));box-shadow:0 5px 18px #1720330d}.order-detail-page>.page-title h1{display:flex;align-items:center;gap:10px;font-size:24px}.order-detail-page>.page-title h1:before{content:"";width:6px;height:29px;border-radius:6px;background:var(--theme-primary)}.order-detail-page .detail-actions{align-items:center}.order-detail-page .detail-actions .button-link,.order-detail-page .detail-actions button{min-height:42px}.order-customer-bar{position:relative;display:grid;grid-template-columns:54px minmax(230px,1.5fr) minmax(170px,1fr) auto;gap:16px;margin-bottom:16px;padding:20px 22px 20px 92px;border:1px solid var(--theme-border);border-left:5px solid var(--theme-primary);border-radius:14px;background:linear-gradient(120deg,var(--theme-surface),var(--theme-primary-soft));box-shadow:0 5px 18px #1720330e;text-align:left}.order-customer-bar>.order-customer-photo{position:absolute;left:24px;top:50%;display:grid;place-items:center;width:48px;height:48px;transform:translateY(-50%);box-shadow:0 5px 12px color-mix(in srgb,var(--theme-primary) 28%,transparent)}.order-customer-bar>small{position:absolute;left:92px;top:15px;grid-column:auto;color:var(--theme-muted);font-size:9px;letter-spacing:.12em}.order-customer-bar>b{align-self:end;color:var(--theme-primary);font-size:14px}.order-customer-bar>strong{align-self:end;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-customer-bar>span{align-self:end;color:var(--theme-text);font-size:15px;font-weight:700}.order-customer-bar>a{align-self:center}.order-tabs{gap:7px;width:max-content;max-width:100%;margin:0 0 12px;padding:5px;border:1px solid var(--theme-border);border-radius:12px;background:color-mix(in srgb,var(--theme-border) 24%,var(--theme-surface));overflow:auto}.order-tabs button{position:relative;padding:11px 18px;border:0;border-radius:8px;background:transparent;color:var(--theme-muted);font-size:13px;font-weight:700;white-space:nowrap;transition:.16s ease}.order-tabs button:hover{background:color-mix(in srgb,var(--theme-primary-soft) 70%,var(--theme-surface));color:var(--theme-primary)}.order-tabs button.active{background:var(--theme-surface);color:var(--theme-primary);box-shadow:0 3px 10px #17203318}.order-tabs button.active:after{content:"";position:absolute;left:20%;right:20%;bottom:3px;height:2px;border-radius:4px;background:var(--theme-primary)}.order-tab-content{min-height:430px;padding:24px;border:1px solid var(--theme-border);border-radius:14px;box-shadow:0 5px 18px #1720330d}.order-payments-tab,.order-summary-tab{grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr);gap:24px}.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.order-facts>div{display:flex;flex-direction:column;gap:7px;min-height:78px;padding:14px 16px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.order-facts>div:last-child{grid-column:1/-1}.order-facts dt{color:var(--theme-muted);font-size:10px;letter-spacing:.06em;text-transform:uppercase}.order-facts dd{color:var(--theme-text);font-size:14px;font-weight:700;line-height:1.45}.order-values-box{overflow:hidden;border:1px solid var(--theme-border);border-top:0;border-radius:12px;background:var(--theme-surface);box-shadow:0 7px 20px #17203312}.order-values-box:before{content:"RESUMO FINANCEIRO";display:block;padding:13px 15px;background:var(--theme-primary);color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em}.order-values-box>div{padding:13px 15px}.order-values-box dt{color:var(--theme-muted)}.order-values-box dd{font-weight:800}.order-values-box .total{padding:17px 15px;background:var(--theme-primary-soft);color:var(--theme-primary);font-size:18px}.order-detail-items{margin:0}.order-detail-items .table,.order-payment-list .table{overflow:hidden;border:1px solid var(--theme-border);border-radius:10px}.order-detail-items .table th,.order-payment-list .table th{padding:14px;background:var(--theme-surface-alt)}.order-detail-items .table td,.order-payment-list .table td{padding:16px 14px}.history-row{margin-bottom:8px;padding:14px 16px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.order-payment-modal{border-radius:16px;box-shadow:0 24px 70px #1118274d}.order-payment-modal .modal-head{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-hover))}.order-payment-modal-body>aside{background:linear-gradient(180deg,var(--theme-primary-soft),var(--theme-surface-alt))}.order-payment-modal-body>aside div{box-shadow:0 3px 10px #1720330b}.order-payment-modal-body>aside div:nth-child(2) strong{color:#b42318}.order-payment-modal-body>aside div:nth-child(3) strong{color:var(--theme-accent)}@media(max-width:900px){.order-payments-tab,.order-summary-tab{grid-template-columns:1fr}.order-customer-bar{grid-template-columns:1fr 1fr;padding-left:92px}.order-customer-bar>small{left:92px}.order-customer-bar>a{grid-column:1/-1}}@media(max-width:620px){.order-detail-page>.page-title{padding:16px}.order-customer-bar{grid-template-columns:1fr;padding:66px 16px 16px}.order-customer-bar>.order-customer-photo{left:16px;top:15px;transform:none}.order-customer-bar>small{left:76px;top:24px}.order-facts{grid-template-columns:1fr}.order-facts>div:last-child{grid-column:auto}.order-tab-content{padding:14px}.order-tabs{width:100%}}.print-dropdown{position:relative}.print-dropdown-menu{position:absolute;right:0;top:48px;z-index:50;display:grid;width:245px;padding:8px;border:1px solid #465168;border-radius:10px;background:#3f485c;box-shadow:0 14px 35px #11182742}.print-dropdown-menu button{padding:11px 13px;border:0;border-radius:7px;background:transparent;color:#fff;font:inherit;font-weight:700;text-align:left;cursor:pointer}.print-dropdown-menu button:hover{background:#ffffff1c}.report-choice-modal{width:min(850px,calc(100vw - 30px));padding:0;overflow:hidden}.report-choice-modal .modal-head{padding:20px 24px;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-hover));color:#fff}.report-choice-modal .modal-head p{margin:5px 0 0;opacity:.85}.report-choice-body{padding:28px}.report-choice-body h3{margin:0 0 24px;font-size:20px}.report-choice-body>div{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.report-choice-body button{min-height:58px;padding:12px;border:0;border-radius:8px;background:var(--theme-primary);color:#fff;font:inherit;font-weight:800;cursor:pointer}.report-choice-body button:hover{background:var(--theme-primary-hover)}.order-items-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.order-items-toolbar h2,.order-items-toolbar p{margin:0}.order-items-toolbar p{margin-top:5px;color:var(--theme-muted);font-size:12px}@media(max-width:700px){.report-choice-body>div{grid-template-columns:1fr 1fr}.print-dropdown-menu{right:auto;left:0}.order-items-toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:450px){.report-choice-body>div{grid-template-columns:1fr}}.dashboard-date{cursor:default;text-transform:capitalize}.dashboard-panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dashboard-panel-title h2{margin:0}.dashboard-panel-title a{color:var(--theme-primary);font-size:12px;font-weight:800;text-decoration:none}.dashboard-order{color:inherit;text-decoration:none}.dashboard-order:hover{background:var(--theme-primary-soft);border-radius:8px;padding:9px;margin:-9px}.dashboard-late{background:#fee2e2;color:#b42318}.danger-text{color:#b42318}.dashboard-status-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%}@media(max-width:650px){.dashboard-page .page-title{align-items:flex-start;flex-direction:column;gap:12px}.dashboard-order{align-items:flex-start;flex-wrap:wrap}.dashboard-order .grow{min-width:calc(100% - 50px)}}.order-edit-form.order-modal{width:100%;max-width:none;padding:0;overflow:hidden}.order-edit-head{margin:-1px -1px 0;padding:20px 24px;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-hover));color:#fff}.order-edit-head h2,.order-edit-head p{margin:0;color:#fff}.order-edit-head p{margin-top:5px;opacity:1}.order-edit-form>.items-head,.order-edit-form>.modal-actions,.order-edit-form>.order-data-grid,.order-edit-form>.order-footer,.order-edit-form>.order-items,.order-edit-form>.order-summary,.order-edit-form>input{margin-left:22px;margin-right:22px}.order-edit-customer.selected-customer{margin:18px 22px 14px;border:1px solid var(--theme-border);border-left:5px solid var(--theme-primary);background:linear-gradient(120deg,var(--theme-surface),var(--theme-primary-soft))}.order-edit-customer.selected-customer>div{display:grid;gap:3px}.order-edit-customer.selected-customer>div span{margin:0;color:var(--theme-muted)}.order-edit-customer .locked-customer{margin-left:auto;padding:7px 10px;border-radius:20px;background:var(--theme-surface);color:var(--theme-primary);font-size:10px;font-weight:800}.order-edit-data-grid{grid-template-columns:repeat(4,1fr)}.order-edit-data-grid .full{grid-column:1/-1}.order-edit-form .edit-order-items{display:grid;margin-top:0}.order-edit-form .edit-order-item{display:grid;grid-template-columns:28px minmax(280px,1.8fr) 90px 120px 125px 32px}.order-edit-form .edit-order-item label{display:grid;gap:5px}.order-edit-form .edit-order-item label small{color:var(--theme-muted);font-size:9px}.order-edit-form .edit-order-item input{width:100%;min-width:0;padding:9px 7px;border:1px solid var(--theme-border);border-radius:7px}.order-edit-form>.modal-actions{margin-top:20px;margin-bottom:22px}@media(max-width:1050px){.order-edit-data-grid{grid-template-columns:1fr 1fr}.order-edit-form .edit-order-item{grid-template-columns:28px 1fr 1fr}.order-edit-form .edit-order-item .edit-description{grid-column:2/-1}}@media(max-width:650px){.order-edit-form>.items-head,.order-edit-form>.modal-actions,.order-edit-form>.order-data-grid,.order-edit-form>.order-footer,.order-edit-form>.order-items,.order-edit-form>.order-summary,.order-edit-form>input{margin-left:14px;margin-right:14px}.order-edit-customer.selected-customer{margin:14px}.order-edit-customer .locked-customer{margin-left:0}.order-edit-data-grid{grid-template-columns:1fr}.order-edit-form .edit-order-item{grid-template-columns:28px 1fr}.order-edit-form .edit-order-item>*{grid-column:2}.order-edit-form .edit-order-item>.item-number{grid-column:1;grid-row:1}.order-edit-form .edit-order-item .edit-description{grid-column:2}.order-edit-form>.items-head{align-items:flex-start;flex-direction:column}}.finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.finance-summary article{display:grid;gap:8px}.finance-summary small{font-weight:800;color:var(--theme-muted)}.finance-summary strong{font-size:25px}.finance-summary span{font-size:11px;color:var(--theme-muted)}.finance-layout{display:grid;grid-template-columns:350px 1fr;gap:18px}.finance-customers{padding:14px;height:calc(100vh - 285px);min-height:520px}.finance-customers h2{margin:4px 0 13px}.finance-customers>input{width:100%;padding:11px}.finance-customer-list{display:grid;gap:7px;margin-top:12px;max-height:calc(100% - 75px);overflow:auto}.finance-customer-list button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:11px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);color:var(--theme-text);text-align:left;cursor:pointer}.finance-customer-list button.selected,.finance-customer-list button:hover{border-color:var(--theme-primary);background:var(--theme-primary-soft)}.finance-customer-list button span{display:grid;gap:4px}.finance-customer-list button span:last-child{text-align:right}.finance-customer-list small{font-size:9px;color:var(--theme-muted)}.finance-customer-list em{color:var(--theme-accent);font-style:normal;font-weight:800}.finance-content{display:grid;align-content:start;gap:16px}.finance-account-head{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:center;gap:20px}.finance-account-head h2{margin:5px 0 0}.finance-account-head>div{display:grid;gap:5px}.finance-account-head small,.finance-account-head span{color:var(--theme-muted);font-size:10px;font-weight:800}.finance-account-head strong{font-size:20px;color:var(--theme-accent)}.finance-account-head strong.due{color:#b42318}.finance-movements{overflow:hidden}.finance-table-wrap{overflow:auto}.finance-movements td small{display:block;margin-top:4px;color:var(--theme-muted)}.finance-in{color:#087451}.finance-in,.finance-out{font-weight:800;white-space:nowrap}.finance-out{color:#b42318}.finance-placeholder{text-align:center;padding:80px 20px}.finance-placeholder strong{font-size:20px}.finance-placeholder p{color:var(--theme-muted)}.finance-modal{width:min(680px,calc(100vw - 30px))}.finance-available{padding:13px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-primary-soft)}.credit-stat{grid-column:1/-1;background:#e8f8f1!important;color:#087451}.success.button-link{display:flex;align-items:center;justify-content:center;text-decoration:none}@media(max-width:1050px){.finance-layout{grid-template-columns:1fr}.finance-customers{height:auto;min-height:0}.finance-customer-list{max-height:330px}.finance-account-head{grid-template-columns:1fr 1fr}}@media(max-width:700px){.finance-account-head,.finance-summary{grid-template-columns:1fr}.finance-page .page-title{align-items:flex-start;gap:12px;flex-direction:column}}.order-modal .order-items .order-item:not(.quote-order-item):not(.edit-order-item){grid-template-columns:28px minmax(280px,2.2fr) .65fr .85fr .85fr 32px}@media(max-width:760px){.order-modal .order-items .order-item:not(.quote-order-item):not(.edit-order-item){grid-template-columns:28px 1fr 1fr}}@media(max-width:520px){.order-modal .order-items .order-item:not(.quote-order-item):not(.edit-order-item){grid-template-columns:28px 1fr}}.customer-data-indicators{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto}.customer-data-indicators i{display:grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border:1px solid #f1b85b;border-radius:8px;background:#fff7e8;color:#9a5800;font-style:normal;font-size:16px;box-shadow:0 2px 7px #9a58001c}.selected-customer-alerts,.selected-customer>.selected-customer-alerts{display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:8px;margin-left:auto;white-space:nowrap}.selected-customer-alerts button{padding:9px 11px;border:2px solid #e49b24;border-radius:9px;background:#fff4d8;color:#7b4800;font:inherit;font-size:11px;font-weight:900;cursor:pointer;animation:customer-alert-pulse 1.8s ease-in-out infinite}.selected-customer-alerts button:hover{background:#ffe7ac;transform:translateY(-1px)}.order-customer-bar{grid-template-columns:54px minmax(180px,1.2fr) minmax(140px,.7fr) auto auto}.order-customer-bar>.detail-customer-alerts{align-self:center;margin-left:0}.order-customer-bar>.detail-customer-alerts button{padding:8px 9px;font-size:10px}@keyframes customer-alert-pulse{0%,to{box-shadow:0 0 0 0 #e49b2433}50%{box-shadow:0 0 0 5px #e49b2412}}.customer-info-bg{z-index:120}.customer-info-modal{width:min(900px,calc(100vw - 30px));max-height:88vh;padding:0;overflow:hidden}.customer-info-modal .modal-head{padding:20px 24px;background:linear-gradient(135deg,#9a5800,#d08716);color:#fff}.customer-info-modal .modal-head p{margin:4px 0 0;color:#fff;opacity:.9}.customer-info-body{max-height:65vh;padding:20px;overflow:auto}.customer-note-list,.customer-price-list{display:grid;gap:12px}.customer-note-list article,.customer-price-list>article{padding:15px;border:1px solid var(--theme-border);border-left:5px solid #e49b24;border-radius:10px;background:var(--theme-surface)}.customer-note-list article.resolved{opacity:.68;border-left-color:#48a97b}.customer-note-list header,.customer-price-list header{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-note-list header b{padding:5px 8px;border-radius:20px;background:#fff1cf;color:#8b5100;font-size:9px}.customer-note-list p{margin:12px 0;white-space:pre-wrap}.customer-note-list small,.customer-price-list small{color:var(--theme-muted)}.customer-price-list h3{margin:0 0 4px}.customer-price-list>article>p{color:var(--theme-muted)}.customer-price-list .table{margin-top:12px}.customer-price-list td small{display:block;margin-top:4px}.customer-info-modal>.modal-actions{margin:0;padding:0 20px 20px}@media(max-width:760px){.selected-customer{overflow-x:auto}.customer-data-indicators,.selected-customer-alerts,.selected-customer>.selected-customer-alerts{margin-left:0}.customer-info-body{padding:12px}.customer-price-list .table{font-size:11px}}.settings-price-layout{grid-template-columns:230px minmax(560px,1fr);margin-top:14px}.settings-price-layout .price-list-nav{padding:0 12px 0 0;border-right:1px solid var(--theme-border)}.copy-source-choice{padding:13px;border:1px solid #bfd0f7;border-radius:10px;background:#f4f7ff}.copy-source-choice small{display:block;margin-top:7px;color:var(--theme-muted)}@media(max-width:900px){.settings-price-layout{grid-template-columns:1fr}.settings-price-layout .price-list-nav{padding:0 0 12px;border-right:0;border-bottom:1px solid var(--theme-border)}}.price-list-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.danger-action{border-color:#f0a1a1;color:#b42318}.danger-action:hover{background:#fff1f1}@media(max-width:700px){.price-list-actions{justify-content:flex-start}.price-list-actions .ghost{flex:1 1}}.customer-field-help{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:6px}.customer-form-grid .customer-ie-exempt{display:flex;align-items:center;gap:7px;margin-top:7px}.customer-form-grid .customer-ie-exempt input{width:auto;margin:0}.customer-fields{display:flex;flex-direction:column;gap:18px}.customer-form-row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.customer-form-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-form-row.four{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-form-row.company-documents{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(140px,.55fr)}.customer-form-row.address-row{grid-template-columns:minmax(130px,.7fr) minmax(0,2fr) minmax(100px,.5fr)}.customer-form-row.city-row{grid-template-columns:minmax(0,2fr) minmax(110px,.65fr) minmax(150px,1fr)}.customer-form-row .field{min-width:0}.customer-form-row .field label{display:block;text-transform:uppercase;letter-spacing:.04em;font-size:11px;color:#334155;margin-bottom:7px}.customer-form-row .field input,.customer-form-row .field select{width:100%;font-size:15px}.customer-form-row .customer-ie-exempt{display:flex;align-items:center;gap:8px;min-height:42px;margin:0;text-transform:none;letter-spacing:normal;font-size:14px}.customer-form-row .customer-ie-exempt input{width:18px;height:18px;margin:0}.customer-form-row .field input:disabled{background:#f1f5f9;color:#64748b}@media(max-width:850px){.customer-form-row.four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.customer-form-row.address-row,.customer-form-row.city-row,.customer-form-row.company-documents,.customer-form-row.four,.customer-form-row.three,.customer-form-row.two{grid-template-columns:minmax(0,1fr)}.customer-fields{gap:16px}.customer-form-row{gap:14px}}.customer-visual{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;overflow:hidden;background:#e0e7ff;color:#3730a3;font-weight:700;vertical-align:middle}.customer-visual img,.customer-visual svg{display:block;width:100%;height:100%;object-fit:cover}.customer-photo-fields{border:1px solid #dbe3ef;background:#f8fafc;border-radius:14px;padding:18px;display:grid;gap:14px}.customer-photo-main{display:flex;align-items:center;gap:18px}.customer-photo-main h3{margin:0 0 6px}.customer-photo-main p{margin:0 0 12px;color:#64748b;font-size:13px}.customer-photo-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.customer-photo-paste{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px dashed #94a3b8;border-radius:8px;padding:9px 12px;cursor:text;font-size:13px;white-space:nowrap}.customer-photo-paste:focus{outline:2px solid #2563eb;outline-offset:2px;border-color:#2563eb}.customer-photo-fields summary{cursor:pointer;font-weight:600}.customer-avatar-options{display:grid;grid-template-columns:repeat(auto-fit,60px);gap:10px;margin-top:12px}.customer-avatar-options button{width:60px;height:60px;padding:3px;border:2px solid transparent;border-radius:50%;background:transparent;cursor:pointer}.customer-avatar-options button[aria-pressed=true]{border-color:#2563eb}.customer-avatar-options svg{display:block;width:100%;height:100%}.customer-list-identity{display:flex;gap:12px;align-items:center}@media(max-width:600px){.customer-photo-main{align-items:flex-start}.customer-photo-fields{padding:12px}}@media print{.customer-internal-only,.customer-visual{display:none!important}}.customer-label{display:inline-flex;align-items:center;gap:9px;max-width:100%;vertical-align:middle}.customer-label>span:last-child{min-width:0;overflow-wrap:anywhere}.customer-image-zoom{position:fixed;z-index:10000;display:flex;width:200px;height:200px;border:4px solid #fff;border-radius:16px;overflow:hidden;background:#f1f5f9;box-shadow:0 10px 32px #0f172a44;pointer-events:none}.customer-image-zoom img,.customer-image-zoom svg{width:100%;height:100%;object-fit:contain;display:block}.customer-visual:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.customer-results .customer-visual{background:#e0e7ff!important;padding:0!important}@media print{.customer-image-zoom{display:none!important}}.batch-receipt-modal{width:min(900px,calc(100vw - 30px));max-height:90vh;overflow:auto}.batch-receipt-fields{border:0;margin:0;padding:0;min-width:0}.batch-receipt-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 8px}.batch-receipt-amount{width:120px;min-width:100px}.batch-receipt-credit{display:flex;gap:8px;align-items:center;margin:16px 0}.batch-receipt-summary{display:flex;flex-wrap:wrap;gap:20px;padding:16px;background:var(--theme-primary-soft);border-radius:10px;margin-top:12px}.batch-receipt-summary>span{display:grid;gap:5px}.order-quick-actions{flex-wrap:wrap}.order-edit-form>.order-items-editor{margin:0 24px 18px}@media(max-width:620px){.order-edit-form>.order-items-editor{margin-left:16px;margin-right:16px}}.order-detail-page>.order-view-header{flex-direction:column;align-items:stretch;gap:18px}.order-view-header>div:first-child{min-width:0;width:100%}.order-view-header h1:before{flex-shrink:0}.field textarea.message-text-input{text-transform:none}.message-template-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.message-template-heading h2{margin:0;font-size:17px}.message-template-body{white-space:pre-wrap;overflow-wrap:anywhere;text-transform:none}.message-template-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.product-navigation{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.product-content{margin-top:18px}.product-options{display:grid;gap:10px;margin:12px 0 18px}.product-form h2{margin-top:24px}.product-form h2:first-child{margin-top:0}.product-form .form-grid{margin-bottom:18px}.product-form textarea{padding:11px}.product-form .table input,.product-form .table select,.product-form textarea{width:100%;border:1px solid var(--theme-border);border-radius:8px;font:inherit}.product-form .table input,.product-form .table select{min-width:90px;padding:10px}.product-row-actions{display:flex;gap:7px;flex-wrap:wrap}.order-area-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:10px;padding:10px;background:var(--theme-surface-alt);border-radius:8px}.order-area-fields select{padding:9px;border:1px solid var(--theme-border);border-radius:8px;font:inherit}.order-stock-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}@media(max-width:760px){.order-area-fields{grid-template-columns:1fr 1fr}}.product-content td small{display:block;margin-top:5px;color:var(--theme-muted)}@media(max-width:700px){.product-cards{grid-template-columns:1fr 1fr}.product-navigation a{flex:1 1}.product-content .table-toolbar{flex-direction:column;align-items:stretch}}.order-view-header>.order-view-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;width:100%;padding-top:16px;border-top:1px solid var(--theme-border)}.order-view-header>.order-view-actions>.button-link,.order-view-header>.order-view-actions>.print-dropdown>button,.order-view-header>.order-view-actions>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:48px;min-height:48px;padding:0 16px;font-size:14px;line-height:1.2;white-space:nowrap;flex-shrink:0}@media(max-width:620px){.order-view-header>.order-view-actions>.button-link,.order-view-header>.order-view-actions>.print-dropdown,.order-view-header>.order-view-actions>button{flex:1 1 auto}.order-view-header>.order-view-actions>.print-dropdown>button{width:100%}}.pricing-calculator{border:1px solid var(--border,#cbd5e1);border-radius:14px;padding:20px;display:grid;gap:14px;margin:24px 0;background:var(--panel,#fff)}.pricing-calculator h3,.product-form h3{margin:14px 0 4px}.pricing-calculator p{margin:0;color:var(--muted,#475569)}.pricing-expenses{display:grid;gap:10px}.pricing-expense{display:grid;grid-template-columns:minmax(140px,2fr) minmax(140px,1.3fr) minmax(100px,1fr) auto;gap:12px;align-items:end}.pricing-expense>button{min-height:42px}.supplier-name{display:flex;align-items:center;gap:12px}.supplier-name>div{min-width:0}.register-select-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.register-select-actions a{font-size:13px}.pricing-results{border:1px solid var(--border,#cbd5e1);border-radius:10px;overflow:hidden}.pricing-results>div{display:flex;gap:12px;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border,#cbd5e1)}.pricing-results>div:last-child{border:0}.pricing-results b{text-align:right}.pricing-below-target{color:#b45309;background:#fffbeb}@media(max-width:700px){.pricing-calculator{padding:14px}.pricing-expense{grid-template-columns:1fr 1fr}.pricing-expense>.field:first-child{grid-column:1/-1}.pricing-results>div{flex-wrap:wrap}.pricing-results b{text-align:left}}.app-icon{display:inline-block;vertical-align:middle;flex:none;overflow:visible}a:has(>.app-icon),button:has(>.app-icon){display:inline-flex;align-items:center;justify-content:center;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:10px}.sidebar nav i{display:inline-flex;align-items:center;justify-content:center;width:28px;flex:none}.sidebar nav a.active{font-weight:700}.sidebar .user>button{display:flex;align-items:center;justify-content:center}.customer-action.tabler-action{display:inline-flex!important;align-items:center;justify-content:center;background-image:none!important;color:var(--blue)}.customer-action.tabler-action.notes{color:#d97706}.customer-action.tabler-action.price{color:#059669}.customer-action.tabler-action:hover .app-icon{transform:scale(1.08)}.sort-head>span{display:inline-flex;align-items:center}.icon-button:has(>.app-icon),.remove-item:has(>.app-icon){display:inline-flex;align-items:center;justify-content:center;padding:0}.view-switcher button:has(>.app-icon){display:inline-flex;align-items:center;gap:7px}@media(max-width:950px){.sidebar nav a{justify-content:center;gap:0}.sidebar nav i{width:28px}}.settings-menu button:has(>.app-icon),.social-nav a:has(>.app-icon){justify-content:flex-start}.flame .app-icon{width:28px;height:28px}.flames-read .app-icon{width:18px;height:18px}.customer-details .app-icon,.customer-note-list header .app-icon{color:#f97316}.card small .app-icon{margin-right:5px}.global-search>.app-icon,.global-search>span>.app-icon{width:20px;height:20px}.order-image-gallery{margin:22px 0;padding:18px;border:1px solid var(--border,#cbd5e1);border-radius:14px}.order-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:16px}.order-image-grid article{min-width:0}.order-image-tile{width:100%;display:grid;gap:7px;background:var(--panel,#fff);border:1px solid var(--border,#cbd5e1);border-radius:10px;padding:8px;text-align:left}.order-image-tile img{width:100%;height:140px;object-fit:contain}.order-image-tile span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px}.order-image-actions{display:flex;gap:6px;margin-top:6px}.order-image-hover{position:fixed;z-index:14000;pointer-events:none;background:#fff;border:1px solid #cbd5e1;padding:8px;border-radius:10px;box-shadow:0 14px 45px #0004;width:320px;height:320px}.order-image-hover img{width:100%;height:100%;object-fit:contain}.order-image-lightbox-bg{z-index:15000;background:#0f172acc}.order-image-lightbox{width:min(96vw,1500px);max-width:none;height:94dvh;max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}.order-image-lightbox .modal-head{flex-shrink:0}.order-image-lightbox h2{font-size:18px;overflow-wrap:anywhere}.order-image-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.order-image-canvas{flex:1 1;min-height:0;overflow:auto;background:#e2e8f0;padding:12px}.order-image-canvas.fit{display:flex;align-items:center;justify-content:center}.order-image-canvas.fit img{max-width:100%;max-height:100%;object-fit:contain}.order-image-canvas.actual img{display:block;height:auto}.order-image-lightbox>small{margin-top:10px}@media(max-width:600px){.order-image-gallery{padding:12px}.order-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-image-lightbox{padding:14px}.order-image-tools .mini{font-size:12px}}@media print{.order-image-gallery,.order-image-hover,.order-image-lightbox-bg{display:none!important}}