:root{font-family:'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#263b37;background:#f5f7f7;font-size:13px;font-synthesis:none;--green:#235f50;--ink:#173d36;--muted:#788581;--line:#e4eae7;--soft:#f6f8f7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green);text-decoration:none}button{border:1px solid #dbe3df;border-radius:7px;background:white;color:#354c44;padding:10px 14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}button:hover{background:#f0f5f2;border-color:#b5c9bf}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#174636;color:white}.danger{color:#b04436;border-color:#ebc9c3}.subtle{background:none;border-color:transparent}.small{font-size:12px;padding:7px 10px}.icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:#173d36;color:#c3d3cb;position:fixed;inset:0 auto 0 0;width:228px;display:flex;flex-direction:column;padding:30px 18px 20px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:650;letter-spacing:-.8px;color:white;padding:0 10px}.brandmark{display:grid;place-items:center;width:33px;height:36px;border:1px solid #608377;border-radius:8px;background:#285247}.brandmark svg{width:23px;height:23px}.workspace{margin:32px 6px 26px;padding:12px;border:1px solid #416057;border-radius:8px;font-size:12px;line-height:1.8;display:flex;gap:10px;align-items:center}.workspace .avatar{background:#3d6558}.nav-label{font-size:10px;letter-spacing:1.5px;color:#8ca89b;margin:0 14px 12px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:12px;color:#b8cec2;padding:12px 14px;border-radius:7px;font-size:13px}.nav a.active{color:white;background:#2c5749}.nav a:hover{background:#234b40}.nav .count{margin-left:auto;font-size:11px;background:#43695b;padding:2px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.local-badge{font-size:11px;color:#b3cbbb;padding:10px 0;display:flex;gap:8px;align-items:center}.dot{height:6px;width:6px;border-radius:50%;background:#91bb98;display:inline-block}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid #3a5b50;padding-top:18px;margin-top:15px}.avatar{width:34px;height:34px;border-radius:9px;background:#e6eee8;color:#2b6048;display:grid;place-items:center;font-weight:600;flex-shrink:0}.profile .avatar{background:#d0e0cf}.profile p{margin:3px 0;font-size:11px}.profile strong{font-size:12px;color:#eff5f1}.profile button{color:#b8cec2;padding:6px;margin-left:auto}.main{grid-column:2;min-width:0}.topbar{height:74px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumbs{display:flex;gap:12px;align-items:center;color:#8a9691;font-size:12px}.breadcrumbs strong{color:#41574c;font-weight:500}.topbar-right{display:flex;align-items:center;gap:20px;color:#7f8d86;font-size:12px}.page{padding:33px 38px 50px;max-width:1900px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:#8a9990;margin-bottom:9px}.heading h1{font-size:28px;letter-spacing:-.8px;font-weight:600;margin:0 0 9px}.heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 22px;position:relative}.stat-label{font-size:12px;color:#6f8077;display:flex;justify-content:space-between}.stat-label .icon{color:#91a398}.stat-number{font-size:30px;font-weight:550;letter-spacing:-1px;margin-top:15px;line-height:1}.stat-foot{font-size:11px;color:#90a095;margin-top:13px}.stat-foot em{font-style:normal;color:#407757}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:19px 23px;border-bottom:1px solid var(--line);gap:16px}.panel-title{font-size:14px;font-weight:600;display:flex;gap:10px;align-items:center}.pill-number{color:#809088;background:#f1f5f2;font-size:11px;border-radius:5px;padding:3px 7px}.toolbar{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:0 11px;background:#fff;min-width:240px}.search input{border:0;padding:10px 0;background:none;width:100%;font-size:12px}.search .icon{color:#8a9b91;width:16px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 23px}.tab{padding:17px 0;border:0;border-radius:0;background:none;font-size:12px;color:#7e8d85;border-bottom:2px solid transparent}.tab.active{color:#285c48;border-bottom-color:#285c48}.tab:hover{background:none}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}thead{background:#f8faf9;color:#7c8d82;font-size:10px;letter-spacing:.4px}th{font-weight:500;padding:13px 18px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:18px;border-bottom:1px solid #edf1ee;vertical-align:middle;line-height:1.5}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}.click-row{cursor:pointer}td strong{font-weight:550;color:#244c3d}.secondary{font-size:11px;color:#8b9990;margin-top:4px}.mono{font-variant-numeric:tabular-nums;font-feature-settings:'tnum';white-space:nowrap}.right{text-align:right}.muted{color:#89968d}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:5px;font-size:10px;font-weight:500;white-space:nowrap;background:#f0f3f1;color:#718076}.badge.green{color:#3c7651;background:#eaf4ec}.badge.amber{color:#a07832;background:#fbf3e4}.badge.blue{color:#567694;background:#eaf1f8}.badge.red{color:#ac5547;background:#fbece8}.badge.purple{color:#7a6a9c;background:#f1edf8}.badge-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.table-footer{padding:14px 22px;border-top:1px solid var(--line);color:#95a096;font-size:11px;display:flex;justify-content:space-between;align-items:center}.grid-bottom{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.activity{padding:6px 23px 15px}.activity-item{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #f0f3f1}.activity-item:last-child{border:0}.activity-icon{background:#f0f5f1;border-radius:8px;display:grid;place-items:center;width:31px;height:31px;color:#6b8e79;flex-shrink:0}.activity-item p{margin:0 0 5px;font-size:12px}.activity-item small{font-size:10px;color:#96a197}.activity-item time{margin-left:auto;white-space:nowrap;font-size:10px;color:#96a197}.empty{padding:48px 24px;text-align:center;color:#87978b;line-height:1.7}.empty .icon{width:30px;height:30px;margin-bottom:12px;color:#91a898}.empty h3{color:#49634f;font-weight:500;font-size:15px;margin:0 0 8px}.empty p{font-size:12px;max-width:370px;margin:0 auto 20px}.notice{padding:13px 16px;background:#eef5ef;border:1px solid #d9e7db;border-radius:7px;color:#53725a;line-height:1.6;font-size:12px;margin-bottom:20px}.notice.warning{background:#fff8e9;border-color:#efdfba;color:#987331}.notice.error{background:#fff0ec;border-color:#edc7bd;color:#a45142}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px}.side-panel{padding:22px}.side-panel h3{font-size:13px;margin:0 0 22px}.fact{margin:18px 0}.fact label{display:block;font-size:10px;color:#8b9a8f;margin-bottom:6px}.fact p{margin:0;font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#7c8d81}.field input,.field select,.field textarea{width:100%;color:#354d3c;background:#fff;border:1px solid #dce5de;border-radius:6px;padding:10px 11px;min-height:37px}.field textarea{min-height:76px;resize:vertical}.field.wide{grid-column:1/-1}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #d4e6d6;border-color:#6c9876}.field small{color:#98a298;line-height:1.5}.form-pad{padding:23px}.edit-table td{padding:9px 10px}.edit-table th{padding:12px 10px}.edit-table input,.edit-table select{padding:8px 7px;border:1px solid #e0e7e1;border-radius:5px;min-width:75px;width:100%;color:#3a4d3f;background:#fff}.edit-table input[data-field=name]{min-width:210px}.edit-table input[type=number]{max-width:110px}.cancelled{text-decoration:line-through;opacity:.55}.savebar{position:sticky;bottom:0;border:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(10px);padding:14px 22px;border-radius:8px;display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:18px;z-index:2}.savebar span{font-size:12px;color:#869386}.savebar .dirty{color:#aa7c31}.progress-track{display:flex;gap:4px;margin:20px 0}.progress-segment{height:4px;background:#e7ede7;flex:1;border-radius:5px}.progress-segment.done{background:#75a382}.progress-segment.current{background:#2e684a}.flow-steps{display:flex;gap:25px;margin:0 0 24px;font-size:11px;color:#a1aaa2}.flow-steps span{display:flex;align-items:center;gap:8px}.flow-steps b{width:23px;height:23px;border:1px solid #d8e1d9;border-radius:50%;display:grid;place-items:center;font-weight:500}.flow-steps .active{color:#316747}.flow-steps .active b{background:#316747;color:#fff;border-color:#316747}.dropzone{padding:46px;text-align:center;border:1px dashed #b3c9b8;background:#f8fbf8;border-radius:9px;margin:22px;position:relative}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.dropzone .icon{height:32px;width:32px;color:#6b9178}.dropzone h3{font-size:15px;font-weight:500}.dropzone p{font-size:12px;color:#869a8a}.modal-overlay{position:fixed;inset:0;background:#152c296b;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:10;padding:28px}.modal{background:#fff;border-radius:12px;width:560px;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #122b2930}.modal.large{width:980px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:21px 25px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:18px;font-weight:550;margin:0}.modal-body{padding:24px}.modal-foot{padding:16px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.modal .form-grid{grid-template-columns:1fr 1fr}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#173d36;color:#cadbd0;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art:after{content:'';position:absolute;width:560px;height:560px;border:1px solid #426354;border-radius:45px;transform:rotate(30deg);right:-220px;top:270px;pointer-events:none}.login-art h1{font-size:48px;line-height:1.2;letter-spacing:-1.7px;font-weight:500;color:#fff;max-width:500px}.login-art p{max-width:410px;font-size:15px;line-height:1.9;color:#a8c1b1}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{width:350px}.login-card h2{font-size:27px;font-weight:550;letter-spacing:-.5px}.login-card>p{color:#87968a;line-height:1.7;margin-bottom:32px}.login-card .field{margin:18px 0}.login-card button{width:100%;margin-top:10px}.error-text{font-size:12px;color:#af5547;line-height:1.6;margin-top:12px}.toast{background:#173d36;color:#fff;padding:14px 20px;border-radius:8px;box-shadow:0 5px 25px #183a3020;font-size:12px;max-width:430px;margin-top:8px;line-height:1.6}.toast.error{background:#8c493c}#toasts{position:fixed;right:25px;bottom:25px;z-index:30}.loading{padding:80px;text-align:center;color:#7f9786}.history-detail{margin-top:12px;padding:12px;background:#f6f8f6;border-radius:6px;font-size:11px;white-space:pre-wrap;max-height:250px;overflow:auto}.history-diff{font-size:11px;margin-top:8px;line-height:1.8}.history-diff del{color:#a36d64;background:#fff0ec}.history-diff ins{color:#508161;background:#eaf4ec;text-decoration:none}.check{width:15px;height:15px;accent-color:var(--green);cursor:pointer}.link-button{border:0;padding:0;background:none;color:var(--green);font-size:inherit;text-align:left}.file-card{display:flex;align-items:center;gap:15px;padding:20px 23px;border-bottom:1px solid var(--line)}.file-icon{padding:12px;border-radius:8px;background:#eef5ef;color:#5b8968}.file-main{flex:1}.file-main strong{font-size:12px}.inline-error{padding:12px;color:#ac5547;background:#fff1ec;font-size:12px;border-radius:6px;margin-bottom:15px}.selected-summary{padding:16px 22px;border-top:1px solid var(--line);display:flex;gap:25px;color:#74917d;font-size:12px}.global-foot{color:#9aa69c;font-size:10px;display:flex;justify-content:space-between;margin-top:30px;letter-spacing:.2px}.new-marker{width:5px;height:5px;background:#bb9948;border-radius:50%;display:inline-block;margin-left:8px}.pagination{display:flex;gap:6px;align-items:center}.changed-input{background:#fffae9!important}.page-error{max-width:700px;padding:40px}.flex{display:flex;gap:10px;align-items:center}.totals{font-size:13px;line-height:1.9;color:#476d50}.compact td{padding:11px 18px}.note-text{max-width:600px;white-space:pre-wrap;color:#809285;font-size:12px;line-height:1.6}input[type=checkbox]{accent-color:#356849}.modal input[type=checkbox]{width:auto;min-height:0}.nowrap{white-space:nowrap}.info-row{padding:14px 23px;background:#f8faf8;font-size:11px;color:#849487;border-top:1px solid var(--line)}
@media(min-width:1600px){.page{padding:40px 50px}.topbar{padding:0 50px}}@media(max-width:1150px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding:25px 12px}.page{padding:26px 24px}.topbar{padding:0 24px}.detail-grid{grid-template-columns:1fr}.side-panel{display:flex;gap:25px;flex-wrap:wrap}.side-panel h3{width:100%}.side-panel .fact{margin:0 0 10px}.heading{align-items:flex-start}.stats{gap:10px}.stat{padding:17px}.grid-bottom{grid-template-columns:1fr}.topbar-right{gap:12px}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:17px;display:block}.brand{font-size:20px}.workspace,.sidebar-bottom,.nav-label{display:none}.nav{display:flex;overflow:auto;margin-top:17px}.nav a{padding:10px;white-space:nowrap}.nav a .icon{display:none}.topbar{height:52px;padding:0 18px}.topbar-right{display:none}.page{padding:24px 16px}.heading{display:block}.heading .actions{margin-top:18px}.stats{grid-template-columns:1fr 1fr}.stat-number{font-size:25px}.toolbar{flex-wrap:wrap;padding:15px}.search{min-width:180px;flex:1}.form-grid{grid-template-columns:1fr 1fr}.login-page{display:block}.login-art{padding:25px}.login-art h1{font-size:28px}.login-art p,.login-art footer{display:none}.login-form{padding:30px 24px}.modal-overlay{padding:12px}.modal .form-grid{grid-template-columns:1fr}.flow-steps{gap:10px}.flow-steps span{font-size:10px}.savebar{padding:12px}.global-foot{display:block;line-height:2}.tabs{gap:18px;overflow:auto}.heading h1{font-size:24px}}

/* Compact order editor: widths follow the field type, not the viewport. */
#line-table{width:100%;table-layout:fixed}
#line-table th{padding:10px 8px}
#line-table td{padding:5px 8px;white-space:nowrap;vertical-align:middle}
#line-table input{height:28px;padding:4px 7px;line-height:18px;font-size:12px;min-width:0;max-width:none}
#line-table input[data-field=name]{width:100%;min-width:0}
#line-table input[data-field=description]{width:100%;min-width:0}
#line-table input[data-field=quantity]{width:100%;max-width:none;text-align:left;font-variant-numeric:tabular-nums}
#line-table input[data-field=price]{width:100%;text-align:left;font-variant-numeric:tabular-nums}
#line-table th:first-child,#line-table td:first-child{padding-left:14px;width:38px}
#line-table th:nth-child(6),#line-table td:nth-child(6){min-width:100px;text-align:left}
#line-table th:nth-child(7),#line-table td:nth-child(7){min-width:84px;text-align:left}
#line-table .line-packing-link{display:inline;margin-left:8px;font-size:11px}
#line-table td:last-child{padding-right:14px;width:80px}
#line-table td .small{width:28px;height:28px;padding:5px}
#line-table td .icon{width:16px;height:16px}

#line-table th:nth-child(4){width:158px}
#line-table th:nth-child(5){width:82px}
#line-table th:nth-child(6){width:98px}
#line-table th:nth-child(7){width:112px}
#line-table th:nth-child(8){width:160px}
#line-table th:nth-child(9){width:85px}
#line-table th:last-child{width:80px}
#line-table{min-width:940px}

#line-table th:first-child,#line-table td:first-child{width:64px}
#line-table input.order-select{width:14px;min-width:14px;max-width:14px;height:14px;padding:0;margin:0 5px 0 0;vertical-align:middle}
#line-table tr:has(input[data-order-line]:checked){background:#eef6f0}

/* View mode keeps selection available but does not expose editing controls. */
[hidden]{display:none!important}
.eyebrow,.nav-label,thead{letter-spacing:normal}
#line-table.read-only input[data-field]{border-color:transparent;background:transparent;cursor:default;padding-left:0;padding-right:0}
#line-table.read-only input[type=number]{appearance:textfield;-moz-appearance:textfield}
#line-table.read-only input[type=number]::-webkit-inner-spin-button{display:none}
#order-form.read-only input,#order-form.read-only select{border-color:transparent;background:transparent;padding-left:0;color:#354d3c;opacity:1}
#order-form.read-only select{appearance:none}

/* Consistent select chevrons and sidebar action spacing. */
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23788881' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px 16px!important;padding-right:36px!important}
#order-form.read-only select{background-image:none!important}
.side-actions{display:grid;gap:10px;width:100%;margin-top:20px}
.side-actions button{width:100%;min-height:38px;padding:9px 10px;font-size:12px;white-space:normal;line-height:1.4}

.allocation-cell{display:grid;grid-template-columns:52px max-content;align-items:center;gap:8px;min-width:0}
#line-table .packing-count{padding:3px 6px;font-size:11px;line-height:18px;border-radius:5px;background:#eef5f1;color:var(--green);flex-shrink:0}
.packing-popover{position:fixed;inset:auto;margin:0;width:290px;max-width:calc(100vw - 16px);max-height:320px;overflow:auto;padding:12px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 28px #173d3626;font-size:12px;white-space:normal}
.packing-popover-title{font-weight:600;margin:2px 4px 10px;overflow-wrap:anywhere}
.packing-popover-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:9px 7px;border-radius:5px}
.packing-popover-row:hover,.packing-popover-row:focus-visible{background:#eef5f1}
.packing-popover-row .mono{color:#62756c}

/* Allocation states stay distinct from row selection. */
#line-table tr.allocated-full{background:#eff7f1}
#line-table tr.allocated-full:hover{background:#e6f2e9}
#line-table tr.allocated-full td:first-child{box-shadow:inset 3px 0 #6a9b78}
#line-table tr.allocated-partial{background:#fffbf0}
#line-table tr.allocated-partial:hover{background:#fff5df}
#line-table tr.allocated-partial td:first-child{box-shadow:inset 3px 0 #c6a258}
#line-table tr:has(input[data-order-line]:checked){background:#e6f0fa}
.allocation-status{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;margin-left:7px;width:18px;height:18px;border-radius:50%;background:#dceee1;color:#38724a;font-size:15px}
.allocated-partial .allocation-status{background:#f8edcf;color:#977321}
#line-table .allocation-status .icon{width:13px;height:13px}

.packing-popover-document{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}

.order-details{padding:22px;background:var(--soft)}
.order-details .panel{margin-bottom:0}
.order-details aside .notice{margin-top:18px;margin-bottom:0}

.order-topbar{height:auto;min-height:104px;padding-top:16px;padding-bottom:16px;gap:20px;align-items:center}
.order-topbar .heading{flex:1;min-width:0;margin:0;gap:20px}
.order-topbar .heading h1{font-size:24px;margin-bottom:5px}
.order-topbar .eyebrow{margin-bottom:5px}
.order-topbar .heading .actions{justify-content:flex-end;flex-shrink:0}
.order-topbar .topbar-right{flex-shrink:0;gap:10px}
.order-page{padding-top:22px}
@media(max-width:1150px){.order-topbar .heading{flex-wrap:wrap}.order-topbar .heading .actions{justify-content:flex-start}.order-topbar{align-items:flex-start}}
@media(max-width:760px){.order-topbar{padding:16px 18px}.order-topbar .heading .actions{margin-top:12px}.order-page{padding-top:16px}}

.orders-list-page > .heading .actions{gap:10px}
.orders-list-page > .heading .actions > button{height:38px;min-width:142px;padding:0 14px;font-size:12px;line-height:18px}
.orders-list-page > .heading .actions > button .icon{width:16px;height:16px}

.orders-list-page .table-wrap table{min-width:980px}
.orders-list-page .table-wrap td a{white-space:nowrap}

.order-actionbar{position:sticky;bottom:12px;z-index:5;min-height:64px;box-shadow:0 3px 18px #173d3610}
.order-actionbar .actions{margin-left:auto;justify-content:flex-end}
.order-actionbar button{min-height:38px}
@media(max-width:760px){.order-actionbar{flex-wrap:wrap;bottom:8px}.order-actionbar .actions{width:100%}}

.order-packings-table{min-width:720px}
.order-packings-table td:first-child a{white-space:nowrap}

.creation-box-select{min-width:130px;padding:7px 36px 7px 10px;border:1px solid #dce5de;border-radius:5px;background-color:white;color:var(--ink)}
.creation-boxes-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.creation-box-row{display:grid;grid-template-columns:1fr 1fr 140px 36px;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:7px;margin-bottom:8px}
.creation-box-row>button{padding:7px}
@media(max-width:600px){.creation-box-row{grid-template-columns:1fr 1fr}.creation-boxes-head{gap:12px}}

.creation-box-row{grid-template-columns:100px 85px minmax(140px,1fr) 110px 36px}
.crate-count-field{max-width:280px;margin-bottom:14px}
@media(max-width:700px){.creation-box-row{grid-template-columns:1fr 1fr}}

.creation-split-part{background:#f4f8f5}
.creation-split-part td:first-child{padding-left:26px}
.creation-split-line,.creation-remove-split{font-size:11px;padding:7px 9px}

.modal .form-grid.packing-create-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.packing-create-fields>.field{min-width:0}
@media(max-width:600px){.modal .form-grid.packing-create-fields{grid-template-columns:1fr}}

.packing-layout-table{font-size:12px;min-width:680px;border-collapse:collapse}
.packing-layout-table td,.packing-layout-table th{border:1px solid #dbe4df;padding:10px 12px;white-space:normal}
.packing-layout-table .packing-group-cell{vertical-align:middle;background:#f7faf8}
.packing-layout-table .packing-crate-cell{vertical-align:middle;background:#eef5f0;font-weight:500}
.packing-layout-total{padding:12px;color:var(--muted);font-size:12px}
.packing-preview{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}
.packing-preview summary{cursor:pointer;font-weight:600;margin-bottom:14px}

.packing-bulk-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px;padding:12px;background:#f5f8f6;border-radius:7px}
.packing-bulk-toolbar>span{font-size:12px;color:var(--muted);margin-right:auto}
.packing-bulk-toolbar button{padding:7px 10px;font-size:11px}
.packing-bulk-toolbar select{max-width:145px;padding:7px;border:1px solid var(--line);border-radius:5px;background-color:white}
.packing-row-select,#packing-bulk-all{width:14px;height:14px}
.packing-wizard:not([data-wizard-step="0"]) :is(.packing-invoice-only,.packing-invoice-column){display:none}
.packing-composition-table .packing-invoice-column{font-variant-numeric:tabular-nums}
.packing-composition-table .packing-uncovered{font-weight:650;color:#925100}
.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-invoice-column{width:12em}

.packing-bulk-toolbar select{max-width:none;min-width:235px}
.creation-box-label{display:inline-block;min-width:92px;font-size:12px;color:var(--ink)}

.modal.packing-wizard{display:flex;flex-direction:column;overflow:hidden}
.packing-wizard .modal-head,.packing-wizard .modal-foot{flex-shrink:0}
.packing-wizard .modal-body{overflow-y:auto;min-height:0;flex:1;padding-top:0}
.packing-wizard-nav{display:flex;gap:24px;position:sticky;top:0;background:white;padding:18px 0;z-index:2;border-bottom:1px solid var(--line);margin-bottom:20px}
.packing-wizard-nav button{border:0;background:transparent;padding:4px 0;color:var(--muted)}
.packing-wizard-nav button.active{color:var(--green);font-weight:600}
.packing-wizard-nav button>span{display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#edf3ef}
.packing-wizard-nav button.active>span{color:white;background:var(--green)}
.packing-wizard[data-wizard-step="0"] .packing-box-control{display:none}
.packing-wizard .modal-foot{align-items:center;background:white}
.wizard-progress{margin-right:auto;color:var(--muted);font-size:12px}
.wizard-review-summary{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:0 0 18px;color:var(--ink)}
.packing-wizard .packing-preview{border-top:0;padding-top:0;margin-top:0}
.packing-wizard .packing-bulk-toolbar{margin-top:0;position:sticky;top:72px;z-index:1}
@media(max-width:600px){.packing-wizard-nav{gap:12px}.packing-wizard-nav button{font-size:11px}.packing-wizard .modal-foot{flex-wrap:wrap}}

#creation-boxes-editor .packing-layout-table input{width:100%;min-width:80px;max-width:120px;padding:8px;border:1px solid #dce5de;border-radius:5px;color:var(--ink);background:white}
#creation-boxes-editor .packing-layout-table select{width:100%;min-width:110px;padding:8px;border:1px solid #dce5de;border-radius:5px;background-color:white;color:var(--ink)}
.packing-bulk-toolbar select:disabled{opacity:.45;cursor:not-allowed;background-color:#f2f5f3}
#creation-boxes-editor+.secondary{display:none}

.packing-wizard .packing-bulk-toolbar{position:static}

.packaging-count-fields{display:grid;grid-template-columns:repeat(2,minmax(0,280px));gap:18px;margin:0 0 18px}
@media(max-width:600px){.packaging-count-fields{grid-template-columns:1fr}}

.inline-pack-quantity{display:flex;align-items:center;gap:5px}
.inline-pack-quantity>input{max-width:80px!important;min-width:60px!important}
.inline-pack-quantity>button{font-size:10px;padding:5px;white-space:nowrap}
#creation-boxes-editor .packing-layout-table{min-width:880px}

.order-select-placeholder{display:inline-block;width:14px;height:14px;margin-right:5px;vertical-align:middle}

.broker-tracking-table{min-width:960px}
.broker-packing-link{display:block;white-space:nowrap;line-height:1.8}
.broker-note{max-width:210px;white-space:normal}
.broker-summary{display:flex;gap:22px;flex-wrap:wrap;padding:16px 20px;margin-bottom:20px;background:white;border:1px solid var(--line);border-radius:8px;color:var(--muted)}
.brokers-page>.heading .actions>button{height:38px;padding:0 14px;font-size:12px}

.packing-edit-section{border-top:1px solid var(--line)}
.packing-edit-section>summary{cursor:pointer;padding:16px 20px;color:var(--green);font-weight:500}

.detail-grid:has(#broker-invoice-content){grid-template-columns:1fr}
.detail-grid:has(#broker-invoice-content)>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.invoice-compare{display:grid;grid-template-columns:1fr 1fr;min-width:0}
.invoice-reference,.invoice-factory{padding:20px;min-width:0}
.invoice-reference{border-right:1px solid var(--line)}
.invoice-section-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px}
.invoice-reference .table-wrap{margin-top:18px;max-height:600px;overflow:auto}
.invoice-reference td,.invoice-reference th{padding:10px 8px}
.invoice-reference-totals{display:flex;gap:15px;flex-wrap:wrap;padding-top:15px;color:var(--muted);font-size:12px}
.invoice-upload-button{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;color:var(--green);font-size:12px;cursor:pointer}
.invoice-file-picker{margin-top:18px}.invoice-download{display:inline-block;margin:10px 0;font-size:12px}
.invoice-review{padding:20px;border-top:1px solid var(--line)}
.invoice-review-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:15px}
@media(max-width:1100px){.invoice-compare{grid-template-columns:1fr}.invoice-reference{border-right:0;border-bottom:1px solid var(--line)}.detail-grid:has(#broker-invoice-content)>aside{display:block}}

.detail-grid.packing-layout{grid-template-columns:minmax(0,1fr)}
.packing-top-block{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;margin-bottom:22px}
.packing-top-block>.panel{margin-bottom:0}
.packing-movement{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;align-content:start}
.packing-movement h3{grid-column:1/-1;margin-bottom:0}
.packing-movement .fact{margin:0}
.packing-movement .progress-track{margin:12px 0}
.packing-movement>button{justify-self:start;align-self:end}
@media(max-width:1100px){.packing-top-block{grid-template-columns:1fr}.packing-movement{display:grid}}
@media(max-width:600px){.packing-movement{grid-template-columns:1fr}.packing-movement h3{grid-column:auto}}

.packing-movement .fact>button{margin-top:10px}

.order-creator{min-width:130px;white-space:normal}

#line-table{min-width:1250px}
#line-table th:nth-child(2),#line-table th:nth-child(3){width:auto}
#line-table input[data-field=pi_number]{width:100%}
#line-table [data-line-total]{text-align:left}

.packing-wizard[data-wizard-step="0"] .packing-composition-table{table-layout:fixed;width:100%}
.packing-wizard[data-wizard-step="0"] .packing-composition-table th:nth-child(2){width:auto}
.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-available{width:110px}
.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-quantity-heading{width:140px}
.packing-wizard[data-wizard-step="0"] .packing-composition-table th,.packing-wizard[data-wizard-step="0"] .packing-composition-table td{padding:8px 12px}
.packing-wizard[data-wizard-step="0"] .packing-composition-table td:nth-child(2){overflow-wrap:anywhere}
.packing-wizard .packing-composition-table input[type=number]{width:calc(var(--quantity-ch,6)*1ch)!important;min-width:58px;max-width:100%;height:30px;padding:4px 7px!important;font-variant-numeric:tabular-nums}
@media(max-width:600px){.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-available{width:82px}.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-quantity-heading{width:110px}}


/* Shared select contract: every select uses the same control and picker. */
select:not([hidden]){min-height:36px;border:1px solid var(--line);border-radius:7px;background-color:#fff;color:var(--ink);padding:8px 36px 8px 11px;line-height:1.4;cursor:pointer;max-width:100%;text-overflow:ellipsis}
select:not([hidden]):hover:not(:disabled){border-color:#a9beb5;background-color:#fafcfb}
select:not([hidden]):focus-visible{outline:3px solid #235f501a;outline-offset:1px;border-color:var(--green)}
select:disabled{cursor:default;opacity:1;color:#788581;background-color:#f6f8f7}
@supports (appearance:base-select){
 select:not([hidden]),select::picker(select){appearance:base-select}
 select:not([hidden]){background-image:none!important;padding-right:11px!important;align-items:center;gap:12px}
 select::picker-icon{color:#788581;transition:rotate .15s}
 select:open::picker-icon{rotate:180deg}
 select::picker(select){border:1px solid #dbe5df;border-radius:9px;background:white;padding:5px;box-shadow:0 10px 30px #173d3626;margin-block:5px;max-height:300px;overflow:auto;min-width:anchor-size(width);max-width:min(520px,calc(100vw - 24px));font:inherit;color:var(--ink)}
 select option{padding:9px 11px;border-radius:5px;min-height:34px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
 select option:hover,select option:focus{background:#eef5f1}
 select option:checked{background:#e5f0eb;color:var(--green);font-weight:500}
 select option:disabled{color:#9ca8a2;cursor:default}
 select option[value^="__"]{color:var(--green);border-top:1px solid var(--line);border-radius:0;margin-top:4px}
 select option[value^="__delete__"]{color:#a45142;font-size:11px}
}
@supports (appearance:base-select){select::picker-icon{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px;flex-shrink:0}}
#creation-boxes-editor .packing-layout-table select{contain:inline-size;width:100%;min-width:110px}

.broker-packing-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:5px 0;min-width:220px}.broker-packing-status .badge{flex-shrink:0}

.broker-packing-status{display:grid;grid-template-columns:minmax(100px,1fr) max-content minmax(125px,max-content);justify-content:initial;gap:10px}.broker-packing-flight{white-space:normal;max-width:220px;line-height:1.5}

/* Keep each packing's identity, status and flight in one compact visual group. */
.broker-packing-status{grid-template-columns:110px 145px minmax(130px,1fr);width:min(100%,540px);min-width:0;gap:12px;padding:9px 12px;margin:6px 0;background:#f7f9f8;border:1px solid var(--line);border-radius:7px}
.broker-packing-status .broker-packing-link{font-weight:500;line-height:1.5}
.broker-packing-status .badge{justify-self:start}
.broker-packing-status .broker-packing-flight{background:transparent;padding:0;color:var(--muted);font-size:11px}
@media(max-width:850px){.broker-packing-status{grid-template-columns:110px 140px;min-width:285px}.broker-packing-status .broker-packing-flight{grid-column:1/-1}}

.broker-packing-status{grid-template-columns:105px 135px minmax(130px,1fr);width:min(100%,490px);gap:10px;padding:0;margin:4px 0;background:transparent;border:0;border-radius:0;min-height:24px}.broker-packing-status .broker-packing-link{font-weight:400}
@media(max-width:850px){.broker-packing-status{grid-template-columns:105px 135px}.broker-packing-status .broker-packing-flight{grid-column:1/-1}}
.brokers-page .broker-tracking-table{min-width:0;table-layout:auto}
.brokers-page .broker-tracking-table th:nth-child(-n+3),.brokers-page .broker-tracking-table td:nth-child(-n+3){width:1%;white-space:nowrap;padding-left:16px;padding-right:16px}
.brokers-page .broker-tracking-table td:last-child{text-align:right}
.brokers-page .broker-packing-status{width:max-content;max-width:none;grid-template-columns:105px 125px max-content;gap:10px}
@media(max-width:850px){.brokers-page .broker-packing-status{grid-template-columns:105px 125px}.brokers-page .broker-packing-flight{grid-column:1/-1}}

.broker-packing-link{cursor:pointer;text-underline-offset:3px;text-decoration-thickness:1px;transition:color .12s ease}
.broker-packing-link:hover,.broker-packing-link:focus-visible{color:#123e32;text-decoration:underline}
.broker-packing-link:focus-visible{outline:2px solid #235f5055;outline-offset:3px;border-radius:2px}

#line-table tfoot td{border-top:1px solid #cfdcd5;border-bottom:0;background:#f6f9f7;padding:12px 10px;font-weight:500;white-space:nowrap}#line-table tfoot .secondary{margin-left:8px;font-weight:400}

tfoot.table-totals td{border-top:1px solid #cfdcd5;border-bottom:0;background:#f6f9f7;padding:12px 10px;font-weight:500;white-space:nowrap}tfoot.packing-layout-total{font:inherit;color:inherit}tfoot.table-totals .secondary{font-weight:400}

#packing-content .packing-layout-table:has(input){min-width:900px}
#packing-content .packing-layout-table input{width:100%;min-width:80px;max-width:120px;padding:8px;border:1px solid #dce5de;border-radius:5px;color:var(--ink);background:white}
#packing-content .packing-layout-table select{contain:inline-size;width:100%;min-width:110px;max-width:180px}
#packing-content .packing-layout-table input:focus-visible{outline:2px solid #235f5026;outline-offset:1px;border-color:var(--green)}

/* Identical layout in packing view and edit modes. */
#packing-content .packing-layout-table{table-layout:fixed;min-width:900px;width:100%}
#packing-content .packing-layout-table tbody tr{height:44px}
#packing-content .packing-layout-table td,#packing-content .packing-layout-table th{padding:6px 10px;overflow-wrap:anywhere}
#packing-content .packing-layout-table input,#packing-content .packing-layout-table select{height:30px;min-height:30px;min-width:0;max-width:100%;padding:4px 7px;font-size:12px;line-height:20px}
#packing-content .inline-pack-quantity{gap:4px;min-height:30px}
#packing-content .inline-pack-quantity>input{width:60px;min-width:40px!important;flex:0 1 60px}
#packing-content .inline-pack-quantity>button{font-size:10px;padding:4px 2px;gap:0;flex-shrink:0}
#packing-content .packing-layout-table tfoot td{height:42px}

.packing-value-edit{display:flex;align-items:center;gap:5px;min-width:0;width:100%;height:30px}.packing-value-edit>input,.packing-value-edit>select{flex:1 1 0;width:0!important;min-width:0!important}.packing-previous-value{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;white-space:nowrap;font-size:10px;color:#8a7971;font-weight:400}.packing-previous-value>span{color:#7b8982}.packing-value-edit.has-change>input,.packing-value-edit.has-change>select{border-color:#b7cfc2!important}.inline-pack-quantity>.packing-value-edit{flex:1;min-width:0}

.packing-saved-change{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.packing-saved-change del{color:#8a7971;font-size:10px;font-weight:400}.packing-saved-change>span:first-of-type{color:#7b8982;font-size:11px}

.packing-document-row{display:flex;align-items:center;gap:6px;white-space:nowrap;line-height:1.8}.packing-document-link{cursor:pointer;text-underline-offset:3px;text-decoration-thickness:1px}.packing-document-link:hover,.packing-document-link:focus-visible{color:#123e32;text-decoration:underline}.packing-document-link:focus-visible{outline:2px solid #235f5055;outline-offset:3px;border-radius:2px}.packing-change-warning{display:inline-flex;align-items:center;color:#b08126;cursor:help}.packing-change-warning .icon{width:14px;height:14px}

.packing-document-flight{font-size:11px;color:var(--muted);margin-left:4px;white-space:nowrap;font-variant-numeric:tabular-nums}

.packing-document-row{display:grid;grid-template-columns:14px max-content;column-gap:6px;align-items:center}.packing-document-row:has(.packing-document-flight){grid-template-columns:14px 96px 110px max-content;column-gap:8px}.packing-warning-slot{display:inline-flex;width:14px;align-items:center;justify-content:center}.packing-document-flight,.packing-document-date{font-size:11px;color:var(--muted);margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}

.packing-document-placeholder{font-size:11px;color:var(--muted);white-space:nowrap}

.packing-summary{margin-bottom:22px}.packing-summary>#packing-form{padding:18px 22px;gap:16px;margin:0}.packing-summary-movement{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px 22px;border-top:1px solid var(--line)}.packing-summary-movement .fact{margin:0;min-width:0}.packing-summary-movement .fact label{font-size:11px;margin-bottom:8px}.packing-summary-movement .fact p[style]{font-size:14px!important}.packing-summary-movement .progress-track{margin:8px 0;max-width:260px}.packing-summary-movement button{padding:7px 10px;font-size:12px;margin-top:8px}.packing-summary-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:11px 22px;border-top:1px solid var(--line);background:#fafcfb}.packing-summary-note{font-size:11px;color:var(--muted);line-height:1.5;margin:0}.packing-summary-footer>button{padding:7px 10px;font-size:12px;background:transparent;color:#7c6158}.packing-summary-footer>button:only-child{margin-left:auto}@media(max-width:700px){.packing-summary>#packing-form,.packing-summary-movement{grid-template-columns:1fr}.packing-summary-footer{align-items:flex-start;flex-direction:column}}

.packing-document-row:has(.packing-document-flight){grid-template-columns:14px 96px 142px 110px max-content;column-gap:8px}.packing-document-status{display:inline-flex;align-items:center;min-width:0}.packing-document-status .badge{white-space:nowrap}

.packing-document-row:has(.packing-document-flight){grid-template-columns:14px 96px 110px 100px 128px;column-gap:8px}.packing-document-progress{display:flex;align-items:center;gap:3px;width:128px;min-height:18px;margin-left:4px}.packing-document-progress .progress-segment{height:4px;min-width:0}.packing-document-progress.is-empty{opacity:.55}

.packing-document-progress[data-packing-id]{cursor:help;border-radius:4px}.packing-document-progress[data-packing-id]:hover{background:#235f5008}.packing-document-progress[data-packing-id]:focus-visible{outline:2px solid #235f5055;outline-offset:3px}#packing-status-legend{position:fixed;inset:auto;margin:0;width:310px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;padding:12px;border:1px solid #dbe5df;border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 12px 40px #173d3626;font-size:12px}#packing-status-legend::backdrop{background:transparent;pointer-events:none}.packing-legend-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px 9px;border-bottom:1px solid var(--line)}.packing-legend-heading button{padding:3px}.packing-legend-steps{padding-top:7px;display:grid;gap:3px}.packing-legend-step{display:grid;grid-template-columns:23px 1fr max-content;align-items:center;gap:9px;padding:6px;border-radius:6px;color:#87948d}.packing-legend-dot{width:22px;height:22px;display:grid;place-items:center;background:#f0f3f1;border-radius:50%;font-size:10px}.packing-legend-dot .icon{width:13px;height:13px}.packing-legend-step.done{color:#58836a}.packing-legend-step.done .packing-legend-dot{background:#edf4ef}.packing-legend-step.current{background:#edf5f0;color:var(--green);font-weight:500}.packing-legend-step.current .packing-legend-dot{background:var(--green);color:white}.packing-legend-step small{font-size:10px;font-weight:400}.packing-legend-cancelled{padding:9px 6px;color:#aa5142}

/* Shipment movement contract: same geometry and legend in every surface. */
.packing-document-progress{flex-shrink:0;margin-left:0}.packing-summary-movement .packing-document-progress{margin:6px 0;max-width:100%}.broker-packing-status{grid-template-columns:105px 128px minmax(130px,1fr)}.packing-popover-row .packing-document-progress{width:100px}.packing-popover-row{gap:12px}.packing-summary-movement .fact>.packing-document-progress{display:flex}

.directory-value{max-width:360px;overflow-wrap:anywhere;white-space:pre-wrap}

.order-invoice-top{display:grid;grid-template-columns:minmax(0,1fr) 280px;border-bottom:1px solid var(--line)}.order-invoice-data{padding:22px}.order-invoice-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.order-invoice-heading h3{font-size:13px;margin:0;font-weight:600}.order-invoice-info{border-left:1px solid var(--line);padding:22px;background:#fafcfb}.order-invoice-info .fact{margin:0 0 16px}.order-invoice-info .side-actions{margin-top:20px}.order-invoice-files .file-card:last-child{border-bottom:0}@media(max-width:850px){.order-invoice-top{grid-template-columns:1fr}.order-invoice-info{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.order-invoice-info .fact{margin:0}.order-invoice-info .side-actions{margin:0}}

.sidebar>.nav-label{margin-top:32px}

.broker-invoice-files{display:grid;gap:9px;margin-top:16px}.broker-invoice-file{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:7px;min-width:0}.broker-invoice-file-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1;cursor:pointer}.broker-invoice-file-main input{flex-shrink:0;margin:0;accent-color:var(--green)}.broker-invoice-file-icon{font-size:10px;font-weight:600;background:#f0f5f2;color:var(--green);border-radius:5px;padding:9px 5px;min-width:36px;text-align:center;flex-shrink:0}.broker-invoice-file-text{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.broker-invoice-file-text strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.broker-invoice-file-text .secondary{margin:0}.broker-invoice-file.is-selected{border-color:#c6d9ce}.broker-invoice-file-download{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.broker-invoice-file-download:hover{text-decoration:underline;text-underline-offset:3px}.invoice-selected-badge[hidden]{display:none}.broker-invoice-file .invoice-selected-badge{padding:2px 6px;font-size:10px}@media(max-width:600px){.broker-invoice-file{align-items:flex-start;flex-wrap:wrap}.broker-invoice-file-download{margin-left:auto}}

.packing-document-row:has(.packing-document-review){grid-template-columns:14px 96px 110px 100px 128px max-content;min-height:26px}.packing-document-review{display:inline-flex;align-items:center;margin-left:6px}.packing-document-review .badge{white-space:nowrap;line-height:1.4}
.packing-document-row:has(.packing-document-review){grid-template-columns:14px 88px 98px 94px max-content 84px;column-gap:6px}.packing-document-row:has(.packing-document-review) .packing-document-progress{width:84px;margin-left:0}.packing-document-row:has(.packing-document-review) .packing-document-review{margin-left:2px}
.packing-document-row:has(.packing-document-review){grid-template-columns:14px 88px 98px 94px 108px 84px}.packing-document-review .badge{white-space:normal}

.packing-document-head{display:grid;grid-template-columns:14px 88px 98px 94px 108px 84px;column-gap:6px;align-items:center;line-height:1.5;white-space:normal}.packing-document-head>span{min-width:0}
/* Keep the grouped packing table grid consistent across header, body and totals. */
.packing-layout-table thead{font-size:11px;letter-spacing:0;background:#f6f8f7}
.packing-layout-table thead th{height:38px;vertical-align:middle;line-height:1.4;color:#64766d;font-weight:500}
.packing-layout-table tbody td{background:#fff;border-bottom:1px solid #dbe4df}
.packing-layout-table tbody .packing-group-cell{background:#f7faf8}
.packing-layout-table tbody .packing-crate-cell{background:#eef5f0}
.packing-layout-table tfoot.packing-layout-total{padding:0}
.packing-layout-table tfoot.table-totals td{border:1px solid #dbe4df;border-top:2px solid #cfdcd5;background:#f4f7f5;font-weight:600}
#packing-content .packing-layout-table thead th{padding:10px}
.field input:disabled,.field textarea:disabled{background-color:#f6f8f7;color:#788581;-webkit-text-fill-color:#788581;opacity:1;cursor:default}

.new-order-methods{display:grid;gap:12px}.new-order-methods>button{width:100%;padding:18px;text-align:left;justify-content:flex-start;white-space:normal;gap:14px}.new-order-methods>button>span{display:grid;gap:6px;flex:1}.new-order-methods strong{font-size:14px;font-weight:600;color:var(--ink)}.new-order-methods button span span{font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}.new-order-methods>button>.icon:first-child{width:22px;height:22px;color:var(--green)}

.distribution-heading{display:inline-flex;align-items:center;gap:6px}.distribution-info{display:inline-grid;place-items:center;width:16px;height:16px;min-width:16px;padding:0;border:1px solid #a3b1aa;border-radius:50%;font-size:11px;line-height:1;font-family:inherit;font-weight:600;color:#7c8d82;background:transparent;cursor:help}.distribution-info:hover,.distribution-info:focus-visible{color:var(--green);border-color:var(--green);background:#eaf4ec}#distribution-legend{position:fixed;inset:auto;margin:0;width:340px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;padding:12px;border:1px solid #dbe5df;border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 12px 40px #173d3626;font-size:12px}#distribution-legend::backdrop{background:transparent;pointer-events:none}.distribution-legend-items{display:grid;gap:14px;padding:14px 2px}.distribution-legend-items p{margin:6px 0 0;font-size:12px;line-height:1.5;color:#6c7c73}.distribution-legend-note{border-top:1px solid var(--line);padding:10px 2px 0;font-size:11px;line-height:1.5;color:var(--muted)}

.field-legend-heading{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px}.field-legend-heading .distribution-info{width:14px;height:14px;min-width:14px;font-size:10px}
.field-legend-heading{display:block;line-height:1.5}.field-legend-heading .distribution-info{display:inline-grid;vertical-align:middle;margin-left:4px}

.distribution-info,.field-legend-heading .distribution-info{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:14px;height:14px;min-width:14px;padding:0;border:0;border-radius:3px;background:transparent;color:#94a19a;font-size:0;line-height:1;flex-shrink:0}.distribution-info svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}.distribution-info:hover,.distribution-info:focus-visible{color:var(--green);background:#235f500a;border:0}.distribution-heading{gap:4px}.field-legend-heading .distribution-info{margin-left:3px}
.packing-wizard[data-wizard-step="0"] .packing-composition-table{min-width:800px}.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-available{width:90px}.packing-wizard[data-wizard-step="0"] .packing-composition-table th.packing-quantity-heading{width:110px}.packing-wizard[data-wizard-step="0"] .packing-composition-table .packing-line-directory-column{width:190px}.packing-line-directory-column .field{font-size:0;gap:0}.packing-line-directory-column select{font-size:12px;min-height:32px;padding:6px 28px 6px 9px}.packing-line-directory{white-space:normal;overflow-wrap:anywhere;font-weight:400}.packing-create-fields{margin-bottom:16px}
.packing-line-directory-edit{display:grid;gap:8px;margin-top:8px}.packing-line-directory-edit .field{font-size:10px;gap:3px}#packing-content .packing-line-directory-edit select{width:100%;max-width:100%}

.packing-document-flight.has-value,.packing-document-date.has-value{color:var(--ink)}.packing-document-flight.is-placeholder,.packing-document-date.is-placeholder,.packing-document-placeholder{color:#9ba6a0}




.directory-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start}.directory-navigation{display:grid;gap:5px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px}.directory-navigation>button{justify-content:flex-start;text-align:left;border:0;background:transparent;padding:12px 10px;font-size:12px;gap:9px;white-space:normal}.directory-navigation>button>span:not(.pill-number){flex:1}.directory-navigation>button>.icon{width:17px;height:17px;color:#80958a}.directory-navigation>button.active{background:#edf4f0;color:var(--green);font-weight:600}.directory-navigation>button.active>.icon{color:var(--green)}.directory-navigation>button:hover{background:#f4f7f5}.directory-navigation .pill-number{margin-left:auto}.directory-content{min-width:0}.directory-content .directory-value{overflow-wrap:anywhere}@media(max-width:850px){.directory-layout{grid-template-columns:1fr}.directory-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}


.import-settings{border-bottom:1px solid var(--line)}.import-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;cursor:pointer;list-style:none;color:var(--green);font-size:13px;font-weight:500}.import-settings>summary::-webkit-details-marker{display:none}.import-settings>summary>span{display:flex;align-items:center;gap:9px}.import-settings>summary>.icon{width:14px;height:14px;transition:transform .15s}.import-settings[open]>summary>.icon{transform:rotate(90deg)}.import-settings>summary:hover{background:#f6f9f7}.import-settings>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}.import-settings[open]>summary{border-bottom:1px solid var(--line)}

.import-advanced{margin-top:18px;border-top:1px solid var(--line)}.import-advanced>summary{display:flex;justify-content:space-between;align-items:center;padding:13px 0 0;list-style:none;cursor:pointer;color:var(--green);font-size:12px;font-weight:500}.import-advanced>summary::-webkit-details-marker{display:none}.import-advanced>summary>.icon{width:13px;height:13px;transition:transform .15s}.import-advanced[open]>summary>.icon{transform:rotate(90deg)}.import-advanced>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.import-advanced>.form-grid{margin-top:16px}

#line-table{min-width:1560px}#line-table th.order-routing-cell{width:135px}#line-table .order-routing-cell select{width:100%;min-width:0;height:28px;padding:3px 23px 3px 7px;font-size:12px}#line-table .order-routing-cell select:disabled{color:var(--ink,#263d35);background:#f5f7f6;opacity:1}.packing-wizard[data-wizard-step="0"] .packing-composition-table{min-width:0}

.components-registry-table{min-width:1400px}.components-registry-table th,.components-registry-table td{padding:11px 14px;vertical-align:middle}.components-registry-table td:first-child{min-width:220px;max-width:320px;white-space:normal}.components-registry-table td:nth-child(2){min-width:150px;white-space:nowrap}.components-registry-table .table-totals td{font-variant-numeric:tabular-nums}.orders-view-tabs{border-bottom:1px solid var(--line)}

#line-table{min-width:1720px}#line-table th.component-status-cell{width:165px}.component-status-cell{white-space:nowrap}.component-status-cell select{width:100%;height:28px;min-width:145px;padding:3px 23px 3px 7px;font-size:12px}

.components-registry-table{min-width:1780px}.components-registry-table td:first-child{min-width:32px;max-width:32px}.components-registry-table td:nth-child(2){min-width:220px;white-space:normal}.components-registry-table td:nth-child(3){white-space:nowrap}.components-registry-table .order-routing-cell select{min-width:135px;width:100%}.component-actions{white-space:nowrap}.component-actions button{padding:5px 8px;margin:2px;font-size:11px}

.component-packings{min-width:215px}.component-packing-row{display:flex;align-items:center;gap:12px;margin:3px 0}.component-packing-row .packing-document-row{display:inline-grid;grid-template-columns:14px 96px;gap:4px}.component-packing-row .packing-document-progress{width:70px;margin:0;flex-shrink:0}

/* Component registry: intrinsic single-line columns, with spare width on the name. */
.components-registry-table{min-width:0;table-layout:auto;width:100%}
.components-registry-table th,.components-registry-table td{width:1%;padding:9px 10px;white-space:nowrap;word-break:normal}
.components-registry-table th:first-child,.components-registry-table td:first-child{min-width:28px;max-width:none;width:28px}
.components-registry-table th:nth-child(2),.components-registry-table td:nth-child(2){min-width:190px;max-width:none;width:auto;white-space:nowrap}
.components-registry-table td:nth-child(3){min-width:0}
.components-registry-table td:nth-child(6){min-width:58px}
.components-registry-table .component-packings{min-width:210px}
.components-registry-table .order-routing-cell select{min-width:140px}
.components-registry-table tfoot td{width:auto}
.components-registry-table tfoot tr td:nth-child(n){min-width:0;max-width:none;white-space:nowrap}
.components-registry-table tbody tr td:nth-child(n){white-space:nowrap}
.components-registry-table tbody tr td:nth-child(6),.components-registry-table thead tr th:nth-child(6){width:60px;min-width:60px;max-width:80px}
.append-quantity{height:32px;padding:6px 9px;border:1px solid #dce5de;border-radius:5px;background:#fff;color:var(--ink);font:inherit}.append-quantity:focus{outline:2px solid #b9d4c4;outline-offset:2px}

.components-registry-table .component-order-chip{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid #d7e5df;border-radius:5px;background:#edf4f0;color:var(--green);font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;text-decoration:none;transition:background .15s,border-color .15s}
.components-registry-table .component-order-chip:hover{background:#dfeee5;border-color:#94b9a5;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.components-registry-table .component-order-chip:focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* Frame quantity, price and total as one column group. */
.components-registry-table thead th:nth-child(6),.components-registry-table tbody td:nth-child(6),.components-registry-table tfoot td:nth-child(2){border-left:1px solid #cbd8d1}
.components-registry-table thead th:nth-child(8),.components-registry-table tbody td:nth-child(8),.components-registry-table tfoot td:nth-child(4){border-right:1px solid #cbd8d1}

.component-actions button[data-action="edit-component"]{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;padding:5px;margin:0}.component-actions button[data-action="edit-component"] .icon{width:14px;height:14px}

.page.orders-list-page{max-width:none;width:100%;margin:0;padding:12px 14px 14px}
.orders-registry-topbar{height:56px;padding:0 14px;gap:16px}
.orders-registry-topbar>button{height:34px;padding:0 12px;font-size:12px;white-space:nowrap}
.orders-list-page>section.panel{margin-bottom:0}
.orders-list-page>.savebar{margin-top:10px;padding:10px 14px}
.orders-list-page .orders-view-tabs{padding-left:14px;padding-right:14px}
.orders-list-page .table-footer{padding:10px 14px}


.components-registry-table [hidden]{display:none}.components-registry-table select:has(option[value=""]:checked){color:var(--muted)}.components-registry-table select option{color:var(--ink)}

/* Registry working view: stable identification, scrollable data and compact tools. */
.orders-list-page .components-scroll{overflow:auto;max-height:calc(100dvh - 265px);min-height:180px;isolation:isolate;scroll-padding-top:40px}
.orders-list-page .components-registry-table{border-collapse:separate;border-spacing:0}
.components-registry-table thead th{position:sticky;top:0;z-index:4;background:#f6f9f7;box-shadow:0 1px 0 var(--line)}
.component-packing-row{gap:8px;white-space:nowrap}.component-packing-row .badge{font-size:10px;padding:3px 5px}
.component-selection-bar[hidden]{display:none}
.component-bulk-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));margin:14px 0}
.component-filter-fields{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;padding-top:10px}.component-filter-fields select{min-width:0;width:100%}
.component-filter-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px}.component-filter-chips:empty{display:none}
.component-page-size{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.component-page-size select{width:65px;padding:5px 20px 5px 8px}.orders-list-page .table-footer{gap:16px}
@media(max-width:1100px){.component-filter-fields{grid-template-columns:repeat(3,minmax(120px,1fr))}}
/* Semantic registry columns survive optional column visibility. */
.components-registry-table thead tr th[data-column],.components-registry-table tbody tr td[data-column],.components-registry-table tfoot tr td[data-column]{min-width:0;max-width:none;width:1%;text-align:left;border-left:0;border-right:0}
.components-registry-table thead tr th[data-column="name"],.components-registry-table tbody tr td[data-column="name"]{min-width:260px;max-width:260px;width:260px}
.components-registry-table tr :is(th,td)[data-column="select"]{min-width:36px;width:36px;max-width:36px}
.components-registry-table thead tr th[data-column="packings"],.components-registry-table tbody tr td[data-column="packings"]{min-width:280px;width:auto}
.components-registry-table tr :is(th,td)[data-column="quantity"],.components-registry-table tr :is(th,td)[data-column="price"],.components-registry-table tr :is(th,td)[data-column="total"],.components-registry-table tr :is(th,td)[data-column="allocated"],.components-registry-table tr :is(th,td)[data-column="draft_quantity"],.components-registry-table tr :is(th,td)[data-column="remaining"]{text-align:right;font-variant-numeric:tabular-nums}
.components-registry-table tr :is(th,td)[data-column="quantity"]{border-left:1px solid #cbd8d1}
.components-registry-table tr :is(th,td)[data-column="total"]{border-right:1px solid #cbd8d1}
.registry-sort{border:0;background:transparent;padding:0;display:inline-flex;align-items:center;justify-content:inherit;gap:5px;color:inherit;font:inherit;box-shadow:none}.registry-sort:hover{background:transparent;color:var(--green)}.registry-sort span{color:#98a69f;font-size:11px}
.registry-tools{margin-left:auto;display:flex;align-items:center;gap:12px}.registry-tools button{display:inline-flex;align-items:center;gap:6px}
/* Configurable columns: geometry follows the column identity, never its position. */
.components-registry-table tr :is(td,th)[data-column]{position:static;left:auto;box-shadow:none}
.components-registry-table tbody td[data-column="select"],.components-registry-table tbody td[data-column="name"]{position:sticky;z-index:2;background:white;left:0}
.components-registry-table tbody td[data-column="name"]{left:36px;box-shadow:1px 0 0 var(--line)}
.components-registry-table tbody td[data-column="name"]>strong{display:block;overflow:hidden;text-overflow:ellipsis}
.components-registry-table thead tr th[data-column]{position:sticky;top:0;z-index:4;background:#f6f9f7}
.components-registry-table thead tr th[data-column="select"]{left:0;z-index:6}
.components-registry-table thead tr th[data-column="name"]{left:36px;z-index:6}

.registry-column-option{display:flex;align-items:center;gap:4px}.registry-column-option label{flex:1}.registry-column-option button{padding:2px 5px;font-size:12px;min-width:24px}
.quantity-link{border:0;background:transparent;padding:0;color:var(--green);font:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;cursor:pointer}.quantity-link:hover{color:#102f27;text-decoration-style:solid}
.component-page-size select{width:80px}.component-filter-chips button{font-size:11px}
.project-detail-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}.project-detail-row input{flex:1;min-width:0}.project-detail-row button{padding:7px}
.components-registry-table tbody tr.component-received td,
.components-registry-table tbody tr.component-received :is(strong,a,button,.badge,.muted,.secondary,select){color:#8b9691}
.components-registry-table tbody tr.component-received a:hover,
.components-registry-table tbody tr.component-received button:hover{color:var(--green)}
.mega-file-choice{display:flex;align-items:center;gap:14px;padding:20px;border:1px solid var(--line);border-radius:8px;cursor:pointer;position:relative}.mega-file-choice>span{display:grid;gap:7px}.mega-file-choice>span>span{color:var(--muted);font-size:12px}.mega-file-choice input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}#mega-upload-status{padding-top:12px;color:var(--muted)}
/* Manual megaKP reconciliation: independent, scrollable source and order tables. */
.modal-overlay:has(> :is(.mega-manual-modal,.packing-wizard)){padding:clamp(12px,2vh,28px);align-items:stretch}.mega-manual-modal .modal-body{overflow:auto}.mm-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.mm-file-name{flex:none;font-size:12px;overflow-wrap:anywhere}.mm-tools .field{min-width:140px}.mm-linkbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--border,#dce5e1)}.mm-linkbar>span{flex:1}.mm-linkbar .field{min-width:120px}.mm-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mm-sides>section{min-width:0}.mm-sides h3{font-size:13px;margin:14px 0 10px}.mm-sides h3 span{font-weight:400;color:#72817a}.mm-table-scroll{overflow:auto;height:49vh;border:1px solid #dce5e1;border-radius:6px}.mm-sides table{min-width:495px;table-layout:fixed;font-size:11px;font-variant-numeric:tabular-nums}.mm-sides th{position:sticky;top:0;z-index:1;background:#f5f8f6}.mm-sides td{vertical-align:top}.mm-sides .secondary{display:block;font-size:11px;margin-top:4px}.mm-filter{width:100%;min-width:66px!important;height:26px!important;margin-top:5px;padding:3px 5px!important}.mm-right input[type=radio],.mm-left input{accent-color:#215f51}#mm-report-note{padding-top:12px}@media(max-width:900px){.mm-sides{grid-template-columns:1fr}.mm-table-scroll{height:35vh}}
.mm-sides th .mm-filter{display:block;margin-top:6px}.mm-left th{white-space:normal}.mm-sides th:first-child{width:36px}
.mm-legend .mm-orange{background:#ffdfbd}.mm-legend .mm-purple{background:#eee2fa}.mm-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;margin:10px 0}.mm-legend>span{padding:4px 7px;border-radius:4px}.mm-legend .mm-green{background:#e1f0e7}.mm-legend .mm-yellow{background:#fff2cd}.mm-candidate-reason{display:block;font-size:11px;margin-top:5px;color:#615039}
.mm-sides .mm-sort{padding:0;border:0;background:transparent;min-height:0;height:auto;font:inherit;color:inherit;font-weight:600;cursor:pointer;white-space:nowrap}.mm-sides .mm-sort:hover{color:#215f51;text-decoration:underline}
/* Give the comparison tables the remaining modal height. */
.modal.mega-manual-modal,.modal.large.packing-wizard{width:100%;max-height:none}
.modal.mega-manual-modal{--control-height:30px;display:flex;flex-direction:column}.mega-manual-modal .modal-head{padding:7px 14px;flex:none}.mega-manual-modal .modal-foot{padding:7px 14px;flex:none}.mega-manual-modal .modal-foot>button{padding-block:4px}.mega-manual-modal .modal-body{padding:9px 12px;flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}.mega-manual-modal .mm-tools{gap:10px;align-items:center;flex:none}.mega-manual-modal .mm-help .mm-tools{margin-top:8px}.mega-manual-modal .mm-tools .field,.mega-manual-modal .mm-linkbar .field{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;font-size:11px}.mega-manual-modal .mm-tools select{width:125px;height:30px;padding-top:4px;padding-bottom:4px}.mega-manual-modal .mm-help{flex:none;font-size:11px;color:#788581}.mm-help>summary{cursor:pointer;width:max-content}.mm-help[open]{max-height:130px;overflow:auto}.mm-help p{margin:6px 0}.mega-manual-modal .mm-linkbar{padding:3px 0 6px;gap:6px;flex:none;font-size:12px}.mega-manual-modal .mm-linkbar>span{min-width:min(100%,14rem)}.mega-manual-modal .mm-linkbar button{padding:3px 8px;font-size:11px;height:28px}.mega-manual-modal .mm-linkbar select{height:30px;width:120px;padding-top:4px;padding-bottom:4px}.mega-manual-modal .mm-sides{flex:1;min-height:0}.mega-manual-modal .mm-sides>section{display:flex;flex-direction:column;min-height:0}.mega-manual-modal .mm-sides h3{margin:4px 0 8px;flex:none}.mega-manual-modal .mm-table-scroll{height:auto;flex:1;min-height:0}.mega-manual-modal #mm-report-note[hidden]{display:none}@media(max-width:900px){.mega-manual-modal .mm-sides{grid-template-columns:1fr 1fr}.mega-manual-modal .mm-tools{flex-wrap:wrap}}
.mega-manual-modal .mm-tools .field,.mega-manual-modal .mm-linkbar .field{flex-direction:row}.mega-manual-modal .modal-head h2{font-size:15px}.mega-manual-modal .mm-tools select{font-size:11px}.mega-manual-modal .mm-linkbar>span{font-size:11px}
.mega-manual-modal .mm-header-filter{display:flex;align-items:center;gap:3px}.mega-manual-modal .mm-header-filter .mm-filter{margin:0;min-width:0!important;height:24px!important;border:1px solid transparent;background:transparent;padding:3px 4px!important;border-radius:4px;color:var(--ink);font-weight:600;outline-offset:1px}.mega-manual-modal .mm-header-filter .mm-filter::placeholder{color:#708178;opacity:1;font-weight:500}.mega-manual-modal .mm-header-filter .mm-filter:hover{border-color:#ccd9d2;background:#fff}.mega-manual-modal .mm-header-filter .mm-filter:focus{border-color:#7da99b;background:#fff}.mega-manual-modal .mm-header-filter .mm-filter:not(:placeholder-shown){background:#e9f2ed;border-color:#b9d2c5}.mega-manual-modal .mm-header-filter .mm-sort{padding:3px;flex:none}.mega-manual-modal .mm-sides thead th{padding:3px 7px;white-space:normal}
.mega-manual-modal .mm-left th[data-field="order"]{width:117px}
.mega-manual-modal .mm-right th[data-field="shippingBy"]{width:16%}
.mega-manual-modal .mm-right th[data-field="orderBy"]{width:13%}
.mega-manual-modal .mm-left th[data-field="invoiceDate"]{width:92px}
.mega-manual-modal .mm-left th[data-field="quantity"]{width:74px}
.mega-manual-modal .mm-right th[data-field="quantity"]{width:12%}
.mega-manual-modal .mm-left th[data-field="price"]{width:53px}
.mega-manual-modal .mm-right th[data-field="price"]{width:10%}
.mega-manual-modal .mm-left th[data-field="total"]{width:96px}
.mega-manual-modal .mm-right th[data-field="total"]{width:115px}
.mega-manual-modal .mm-sides tbody tr{height:32px}
.mega-manual-modal .mm-sides tbody td{height:32px;padding:4px 7px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mega-manual-modal .mm-sides tbody td:first-child{text-align:center}
.mm-item-name{display:flex;align-items:center;gap:6px}
.mm-item-name>.mm-item-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.mm-item-name>.mm-pending{flex:none}.mega-manual-modal .mm-pending{display:inline-block;font-size:10px;color:var(--muted)}
.mega-manual-modal .mm-selection-pending{color:#805700}
.mega-manual-modal .mm-sides tbody tr:has(input:not(:disabled):checked)>td:first-child{box-shadow:inset 2px 0 #397461;background:#edf5f1}.mega-manual-modal .mm-invoice-link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;padding:0;min-height:0;font:inherit;color:#235f50;text-decoration:underline;text-decoration-color:#b6cfc3;text-underline-offset:3px}.mega-manual-modal .mm-invoice-link:hover{color:#164235;text-decoration-color:currentColor}.mm-invoice-overlay{z-index:1200;background:#173d3655}.mm-invoice-editor{max-height:85vh;display:flex;flex-direction:column}.mm-invoice-editor .modal-body{overflow:auto}.mm-invoice-editor input[type=number]{width:110px}.mm-invoice-error{color:#a53e32;padding:10px 0}.mm-invoice-confirm{display:block;margin-top:12px}.mm-invoice-confirm[hidden]{display:none}

.mm-value{font-weight:600}
.mm-text-green{color:#25633e}
.mm-text-yellow{color:#805700}
.mm-text-orange{color:#a74712}
.mm-text-purple{color:#684498}
.mm-text-red{color:#a52d38}
