/* Desktop-style document workspaces. Screen only: printed documents keep their own layout. */
@media screen{#stockView #adjustProduct{color:#111827;font-size:15px;font-weight:700;line-height:1.5}}
@media screen {
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell){--compact-line:#d5e2ec;font-size:13px;min-width:0}
 :is(#stockView,#inventorySuiteView,#salesReportsView)>.section-header{padding:10px 14px;gap:10px;background:#f2f8fb}
 :is(#stockView,#inventorySuiteView,#salesReportsView)>.section-header h2{font-size:19px}
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) :is(input:not([type=checkbox]):not([type=radio]),select,button,a.primary){min-height:34px;padding:6px 10px;font-size:13px;border-radius:6px}
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) label{font-size:12px;gap:4px;min-width:0}
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;padding:0}
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) :is(p,h3){margin:6px 0;line-height:1.4}
 :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) h3{font-size:15px}
 #stockView .ops-subtabs{padding:8px 12px;gap:6px;border-bottom:1px solid var(--compact-line)}
 #stockView .ops-form{max-width:none;padding:12px;gap:10px;grid-template-columns:minmax(0,1fr)}
 #stockView .ops-form>*{min-width:0}
 #stockView .form-grid,#stockView #directReceive>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
 #stockView :is(#poCreate,#directReceive) .supplier-picker{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
 #stockView :is(#poCreate,#directReceive) .supplier-picker>label:first-child{grid-column:auto}
 #stockView .supplier-search-results{grid-column:1/-1}
 #stockView #poCreate>.form-grid>label:last-child{grid-column:span 2}
 #stockView .receive-po-group{padding:10px;gap:8px;border-radius:7px;background:#f8fafc}
 #stockView #poReceive{grid-template-columns:1fr 1fr;align-items:start}
 #stockView #poReceive>h3,#stockView #poReceive>.receive-po-group:nth-of-type(3),#stockView #poReceive>.operation-form-actions,#stockView #poReceive>.ops-result{grid-column:1/-1}
 #stockView #poReceive .form-grid{grid-template-columns:1fr 1fr}
 #stockView .receive-po-tools{gap:6px}
 #stockView #receiveLines .ops-line{grid-template-columns:minmax(0,1fr) 120px 100px;gap:10px;padding:7px 0}
 #stockView #receiveLines .check-label{min-height:34px}
 #stockView #receiveLines tr.ops-line{display:table-row}
 #stockView .operation-form-actions{padding-top:8px;border-top:1px solid var(--compact-line);justify-content:flex-end;gap:6px}
 #stockView .po-line-grid{max-height:48dvh;overflow:auto}
 #suiteBody{padding:0 12px 12px;min-width:0}
 #suiteBody .suite-card{padding:10px;margin:10px 0;border-radius:7px;min-width:0}
 #suiteBody .suite-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
 #suiteBody :is(.suite-toolbar,.suite-actions){gap:6px;margin:8px 0}
 #suiteBody .suite-toolbar h3{margin-right:auto}
 #suiteBody .suite-toolbar select{width:auto;flex:0 1 240px;min-width:0}
 #suiteBody .suite-toolbar input{width:auto;flex:1 1 180px;min-width:0}
 #suiteBody .requisition-transfer-tools{grid-column:1/-1;display:flex;align-items:end;gap:8px;flex-wrap:wrap;background:#f2f8fb;padding:10px;border-radius:6px}
 #suiteBody .requisition-transfer-tools label{flex:1 1 240px}
 #suiteBody .requisition-transfer-tools p{flex:1 1 100%;margin:0}
 #suiteBody .requisition-transfer-tools p:empty{display:none}
 #suiteBody #requisitionForm{display:grid;gap:8px}
 #suiteBody #requisitionForm>.suite-actions{justify-content:flex-end;border-top:1px solid var(--compact-line);padding-top:8px;margin-bottom:0}
 #suiteBody textarea{min-height:36px;height:36px;resize:vertical}
 #suiteBody :is(#transferForm,#bulkTransferForm){display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,2fr);gap:8px 12px}
 #suiteBody :is(#transferForm,#bulkTransferForm)>:is(#suiteTransferLines,.suite-actions,.ops-result,p,.check-label){grid-column:1/-1}
 #suiteBody #suiteTransferPicker{align-self:end;justify-self:end}
 #suiteBody :is(#transferForm,#bulkTransferForm)>*{min-width:0}
 #suiteBody :is(#transferForm,#bulkTransferForm)>.suite-actions{justify-content:flex-end;border-top:1px solid var(--compact-line);padding-top:8px}
 #suiteBody :is(#transferForm,#bulkTransferForm)>label:has(textarea){grid-column:1/-1}
 .compact-line-grid,.suite-table{max-width:100%;overflow:auto}
 :is(#stockView,#suiteBody) .compact-line-grid{border:1px solid var(--compact-line);border-radius:7px;max-height:45dvh}
 :is(#stockView,#suiteBody) .compact-line-grid table{min-width:640px}
 :is(#stockView,#suiteBody,#salesReportsView) :is(th,td){padding:7px 9px;vertical-align:middle;font-size:12px}
 :is(#stockView,#suiteBody,#salesReportsView) thead th{position:sticky;top:0;z-index:1}
 :is(#stockView,#suiteBody) .compact-line-grid tbody tr:nth-child(even){background:#f5f9fc}
 .compact-line-grid td input[type=number]{width:100px;text-align:right;font-variant-numeric:tabular-nums}
 .compact-line-grid td small{display:block;color:#64748b;margin-top:3px}
 .compact-line-grid .check-label{white-space:nowrap}
 #suiteBody #customerReportFilter .suite-actions{justify-content:flex-end}
 #suiteBody #customerReportOutput .suite-table{max-height:58dvh}
 #salesReportsView .report-filters{grid-template-columns:repeat(6,minmax(0,1fr));padding:10px 12px;gap:8px 10px}
 #salesReportsView .report-filter-actions{gap:6px;grid-column:1/-1;justify-content:flex-end}
 #salesReportsView .report-kpis{gap:8px;padding:0 12px 10px}
 #salesReportsView .report-kpi{padding:9px 12px;border-radius:7px;min-height:0}
 #salesReportsView .report-kpi strong{font-size:20px}
 #salesReportsView :is(.report-status,.report-footnote){margin:8px 12px}
 #salesReportsView .report-table-wrap{padding:0 12px;max-height:58dvh}
 #salesReportsView .report-export-actions{padding:0 12px;margin:8px 0}
 .stocktake-shell{max-width:1400px;padding:12px}
 .stocktake-shell .section-header{padding:8px 0}
 .stocktake-shell .suite-card{padding:12px;margin:10px 0}
 .stocktake-shell h2{font-size:18px;margin:0 0 10px}
 .stocktake-shell #prepareCount>button{justify-self:end;width:auto}
 .stocktake-shell #countSessions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
 .stocktake-shell #prepareCount{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
 .stocktake-shell #prepareCount>:is(p,.check-label,button){grid-column:1/-1}
 .stocktake-shell .suite-actions{gap:6px;margin:8px 0}
 .stocktake-shell .count-selected{padding:10px}
 :is(#stockView,#suiteBody,.stocktake-shell) :is(.ops-result,.suite-status):empty{display:none}
 @media(max-width:1000px){#salesReportsView .report-filters{grid-template-columns:repeat(4,minmax(0,1fr))}#suiteBody .suite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:650px){
  :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) :is(input:not([type=checkbox]):not([type=radio]),select){font-size:16px;min-height:40px}
  :is(#stockView,#inventorySuiteView,#salesReportsView,.stocktake-shell) :is(button,a.primary){min-height:40px}
  #stockView .form-grid,#stockView #directReceive>.form-grid,#stockView #poReceive,#suiteBody :is(#transferForm,#bulkTransferForm){grid-template-columns:minmax(0,1fr)}
  #stockView :is(#poCreate,#directReceive) .supplier-picker,#stockView #poCreate>.form-grid>label:last-child{grid-column:1/-1}
  #stockView :is(#poCreate,#directReceive) .supplier-picker{grid-template-columns:1fr}
  #stockView #receiveLines .ops-line{grid-template-columns:1fr 110px}
  #stockView #receiveLines .ops-line>div{grid-column:1/-1}
  #suiteBody #suiteTransferPicker{justify-self:start}
  .stocktake-shell #prepareCount>button{width:100%}
  #salesReportsView .report-filters,#suiteBody .suite-grid,.stocktake-shell #prepareCount{grid-template-columns:repeat(2,minmax(0,1fr))}
  #stockView .operation-form-actions,#suiteBody .suite-actions{flex-wrap:wrap}
  #suiteBody{padding:0 8px 8px}
  .compact-line-grid td input[type=number]{width:90px}
 }
}

@media screen{
 #quotesView{min-width:0;overflow:hidden}
 #quotesView>.section-header{padding:10px 12px;align-items:center;gap:10px;background:#f7fbfd}
 #quotesView>.section-header h2{font-size:20px;margin:0}
 #quotesView>.section-header .eyebrow{font-size:10px;margin:0 0 2px}
 #quotesView>.section-header .muted{font-size:12px;margin:3px 0 0}
 #quotesView button{min-height:32px;padding:6px 11px;font-size:12px;border-radius:6px}
 #quotesView .quotation-filters{margin:0;padding:10px 12px;gap:8px;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(120px,1fr)) auto;border-bottom:1px solid #d7e3ed;background:#f2f8fc}
 #quotesView .quotation-filters label{font-size:11px;gap:4px;min-width:0}
 #quotesView .quotation-filters :is(input,select){height:34px;min-height:34px;padding:6px 9px;font-size:13px;width:100%;min-width:0}
 #quotesView .quotation-filter-actions{gap:5px}
 #quotesView .table-wrap{padding:8px 12px 0;max-height:60dvh;overflow:auto}
 #quotesView table{min-width:800px;font-size:13px}
 #quotesView :is(th,td){padding:7px 9px;vertical-align:middle}
 #quotesView th{position:sticky;top:0;z-index:1;font-size:11px;white-space:nowrap}
 #quotesView td:nth-child(3){font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
 #quotesView :is(th,td):nth-child(5){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
 #quotesView td:last-child{white-space:nowrap}
 #quotesView td:last-child button{min-height:30px;padding:5px 10px}
 #quotesView tbody tr:nth-child(even){background:#f5f9fc}
 #quotesView tbody tr:hover{background:#e9f4fa}
 #quotesView .quotation-status{display:inline-block;padding:3px 8px;border-radius:5px;background:#e8eef4;color:#36566d;font-size:11px;font-weight:700;white-space:nowrap}
 #quotesView .quotation-status[data-status=open]{background:#dcf5e8;color:#14613c}
 #quotesView .quotation-status[data-status=closed]{background:#e4edf5;color:#345771}
 #quotesView .quotation-status[data-status=cancelled]{background:#fce7e9;color:#a52b3e}
 #quotesView .quotation-invoice{font-size:10px;margin-top:3px}
 #quotesView .quotation-paging{margin:0;padding:8px 12px;gap:6px;border-top:1px solid #d7e3ed}
 #quotesView .quotation-paging p{font-size:11px;margin:0 auto 0 0}
 #quotesView #quotesEmpty{padding:20px 12px;font-size:13px}
 @media(max-width:1100px){#quotesView .quotation-filters{grid-template-columns:minmax(160px,2fr) repeat(3,minmax(0,1fr))}#quotesView .quotation-filter-actions{grid-column:1/-1;justify-content:flex-end}}
 @media(max-width:650px){#quotesView .quotation-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}#quotesView .quotation-filters label:first-child,#quotesView .quotation-filters label:nth-child(4){grid-column:1/-1}#quotesView .quotation-filters :is(input,select){font-size:16px;height:40px;min-height:40px}#quotesView button,#quotesView td:last-child button{min-height:38px}#quotesView .table-wrap{padding:8px 10px 0}#quotesView .quotation-paging{padding:8px 10px}#quotesView>.section-header h2{font-size:18px}}
}

/* Compact the title panels without reducing the form content. */
@media screen{
 :is(#serviceSalesView,#quotesView)>.section-header,#uxProductsView>.workspace-page-heading{padding:6px 12px;gap:10px;align-items:center;min-height:44px;box-sizing:border-box}
 #uxProductsView>.workspace-page-heading{margin-bottom:10px}
 :is(#serviceSalesView,#quotesView)>.section-header h2,#uxProductsView>.workspace-page-heading h2{font-size:18px;line-height:1.2;margin:0;letter-spacing:0}
 #quotesView>.section-header .eyebrow,#uxProductsView>.workspace-page-heading .workspace-eyebrow{display:none}
 #quotesView>.section-header .muted,#uxProductsView>.workspace-page-heading p:not(.workspace-eyebrow){font-size:11px;line-height:1.3;margin:3px 0 0}
 :is(#serviceSalesView,#quotesView)>.section-header>button,#uxProductsView>.workspace-page-heading>button{min-height:32px;padding:6px 12px;font-size:12px;flex-shrink:0}
 @media(max-width:600px){
  :is(#serviceSalesView,#quotesView)>.section-header>button,#uxProductsView>.workspace-page-heading>button{min-height:36px}
  #uxProductsView>.workspace-page-heading>button{min-width:0}
 }
}

@media screen and (max-width:600px){#quotesView>.section-header .muted,#uxProductsView>.workspace-page-heading p:not(.workspace-eyebrow){display:none}}
