.cy-orders-shell{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;align-items:start;max-width:1600px;margin:0 auto}
.cy-orders-main{min-width:0}.cy-order-nav{position:sticky;top:12px;background:#fff;border:1px solid #d9e1eb;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}
.cy-order-nav>strong{font-size:18px;color:#20324a;margin:0 8px 8px}.cy-order-nav>a{padding:12px 10px;text-decoration:none;color:#31435a;border-radius:8px}.cy-order-nav>a.is-active{background:#e9f1ff;color:#174bb7;font-weight:700}.cy-order-nav>.cy-order-stock-link{font-size:13px;color:#617287;border-top:1px solid #e5e9ef;border-radius:0;margin-top:8px}
.cy-orders-heading,.cy-order-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.cy-orders-heading{margin-bottom:16px}.cy-orders-heading h1{margin:0 0 6px;font-size:25px}.cy-orders-heading p{margin:0;line-height:1.6}
.cy-orders-main>.panel,.cy-home-orders{padding:20px;border:1px solid #d9e1eb;border-radius:12px;background:#fff;margin-bottom:18px}.cy-orders-main h2,.cy-home-orders h2{font-size:19px;margin:0 0 16px}.cy-order-list-head h2{margin:0}.cy-order-list-head h2>span{font-size:14px;color:#65768b;font-weight:500;margin-left:8px}
.cy-order-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cy-orders-main label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;color:#32445d}
.cy-orders-main input:not([type=checkbox]),.cy-orders-main select{width:100%;box-sizing:border-box;min-width:0;height:42px;border:1px solid #bfcbd9;border-radius:7px;padding:8px 10px;color:#22344a;background:#fff;font:inherit}.cy-orders-main input:focus,.cy-orders-main select:focus{outline:2px solid #80aef6;outline-offset:1px}
.cy-order-pallet{display:flex;gap:8px;align-items:center;padding:15px;background:#f0f5fd;border-radius:8px;color:#4f6481}.cy-order-pallet strong{font-size:24px;color:#1f54b5}.cy-order-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.cy-order-actions p{flex:1;min-width:210px;font-size:13px;line-height:1.5;margin:0}
.cy-orders-main button,.cy-orders-main .button,.cy-home-orders .button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #bdc9d8;border-radius:7px;padding:8px 14px;background:#fff;color:#283d59;text-decoration:none;cursor:pointer;box-sizing:border-box;white-space:nowrap;font-size:14px}.cy-orders-main button.primary{background:#235ac5;color:#fff;border-color:#235ac5;font-weight:700}.cy-orders-main button:disabled{opacity:.5;cursor:default}.cy-orders-main button:focus-visible,.cy-order-nav a:focus-visible,.cy-home-orders a:focus-visible{outline:3px solid #80aef6;outline-offset:2px}
.cy-order-list-head{margin-bottom:16px}.cy-order-list-head form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cy-order-list-head form input{width:auto!important}.cy-order-list-head label{font-size:13px}
.cy-order-table-scroll{overflow:auto;max-width:100%}.cy-order-table{width:100%;border-collapse:collapse;text-align:left;min-width:760px;font-size:14px}.cy-order-table th{padding:12px 10px;background:#f1f5fa;color:#54677e;white-space:nowrap;font-size:13px}.cy-order-table td{padding:13px 10px;border-bottom:1px solid #e3e9f0;vertical-align:middle}.cy-order-table td small{display:block;color:#65768b;font-size:12px;margin-top:5px}.cy-order-table tbody tr:hover{background:#f9fbfe}.cy-order-edit-link{display:inline-block;margin-left:8px;font-size:13px;color:#2454a7}
.cy-order-status{display:inline-block;font-size:12px;font-weight:700;padding:5px 9px;border-radius:30px;white-space:nowrap}.cy-order-status.state-pending{background:#fff2cc;color:#855907}.cy-order-status.state-completed{background:#dcf5e9;color:#216647}.cy-order-status.state-cancelled{background:#eaedf2;color:#637082}.cy-order-warning{color:#ae5120!important;background:#fff4e8;border-radius:6px;padding:10px;line-height:1.6}.cy-order-empty{margin:18px 0 0;padding:18px;background:#f5f8fc;border-radius:8px}
.cy-order-summary{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:14px}.cy-order-summary p{width:100%;margin:0}
.cy-order-map-scroll{overflow:auto;padding-bottom:8px}.cy-order-map{display:grid;grid-template-columns:repeat(12,minmax(60px,1fr));grid-auto-rows:minmax(38px,auto);gap:5px;min-width:760px}.cy-order-map-bay{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #cbd6e3;background:#f2f5f9;border-radius:6px;font-size:13px;padding:6px;min-width:0}.cy-order-map-bay small{font-size:9px;color:#64788d}.cy-order-map-bay.is-highlighted{background:#fff0c4;border:2px solid #c89122;color:#674600}.cy-order-map-bay.is-highlighted small{color:#805805}
.cy-order-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:16px}.cy-order-model{border:1px solid #dce4ee;border-radius:10px;background:#f7fafd;padding:12px;overflow:auto}.cy-order-model h3{margin:0 0 8px;font-size:16px}.cy-order-model svg{display:block;min-width:300px;width:100%;max-height:500px}.cy-order-model p{font-size:11px;margin:8px 0 0}.cy-order-model-box .box-top{fill:#c4cfdd;stroke:#899db5;stroke-width:1}.cy-order-model-box .box-front{fill:#96abc4;stroke:#708baa;stroke-width:1}.cy-order-model-box .box-side{fill:#809bb9;stroke:#708baa;stroke-width:1}.cy-order-model-box.is-matched .box-top{fill:#ffe4a0;stroke:#be8520;stroke-width:2}.cy-order-model-box.is-matched .box-front{fill:#eac476;stroke:#be8520;stroke-width:2}.cy-order-model-box.is-matched .box-side{fill:#d0a657;stroke:#be8520;stroke-width:2}.cy-order-model-box text{font-size:11px;fill:#1b304b;pointer-events:none}.cy-order-model-box .row-label{fill:#637990;font-size:12px}
.cy-order-sources{display:flex;flex-direction:column;gap:12px}.cy-order-source{display:grid;grid-template-columns:minmax(160px,1fr) minmax(130px,.7fr) minmax(180px,1fr);gap:14px;align-items:center;border:1px solid #d8e2ef;padding:16px;border-radius:9px;background:#fcfdff}.cy-order-source>div:first-child{display:flex;flex-direction:column;gap:5px}.cy-order-source small{color:#6e7d90}.cy-source-balance{display:flex;flex-direction:column;gap:7px;font-size:13px}.cy-source-balance strong{font-size:16px;color:#2354a1}.cy-order-source label{font-size:12px}.cy-order-dispatch-footer{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:18px}.cy-order-dispatch-footer>p{margin:0;color:#345272}.cy-orders-main .cy-order-confirm{display:flex;flex-direction:row;gap:9px;align-items:flex-start;font-weight:500;line-height:1.6;flex:1;min-width:230px}.cy-order-confirm input{width:18px;height:18px;margin-top:3px;flex-shrink:0;accent-color:#2459c0}
.cy-order-cancel form{display:flex;flex-direction:column;gap:14px;align-items:start}.cy-order-cancel form>label:not(.cy-order-confirm){width:100%}.cy-order-cancel button{color:#99501d}.cy-home-orders .cy-order-list-head{margin-bottom:12px}.cy-home-orders .cy-order-list-head>div{display:flex;gap:12px;align-items:center}
#yard-home-map{margin-bottom:12px}#yard-home-map .yard-map{row-gap:8px;padding-bottom:8px}#yard-home-map .yard-3d-stage{height:clamp(310px,50vh,620px);min-height:310px}
@media(max-width:1100px){.cy-order-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cy-orders-shell{grid-template-columns:145px minmax(0,1fr);gap:12px}.cy-order-source{grid-template-columns:1fr 1fr}.cy-order-source>label:last-child{grid-column:1/-1}}
@media(max-width:700px){.cy-orders-shell{display:block}.cy-order-nav{position:static;flex-direction:row;align-items:center;flex-wrap:wrap;padding:8px;margin-bottom:14px;gap:4px}.cy-order-nav>strong{font-size:15px;margin:0 6px}.cy-order-nav>a{padding:9px 10px;font-size:14px}.cy-order-nav>.cy-order-stock-link{margin:0;border:0;padding:9px;font-size:12px}.cy-orders-heading h1{font-size:21px}.cy-orders-heading p{font-size:13px}.cy-orders-main>.panel,.cy-home-orders{padding:14px}.cy-order-fields{gap:12px}.cy-order-actions button{width:100%}.cy-order-list-head{gap:14px}.cy-order-source{padding:12px;gap:12px}.cy-order-source>div:first-child{font-size:14px}.cy-source-balance strong{font-size:14px}.cy-orders-main .cy-order-confirm{min-width:0;flex-basis:100%;font-size:13px}.cy-order-dispatch-footer button{width:100%}.cy-order-map{grid-auto-rows:32px;min-width:650px}.cy-home-orders .cy-order-list-head>div{flex-wrap:wrap}.cy-order-models{grid-template-columns:minmax(0,1fr)}#yard-home-map .yard-3d-stage{height:clamp(310px,48vh,450px)}}
@media(max-width:380px){.cy-order-fields{grid-template-columns:1fr}.cy-order-source{grid-template-columns:1fr}.cy-order-source>label:last-child{grid-column:auto}}
@media print{.cy-order-nav,.cy-order-editor,.cy-order-dispatch,.cy-order-cancel,.cy-order-list-head form{display:none}.cy-orders-shell{display:block}.cy-order-table{min-width:0;font-size:10px}.cy-order-table td,.cy-order-table th{padding:6px}.cy-order-table td:last-child,.cy-order-table th:last-child{display:none}.cy-order-table-scroll{overflow:visible}}
.cy-order-location-link{color:#2454a7;text-decoration:none;display:inline-block;min-height:30px;padding:4px 0}.cy-order-location-link:hover,.cy-order-location-link:focus-visible{text-decoration:underline}.cy-order-location-link:focus-visible{outline:3px solid #80aef6;outline-offset:3px;border-radius:3px}.cy-order-location-link>small{color:inherit!important}
.cy-order-editor-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.cy-order-editor-head h2{margin:0}.cy-order-editor-head a{font-size:14px;color:#2454a7}.cy-order-fields label>small{font-size:12px;font-weight:400;color:#65768b;line-height:1.5}.cy-order-fields input[readonly]{background:#edf3fb;color:#2454a7;font-weight:700}.cy-order-stock-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding:12px;background:#f1f6fd;border-radius:8px}.cy-order-stock-info p{margin:0;flex:1;min-width:180px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.cy-order-stock-info button{font-size:12px;flex-shrink:0}.cy-order-calculation,.cy-order-entry-note{font-size:13px;line-height:1.7;margin:14px 0}.cy-order-calculation{color:#365981}.cy-order-calculation.cy-order-warning{padding:10px;border-radius:7px}
.cy-order-actions-cell,.cy-location-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cy-order-actions-cell{min-width:180px}.cy-order-actions-cell .cy-order-edit-link{margin:0}
.cy-order-delete-link,.cy-orders-main .cy-order-delete-button{color:#a43434!important;background:#fff5f5!important;border-color:#dfb5b5!important}.cy-order-delete-link[aria-disabled=true]{opacity:.5;pointer-events:none}.cy-order-delete-panel form{display:flex;flex-direction:column;gap:14px;max-width:680px}.cy-order-delete-panel p{line-height:1.7}.cy-order-status.state-deleted{background:#edf0f4;color:#647285}
.cy-location-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.cy-location-heading h2{margin:0!important;font-size:19px}.cy-location-heading>span{font-size:12px}.cy-location-product{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.cy-location-product>span{display:inline-block;margin-left:10px;color:#62748a;font-size:14px}
.cy-location-totals{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.cy-location-totals>span{background:#f1f5fa;border-radius:7px;padding:8px 10px;color:#465b75;font-size:13px}.cy-location-unknown{color:#875714!important;background:#fff3d7!important}
.cy-location-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0 20px}.cy-location-card{border:1px solid #d0dfef;border-left:4px solid #c89122;border-radius:9px;padding:15px;background:#fffdf7;min-width:0;overflow-wrap:anywhere}.cy-location-kind{font-size:11px;color:#6c7784}.cy-location-card h3{font-size:18px;margin:8px 0;color:#5e430d}.cy-location-card p{font-size:13px;margin:7px 0;line-height:1.5}.cy-location-card .cy-location-number{font-size:15px;font-weight:700;color:#233e60}.cy-location-balance strong{font-size:17px;color:#2354a1}.cy-location-map-title{font-size:16px;margin:20px 0 12px}.cy-location-note{font-size:12px;line-height:1.6;margin:18px 0 0}
body.cy-order-dialog-open{overflow:hidden}.cy-order-location-dialog{width:min(1050px,calc(100% - 32px));max-width:none;max-height:88vh;max-height:88dvh;padding:0;border:1px solid #c3cfde;border-radius:14px;background:#fff;color:#23344b;box-sizing:border-box;box-shadow:0 18px 75px #10233c55}.cy-order-location-dialog[open]{display:flex;flex-direction:column}.cy-order-location-dialog::backdrop{background:#12243888}
.cy-order-dialog-header,.cy-order-dialog-footer{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:14px 18px;background:#f5f8fc}.cy-order-dialog-header{justify-content:space-between;border-bottom:1px solid #dce4ee}.cy-order-dialog-header h2{font-size:18px;margin:0}.cy-order-dialog-footer{border-top:1px solid #dce4ee;flex-wrap:wrap}.cy-order-dialog-body{min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain}.cy-order-dialog-body>.panel{padding:0;border:0;margin:0;background:#fff}.cy-order-dialog-body .muted{color:#62748a;line-height:1.6;font-size:13px}.cy-order-dialog-body .cy-order-models{min-width:0}
.cy-order-location-dialog button,.cy-order-location-dialog a.button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 13px;border:1px solid #bdc9d8;border-radius:7px;color:#283d59;background:#fff;font:inherit;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer}.cy-order-location-dialog button:disabled{opacity:.5;cursor:default}.cy-order-location-dialog button:focus-visible,.cy-order-location-dialog a:focus-visible{outline:3px solid #80aef6;outline-offset:2px}.cy-order-dialog-close{flex-shrink:0}.cy-order-location-dialog .cy-order-warning{padding:12px;border-radius:8px}
@media(max-width:700px){.cy-order-location-dialog{width:calc(100% - 20px);max-height:92vh;max-height:92dvh}.cy-order-dialog-header,.cy-order-dialog-footer{padding:12px;gap:7px}.cy-order-dialog-header h2{font-size:16px}.cy-order-dialog-body{padding:14px}.cy-location-heading h2{font-size:17px}.cy-location-heading>span{font-size:11px}.cy-location-cards{grid-template-columns:minmax(0,1fr)}.cy-location-card{padding:12px}.cy-location-product>span{display:block;margin:4px 0 0}.cy-order-dialog-footer>*{flex:1}.cy-location-totals{gap:7px}.cy-location-totals>span{font-size:12px}}
