
/* Invoice price review: editable fields match the existing burgundy ERP theme. */
.wf-last-order{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:-8px 0 20px}.wf-last-order[hidden]{display:none!important}.wf-last-order button{flex-shrink:0}.wf-last-order span{font-size:14px;color:#65586a;flex:1 1 240px}
.wf-line-editor{border:1px solid #e4d9df;border-top:3px solid #812d43;border-radius:12px;padding:22px;margin:22px 0 28px;background:#fdfbfc}
.wf-line-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.wf-line-heading h3{margin:0!important}
.wf-edit-state{font-size:13px;color:#527263;background:#eef5f0;border-radius:20px;padding:6px 12px}.wf-edit-state.pending{color:#8b5a19;background:#fff3dc}
.wf-line-select{max-width:740px;margin-bottom:22px}.wf-line-select select{width:100%;font-weight:600;background:#fff}
.wf-line-fields{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(140px,1.1fr) minmax(115px,.8fr) repeat(3,minmax(130px,1fr));gap:14px}
.wf-line-fields>div{min-width:0}.wf-line-fields label{min-height:18px;font-size:14px}.wf-line-fields input,.wf-line-fields select{width:100%;font-size:15px;min-width:0}.wf-line-fields input[readonly]{background:#f1f0f3;color:#4d4753;font-weight:600;text-align:right;cursor:default}
.wf-input-suffix{display:flex;border:1px solid #dddfe7;border-radius:9px;overflow:hidden;background:#fff;min-width:0}.wf-input-suffix input{border:0;border-radius:0;text-align:right}.wf-input-suffix span{display:flex;align-items:center;justify-content:center;background:#eeeaef;color:#63536c;padding:0 10px;white-space:nowrap;font-size:14px}.wf-line-fields .wf-editable{border:1px solid #ba97a4;background:#fff}.wf-line-fields .wf-editable:focus-within{box-shadow:0 0 0 3px #812d4314;border-color:#812d43}
.wf-line-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:18px}.wf-line-foot p{font-size:13px;margin:5px 0;line-height:1.5}.wf-line-foot .wf-row-actions{flex-shrink:0}.wf-line-list-note{font-size:13px;margin:10px 0 0}
.wf-invoice-list-heading{align-items:center}.wf-invoice-list-heading h3{margin:0}.wf-invoice-list-heading>span{font-size:13px}.wf-invoice-lines tbody tr{cursor:pointer}.wf-invoice-lines tbody tr.wf-selected-line>td{background:#f7edf1!important}.wf-invoice-lines tbody tr.wf-selected-line>td:first-child{box-shadow:inset 3px 0 #812d43}.wf-invoice-lines th{white-space:normal}.wf-invoice-lines td:first-child{min-width:230px}.wf-invoice-lines td:not(:first-child){white-space:nowrap}.wf-product-mapping{font-size:12px;margin-top:8px}.wf-product-mapping summary{color:#756b79;cursor:pointer}.wf-product-mapping select{width:100%;max-width:320px;margin-top:8px}.wf-inline-hint{font-size:14px;line-height:1.5;min-height:21px}.wf-inline-hint.error{color:#a33349}.wf-invoice-actions>.wf-row-actions{gap:10px;flex-wrap:wrap}
@media(max-width:1350px){.wf-line-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.wf-line-editor{padding:16px}.wf-line-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wf-line-heading,.wf-line-foot,.wf-invoice-list-heading{align-items:flex-start;flex-direction:column}.wf-line-foot .wf-row-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.wf-line-fields label{font-size:14px;min-height:36px;display:flex;align-items:flex-end}.wf-invoice-actions>.wf-row-actions{display:flex}.wf-invoice-actions>.wf-row-actions button{flex:1}.wf-line-select{margin-bottom:16px}.wf-product-mapping select{max-width:240px}}
.wf-root{max-width:1440px;margin:auto;color:#272331}.wf-heading{display:flex;justify-content:space-between;margin:0 0 22px}.wf-heading h2{margin:0 0 8px;font-size:27px}.wf-heading p{margin:0;color:#6d7584}.wf-root .card{margin-bottom:20px;border-radius:14px;padding:24px;box-shadow:0 3px 16px #20203304}.wf-root h3{margin:0 0 14px;font-size:18px}.wf-root label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.wf-root input,.wf-root select,.wf-root textarea{font:inherit;min-height:44px}.wf-root button{min-height:44px;white-space:normal}.wf-root button:disabled{opacity:.5;cursor:not-allowed}.wf-operation-head{display:grid;grid-template-columns:minmax(240px,2fr) minmax(170px,1fr) minmax(130px,.75fr);gap:18px}.wf-table-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.wf-table-heading h3{margin:0}.wf-key-hint{color:#647084;font-size:13px}.wf-root .wf-product-card{padding:0;overflow:hidden}.wf-product-card>.wf-table-heading{padding:22px 24px;margin:0}.wf-quantity-table{width:100%;border-collapse:collapse}.wf-quantity-table th{padding:14px 20px;background:#f0edf2;color:#635b6c}.wf-quantity-table td{padding:9px 20px;border-bottom:1px solid #e6e4e9}.wf-quantity-table tbody tr:nth-child(even){background:#f7f7fa}.wf-quantity-table label{margin:0;font-size:15px}.wf-quantity-table .wf-seq{width:60px;font-size:12px;color:#88818e}.wf-quantity-column{width:180px}.wf-quantity-table input{max-width:140px;text-align:center;font-variant-numeric:tabular-nums}.wf-quantity-table .has-qty{box-shadow:inset 4px 0 #812d43;background:#faf0f3}.wf-quantity-table .has-qty input{border-color:#a76678;color:#812d43;font-weight:700}.wf-counter{display:none}.wf-save-bar{position:sticky;bottom:12px;background:#fff;border:1px solid #dcd5df;border-top:3px solid #812d43;box-shadow:0 8px 30px #221b2920;border-radius:12px;padding:15px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:12;margin-bottom:28px}.wf-save-bar>div{display:flex;gap:10px}kbd{font:11px inherit;border:1px solid #ffffff66;padding:3px 6px;border-radius:4px;margin-left:12px}.wf-message{margin:0 0 18px;padding:14px 18px;line-height:1.6;border:1px solid #bbcfc2;background:#f1f8f3;border-radius:10px;white-space:pre-line}.wf-message.error{border-color:#d8aeba;color:#85223d;background:#fff5f7}.wf-message[hidden]{display:none}.wf-status{font-size:13px;display:inline-block;padding:5px 10px;background:#f2edf1;border-radius:6px}.wf-root small{display:block;margin:6px 0;color:#687186;font-size:12px}.wf-row-actions{display:flex;gap:8px;flex-wrap:wrap}.wf-scroll{overflow:auto;max-width:100%}.wf-root .wf-scroll table{min-width:640px}.wf-root table td{vertical-align:middle}.wf-connection{background:#f4f2f6;border-left:4px solid #812d43;padding:12px 16px;font-size:14px;margin-bottom:22px}.wf-ref{overflow-wrap:anywhere;max-width:270px}.wf-invoice select[data-mapping]{min-width:220px;max-width:460px;font-size:12px;margin-top:8px}.wf-invoice-bottom{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:24px 0}.wf-discount{display:grid;grid-template-columns:1fr 100px;gap:12px;margin-bottom:18px}.wf-invoice details{margin-top:18px;font-size:13px}.wf-invoice summary{cursor:pointer;padding:8px 0}.wf-totals{padding:14px 22px;border:1px solid #e2dce5;border-radius:10px;background:#fbfafd}.wf-totals>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #e5dfe8;font-size:14px}.wf-totals>div:last-child{border:0;font-size:19px;color:#812d43}.wf-invoice-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e5dfe8;padding-top:20px}.wf-invoice-actions span{font-size:13px;color:#6f6775}.wf-document-filters{display:grid;grid-template-columns:1fr 1fr auto auto;align-items:end;gap:16px}.wf-tabs{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #e4dfe7;padding-top:20px;margin-top:20px}.wf-tabs .active{background:#812d43!important;color:white!important}.wf-print-actions{display:flex;gap:8px;flex-wrap:wrap}.wf-print-actions [hidden]{display:none!important}.wf-print-hint{font-size:13px;color:#6d7584;margin:8px 0 0}.wf-document-preview{background:#f0eef1;padding:12px;overflow:auto;color:#111;border:1px solid #ddd;border-radius:10px}.wf-document-preview .gs-paper{box-shadow:0 1px 6px #00000012}.wf-document-preview .gs-receipt{box-shadow:0 1px 6px #00000016}.wf-success{border-left:4px solid #3e7752!important}.wf-root :focus-visible{outline:3px solid #426998;outline-offset:2px}
@media(max-width:1050px){.wf-key-hint{display:none}.wf-operation-head{grid-template-columns:1fr 1fr}.wf-operation-head>div:first-child{grid-column:1/-1}.wf-document-filters{grid-template-columns:1fr 1fr}.wf-invoice-bottom{gap:20px}}
@media(max-width:600px){.wf-root .card{padding:16px}.wf-heading h2{font-size:23px}.wf-root .wf-product-card{padding:0}.wf-product-card>.wf-table-heading{padding:16px}.wf-quantity-table .wf-seq{display:none}.wf-quantity-table th,.wf-quantity-table td{padding:10px 7px}.wf-quantity-table label{font-size:13px}.wf-quantity-table td:nth-child(3){font-size:11px;width:40px}.wf-quantity-column{width:140px}.wf-qty-input{display:none!important}.wf-counter{display:flex;align-items:center;justify-content:space-between;gap:4px}.wf-counter button{width:42px;min-width:42px;min-height:46px;padding:0;font-size:25px}.wf-counter button:first-child{background:#ede6eb;color:#812d43}.wf-counter output{font-weight:700;min-width:28px;text-align:center}.wf-save-bar{bottom:6px;display:block;padding:12px}.wf-save-bar>span{display:block;margin-bottom:10px;font-size:13px}.wf-save-bar>div{display:grid;grid-template-columns:1fr 2fr}.wf-save-bar kbd{display:none}.wf-invoice-bottom{grid-template-columns:1fr}.wf-invoice-actions{display:block}.wf-invoice-actions button{margin-top:14px;width:100%}.wf-document-preview{padding:12px}.wf-print-actions{grid-column:1/-1}.wf-print-actions button{flex:1}.wf-table-heading{align-items:flex-start}.wf-document-filters button{font-size:13px}.wf-tabs button{flex:1;font-size:13px}.wf-operation-head{gap:12px}.wf-root .wf-scroll table{font-size:13px}}

/* Order corrections in the accounting editor. */
.wf-order-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #ded7df;margin-bottom:18px;padding-bottom:10px}
.wf-order-tabs{display:flex;gap:8px}.wf-order-tabs button{background:#eee9ef;color:#65586a;border:1px solid transparent}.wf-order-tabs button.active{background:#812d43;color:#fff}.wf-root [role=tabpanel][hidden],#opNew[hidden]{display:none!important}
.wf-order-list-view>.wf-heading{margin-bottom:12px}.wf-order-list-view>.wf-heading h2{font-size:25px;margin-bottom:3px}.wf-order-list-view>.wf-heading p{font-size:13px}.wf-order-list-view .wf-order-toolbar{margin-bottom:12px;padding-bottom:9px}.wf-order-list-view .wf-order-toolbar button{min-height:38px;font-size:13px;padding:8px 13px}
.wf-root .wf-history{padding:16px}
.wf-history-filters{display:grid;grid-template-columns:135px 135px minmax(190px,1fr) 115px 155px auto;gap:10px;align-items:end;padding:12px;background:#f7f5f8;border:1px solid #e6e0e8;border-radius:9px;margin:0}
.wf-history-filters>div{min-width:0}.wf-history-filters label{font-size:12px;margin-bottom:5px}.wf-history-filters input,.wf-history-filters select{width:100%;min-width:0;font-size:13px;min-height:38px;padding:8px 10px}.wf-history-filters button{min-height:38px;padding:8px 13px}.wf-history-filters .gs-customer-combo .gs-customer-input{min-height:38px;font-size:13px;padding:8px 38px 8px 10px}
.wf-history-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.wf-history-meta p{font-size:12px;margin:0}.wf-history-days{display:flex;gap:6px;flex-shrink:0}.wf-history-days button{min-height:32px;padding:6px 12px;font-size:12px}
.wf-history-scroll{border:1px solid #e2dce5;border-radius:9px}.wf-history-scroll table{min-width:820px!important;width:100%;border-collapse:collapse}.wf-history-scroll th{font-size:11px;white-space:nowrap;background:#f2eef4;padding:10px 12px}.wf-history-scroll td{font-size:13px;padding:10px 12px;line-height:1.4;border-bottom:1px solid #e9e4ec}.wf-history-scroll tr[data-order-id]{background:#fff}.wf-history-scroll tr.wf-history-even{background:#faf8fb}.wf-history-scroll tr:last-child td{border-bottom:0}.wf-history-scroll td:nth-child(1){width:98px;white-space:nowrap}.wf-history-scroll td:nth-child(2){min-width:190px}.wf-history-scroll td:nth-child(3){width:65px;white-space:nowrap}.wf-history-scroll td:nth-child(4){width:112px}.wf-history-scroll td:nth-child(5){width:130px}.wf-history-scroll td:last-child{width:223px}.wf-history-scroll small{font-size:11px;margin:4px 0 0}.wf-history-scroll .wf-history-reference{color:#777180;font-variant-numeric:tabular-nums}.wf-route{font-size:11px;letter-spacing:.03em;font-weight:650;color:#65586a;background:#eeebf2;padding:4px 6px;border-radius:4px}
.wf-history-scroll .wf-status{font-size:11px;padding:5px 8px;border:1px solid transparent}.wf-history-scroll .wf-status[data-state=waiting]{background:#fbf2e3;color:#825418;border-color:#ead9b9}.wf-history-scroll .wf-status[data-state=invoiced]{background:#ecf4ee;color:#316244;border-color:#d4e4d8}.wf-history-scroll .wf-status[data-state=cancelled]{background:#f2f0f2;color:#746776;border-color:#e2dce2}.wf-history-scroll .wf-status[data-state=review]{background:#fbebee;color:#922f46;border-color:#edced6}.wf-history-scroll .wf-status[data-state=transferring]{background:#edf2fa;color:#375e8c;border-color:#d6e2f1}
.wf-history-scroll .wf-row-actions{display:flex;align-items:flex-start;gap:5px;min-width:200px;flex-wrap:wrap}.wf-history-scroll .wf-row-actions>button{font-size:12px;padding:7px 9px;min-height:34px}.wf-order-more{margin-left:auto}.wf-order-more summary{display:flex;align-items:center;justify-content:center;width:32px;min-height:34px;font-size:22px;line-height:1;font-weight:700;cursor:pointer;border:1px solid #e3dfe8;border-radius:7px;background:#f1eef4;color:#66526a;list-style:none}.wf-order-more summary::-webkit-details-marker{display:none}.wf-order-more summary:focus-visible{outline:3px solid #426998;outline-offset:2px}.wf-order-more[open]{flex-basis:100%;display:flex}.wf-order-more[open] summary{float:right}.wf-order-more-items{display:flex;gap:6px;justify-content:flex-start;padding:3px 6px 3px 0}.wf-order-more-items button{font-size:12px;min-height:32px;padding:6px 10px}.wf-order-more-items .wf-cancel-action{color:#a33349;border-color:#e7ccd4;background:#fff4f6}
.wf-pagination{display:flex;gap:14px;align-items:center;justify-content:flex-end;margin-top:12px}.wf-pagination span{font-size:12px}.wf-pagination button{min-height:34px;font-size:12px;padding:7px 12px}.wf-empty{text-align:center;padding:32px 16px;color:#6d7584;background:#faf9fb;border:1px dashed #dcd5df;border-radius:9px}
.wf-edit-banner,.wf-duplicate{padding:18px 22px;border:1px solid #d8bbc6;border-left:4px solid #812d43;border-radius:10px;background:#faf1f5;margin-bottom:20px}.wf-edit-banner{display:flex;gap:16px;justify-content:space-between;align-items:center}.wf-edit-banner p,.wf-duplicate p{font-size:14px;line-height:1.5;margin:8px 0}.wf-duplicate[hidden]{display:none}.wf-duplicate{background:#fff8eb;border-color:#dbcba4;border-left-color:#9d7229}.wf-duplicate-orders{display:grid;gap:10px}.wf-duplicate-orders>div{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px}.wf-root .wf-duplicate-confirm{display:flex;align-items:center;gap:10px;font-weight:500;margin:16px 0 0;font-size:14px;cursor:pointer}.wf-duplicate-confirm input{width:20px;min-height:20px;flex-shrink:0;accent-color:#812d43}.wf-order-detail{border:1px solid #d7c6d0;border-top:3px solid #812d43;border-radius:10px;margin-top:24px;padding:22px}.wf-order-detail .wf-status{margin-bottom:16px}.wf-order-detail .wf-table-heading p{font-size:14px;margin:8px 0}.wf-order-note{white-space:pre-wrap;padding:14px;background:#f7f5f8;border-radius:8px}.wf-order-detail td{padding:10px 14px}.wf-order-detail th{text-align:left}.wf-operation-head select:disabled,.wf-operation-head input:disabled{background:#f1eef3;color:#514758;opacity:1}
@media(max-width:1250px){.wf-history-filters{grid-template-columns:1fr 1fr 1.4fr}.wf-history-filters #opRefresh{justify-self:end;min-width:100px}}
@media(max-width:600px){
 .wf-history-filters{grid-template-columns:1fr 1fr;padding:10px;gap:10px}.wf-history-filters .wf-customer-filter{grid-column:1/-1}.wf-history-filters #opRefresh{grid-column:1/-1;justify-self:stretch}.wf-history-filters input,.wf-history-filters select,.wf-history-filters .gs-customer-combo .gs-customer-input{font-size:16px;min-height:42px}.wf-root .wf-history{padding:12px}.wf-history-meta{align-items:flex-start;flex-wrap:wrap}.wf-history-days{margin-left:auto}.wf-history-days button{min-height:40px}.wf-order-list-view .wf-order-toolbar{flex-wrap:wrap}.wf-order-list-view .wf-order-toolbar button{min-height:42px}.wf-order-tabs{flex:1}.wf-order-tabs button{flex:1;font-size:13px}.wf-order-toolbar #opNew{font-size:12px}.wf-edit-banner{display:block;padding:16px}.wf-edit-banner>button{margin-top:8px}.wf-duplicate{padding:16px}.wf-duplicate-orders>div{align-items:flex-start;flex-direction:column}.wf-pagination{justify-content:space-between;gap:8px}.wf-pagination button{font-size:13px;min-height:40px}.wf-order-detail{padding:16px}
 .wf-history-scroll{border:0;overflow:visible}.wf-history-scroll table{min-width:0!important;display:block}.wf-history-scroll thead{display:none}.wf-history-scroll tbody{display:grid;gap:12px}.wf-history-scroll tbody tr{display:grid;grid-template-columns:1fr 1fr;background:#fff!important;border:1px solid #ddd4df;border-radius:9px;overflow:hidden}.wf-history-scroll td{display:block;width:auto!important;min-width:0!important;max-width:none!important;padding:9px 10px;font-size:13px;border-bottom:1px solid #ebe5ed}.wf-history-scroll td:nth-child(2){grid-column:1/-1;grid-row:1;background:#f5f0f5}.wf-history-scroll td:nth-child(1):before,.wf-history-scroll td:nth-child(3):before,.wf-history-scroll td:nth-child(4):before,.wf-history-scroll td:nth-child(5):before{content:attr(data-label);display:block;color:#756b79;font-size:11px;margin-bottom:4px}.wf-history-scroll td:last-child{grid-column:1/-1;border:0}.wf-history-scroll .wf-row-actions{min-width:0}.wf-history-scroll .wf-row-actions>button{min-height:42px;font-size:13px;flex:1}.wf-order-more summary{width:42px;min-height:42px}.wf-order-more-items button{min-height:42px;font-size:13px}
}

.wf-add-product{margin:0 0 24px!important;border:1px solid #e1d7dd;border-radius:9px;padding:6px 14px;background:#fff}.wf-add-product>summary{font-weight:600;color:#812d43}.wf-add-fields{display:grid;grid-template-columns:minmax(180px,1fr) 115px auto;gap:14px;align-items:end;padding:12px 0}.wf-add-fields input,.wf-add-fields select{width:100%;min-width:0}.wf-line-foot .wf-row-actions{max-width:440px;flex-shrink:1}.wf-remove-line{background:#fff0f2!important;color:#9b3048!important;border:1px solid #dbb7c0!important}
@media(max-width:750px){.wf-add-fields{grid-template-columns:minmax(0,1fr) 95px}.wf-add-fields>button{grid-column:1/-1}.wf-line-foot .wf-row-actions{max-width:none}.wf-line-foot .wf-row-actions>button:first-child{grid-column:1/-1}}
/* Selection and consolidated accounting follow the existing burgundy workspace. */
.wf-finance-filters{display:grid;grid-template-columns:150px 150px minmax(230px,1fr) 170px auto;gap:12px;align-items:end;background:#f7f5f8;border:1px solid #e5dee7;border-radius:10px;padding:18px;margin:18px 0}.wf-finance-filters>div{min-width:0}.wf-finance-filters input,.wf-finance-filters select{width:100%;font-size:14px;min-width:0}.wf-finance-filters #financeToday,.wf-finance-filters #financeMonth{padding:10px 14px}.wf-selection-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.wf-root .wf-order-check{display:flex;gap:10px;align-items:center;cursor:pointer;margin:0;min-height:44px;padding:6px;font-size:14px;white-space:nowrap}.wf-root .wf-order-check input{appearance:auto!important;width:25px;height:25px;min-height:25px;flex:0 0 25px;accent-color:#812d43;cursor:pointer;margin:0;border-radius:4px}.wf-root .wf-order-check input:focus-visible{outline-offset:4px}.wf-finance-scroll{border:1px solid #e2dce5;border-radius:10px}.wf-finance-scroll table{width:100%;border-collapse:collapse}.wf-finance-scroll th{font-size:13px;background:#f0edf2;white-space:nowrap}.wf-finance-scroll td{font-size:14px;border-bottom:1px solid #e5e0e8;padding:12px}.wf-finance-scroll tbody tr:nth-child(even){background:#f8f6f9}.wf-finance-scroll .wf-select-col{width:60px;text-align:center;position:sticky;left:0;background:#faf8fb;z-index:1}.wf-finance-scroll tr.wf-order-selected>td{background:#f4e4eb!important;border-bottom-color:#d3b2c0}.wf-finance-scroll tr.wf-order-selected>td:first-child{box-shadow:inset 4px 0 #812d43}.wf-finance-scroll .wf-mobile-check{display:none}.wf-finance-scroll td:nth-child(3){min-width:230px}.wf-finance-scroll td:nth-child(2){white-space:nowrap}.wf-finance-scroll .wf-row-actions{margin-top:8px}.wf-finance-scroll button{font-size:13px;padding:8px 10px}.wf-bulk-bar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #d9c5cf;border-top:3px solid #812d43;border-radius:12px;padding:18px;margin-top:20px;box-shadow:0 5px 18px #30233008}.wf-bulk-bar>div:first-child{flex:1;min-width:220px}.wf-bulk-bar strong{font-size:18px;color:#70283c}.wf-bulk-bar span{display:block;font-size:13px;color:#716879;margin-top:6px}.wf-bulk-date{width:175px}.wf-bulk-date input{width:100%;font-size:14px}.wf-bulk-bar>.wf-row-actions{flex-basis:100%;justify-content:flex-end}.wf-bulk-bar button{padding:12px 18px;font-size:14px}.wf-batch-summary{display:flex;gap:22px;align-items:center;flex-wrap:wrap;border-top:1px solid #e7e1e8;border-bottom:1px solid #e7e1e8;padding:16px 0;margin:18px 0;font-size:15px}.wf-batch-tabs{display:flex;flex-wrap:wrap;gap:8px}.wf-batch-tabs button{max-width:300px;text-align:left}.wf-batch-tabs button:not(.secondary) small{color:#fff}.wf-batch-members summary{cursor:pointer;padding:10px 0;font-weight:600;color:#812d43}.wf-batch-lines{border:1px solid #e4dbe5;border-radius:10px}.wf-batch-lines table{width:100%;min-width:860px!important}.wf-batch-lines th{font-size:13px}.wf-batch-lines td{font-size:14px;padding:14px 12px}.wf-batch-lines tbody tr:nth-child(even){background:#f8f6f9}.wf-batch-lines td:first-child{min-width:220px;max-width:320px}.wf-batch-lines td:nth-child(2),.wf-batch-lines td:last-child{font-weight:600;white-space:nowrap}.wf-batch-lines input{width:150px;text-align:right;border-color:#b58b9b}.wf-batch-lines select{width:95px;border-color:#b58b9b}.wf-batch-lines .wf-apply-price{font-size:12px;min-height:36px;padding:6px 9px;margin-top:5px}.wf-batch-editor .wf-invoice-bottom input{width:100%;min-width:0}.wf-batch-editor .wf-discount{margin-top:18px}.wf-batch-editor #batchDifference{font-size:13px;line-height:1.6}.wf-batch-editor [hidden]{display:none!important}.wf-batch-editor .wf-message{font-size:14px}
@media(max-width:1200px){.wf-finance-filters{grid-template-columns:1fr 1fr 1fr}.wf-finance-filters .wf-filter-customer{grid-column:3}.wf-finance-filters #financeFilterGo{grid-column:auto}}
@media(max-width:700px){.wf-finance-filters{grid-template-columns:1fr 1fr;padding:12px}.wf-finance-filters .wf-filter-customer{grid-column:1/-1}.wf-selection-heading{gap:8px}.wf-selection-heading button{font-size:13px;padding:8px 12px}.wf-bulk-bar{padding:14px;gap:14px}.wf-bulk-bar>div:first-child{min-width:0;flex-basis:100%}.wf-bulk-date{width:100%}.wf-bulk-bar>.wf-row-actions{display:grid;grid-template-columns:1fr;width:100%}.wf-bulk-bar>.wf-row-actions button{width:100%}.wf-finance-scroll{overflow:visible;border:0}.wf-finance-scroll table{display:block;min-width:0!important}.wf-finance-scroll thead{display:none}.wf-finance-scroll tbody{display:grid;gap:12px}.wf-finance-scroll tr{display:grid;grid-template-columns:62px 1fr 1fr;border:1px solid #dcd1dc;border-radius:10px;overflow:hidden}.wf-finance-scroll td{display:block;min-width:0!important}.wf-finance-scroll .wf-select-col{position:static;width:auto;grid-column:1;grid-row:1/4;display:flex;align-items:flex-start;justify-content:center}.wf-finance-scroll .wf-order-check{flex-direction:column;white-space:normal}.wf-finance-scroll .wf-mobile-check{display:block;font-size:12px}.wf-finance-scroll td:nth-child(3){grid-column:2/4;grid-row:1}.wf-finance-scroll td:nth-child(2){grid-column:2/4;grid-row:2}.wf-finance-scroll td:nth-child(4){grid-column:2;grid-row:3}.wf-finance-scroll td:nth-child(5){grid-column:3;grid-row:3}.wf-finance-scroll td:nth-child(5):after{content:' kalem'}.wf-finance-scroll td:last-child{grid-column:1/-1;grid-row:4}.wf-finance-scroll .wf-row-actions button{flex:1}.wf-batch-editor .wf-table-heading{flex-wrap:wrap}.wf-batch-summary{gap:12px}.wf-batch-tabs{display:grid;grid-template-columns:1fr;width:100%}.wf-batch-tabs button{max-width:none;width:100%}}

/* Cancellation stays distinct from invoice creation. */
.wf-root button.wf-cancel-order{color:#9b2440;background:#fff5f7;border:1px solid #dfb2bd}.wf-root button.wf-cancel-order:hover:not(:disabled){background:#fbe6ec;border-color:#b9657b}.wf-root button.wf-cancel-order:focus-visible{outline:3px solid #b9657b;outline-offset:2px}
.wf-batch-history-toggle{margin:0 0 16px!important}.wf-batch-lines .wf-source-quantity{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e5e0e8}.wf-batch-lines .wf-source-quantity:last-child{border-bottom:0}.wf-source-quantity label{font-size:14px;font-weight:500;margin:0}.wf-source-quantity small{font-size:12px;color:#716879}.wf-batch-lines .wf-source-quantity input{width:105px;min-width:90px;font-size:16px;min-height:44px}.wf-quantity-details summary{cursor:pointer;color:#812d43;font-size:14px;font-weight:500;padding:10px 0}.wf-batch-lines td:nth-child(2){min-width:245px;vertical-align:top}.wf-batch-history-toggle input{flex-shrink:0}
.wf-product-toolbar{padding:0 24px 16px}.wf-product-search{display:flex;gap:8px;align-items:center}.wf-product-search input{width:100%;min-width:0;flex:1;font-size:16px}.wf-product-search button{flex-shrink:0}.wf-product-options{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:14px}.wf-product-filters{display:flex;flex-wrap:wrap;gap:6px}.wf-product-filters button[aria-pressed=true]{background:#812d43!important;color:#fff!important;border-color:#812d43!important}.wf-root .wf-product-density{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;font-weight:500;min-height:44px;cursor:pointer}.wf-root .wf-product-density input{width:18px;height:18px;min-height:18px;accent-color:#812d43;margin:0}.wf-product-toolbar #opProductResults{font-size:13px;color:#647084;margin:12px 0 0;line-height:1.5}.wf-product-card [hidden]{display:none!important}.wf-product-card .wf-quantity-table{table-layout:fixed}.wf-product-card .wf-seq{width:50px}.wf-product-card .wf-product-unit{width:80px}.wf-product-card .wf-quantity-column{width:155px}.wf-product-card .wf-product-action-column{width:160px}.wf-product-card .wf-quantity-table input{width:100%;max-width:120px;font-size:16px}.wf-product-card .wf-product-name label{overflow-wrap:anywhere}.wf-product-card .wf-mobile-unit{display:none}.wf-product-card .wf-product-actions{white-space:nowrap}.wf-root .wf-product-actions button{font-size:14px;min-height:38px;padding:8px 10px}.wf-product-actions button+button{margin-left:6px}.wf-root button.wf-remove-product{color:#992842;background:#fff7f9;border-color:#dfc2cc}.wf-product-card .wf-quantity-table tbody tr{background:#fff}.wf-product-card .wf-quantity-table tbody tr.wf-product-even{background:#f7f7fa}.wf-product-card .wf-quantity-table tbody tr.has-qty{background:#faf0f3}.wf-product-card .wf-quantity-table td{padding-top:13px;padding-bottom:13px}.wf-products-compact .wf-quantity-table td{padding-top:6px;padding-bottom:6px}.wf-root .wf-products-compact .wf-qty-input{min-height:36px;height:36px;padding-top:5px;padding-bottom:5px}.wf-products-empty{text-align:center;padding:28px 18px;border-top:1px solid #e6e4e9}.wf-products-empty p{margin:0 0 12px;color:#647084}
@media(max-width:1000px){.wf-product-card .wf-seq{width:40px}.wf-product-card .wf-product-unit{width:65px}.wf-product-card .wf-quantity-column{width:125px}.wf-product-card .wf-product-action-column{width:150px}.wf-product-card .wf-quantity-table th,.wf-product-card .wf-quantity-table td{padding-left:12px;padding-right:12px}}
@media(max-width:700px){.wf-product-toolbar{padding:0 14px 14px}.wf-product-options{gap:10px}.wf-root .wf-product-density{margin-left:0}.wf-product-card .wf-quantity-table thead{display:none}.wf-product-card .wf-quantity-table tbody{display:block}.wf-product-card .wf-quantity-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 12px;border-top:1px solid #e6e4e9}.wf-product-card.wf-products-compact .wf-quantity-table tr{padding:9px 12px}.wf-product-card .wf-quantity-table td,.wf-product-card.wf-products-compact .wf-quantity-table td{display:block;border:0;padding:0;position:static!important;box-shadow:none!important;background:transparent!important;width:auto!important;min-width:0!important}.wf-product-card .wf-quantity-table td.wf-seq,.wf-product-card .wf-quantity-table td.wf-product-unit{display:none}.wf-product-card .wf-product-name{grid-column:1/-1}.wf-product-card .wf-product-name label{display:inline;font-size:15px;overflow-wrap:normal}.wf-product-card .wf-mobile-unit{display:inline;margin-left:8px;font-size:13px;color:#647084}.wf-product-card .wf-product-quantity .wf-qty-input{display:none!important;max-width:130px}.wf-product-card .wf-product-quantity .wf-counter{display:flex;justify-content:flex-start;align-items:center;gap:6px}.wf-product-card .wf-counter button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:24px}.wf-product-card .wf-counter output{min-width:28px;text-align:center;font-size:16px}.wf-root .wf-product-actions button{font-size:14px;min-height:44px;padding:8px 9px}.wf-product-actions button+button{margin-left:5px}.wf-product-card tr.wf-editing-qty .wf-qty-input{display:block!important;min-height:44px;height:44px}.wf-product-card tr.wf-editing-qty .wf-counter{display:none}.wf-product-card .wf-product-actions{align-self:center}}
@media(pointer:coarse){.wf-root .wf-product-actions button{min-height:44px}.wf-root .wf-product-card .wf-qty-input{min-height:44px;height:44px}}

/* Fast order entry: compact details, sticky local search and draft-only undo. */
.wf-root .wf-operation-head{grid-template-columns:minmax(0,1fr) 155px 105px auto;align-items:end;gap:10px 14px;padding:16px 18px;margin-bottom:16px}.wf-operation-head>div:first-child{grid-column:auto}.wf-operation-head>div{min-width:0}.wf-operation-head label{margin-bottom:5px}.wf-operation-head input,.wf-operation-head select{width:100%;min-width:0}.wf-operation-head .wf-last-order{margin:0;display:block}.wf-operation-head #opLoadLast{font-size:14px;padding:10px 12px;white-space:nowrap}.wf-last-order-hint{grid-column:1/-1;font-size:14px;color:#65586a;line-height:1.5}.wf-last-order-hint:empty{display:none}
.wf-root .wf-product-card{overflow:visible}.wf-product-card>.wf-table-heading{padding:14px 18px;gap:10px}.wf-heading-tools{display:flex;align-items:center;justify-content:flex-end;gap:18px}.wf-root .wf-product-density{white-space:nowrap;font-size:14px;min-height:32px}.wf-product-toolbar{position:sticky;top:8px;z-index:8;background:#fff;border-bottom:1px solid #e4dfe7;box-shadow:0 4px 9px #30233008;padding:12px 18px;display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 14px}.wf-product-toolbar>label{grid-column:1/-1;margin:0}.wf-product-toolbar .wf-product-options{margin:0;gap:0}.wf-product-toolbar #opProductResults{grid-column:1/-1;margin:0}.wf-product-card .wf-qty-input{scroll-margin-top:calc(var(--wf-toolbar-height,150px) + 24px);scroll-margin-bottom:calc(var(--wf-save-height,110px) + 24px)}
.wf-product-card:not(.wf-products-entered) .wf-product-actions,.wf-product-card:not(.wf-products-entered) .wf-product-action-column,.wf-product-card .wf-quantity-table .wf-seq{display:none!important}.wf-product-card .wf-counter button.wf-counter-value{width:auto;min-width:44px;font-size:16px;padding:0 6px;background:#fff;color:#812d43;border:1px solid #d9c8d0;border-radius:8px}.wf-product-card .wf-quantity-table th{position:static}.wf-product-card .wf-quantity-table tbody tr:last-child td:first-of-type{border-bottom-left-radius:14px}.wf-product-card .wf-quantity-table tbody tr:last-child td:last-child{border-bottom-right-radius:14px}
.wf-save-bar{flex-wrap:wrap}.wf-save-bar>.wf-undo{display:flex;flex:1 0 100%;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #e7dce2;padding-bottom:10px;font-size:14px}.wf-save-bar>.wf-undo[hidden]{display:none!important}.wf-undo span{min-width:0;overflow-wrap:anywhere}.wf-undo button{flex-shrink:0;min-width:85px}
@media(max-width:1150px){.wf-root .wf-operation-head{grid-template-columns:minmax(0,1fr) 150px 105px}.wf-operation-head .wf-last-order{grid-column:1/-1}.wf-product-toolbar{grid-template-columns:1fr}.wf-heading-tools .wf-key-hint{display:none}}
@media(max-width:700px){.wf-root .wf-operation-head{grid-template-columns:1fr;padding:14px;gap:12px}.wf-operation-head #opLoadLast{width:100%}.wf-product-card>.wf-table-heading{padding:12px 14px;flex-wrap:wrap;align-items:center}.wf-product-card>.wf-table-heading h3{font-size:17px;margin:0}.wf-heading-tools{margin-left:auto}.wf-product-toolbar{top:0;padding:10px 14px;gap:8px}.wf-product-toolbar .wf-product-filters{gap:6px}.wf-product-toolbar .wf-product-filters button{font-size:14px;padding:9px 12px}.wf-save-bar>.wf-undo{display:flex;grid-template-columns:none;margin-bottom:10px}.wf-product-card:not(.wf-products-entered) .wf-product-quantity{grid-column:1/-1;justify-self:end}}
@media print{.wf-product-toolbar{position:static;box-shadow:none}.wf-undo{display:none!important}}
@media screen and (max-height:550px){#opForm>.wf-save-bar{position:static}.wf-product-card .wf-qty-input{scroll-margin-bottom:16px}}
.wf-root .wf-resume-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-left:3px solid #812d43}.wf-resume-card>div:first-child{min-width:0}.wf-resume-card h3{font-size:18px;margin:0 0 8px}.wf-resume-card p{margin:5px 0;line-height:1.5}.wf-resume-customer{font-size:16px;overflow-wrap:anywhere}.wf-resume-meta{font-size:14px;color:#65586a}.wf-resume-hint{font-size:13px;color:#6d7584}.wf-resume-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0;max-width:360px}.wf-resume-actions button{font-size:14px}
@media(max-width:1050px){.wf-root .wf-resume-card{align-items:flex-start;flex-direction:column;gap:12px}.wf-resume-actions{justify-content:flex-start;max-width:100%}}

/* Inline order review and sorting keep the list as the working surface. */
.wf-history-scroll th:has(.wf-history-sort){padding:4px 7px}
.wf-root .wf-history-sort{display:inline-flex;justify-content:flex-start;background:transparent;color:#64566b;border:1px solid transparent;border-radius:6px;padding:6px 5px;min-height:34px;font-size:12px;white-space:nowrap;gap:6px}
.wf-history-sort span{font-size:15px;color:#8b748a}.wf-history-sort:hover:not(:disabled){background:#e9e0e9;box-shadow:none}.wf-history-scroll th[aria-sort=ascending] .wf-history-sort,.wf-history-scroll th[aria-sort=descending] .wf-history-sort{color:#812d43}.wf-history-sort:focus-visible{outline:2px solid #812d43;outline-offset:0}
.wf-mobile-sort{display:none}
.wf-history-scroll tr.wf-detail-open>td{background:#f8edf2;border-bottom-color:#dec0cd}.wf-history-scroll tr.wf-detail-open>td:first-child{box-shadow:inset 3px 0 #812d43}
.wf-history-scroll tr.wf-inline-detail{background:#fdfbfc}
.wf-history-scroll tr.wf-inline-detail>td{padding:0!important;width:auto!important;white-space:normal!important;min-width:0!important;border-bottom:1px solid #dbc4ce}
.wf-inline-detail .wf-order-detail{border:0;border-left:3px solid #812d43;border-radius:0;margin:0;padding:16px 20px;background:#fdfbfc}
.wf-inline-detail .wf-table-heading{margin-bottom:10px;align-items:flex-start}.wf-inline-detail .wf-table-heading h3{font-size:16px;margin:0}.wf-inline-detail .wf-table-heading p{font-size:12px;margin:4px 0}.wf-inline-detail .wf-status{margin:0 0 10px}.wf-inline-detail #opDetailClose{min-height:34px;font-size:13px;padding:7px 12px}
.wf-detail-product-head,.wf-detail-products>li{display:grid;grid-template-columns:minmax(0,1fr) 95px 80px;gap:16px;padding:7px 12px;align-items:center}.wf-detail-product-head{font-size:12px;font-weight:600;background:#eee8ef;color:#67586b;border-radius:6px 6px 0 0}.wf-detail-product-head>span:nth-child(2),.wf-detail-products>li>b{text-align:right;font-variant-numeric:tabular-nums}.wf-detail-products{padding:0;margin:0;list-style:none;border:1px solid #e4dce6;border-top:0;border-radius:0 0 6px 6px;overflow:hidden}.wf-detail-products>li{font-size:14px;border-bottom:1px solid #ebe5ed;background:#fff}.wf-detail-products>li:nth-child(even){background:#f7f4f8}.wf-detail-products>li:last-child{border:0}.wf-detail-products>li>span:first-child{overflow-wrap:anywhere}.wf-detail-products>li>span:last-child{color:#716477}
.wf-inline-detail .wf-order-note{font-size:14px;margin:10px 0;padding:10px 12px}.wf-detail-audit{font-size:12px;color:#716477;line-height:1.7;margin:12px 0}.wf-inline-detail #opDetailEdit{font-size:13px;min-height:36px;padding:8px 12px}.wf-detail-loading{font-size:14px;padding:12px 16px;margin:0}
@media(max-width:600px){
 .wf-mobile-sort{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.wf-root .wf-mobile-sort .wf-history-sort{min-height:42px;font-size:13px;border:1px solid #e2d9e4;background:#f6f1f6;padding:8px}
 .wf-history-scroll tr.wf-detail-open{border-color:#cf9faf;border-radius:9px 9px 0 0}.wf-history-scroll tr.wf-inline-detail{display:block;margin-top:-13px;border:1px solid #cf9faf;border-top:0;border-radius:0 0 9px 9px}.wf-history-scroll tr.wf-inline-detail>td:before{display:none}.wf-inline-detail .wf-order-detail{padding:12px;border-left:0}.wf-inline-detail .wf-table-heading{gap:8px}.wf-inline-detail .wf-table-heading h3{font-size:14px}.wf-inline-detail #opDetailClose{min-height:42px}.wf-detail-product-head,.wf-detail-products>li{grid-template-columns:minmax(0,1fr) 48px 44px;gap:8px;padding:8px}.wf-detail-products>li{font-size:14px}.wf-inline-detail #opDetailEdit{min-height:42px}
}
/* Accounting workspace: compact queue, persistent selection, focused review. */
.wf-accounting{min-width:0}
.wf-accounting [hidden]{display:none!important}
.wf-accounting .wf-finance-orders{padding:16px 18px;margin-bottom:16px}
.wf-finance-orders>.wf-table-heading{margin-bottom:10px}
.wf-finance-orders .wf-connection{padding:8px 12px;margin-bottom:12px;line-height:1.4;font-size:13px}
.wf-accounting .wf-finance-filters{grid-template-columns:145px 145px minmax(190px,1fr) 155px auto;gap:10px;padding:12px;margin:0 0 10px}
.wf-accounting .wf-finance-filter-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.wf-accounting .wf-finance-filters label{margin-bottom:5px}
.wf-accounting .wf-finance-filters input,.wf-accounting .wf-finance-filters select,.wf-accounting .wf-finance-filters .gs-customer-input{min-height:40px;font-size:14px;padding:8px 10px}
.wf-accounting .wf-finance-filters button{min-height:40px;padding:8px 12px}
.wf-accounting .wf-finance-filters button[aria-pressed=true]{background:#f2e4eb;border-color:#b78698;color:#70283c}
.wf-accounting .wf-selection-heading{gap:6px 10px;margin-bottom:10px}
.wf-accounting .wf-selection-heading button{min-height:36px;padding:6px 10px;font-size:13px}
.wf-accounting #financeCount{font-size:13px;margin:0 0 0 auto;line-height:1.5}
.wf-accounting .wf-finance-scroll table{min-width:800px;table-layout:auto}
.wf-accounting .wf-finance-scroll th{font-size:13px;padding:9px 10px;text-align:left}
.wf-accounting .wf-finance-scroll td{padding:8px 10px;font-size:14px;line-height:1.35}
.wf-accounting .wf-finance-scroll .wf-select-col{width:48px;min-width:48px;padding:6px}
.wf-accounting .wf-finance-scroll td:nth-child(3){min-width:175px;max-width:320px;overflow-wrap:anywhere}
.wf-accounting .wf-finance-scroll td:nth-child(6){max-width:150px}
.wf-accounting .wf-finance-scroll small{font-size:12px;margin:4px 0 0}
.wf-accounting .wf-finance-scroll .wf-status{font-size:13px;padding:5px 7px}
.wf-accounting .wf-finance-scroll .wf-row-actions{margin:0;align-items:center;flex-wrap:nowrap}
.wf-accounting .wf-finance-scroll [data-invoice]{min-height:36px;white-space:nowrap;font-size:13px;padding:8px 10px}
.wf-accounting .wf-finance-scroll .wf-order-check{min-height:34px;padding:3px;justify-content:center}
.wf-accounting .wf-finance-more{position:relative;flex-shrink:0;margin:0}
.wf-accounting .wf-finance-more summary{display:flex;align-items:center;justify-content:center;width:36px;min-height:36px;list-style:none;cursor:pointer;font-size:20px;font-weight:700;border:1px solid #e3dfe8;border-radius:7px;background:#f1eef4;color:#66526a;padding:0}
.wf-finance-more summary::-webkit-details-marker{display:none}
.wf-finance-more summary:focus-visible{outline:3px solid #426998;outline-offset:2px}
.wf-finance-more-items{display:flex;flex-wrap:wrap;gap:6px;padding-top:6px}
.wf-accounting .wf-finance-more-items button{min-height:36px;font-size:13px;padding:7px 10px}
.wf-finance-scroll .wf-finance-more[open]{flex-basis:100%}
.wf-finance-scroll .wf-row-actions:has(.wf-finance-more[open]){flex-wrap:wrap}
.wf-accounting .wf-pagination{margin:12px 0 0}
.wf-accounting .wf-pagination button{min-height:36px;font-size:13px;padding:7px 12px}
.wf-accounting #financeActionBar{position:sticky;bottom:10px;z-index:12;display:grid;grid-template-columns:minmax(190px,1fr) 156px auto;gap:10px 16px;padding:12px 16px;margin:0 0 14px;box-shadow:0 4px 22px #3023301f}
.wf-accounting .wf-bulk-selection{display:flex;align-items:center;gap:10px;min-width:0}
.wf-accounting .wf-bulk-selection strong{font-size:16px;line-height:1.4}
.wf-accounting .wf-bulk-date{width:auto}
.wf-accounting .wf-bulk-date label{font-size:12px;margin:0 0 4px}
.wf-accounting .wf-bulk-date input{min-height:36px;font-size:14px;padding:6px 8px}
.wf-accounting #financeActionBar>.wf-row-actions{flex-basis:auto;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
.wf-accounting #financeActionBar>.wf-row-actions button{min-height:40px;padding:9px 12px;font-size:14px;white-space:nowrap}
.wf-accounting .wf-bulk-more[open] .wf-finance-more-items{position:absolute;bottom:calc(100% + 8px);left:0;background:#fff;border:1px solid #d9c5cf;border-radius:8px;padding:8px;box-shadow:0 4px 20px #30233024;width:max-content;max-width:230px}
.wf-accounting #financeList tr{scroll-margin-bottom:150px}
.wf-finance-workspace{display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:10;padding:10px 0;background:#f6f7fa;margin:0 0 12px;border-bottom:1px solid #e2dce5}
.wf-finance-workspace strong{font-size:16px;color:#66526a}
.wf-accounting #financeBack{font-size:14px;min-height:40px;flex-shrink:0}
.wf-finance-focused #financeOrders,.wf-finance-focused #transferAudit,.wf-finance-focused #financeActionBar{display:none!important}
.wf-finance-focused .wf-invoice,.wf-finance-focused .wf-batch-editor{padding:18px}
.wf-finance-focused .wf-line-editor{padding:16px;margin:16px 0 18px}
.wf-finance-focused .wf-line-heading{margin-bottom:12px}
.wf-finance-focused .wf-line-select{margin-bottom:14px}
.wf-finance-focused .wf-invoice-bottom{gap:28px;padding:18px 0}
.wf-finance-focused .wf-invoice-lines td,.wf-finance-focused .wf-batch-lines td{padding:10px 12px}
.wf-finance-focused .wf-invoice-actions{flex-wrap:wrap;gap:10px}
.wf-finance-focused .wf-invoice-actions>.wf-row-actions{margin-left:auto}
.wf-finance-focused input,.wf-finance-focused select{scroll-margin-top:90px}
@media(max-width:1350px){
 .wf-accounting .wf-finance-filters{grid-template-columns:140px 140px minmax(180px,1fr) 160px}
 .wf-accounting .wf-finance-filter-actions{grid-column:1/-1;justify-content:flex-start}
 .wf-accounting .wf-finance-filters .wf-filter-customer{grid-column:auto}
 .wf-accounting #financeActionBar{grid-template-columns:minmax(0,1fr) 156px}
 .wf-accounting #financeActionBar>.wf-row-actions{grid-column:1/-1}
}
@media(max-width:700px){
 .wf-accounting .wf-finance-orders{padding:12px}
 .wf-accounting .wf-finance-filters{grid-template-columns:1fr 1fr;padding:10px;gap:10px}
 .wf-accounting .wf-finance-filters .wf-filter-customer{grid-column:1/-1;grid-row:2}
 .wf-accounting .wf-finance-filters>div:has(#financeStatus){grid-column:1/-1}
 .wf-accounting .wf-finance-filter-actions{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%}
 .wf-accounting .wf-finance-filters input,.wf-accounting .wf-finance-filters select,.wf-accounting .wf-finance-filters .gs-customer-input{min-height:44px;font-size:16px}
 .wf-accounting #financeCount{width:100%;margin:2px 0 0}
 .wf-accounting .wf-selection-heading button{min-height:40px}
 .wf-accounting .wf-finance-scroll table{min-width:0}
 .wf-accounting .wf-finance-scroll td{font-size:14px;padding:8px 10px;max-width:none!important}
 .wf-accounting .wf-finance-scroll .wf-select-col{width:auto;min-width:0;grid-row:1/5;padding-top:8px}
 .wf-accounting .wf-finance-scroll td:nth-child(6){grid-column:2/4;grid-row:4}
 .wf-accounting .wf-finance-scroll td:last-child{grid-column:1/-1;grid-row:5}
 .wf-accounting .wf-finance-scroll [data-invoice],.wf-accounting .wf-finance-more summary,.wf-accounting .wf-finance-more-items button{min-height:44px}
 .wf-accounting .wf-finance-more summary{width:44px}
 .wf-accounting #financeActionBar{bottom:4px;padding:9px 10px;gap:8px;grid-template-columns:minmax(0,1fr) 138px;border-radius:10px}
 .wf-accounting .wf-bulk-selection{flex-wrap:wrap;gap:4px}
 .wf-accounting .wf-bulk-selection strong{font-size:14px;flex:1}
 .wf-accounting .wf-bulk-date label{font-size:12px}
 .wf-accounting .wf-bulk-date input{font-size:16px;min-height:40px}
 .wf-accounting #financeActionBar>.wf-row-actions{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:5px;width:100%}
 .wf-accounting #financeActionBar>.wf-row-actions button{padding:8px 5px;font-size:13px;min-height:44px;white-space:normal;line-height:1.3}
 .wf-finance-workspace{gap:10px}
 .wf-finance-workspace strong{font-size:14px}
 .wf-finance-focused .wf-invoice,.wf-finance-focused .wf-batch-editor{padding:12px}
 .wf-finance-focused .wf-line-editor{padding:12px}
 .wf-finance-focused .wf-table-heading{flex-wrap:wrap}
 .wf-finance-focused .wf-invoice-bottom{grid-template-columns:1fr;gap:16px}
 .wf-finance-focused .wf-invoice-actions>.wf-row-actions{width:100%;margin:0}
}
@media(max-height:480px){.wf-accounting #financeActionBar,.wf-finance-workspace{position:static}}
@media print{#financeActionBar,.wf-finance-workspace{display:none!important}}
/* Finance tabs keep saved work separate from the daily selection queue. */
.wf-finance-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #ddd5e1;padding-bottom:12px;margin-bottom:16px}
.wf-accounting .wf-finance-tabs button{font-size:14px;min-height:42px;padding:10px 16px}
.wf-finance-tabs button[aria-selected=true]{background:#812d43;color:#fff;border-color:#812d43}
.wf-finance-focused #financeTabs{display:none}
.wf-finance-history .wf-finance-filters{grid-template-columns:145px 145px minmax(190px,1fr) auto;margin-bottom:0}
.wf-finance-history .wf-finance-orders{margin-bottom:16px}
.wf-finance-history #transferAudit{margin-bottom:0}
@media(max-width:1350px){.wf-finance-history .wf-finance-filters{grid-template-columns:140px 140px minmax(180px,1fr)}.wf-finance-history .wf-finance-filter-actions{grid-column:1/-1}}
@media(max-width:700px){
 .wf-finance-tabs{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px}
 .wf-accounting .wf-finance-tabs button{height:100%;min-height:44px;padding:9px 10px;line-height:1.4}
 .wf-finance-history .wf-finance-filters{grid-template-columns:1fr 1fr}
 .wf-finance-history .wf-finance-filters .wf-filter-customer{grid-column:1/-1}
 .wf-finance-history #transferAudit{padding:14px 12px}
}
@media print{#financeTabs{display:none!important}}

/* Completed reviews use the same compact accounting work surface. */
.wf-accounting .card{padding:14px 16px;margin-bottom:14px}
.wf-accounting h3{font-size:17px;margin-bottom:10px}
.wf-accounting .wf-table-heading{gap:10px;margin-bottom:10px}
.wf-accounting .wf-table-heading p{margin:4px 0;font-size:13px}
.wf-accounting .wf-line-editor{padding:14px;margin:12px 0 16px;border-radius:9px}
.wf-accounting .wf-line-heading{margin-bottom:10px}
.wf-accounting .wf-line-select{max-width:none;margin-bottom:12px}
.wf-accounting .wf-line-fields{gap:10px}
.wf-accounting .wf-line-fields label{min-height:0;margin-bottom:4px;font-size:13px}
.wf-accounting input:not([type=checkbox]),.wf-accounting select,.wf-accounting .gs-customer-input{min-height:36px;font-size:14px;padding:7px 9px}
.wf-accounting button{min-height:36px;font-size:13px;padding:8px 12px}
.wf-accounting .wf-line-foot{margin-top:10px;gap:12px}
.wf-accounting .wf-line-foot p{font-size:12px;line-height:1.4;margin:3px 0}
.wf-accounting .wf-add-product{padding:10px 12px;margin:0 0 12px}
.wf-accounting .wf-add-fields{margin-top:10px;gap:10px}
.wf-accounting .wf-invoice-lines th,.wf-accounting .wf-batch-lines th{padding:8px 10px;font-size:12px}
.wf-accounting .wf-invoice-lines td,.wf-accounting .wf-batch-lines td{padding:7px 10px;font-size:13px;line-height:1.35}
.wf-accounting .wf-invoice-lines small,.wf-accounting .wf-batch-lines small{font-size:11px;margin-top:3px}
.wf-accounting .wf-batch-lines table{min-width:740px!important}
.wf-accounting .wf-batch-lines td:first-child{min-width:160px}
.wf-accounting .wf-batch-lines td:nth-child(2){min-width:180px}
.wf-accounting .wf-batch-lines input{width:112px}
.wf-accounting .wf-batch-lines .wf-source-quantity{padding:2px 0;gap:8px}
.wf-accounting .wf-source-quantity label{font-size:12px;margin:0}
.wf-accounting .wf-source-quantity input{width:85px;min-width:75px;min-height:36px;font-size:14px}
.wf-accounting .wf-quantity-details summary{font-size:12px;padding:5px 0}
.wf-accounting .wf-invoice-bottom{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:20px;margin-top:14px}
.wf-accounting .wf-invoice-bottom>div:first-child{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;align-content:start;align-items:end}
.wf-accounting .wf-invoice-bottom>div:first-child>label{grid-column:1/-1;margin:3px 0 0;font-size:13px}
.wf-accounting .wf-invoice-bottom>div:first-child>input{grid-column:1/-1}
.wf-accounting .wf-invoice-bottom .wf-discount{grid-column:1/-1;margin:4px 0 0;gap:8px}
.wf-accounting .wf-invoice-bottom details,.wf-accounting .wf-invoice-bottom p{grid-column:1/-1;margin:6px 0 0;font-size:12px;line-height:1.4}
.wf-accounting .wf-totals{padding:10px 14px}
.wf-accounting .wf-totals>div{padding:7px 0;font-size:13px}
.wf-accounting .wf-totals>div:last-child{font-size:17px;padding-top:10px}
.wf-accounting .wf-invoice-actions{gap:12px;margin-top:14px;padding-top:12px}
.wf-accounting .wf-invoice-actions>span{font-size:12px}
.wf-accounting .wf-invoice-actions>.wf-row-actions{gap:6px}
.wf-accounting .wf-inline-hint{font-size:13px;margin:7px 0 0;min-height:0}
.wf-accounting .wf-inline-hint:empty{display:none}
.wf-accounting .wf-batch-summary{padding:8px 0;margin:8px 0;gap:14px;font-size:13px}
.wf-accounting .wf-batch-members summary,.wf-accounting .wf-review-help summary{font-size:12px;padding:6px 0;cursor:pointer}
.wf-accounting .wf-review-help p{font-size:12px;line-height:1.5;margin:4px 0 10px}
.wf-accounting .wf-ref{font-size:11px;margin:4px 0;overflow-wrap:anywhere}
.wf-accounting .wf-ref summary{cursor:pointer}
.wf-accounting .wf-batch-tabs{gap:5px;margin-bottom:8px}
.wf-accounting .wf-batch-tabs button{font-size:12px;padding:7px 9px}
.wf-accounting #transferAudit>.wf-table-heading{flex-wrap:wrap}
.wf-accounting #batchScope{width:230px}
.wf-accounting #transferAudit .wf-selection-heading{gap:10px;margin:8px 0}
.wf-accounting #transferAudit .wf-selection-heading>span{font-size:12px;margin-left:auto}
.wf-accounting #reviewQueueActions{position:sticky;bottom:8px;z-index:12;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;margin-top:12px;border-radius:9px}
.wf-accounting #reviewQueueActions>strong{font-size:15px;flex:1}
.wf-accounting #reviewQueueActions>.wf-row-actions{flex-basis:auto;gap:6px}
.wf-accounting .wf-review-queue td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
.wf-accounting .wf-review-queue td:last-child{width:58px}
.wf-accounting .wf-invoice-actions .wf-finance-more[open] .wf-finance-more-items{position:absolute;bottom:calc(100% + 6px);right:0;background:#fff;border:1px solid #ddd0d8;padding:6px;border-radius:8px;width:max-content;box-shadow:0 5px 18px #30233020;z-index:15}
@media(max-width:750px){
 .wf-accounting .card{padding:12px}
 .wf-accounting input:not([type=checkbox]),.wf-accounting select,.wf-accounting .gs-customer-input{min-height:44px;font-size:16px}
 .wf-accounting button{min-height:44px}
 .wf-accounting .wf-line-editor{padding:12px}
 .wf-accounting .wf-line-fields label{min-height:30px;font-size:12px}
 .wf-accounting .wf-invoice-bottom{grid-template-columns:1fr;gap:12px}
 .wf-accounting .wf-invoice-actions{align-items:stretch;flex-direction:column}
 .wf-accounting .wf-invoice-actions>.wf-row-actions{width:100%;flex-wrap:wrap}
 .wf-accounting #transferAudit .wf-selection-heading>span{width:100%;margin:0}
 .wf-accounting #reviewQueueActions{flex-wrap:wrap;bottom:4px;padding:10px;gap:8px}
 .wf-accounting #reviewQueueActions>strong{font-size:14px;flex-basis:100%}
 .wf-accounting #reviewQueueActions>.wf-row-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:0}
 .wf-accounting .wf-review-queue td:nth-child(5):after{content:''}
 .wf-accounting .wf-review-queue td:nth-child(4):after{content:' sipariş'}
 .wf-accounting .wf-review-queue td:last-child{width:auto}
 .wf-accounting .wf-review-queue .wf-finance-more{width:100%}
 .wf-accounting #batchScope{width:100%;max-width:100%}
 .wf-accounting #transferAudit>.wf-table-heading>div{width:100%}
}
@media(max-height:480px){.wf-accounting #reviewQueueActions{position:static}}
@media(max-width:700px){
 .wf-accounting .wf-batch-lines{border:0;overflow:visible}
 .wf-accounting .wf-batch-lines table{display:block;min-width:0!important}
 .wf-accounting .wf-batch-lines thead{display:none}
 .wf-accounting .wf-batch-lines tbody{display:grid;gap:10px}
 .wf-accounting .wf-batch-lines tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #e4dbe5;border-radius:8px;overflow:hidden;background:#fff}
 .wf-accounting .wf-batch-lines td{display:block;min-width:0!important;max-width:none!important;white-space:normal!important;padding:8px 10px;border-bottom:1px solid #ebe5ec}
 .wf-accounting .wf-batch-lines td:first-child{grid-column:1/-1;background:#f3eef4}
 .wf-accounting .wf-batch-lines td:last-child{grid-column:1/-1;text-align:right;border:0;font-weight:700}
 .wf-accounting .wf-batch-lines td:not(:first-child):before{display:block;font-size:12px;font-weight:500;color:#6a5a70;margin-bottom:5px}
 .wf-accounting .wf-batch-lines td:nth-child(2):before{content:'Miktar'}
 .wf-accounting .wf-batch-lines td:nth-child(3):before{content:'Birim'}
 .wf-accounting .wf-batch-lines td:nth-child(4):before{content:'Birim Fiyat (TL)'}
 .wf-accounting .wf-batch-lines td:nth-child(5):before{content:'KDV'}
 .wf-accounting .wf-batch-lines td:nth-child(6):before{content:'Tutar (KDV Hariç)';display:inline;margin-right:8px}
 .wf-accounting .wf-batch-lines input,.wf-accounting .wf-batch-lines select{width:100%;min-height:44px;font-size:16px}
 .wf-accounting .wf-batch-lines .wf-source-quantity{flex-wrap:wrap;gap:6px}
 .wf-accounting .wf-source-quantity label{font-size:11px}
}

/* Reduce remaining accounting framing and vertical gaps without shrinking controls. */
.wf-root:has(>.wf-accounting)>.wf-heading{margin-bottom:12px}
.wf-root:has(>.wf-accounting)>.wf-heading h2{font-size:24px;margin-bottom:4px}
.wf-root:has(>.wf-accounting)>.wf-heading p{font-size:14px;line-height:1.4}
.wf-root:has(>.wf-accounting)>.wf-message{padding:9px 12px;margin-bottom:12px;font-size:14px;line-height:1.4}
.wf-accounting .wf-finance-tabs{gap:6px;margin-bottom:12px;padding-bottom:8px}
.wf-accounting .wf-finance-tabs button{min-height:38px;padding:8px 12px}
.wf-accounting .wf-finance-workspace{padding:6px 0;margin-bottom:8px;gap:12px}
.wf-accounting #financeBack{min-height:36px;padding:7px 10px}
.wf-accounting .wf-add-product{margin-bottom:10px!important;padding:5px 10px}
.wf-accounting .wf-add-fields{padding:6px 0;margin-top:4px}
.wf-accounting .wf-invoice-bottom{padding:8px 0;margin-top:10px}
.wf-accounting .wf-invoice-actions{margin-top:8px;padding-top:10px}
.wf-accounting .wf-invoice-actions button{margin-top:0}
.wf-accounting .wf-line-list-note{margin:6px 0 0}
@media(max-width:750px){
 .wf-accounting .wf-finance-tabs button,.wf-accounting #financeBack{min-height:44px}
 .wf-accounting .wf-invoice-actions>.wf-row-actions button{width:auto}
 .wf-accounting .wf-line-foot .wf-row-actions button{width:100%}
}
.wf-accounting .wf-product-mapping{margin-top:4px}
.wf-accounting .wf-product-mapping summary{padding:3px 0}
.wf-accounting .wf-totals>div{padding:5px 0}
.wf-accounting .wf-totals>div:last-child{padding-top:7px}

/* Persisted review completion stays visible beside each customer. */
.wf-accounting .wf-review-indicator{display:inline-flex;align-items:center;margin-top:5px;padding:3px 6px;border-radius:5px;background:#f2eef4;color:#6b5d70;font-size:12px;font-weight:500;line-height:1.35}
.wf-accounting .wf-reviewed{background:#e8f5ec!important;color:#24633b!important;border-color:#b3d8bf!important;font-weight:600}
.wf-accounting .wf-batch-tabs button .wf-review-indicator{color:#6b5d70}
.wf-accounting #batchHint{white-space:pre-line}
.wf-accounting #batchCompleteAll{border-color:#ba93a3;color:#812d43}
@media(max-width:750px){.wf-accounting #batchCompleteAll{flex-basis:100%;width:100%}}
