/* Keep the movement report's main scope above its product filters. */
#salesReportFilters[data-inventory-mode=movement]{grid-template-columns:repeat(12,minmax(0,1fr));gap:8px 12px;padding:12px 14px;background:#f5f8fa;align-items:end}
#salesReportFilters[data-inventory-mode=movement]>label{grid-column:span 2;min-width:0;display:grid;gap:4px;margin:0;font-size:11px;line-height:1.3;color:#314e60;font-weight:600}
#salesReportFilters[data-inventory-mode=movement]>label[hidden]{display:none!important}
#salesReportFilters[data-inventory-mode=movement] :is(input:not([type=hidden]),select,button){min-height:34px;height:34px;padding:6px 9px;border-radius:6px;font-size:12px;box-sizing:border-box;min-width:0}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=mode]){order:0}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=from]){order:1}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=to]){order:2}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=shopId]){order:3}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=locationId]){order:4}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=cashier]){order:5}
#salesReportFilters[data-inventory-mode=movement]>label:has([name=productId]){order:6;grid-column:span 3}
#salesReportFilters[data-inventory-mode=movement]>.report-product-search{order:7;grid-column:span 1}
#salesReportFilters[data-inventory-mode=movement]>.report-product-search button{width:100%;font-size:11px;padding:6px}
#salesReportFilters[data-inventory-mode=movement]>[data-report-category]{order:8}
#salesReportFilters[data-inventory-mode=movement]>[data-inventory-filter=movementType]{order:9}
#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions{order:10;grid-column:span 4;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;margin:0;padding:0}
#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button{white-space:nowrap;font-size:12px;font-weight:600;min-width:0;padding:6px 12px}
#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button[type=submit]{background:#155e75!important;color:#fff!important;border-color:#155e75!important;min-width:108px}
#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button[type=button]{background:white!important;color:#155e75!important;border:1px solid #bfd0da!important;box-shadow:none!important}
@media(max-width:1199px){#salesReportFilters[data-inventory-mode=movement]{grid-template-columns:repeat(6,minmax(0,1fr))}#salesReportFilters[data-inventory-mode=movement]>label:has([name=productId]){grid-column:span 4}#salesReportFilters[data-inventory-mode=movement]>.report-product-search{grid-column:span 2}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions{grid-column:span 2;flex-wrap:wrap}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button{flex:1;padding:6px 8px}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button[type=submit]{flex-basis:100%}}
@media(max-width:700px){#salesReportFilters[data-inventory-mode=movement]{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px 10px}#salesReportFilters[data-inventory-mode=movement]>label{grid-column:span 1}#salesReportFilters[data-inventory-mode=movement]>label:has([name=mode]){grid-column:1/-1}#salesReportFilters[data-inventory-mode=movement]>label:has([name=productId]){grid-column:1/-1}#salesReportFilters[data-inventory-mode=movement]>.report-product-search{grid-column:1/-1}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions{grid-column:1/-1;flex-wrap:wrap;justify-content:flex-start}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button{flex:1}#salesReportFilters[data-inventory-mode=movement]>.report-filter-actions button[type=submit]{flex-basis:auto}#salesReportFilters[data-inventory-mode=movement] :is(input:not([type=hidden]),select,button){height:38px;min-height:38px}}
#appScreen.workspace-shell #customerReportFilter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 10px;padding:10px;margin:0 0 10px}
#appScreen.workspace-shell #customerReportFilter>.suite-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:0;min-width:0}
#appScreen.workspace-shell #customerReportFilter label{display:grid;gap:4px;margin:0;min-width:0;font-size:12px}
#appScreen.workspace-shell #customerReportFilter :is(input,select){min-width:0;width:100%;height:36px;min-height:36px;padding:6px 9px;font-size:13px}
#appScreen.workspace-shell #customerReportFilter>.suite-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;margin:0;padding:0}
#appScreen.workspace-shell #customerReportFilter>.suite-actions button{height:36px;min-height:36px;padding:6px 10px;margin:0;font-size:12px;white-space:nowrap}
#appScreen.workspace-shell #customerReportFilter>.ops-result{grid-column:1/-1;min-height:0;margin:0;padding:4px 8px;font-size:12px;line-height:1.35}
#appScreen.workspace-shell #customerReportFilter>.ops-result:empty{display:none}
@media(max-width:1000px){#appScreen.workspace-shell #customerReportFilter{grid-template-columns:minmax(0,1fr)}#appScreen.workspace-shell #customerReportFilter>.suite-actions{justify-content:flex-end}}
@media(max-width:600px){#appScreen.workspace-shell #customerReportFilter>.suite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#appScreen.workspace-shell #customerReportFilter>.suite-actions{flex-wrap:wrap}#appScreen.workspace-shell #customerReportFilter>.suite-actions button{flex:1;height:auto;min-height:40px;white-space:normal}}
#appScreen #customerPaymentsView .customer-payment-workspace{padding:0 10px 10px;gap:8px}
#appScreen #customerPaymentsView .customer-payment-workspace label{font-size:12px;gap:3px;margin:0;min-width:0}
#appScreen #customerPaymentsView .customer-payment-workspace :is(input:not([type=checkbox]),select){height:34px;min-height:34px;padding:5px 8px;font-size:13px}
#appScreen #customerPaymentsView .customer-payment-workspace button{min-height:32px;padding:6px 10px;font-size:12px;line-height:1.3}
#appScreen #customerPaymentsView .customer-payment-selected{padding:6px 10px;min-height:34px;margin:0;align-items:center;font-size:12px}
#appScreen #customerPaymentsView .customer-payment-criteria{padding:7px 9px;gap:6px 9px;margin:0;grid-template-columns:minmax(180px,1fr) auto auto auto}
#appScreen #customerPaymentsView .customer-payment-filter-options{min-height:32px;gap:10px}
#appScreen #customerPaymentsView .customer-payment-filter-dates{grid-column:3;grid-row:1;display:flex;gap:7px}
#appScreen #customerPaymentsView .customer-payment-filter-dates label{width:135px}
#appScreen #customerPaymentsView .customer-payment-filter-actions{grid-column:4;grid-row:1}
#appScreen #customerPaymentsView .customer-payment-tabs{gap:5px;margin:0}
#appScreen #customerPaymentsView .customer-payment-allocation-heading{gap:6px;min-height:32px;margin:0}
#appScreen #customerPaymentsView .customer-payment-entry{gap:6px}
#appScreen #customerPaymentInvoices{max-height:360px}
#appScreen #customerPaymentInvoices :is(th,td),#appScreen #customerPaymentHistory :is(th,td){padding:5px 8px;font-size:12px;line-height:1.3}
#appScreen #customerPaymentsView #customerPaymentInvoices input[data-customer-apply]{height:30px;min-height:30px;width:100px;padding:4px 7px}
.statement-line-note{display:block;margin-top:3px;white-space:pre-wrap}
#appScreen #customerPaymentsView .customer-payment-fields{gap:6px 9px;padding:8px 10px;margin:0}
@media(min-width:1200px){#appScreen #customerPaymentsView .customer-payment-fields{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){#appScreen #customerPaymentsView .customer-payment-criteria{grid-template-columns:minmax(180px,1fr) auto auto}#appScreen #customerPaymentsView .customer-payment-filter-actions{grid-column:3}#appScreen #customerPaymentsView .customer-payment-filter-dates{grid-column:1/-1;grid-row:2}}
@media(max-width:700px){#appScreen #customerPaymentsView .customer-payment-criteria{grid-template-columns:minmax(0,1fr)}#appScreen #customerPaymentsView .customer-payment-criteria>label,#appScreen #customerPaymentsView .customer-payment-filter-options,#appScreen #customerPaymentsView .customer-payment-filter-actions,#appScreen #customerPaymentsView .customer-payment-filter-dates{grid-column:1;grid-row:auto}#appScreen #customerPaymentsView .customer-payment-filter-actions{flex-wrap:wrap}#appScreen #customerPaymentsView .customer-payment-filter-dates label{width:auto;flex:1}#appScreen #customerPaymentsView .customer-payment-workspace button{min-height:38px}}
