.history-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 26px}.history-eyebrow{font-size:10px;letter-spacing:1.6px;color:light-dark(#899db6,var(--theme-muted));font-weight:600}.history-head h1{font-size:27px;margin:9px 0 10px;color:light-dark(#2b4565,var(--theme-text));letter-spacing:.5px}.history-head p{font-size:12px;color:light-dark(#899bb1,var(--theme-muted));margin:0}.history-unit{font-size:11px;color:light-dark(#7f95b0,var(--theme-muted));background:light-dark(#eaf0f8,var(--theme-raised));padding:9px 13px;border-radius:7px;white-space:nowrap}.history-controls{padding:0 22px 20px;border:1px solid light-dark(#e4ebf5,var(--theme-border));box-shadow:none}.history-tabs{display:flex;gap:28px;border-bottom:1px solid light-dark(#edf1f7,var(--theme-border));margin-bottom:19px}.history-tabs button{border:0;background:none;color:light-dark(#8b9cb2,var(--theme-muted));padding:18px 0 15px;font-size:13px;border-bottom:2px solid transparent}.history-tabs button[aria-pressed=true]{color:light-dark(#3f73b3,var(--theme-link));border-bottom-color:light-dark(#5387c9,var(--theme-focus));font-weight:600}.history-filters{display:flex;flex-wrap:wrap;gap:14px 10px;align-items:end}.history-filters label{flex:0 0 104px;width:104px;display:grid;gap:6px;color:light-dark(#7d90aa,var(--theme-muted));font-size:11px;min-width:0}.history-filters select,.history-filters input{width:100%;min-width:0;height:35px;border:1px solid light-dark(#dfe7f2,var(--theme-border));border-radius:7px;background:light-dark(#fbfcfe,var(--theme-panel));color:light-dark(#4c6584,var(--theme-secondary));font-size:12px;padding:0 9px;outline:none}.history-filters :is(select,input):focus{border-color:light-dark(#7aa2d5,var(--theme-focus));box-shadow:0 0 0 3px #edf3fb}.history-filters>button{flex:0 0 84px;width:84px;height:35px;font-size:12px;color:light-dark(#6e88a9,var(--theme-muted));background:light-dark(white,var(--theme-panel))}.history-caption{font-size:11px;color:light-dark(#8497b0,var(--theme-muted));margin:21px 0 13px;line-height:1.8}.history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:light-dark(#fff,var(--theme-panel));border:1px solid light-dark(#e4ebf5,var(--theme-border));border-radius:12px;margin-bottom:22px;overflow:hidden}.history-metric{padding:19px 23px;border-right:1px solid light-dark(#edf1f7,var(--theme-border))}.history-metric:last-child{border:0}.history-metric>span{display:flex;justify-content:space-between;color:light-dark(#7e92ab,var(--theme-muted));font-size:12px}.history-metric i{font-style:normal}.history-metric>strong{display:block;font-size:31px;font-weight:600;margin:11px 0 8px;font-variant-numeric:tabular-nums}.history-metric small{font-size:10px;color:light-dark(#9babc0,var(--theme-muted));font-weight:400;margin-left:7px}.history-metric p{font-size:10px;color:light-dark(#9babc0,var(--theme-muted));margin:0}.history-up{color:light-dark(#c45259,var(--theme-red))!important}.history-down{color:light-dark(#258568,var(--theme-green))!important}.history-flat{color:light-dark(#6c83a0,var(--theme-secondary))!important}.history-missing,.history-muted{color:light-dark(#98a6b9,var(--theme-muted))!important}.history-trend{border:1px solid light-dark(#e4ebf5,var(--theme-border));box-shadow:none;padding:23px 26px;margin-bottom:22px}.history-trend-head{display:flex;justify-content:space-between;gap:20px}.history-trend-head h2{font-size:21px;color:light-dark(#365476,var(--theme-secondary));margin:11px 0 9px}.history-trend-head h2>span{color:light-dark(#c6d2e1,var(--theme-muted));font-weight:400;padding:0 10px}.history-trend-head p{font-size:12px;color:light-dark(#8097b2,var(--theme-muted));margin:0}.history-trend-price{text-align:right;flex-shrink:0}.history-trend-price>span:first-child{font-size:10px;color:light-dark(#92a4bb,var(--theme-muted))}.history-trend-price strong{display:block;font-size:27px;color:light-dark(#345c88,var(--theme-secondary));margin:5px 0;font-weight:600}.history-trend-price>span:last-child{font-size:12px}.history-trend-price small{display:inline;margin-left:7px;font-size:11px}.history-chart{width:100%;height:245px;display:block;margin:13px 0 5px;overflow:visible}.history-chart text{font-size:11px;fill:light-dark(#8b9fb8,var(--theme-muted))}.history-week-strip{display:flex;overflow-x:auto;border:1px solid light-dark(#eaf0f7,var(--theme-border));border-radius:8px;background:light-dark(#fbfcfe,var(--theme-panel));scrollbar-width:thin}.history-week-strip>div{flex:1;min-width:100px;text-align:center;padding:13px 10px;border-right:1px solid light-dark(#eaf0f7,var(--theme-border))}.history-week-strip>div:last-child{border:0;background:light-dark(#eff5fc,var(--theme-raised))}.history-week-strip span{font-size:10px;color:light-dark(#8d9fb7,var(--theme-muted))}.history-week-strip b{display:block;font-size:13px;color:light-dark(#4d6e94,var(--theme-secondary));margin:9px 0 5px;font-weight:600}.history-week-strip small{font-size:9px;color:light-dark(#9aaec4,var(--theme-muted))}.history-trend-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px}.history-trend-foot span{font-size:10px;color:light-dark(#99a8bd,var(--theme-muted))}.history-trend-foot button{font-size:11px;white-space:nowrap}.history-source{border-top:1px solid light-dark(#edf1f7,var(--theme-border));margin-top:16px;padding-top:13px;font-size:11px;color:light-dark(#8da0b8,var(--theme-muted))}.history-source summary{cursor:pointer}.history-source .table-wrap{margin-top:15px}.history-source table{min-width:640px}.history-source td{font-size:11px;max-width:380px;white-space:pre-wrap;overflow-wrap:anywhere}.history-list{border:1px solid light-dark(#e4ebf5,var(--theme-border));box-shadow:none;overflow:hidden}.history-list-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px}.history-list-head h2{font-size:16px;color:light-dark(#405f83,var(--theme-secondary));margin:0 0 8px}.history-list-head p{font-size:10px;color:light-dark(#95a5ba,var(--theme-muted));margin:0;line-height:1.8}.history-legend{display:flex;gap:16px;white-space:nowrap}.history-legend i{font-size:10px;font-style:normal;color:light-dark(#91a3bb,var(--theme-muted))}.history-table{min-width:1050px}.history-table :is(th,td){padding:15px 17px;font-size:12px}.history-table th{color:light-dark(#8096b1,var(--theme-muted));font-size:11px;font-weight:500;background:light-dark(#f9fbfd,var(--theme-raised))}.history-table td{color:light-dark(#5e7796,var(--theme-secondary))}.history-table td>b{font-weight:600}.history-table small{display:block;font-size:10px;margin-top:6px;color:light-dark(#91a5bf,var(--theme-muted))}.history-table .history-up small,.history-table .history-down small,.history-table .history-flat small{color:inherit}.history-table .history-group th{background:light-dark(#f2f6fb,var(--theme-raised));color:light-dark(#6b89ae,var(--theme-muted));padding:10px 17px;font-size:11px}.history-table .history-selected td{background:light-dark(#f6faff,var(--theme-raised))}.history-price{font-weight:600;color:light-dark(#355f90,var(--theme-link))!important;white-space:nowrap}.history-tax{display:inline-block;padding:4px 7px;border-radius:5px;background:light-dark(#edf2fb,var(--theme-raised));color:light-dark(#7391bb,var(--theme-muted));font-size:10px;white-space:nowrap}.history-tax.inclusive{background:light-dark(#f3f0fa,var(--theme-raised));color:light-dark(#9683af,var(--theme-purple))}.history-trend-button{font-size:10px;padding:6px 8px;border:1px solid light-dark(#dfe8f5,var(--theme-border));color:light-dark(#6c8bb3,var(--theme-muted));background:light-dark(white,var(--theme-panel));border-radius:5px;white-space:nowrap}.history-trend-button[aria-pressed=true]{color:light-dark(#437bbf,var(--theme-link));border-color:light-dark(#bdd1ed,var(--theme-border));background:light-dark(#eef5ff,var(--theme-selected))}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 22px;color:light-dark(#95a6be,var(--theme-muted));font-size:11px;border-top:1px solid light-dark(#edf1f7,var(--theme-border))}.history-pagination>div{display:flex;gap:8px}.history-pagination button{font-size:11px;padding:6px 10px}.history-pagination button:disabled{opacity:.4;cursor:default}.history-footnote{font-size:10px;line-height:1.9;color:light-dark(#99a8bc,var(--theme-muted));margin-top:17px}.history-empty{text-align:center;padding:50px 20px;color:light-dark(#7c92b0,var(--theme-muted))}.history-empty b{font-size:16px;color:light-dark(#5d789b,var(--theme-secondary))}.history-empty p{font-size:12px;line-height:2;margin-bottom:0}
@media(max-width:760px){.history-head{align-items:flex-start;flex-direction:column;gap:14px}.history-head h1{font-size:24px}.history-controls{padding:0 14px 16px}.history-tabs{gap:19px}.history-tabs button{font-size:12px}.history-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-metric{padding:16px;border-bottom:1px solid light-dark(#edf1f7,var(--theme-border))}.history-metric:nth-child(2){border-right:0}.history-metric:nth-child(3){border-bottom:0}.history-metric>strong{font-size:27px}.history-trend{padding:18px 14px}.history-trend-head{flex-direction:column;gap:14px}.history-trend-price{text-align:left}.history-trend-price strong{display:inline-block;margin-right:15px;font-size:24px}.history-trend-price>span:first-child{display:block}.history-trend-head h2{font-size:19px}.history-chart{height:auto;min-height:135px}.history-trend-foot{align-items:flex-start;flex-direction:column}.history-list-head{padding:18px 14px;align-items:flex-start;flex-direction:column}.history-pagination{padding:15px 12px;font-size:10px}.history-pagination button{padding:6px;font-size:10px}}

.history-filters>button,.history-pagination button{border:1px solid light-dark(#dfe7f2,var(--theme-border));border-radius:7px;background:light-dark(#fff,var(--theme-panel));color:light-dark(#6e88a9,var(--theme-muted))}.history-filters>button:hover,.history-pagination button:not(:disabled):hover{background:light-dark(#f2f7fd,var(--theme-hover));border-color:light-dark(#bdd0e9,var(--theme-border))}.history-chart-scroll{overflow-x:auto;scrollbar-width:thin}.history-chart-scroll:focus-visible,.history-week-strip:focus-visible{outline:2px solid light-dark(#7aa2d5,var(--theme-focus));outline-offset:3px}
@media(max-width:760px){.history-chart{min-width:640px;height:190px}}

.history-filters .history-filter-country{flex-basis:88px;width:88px}
.history-filters .history-filter-warehouse,.history-filters .history-filter-supplier{flex-basis:128px;width:128px}
.history-filters .history-filter-tax,.history-filters .history-filter-mode{flex-basis:112px;width:112px}
.history-filters .history-filter-delivery{flex-basis:100px;width:100px}
.history-filters .history-filter-date{flex-basis:142px;width:142px}
.history-filters .history-filter-weeks{flex-basis:96px;width:96px}
.history-filters .history-filter-movement{flex-basis:116px;width:116px}
@media(max-width:760px){.history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}.history-filters label{width:auto!important}.history-filters .history-filter-date{grid-column:1/-1}.history-filters>button{width:100%}.history-filters select,.history-filters input,.history-filters>button{height:37px}}

/* FBA history board: keep the same visual language as the preview and PK views. */
.history-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:2px 0 18px}.history-page-head h1{margin:7px 0 6px;font-size:25px;letter-spacing:-.3px;color:light-dark(#263f60,var(--theme-text))}.history-page-head p{margin:0;color:light-dark(#7d91aa,var(--theme-muted));font-size:12px;line-height:1.7}.history-source-badge{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:7px;row-gap:2px;padding:11px 14px;border:1px solid light-dark(#dce8f5,var(--theme-border));border-radius:9px;background:light-dark(#f8fbff,var(--theme-raised));white-space:nowrap}.history-source-badge i{grid-row:1/3;width:8px;height:8px;border-radius:50%;background:light-dark(#36ad84,var(--theme-green-bg));box-shadow:0 0 0 4px #e5f6ef}.history-source-badge span{font-size:10px;color:light-dark(#8ba0b7,var(--theme-muted))}.history-source-badge b{font-size:12px;font-weight:600;color:light-dark(#466b94,var(--theme-secondary))}.history-source-badge small{grid-column:2;font-size:10px;color:light-dark(#9aaabd,var(--theme-muted))}.history-controls{padding:0 22px 20px;border-color:light-dark(#dfe8f3,var(--theme-border));background:light-dark(#fff,var(--theme-panel));box-shadow:0 7px 24px #294d7610}.history-control-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0 15px;border-bottom:1px solid light-dark(#edf2f8,var(--theme-border))}.history-control-head h2{margin:0 0 4px;font-size:15px;color:light-dark(#365679,var(--theme-secondary))}.history-control-head p{margin:0;font-size:11px;color:light-dark(#8a9db5,var(--theme-muted))}.history-control-head .history-unit{background:light-dark(#eef5fd,var(--theme-raised));color:light-dark(#5b80aa,var(--theme-secondary));padding:7px 10px;font-size:10px;border-radius:6px}.history-tabs{gap:25px;margin-bottom:17px}.history-tabs button{padding:15px 0 12px;font-weight:500}.history-filters{gap:11px 9px}.history-filters label{flex-basis:112px;width:112px;color:light-dark(#7187a2,var(--theme-secondary))}.history-filters select,.history-filters input{height:36px;background:light-dark(#fbfdff,var(--theme-panel))}.history-filters .history-filter-country{flex-basis:88px;width:88px}.history-filters .history-filter-warehouse,.history-filters .history-filter-supplier{flex-basis:132px;width:132px}.history-filters .history-filter-tax,.history-filters .history-filter-mode{flex-basis:118px;width:118px}.history-filters .history-filter-delivery{flex-basis:108px;width:108px}.history-filters .history-filter-band{flex-basis:106px;width:106px}.history-filters .history-filter-date{flex-basis:142px;width:142px}.history-filters .history-filter-weeks{flex-basis:102px;width:102px}.history-filters .history-filter-movement{flex-basis:116px;width:116px}.history-filters>button{flex-basis:84px;width:84px;height:36px}
.history-caption{margin:16px 0 11px;color:light-dark(#8297b0,var(--theme-muted))}.history-metrics{margin-bottom:17px;border-color:light-dark(#dfe8f3,var(--theme-border));box-shadow:0 5px 18px #294d7608}.history-metric{padding:16px 20px}.history-metric>strong{font-size:28px;margin:9px 0 6px}.history-metric p{line-height:1.5}.history-highlights{margin-bottom:18px}.history-highlights-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 10px}.history-highlights-head h2{margin:0 0 4px;font-size:15px;color:light-dark(#3c5e82,var(--theme-secondary))}.history-highlights-head p{margin:0;color:light-dark(#8a9eb5,var(--theme-muted));font-size:11px}.history-highlights-head>span{color:light-dark(#91a3b8,var(--theme-muted));font-size:10px;white-space:nowrap}.history-highlight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.history-highlight-card{border:1px solid light-dark(#e2eaf3,var(--theme-border));border-radius:10px;background:light-dark(#fff,var(--theme-panel));overflow:hidden}.history-highlight-card>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid light-dark(#edf2f7,var(--theme-border));background:light-dark(#fbfdff,var(--theme-panel))}.history-highlight-card>header>div{display:flex;align-items:center;gap:8px}.history-highlight-card>header b{font-size:12px;color:light-dark(#526f91,var(--theme-secondary))}.history-highlight-card>header>small{font-size:10px;color:light-dark(#9aaabd,var(--theme-muted))}.history-highlight-icon{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;font-size:13px;font-weight:700}.history-highlight-up .history-highlight-icon{color:light-dark(#c95c63,var(--theme-red));background:light-dark(#fff0f1,var(--theme-red-bg))}.history-highlight-down .history-highlight-icon{color:light-dark(#258568,var(--theme-green));background:light-dark(#eaf8f2,var(--theme-green-bg))}.history-highlight-list{display:grid}.history-highlight-row{display:grid;grid-template-columns:minmax(100px,1.1fr) minmax(130px,1.55fr) auto auto;align-items:center;gap:10px;width:100%;padding:11px 14px;border:0;border-bottom:1px solid light-dark(#f0f3f7,var(--theme-border));background:light-dark(#fff,var(--theme-panel));text-align:left;color:light-dark(#5a7290,var(--theme-secondary))}.history-highlight-row:last-child{border-bottom:0}.history-highlight-row:hover{background:light-dark(#f7faff,var(--theme-hover))}.history-highlight-main{min-width:0}.history-highlight-main b{display:block;color:light-dark(#416486,var(--theme-secondary));font-size:12px;font-weight:600}.history-highlight-main small,.history-highlight-route{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:light-dark(#90a0b3,var(--theme-muted));font-size:10px;margin-top:3px}.history-highlight-route{color:light-dark(#6f87a5,var(--theme-muted))}.history-highlight-price{display:grid;justify-items:end;gap:3px;white-space:nowrap;font-size:12px;font-weight:600;color:light-dark(#3e638a,var(--theme-secondary))}.history-highlight-price small{font-size:10px;font-weight:400}.history-highlight-price .history-up,.history-highlight-price .history-down{display:inline-flex;align-items:center;gap:2px}.history-highlight-price .history-up small,.history-highlight-price .history-down small{display:none}.history-fee-status{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:4px 6px;border-radius:5px;font-size:10px;white-space:nowrap}.history-fee-status.ready{color:light-dark(#267d61,var(--theme-green));background:light-dark(#eaf7f1,var(--theme-green-bg))}.history-fee-status.pending{color:light-dark(#9a7b4b,var(--theme-orange));background:light-dark(#fff6e8,var(--theme-orange-bg))}.history-highlight-empty{padding:17px 14px;color:light-dark(#a0adbd,var(--theme-muted));font-size:11px}.history-trend{padding:20px 23px;border-color:light-dark(#dfe8f3,var(--theme-border));box-shadow:0 6px 20px #294d7608}.history-trend-head h2{margin:8px 0 7px;font-size:19px}.history-trend-price strong{font-size:25px}.history-list{border-color:light-dark(#dfe8f3,var(--theme-border));box-shadow:0 6px 20px #294d7608}.history-list-head{padding:18px 20px}.history-list-head h2{margin-bottom:5px;font-size:15px}.history-table{min-width:1230px}.history-table :is(th,td){padding:13px 14px;font-size:11px}.history-table th{background:light-dark(#f7faff,var(--theme-raised));color:light-dark(#7188a4,var(--theme-muted))}.history-table td{color:light-dark(#54708f,var(--theme-secondary))}.history-table td:first-child,.history-table th:first-child{padding-left:20px}.history-table .history-group th{padding:9px 20px;background:light-dark(#eef4fb,var(--theme-raised));color:light-dark(#5c7fa6,var(--theme-secondary));font-size:11px}.history-table .history-group th span{display:inline-block;margin-right:8px;color:light-dark(#92a5ba,var(--theme-muted));font-size:10px;font-weight:400}.history-table .history-selected td{background:light-dark(#f2f7fe,var(--theme-raised))}.history-table .history-price{font-size:13px;color:light-dark(#396993,var(--theme-secondary))!important}.history-table .history-price .history-muted{font-size:11px;font-weight:400}.history-band{display:inline-flex;padding:4px 7px;border-radius:5px;background:light-dark(#f0f5fb,var(--theme-raised));color:light-dark(#58799b,var(--theme-secondary));font-size:10px;white-space:nowrap}.history-days{font-variant-numeric:tabular-nums;white-space:nowrap;color:light-dark(#52799e,var(--theme-secondary));font-size:11px}.history-fee-status{font-weight:500}.history-trend-button{padding:5px 8px;color:light-dark(#6388b1,var(--theme-muted))}.history-footnote{margin-top:14px;color:light-dark(#93a4b8,var(--theme-muted))}
@media(max-width:900px){.history-highlight-row{grid-template-columns:minmax(100px,1fr) minmax(120px,1.3fr) auto}.history-highlight-row .history-fee-status{display:none}}
@media(max-width:760px){.history-page-head{align-items:flex-start;flex-direction:column;margin-bottom:14px}.history-page-head h1{font-size:22px}.history-source-badge{width:100%;grid-template-columns:auto auto 1fr}.history-source-badge small{grid-column:3;grid-row:1/3;align-self:center}.history-control-head{align-items:flex-start;flex-direction:column;gap:10px;padding:15px 0 13px}.history-tabs{gap:18px}.history-tabs button{font-size:12px}.history-highlight-grid{grid-template-columns:1fr}.history-highlights-head{align-items:flex-start;flex-direction:column;gap:5px}.history-highlights-head>span{display:none}.history-highlight-row{grid-template-columns:minmax(95px,1fr) minmax(100px,1.2fr) auto;padding:10px 11px}.history-highlight-price{font-size:11px}.history-trend{padding:17px 14px}.history-list-head{padding:16px 14px}.history-table{min-width:1160px}}
