@import url('./visualization.css');
.product-spend-report .product-status-badge{display:inline-block;white-space:nowrap;border-radius:6px;padding:3px 8px;font-weight:600;color:#475569}
.product-spend-report .product-status-badge.is-stable{background:#dcfce7;color:#14532d}
.product-spend-report .product-status-badge.is-scaling{background:#dbeafe;color:#1e3a8a}
.product-spend-report .product-status-badge.is-testing{background:#ede9fe;color:#4c1d95}
.product-spend-report .product-status-badge.is-warming{background:#fef3c7;color:#78350f}
.product-spend-report .product-status-badge.is-launched{background:#cffafe;color:#155e75}
.product-spend-report .product-status-badge.is-inactive{background:#e2e8f0;color:#334155}
.product-spend-report .product-status-badge.is-prelaunch{background:#e9e7fb;color:#43368b}
.product-spend-report .product-status-badge.is-delisted{background:#fee2e2;color:#7f1d1d}
.product-spend-report .product-rank{font-variant-numeric:tabular-nums;white-space:nowrap}
.product-spend-report .product-report-table thead th:first-child{box-sizing:border-box;width:11.73%;white-space:nowrap}
@media(max-width:430px){.product-spend-report .product-report-table thead th:first-child{width:44px}}
.product-spend-report .product-report-table:has(.product-overview-with-category){overflow-x:auto}
.product-spend-report .product-overview-with-category{min-width:560px}
.product-spend-report .product-overview-with-category thead th:last-child{width:190px}
.product-spend-report .product-link-actions-row{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;white-space:nowrap}
.product-spend-report .product-link-actions-row>*{flex-shrink:0}
.product-spend-report .product-status-partial{display:block;color:#52627a;font-size:.75rem;margin-top:2px}

.product-report-filters .overview-picker {position:relative;align-self:end}
.overview-picker summary {cursor:pointer;padding:8px;border:1px solid #d3dce8;border-radius:6px}
.overview-picker-options {position:absolute;z-index:4;background:var(--panel-bg,#fff);max-height:240px;overflow:auto;min-width:132px;padding:8px;border:1px solid #d3dce8;border-radius:6px}
.overview-picker-options label {display:flex;align-items:center;gap:6px;padding:4px;white-space:nowrap}
.product-overview-with-category td .btn {margin:4px 0 0;white-space:nowrap}
.product-spend-report .product-status-badge.is-ready {background:#fef3c7;color:#78350f}

.product-report-filters .overview-picker {position:relative;align-self:end}
.overview-picker summary {cursor:pointer;padding:8px;border:1px solid #d3dce8;border-radius:6px}
.overview-picker-options {position:absolute;z-index:4;background:var(--panel-bg,#fff);max-height:240px;overflow:auto;min-width:132px;padding:8px;border:1px solid #d3dce8;border-radius:6px}
.product-report-filters .overview-picker-options label {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:4px;white-space:nowrap}
.product-report-filters .overview-picker-options input[type=checkbox],
.product-report-filters .overview-show-archived input[type=checkbox] {appearance:auto;flex:0 0 auto;width:16px;height:16px;min-width:0;min-height:0;margin:0;padding:0}
.product-report-filters .overview-show-archived {display:flex;flex-direction:row;align-items:center;gap:6px}
.product-spend-report .product-report-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.product-spend-report .product-report-filters .overview-show-archived{margin-left:auto;min-height:40px;white-space:nowrap;padding-left:10px;border-left:1px solid #dbe4f1}
.product-spend-report .btn.overview-action,.product-link-dialog .btn.overview-action{color:#1f5fce;border:1px solid #3972dc;background:#fff;white-space:nowrap}
.product-spend-report .btn.overview-action:disabled{opacity:.45}
.product-spend-report .btn.overview-confirm,.product-link-dialog .btn.primary{background:#2563eb;border-color:#2563eb;color:white}
.product-spend-report .product-report-table thead th.overview-select,.product-spend-report .product-report-table td.overview-select{box-sizing:border-box;width:52px;text-align:center;padding-inline:8px}
.product-spend-report .product-report-table thead th.overview-rank{width:70px}
.product-spend-report .overview-select input,.product-report-filters .overview-show-archived input{appearance:auto;accent-color:#2563eb;width:16px;height:16px;cursor:pointer;vertical-align:middle}
.product-spend-report .overview-selected td{background:#edf5ff}
.overview-selection{display:flex;align-items:center;gap:12px;padding:2px 0 8px}
.overview-selection[hidden]{display:none}
.overview-archive-list{max-height:9em;overflow:auto;overflow-wrap:anywhere}
.product-link-dialog .product-link-status[data-state=error]{color:#9a430a}
.product-link-dialog .product-link-status[data-state=ok]{color:#17643d}
.product-link-dialog .btn.primary:disabled{background:#e3e8ef;color:#4e5e73;border-color:#e3e8ef}
.product-link-dialog.product-import-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.product-import-dialog label{display:block}
.product-import-dialog textarea{box-sizing:border-box;display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #cdd9e8;border-radius:8px;font:inherit;resize:vertical}
.product-import-preview{max-height:34vh;overflow:auto}
.product-import-preview table{width:100%;border-collapse:collapse;text-align:left}
.product-import-preview :is(th,td){padding:8px;border-bottom:1px solid #e5edf6;overflow-wrap:anywhere}
.product-import-preview th{background:#f5f8fc}
.product-import-dialog .product-link-actions{flex-wrap:wrap}
.product-spend-report .overview-archive-confirm {display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.product-overview-with-category td .btn {margin:4px 0 0;white-space:nowrap}
.product-spend-report .product-status-badge.is-ready {background:#fef3c7;color:#78350f}
