/* Available content width, not monitor resolution, determines dashboard density. */
.module-workspace-root{container-type:inline-size;min-width:0;gap:12px}
.module-workspace-root .module-dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px}
.module-workspace-root .module-hero-stage{display:contents}
.module-workspace-root .module-hero-card{grid-column:1/-1;display:block;padding:0;background:none;border:0;box-shadow:none;overflow:visible}
.module-workspace-root .module-hero-card::after{display:none}
.module-workspace-root .module-stat-stack{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.module-workspace-root .module-stat-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:16px;border-radius:12px;box-shadow:none;min-width:0;align-content:start}
.module-workspace-root .module-stat-card>div{min-width:0}
.module-workspace-root .module-stat-icon{width:28px;height:28px;border-radius:8px}
.module-workspace-root .module-stat-card strong{font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0}
.module-workspace-root .module-stat-card small{font-size:13px;color:#435777;line-height:1.4}
.module-workspace-root .module-stat-card em{font-size:12px;line-height:1.4}
.module-workspace-root .module-card-panel{min-width:0;padding:16px;border-radius:14px;box-shadow:none}
.module-workspace-root .module-action-grid,.module-workspace-root .module-report-grid,.module-workspace-root .module-side-rail .module-report-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.module-workspace-root .module-action-card{padding:12px;gap:10px;border-radius:10px;min-width:0;box-shadow:none}
.module-workspace-root .module-action-card>div{min-width:0}
.module-workspace-root .module-action-card strong{font-size:14px;line-height:1.4}
.module-workspace-root .module-action-card p{font-size:12px;line-height:1.45;margin:4px 0 0;color:#536582}
.module-workspace-root .module-action-icon,.module-workspace-root .module-activity-icon{width:30px;height:30px;border-radius:8px}
.module-workspace-root .module-section-head{align-items:start;flex-wrap:wrap;margin-bottom:12px}
.module-workspace-root .module-section-head small{max-width:42ch;line-height:1.4}
.module-workspace-root .module-progress-layout{grid-template-columns:minmax(100px,.45fr) minmax(0,1fr);gap:12px}
.module-workspace-root .module-breakdown-row{grid-template-columns:minmax(0,1fr);padding:10px 12px;gap:6px;border-radius:10px}
.module-workspace-root .module-breakdown-row b{font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.module-workspace-root .module-report-tile{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border-radius:10px;box-shadow:none}
.module-workspace-root .module-activity-row{min-width:0;padding:12px;border-radius:10px}
.module-workspace-root .module-activity-row>*{min-width:0;overflow-wrap:anywhere}
.module-workspace-root .page-head{padding:14px 16px;margin-bottom:0}
#workspaceView .module-workspace-root>.page-head{margin:0!important}
.module-workspace-root .page-head p{max-width:75ch;font-size:13px;line-height:1.45}
.module-workspace-root .process-dashboard-toggle{margin-bottom:16px}
/* One compact period summary; dates remain informational and branch-formatted. */
.workspace-period-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;min-width:0;margin:0}
.module-workspace-root .workspace-period-toolbar .process-dashboard-toggle{margin:0;max-width:100%}
.workspace-selected-period{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;max-width:100%;margin:0;color:#334968}
.workspace-period-toolbar .workspace-selected-period{margin-left:auto}
.workspace-period-heading{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%}
.workspace-period-heading strong{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.workspace-period-heading .icon{width:18px;height:18px;flex:0 0 18px}
.workspace-period-heading .workspace-period-info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-basis:16px;border:1.5px solid currentColor;border-radius:50%;color:#64748b;font:700 11px/1 Georgia,serif}
.workspace-selected-period small{font-size:11px;line-height:1.4;color:#637492;text-align:right}
.analytics-filter-head .workspace-selected-period{flex:0 1 auto;margin-left:auto}
@media(max-width:650px){
 .workspace-period-toolbar{align-items:flex-start;gap:10px}
 .workspace-period-toolbar .workspace-selected-period,.analytics-filter-head .workspace-selected-period{margin-left:0;align-items:flex-start}
 .workspace-period-heading{justify-content:flex-start}
 .workspace-selected-period small{text-align:left}
 .workspace-period-toolbar .process-dashboard-toggle button{white-space:normal}
}
.module-workspace-root .inventory-dashboard-grid .module-side-rail{display:contents}
.module-workspace-root .inventory-dashboard-grid .module-hero-card{order:0}
.module-workspace-root .inventory-dashboard-grid .module-action-panel{order:1;grid-column:1/-1}
.module-workspace-root .inventory-dashboard-grid .module-hero-stage>.module-card-panel{order:2}
.module-workspace-root .inventory-dashboard-grid .module-side-rail>.module-card-panel:not(.module-action-panel){order:3;grid-column:1/-1}
@container (max-width:1000px){
 .module-workspace-root .module-dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .module-workspace-root .module-side-rail{display:contents}
 .module-workspace-root .module-action-panel{order:1}
 .module-workspace-root .module-hero-card{order:0}
 .module-workspace-root .module-dashboard-grid>.module-card-panel,.module-workspace-root .module-side-rail>.module-card-panel{order:2}
 .module-workspace-root .module-side-rail>.module-action-panel{order:1}
}
@container (max-width:540px){
 .module-workspace-root .module-stat-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
 .module-workspace-root .module-stat-card{grid-template-columns:minmax(0,1fr);padding:12px}
 .module-workspace-root .module-stat-icon{display:none}
 .module-workspace-root .module-stat-card strong{font-size:12px}
 .module-workspace-root .module-progress-layout{grid-template-columns:minmax(0,1fr)}
 .module-workspace-root .module-action-grid,.module-workspace-root .module-report-grid{grid-template-columns:minmax(0,1fr)}
 .module-workspace-root .page-head{padding:12px}
}
.invoice-workflow-footer-status{margin:12px 4px 20px;color:#64748b;font-size:12px;line-height:1.5;font-weight:400}
/* Transaction headers: no decorative squares competing with the actual icon. */
:is(#page-sale,#page-purchase) .invoice-card .panel-title::before{display:none!important;content:none!important}
:is(#page-sale,#page-purchase) .invoice-card--products .panel-title{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap}
:is(#page-sale,#page-purchase) .invoice-card--products .panel-title h2{display:flex;align-items:center;gap:8px;margin:0;text-align:left;flex:0 1 auto}
:is(#page-sale,#page-purchase) .invoice-card--products .panel-title small{margin-left:auto}
:is(#page-sale,#page-purchase) .invoice-shell-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
:is(#page-sale,#page-purchase) .invoice-hub-actions{margin-left:auto;justify-content:flex-end!important;display:flex;flex-wrap:wrap;max-width:100%}
@media(max-width:700px){:is(#page-sale,#page-purchase) .invoice-card--products .panel-title small{display:none}}
/* Data values use the compact grid scale; headings retain their hierarchy. */
@media screen{
 :is(.metric-card,.history-metrics-compact,.report-summary,.stat-card,.summary-card) :is(strong,b),
 .reports-v2-analysis-row strong,.module-progress-meter strong{font-family:inherit!important;font-size:12px!important;line-height:1.4!important;font-weight:700!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .reports-v2-analysis-row span{font-size:12px!important;font-weight:600!important}
 .report-filter-grid.reports-v2-toolbar,.vc-report-filters{display:flex!important;flex-wrap:wrap!important;align-items:flex-end;gap:12px;max-width:100%;box-sizing:border-box}
 .report-filter-grid.reports-v2-toolbar>label,.vc-report-filters>label{flex:1 1 160px;min-width:0;max-width:100%}
 .report-filter-grid.reports-v2-toolbar>button,.vc-report-filters>button{flex:0 1 auto;max-width:100%;min-width:0;white-space:normal;height:auto;min-height:38px;box-sizing:border-box}
 .report-filter-grid.reports-v2-toolbar .input,.vc-report-filters .input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 #page-reports-v2 .reports-v2-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
 .reports-v2-analysis-row{min-width:0;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 .reports-v2-analysis-row>*{min-width:0;overflow-wrap:anywhere}
}

/* Process workspaces: fit the available panel, keep every stage title readable.
   These late scoped rules also override the earlier fixed-width !important cards. */
body :is(.process-chart-shell,.manufacturing-process-shell){
  container:vendro-process / inline-size;min-width:0;max-width:100%;
  padding:16px!important;gap:16px;border-radius:14px;border:1px solid #dfe7f3;
  background:#fff;box-shadow:none;overflow:visible;
}
body :is(.process-chart-head,.manufacturing-process-head){gap:4px;text-align:left;justify-items:start}
body :is(.process-chart-head,.manufacturing-process-head) h2{font-size:16px!important;line-height:1.4;font-weight:700;margin:0}
body :is(.process-chart-head,.manufacturing-process-head) p{display:block;font-size:12px;line-height:1.5;margin:0;color:#60708a}
body :is(.process-chart-head,.manufacturing-process-head) p span{display:none}
body :is(.process-chart-topline,.manufacturing-process-topline){
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;overflow:visible;
}
body :is(.process-chart-pill,.manufacturing-process-pill){
  width:auto;min-width:0;min-height:42px;grid-template-columns:24px minmax(0,1fr);
  gap:8px;padding:8px 10px;border-radius:8px;border:1px solid #dfe7f3;
  box-shadow:none;background:#f8fafd;font-size:12px;font-weight:600;line-height:1.4;text-align:left;
}
body :is(.process-chart-pill,.manufacturing-process-pill) .icon{width:24px;height:24px;padding:4px;border-radius:6px}
body .process-chart-pill strong{font-size:12px;line-height:1.4;font-weight:600;white-space:normal;overflow-wrap:anywhere}
body :is(.process-chart-pill,.manufacturing-process-pill) small{grid-column:2;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;font-size:11px;margin:0;line-height:1.4}
body :is(.process-chart-scroller,.manufacturing-process-board){min-width:0;max-width:100%;overflow:visible;padding:0;background:transparent;border-radius:0}
body :is(.process-chart-flow,.manufacturing-process-flow){
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;width:100%;padding:0;gap:12px!important;align-items:stretch;
}
body :is(.process-chart-flow,.manufacturing-process-flow)>:is(.process-chart-arrow,.manufacturing-process-arrow){display:none}
body :is(.process-chart-stage,.manufacturing-process-card){
  width:auto!important;min-width:0!important;max-width:100%;padding:10px!important;
  display:flex;flex-direction:column;gap:8px;border:1px solid #dfe7f3;border-top:3px solid var(--stage-accent,#2563eb);
  border-radius:10px;background:#fff;box-shadow:none;overflow:visible;
}
body :is(.process-chart-stage-head,.manufacturing-process-main){
  display:grid;grid-template-columns:24px minmax(0,1fr);min-width:0;min-height:50px;height:auto;
  gap:8px;padding:4px 0 8px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:transparent;text-align:left;
}
body :is(.process-chart-stage-icon,.manufacturing-process-icon-card){display:none}
body :is(.process-chart-stage-head strong,.manufacturing-process-card-title){
  display:block;-webkit-line-clamp:unset;overflow:visible;text-overflow:clip;white-space:normal;
  font-size:13px!important;line-height:1.45;font-weight:700;overflow-wrap:anywhere;
}
body :is(.process-chart-number,.manufacturing-process-number){width:24px;height:24px;font-size:12px;line-height:1;border-radius:7px;box-shadow:none}
body :is(.process-chart-substeps,.manufacturing-process-substeps){display:grid;gap:6px}
body :is(.process-chart-substep,.manufacturing-process-substep){
  min-width:0;min-height:36px!important;height:auto;grid-template-columns:18px minmax(0,1fr);
  gap:7px;padding:7px 8px;border:1px solid #e4eaf3;border-radius:7px;background:#fff;
  font-size:12px!important;font-weight:500;line-height:1.4;white-space:normal;text-align:left;
}
body :is(.process-chart-substep,.manufacturing-process-substep)>span{min-width:0;overflow-wrap:anywhere}
body :is(.process-chart-substep,.manufacturing-process-substep) .icon{width:18px;height:18px}
body :is(.process-chart-counts,.manufacturing-process-metrics){display:grid;gap:5px;margin-top:auto;padding-top:2px}
body :is(.process-chart-count,.manufacturing-process-count){
  min-width:0;min-height:32px!important;height:auto;grid-template-columns:16px minmax(0,1fr) auto;
  gap:6px;padding:6px 7px;border-radius:6px;font-size:11px!important;line-height:1.4;white-space:normal;text-align:left;
}
body :is(.process-chart-count,.manufacturing-process-count)>span{min-width:0;overflow-wrap:anywhere}
body :is(.process-chart-count,.manufacturing-process-count) strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
body :is(.process-chart-count-icon,.manufacturing-process-count-icon){width:16px;height:16px;padding:0;background:transparent}
body :is(.process-chart-exception-flow,.manufacturing-exception-flow){
  gap:8px;padding:12px;border:1px solid #f2dcdc;border-radius:10px;background:#fffafa;justify-content:flex-start;
}
body :is(.process-chart-exception-label,.manufacturing-exception-label){flex-basis:100%;text-align:left;font-size:12px;line-height:1.4;font-weight:700}
body :is(.process-chart-exception-card,.manufacturing-exception-card){
  flex:1 1 180px;min-width:0;min-height:36px;height:auto;padding:8px 10px;border:1px solid #f2dcdc;
  border-radius:7px;font-size:12px;line-height:1.4;font-weight:600;white-space:normal;text-align:left;justify-content:flex-start;
}
body :is(.process-chart-exception-card,.manufacturing-exception-card) .icon{width:18px;height:18px;flex-shrink:0}
body :is(.process-chart-benefits,.manufacturing-benefits-strip){grid-template-columns:repeat(3,minmax(0,1fr));border-radius:10px}
body :is(.process-chart-benefits,.manufacturing-benefits-strip) article{min-width:0;grid-template-columns:22px minmax(0,1fr);gap:8px;padding:10px;border-bottom:1px solid #edf1f7}
body :is(.process-chart-benefits,.manufacturing-benefits-strip) .icon{width:22px;height:22px}
body :is(.process-chart-benefits,.manufacturing-benefits-strip) strong{font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
body :is(.process-chart-benefits,.manufacturing-benefits-strip) small{font-size:11px;line-height:1.45;overflow-wrap:anywhere}
body .manufacturing-process-legend{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px}
body :is(#salesWorkspaceHost,#manufacturingWorkspaceHost):has(:is(.sales-process-chart,.manufacturing-process-flow)){gap:12px}
body :is(#salesWorkspaceHost,#manufacturingWorkspaceHost):has(:is(.sales-process-chart,.manufacturing-process-flow)) .page-head{padding:14px 16px;margin:0;border-radius:12px;box-shadow:none;gap:12px;align-items:center}
body :is(#salesWorkspaceHost,#manufacturingWorkspaceHost):has(:is(.sales-process-chart,.manufacturing-process-flow)) .page-head h1{font-size:20px!important;line-height:1.4;font-weight:700;margin:0 0 3px}
body :is(#salesWorkspaceHost,#manufacturingWorkspaceHost):has(:is(.sales-process-chart,.manufacturing-process-flow)) .page-head p{font-size:12px;line-height:1.5;margin:0}
body .process-dashboard-toggle{margin:0;padding:3px;border-radius:9px;box-shadow:none;gap:3px}
body .process-dashboard-toggle button{min-height:34px;padding:6px 12px;font-size:12px;line-height:1.4;font-weight:600;border-radius:6px;box-shadow:none}
@container vendro-process (min-width:1450px){
  body :is(.process-chart-flow,.manufacturing-process-flow){grid-template-columns:repeat(7,minmax(0,1fr))}
  body :is(.process-chart-topline,.manufacturing-process-topline){grid-template-columns:repeat(7,minmax(0,1fr))}
}
@container vendro-process (max-width:1000px){
  body :is(.process-chart-flow,.manufacturing-process-flow){grid-template-columns:repeat(3,minmax(0,1fr))}
  body :is(.process-chart-topline,.manufacturing-process-topline){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container vendro-process (max-width:720px){
  body :is(.process-chart-flow,.manufacturing-process-flow),body :is(.process-chart-topline,.manufacturing-process-topline),body :is(.process-chart-benefits,.manufacturing-benefits-strip){grid-template-columns:repeat(2,minmax(0,1fr))}
  body :is(.process-chart-exception-arrow,.manufacturing-exception-arrow){display:none}
}
@container vendro-process (max-width:460px){
  body :is(.process-chart-flow,.manufacturing-process-flow),body :is(.process-chart-benefits,.manufacturing-benefits-strip){grid-template-columns:minmax(0,1fr)}
}
