#profitPage { --report-ink:#0c2146; --report-muted:#7c8fab; gap:19px; color:var(--report-ink); }
#profitPage .report-legacy { display:none!important; }
.report-page-heading { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
#profitPage .report-page-heading h2 { font-size:29px; font-weight:750; letter-spacing:-.6px; }
#profitPage .report-tabs { display:flex; gap:0; padding:3px; background:#e9f2ff; border:1px solid #d8e7fc; border-radius:10px; }
#profitPage .report-tabs button { padding:7px 18px; min-height:33px; font-size:14px; font-weight:650; border-radius:7px; background:linear-gradient(#138eff,#0066fc); color:white; }
#profitPage .report-tabs button.secondary { background:transparent; color:#4d6489; }
.report-workspace, #profitPage .profit-panel { display:grid; gap:17px; min-width:0; }
#profitPage .report-workspace { padding:0; border:0; background:transparent; }
#profitPage .filters { margin:0; gap:12px; grid-template-columns:minmax(200px,1fr) 170px 90px 150px; }
#profitPage .filters select, #profitPage .filters input { border-radius:9px; min-height:39px; background:#fbfdff; border-color:#d1e1f9; color:#1a365f; font-size:13px; }
#profitPage .filters button { font-size:13px; font-weight:600; border-radius:9px; }
#profitPage #profitExportBtn, .report-export { display:inline-flex; justify-content:center; align-items:center; gap:8px; background:#006efd; color:white; min-height:39px; }
.report-export svg, #profitExportBtn svg { width:18px; height:18px; }
.report-canvas { display:grid; gap:16px; min-width:0; }
.report-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:14px; }
.report-kpi { position:relative; overflow:hidden; display:flex; align-items:flex-start; gap:12px; padding:20px 16px; min-width:0; border:1px solid #dce8fa; border-radius:13px; background:linear-gradient(120deg,#fff,#f3f9ff); box-shadow:0 3px 12px #006efd08; }
.report-kpi > div { z-index:1; min-width:0; }.report-kpi > div > span { display:block; font-size:13px; font-weight:650; }.report-kpi strong { display:block; font-size:clamp(23px,1.65vw,29px); font-weight:750; letter-spacing:-.7px; margin:7px 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }.report-kpi small { display:block; color:var(--report-muted); font-size:11px; line-height:1.7; }
.report-kpi-icon { display:flex; align-items:center; justify-content:center; flex:0 0 34px; width:34px; height:38px; color:#006efd; background:#eaf5ff; border-radius:10px; }.report-kpi-icon svg { width:26px; height:26px; }.report-kpi i { position:absolute; bottom:-33px; right:-18px; width:110px; height:55px; background:#8dd4ff44; border-radius:50%; transform:rotate(-25deg); }.report-kpi.tone-1 { background:linear-gradient(120deg,#fff,#effcf5); }.tone-1 .report-kpi-icon { color:#14b875; background:#e7fbf1; }.report-kpi.tone-2 { background:linear-gradient(120deg,#fff,#fff6ed); }.tone-2 .report-kpi-icon { color:#ff8b38; background:#fff1e3; }.report-kpi.tone-3 { background:linear-gradient(120deg,#fff,#f4efff); }.tone-3 .report-kpi-icon { color:#8860ef; background:#f0e9ff; }.report-kpi.tone-4 { background:linear-gradient(120deg,#fff,#f0eaff); }.tone-4 .report-kpi-icon { color:#9565ff; background:#f0e9ff; }
.report-two { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(360px,1fr); gap:17px; }
.report-box { background:#fff; border:1px solid #dce8fa; box-shadow:0 3px 12px #006efd06; border-radius:14px; padding:19px 20px; min-width:0; overflow:hidden; }
#profitPage .report-box h3 { display:flex; align-items:center; gap:9px; font-size:17px; font-weight:750; letter-spacing:-.25px; margin:0 0 15px; }.report-box h3 > svg { width:21px; height:21px; color:#006efd; flex-shrink:0; }.report-box h3 small { font-size:11px; font-weight:500; color:var(--report-muted); margin-left:auto; }
.report-chart { display:block; width:100%; height:auto; }.report-chart text { fill:#7588a6; font:11px 'Segoe UI','Microsoft YaHei',sans-serif; }.report-chart-legend { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:16px; margin-bottom:4px; font-size:11px; color:#006efd; }.report-chart-legend span:nth-child(2) { color:#59bcec; }.report-chart-legend span:nth-child(3) { color:#13a35b; }
.report-cost-layout { display:flex; align-items:center; gap:20px; min-height:190px; }.report-donut { width:190px; height:190px; flex:0 0 190px; border-radius:50%; display:grid; place-items:center; }.report-donut > div { width:82%; height:82%; border-radius:50%; background:white; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:7px; }.report-donut b { font-size:17px; letter-spacing:-.6px; white-space:nowrap; }.report-donut small { font-size:12px; color:var(--report-muted); }
.report-cost-legend { flex:1; min-width:0; display:grid; gap:22px; }.report-cost-legend > div { display:grid; grid-template-columns:9px minmax(70px,1fr) auto; column-gap:8px; row-gap:5px; align-items:center; font-size:12px; }.report-cost-legend i { width:9px; height:9px; border-radius:50%; }.report-cost-legend span { color:#455c7b; }.report-cost-legend b { font-size:14px; text-align:right; }.report-cost-legend strong { grid-column:2/-1; font-size:13px; font-variant-numeric:tabular-nums; }
.report-three { display:grid; grid-template-columns:1fr 1fr 1.15fr; gap:16px; }.report-growth > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.report-growth > div > div { text-align:center; border-right:1px solid #e4ecf9; padding-right:10px; }.report-growth > div > div:last-child { border:0; padding-right:0; }.report-growth small { display:block; font-size:12px; color:#697f9e; margin-bottom:8px; }.report-change { font-size:12px; font-weight:700; white-space:normal; line-height:1.5; }.report-change.falling { color:#11984d; }.report-change.rising { color:#ef5969; }.report-neutral,.report-change.neutral { color:#8b9cb6; font-size:11px; }
.report-health-body { display:flex; gap:18px; align-items:center; }.report-gauge { flex:0 0 90px; width:90px; height:90px; border-radius:50%; background:conic-gradient(#84cf9c var(--gauge),#edf1f7 0); display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; }.report-gauge:before { content:''; position:absolute; inset:8px; background:white; border-radius:50%; }.report-gauge strong,.report-gauge small { position:relative; }.report-gauge strong { font-size:20px; }.report-gauge small { font-size:11px; color:#7c90ad; }.report-health ul { list-style:none; padding:0; margin:0; font-size:12px; color:#597393; line-height:2; }.report-health .report-status { display:flex; align-items:center; gap:7px; }.report-status svg { flex:0 0 16px; width:16px; height:16px; }.report-status.success svg { color:#11984d; }.report-status.danger { color:#dc4054; }.report-status.pending svg { color:#de960c; }.report-status.neutral svg { color:#8b9cb6; }.report-gauge.is-loss strong { color:#dc4054; }
.report-table-wrap { overflow:auto; }.report-table { width:100%; white-space:nowrap; border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
#profitPage .report-table th, #profitPage .report-table td { padding:10px 14px; font-size:13px; border-bottom:1px solid #edf2fa; line-height:1.4; }.report-table th { color:#5d7597; background:#f0f5fd; font-weight:650; }.report-table td { font-weight:550; }.report-table td:not(:first-child),.report-table th:not(:first-child) { text-align:right; }.report-table th:first-child { border-radius:7px 0 0 7px; }.report-table th:last-child { border-radius:0 7px 7px 0; }.report-table .report-total td { color:#163b6a; background:#e4f2ff; font-weight:750; }.report-row-icon { display:inline-flex; vertical-align:middle; margin-right:13px; color:#006efd; }.report-row-icon svg { width:18px; height:18px; }.report-table .supplier-crown { display:inline-block; width:22px; height:22px; vertical-align:middle; margin-right:12px; }.report-table .supplier-rank-badge { margin-right:12px; }
.report-note { color:#8d9cb3; font-size:11px; line-height:1.7; margin:14px 0 0; }.report-empty { color:#8d9cb3; font-size:13px; text-align:center; padding:40px 15px; }
.report-entry, .report-source-details { border:1px solid #e0eafa; border-radius:11px; background:#fff; padding:14px 18px; min-width:0; }.report-entry summary,.report-source-details summary { cursor:pointer; color:#6e85a6; font-size:13px; }.report-entry .lock-line { margin:14px 0; }.report-entry .profit-form { margin-top:14px; }.report-source-details > table { display:block; overflow:auto; margin-top:18px; }.report-source-details .profit-detail { margin-top:18px; }#profitFormula { display:none; }
.report-periods { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.report-period { padding:22px; border:1px solid #dce7fa; border-radius:14px; background:linear-gradient(120deg,#fff,#edf4ff); }.report-period.is-current { color:white; border-color:transparent; background:linear-gradient(120deg,#198cff,#0064fc); }.report-period h3 { font-size:15px; font-weight:600; margin-bottom:17px; }.report-period > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }.report-period small { display:block; font-size:12px; margin-bottom:9px; opacity:.75; }.report-period strong { display:block; font-size:19px; font-weight:700; letter-spacing:-.5px; overflow-wrap:anywhere; }.report-compare-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:18px; }.report-compare-aside { display:grid; gap:17px; align-content:start; }.report-insight { color:#647f9f; font-size:13px; line-height:1.9; white-space:pre-line; margin:0; }
#profitPage .year-filters { grid-template-columns:minmax(250px,1fr) 140px 90px 145px; align-items:start; }.report-store-menu { position:relative; min-width:220px; }.report-store-menu > summary { min-height:39px; padding:10px 14px; background:white; border:1px solid #d1e1f9; border-radius:9px; cursor:pointer; font-size:13px; color:#284d7e; }.report-store-menu .year-store-filter { position:absolute; top:44px; left:0; right:0; z-index:5; padding:16px; border:1px solid #d1e1f9; border-radius:12px; background:white; box-shadow:0 12px 35px #1c5baf1a; }.report-store-menu .field-title { display:none; }.report-store-menu .year-store-checks { max-height:250px; }
#profitPage .compare-filters { grid-template-columns:minmax(170px,1fr) auto 110px 90px auto 110px 90px 110px 130px; align-items:center; }.compare-label { font-size:12px; color:#8b9cb6; }
@media(max-width:1350px) { .report-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }.report-two { grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr); }.report-cost-layout { flex-direction:column; }.report-cost-legend { width:100%; gap:12px; }.report-cost-legend > div { grid-template-columns:9px minmax(70px,1fr) 50px auto; }.report-cost-legend strong { grid-column:auto; }.report-three { grid-template-columns:1fr 1fr; }.report-health { grid-column:1/-1; }.report-compare-grid { grid-template-columns:1fr; }#profitPage .compare-filters { grid-template-columns:repeat(4,minmax(100px,1fr)); } }
@media(max-width:900px) { .report-two,.report-periods,.report-three { grid-template-columns:1fr; }.report-health { grid-column:auto; }.report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }#profitPage .filters,#profitPage .year-filters,#profitPage .compare-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-period > div { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-kpi { padding:17px 13px; gap:8px; }.report-kpi strong { font-size:22px; }.report-page-heading { gap:15px; }.report-table { min-width:650px; } }/* Revenue input and month lock share one full-width row. */
#profitPage .report-entry-row { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:22px; padding:19px 22px; }
.report-entry-row > section { min-width:0; }
#profitPage .report-entry-row h3 { display:flex; align-items:center; gap:9px; margin:0 0 10px; font-size:15px; font-weight:700; color:#17385f; }
.report-entry-row h3 svg { width:20px; height:20px; color:#006efd; }
.report-entry-hint { margin:0 0 12px; font-size:12px; color:#899bb5; }
#profitPage .report-entry-row .profit-form { display:grid; grid-template-columns:minmax(130px,1fr) minmax(130px,1.2fr) 116px; align-items:end; gap:12px; margin:0; }
.report-entry-row label { font-size:12px; }
.report-entry-row input { min-height:39px; font-size:13px; }
.report-entry-row button { font-size:13px; white-space:nowrap; }
.report-lock-entry { padding-left:22px; border-left:1px solid #e5edf9; }
#profitPage .report-entry-row .lock-line { display:flex; align-items:center; gap:14px; min-height:77px; margin:0; padding:14px 16px; font-size:12px; line-height:1.7; }
.report-entry-row .lock-line span { flex:1; }
.report-entry-row .lock-line button { flex-shrink:0; }
.profit-supplier-scroll { max-height:320px; overflow:auto; margin-top:16px; border:1px solid #e1ebfa; border-radius:10px; }
.profit-supplier-scroll table { min-width:550px; border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
.profit-supplier-scroll thead th { position:sticky; top:0; z-index:1; background:#eff5fd; border-bottom:1px solid #dbe7f8; }
.profit-supplier-scroll th, .profit-supplier-scroll td { padding:11px 14px; font-size:13px; }
.profit-supplier-scroll th:nth-child(3),.profit-supplier-scroll td:nth-child(3),.profit-supplier-scroll th:nth-child(4),.profit-supplier-scroll td:nth-child(4) { text-align:right; }
.profit-supplier-totals { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:15px; margin-top:12px; padding:13px 16px; border-radius:9px; background:#f1f7ff; color:#7e94b2; font-size:12px; }
.profit-supplier-totals strong { color:#254c7f; font-size:14px; }
@media(max-width:1100px) { #profitPage .report-entry-row { grid-template-columns:minmax(0,1fr); }.report-lock-entry { padding-left:0; border-left:0; padding-top:16px; border-top:1px solid #e5edf9; } }
@media(max-width:640px) { #profitPage .report-entry-row .profit-form { grid-template-columns:1fr; } }
