.tab-content:has(>.wcr-report.active) { padding:8px; }
.wcr-report { height:100%; min-height:0; overflow:hidden; color:#252b34; }
.wcr-shell { height:100%; display:flex; flex-direction:column; min-width:0; min-height:0; }
.wcr-shell>.quotation-toolbar { flex:none; margin:0; }
.wcr-navigation { min-width:0; margin-left:auto; display:flex; align-items:center; gap:8px; font-size:13px; }
.wcr-navigation [hidden],.wcr-filters [hidden] { display:none; }
.wcr-context-group { min-width:0; text-align:right; }
.wcr-context-group h2 { margin:0 0 2px; font-size:14px; font-weight:650; }
.wcr-context { display:block; max-width:50vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#505965; }
.wcr-scroll { flex:1 1 0; min-width:0; min-height:0; height:0; overflow:auto; background:#fff; }
.wcr-table { width:100%; min-width:1080px; border-spacing:0; font-size:13px; }
.wcr-table.wcr-detail-table { min-width:760px; }
.wcr-table :is(th,td) { padding:9px 10px; border-right:1px solid #e0e3e8; border-bottom:1px solid #e5e7eb; }
.wcr-table :is(th,td):first-child { border-left:1px solid #e0e3e8; }
.wcr-table thead { position:sticky; top:0; z-index:2; }
.wcr-table thead th { background:#f5f5f5; text-align:center; color:#454b53; white-space:nowrap; }
.wcr-table tfoot { position:sticky; bottom:0; z-index:1; background:#eef1f6; font-weight:650; }
.wcr-table tfoot th { text-align:left; background:#eef1f6; }
.wcr-table td.wcr-number { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.wcr-negative,.wcr-error { color:#a62933; }
.wcr-link { border:0; background:none; padding:2px 0; color:#245986; text-align:left; cursor:pointer; font:inherit; }
.wcr-link:hover:not(:disabled),.wcr-link:focus-visible { text-decoration:underline; text-underline-offset:2px; }
.wcr-link:disabled { opacity:.55; cursor:wait; }
.wcr-table tbody tr:hover { background:#f7f9fc; }
.wcr-subtotal { background:#f4f6f9; font-weight:650; }
.wcr-empty { text-align:center; color:#505965; }
.wcr-footer { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; min-height:36px; font-size:13px; }
.wcr-footer .wcr-status { margin:0; }
.wcr-pager { grid-column:2; display:flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.wcr-page-size { grid-column:3; justify-self:end; color:#505965; white-space:nowrap; }
.wcr-dialog,.wcr-customer-dialog { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(520px,calc(100vw - 32px)); max-height:85vh; overflow:auto; border:1px solid #e0e0e0; border-radius:10px; padding:20px; background:white; color:#252b34; box-shadow:0 12px 36px #0003; }
.wcr-dialog::backdrop,.wcr-customer-dialog::backdrop { background:#0006; }
.wcr-shell dialog h3 { margin:0 0 14px; font-size:17px; }
.wcr-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.wcr-field { display:grid; gap:5px; min-width:0; font-size:13px; }
.wcr-shell dialog :is(input:not([type=checkbox]),select) { box-sizing:border-box; min-width:0; width:100%; min-height:34px; padding:5px 7px; border:1px solid #cbd3de; border-radius:4px; background:white; color:inherit; font:inherit; }
.wcr-customer-control { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:end; gap:6px; }
.wcr-check { grid-column:1/-1; display:flex; align-items:center; gap:5px; min-height:28px; font-size:13px; }
.wcr-dialog-actions,.wcr-search { display:flex; align-items:center; gap:8px; }
.wcr-dialog-actions { justify-content:flex-end; margin-top:14px; }
.wcr-dialog-actions>button:first-child { margin-right:auto; }
.wcr-search input { flex:1; }
.wcr-status { margin:7px 0; color:#505965; }
.wcr-status.wcr-error { color:#a62933; }
.wcr-customer-results { display:grid; gap:4px; max-height:40vh; overflow:auto; margin:8px 0; }
.wcr-customer-choice { text-align:left; padding:8px; border:1px solid #e0e3e8; border-radius:4px; color:inherit; background:white; cursor:pointer; }
.wcr-customer-choice:hover { background:#f3f5f8; }
.wcr-customer-choice small { display:block; color:#505965; margin-top:3px; }
@media(max-width:600px) {
  .wcr-navigation { flex-basis:100%; margin:4px 0 0; }
  .wcr-context-group { text-align:left; }
  .wcr-context { max-width:calc(100vw - 38px); }
  .wcr-navigation:has(>button:not([hidden])) .wcr-context { max-width:calc(100vw - 132px); }
  .wcr-footer { grid-template-columns:1fr auto; gap:2px 8px; }
  .wcr-footer .wcr-status { grid-row:2; grid-column:1/-1; }
  .wcr-pager { grid-column:1; justify-content:flex-start; }
  .wcr-page-size { grid-column:2; grid-row:1; }
  .wcr-dialog,.wcr-customer-dialog { padding:16px; }
}
.wcr-table { table-layout:fixed; }
.wcr-table :is(th,td) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wcr-table th.wcr-resizable { position:relative; padding-right:14px; }
.wcr-link { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wcr-openable { cursor:pointer; }
.wcr-resizer { position:absolute; z-index:1; inset:0 0 0 auto; width:8px; cursor:col-resize; touch-action:none; }
.wcr-resizer:hover,.wcr-resizer:focus-visible { background:#28628c28; outline:none; }
.wcr-resizing { user-select:none; cursor:col-resize; }

.wcr-shell>.quotation-toolbar>[hidden] { display:none; }
.wcr-report-options { flex:none; display:flex; align-items:center; gap:6px; }
.wcr-report-options select { min-height:30px; max-width:100%; }
@media (max-width:768px) {
  .wcr-report-options { margin-left:auto; }
  .business-entry-shell>.business-entry-grid[data-report-entries]:has(>button:nth-child(2)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
