.product-economics-page { --pe-seller-width:195px; --pe-wb-width:160px; font-size:13px; }
.product-economics-page .product-economics-heading { display:flex; align-items:baseline; justify-content:flex-start; gap:16px; margin:0 0 14px; }
.product-economics-page .product-economics-heading h2 { margin:0; font-size:22px; }
.product-economics-page #productsPeriod { margin:0; font-size:12px; color:#778092; }
.pe-filterbar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding:12px; background:#f8f9fb; border:1px solid #e3e6ec; border-radius:8px; }
.pe-filterbar label,.pe-period-control,.pe-promotion-source { display:flex; flex-direction:column; gap:5px; margin:0; color:#697385; font-size:11px; font-weight:500; }
.pe-filterbar select,.pe-filterbar input,.pe-toolbar select { height:34px; border:1px solid #d8dde6; border-radius:5px; background:#fff; color:#253049; padding:6px 9px; font:inherit; font-size:12px; }
.pe-filterbar select { min-width:155px; max-width:210px; }
.pe-filterbar .pe-search { flex:1; min-width:185px; }
.pe-promotion-source strong { display:flex; align-items:center; min-height:34px; padding:0 10px; background:#eef1f7; border-radius:5px; font-size:12px; color:#58647a; font-weight:500; white-space:nowrap; }
.product-economics-page .period-picker { display:flex; flex-wrap:nowrap; gap:4px; padding:0; margin:0; border:0; background:transparent; box-shadow:none; min-height:34px; }
.product-economics-page .range-selector { min-height:34px; padding:6px 9px; font-size:12px; border-radius:5px; }
.pe-period-shortcuts { position:relative; }
.pe-period-shortcuts summary { list-style:none; cursor:pointer; padding:7px 10px; min-height:34px; border:1px solid #d8dde6; border-radius:5px; background:white; font-size:14px; }
.pe-period-shortcuts>div { position:absolute; right:0; top:39px; z-index:20; width:160px; background:white; box-shadow:0 8px 25px #182b4a22; border:1px solid #d9dfeb; border-radius:6px; padding:5px; }
.pe-period-shortcuts .button { width:100%; text-align:left; justify-content:flex-start; }
.product-economics-page .pe-extra-filters { padding:9px 12px; margin:8px 0 0; background:#fbfcfe; border-radius:6px; }
.product-economics-page .pe-extra-filters[hidden] { display:none; }
.product-economics-page .pe-extra-filters label { min-width:145px; font-size:11px; }
.product-economics-page .pe-extra-filters select { height:31px; padding:4px 8px; margin-top:4px; font-size:12px; }
.pe-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:10px 0 5px; }
.pe-toolbar .button,.pe-pagination .button { min-height:31px; padding:5px 9px; border-radius:5px; font-size:12px; font-weight:500; }
.pe-toolbar select { height:31px; max-width:190px; }
.pe-toolbar label { margin:0; }
.pe-toolbar-spacer { margin-left:auto; }
.pe-toolbar .pe-reference-cta { color:#345e9f; border:1px solid #cfdef3; background:#ecf3ff; }
.pe-toolbar .pe-reference-cta[hidden] { display:none; }
.pe-inline-label .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.pe-status { font-size:11px; color:#7a8493; margin:5px 0; }
.pe-status:empty { display:none; }
.pe-explanations { display:flex; flex-wrap:wrap; gap:12px; margin:4px 0 9px; font-size:11px; color:#69758a; }
.pe-explanations>details { max-width:100%; }
.pe-explanations summary { cursor:pointer; padding:2px 0; }
.pe-explanations details[open] { flex:1 1 100%; padding:7px 10px; border:1px solid #e6eaf0; border-radius:5px; background:#fbfcfe; }
.pe-reference-info { font-size:11px; overflow-wrap:anywhere; margin:5px 0; }
.pe-warnings,#peFinanceSources { margin:5px 0; padding-left:20px; max-height:135px; overflow:auto; line-height:1.5; }
.pe-warnings { color:#856927; }
.pe-warnings:empty { display:none; }
.product-economics-page .product-table-panel { padding:0; border:1px solid #e1e5eb; border-radius:6px; overflow:hidden; box-shadow:none; }
.pe-table-wrap { max-height:65vh; position:relative; border:0; border-radius:0; overflow:auto; }
.product-economics-page .pe-table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; table-layout:fixed; font-size:13px; }
.product-economics-page .pe-table th,.product-economics-page .pe-table td { box-sizing:border-box; min-width:125px; max-width:175px; width:125px; padding:8px 10px; border-bottom:1px solid #e2e6ec; border-right:1px solid #e4e8ef; vertical-align:middle; line-height:1.3; }
.product-economics-page .pe-table thead th { position:sticky; z-index:4; white-space:normal; text-align:center; background:#eff3f9; font-weight:500; }
.product-economics-page .pe-table .pe-band-row th { top:0; height:29px; padding:5px 10px; z-index:5; font-size:12px; font-weight:600; border-bottom:1px solid #d1dae7; }
.product-economics-page .pe-table .pe-band-row th { text-align:left; }
.pe-band-label { position:sticky; left:calc(var(--pe-seller-width) + var(--pe-wb-width) + 10px); display:inline-block; }
.product-economics-page .pe-table .pe-column-row th { top:29px; height:74px; }
.product-economics-page .pe-table .pe-identity { position:sticky; z-index:3; background:#fff; text-align:left; white-space:normal; }
.product-economics-page .pe-table .pe-seller-identity { left:0; min-width:var(--pe-seller-width); max-width:var(--pe-seller-width); width:var(--pe-seller-width); }
.product-economics-page .pe-table .pe-wb-identity { left:var(--pe-seller-width); min-width:var(--pe-wb-width); max-width:var(--pe-wb-width); width:var(--pe-wb-width); box-shadow:2px 0 4px #28364e0b; }
.product-economics-page .pe-table thead .pe-identity { z-index:7; background:#f0f2f6; }
.product-economics-page .pe-table .pe-product-band { left:0; min-width:calc(var(--pe-seller-width) + var(--pe-wb-width)); width:calc(var(--pe-seller-width) + var(--pe-wb-width)); z-index:8; background:#e9edf4; text-align:left; }
.product-economics-page .pe-table .pe-band-orders { background:#fffbed; }
.product-economics-page .pe-table .pe-band-sales { background:#fff8e7; }
.product-economics-page .pe-table .pe-band-finance { background:#eff6ff; }
.product-economics-page .pe-table .pe-band-profit { background:#edf5fb; }
.product-economics-page .pe-table .pe-band-stock { background:#f1f4f8; }
.product-economics-page .pe-table .pe-band-row .pe-band-orders { background:#fff3c9; }
.product-economics-page .pe-table .pe-band-row .pe-band-sales { background:#ffedc3; }
.product-economics-page .pe-table .pe-band-row .pe-band-finance { background:#dae9fc; }
.product-economics-page .pe-table .pe-band-row .pe-band-profit { background:#dbeaf5; }
.product-economics-page .pe-table .pe-band-row .pe-band-stock { background:#e4e9f1; }
.product-economics-page .pe-table tbody tr:hover td { background:#eaf0fa; }
.product-economics-page .pe-table tfoot td { position:sticky; bottom:0; z-index:4; font-weight:650; border-top:2px solid #aebed7; background:#e9f0fa; }
.product-economics-page .pe-table tfoot .pe-identity { z-index:6; background:#e5edf9; }
.pe-table .pe-number { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pe-table .pe-missing { color:#8b94a4; text-align:right; }
.pe-table small,.pe-product small,.pe-detail-table small { display:block; margin-top:3px; color:#7b8696; font-size:10px; font-weight:400; line-height:1.35; white-space:normal; }
.pe-sort { width:100%; font:inherit; font-weight:inherit; line-height:1.3; background:none; border:0; border-radius:0; padding:0; color:inherit; cursor:pointer; text-align:inherit; }
.pe-sort:hover { color:#2e56a2; text-decoration:underline; }
.pe-product { display:flex; align-items:center; gap:7px; font-size:12px; }
.pe-product img { flex:none; object-fit:contain; width:28px; height:36px; border-radius:3px; background:#f5f7fb; }
.pe-sku { display:inline; border:0; background:none; color:#305793; padding:0; font:inherit; font-size:12px; font-weight:500; cursor:pointer; text-align:left; overflow-wrap:anywhere; }
.pe-sku:hover { text-decoration:underline; }
.pe-table .pe-negative { color:#9d4950; }
.pe-table .pe-source-badge { display:block; font-size:9px; line-height:1.2; color:#63779a; }
.pe-table .pe-partial sup { color:#926716; font-size:12px; margin-left:2px; }
.pe-column-filter { display:inline-block; border:1px solid #d9e1ec; border-radius:4px; margin:3px 0 0 5px; background:white; color:#526886; padding:1px 5px; cursor:pointer; font-size:11px; }
.pe-column-filter:hover,.pe-column-filter:focus-visible { border-color:#7452ee; color:#5937d2; }
.pe-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin:5px 0; }
.pe-coverage-status { color:#576b87; font-size:11px; margin:6px 0 8px; line-height:1.5; }
.pe-filter-dialog { width:min(500px,94vw); }
.pe-filter-dialog>label { display:flex; flex-direction:column; gap:5px; margin:12px 0; font-size:13px; }
.pe-filter-dialog>label[hidden] { display:none; }
.pe-filter-dialog select,.pe-filter-dialog input { padding:9px; border:1px solid #d5dce5; border-radius:5px; background:white; color:#19283a; font:inherit; }
.pe-filter-actions { display:flex; flex-wrap:wrap; gap:8px; }
.pe-pagination { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding:8px 12px; color:#758195; font-size:12px; background:white; }
.pe-pagination label { display:flex; align-items:center; gap:6px; margin-right:auto; }
.pe-pagination select { height:29px; padding:3px 6px; border:1px solid #d5dce5; border-radius:4px; background:white; }
.product-economics-page #productsEmpty { padding:10px; }
.pe-dialog { border:1px solid #d3dce8; border-radius:10px; background:#fff; color:#19283a; padding:20px; width:min(1000px,94vw); max-width:94vw; max-height:88vh; overflow:auto; box-shadow:0 20px 80px #14273e44; }
.pe-dialog::backdrop { background:#11243e88; }
.pe-dialog-heading { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.pe-dialog-heading h3 { margin:0 0 12px; }
.pe-dialog p { color:#617086; font-size:13px; }
.pe-column-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-bottom:18px; }
.pe-column-choices fieldset { border:1px solid #dce3ed; border-radius:6px; padding:12px; }
.pe-column-choices legend { font-weight:600; color:#384f6a; }
.pe-column-choices label { display:flex; align-items:start; gap:7px; padding:5px 0; font-size:12px; }
.pe-column-choices input { margin-top:2px; flex:none; }
.pe-detail-dialog { width:95vw; }
.pe-detail-table { min-width:850px; width:100%; font-size:12px; }
.pe-detail-table td,.pe-detail-table th { padding:10px; vertical-align:top; border-bottom:1px solid #e1e8f0; white-space:normal; }
.pe-detail-table td:first-child { width:22%; font-weight:600; }
.pe-detail-table td:last-child { width:35%; }
@media(max-width:800px) { .product-economics-page { --pe-seller-width:145px; --pe-wb-width:135px; } .pe-filterbar { gap:8px; } .pe-filterbar>label { flex:1 1 170px; } .pe-promotion-source { flex:1 1 100%; } .pe-promotion-source strong { white-space:normal; } .pe-toolbar-spacer { margin-left:0; } .product-economics-page .product-economics-heading { flex-wrap:wrap; gap:5px; } }
