/* Financial report composition reuses the approved staff analytics and controls. */
.staff-ui .staff-financial-report{display:grid;gap:24px;min-width:0}
.staff-ui .staff-financial-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.staff-ui .staff-financial-toolbar .sl-field{margin:0}
.staff-ui .staff-financial-toolbar .sl-date-range{width:280px;max-width:100%}
.staff-ui .staff-financial-toolbar input[type=submit]{min-height:36px}
.staff-ui .staff-financial-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:0;font-size:12px;color:var(--sl-muted);font-variant-numeric:tabular-nums}
.staff-ui .staff-financial-status .is-incomplete,.staff-ui .staff-financial-status.is-incomplete{color:#8b5115}
.staff-ui .staff-financial-hero{border:1px solid var(--sl-border);border-radius:8px;overflow:hidden;padding-top:0}
.staff-ui .staff-financial-hero .sl-analytics-metrics{gap:0;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.staff-ui .staff-financial-hero .sl-analytics-metric{border:0;border-bottom:1px solid var(--sl-border);border-radius:0;box-shadow:none;padding:20px;gap:9px}
.staff-ui .staff-financial-hero .sl-analytics-metric[aria-pressed=true]{border-bottom:2px solid var(--sl-red);background:#fffaf9;padding-bottom:19px}
.staff-ui .staff-financial-hero .sl-analytics-metric:hover{background:#fafafa}
.staff-ui .staff-financial-hero .sl-analytics-metric strong{font-size:28px;white-space:normal;overflow-wrap:anywhere}
.staff-ui .staff-financial-plot{padding:20px 24px 12px;min-width:0}
.staff-ui .staff-financial-plot .sl-card-heading{align-items:center;margin-bottom:8px}
.staff-ui .staff-financial-plot h2{font-size:14px;font-weight:500;margin:0}
.staff-ui .staff-financial-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.staff-ui .staff-financial-panel{border:1px solid var(--sl-border);border-radius:8px;min-width:0;padding:20px}
.staff-ui .staff-financial-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.staff-ui .staff-financial-heading h2,.staff-ui .staff-financial-heading h3{font-size:16px;font-weight:500;margin:0}
.staff-ui .staff-financial-heading>span{font-size:12px;color:var(--sl-muted)}
.staff-ui .staff-financial-facts{display:grid;gap:12px;margin:0;font-size:13px}
.staff-ui .staff-financial-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px}
.staff-ui .staff-financial-facts dt{color:var(--sl-muted)}
.staff-ui .staff-financial-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.staff-ui .staff-financial-bridge{display:grid;grid-template-columns:repeat(var(--steps,4),minmax(0,1fr));gap:10px;margin:20px 0}
.staff-ui .staff-financial-bridge .sl-waterfall-rail{height:130px}
.staff-ui .staff-financial-bridge .sl-waterfall-rail .is-difference{background:#b57022}
.staff-ui .staff-financial-bridge .sl-waterfall-step strong{font-size:12px;white-space:normal}
.staff-ui .staff-financial-bridge .sl-waterfall-step>span{font-size:11px}
.staff-ui .staff-financial-list{min-width:0}
.staff-ui .staff-financial-columns,.staff-ui .staff-financial-row>summary{display:grid;grid-template-columns:minmax(135px,1.25fr) minmax(75px,.65fr) repeat(2,minmax(125px,1fr)) minmax(110px,.9fr) 18px;gap:16px;align-items:center}
.staff-ui .staff-financial-columns{padding:10px 16px;background:#fafafa;border-block:1px solid var(--sl-border);font-size:12px;color:var(--sl-muted)}
.staff-ui .staff-financial-columns>span:not(:first-child){text-align:right}
.staff-ui .staff-financial-row{border:0;border-bottom:1px solid var(--sl-border);border-radius:0;min-width:0}
.staff-ui .staff-financial-row>summary{padding:14px 16px;min-height:56px;list-style:none;cursor:pointer;font-size:14px;font-weight:400}
.staff-ui .staff-financial-row>summary::-webkit-details-marker{display:none}
.staff-ui .staff-financial-row>summary::before,.staff-ui .staff-financial-row>summary::after{content:none}
.staff-ui .staff-financial-row>summary:hover{background:#fafafa}
.staff-ui .staff-financial-row>summary>.sl-icon{grid-column:-2;grid-row:1;transition:transform .15s;color:var(--sl-muted)}
.staff-ui .staff-financial-row[open]>summary>.sl-icon{transform:rotate(90deg)}
.staff-ui .staff-financial-row>summary>span{min-width:0}
.staff-ui .staff-financial-row>summary>span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.staff-ui .staff-financial-row>summary small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.staff-ui .staff-financial-row>summary .staff-financial-subline{display:block;font-size:12px;color:var(--sl-muted);margin-top:4px}
.staff-ui .staff-financial-row[open]{background:#fcfcfc}
.staff-ui .staff-financial-row-body{padding:10px 16px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 48px}
.staff-ui .staff-financial-row-body .staff-financial-facts{gap:10px}
.staff-ui .staff-financial-row-body a{color:var(--sl-ink);text-decoration:underline;text-underline-offset:3px}
.staff-ui .staff-financial-report .staff-disclosure{margin:0}
.staff-ui .staff-financial-report .staff-disclosure-body .staff-financial-facts{max-width:720px}
.staff-ui .staff-financial-note{margin:12px 0 0;color:var(--sl-muted);font-size:12px;line-height:1.5}
.staff-ui .staff-financial-empty{padding:32px 16px;text-align:center;color:var(--sl-muted);font-size:13px}
.staff-ui .staff-financial-ranking{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.staff-ui .staff-financial-rank-label{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-size:13px;margin-bottom:7px}
.staff-ui .staff-financial-rank-label>span{min-width:0;overflow-wrap:anywhere}
.staff-ui .staff-financial-rank-label strong{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.staff-ui .staff-financial-rank-track{height:7px;background:#f5f5f6;border-radius:4px;overflow:hidden}
.staff-ui .staff-financial-rank-track>i{display:block;height:100%;background:var(--sl-red);border-radius:4px}
.staff-ui .staff-financial-rank-meta{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:12px;color:var(--sl-muted);margin-top:6px;font-variant-numeric:tabular-nums}
.staff-ui .staff-financial-promo-days .staff-financial-columns,.staff-ui .staff-financial-promo-days .staff-financial-row>summary{grid-template-columns:minmax(135px,1fr) repeat(3,minmax(145px,1fr)) 18px}
.staff-ui .staff-financial-launch-rows .staff-financial-columns,.staff-ui .staff-financial-launch-rows .staff-financial-row>summary{grid-template-columns:minmax(150px,1.4fr) minmax(135px,1fr) repeat(3,minmax(110px,1fr)) 18px}
.staff-ui .staff-financial-launch-rows .staff-financial-row>summary>span:nth-child(2),.staff-ui .staff-financial-launch-rows .staff-financial-columns>span:nth-child(2){text-align:left}
.staff-ui .staff-financial-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.staff-ui .staff-financial-summary>div{display:grid;gap:8px;min-width:0}
.staff-ui .staff-financial-summary dt{font-size:12px;color:var(--sl-muted)}
.staff-ui .staff-financial-summary dd{font-size:28px;line-height:1.2;letter-spacing:-.5px;font-weight:500;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.staff-ui .staff-financial-summary a{text-decoration:none;color:var(--sl-red)}
.staff-ui .staff-financial-exceptions{display:grid;gap:16px}
.staff-ui .staff-financial-exceptions p{font-size:13px;margin:0 0 6px}
.staff-ui .staff-financial-exception-links{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}
.staff-ui .staff-financial-exception-links a{color:var(--sl-red);text-decoration:underline;text-underline-offset:3px}
.staff-ui .staff-financial-report a:focus-visible,.staff-ui .staff-financial-report summary:focus-visible{outline:2px solid var(--sl-red);outline-offset:3px}
@media(max-width:1199px){
 .staff-ui .staff-financial-columns,.staff-ui .staff-financial-row>summary{grid-template-columns:minmax(115px,1fr) 70px repeat(2,minmax(110px,1fr)) 100px 16px;gap:10px}
 .staff-ui .staff-financial-launch-rows .staff-financial-columns,.staff-ui .staff-financial-launch-rows .staff-financial-row>summary{grid-template-columns:minmax(140px,1.2fr) 110px repeat(3,minmax(100px,1fr)) 16px;gap:10px}
 .staff-ui .staff-financial-promo-days .staff-financial-columns,.staff-ui .staff-financial-promo-days .staff-financial-row>summary{grid-template-columns:minmax(120px,1fr) repeat(3,minmax(125px,1fr)) 16px;gap:10px}
 .staff-ui .staff-financial-summary dd,.staff-ui .staff-financial-hero .sl-analytics-metric strong{font-size:25px}
}
@media(max-width:900px){
 .staff-ui .staff-financial-split{grid-template-columns:minmax(0,1fr)}
 .staff-ui .staff-financial-columns{display:none!important}
 .staff-ui .staff-financial-row>summary,.staff-ui .staff-financial-launch-rows .staff-financial-row>summary,.staff-ui .staff-financial-promo-days .staff-financial-row>summary{grid-template-columns:repeat(2,minmax(0,1fr)) 18px;gap:12px 16px;padding:16px 0}
 .staff-ui .staff-financial-row>summary>span:first-child{grid-column:1/3;font-weight:500}
 .staff-ui .staff-financial-row>summary>span:not(:first-child){text-align:left;display:flex;flex-direction:column;gap:3px}
 .staff-ui .staff-financial-row>summary small{display:block;position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:11px;color:var(--sl-muted);font-weight:400}
 .staff-ui .staff-financial-row>summary>.sl-icon{grid-column:3;justify-self:end}
 .staff-ui .staff-financial-row>summary>span:nth-of-type(even){grid-column:1}
 .staff-ui .staff-financial-row>summary>span:nth-of-type(odd):not(:first-child){grid-column:2}
 .staff-ui .staff-financial-row-body{grid-template-columns:1fr;padding:4px 0 22px}
 .staff-ui .staff-financial-row-body .staff-financial-facts{font-size:12px}
 .staff-ui .staff-financial-row>summary .staff-financial-subline{margin:0}
}
@media(max-width:600px){
 .staff-ui .staff-financial-report{gap:20px}
 .staff-ui .staff-financial-toolbar{flex-wrap:nowrap;gap:8px}
 .staff-ui .staff-financial-toolbar .sl-date-range{width:auto;flex:1}
 .staff-ui .staff-financial-toolbar input[type=submit]{min-height:44px;padding-inline:12px}
 .staff-ui .staff-financial-hero .sl-analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-ui .staff-financial-hero .sl-analytics-metric{padding:16px 12px}
 .staff-ui .staff-financial-hero .sl-analytics-metric[aria-pressed=true]{padding-bottom:15px}
 .staff-ui .staff-financial-hero .sl-analytics-metric strong,.staff-ui .staff-financial-summary dd{font-size:24px}
 .staff-ui .staff-financial-plot{padding:16px 12px 8px}
 .staff-ui .staff-financial-panel{padding:16px}
 .staff-ui .staff-financial-bridge{gap:6px}
 .staff-ui .staff-financial-bridge .sl-waterfall-step strong{font-size:11px}
 .staff-ui .staff-financial-bridge .sl-waterfall-step>span{font-size:10px}
 .staff-ui .staff-financial-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .staff-ui .staff-financial-status{gap:6px 16px;font-size:11px}
 .staff-ui .staff-financial-rank-label{align-items:start;gap:10px}
}

.staff-ui .staff-financial-report .staff-financial-hero{padding-top:0}
.staff-ui .staff-financial-report .staff-financial-hero .sl-analytics-metric[aria-pressed=true]{box-shadow:none}
@media(max-width:900px){.staff-ui .staff-financial-row>summary{align-items:start}.staff-ui .staff-financial-row>summary>span:nth-of-type(5)>.inline-flex{align-self:flex-start}}

.staff-ui .staff-financial-report [hidden]{display:none!important}
@media(max-width:900px){
 .staff-ui .staff-financial-promo-days .staff-financial-row>summary>span:nth-of-type(2){display:none}
 .staff-ui .staff-financial-promo-days .staff-financial-row>summary>span:nth-of-type(3){grid-column:1}
 .staff-ui .staff-financial-promo-days .staff-financial-row>summary>span:nth-of-type(4){grid-column:2}
}

.staff-ui .staff-financial-panel > .staff-financial-currency-title{margin:20px 0 8px;font-size:13px;font-weight:500}
.staff-ui .staff-financial-panel > .staff-financial-heading + .staff-financial-currency-title{margin-top:0}
.staff-ui .staff-financial-row-body > .staff-financial-note{grid-column:1/-1;margin:0}

/* Sales uses the approved comparison legend, analytical table and day inspector. */
.staff-ui .staff-sales-comparison,.staff-ui .staff-sales-comparison-freshness{margin:0 0 8px;font-size:12px;line-height:1.5;font-weight:400;color:var(--sl-muted)}
.staff-ui .staff-sales-comparison-freshness{margin-bottom:14px}
.staff-ui .staff-sales-days .sl-report-table-scroll{max-height:560px}
.staff-ui .staff-sales-days .sl-report-table th .staff-sort-link{display:inline-flex;align-items:center;gap:5px;color:inherit;font:inherit;text-decoration:none}
.staff-ui .staff-sales-days .sl-report-table td{height:44px}
.staff-ui .staff-sales-days .sl-report-table th:first-child,.staff-ui .staff-sales-days .sl-report-table td:first-child{min-width:145px}
.staff-ui .staff-sales-day-note{display:block;margin-top:4px;white-space:normal;color:var(--sl-muted);font-size:11px;font-weight:400}
.staff-ui .staff-sales-day .sl-day-navigation{margin:0}
.staff-ui .staff-sales-day-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.staff-ui .staff-sales-day-summary dd{font-size:24px}
.staff-ui .staff-sales-day-calculation h2{margin:0 0 8px;font-size:16px;font-weight:500}
.staff-ui .staff-sales-day-calculation>p{margin:0;color:var(--sl-muted);font-size:13px;line-height:1.5}
@media(max-width:599px){.staff-ui .staff-sales-days .staff-sort-link{min-height:36px}.staff-ui .staff-sales-day .sl-dialog-actions{gap:8px}.staff-ui .staff-sales-day-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-ui .staff-sales-day-summary dd{font-size:21px}}
