/* Compact buying desk: 44px orders, controls stay in one line. */
body{font-size:13px;background:#f6f8fc}.topbar{height:30px;padding:0 14px;font-size:11px}.page{padding:6px 12px}.page-heading{margin:0 0 4px}.title-row{gap:6px;min-height:29px}.title-row h1#pageTitle{font-size:17px}.heading-actions .button{padding:4px 10px;font-size:11px}.mode-banner{display:none}.stats{gap:6px;margin:4px 0 6px}.stat{min-height:27px;height:27px;padding:2px 10px;border-radius:5px;gap:8px;justify-content:flex-start;flex:0 0 auto}.stat>span{font-size:11px}.stat strong{font-size:15px;margin:0}.stat strong small{font-size:10px}.stat.selected{border-width:1px}.list-panel{border-radius:7px}.panel-top{padding:5px 9px;min-height:33px}.panel-title h2{font-size:15px}.panel-title{gap:6px}.work-date{font-size:11px;margin-left:5px}.panel-actions{gap:8px}.panel-actions .button,.panel-actions .text-button{font-size:11px;padding:4px 8px}.panel-title select{font-size:11px;padding:3px 8px;height:25px}.toolbar{padding:0 8px;min-height:29px;gap:8px}.status-tabs button{font-size:12px;padding:5px 10px}.table-filters input,.table-filters select{font-size:11px;height:25px;padding:3px 6px}.search-input{height:25px;min-width:170px}.group-controls{padding:4px 9px;gap:7px;min-height:28px}.group-controls label,.group-controls select{font-size:11px}.group-controls select{padding:3px 6px;height:23px}.group-controls .sheet-hint{font-size:10px}.selection-bar{padding:4px 9px;min-height:30px;gap:5px}.selection-bar>div{gap:7px}.selection-bar .button,.selection-bar .text-button{font-size:11px;padding:4px 8px}.selection-bar .check-label{font-size:10px}.formula-bar{display:none}.compact-sheet .formula-bar{display:flex}.bottom-note,.page-footer{display:none}.table-footer{padding:3px 9px;min-height:22px;font-size:10px}.table-footer .icon-btn{height:20px;min-height:20px;width:22px;padding:0}.grid-wrap{overflow:auto;max-height:calc(100vh - 228px)}#grid{min-width:1800px;table-layout:fixed}#grid thead th{font-size:11px;padding:5px 5px;height:25px;white-space:nowrap}#grid .compact-order{height:44px}#grid .compact-order td{padding:3px 5px!important;border-bottom:1px solid #e1e7f0;vertical-align:middle;font-size:12px;line-height:16px;height:44px;overflow:hidden}#grid .compact-order:hover{background:#f1f6ff}#grid .compact-order.is-complete{background:#f9fcfa}#grid .copy-value{font-size:12px;line-height:16px;padding:0;min-height:0;color:#2e4666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}.copy-value .copy-hint{display:none}#grid .person-td .copy-value:first-of-type{font-size:13px;font-weight:600;color:#203c60}#grid .person-td .copy-value+button{font-size:11px;margin:0}.source-small{font-size:9px;color:#8593a7;float:right;max-width:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-td{position:relative}.move-cell{white-space:nowrap!important}.move-cell .drag-handle{display:block;float:left;border:0;background:none;padding:0 3px 0 0;line-height:20px;font-size:19px;color:#7f93ae;cursor:grab}.move-cell .drag-handle:active{cursor:grabbing}#grid input[type=checkbox]{width:13px;height:13px;margin:2px 0;vertical-align:middle}.address-inline{display:flex;align-items:center;gap:4px;min-width:0;height:16px;color:#75849b;white-space:nowrap;overflow:hidden;font-size:10px}.address-inline>.copy-value{width:auto;flex:0 1 auto;color:#28639b!important;font-size:11px!important;line-height:16px;min-width:0}.address-inline>span{flex:none}.address-inline>.copy-value[data-copy-col="3"]{flex:none}.address-inline>.copy-value[data-copy-col="5"]{flex:1;min-width:25px}.address-pending{font-size:10px;padding:0 3px;line-height:15px}.memo-peek{min-width:0;max-width:40%;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:#fff0ce;color:#885207;border-radius:3px;font-size:10px;padding:0 3px;line-height:15px}.product-line{display:flex;align-items:baseline;gap:2px;height:17px;overflow:hidden;white-space:nowrap}.product-line>.copy-value{width:auto;max-width:75%;flex:0 1 auto;font-size:13px!important;font-weight:600;line-height:17px;color:#203c60!important}.option-inline{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;border:0;color:#62738e;font-size:11px;line-height:17px;padding:0;text-align:left}.query-inline{display:flex;align-items:center;gap:3px;height:19px;min-width:0}.query-inline input{font-size:11px;padding:1px 4px;height:18px;width:150px;max-width:45%;min-width:70px;flex:0 1 auto;border:1px solid #d4dfed;border-radius:3px;color:#36587b;background:#fff}.query-inline button{height:18px;border:1px solid #d3dfef;border-radius:3px;background:#f6f9ff;color:#3f65a0;font-size:10px;padding:0 5px;line-height:16px;white-space:nowrap}.query-inline .sku{font-size:9px;color:#9ba7b8;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.completed-meta{font-size:10px;line-height:16px;color:#81908c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quantity,.quantity.multiple{height:23px!important;width:28px!important;font-size:12px!important;padding:1px!important;border-width:1px!important;line-height:20px;border-radius:3px}.quantity.multiple{background:#ffe4a4;border-color:#df9519!important;color:#8d4800}.purchase-inline{display:grid;grid-template-columns:64px 70px 66px 45px 59px minmax(80px,1fr);align-items:center;gap:3px;white-space:nowrap}.purchase-inline input,.purchase-inline select,.time-now,.settlement-td input{width:100%;min-width:0;height:23px;border:1px solid #d1dceb;border-radius:3px;background:#fff;padding:1px 4px;font-size:11px;color:#284664;line-height:19px}.purchase-inline select{padding:0 1px;font-size:10px}.time-now{background:#f3f8ff;color:#245d9c;cursor:pointer;text-align:center;padding:1px}.settlement-td input{font-size:11px;text-align:right}.margin-td{text-align:center}.margin-badge{font-size:11px;font-weight:600;border-radius:3px;line-height:17px;display:inline-block;padding:0 4px}.margin-badge.low{color:#bf2d2d;background:#ffe6e6}.margin-badge.ok{color:#1d7e50;background:#e6f7ed}.margin-numbers{display:block;font-size:9px;line-height:13px;color:#8995a7;white-space:nowrap}.margin-missing,.batch-cost-note{color:#8a98ab;font-size:10px}.batch-cost-note{color:#4271ad}.status-td{white-space:nowrap!important}.status-select{font-size:10px!important;padding:1px 2px!important;width:76px!important;height:23px!important;border-radius:3px!important;font-weight:500!important}.status-reset{display:inline-block;font-size:11px;padding:0 1px;margin:0 0 0 1px;color:#8c9bb0;line-height:20px}.batch-header th{height:27px;padding:2px 7px!important;border-top:1px solid #baccdf;border-bottom:1px solid #cfdbeb;text-align:left;background:#eaf2ff;color:#34557b;font-size:11px;font-weight:500}.batch-header th>span,.batch-header th>label{margin-right:14px;display:inline-flex;align-items:center;gap:5px}.batch-header .batch-name{font-weight:700}.batch-header input{height:21px;font-size:11px;border:1px solid #b8cde7;border-radius:3px;padding:1px 4px;width:95px}.batch-header button{font-size:10px;background:white;border:1px solid #bdcfe6;border-radius:3px;color:#356599;padding:1px 7px;margin-left:4px;height:21px}.batch-header .margin-numbers{display:inline}.drag-over td{box-shadow:inset 0 2px #1760df}.drag-after td{box-shadow:inset 0 -2px #1760df}.dragging{opacity:.4}.bulk-actions{display:inline-flex;align-items:center;gap:5px}.bulk-actions select{font-size:11px;border:1px solid #c7d6ea;background:white;color:#355a85;border-radius:3px;height:24px}.batch-dialog label{display:block;font-size:13px;margin:10px 0}.batch-dialog label input{display:block;width:100%;padding:7px;border:1px solid #c8d6e8;border-radius:4px;margin-top:4px}.batch-dialog .hint{line-height:1.6}.batch-dialog .batch-member-list{max-height:180px;overflow:auto;font-size:12px;line-height:1.8;background:#f6f8fc;padding:8px}.memo-peek:hover,.option-inline:hover{background:#edf4ff}.density-label{color:#70849d;font-size:10px}body.large-text #grid .copy-value{font-size:12px}body.large-text #grid .product-line>.copy-value{font-size:13px!important}body.large-text .status-select{font-size:10px}body.large-text .option-inline{font-size:11px}.compact-sheet #grid td{font-size:12px;padding:4px}.compact-sheet .grid-wrap{max-height:calc(100vh - 250px)}
@media(min-height:1200px){.grid-wrap{max-height:calc(100vh - 228px)}}@media(max-width:1100px){.stats{flex-wrap:nowrap}.stat{flex:1;padding:1px 5px}.stat>span{font-size:10px}.group-controls{flex-wrap:wrap}.selection-bar{flex-wrap:wrap}.grid-wrap{max-height:calc(100vh - 270px)}}

#grid .compact-order .person-td{position:relative}#grid .person-td .source-small{position:absolute;top:3px;right:3px;float:none;line-height:12px;max-width:28px}#grid .person-td .copy-value:first-of-type{padding-right:25px}#grid .compact-order td{min-height:0}.grid-wrap{max-height:calc(100vh - 265px)}

#grid .person-td .source-small{position:static;float:none;display:inline-block;max-width:100%;font-size:10px;line-height:12px;color:#597499;margin:0;vertical-align:top}#grid .person-td .copy-value:first-of-type{padding-right:0}#grid .person-td{line-height:12px!important}#grid .person-td .copy-value{line-height:14px!important}#grid .move-cell{position:relative;padding-left:3px!important;padding-right:2px!important}#grid .move-cell .drag-handle{float:none;display:inline-block;font-size:15px;padding-right:1px}.sheet-row-number{font-size:11px;padding:0 2px;border:0;background:#edf3fa;color:#28629c;line-height:16px;border-radius:3px;cursor:copy;min-width:25px}.move-cell input{display:block!important;margin-left:18px!important}#grid .compact-order td.person-td{padding-top:1px!important;padding-bottom:1px!important}.tracking-inline{display:flex;gap:4px;align-items:center;line-height:17px;margin-top:1px}.tracking-inline span{font-size:10px;color:#65849b}.tracking-inline input{height:18px;padding:0 4px;font-size:11px;min-width:0;width:62%;border:1px solid #d4dfed;border-radius:3px}.tracking-inline input:last-child{width:25%}.purchase-inline{grid-template-columns:64px 70px 66px 45px 59px minmax(80px,1fr)}#grid .compact-order{height:46px}#grid .compact-order td{height:46px}.query-inline input{width:125px}.query-inline .sku{display:none}#grid{min-width:1900px}

.calendar-control{position:relative}.calendar-control>button{height:24px;padding:2px 9px;font-size:11px;border:1px solid #bdcfe6;border-radius:4px;color:#27578d;background:#fff}#calendarPanel{position:absolute;top:29px;left:0;z-index:50;background:#fff;border:1px solid #bfd0e7;box-shadow:0 8px 25px #12345625;border-radius:8px;width:294px;padding:12px}#calendarPanel[hidden]{display:none}.calendar-title{font-size:14px;font-weight:600;color:#244569;margin-bottom:10px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-grid>span{text-align:center;font-size:11px;color:#8292a7;height:20px}.calendar-grid button{height:38px;background:#eaf3ff;color:#195ba8;border:1px solid #bfd7f7;border-radius:4px;font-size:12px;padding:2px}.calendar-grid button small{display:block;font-size:9px}.calendar-grid button:disabled{background:#f7f8fa;border-color:transparent;color:#c0c7d1;opacity:1;cursor:default}.calendar-grid button.selected{background:#1760df;color:#fff}.calendar-foot{display:flex;justify-content:space-between;margin-top:9px}.calendar-foot button{font-size:11px;border:0;background:#f0f4fa;color:#3c6087;border-radius:3px;padding:4px 8px}
