.sales-plan-page{min-width:0;padding-bottom:38px}
[data-catalog-only=true] [data-full-access-only]{display:none}
.sales-plan-intro{margin:6px 0 0;color:var(--muted);font-size:14px}
.sales-plan-toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:12px 0 0}
.sales-plan-toolbar label{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:155px}
.sales-plan-toolbar label:first-child{flex:1 1 290px;max-width:450px}
.sales-plan-toolbar select,.sales-plan-toolbar input,.sales-plan-editor input{width:100%;min-width:0;min-height:43px;padding:9px 12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit}
.sales-plan-account{display:flex;align-items:center;gap:9px}.sales-plan-account>span:empty{display:none}.sales-plan-account .market-logo{display:block;width:28px;height:28px;object-fit:contain}
.sales-plan-toolbar>button{min-height:43px;margin-left:auto}
.sales-plan-status{min-height:21px;margin:12px 0;color:var(--muted);font-size:13px}
.sales-plan-status:empty{display:none}
.sales-plan-status.status-error,#sales-plan-save-status.status-error{color:var(--error)}
.sales-plan-overview{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;align-items:stretch}
.sales-plan-panel{min-width:0;border:1px solid var(--border);border-radius:22px;padding:22px;background:var(--surface)}
.sales-plan-panel-heading,.sales-plan-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sales-plan-panel h2,.sales-plan-section h2{font-size:18px;font-weight:500;margin:0;letter-spacing:-.25px}
.sales-plan-kicker{font-size:12px;color:var(--muted);margin:0 0 5px}
.sales-plan-badge{display:inline-flex;align-items:center;padding:4px 9px;max-width:100%;font-size:11px;line-height:1.4;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;color:var(--muted)}
.sales-plan-badge[data-state=ready]{background:var(--selected);color:var(--text)}
.sales-plan-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0 23px}
.sales-plan-kpis>div{min-width:0}.sales-plan-kpis p{color:var(--muted);font-size:12px;margin:0 0 8px}
.sales-plan-kpis strong{display:block;font-size:clamp(20px,2.45vw,35px);font-weight:500;letter-spacing:-1px;line-height:1.2;overflow-wrap:anywhere}
.sales-plan-kpis span{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:7px}
.sales-plan-target{display:flex;flex-direction:column}.sales-plan-target-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:17px;border-top:1px solid var(--border)}
.sales-plan-target-footer>span{font-size:12px;max-width:330px;color:var(--muted);line-height:1.5}
.sales-plan-target-footer button{white-space:nowrap}
.sales-plan-progress{margin-bottom:20px}.sales-plan-track{height:6px;background:var(--surface-soft);border-radius:8px;overflow:hidden}.sales-plan-track span{display:block;height:100%;background:var(--accent);border-radius:8px}.sales-plan-progress p{font-size:12px;color:var(--muted);margin:7px 0 0}
.sales-plan-rate-value{display:block;font-size:38px;font-weight:500;letter-spacing:-1px;line-height:1.15;margin:18px 0 9px}
.sales-plan-help{font-size:12px;color:var(--muted);line-height:1.65;margin:8px 0}
.sales-plan-rate-period{font-size:12px;margin:13px 0 8px;color:var(--muted)}
.sales-plan-rate-counts{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin:13px 0 17px}.sales-plan-rate-counts div{min-width:0}.sales-plan-rate-counts dt{font-size:11px;line-height:1.4;color:var(--muted)}.sales-plan-rate-counts dd{margin:5px 0 0;font-size:20px;font-weight:500}
.sales-plan-method{border-top:1px solid var(--border);padding-top:12px;font-size:12px;line-height:1.6;color:var(--muted)}
.sales-plan-method summary,.sales-plan-section>summary{cursor:pointer;color:var(--text)}
.sales-plan-section{margin:23px 0 0;min-width:0}.sales-plan-section>summary{font-size:15px;padding:12px 0;font-weight:500}.sales-plan-section-heading{margin-bottom:11px}.sales-plan-section-heading>p{margin:0}
.sales-plan-table-wrap{border:1px solid var(--border);border-radius:16px;background:var(--surface);max-width:100%;margin:8px 0 10px}
.sales-plan-table{width:100%;min-width:890px;font-size:13px}.sales-plan-table th,.sales-plan-table td{padding:14px 16px;border-bottom:1px solid var(--border);text-align:right;vertical-align:middle;line-height:1.5}
.sales-plan-table thead th{font-weight:450;background:var(--surface-soft);white-space:nowrap;color:var(--muted);font-size:12px}
.sales-plan-table tr>:first-child{text-align:left;min-width:178px;max-width:225px;font-weight:500;white-space:normal}
.sales-plan-table tbody tr:last-child>*{border-bottom:0}.sales-plan-secondary{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400;margin-top:3px}
.sales-plan-number{white-space:nowrap;font-weight:500;font-size:15px}.sales-plan-unavailable{font-size:12px;color:var(--muted)}
.sales-plan-line-id{font-family:'Plex Mono',monospace;overflow-wrap:anywhere;font-size:10px}
.sales-plan-metric-notes{display:grid;gap:7px}.sales-plan-notice{font-size:12px;line-height:1.6;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface-soft);color:var(--muted);margin:0}
.sales-plan-history{border-top:1px solid var(--border)}.sales-plan-history .sales-plan-table{min-width:650px}
.sales-plan-sources{border-top:1px solid var(--border)}.sales-plan-source-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:9px}
.sales-plan-source{padding:15px;border:1px solid var(--border);border-radius:14px;background:var(--surface);min-width:0}.sales-plan-source strong{font-weight:500;font-size:13px}.sales-plan-source p{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0 0}.sales-plan-source .status-error{color:var(--error)}
.sales-plan-editor{box-sizing:border-box;width:min(510px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;border:1px solid var(--border);border-radius:22px;background:var(--surface);color:var(--text)}
.sales-plan-editor::backdrop{background:rgb(10 24 34 / 42%)}.sales-plan-editor h2{font-size:20px;margin:0;font-weight:500}.sales-plan-editor label{display:block;font-size:13px;margin:20px 0 7px}.sales-plan-editor input{font-size:22px;margin:0 0 17px}.sales-plan-editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.sales-plan-editor #sales-plan-save-status{font-size:13px;line-height:1.5}
.sales-plan-empty{padding:26px;border:1px dashed var(--border);border-radius:16px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:950px){.sales-plan-overview{grid-template-columns:1fr}.sales-plan-rate{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.sales-plan-rate .sales-plan-panel-heading,.sales-plan-rate .sales-plan-method{grid-column:1/-1}.sales-plan-rate-value{grid-column:1;grid-row:2}.sales-plan-rate-note{grid-column:1}.sales-plan-rate-counts{grid-column:2;grid-row:2/4;align-content:center}.sales-plan-rate-period{grid-column:1/-1}.sales-plan-source-list{grid-template-columns:1fr}}
@media(max-width:600px){.sales-plan-page .page-heading{padding-right:103px}.sales-plan-toolbar{gap:10px}.sales-plan-toolbar label:first-child{flex-basis:100%;max-width:none}.sales-plan-toolbar label:nth-child(2){flex:1}.sales-plan-toolbar>button{margin-left:0;font-size:12px;padding:10px}.sales-plan-panel{padding:17px;border-radius:18px}.sales-plan-kpis{gap:10px;margin:23px 0}.sales-plan-kpis strong{font-size:23px;letter-spacing:-.5px}.sales-plan-kpis p,.sales-plan-kpis span{font-size:11px}.sales-plan-rate{display:block}.sales-plan-rate-value{font-size:34px}.sales-plan-rate-counts{grid-template-columns:1fr 1.5fr}.sales-plan-target-footer>span{max-width:none}.sales-plan-target-footer>button{width:100%}.sales-plan-table th,.sales-plan-table td{padding:12px}.sales-plan-table tr>:first-child{min-width:150px;max-width:175px}.sales-plan-editor{padding:18px}}
/* Product goals and the read-only target scale share the site's theme tokens. */
.sales-plan-skus{margin-top:18px;margin-bottom:14px}.sales-plan-sku-filters{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:10px 0 6px}.sales-plan-sku-filters>label:first-child{display:flex;flex-direction:column;gap:7px;font-size:12px;flex:1;max-width:410px}.sales-plan-sku-filters input[type=search],.sales-plan-editor-toolbar input[type=search],.sales-plan-focus-label select{width:100%;min-height:40px;padding:8px 11px;color:var(--text);background:var(--surface);border:1px solid var(--border);font:inherit}.sales-plan-checkbox{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.sales-plan-checkbox input{width:17px;height:17px;margin:0;min-height:0}.sales-plan-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:8px 0;font-size:12px;color:var(--muted)}.sales-plan-pagination button{font-size:12px;padding:7px 11px;min-height:34px}
.sales-plan-sku-table{min-width:1220px}.sales-plan-sku-table tr>:first-child{min-width:220px;max-width:270px;width:240px}.sales-plan-sku-table th,.sales-plan-sku-table td{padding:12px}.sales-plan-product{text-align:left;max-width:260px;overflow-wrap:anywhere}.sales-plan-product>strong,.sales-plan-focus-card{font-family:'Plex Mono',monospace;font-size:12px;font-weight:500}.sales-plan-focus-card{color:var(--text);background:transparent;border:0;padding:0;min-height:30px;text-align:left;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.sales-plan-focus-card:hover{color:var(--accent)}.sales-plan-product-title{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sales-plan-number>.sales-plan-secondary{white-space:normal;max-width:165px}
.sales-plan-focus-label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);margin-top:16px}.sales-plan-focus-label select{max-width:100%;font-size:12px}.sales-plan-metric-toggle{display:flex;gap:6px;margin-top:12px}.sales-plan-metric-toggle button{font-size:12px;min-height:34px;padding:6px 13px}.sales-plan-metric-toggle [aria-pressed=true]{background:var(--selected);border-color:var(--accent);color:var(--text)}.sales-plan-scale-inspect{padding:12px 14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;font-size:12px;line-height:1.6;margin-bottom:12px}.sales-plan-scale-inspect strong{font-weight:500}.sales-plan-scale-inspect p{margin:6px 0 0}.sales-plan-target .sales-plan-kpis{margin:20px 0}.sales-plan-target-footer{margin-top:18px}
.sales-goal-scale{font-size:12px}.sales-goal-chart{padding:4px 4px 13px 0}.sales-goal-axis{display:flex;justify-content:space-between;margin-left:58px;color:var(--muted);font-size:10px;margin-bottom:17px}.sales-goal-lanes{position:relative;padding:14px 0 16px}.sales-goal-row{display:flex;align-items:center;gap:10px;margin:10px 0;min-height:20px}.sales-goal-row-label{flex:0 0 48px;color:var(--muted);font-size:10px}.sales-goal-lane{position:relative;flex:1;min-width:0;height:16px;border-radius:5px;background:var(--surface-soft)}.sales-goal-fill{position:absolute;inset:0 auto 0 0;border-radius:5px;background:var(--accent)}.sales-goal-fill-forecast{background:color-mix(in srgb,var(--accent) 12%,transparent);border:2px dashed var(--accent);box-sizing:border-box}.sales-goal-fill.is-partial{opacity:.6;background:repeating-linear-gradient(115deg,var(--accent),var(--accent) 3px,transparent 3px,transparent 6px);border:1px dashed var(--accent)}.sales-goal-point{position:absolute;top:50%;transform:translate(-50%,-50%);width:14px;min-width:14px;height:14px;min-height:14px;padding:0;border-radius:50%;border:2px solid var(--surface);outline:1px solid var(--accent);background:var(--accent);z-index:2}.sales-goal-point-forecast{border-radius:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--surface);border-color:var(--accent)}.sales-goal-goal,.sales-goal-date{position:absolute;top:0;bottom:5px;transform:translateX(-50%);width:16px;min-width:16px;min-height:0;padding:0;border:0;border-radius:0;color:var(--text);background:linear-gradient(90deg,transparent 7px,var(--muted) 7px,var(--muted) 9px,transparent 9px);z-index:1}.sales-goal-goal>span{position:absolute;top:-13px;left:8px;transform:translateX(var(--label-shift,-100%));white-space:nowrap;font-size:10px;background:var(--surface);padding:0 3px}.sales-goal-date{top:13px;bottom:0;background:repeating-linear-gradient(0deg,var(--border),var(--border) 3px,transparent 3px,transparent 6px);width:1px;min-width:1px;opacity:.9}.sales-goal-date>span{position:absolute;bottom:-11px;left:0;transform:translateX(-50%);font-size:9px;white-space:nowrap;color:var(--muted);background:var(--surface)}.sales-goal-empty{display:block;text-align:center;color:var(--muted);font-size:9px;line-height:16px;white-space:nowrap}
.sales-goal-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0 0}.sales-goal-legend-item{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;text-align:left;min-width:0;padding:10px 9px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:10px;line-height:1.4;color:var(--muted)}.sales-goal-legend-item strong{font-size:14px;font-weight:500;letter-spacing:-.2px;color:var(--text);overflow-wrap:anywhere}.sales-goal-legend-item[aria-pressed=true]{border-color:var(--accent);background:var(--selected);color:var(--text)}.sales-goal-legend-item span:last-child{font-size:11px}.sales-goal-forecast{border-style:dashed}
.sales-plan-editor{width:min(1080px,calc(100vw - 28px))}.sales-plan-editor-toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:15px 0}.sales-plan-editor-toolbar>label:first-child{display:flex;flex-direction:column;gap:6px;flex:1;max-width:410px;margin:0}.sales-plan-editor-toolbar .sales-plan-checkbox{display:flex;flex-direction:row;margin:0 0 10px}.sales-plan-editor-toolbar input[type=search]{font-size:13px;margin:0}.sales-plan-editor-table{min-width:680px}.sales-plan-editor-table tr>:first-child{min-width:200px;max-width:290px;width:36%}.sales-plan-editor input.sales-plan-line-input{min-height:40px;padding:8px 10px;font-size:16px;width:145px;max-width:100%;margin:0}.sales-plan-editor-b{font-size:12px;font-weight:400;display:block;max-width:270px;color:var(--muted)}.sales-plan-editor-rows{min-width:0}.sales-plan-conflict-note{display:block;font-size:11px;color:var(--error);margin:6px 0}.sales-plan-editor-table td button{display:block;font-size:11px;padding:5px 8px;min-height:30px;margin:4px 0}.sales-plan-editor-actions{position:sticky;bottom:-24px;background:var(--surface);padding:12px 0 0;border-top:1px solid var(--border);z-index:3}
@media(max-width:600px){.sales-plan-sku-filters>label:first-child{flex-basis:100%;max-width:none}.sales-plan-skus>.sales-plan-section-heading>button{width:100%}.sales-plan-sku-table tr>:first-child{min-width:155px;max-width:180px;width:170px}.sales-goal-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-goal-legend-item{padding:10px;min-height:85px}.sales-goal-legend-item strong{font-size:17px}.sales-plan-editor-table tr>:first-child{min-width:155px;max-width:180px}.sales-plan-editor-toolbar>label:first-child{flex-basis:100%;max-width:none}.sales-plan-editor .sales-plan-panel-heading{gap:8px}.sales-plan-editor-actions{bottom:-18px}.sales-plan-editor .sales-plan-pagination{justify-content:space-between}.sales-plan-skus .sales-plan-help{font-size:11px}.sales-goal-empty{font-size:8px}}

.sales-plan-skus .sales-plan-table-wrap{max-height:390px}.sales-plan-skus .data-table thead th{position:sticky;top:0;z-index:2}.sales-plan-skus .data-table thead th:first-child{z-index:3}.sales-plan-overview{scroll-margin-top:96px}.sales-goal-legend-forecast{border-style:dashed}
/* Compact overview follows the shared finance table density; large figures
   belong to the explicitly opened card drilldown. */
.sales-plan-summary{margin-top:0}.sales-plan-summary .sales-plan-section-heading{margin-bottom:5px}.sales-plan-summary h2{font-size:15px;letter-spacing:0}.sales-plan-summary .sales-plan-table-wrap{margin:5px 0 7px;border-radius:12px}.sales-plan-summary .sales-plan-table th,.sales-plan-summary .sales-plan-table td{padding:8px 12px;line-height:1.35}.sales-plan-summary .sales-plan-number,.sales-plan-sku-table .sales-plan-number{font-size:13px;font-weight:500}.sales-plan-summary .sales-plan-help{margin:5px 0;font-size:11px;line-height:1.45}.sales-plan-summary .sales-plan-metric-notes{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.sales-plan-summary .sales-plan-notice{padding:6px 10px;font-size:11px;line-height:1.4;border-radius:9px}
.sales-plan-skus .sales-plan-section-heading{margin-bottom:6px}.sales-plan-skus h2{font-size:16px;letter-spacing:0}.sales-plan-skus .sales-plan-help{margin:5px 0;line-height:1.45}.sales-plan-sku-table th,.sales-plan-sku-table td{padding:8px 10px;line-height:1.35}.sales-plan-sku-table .sales-plan-secondary{font-size:11px;line-height:1.35;margin-top:2px}.sales-plan-sku-table .sales-plan-focus-card{min-height:22px;line-height:1.35}.sales-plan-sku-table .sales-plan-product-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35;margin-top:2px}.sales-plan-skus .sales-plan-table-wrap{max-height:430px;border-radius:12px}.sales-plan-sku-table tbody tr[aria-selected=true] .sales-plan-focus-card{color:var(--accent)}
.sales-plan-card-panel{min-width:0;margin:14px 0 0;padding:0 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);scroll-margin-top:90px}.sales-plan-card-panel>summary{cursor:pointer;padding:13px 0;font-size:13px;font-weight:500}.sales-plan-card-panel[open]{padding-bottom:14px}.sales-plan-card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}.sales-plan-card-actions p{margin:0;overflow-wrap:anywhere}.sales-plan-card-actions button{flex:none;font-size:12px;min-height:34px;padding:7px 11px}.sales-plan-card-panel .sales-plan-panel{border-radius:14px}.sales-plan-skus h2{scroll-margin-top:90px}
@media(max-width:600px){.sales-plan-summary .sales-plan-metric-notes{grid-template-columns:1fr}.sales-plan-summary .sales-plan-table th,.sales-plan-summary .sales-plan-table td,.sales-plan-sku-table th,.sales-plan-sku-table td{padding:8px 10px}.sales-plan-card-panel{padding:0 10px}.sales-plan-card-actions{align-items:flex-start;flex-direction:column}.sales-plan-card-actions button{align-self:flex-end}.sales-plan-sku-table .sales-plan-product{max-width:170px}}
.sales-plan-page .page-heading{min-height:58px;margin-bottom:6px}.sales-plan-toolbar{padding-top:0}.sales-plan-toolbar label{gap:5px}.sales-plan-toolbar select,.sales-plan-toolbar input,.sales-plan-toolbar>button{min-height:39px}.sales-plan-status{min-height:18px;margin:7px 0;font-size:12px}.sales-plan-summary .sales-plan-table th,.sales-plan-summary .sales-plan-table td{padding-block:6px;line-height:1.3}.sales-plan-sku-filters>label:first-child{flex-direction:row;align-items:center;gap:9px}.sales-plan-sku-filters>label:first-child>span{white-space:nowrap}.sales-plan-sku-filters>label:first-child>input{flex:1;min-width:0}
