.queue-tabs{display:flex;gap:22px;border-bottom:1px solid #dce3ee;margin:0 0 20px;overflow-x:auto}.queue-tabs button{padding:12px 0;color:#768398;background:none;border-bottom:3px solid transparent;white-space:nowrap;font-weight:550}.queue-tabs button.active{color:#275cd7;border-color:#275cd7}.queue-tabs span{font-size:11px;padding:2px 7px;border-radius:5px;background:#e7edf7;margin-left:8px}.queue-tabs button.active span{background:#dde8ff;color:#285cd5}.assembly-filters input{max-width:370px}.assembly-filters select{min-width:140px;font-size:12px}.queue-summary{padding:12px 22px;border-bottom:1px solid #e6ecf4;color:#7c899e;font-size:12px}.queue-summary span{padding:0 7px}.queue-order{padding:22px;border-bottom:1px solid #e2e8f2}.queue-order:last-child{border-bottom:0}.queue-order:hover{background:#fcfdff}.queue-order-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:19px}.queue-number{font-size:16px;margin-right:12px}.queue-order .sub{display:block;font-size:11px;color:#8090a6;margin-top:6px;font-weight:400}.queue-client{text-align:right;font-size:13px;font-weight:600}.queue-order-body{display:grid;grid-template-columns:minmax(0,1fr) 210px 185px;gap:28px}.queue-composition{min-width:0}.queue-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eff2f6}.queue-item:first-child{padding-top:0}.queue-item:last-child{border-bottom:0}.queue-item strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.queue-qty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:42px;height:43px;border:1px solid #dfe7f2;border-radius:8px;background:#f7f9fd;font-size:16px;font-weight:650}.queue-qty small{font-size:9px;font-weight:450;color:#8c99ac}.queue-line-progress{margin-left:auto;white-space:nowrap;font-size:12px;color:#8b98aa}.queue-line-progress.complete{color:#258163}.queue-logistics{display:flex;flex-direction:column;gap:13px;font-size:12px}.queue-logistics b{font-size:13px}.queue-logistics p{color:#72829a;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}.queue-actions{display:flex;flex-direction:column;justify-content:center;gap:12px}.queue-progress-label{color:#74839a;font-size:12px}progress{appearance:none;width:100%;height:5px;border:0;border-radius:6px;overflow:hidden;background:#e9edf5}progress::-webkit-progress-bar{background:#e9edf5}progress::-webkit-progress-value{background:#35a17c}progress::-moz-progress-bar{background:#35a17c}.queue-comment{margin-top:12px;padding:10px 12px;border-left:3px solid #e2c88c;background:#fffbf1;border-radius:0 6px 6px 0;font-size:12px;color:#877245}.queue-comment p{white-space:pre-wrap;margin-top:5px;overflow-wrap:anywhere}.assembly-edit{background:#f2f6ff;padding:16px;margin:16px 0;border-radius:9px;display:flex;flex-direction:column;gap:12px}.assembly-edit b{font-size:13px}.assembly-edit p{font-size:12px;margin-top:5px;color:#73839b}
@media(max-width:1150px){.queue-order-body{grid-template-columns:minmax(0,1fr) 180px}.queue-actions{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end}.queue-actions progress{max-width:130px}.assembly-filters input{max-width:none}}
@media(max-width:720px){.queue-tabs{gap:18px;margin-bottom:16px}.queue-tabs button{font-size:12px}.queue-order{padding:16px}.queue-order-head{flex-direction:column;gap:12px}.queue-client{text-align:left}.queue-order-body{grid-template-columns:minmax(0,1fr);gap:18px}.queue-logistics{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e6edf5;padding-top:15px}.queue-logistics>.sub{grid-column:1/-1}.queue-actions{display:grid;grid-template-columns:1fr;gap:8px}.queue-actions progress{max-width:none}.queue-actions .btn{margin-top:5px}.assembly-filters select{min-width:0;flex:1 1 130px}.queue-item strong{font-size:13px}.queue-number{display:block;margin-bottom:8px}}

.warranty-fields{margin:24px 0}.warranty-line{padding:16px 0;border-bottom:1px solid var(--line,#e2e7ef)}.warranty-line strong{display:block;margin-bottom:12px}.warranty-line textarea{min-height:64px}.serial-bad{color:#c0392b!important;font-weight:700}.serial-bad-input{border-color:#c0392b!important;background:#fff5f5!important}.queue-actions{flex-wrap:wrap}

.order-toolbar{padding:16px 0;border-bottom:1px solid #e2e7ef;margin-bottom:20px}.order-history{margin-top:20px;border-top:1px solid #e2e7ef;padding-top:16px}.order-history summary{cursor:pointer;font-weight:600}.delete-link{color:#b32a3d;padding:10px}.queue-summary{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.queue-summary #reset-order-filters{margin-left:auto}.queue-actions a{text-align:center;text-decoration:none}@media(max-width:600px){.order-toolbar .btn{flex:1 1 160px;white-space:normal}}

.compact-order{display:grid;grid-template-columns:190px 130px minmax(0,1fr) 155px;gap:22px;padding:20px}.compact-order .queue-number{font-size:14px;display:block;margin:0 0 5px}.compact-order .queue-client{text-align:left}.compact-identity>.badge{margin-top:10px}.compact-main{min-width:0}.compact-logistics{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:16px;font-size:12px}.compact-logistics p{overflow-wrap:anywhere;color:#718096;margin-top:5px}.compact-logistics progress{display:block;margin-top:10px}.compact-single{margin-top:14px;font-size:13px}.compact-single .sub{display:inline}.compact-order .queue-actions{justify-content:flex-start;gap:6px}.compact-order .queue-actions .btn{padding:8px 10px;min-height:34px;font-size:12px}.compact-order .delete-link{font-size:12px;padding:6px}.queue-contents,.queue-note{margin-top:12px;font-size:12px}.queue-contents summary,.queue-note summary{color:#285add;cursor:pointer}.queue-note p{white-space:pre-wrap;margin-top:8px}.category-chips{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.category-chips>span{background:#f1f5fc;border-radius:7px;padding:7px 10px}.category-chips small{display:block;color:#718096}.compact-product{display:grid;grid-template-columns:65px 1fr 45px;gap:10px;padding:8px 0;border-bottom:1px solid #edf0f6}.compact-product small{display:block;color:#718096}
.assembly-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.assembly-heading>span{font-size:12px;color:#718096}.assembly-product{border:1px solid #dce4f0;border-radius:10px;margin-bottom:9px;overflow:hidden}.assembly-product>summary{display:flex;gap:14px;align-items:center;cursor:pointer;padding:12px;background:#f8faff;list-style:none}.assembly-product>summary:after{content:'⌄';margin-left:10px}.assembly-product[open]>summary:after{content:'⌃'}.assembly-product-name{flex:1;min-width:0;overflow-wrap:anywhere}.assembly-product-name small{display:block;color:#718096;margin-top:3px}.assembly-product-body{padding:15px}.assembly-settings{display:grid;grid-template-columns:100px 130px 1fr;align-items:center;gap:16px;margin-bottom:14px}.scan-input-row{display:flex;gap:8px;align-items:end}.scan-input-row input{min-width:0}.scan-input-row button{flex:none}.serial-last{display:flex;gap:10px;align-items:center;margin-top:10px;min-height:32px;overflow-wrap:anywhere}.serial-last code{font:13px ui-monospace,monospace;overflow-wrap:anywhere;min-width:0}.serial-index{display:inline-block;flex:none;min-width:30px;padding:2px 5px;border:1px solid #ccd8ee;background:#f2f6ff;border-radius:5px;text-align:center;font-weight:600}.scan-error{color:#b32a3d;font-size:12px;margin-top:6px}.serial-list-details{margin-top:10px}.serial-list-details>summary{font-size:12px;color:#285add;cursor:pointer}.serial-edit-list{max-height:280px;overflow:auto;margin-top:8px}.serial-edit-row{display:flex;align-items:center;gap:8px;padding:4px 0}.serial-edit-row input{margin:0;min-width:0;min-height:34px;padding:6px 8px;font-family:ui-monospace,monospace}.serial-edit-row .close{flex:none}.serial-scanner textarea[hidden]{display:none}.assembly-settings .sub{font-size:11px;color:#7b879a}.serial-bad{color:#b32a3d!important}
@media(min-width:1101px){dialog.wide{width:min(1180px,calc(100% - 48px))}.detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:1250px){.compact-order{grid-template-columns:170px minmax(0,1fr) 150px}.compact-order>.queue-client{grid-column:1;grid-row:2}.compact-main{grid-column:2;grid-row:1/3}.compact-order>.queue-actions{grid-column:3;grid-row:1/3;flex-direction:column;align-items:stretch}.compact-logistics{grid-template-columns:1fr 1fr}.compact-logistics>div:last-child{grid-column:1/-1}}
@media(max-width:720px){.compact-order{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}.compact-order>.queue-client,.compact-main,.compact-order>.queue-actions{grid-column:auto;grid-row:auto}.compact-order>.queue-actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.compact-order .queue-actions .btn{margin:0}.assembly-heading{align-items:start;flex-direction:column}.assembly-settings{grid-template-columns:1fr 1fr;gap:10px}.assembly-settings>.sub{grid-column:1/-1}.assembly-product-body{padding:10px}.assembly-product>summary{gap:8px;font-size:12px;padding:10px}.scan-input-row .btn{padding:10px}.serial-index{min-width:26px}.assembly-product-name small{font-size:10px}}

.assembly-product-name>b,.queue-item strong{font-weight:400}
.queue-list{display:flex;flex-direction:column;gap:14px;padding:16px;background:#e8edf5;border-radius:12px}.queue-list .queue-order{background:#fff;border:1px solid #cfd9e9;border-radius:12px;box-shadow:0 1px 3px rgba(25,45,90,.10);padding:22px}.queue-list .queue-order:last-child{border-bottom:1px solid #cfd9e9}.queue-list .queue-order:hover{background:#fff;box-shadow:0 4px 14px rgba(25,45,90,.15)}
.order-toolbar{display:flex;justify-content:space-between;gap:10px}.toolbar-left,.toolbar-right{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#dialog.split-wide{width:min(1180px,calc(100% - 48px))}.split-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;margin-top:12px}.split-notice{display:flex;gap:10px;align-items:center;background:#edf3ff;color:#2b4bb3;border-radius:8px;padding:10px 14px;margin-bottom:4px;font-size:13px}.split-row{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f6}.split-qty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;border:1px solid #dfe7f2;border-radius:8px;background:#f7f9fd;font-size:15px;font-weight:650;padding:4px}.split-qty small{font-size:9px;font-weight:450;color:#8c99ac}.split-name{flex:1;min-width:0}.split-name small{display:block;color:#718096;margin-top:3px}.split-step{display:flex;align-items:center;gap:8px;font-size:12px;text-align:center}.split-step button{width:28px;height:28px;border:1px solid #d5dce8;background:#fff;border-radius:7px;font-size:15px;line-height:1;flex:none}.split-prep{white-space:nowrap;font-size:12px;color:#8b98aa}.split-row.disabled{opacity:.55}.split-panel{background:#f8faff;border:1px solid #dce4f0;border-radius:10px;padding:14px;height:fit-content}.split-panel h3{font-size:15px;margin:0 0 4px}.split-panel .sub{font-size:12px;color:#718096}.split-panel-list{margin:10px 0;display:flex;flex-direction:column;gap:6px;font-size:13px}.split-panel-list div{display:flex;justify-content:space-between;gap:8px}.split-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13px;margin:10px 0}.split-kv dt{color:#718096}.split-kv dd{margin:0;font-weight:600}.split-total{display:flex;justify-content:space-between;gap:8px;font-size:15px;font-weight:700;margin:10px 0}.split-info{background:#edf3ff;border-radius:8px;padding:10px 12px;font-size:12px;color:#2b4bb3;margin-top:10px}.split-panel .btn{width:100%;margin-top:8px}@media(max-width:900px){.split-layout{grid-template-columns:minmax(0,1fr)}}
