/* Scoped to the actual-profit workspace; uses the host's green/orange theme. */
.seller-profit { --sp-accent:var(--accent,#03c75a);color:var(--text-primary,#f0f0f0);font-size:.84rem;line-height:1.65;min-width:0; }
.seller-profit * { box-sizing:border-box; }
.seller-profit .sp-panel { border:1px solid var(--border,#284050);border-radius:14px;padding:20px;margin-bottom:16px;background:var(--bg-card,rgba(10,37,64,.55)); }
.seller-profit h3,.seller-profit h4 { margin:0 0 10px;font-weight:750; }
.seller-profit p { margin:8px 0;color:var(--text-secondary,#b3beca);overflow-wrap:anywhere; }
.seller-profit .sp-lead { font-size:.94rem; }
.seller-profit .sp-notice,.seller-profit .sp-warning { padding:10px 12px;border:1px solid rgba(255,190,70,.25);background:rgba(255,190,70,.06);border-radius:8px; }
.seller-profit .sp-warning,.seller-profit [data-sp-error] { color:var(--danger,#ff7b7b); }
.seller-profit .sp-actions,.seller-profit .sp-controls,.seller-profit .sp-map-grid,.seller-profit .sp-file-grid { display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start; }
.seller-profit .sp-actions { align-items:center;margin:12px 0; }
.seller-profit .sp-controls>label,.seller-profit .sp-map-grid>label { flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:5px; }
.seller-profit .sp-file-card { flex:1 1 270px;min-width:0;border:1px solid var(--border,#284050);padding:14px;border-radius:10px; }
.seller-profit select,.seller-profit input[type=date] { font:inherit;display:block;width:100%;max-width:100%;min-height:38px;padding:7px 10px;color:var(--text-primary,#f0f0f0);background:var(--bg-input,#142333);border:1px solid var(--border,#284050);border-radius:7px; }
.seller-profit button,.seller-profit .sp-button { cursor:pointer;font:inherit;font-weight:650;display:inline-block;max-width:100%;min-height:38px;padding:7px 11px;border-radius:7px;color:var(--text-primary,#f0f0f0);border:1px solid var(--border,#284050);background:rgba(150,150,150,.06);text-align:center; }
.seller-profit .sp-primary { background:var(--sp-accent);color:#04120a;border-color:var(--sp-accent);margin-top:14px; }
.seller-profit button:focus-visible,.seller-profit select:focus-visible,.seller-profit input:focus-visible,.seller-profit .sp-button:focus-within { outline:2px solid var(--sp-accent);outline-offset:3px; }
.seller-profit details { margin:12px 0;padding:10px 0;border-top:1px solid var(--border,#284050); }
.seller-profit summary { cursor:pointer;font-weight:650; }
.seller-profit .sp-checks { display:flex;flex-direction:column;gap:10px;margin:12px 0; }
.seller-profit .sp-checks label { display:flex;align-items:flex-start;gap:8px; }
.seller-profit input[type=checkbox] { accent-color:var(--sp-accent);margin-top:6px;flex-shrink:0; }
.seller-profit .sp-kpis { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.seller-profit .sp-kpis>div { border:1px solid var(--border,#284050);padding:12px;border-radius:9px; }
.seller-profit .sp-kpis span { color:var(--text-muted,#8fa0b1);display:block;font-size:.74rem; }
.seller-profit .sp-kpis strong { display:block;font-size:1.14rem;overflow-wrap:anywhere; }
.seller-profit .sp-table-wrap { width:100%;max-width:100%;overflow:auto;margin:12px 0; }
.seller-profit table { width:100%;border-collapse:collapse;min-width:650px;font-size:.78rem; }
.seller-profit th,.seller-profit td { text-align:left;padding:10px 9px;border-bottom:1px solid var(--border,#284050);vertical-align:top;max-width:260px;overflow-wrap:anywhere; }
.seller-profit th { color:var(--text-muted,#8fa0b1);font-weight:650; }
.seller-profit .sp-negative { color:var(--danger,#ff7b7b);font-weight:700; }
.seller-profit .sp-issues { margin:10px 0;padding-left:20px;max-height:350px;overflow:auto; }
.seller-profit [data-sp-sample-label] { color:var(--sp-accent);font-weight:700; }
.seller-profit .sp-payout { border:1px dashed var(--border,#284050);padding:12px;border-radius:8px; }
@media(max-width:600px) { .seller-profit .sp-panel { padding:14px; }.seller-profit .sp-kpis { grid-template-columns:1fr; }.seller-profit .sp-file-card { flex-basis:100%; }.seller-profit .sp-controls>label,.seller-profit .sp-map-grid>label { flex-basis:100%; }.seller-profit .sp-actions>button { width:100%; } }

.seller-profit [data-sp-result] { scroll-margin-top:calc(var(--hdr-h,120px) + 12px); }
.seller-profit td details { margin:0;padding:0;border:0; }
.seller-profit td ul { margin:8px 0;padding-left:16px; }

.seller-profit input[type=search] { font:inherit;width:100%;min-height:38px;padding:7px 10px;color:var(--text-primary,#f0f0f0);background:var(--bg-input,#142333);border:1px solid var(--border,#284050);border-radius:7px; }
.seller-profit .sp-cost-source { border-top:1px solid var(--border,#284050);padding-top:12px;margin-top:12px; }
.seller-profit button:disabled { opacity:.45;cursor:default; }
