/* Shared insets: one body wrapper owns padding; tables scroll inside it. */
:root{--card-inset:20px;--related-gap:12px;--section-gap:24px;--muted:#52657b}
.card{min-width:0;margin-bottom:var(--section-gap)}
.card-title{padding:20px var(--card-inset) 12px;flex-wrap:wrap}
.card-body{padding:0 var(--card-inset) 20px;display:flow-root}
.card-body>p,.card-body>strong,.card-body>.btn,.card-body>details{margin-bottom:var(--related-gap)}
.card-body>:last-child{margin-bottom:0}
.card-body>.v3-three{margin-top:0}
.card-body .footnote{padding:12px 0}
.card-body details summary{padding:12px 0}
.card-body .chart-wrap{padding:0}
.card>.table-wrap .data-table th:first-child,.card>.table-wrap .data-table td:first-child,.card>details .data-table th:first-child,.card>details .data-table td:first-child{padding-left:var(--card-inset)}
.card>.table-wrap .data-table th:last-child,.card>.table-wrap .data-table td:last-child,.card>details .data-table th:last-child,.card>details .data-table td:last-child{padding-right:var(--card-inset)}
.card-pad,.kpi,.health-row,.toolbar,.filters-row,.pagination,.bulk-note{padding-left:var(--card-inset);padding-right:var(--card-inset)}
.nav-label,.data-table th,.footer-status,.section-index,.global-search input::placeholder{color:#52657b}
.pill{color:#52657b}.pill.hunt{color:#875015}.pill.missing{color:#735100}
.btn.primary{background:#b52b25}.btn{white-space:normal;text-align:center}
.v3-three,.kpi-grid,.two-cols,.three-cols{gap:var(--related-gap);margin-top:var(--section-gap);margin-bottom:var(--section-gap);min-width:0}
.v3-three .card,.two-cols>.card,.three-cols>.card,.kpi-grid>.card{margin-bottom:0}
.head-controls,.card-actions,.v4-chips,.pipeline-badges{flex-wrap:wrap;gap:8px;min-width:0}
.head-controls{margin-bottom:12px}
.scope-label{padding:12px 0;color:#52657b}
.supporting-details{margin:24px 0;min-width:0}
.supporting-details>summary{padding:12px 16px;background:#eaf0f6;border:1px solid #dce4ed;border-radius:8px;cursor:pointer;color:#24364d;font-weight:600}
.supporting-details[open]>summary{margin-bottom:12px}
.dashboard-tabs .tab{white-space:normal}
.chart-island{min-width:0;width:100%}
.react-chart{width:100%;min-width:0}
.chart-wrap .recharts-surface{height:100%}
.chart-wrap .recharts-default-legend svg{width:14px;height:14px;display:inline-block}
.recharts-legend-item-text{color:#52657b!important}
.chart-tooltip{background:white;border:1px solid #bdcbd9;border-radius:8px;padding:12px;color:#24364d;box-shadow:0 4px 14px #122b5720;max-width:260px}
.chart-tooltip p{margin:6px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.chart-loading,.chart-empty{padding:20px;color:#52657b}
.toast:has(a){pointer-events:auto}.toast a{color:white;text-decoration:underline;font-weight:600}
.analytics-account-choice{display:flex;flex-direction:column;gap:8px;margin:16px 0;max-width:100%}
.analytics-account-choice select{padding:10px;max-width:100%;background:white;color:#24364d;border:1px solid #bdcbd9;border-radius:6px;font:inherit}
.pipeline-stage-picker{display:none}
.pipeline-badges{display:flex;margin:12px 0}.pipeline-badges .pill{white-space:normal}
.pipeline-exact-stage{font-weight:600;margin:8px 0}
.v3-board{max-width:100%;min-width:0;grid-template-columns:repeat(6,minmax(180px,1fr))}
.v3-card .btn{margin:8px 8px 0 0}
.v3-column>p{margin:8px 0 12px}
.page-head>div,.right-shell,main,.two-cols>*,.three-cols>*{min-width:0}
#main>label{display:block;max-width:100%;min-width:0}
#main>label select{max-width:100%;min-width:0}
.table-wrap{overscroll-behavior-x:contain}
.chart-wrap{padding-left:var(--card-inset);padding-right:var(--card-inset)}
.card details summary{padding-left:var(--card-inset);padding-right:var(--card-inset)}
.card-body details summary{padding-left:0;padding-right:0}
.card-body .data-table th,.card-body .data-table td{padding-left:12px;padding-right:12px}
.card-body .data-table th:first-child,.card-body .data-table td:first-child{padding-left:0}
.card-body .data-table th:last-child,.card-body .data-table td:last-child{padding-right:0}
.modal-head,.modal-body,.modal-footer{padding-left:var(--card-inset);padding-right:var(--card-inset)}
.modal-body>.toolbar,.modal-body>.filters-row,.modal-body>.pagination{padding-left:0;padding-right:0}
.modal-body>.table-wrap .data-table th:first-child,.modal-body>.table-wrap .data-table td:first-child{padding-left:0}
.modal-body>.table-wrap .data-table th:last-child,.modal-body>.table-wrap .data-table td:last-child{padding-right:0}
@media(max-width:800px){.two-cols,.three-cols{grid-template-columns:minmax(0,1fr)}.page-head{flex-wrap:wrap}}
@media(max-width:650px){
 :root{--card-inset:16px}
 .card-title{padding-top:16px}.card-body{padding-bottom:16px}
 .pipeline-stage-picker{display:flex;flex-direction:column;gap:8px;margin:16px 0}
 .pipeline-stage-picker select{padding:10px;border:1px solid #bdcbd9;border-radius:6px;max-width:100%;font:inherit;background:white;color:#24364d}
 .v3-board{display:block;overflow:visible}.v3-column{display:none}.v3-column.mobile-stage-active{display:block}
 .kpi-value,.v3-large .kpi-value{overflow-wrap:anywhere;font-size:26px}
 .meeting-figures,.kpi-grid{grid-template-columns:minmax(0,1fr)}
 .toolbar input,.toolbar select,.admin-select{min-width:0;max-width:100%}
 .toolbar label{max-width:100%;min-width:0}
 .pagination{flex-wrap:wrap}.pagination div{flex-wrap:wrap}
 .head-controls select,.head-controls input{max-width:100%}
 .section-head,.card-title{align-items:flex-start;flex-wrap:wrap}
 .modal-head,.modal-body,.modal-footer{padding-left:16px;padding-right:16px}
 .legend{margin-left:16px;margin-right:16px}
}

.chart-completion-fallback{overflow-x:auto}
.chart-completion-fallback svg{min-width:660px}

.financial-amount{font-variant-numeric:tabular-nums;white-space:nowrap;cursor:help}
.financial-amount:focus-visible{outline:2px solid #3977ba;outline-offset:2px;border-radius:2px}
.financial-tooltip{position:fixed;z-index:10000;pointer-events:none;max-width:calc(100vw - 16px)}
.kpi-value .financial-amount{font-size:inherit;font-weight:inherit;color:inherit}
