@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Roboto,sans-serif;font-size:14px;color:#242443;background:#f5f6f8;--accent:#1262df;--border:#dfe2e7;--muted:#777f8c;--nav:#242448;--rail:64px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:var(--accent);text-decoration:none}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}button:focus-visible,a:focus-visible,tr:focus-visible,.table-scroll:focus-visible{outline:3px solid #84b5ff;outline-offset:-3px}input:focus,select:focus,textarea:focus{outline:2px solid #a9c9fa;border-color:#6c9dea}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--rail);background:var(--nav);display:flex;align-items:stretch;flex-direction:column;z-index:5;border-radius:0 0 0 18px}.brand{height:68px;display:grid;place-items:center;color:#fff}.brand-mark{width:38px;height:38px;border-radius:50%;background:#1267f5;display:grid;place-items:center;font-size:27px;font-weight:500;line-height:1;font-family:Georgia,serif}.nav-item{height:58px;color:white;display:flex;align-items:center;justify-content:center;position:relative}.nav-item .icon{width:27px;height:27px}.nav-item.selected{color:#242448;background:#f5f6f8;border-left:4px solid #ef565e;padding-right:4px}.sidebar-bottom{margin-top:auto;padding:22px 0 18px;display:flex;align-items:center;flex-direction:column;gap:18px}.rail-label{font-size:9px;letter-spacing:1px;color:#b6b6ce}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f0f0f5;color:#54586b;font-size:18px;position:relative}.avatar:after{content:"";width:7px;height:7px;border-radius:50%;background:#29b393;position:absolute;bottom:1px;right:1px;border:2px solid var(--nav)}
.workspace{margin-left:var(--rail);min-width:0;background:#fff;min-height:100vh;border-radius:18px 0 0 0}.topbar{height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:var(--muted);font-size:11px}.breadcrumbs span{margin:0 8px;color:#a8adb5}.user{display:flex;align-items:center;gap:7px}.connection-dot{width:6px;height:6px;border-radius:50%;background:#2ab094}.page-head{display:flex;align-items:center;justify-content:space-between;padding:8px 34px 22px;gap:16px}.page-title{display:flex;align-items:center;gap:20px}h1{margin:0;font-size:27px;font-weight:500;letter-spacing:-.4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 16px;border:1px solid var(--border);border-radius:5px;color:#292b49;background:linear-gradient(#fff,#f0f1f3);font-size:13px;font-weight:500;white-space:nowrap}.button:hover:not(:disabled){background:#eaf1fc;border-color:#a7bbd9}.button.primary{background:#1062e5;border-color:#1062e5;color:#fff}.button.primary:hover:not(:disabled){background:#0853cb}.text-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--accent);padding:5px 0;font-size:12px}.text-button .icon{width:16px;height:16px}#filter-count:not(:empty){border-radius:10px;background:#e8f0ff;padding:1px 6px}.notice{background:#f0f5fc;color:#5b7090;font-size:12px;line-height:1.6;border:1px solid #e1e9f6;padding:10px 14px;border-radius:4px;margin-bottom:18px}.workspace>.notice{margin:0 34px 18px}.readonly-notice{background:#f8f9fb;border-color:#e9ebef;color:#747d8c}.demo-notice{background:#fffbef;border-color:#f1e6c7;color:#8d753c}.notice.error{color:#a43b39;background:#fff3f2;border-color:#f1d3cf;white-space:pre-line}input,select,textarea{color:#292b49;border:1px solid #dfe1e5;border-radius:5px;background:#fff;padding:8px 10px;min-width:0;font-size:13px;min-height:34px}input::placeholder,textarea::placeholder{color:#a4a9b3}select{width:100%}input[readonly],textarea[readonly]{color:#687184;background:#fafbfc}select:disabled{color:#687184;opacity:1;background:#fafbfc}
.orders-panel{margin:0 34px}.extra-filters{display:grid;grid-template-columns:minmax(230px,1.25fr) 1fr 1fr minmax(260px,1.4fr);gap:18px 25px;padding:5px 0 22px}.extra-filters>label{display:flex;flex-direction:column;gap:7px;color:#727a87;font-size:12px;min-width:0}.search{display:flex;align-items:center;gap:6px;border:1px solid #dfe1e5;border-radius:5px;padding:0 9px;background:#fff}.search .icon{width:17px;height:17px;color:#9da6b4}.search input{padding-left:0;border:0;outline:0;min-width:0;width:100%;background:transparent}.search:focus-within{outline:2px solid #a9c9fa;border-color:#6c9dea}.date-range{display:flex;align-items:center;gap:7px}.date-range input{width:50%;font-size:12px;min-width:0}.date-range span{color:#a4a9b2}.filter-actions{display:flex;align-items:center;gap:16px;padding:0 0 24px}.quick-filters{display:flex;align-items:center;gap:2px;background:#f8f9fb;border:1px solid #e1e3e7;border-radius:5px;padding:3px 6px;margin-left:20px;flex-wrap:wrap;min-height:36px;flex:1}.quick-filter{border:0;background:transparent;color:#737c8a;border-radius:3px;padding:6px 12px;font-size:12px}.quick-filter:hover{background:#edf1f8;color:var(--accent)}.quick-filter.active{background:#e8f0fe;color:#145bc0;font-weight:500}
.orders-layout{display:grid;grid-template-columns:168px minmax(0,1fr);border:1px solid var(--border);border-radius:5px;overflow:hidden;align-items:start}.status-sidebar{align-self:stretch;background:#f8f9fb;border-right:1px solid var(--border);padding-bottom:12px}.status-heading{height:41px;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid var(--border);font-size:10px;letter-spacing:.5px;color:#838b98;text-transform:uppercase}#status-navigation{padding:8px 5px}.status-link{display:flex;align-items:flex-start;text-align:left;gap:8px;width:100%;border:0;border-radius:4px;background:transparent;padding:9px 9px;font-size:12px;line-height:1.4;color:#555d70;overflow-wrap:anywhere}.status-link:hover{background:#eaf0fa}.status-link.active{background:#0c60e7;color:#fff}.status-link .status-dot{margin-top:5px}.status-dot{display:inline-block;width:7px;height:7px;border:1.5px solid currentColor;border-radius:50%;flex-shrink:0}.status-link.orange{color:#d98d1c}.status-link.purple{color:#7854bc}.status-link.green{color:#219f7d}.status-link.blue{color:#5277c3}.status-link.amber{color:#a17c40}.status-link.muted{color:#838893}.status-link.active{color:#fff}.orders-content{min-width:0}.list-summary{height:41px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;font-size:11px;color:#949aa4;background:#fff;gap:15px}.list-summary>span:first-child{color:#6c7481}.table-scroll{overflow:auto;max-height:calc(100vh - 210px)}.orders-table{width:100%;min-width:1480px;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.45}.orders-table th{text-align:left;font-size:11px;font-weight:500;color:#727b8b;background:#f7f8fa;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 12px;position:sticky;top:0;z-index:1;white-space:nowrap}.orders-table td{vertical-align:top;padding:18px 12px;border-bottom:1px solid #e1e3e7;color:#33354f}.orders-table tbody tr{cursor:pointer}.orders-table tbody tr:hover{background:#f1f6ff}.orders-table tr:last-child td{border-bottom:0}.date-cell{min-width:108px;color:#545b6c!important}.order-number{padding:0;background:transparent;border:0;color:#185bbf;font-size:13px;font-weight:500;white-space:nowrap}.site-label{font-size:10px;color:#9198a5;margin-top:6px}.manager-name{display:block;font-size:12px;min-width:90px;max-width:130px;color:#57769e}.customer-name{font-weight:400;min-width:130px;max-width:180px;overflow-wrap:anywhere}.contact-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.items-cell{min-width:230px;max-width:300px}.items-cell>div{margin-bottom:5px}.quantity{color:#8d95a3;white-space:nowrap;margin-left:5px;font-size:11px}.cell-secondary{font-size:11px;color:#939aa5;margin-top:4px}.badge{display:inline-flex;align-items:center;gap:7px;min-width:140px;max-width:210px;min-height:31px;padding:7px 10px;border-radius:4px;line-height:1.3;font-size:12px;font-weight:500;background:#f0f1f4;color:#7a8393}.badge.orange{background:#ffa62c;color:#fff}.badge.blue{background:#e9effd;color:#4a6fb8}.badge.purple{background:#f0eafa;color:#7051b4}.badge.green{background:#e3f6ef;color:#259e7f}.badge.amber{background:#fff1d8;color:#b28b47}.badge.muted{background:#f0f1f4;color:#89909a}.payment-state{font-size:11px;color:#969da8;line-height:1.5;min-width:95px}.payment-state:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;border:1.5px dotted currentColor;margin-right:6px}.payment-state.is-paid{color:#2e9f81}.payment-state.is-paid:before{border:0;background:currentColor}.amount{font-size:13px;font-weight:500;white-space:nowrap}.align-right{text-align:right!important}.comments-cell{min-width:220px;max-width:280px}.comment-snippet{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#858b98;font-size:11px;line-height:1.5;max-width:255px}.list-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border-top:1px solid var(--border);color:#818a98;font-size:12px}.pagination{display:flex;align-items:center;gap:4px}.pagination .button{padding:5px 9px;min-height:30px;background:#fff}.pagination .icon{width:15px;height:15px}#page-number{display:grid;place-items:center;width:30px;height:30px;background:#1262df;color:#fff;border-radius:4px;margin:0 3px}.page-size{display:flex;align-items:center;gap:10px}.page-size select{width:auto;min-height:30px;padding:4px 7px}.footnote{font-size:10px;color:#969da7;margin:16px 34px;line-height:1.6;padding-bottom:15px}.empty{text-align:center;padding:70px 24px;font-size:13px;color:#8994a5}.empty strong{font-weight:500;color:#535e70}.empty p{font-size:12px}.loading{color:#8d98aa}#list-error{margin:0 0 16px}
/* The order workspace follows the full-page section layout used by managers. */
.scrim{position:fixed;inset:0;background:rgba(24,26,46,.18);z-index:20}.drawer{position:fixed;inset:0 0 0 var(--rail);background:#f5f6f8;z-index:21;display:flex;flex-direction:column;min-width:0}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 34px 24px;background:#f5f6f8}.back-to-orders{color:#7d8593;font-size:11px;margin-bottom:12px}.back-to-orders .icon{width:13px;height:13px}.order-heading{display:flex;align-items:center;gap:28px}.drawer-header h2{font-size:26px;font-weight:500;letter-spacing:-.4px;margin:0}.header-stat{display:flex;flex-direction:column;gap:4px;font-size:12px}.header-stat>span{color:#7a8391;font-size:11px}.header-stat strong{font-weight:500}.close-button{display:grid;place-items:center;border:0;background:transparent;color:#929ba8;width:32px;height:32px;border-radius:4px;flex-shrink:0}.close-button:hover{background:#e6eaf0;color:#36405a}.order-actionbar{display:flex;align-items:center;gap:20px;margin:0 34px;background:white;border:1px solid var(--border);border-radius:5px 5px 0 0;padding:10px 18px;min-height:50px;font-size:12px}.order-store{color:#496b9c;font-weight:500}.order-updated{color:#9aa0ab;font-size:11px}.order-actionbar>.badge{margin-left:auto;min-width:200px}.detail-tabs{display:flex;align-items:stretch;margin:0 34px;background:#edeff3;border:1px solid var(--border);border-top:0;border-radius:0 0 4px 4px;gap:24px;padding:0 18px;overflow-x:auto;flex-shrink:0}.detail-tabs button{padding:12px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:#8a92a0;white-space:nowrap;font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.15px}.detail-tabs button.active{color:#185fcb;border-color:#185fcb}#order-form{display:flex;flex:1;min-height:0;flex-direction:column}.drawer-body{flex:1;overflow-y:auto;padding:22px 34px;overscroll-behavior:contain;scroll-padding-top:20px}.card{background:#fff;border:1px solid var(--border);border-radius:4px;padding:0 22px 22px;margin-bottom:22px;scroll-margin-top:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);min-height:53px;margin:0 -22px 24px;padding:15px 22px}.section-heading h3{font-size:16px;font-weight:500;margin:0}.section-caption{font-size:11px;color:#9aa1ac}.section-count{font-size:12px;color:#8b94a2;margin-left:8px}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 45px;padding:0 0 2px}.field{display:grid;grid-template-columns:minmax(100px,125px) minmax(0,1fr);align-items:start;gap:15px;color:#777f8e;font-size:12px;line-height:1.5}.field>input,.field>select,.field>textarea{width:100%}.field>textarea{resize:vertical;line-height:1.6}.basket-card{padding:0}.basket-card .section-heading{margin:0 0 0;padding:15px 22px}.basket-table-wrap{overflow-x:auto}.basket-table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px}.basket-table th{font-size:11px;font-weight:500;color:#85909e;text-align:left;background:#fafbfc;padding:12px 16px;border-bottom:1px solid var(--border)}.basket-table td{padding:20px 16px;border-bottom:1px solid #edf0f3;vertical-align:top;white-space:nowrap}.basket-table td.product-name{white-space:normal;width:55%;min-width:220px;color:#265fb7}.product-name strong{font-weight:500}.basket-total{padding:18px 22px;display:flex;justify-content:flex-end;gap:24px;align-items:center;font-size:12px;color:#838d9c}.basket-total strong{color:#2f3550;font-size:18px;font-weight:500;white-space:nowrap}.fulfillment-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:18px 0;border-top:1px solid #edf0f3;font-size:12px}.fulfillment-row p{color:#919ba8;font-size:11px;margin:7px 0}.fulfillment-row strong{font-weight:500;white-space:nowrap}.fulfillment-row .badge{font-size:11px;min-width:100px}.paid-line{border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:22px;padding-top:18px;color:#939ca9;font-size:12px}.paid-line strong{color:#43546d;font-weight:500}.order-ids{display:flex;align-items:center;gap:35px;font-size:11px;color:#949eac;margin-top:24px}.order-ids strong{color:#64728b;font-weight:500;margin-left:8px}.muted-text{color:#929cac;font-size:12px}.drawer-footer{display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid var(--border);padding:12px 34px;gap:20px;min-height:66px}.footer-actions{display:flex;gap:10px;align-items:center}.save-button.primary{background:#21b495;border-color:#1ca98c}.save-button.primary:hover:not(:disabled){background:#15997d}.save-button .icon{width:19px;height:19px}#save-state{font-size:11px;color:#939dab}.drawer-open{overflow:hidden}.drawer-loading{padding:90px 34px;text-align:center;color:#8d98a9}.loading-close{position:absolute;top:20px;right:28px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:5px;background:#292e4d;color:#fff;padding:13px 20px;font-size:12px;z-index:40}.startup-error{max-width:600px;margin:80px auto;padding:20px}.startup-error h1{margin-bottom:25px}
@media(min-width:1800px){.extra-filters{grid-template-columns:minmax(280px,1.2fr) 1fr 1fr minmax(290px,1.2fr)}.orders-table{min-width:1600px}.orders-table td{padding-top:22px;padding-bottom:22px}}
@media(max-width:1200px){.topbar,.page-head{padding-left:24px;padding-right:24px}.orders-panel{margin:0 24px}.workspace>.notice{margin-left:24px;margin-right:24px}.extra-filters{grid-template-columns:1fr 1fr 1fr;gap:16px}.date-filter{grid-column:span 2}.orders-layout{grid-template-columns:150px minmax(0,1fr)}.status-link{font-size:11px}.drawer-header,.drawer-footer{padding-left:24px;padding-right:24px}.drawer-body{padding:20px 24px}.order-actionbar,.detail-tabs{margin-left:24px;margin-right:24px}.fields-grid{gap:18px 28px}.field{grid-template-columns:100px minmax(0,1fr);gap:10px}.detail-tabs{gap:18px}.detail-tabs button{font-size:9px}.order-heading{gap:24px}.header-stat{font-size:11px}}
@media(max-width:850px){.extra-filters{grid-template-columns:1fr 1fr}.date-filter{grid-column:auto}.fields-grid{gap:18px 22px}.field{display:flex;flex-direction:column;gap:7px}.order-updated{display:none}.order-actionbar{gap:12px}.order-actionbar>.badge{min-width:140px}.header-stat:last-child{display:none}.list-summary>span:last-child{display:none}.filter-actions{flex-wrap:wrap}.quick-filters{margin-left:0;min-width:100%;order:3}.orders-layout{grid-template-columns:132px minmax(0,1fr)}.status-link{padding:8px 7px}.table-scroll{max-height:65vh}.drawer-header h2{font-size:23px}}
@media(max-width:600px){:root{--rail:48px}.brand{height:59px}.brand-mark{width:31px;height:31px;font-size:24px}.nav-item{height:49px}.nav-item .icon{width:24px;height:24px}.avatar{width:30px;height:30px;font-size:15px}.topbar{height:40px;padding:0 15px;font-size:10px}.user{font-size:0}.page-head{padding:10px 15px 18px;gap:10px}.page-title{gap:12px;align-items:flex-start;flex-direction:column}h1{font-size:24px}.page-title .text-button{font-size:10px}.page-head>.button{padding:8px 10px;font-size:11px}.orders-panel{margin:0 12px}.workspace>.notice{margin:0 12px 15px;font-size:10px;padding:8px 10px}.extra-filters{grid-template-columns:1fr;gap:13px}.date-filter{grid-column:auto}.extra-filters>label{font-size:11px}.filter-actions{gap:15px;padding-bottom:16px}.quick-filter{font-size:11px;padding:6px 9px}.orders-layout{display:block}.status-sidebar{border-right:0;border-bottom:1px solid var(--border);padding:0}.status-heading{display:none}#status-navigation{display:flex;overflow:auto;padding:6px;gap:4px}.status-link{width:auto;white-space:nowrap;font-size:11px;align-items:center}.status-link .status-dot{margin:0}.list-summary{height:35px;font-size:10px}.orders-table td{padding-top:14px;padding-bottom:14px}.list-footer{font-size:10px;padding:10px}.page-size{gap:6px}.page-size select{font-size:11px}.footnote{margin:14px 15px}.drawer{left:0}.drawer-header{padding:13px 15px 18px}.drawer-header h2{font-size:22px}.order-heading{gap:15px}.header-stat{font-size:11px}.header-stat>span{font-size:9px}.order-actionbar{margin:0 12px;padding:8px 10px;font-size:11px;gap:8px}.order-actionbar>.badge{min-width:110px;max-width:155px;font-size:10px;margin-left:auto}.order-actionbar .text-button{font-size:0}.order-actionbar .text-button .icon{width:17px;height:17px}.detail-tabs{margin:0 12px;padding:0 10px;gap:18px}.detail-tabs button{font-size:10px}.drawer-body{padding:15px 12px;scroll-padding-top:15px}.card{margin-bottom:16px;padding:0 15px 18px}.section-heading{min-height:47px;padding:12px 15px;margin:0 -15px 18px}.section-heading h3{font-size:15px}.section-caption{font-size:9px}.fields-grid{grid-template-columns:1fr;gap:15px}.field{font-size:11px}.basket-card{padding:0}.basket-card .section-heading{padding:12px 15px}.basket-total{padding:15px;font-size:11px;gap:15px}.basket-total strong{font-size:16px}.fulfillment-row{flex-wrap:wrap;gap:12px}.drawer-footer{padding:10px 12px;flex-wrap:wrap;gap:8px}.footer-actions{width:100%;gap:8px}.footer-actions .button{padding:8px 12px;font-size:12px}#save-state{font-size:10px}.order-ids{gap:18px;flex-wrap:wrap}.toast{max-width:90vw;width:max-content}}
/* RetailCRM order-list proportions and stage hierarchy. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Roboto,sans-serif;color:#242443}
.topbar{height:0;overflow:hidden}.page-head{padding:32px 40px 36px}.page-title{gap:24px}.page-head h1{font-size:26px;font-weight:500}.page-title>.text-button{font-size:13px}.orders-panel{margin:0 40px}.workspace>.notice{margin-left:40px;margin-right:40px}.extra-filters{gap:20px 30px;padding:8px 0 26px;grid-template-columns:1.15fr 1fr 1fr 1.25fr}.extra-filters>label{font-size:13px}.extra-filters input,.extra-filters select{min-height:31px}.filter-actions{padding-bottom:24px}.quick-filters{margin-left:30px}.orders-layout{grid-template-columns:140px minmax(0,1fr);background:#f8f9fb;position:relative;overflow:clip}.status-sidebar{padding-bottom:20px}.status-heading{height:59px;border:0;border-bottom:1px solid var(--border);width:100%;background:#f8f9fb;display:flex;align-items:center;gap:5px;text-transform:none;letter-spacing:0;font-size:12px;color:#77818f;padding:0 15px;cursor:pointer}.status-heading .icon{width:14px;height:14px}#status-navigation{padding:11px 4px}.status-link{font-size:13px;color:#252741;padding:8px 12px;line-height:1.35;border-radius:4px}.status-link.active{background:#0b5cec;color:#fff}.status-all{font-weight:500;margin-bottom:20px}.status-group{padding:0 0 21px}.status-group-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:13px;font-weight:500;line-height:1.3;padding:0 12px 8px}.status-group-heading .icon{width:19px;height:19px}.status-group.orange>.status-group-heading{color:#e49725}.status-group.amber>.status-group-heading{color:#e49725}.status-group.purple>.status-group-heading{color:#6641b3}.status-group.blue>.status-group-heading{color:#205fc4}.status-group.green>.status-group-heading{color:#29a38a}.status-group.red>.status-group-heading{color:#d75c65}.status-group.slate>.status-group-heading{color:#858e9d}.status-group .status-link{font-weight:400}.orders-content{background:#fff}.table-scroll{max-height:none;overflow-x:auto}.orders-table{min-width:2240px;table-layout:fixed;font-size:14px}.orders-table th{font-size:12px;height:59px;border-top:0;padding:12px 14px;background:#f8f9fb;white-space:normal}.orders-table td{padding:27px 14px;vertical-align:middle;line-height:1.4}.orders-table th:nth-child(1),.orders-table th:nth-child(2){width:103px}.orders-table th:nth-child(3){width:65px}.orders-table th:nth-child(4){width:100px}.orders-table th:nth-child(5){width:90px}.orders-table th:nth-child(6){width:235px}.orders-table th:nth-child(7){width:245px}.orders-table th:nth-child(8){width:135px}.orders-table th:nth-child(9){width:135px}.orders-table th:nth-child(10){width:250px}.orders-table th:nth-child(11),.orders-table th:nth-child(12){width:240px}.orders-table th:nth-child(13){width:115px}.orders-table .date-cell{min-width:0;color:#242443!important}.sort-heading{border:0;padding:0;background:transparent;text-align:left;color:inherit;font-size:inherit;line-height:1.3}.sort-heading.sorted{color:#445f86}.manager-name{font-size:14px;font-weight:400;color:#205abd;white-space:normal;overflow-wrap:anywhere}.order-number{font-size:14px;font-weight:400}.site-label{font-size:10px;color:#9098a5}.customer-name{min-width:0;font-size:14px}.items-cell{min-width:0;max-width:none}.items-cell>div{margin:0 0 4px;overflow-wrap:anywhere}.badge{min-width:0;width:100%;max-width:none;font-size:14px;padding:8px 12px;border-radius:4px;min-height:32px;gap:5px;line-height:1.25}.badge .icon{width:19px;height:19px}.badge.orange{background:#ffa62a;color:#fff}.badge.amber{background:#fff0d9;color:#d49830}.badge.purple{background:#f0e9fa;color:#6542ac}.badge.blue{background:#e8edfb;color:#235fc7}.badge.green{background:#e0f4ee;color:#269d84}.badge.red{background:#fae8ea;color:#b95d6a}.badge.slate{background:#eceef3;color:#7d8798}.payment-indicator{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:#b3bac5}.payment-indicator.is-paid{border-radius:50%;background:#25b093;color:#fff}.payment-indicator.is-paid .icon{width:16px;height:16px}.unpaid-circle{width:20px;height:20px;border:2px dotted #bcc2cb;border-radius:50%}.contact-cell{white-space:normal;overflow-wrap:anywhere}.address-cell{font-size:13px;overflow-wrap:anywhere}.comments-cell{font-size:13px;min-width:0;max-width:none;overflow-wrap:anywhere}.comment-snippet{font-size:13px;line-height:1.45;max-width:none}.orders-layout.statuses-collapsed{grid-template-columns:45px minmax(0,1fr)}.statuses-collapsed .status-heading{padding:0 14px}.statuses-collapsed .status-heading>span{display:none}.list-footer{font-size:12px}.list-footer>#page-caption{color:#8b94a2}.order-actionbar>.badge{width:230px;margin-left:auto;flex-shrink:0}.fulfillment-row .badge{width:auto;min-width:115px}.drawer-header{padding:24px 40px 28px}.order-actionbar,.detail-tabs{margin-left:40px;margin-right:40px}.drawer-header h2{font-size:26px}.header-stat{font-size:14px}.header-stat>span{font-size:12px}.order-heading{gap:26px}.detail-tabs{gap:25px;padding:0 19px}.detail-tabs button{font-size:11px;color:#8992a0;padding:10px 0}.drawer-body{padding:24px 40px}.card{margin-bottom:24px;padding:0 20px 26px}.section-heading{margin:0 -20px 28px;min-height:56px;padding:17px 20px}.section-heading h3{font-size:17px;font-weight:500}.fields-grid{gap:20px 80px}.field{grid-template-columns:125px minmax(0,1fr);gap:15px;font-size:13px}.field input,.field select,.field textarea{font-size:14px}.basket-card{padding:0}.basket-card .section-heading{margin:0;padding:17px 20px}.basket-table{font-size:14px}.basket-table th{font-size:12px;padding:14px 18px}.basket-table td{padding:24px 18px}.drawer-footer{padding:12px 40px}.drawer-footer .button{font-size:14px;min-height:36px}.save-button.primary{background:#1fb394;border-color:#1ca98c}
@media(max-width:1200px){.page-head{padding:27px 24px 30px}.orders-panel{margin:0 24px}.workspace>.notice{margin-left:24px;margin-right:24px}.extra-filters{grid-template-columns:1fr 1fr 1fr;gap:18px 20px}.date-filter{grid-column:span 2}.quick-filters{margin-left:10px}.drawer-header{padding:22px 24px 26px}.order-actionbar,.detail-tabs{margin-left:24px;margin-right:24px}.drawer-body{padding:22px 24px}.fields-grid{gap:20px 35px}.field{grid-template-columns:105px minmax(0,1fr);gap:12px}.detail-tabs{gap:20px}.detail-tabs button{font-size:10px}.drawer-footer{padding-left:24px;padding-right:24px}}
@media(max-width:850px){.extra-filters{grid-template-columns:1fr 1fr}.date-filter{grid-column:auto}.quick-filters{margin-left:0}.field{display:flex;flex-direction:column;gap:7px}.order-actionbar>.badge{width:190px}.header-stat{font-size:12px}.header-stat>span{font-size:11px}.order-updated{display:none}.order-heading{gap:20px}.fields-grid{gap:20px 25px}}
@media(max-width:600px){.page-head{padding:25px 15px 23px}.page-head h1{font-size:24px}.page-title{gap:9px}.page-title>.text-button{font-size:11px}.orders-panel{margin:0 12px}.workspace>.notice{margin-left:12px;margin-right:12px}.extra-filters{grid-template-columns:1fr;padding-top:3px;gap:14px}.extra-filters>label{font-size:12px}.quick-filters{margin-left:0}.status-heading{display:none}.orders-layout.statuses-collapsed{display:block}.status-sidebar{padding-bottom:0}#status-navigation{display:flex;align-items:stretch;padding:6px;gap:4px}.status-all{margin:0;font-size:12px;min-width:50px}.status-group{padding:0;display:flex;align-items:center;gap:4px}.status-group-heading{display:none}.status-link{font-size:12px;padding:8px 10px;white-space:nowrap}.orders-table{font-size:13px}.orders-table td{padding:22px 12px}.orders-table .badge{font-size:13px}.orders-table .date-cell,.manager-name,.order-number,.customer-name{font-size:13px}.list-footer{flex-wrap:wrap;font-size:11px}.list-footer>#page-caption{width:100%}.drawer-header{padding:16px 15px 20px}.drawer-header h2{font-size:22px}.order-heading{gap:15px}.order-actionbar,.detail-tabs{margin-left:12px;margin-right:12px}.order-actionbar>.badge{width:145px;min-width:0;font-size:11px;padding:7px 9px}.order-actionbar .badge .icon{width:17px;height:17px}.detail-tabs{gap:20px;padding:0 10px}.detail-tabs button{font-size:10px}.drawer-body{padding:16px 12px}.card{padding:0 15px 22px;margin-bottom:16px}.section-heading{margin:0 -15px 22px;padding:14px 15px;min-height:48px}.section-heading h3{font-size:16px}.fields-grid{grid-template-columns:1fr;gap:17px}.field{font-size:12px;gap:8px}.field input,.field select,.field textarea{font-size:13px}.basket-card{padding:0}.basket-card .section-heading{padding:14px 15px}.drawer-footer{padding:10px 12px}.drawer-footer .button{font-size:12px}.header-stat{font-size:11px}.header-stat>span{font-size:10px}}

.product-search{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:20px;border-bottom:1px solid var(--border)}.product-search>.field{display:flex;flex-direction:column;flex:1;min-width:220px;gap:7px}.product-search input{width:100%}#product-results{width:100%;font-size:12px;color:#7b8595;max-height:240px;overflow:auto}.product-result{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:12px;width:100%;background:#fafbfe;border:0;border-bottom:1px solid var(--border);text-align:left;color:#255fb7;font-size:12px}.product-result:hover{background:#edf4ff}.product-result small{color:#929aaa;white-space:nowrap}.basket-quantity{width:75px;text-align:right}.basket-quantity:invalid{border-color:#d35e5e}.basket-help{font-size:11px;line-height:1.65;color:#8590a0;margin:14px 20px 18px}.remove-item{font-size:11px}.basket-table th:last-child{width:80px}@media(max-width:600px){.product-search{padding:15px}.product-search>.field{min-width:180px}.product-search>.button{width:100%}.product-result{gap:8px;flex-wrap:wrap}.basket-help{margin-left:15px;margin-right:15px}}
/* Delivery search and selectors need the full field width, including their action buttons. */
.delivery-editor .fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}
.delivery-editor .field{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.delivery-editor .field input,.delivery-editor .field select{width:100%;min-width:0;box-sizing:border-box}
.delivery-editor .field .text-button{align-self:flex-start;text-align:left;padding:0;white-space:normal}
.delivery-editor h4{font-size:16px;margin:26px 0 10px}
.delivery-editor>.fields-grid,.delivery-editor #cdek-editor>.fields-grid{margin-bottom:16px}
@media(max-width:760px){.delivery-editor .fields-grid{grid-template-columns:1fr}}

.dispatch-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.cdek-dispatch details{margin-top:16px}.cdek-dispatch .section-heading{flex-wrap:wrap;gap:12px}#new-basket input{width:90px}#new-order{margin-left:auto;margin-right:12px}#new-order-form>.drawer-body{padding-bottom:30px}

.order-lower{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:24px;align-items:start}.order-lower-main{min-width:0}.order-lower-main .fields-grid{grid-template-columns:1fr}.order-comments .card{padding:0 20px 20px}.order-comments .section-heading{margin:0 -20px 20px;padding:20px}.order-comments textarea{display:block;width:100%;box-sizing:border-box;min-height:145px;resize:vertical;border:1px solid var(--border);border-radius:4px;padding:12px;font:inherit;color:inherit}.city-picker{position:relative}.city-suggestions{position:absolute;z-index:25;top:100%;left:0;right:0;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #24244324;padding:4px}.city-suggestions button{display:flex;flex-direction:column;gap:3px;width:100%;border:0;background:#fff;text-align:left;padding:10px 12px;color:inherit;font:inherit;cursor:pointer}.city-suggestions button:hover,.city-suggestions button[aria-selected=true]{background:#eaf2ff}.city-suggestions small{color:var(--muted)}.city-suggestions[hidden]{display:none}@media(max-width:1050px){.order-lower{grid-template-columns:1fr}.order-comments{display:grid;grid-template-columns:1fr 1fr;gap:20px}}@media(max-width:650px){.order-comments{grid-template-columns:1fr}}

.fulfillment-section-label{margin:0 -22px 22px;padding:8px 22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:#1262df;font-weight:500;font-size:13px;text-transform:uppercase;letter-spacing:1px}.fulfillment-fields{display:grid;gap:20px;margin-bottom:28px}.fulfillment-fields .field{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:20px}.fulfillment-fields input[type=checkbox]{justify-self:start;width:17px;height:17px}.fulfillment-fields .badge{justify-self:start}@media(max-width:650px){.fulfillment-fields .field{grid-template-columns:1fr;gap:8px}}

.login-page{min-height:100vh;display:grid;place-items:center;background:#f2f5f8;margin:0;padding:24px}.login-card{width:min(100%,400px);padding:40px;background:#fff;border:1px solid #dce1e6;border-radius:12px;box-shadow:0 8px 35px #172b4d0a}.login-brand{font-size:25px;font-weight:700;letter-spacing:3px;margin-bottom:32px;color:#20244a}.login-brand span{font-size:12px;letter-spacing:1px;color:#6b7686;margin-left:12px}.login-card h1{font-size:24px;margin:0 0 12px}.login-hint{color:#697586;line-height:1.5;margin-bottom:28px}.login-card label{display:block;font-size:14px;color:#596579;margin:18px 0 8px}.login-card input:not([type=hidden]){width:100%;height:44px;border:1px solid #bac4ce;border-radius:6px;padding:10px 12px;font:inherit}.login-card input:focus{outline:2px solid #0064ff;outline-offset:1px}.login-card button{width:100%;height:44px;margin-top:26px;background:#005bff;border:0;border-radius:6px;color:#fff;font:inherit;cursor:pointer}.login-error{padding:12px;background:#fff0f0;color:#a82121;border-radius:6px;margin:16px 0}.login-captcha{display:block;margin-top:18px}
.status-dialog{width:min(520px,calc(100vw - 32px));border:1px solid #dce1e6;border-radius:10px;padding:28px;color:#20244a;box-shadow:0 16px 65px #18223b40}.status-dialog::backdrop{background:#16243c60}.status-dialog header,.status-dialog footer{display:flex;gap:12px;align-items:center;justify-content:space-between}.status-dialog header{margin-bottom:24px}.status-dialog h3{margin:0;font-size:22px}.status-dialog .field{margin:18px 0}.status-dialog textarea{width:100%;resize:vertical;min-height:110px}.status-dialog footer{justify-content:flex-start;margin-top:24px}.status-history{margin-top:20px}.status-history summary{cursor:pointer;font-weight:600}.status-history article{padding:16px 0;border-bottom:1px solid #e5e9ef}.status-comment-text{white-space:pre-wrap;overflow-wrap:anywhere}.status-change-button{margin-left:auto}.status-change-button .badge{pointer-events:none}

#new-order-form{display:flex;flex:1;min-height:0;flex-direction:column}

.settings-page{max-width:900px;margin:40px auto;padding:24px}.settings-page .card{padding-bottom:26px}.settings-page .button{margin-top:22px}

/* Order toolbar and status dialog follow the RetailCRM card layout. */
.order-actionbar{padding:0 0 0 20px;min-height:42px;gap:20px;position:relative;overflow:visible}.order-actionbar .text-button{font-size:14px;display:inline-flex;align-items:center;gap:8px}.order-history-action .icon{width:22px;height:22px}.order-refresh-action{margin-left:0}.order-status-area{margin-left:auto;display:flex;align-items:center;gap:14px;position:relative;align-self:stretch}.order-status-control{position:relative;min-width:210px;display:flex;flex-direction:column;justify-content:flex-end}.order-status-strip{display:flex;height:7px;gap:2px;padding:1px 4px 0}.order-status-strip span{flex:1;border-radius:2px 2px 0 0}.order-status-strip .orange{background:#ffa62a}.order-status-strip .amber{background:#fff0d9}.order-status-strip .purple{background:#f0e9fa}.order-status-strip .blue{background:#e8edfb}.order-status-strip .green{background:#e0f4ee}.order-status-strip .red{background:#fae8ea}.order-status-strip .slate{background:#27294c}.status-change-button{border:0;background:transparent;padding:0;position:relative;width:100%;margin:0}.status-change-button .badge{padding:10px 34px 10px 13px;min-height:36px;border-radius:3px 3px 0 0;text-align:left}.status-caret{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#666f87;font-size:12px}.order-status-menu{position:absolute;right:0;top:calc(100% + 4px);width:260px;max-height:min(65vh,620px);overflow:auto;background:white;padding:4px;border:1px solid #dce1e6;border-radius:4px;box-shadow:0 12px 26px #20244a22;z-index:30}.status-choice-group{border-radius:4px;padding:10px 12px;margin-bottom:4px;color:#303957;background:#f1f3f7}.status-choice-group>div{display:flex;gap:8px;align-items:center;margin-bottom:5px;font-size:14px}.status-choice-group .icon{width:20px;height:20px}.status-choice-group button{display:block;width:100%;border:0;background:transparent;text-align:left;color:inherit;padding:7px 0 7px 28px;font-size:13px;border-radius:3px}.status-choice-group button:hover,.status-choice-group button:focus-visible{background:#ffffff70;outline:1px solid currentColor}.status-choice-group button:disabled{opacity:.5;cursor:default}.status-choice-group.orange{background:#ffa62a;color:white}.status-choice-group.amber{background:#fff0d9;color:#ae7b1f}.status-choice-group.purple{background:#f0e9fa;color:#6542ac}.status-choice-group.blue{background:#e8edfb;color:#235fc7}.status-choice-group.green{background:#e0f4ee;color:#269d84}.status-choice-group.red{background:#fae8ea;color:#b95d6a}.status-comment-action .icon{width:21px;height:21px}.status-comment-popover{position:absolute;right:220px;top:calc(100% + 8px);width:300px;max-width:70vw;padding:18px;background:white;border:1px solid #dce1e6;border-radius:5px;box-shadow:0 8px 25px #20244a22;z-index:32;font-size:13px}.status-comment-popover p{white-space:pre-wrap;overflow-wrap:anywhere}.status-comment-popover small{color:#929ba8}
.status-dialog{width:min(880px,calc(100vw - 40px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:8px;box-shadow:none;overflow:auto}.status-dialog::backdrop{background:rgba(66,77,123,.45)}.status-dialog header{padding:22px 32px;margin:0;border-bottom:1px solid #e1e4e9;min-height:68px}.status-dialog h3{font-size:25px;font-weight:600}.status-dialog-close{display:grid;place-items:center;border:0;background:transparent;color:#aab2bc;padding:0;cursor:pointer}.status-dialog-close .icon{width:28px;height:28px;stroke-width:3}.status-dialog-body{padding:32px}.status-target{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:28px;color:#8c96a4;font-size:14px}.status-target>.badge{width:auto;min-height:32px;font-size:15px;font-weight:400}.status-comment-label{display:flex;justify-content:space-between;color:#8c96a4;font-size:14px;margin-bottom:6px}.status-comment-label span:last-child{font-size:13px}.status-dialog textarea{display:block;width:100%;min-height:152px;resize:vertical;border:1px solid #dce1e6;border-radius:6px;padding:12px;font:inherit;color:inherit;background:white;outline:none}.status-dialog textarea:focus{border-color:#a7b7cb}.status-dialog footer{padding:24px 32px;background:#f8f9fb;margin:0;gap:16px}.status-dialog footer .button{min-height:36px;font-size:15px;padding:8px 20px;border-radius:6px}.status-dialog footer .primary{background:#20b896;border-color:#1dac8d;display:inline-flex;gap:10px;align-items:center}.status-dialog footer .primary .icon{width:22px;height:22px}.status-dialog #status-error{margin:15px 0 0}
@media(max-width:600px){.order-actionbar{padding-left:12px;gap:8px}.order-actionbar .text-button{font-size:12px}.order-status-control{min-width:150px;max-width:58vw}.status-change-button .badge{font-size:12px;white-space:normal;min-height:38px}.order-status-area{gap:8px}.order-status-menu{width:245px;max-width:85vw}.order-status-strip{height:6px}.status-comment-popover{right:0}.order-refresh-action{display:none!important}.status-dialog{width:calc(100vw - 24px)}.status-dialog header{padding:18px 20px;min-height:60px}.status-dialog h3{font-size:22px}.status-dialog-body{padding:24px 20px}.status-dialog footer{padding:18px 20px;gap:10px;flex-wrap:wrap}.status-dialog footer .button{font-size:13px;padding:8px 12px}.status-comment-action{display:none!important}}

.history-dialog{width:min(1100px,calc(100vw - 40px));padding:0;max-height:calc(100vh - 60px);border:0;border-radius:8px;color:#242443;box-shadow:0 16px 60px #20244a20}.history-dialog::backdrop{background:rgba(66,77,123,.45)}.history-dialog>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce1e6;padding:0 24px 0 12px;gap:20px}.history-dialog [role=tablist]{display:flex;gap:8px}.history-dialog [role=tab]{padding:24px 20px 20px;border:0;border-bottom:3px solid transparent;background:transparent;color:#8993a3;font-size:18px;font-weight:500}.history-dialog [role=tab][aria-selected=true]{color:#065cec;border-color:#065cec}.history-content{max-height:65vh;overflow:auto;min-height:180px;overscroll-behavior:contain}.history-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px}.history-table th{text-align:left;font-size:12px;font-weight:500;color:#8993a3;background:#f7f8fa;padding:16px 20px;border-bottom:1px solid #e3e7ed;position:sticky;top:0;z-index:1}.history-table th:nth-child(1){width:25%}.history-table th:nth-child(2),.history-table th:nth-child(3){width:23%}.history-table th:nth-child(4){width:14%}.history-table th:nth-child(5){width:15%}.history-table td{padding:16px 20px;border-bottom:1px solid #e8ebef;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.history-table td>strong{font-weight:400}.history-old{color:#8b94a2}.history-new{color:#263a5c}.history-user{color:#2863c4}.history-table small{display:block;font-size:10px;color:#939caa;margin-top:3px}.history-time{font-size:12px;color:#687588}.history-description{font-size:12px;color:#687588;margin:8px 0 0;white-space:pre-wrap}.history-unknown,.history-empty-value{color:#abb2bc;font-size:12px}.history-empty{padding:36px;text-align:center;color:#8993a3}.history-dialog>footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f8f9fb;font-size:12px;color:#8993a3;border-top:1px solid #e1e6ec}.history-dialog .notice{margin:20px}.history-dialog .status-dialog-close{flex-shrink:0}
@media(max-width:700px){.history-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 30px)}.history-dialog>header{padding:0 12px;gap:6px}.history-dialog [role=tab]{padding:18px 10px;font-size:14px}.history-table{min-width:760px}.history-dialog>footer{padding:12px 16px}.history-content{max-height:70vh}}
