.cr-page {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: calc(100vh - var(--cr-header-offset, 71px));
    background: #f6f7fb;
}

.cr-sidebar {
    background: #fff;
    border-right: 1px solid #e6e8ef;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--cr-header-offset, 71px) - 70px);
    position: sticky;
    top: var(--cr-header-offset, 71px);
}

.cr-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cr-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
}

.cr-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.cr-sidebar-heading {
    font-family: Poppins;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #111827;
}

.cr-toggle-filters {
    width: 100%;
    margin: 0 0 12px;
}

.cr-clear-filters {
    width: 100%;
    margin: 0 0 12px;
}

.cr-sidebar #cr-toggle-filters,
.cr-sidebar #cr-search-clear,
.cr-sidebar #cr-saved-load,
.cr-sidebar #cr-saved-delete {
    font-family: Poppins;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;

    color: #101827;
    border: 1px solid #0000001F;
    border-radius: 5.33px;
    background-color: #EEEEEE;
}

.cr-saved-row {
    width: 100%;
}

.cr-saved-row .cr-select {
    flex: 1;
    min-width: 0;
}

.cr-sidebar #cr-saved-load {
    margin-left: auto;
    background-color: #FFFFFF;
}

.cr-advanced-filters {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 220ms ease, opacity 200ms ease;
}

.cr-advanced-filters.is-open {
    opacity: 1;
}

.cr-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cr-label[for="cr-search-input"] {
    font-family: Poppins;
}

.cr-search-row {
    display: flex;
    gap: 10px;
}
.cr-search {
    /* margin-top: 20px; */
    display: block;
}

.cr-search-bar {
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 2px solid rgba(0, 73, 115, 0.35);
    border-radius: 12px;
    overflow: hidden;
}

.cr-search-bar .cr-input {
    border: 0;
    border-radius: 0;
    height: 40px;
    font-family: Poppins;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: capitalize;
    padding: 0 14px;
}

.cr-search-bar .cr-input:focus {
    box-shadow: none;
}

.cr-search-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: #6D28D9;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px;
}

.cr-search-btn-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.cr-input {
    flex: 1;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
}

.cr-input:focus {
    border-color: #004973;
    box-shadow: 0 0 0 3px rgba(0, 73, 115, 0.15);
}

.cr-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 5.33px;
    border: 1px solid #004973;
    background: #004973;
    color: #fff;
    font-family: Poppins;
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    cursor: pointer;
}

.cr-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.cr-modal[aria-hidden="false"] {
    display: block;
}

.cr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.cr-modal-dialog {
    position: relative;
    width: min(680px, calc(100vw - 32px));
    margin: 200px auto 0;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 42px;
    padding-top: 48px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.cr-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    cursor: pointer;
    line-height: 1;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cr-modal-title {
    margin: 0 36px 10px 0;
    font-size: 24px;
}

#cr-pro-modal .cr-modal-title {
    margin-right: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.12;
}

.cr-modal-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.cr-modal-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cr-modal-input {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
    font-size: 14px;
    background: #f1f7ff;
}

.cr-modal-submit {
    height: 44px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #004973;
    color: #fff;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cr-modal-status {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #b91c1c;
}

.cr-pro-modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cr-pro-modal-actions a.cr-btn,
.cr-pro-modal-actions a.cr-btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 190px;
}

.cr-pro-modal-actions a.cr-btn:hover,
.cr-pro-modal-actions a.cr-btn:focus,
.cr-pro-modal-actions a.cr-btn-secondary:hover,
.cr-pro-modal-actions a.cr-btn-secondary:focus {
    text-decoration: none;
}

.cr-prebuilt-list {
    margin-top: 12px;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: auto;
    max-height: 420px;
    background: #fff;
}

.cr-prebuilt-item {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef0f6;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.cr-prebuilt-item:last-child {
    border-bottom: 0;
}

.cr-prebuilt-item:hover {
    background: #f7f9ff;
}

.cr-btn-secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
    border-radius: 5.33px;
    font-family: Poppins;
    font-weight: 600;
    line-height: 100%;
}

.cr-muted {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

.cr-muted[data-loading="1"]::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 9999px;
    border: 2px solid #cfd6e6;
    border-top-color: #004973;
    animation: cr-spin 0.9s linear infinite;
    vertical-align: -2px;
}

.cr-section-title {
    font-weight: 700;
    color: #111827;
    margin: 14px 0 8px;
}

.cr-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cr-results-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    user-select: none;
}

.cr-results-select-all input {
    width: 14px;
    height: 14px;
}

.cr-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
}

.cr-results {
    flex: 1;
    min-height: 0;
    /* margin-top: 20px; */
    margin-bottom: 20px;
}

.cr-limit-toast {
    display: none;
    align-items: center;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    position: fixed;
    top: calc(var(--cr-header-offset) + 75px);
    left: 16px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    width: 260px;
}

.cr-limit-toast.is-visible {
    display: flex;
}

.cr-limit-toast-close {
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    margin-left: auto;
    padding: 0 0 0 8px;
    opacity: 0.7;
}

.cr-limit-toast-close:hover {
    opacity: 1;
}

.cr-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef0f6;
    margin-bottom: 20px;
}

.cr-divider {
    display: none;
}

.cr-result {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    cursor: pointer;
}

.cr-result input {
    accent-color: #6D28D9;
}

.cr-result.is-selected {
    background: #004973;
    border-color: #004973;
}

.cr-result.is-selected .cr-result-title,
.cr-result.is-selected .cr-result-sub {
    color: #ffffff;
}

.cr-result.is-selected:hover {
    background: #004973;
    border-color: #004973;
}

.cr-result:hover {
    border-color: #cdd6f5;
    background: #f7f9ff;
}

.cr-result input {
    margin-top: 3px;
}

.cr-result-title {
    font-weight: 700;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
}

.cr-result-sub {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.cr-drug-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px;
}

.cr-drug-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 9999px;
    padding: 6px 10px;
}

.cr-drug-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

.cr-drug-legend-text {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.cr-main {
    padding: 18px;
    position: relative;
    min-width: 0;
}

.cr-loading {
    position: absolute;
    inset: 0;
    background: rgba(246, 247, 251, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.cr-loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 4px solid #cfd6e6;
    border-top-color: #004973;
    animation: cr-spin 0.9s linear infinite;
}

@keyframes cr-spin {
    to {
        transform: rotate(360deg);
    }
}

.cr-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.cr-benchmarks {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    z-index: 40;
    margin-bottom: 14px;
}

.cr-benchmarks-header {
    background: #cfe3f6;
    padding: 10px 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cr-benchmarks-title {
    font-weight: 700;
}

.cr-benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.cr-benchmark-card {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    padding: 12px;
}

.cr-benchmark-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cr-benchmark-delta {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cr-benchmark-delta.is-up {
    color: #16a34a;
}

.cr-benchmark-delta.is-down {
    color: #dc2626;
}

.cr-no-access .cr-kpi-value,
.cr-no-access .cr-benchmark-delta {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.cr-kpi {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 14px;
}

.cr-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.cr-kpi-label {
    font-family: Poppins;
    font-weight: 500;
    font-size: 16px;
    color: #111827;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cr-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    color: #6b7280;
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}

.cr-tooltip::before {
    content: 'i';
    font-weight: 700;
}

.cr-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 8px;
    width: 260px;
    max-width: min(260px, 80vw);
    background: #E7F3FF;
    border: 1px solid #cfe3f6;
    border-radius: 10px;
    padding: 12px 14px;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 200;
}

.cr-tooltip[data-tooltip=""]::after {
    display: none;
}

.cr-tooltip:hover::after {
    opacity: 1;
}

.cr-portal-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    max-width: min(260px, 80vw);
    background: #E7F3FF;
    border: 1px solid #cfe3f6;
    border-radius: 10px;
    padding: 12px 14px;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.cr-portal-tooltip.is-visible {
    opacity: 1;
}

.cr-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 12px 14px;
    flex-wrap: wrap;
}

.cr-chart-wrap {
    margin-bottom: 14px;
}

.color-key {
    display: none;
}

.controls-bar {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
}
.controls-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.row-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 40px;
    user-select: none;
}
.controls-divider { height: 1px; background: #e5e7eb; }

.pill--asp   { --series-color: #dc2626; --tint: #dc262608; }
.pill--mpl   { --series-color: #7f1d1d; --tint: #7f1d1d08; }
.pill--wac   { --series-color: #1a3a5c; --tint: #1a3a5c08; }
.pill--awp   { --series-color: #5ba3cf; --tint: #5ba3cf08; }
.pill--ratio { --series-color: #1a1a1a; --tint: #1a1a1a08; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}
.pill input[type="checkbox"] { display: none; }
.pill:hover { background: #fafafa; }
.pill.active {
    border-color: var(--series-color);
    color: var(--series-color);
    background: var(--tint);
}
.pill .swatch {
    width: 16px;
    height: 2.5px;
    border-radius: 1px;
    background: #cbd5e1;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.pill.active .swatch { background: var(--series-color); }
.pill .swatch.dashed {
    background: transparent;
    border-top: 2px dotted #cbd5e1;
    height: 0;
}
.pill.active .swatch.dashed {
    background: transparent;
    border-top-color: var(--series-color);
}

.multi-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    transition: all 0.15s ease;
}
.multi-pill:hover { background: #fafafa; }
.multi-pill.has-active {
    background: var(--tint);
    border-color: var(--series-color);
}
.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    user-select: none;
}
.pill-label input[type="checkbox"] { display: none; }
.multi-pill.has-active .pill-label { color: var(--series-color); }
.pill-label .swatch {
    width: 16px;
    height: 2.5px;
    border-radius: 1px;
    background: #cbd5e1;
    flex-shrink: 0;
}
.multi-pill.has-active .pill-label .swatch { background: var(--series-color); }
.pill-label .active-count {
    font-size: 12px;
    font-weight: 600;
    background: var(--series-color);
    color: #fff;
    border-radius: 3px;
    padding: 0 4px;
    min-width: 16px;
    text-align: center;
    line-height: 16px;
    display: none;
}
.multi-pill.has-active .pill-label .active-count { display: inline-block; }
.pill-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px 3px 4px;
    border: none;
    border-left: 1px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    font-size: 8px;
    transition: all 0.1s ease;
}
.multi-pill.has-active .pill-chevron {
    border-left-color: color-mix(in srgb, var(--series-color) 30%, transparent);
    color: var(--series-color);
}
.pill-chevron:hover { background: rgba(0,0,0,0.04); }

.multi-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1), 0 0 0 1px #e5e7eb;
    z-index: 200;
    overflow: hidden;
    min-width: 140px;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
    transition: all 0.12s ease;
}
.multi-pill.is-open .multi-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.multi-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: #475569;
    text-align: left;
    transition: background 0.1s ease;
}
.multi-option input[type="checkbox"] { display: none; }
.multi-option:hover { background: #fafafa; }
.multi-option .check-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.12s ease;
}
.multi-option .check-box svg {
    width: 9px;
    height: 9px;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.multi-option.checked .check-box {
    background: var(--series-color);
    border-color: var(--series-color);
}
.multi-option.checked .check-box svg { opacity: 1; }
.multi-option.checked { font-weight: 600; color: var(--series-color); }

.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    margin-right: 2px;
}
.filter-arrow { color: #cbd5e1; font-size: 11px; padding: 0 2px; }
.filter-select {
    font-size: 16px;
    font-weight: 500;
    color: #004973;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 22px 3px 8px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    outline: none;
}
.filter-select:hover { border-color: #cbd5e1; }
.filter-select:focus { border-color: #004973; }
.cr-units-input {
    width: 54px;
    font-size: 16px;
    font-weight: 500;
    color: #004973;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 4px;
    text-align: center;
    outline: none;
}
.cr-units-input:hover { border-color: #cbd5e1; }
.cr-units-input:focus { border-color: #004973; }

.cr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cr-saved-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-saved-row .cr-select {
    min-width: 220px;
}

.cr-saved-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.cr-saved-actions .cr-btn {
    width: 100%;
}

.cr-select {
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 38px 0 10px;
    background: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) 50%;
    background-size: 18px 18px;
    font-size: 13px;
}

.cr-chart-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.cr-chart-title {
    font-family: Poppins;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #111827;
}

.cr-chart-body {
    position: relative;
    min-height: 420px;
}

.cr-chart-gate {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    z-index: 80;
    padding: 18px;
    text-align: center;
}

.cr-chart-gate[aria-hidden="false"] {
    display: flex;
}

.cr-chart-gate-box {
    width: min(560px, calc(100% - 20px));
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.18);
}

.cr-chart-gate-text {
    font-family: Poppins;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.12;
    color: #111827;
}

.cr-chart-gate-box {
    text-align: center;
}

.cr-chart-gate-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cr-chart-gate-actions a.cr-btn,
.cr-chart-gate-actions a.cr-btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 170px;
}

.cr-chart-gate-actions a.cr-btn:hover,
.cr-chart-gate-actions a.cr-btn:focus,
.cr-chart-gate-actions a.cr-btn-secondary:hover,
.cr-chart-gate-actions a.cr-btn-secondary:focus {
    text-decoration: none;
}

.cr-no-access.cr-has-selection #cr-chart {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.cr-no-access.cr-has-selection #cr-drug-legend {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.cr-chart {
    min-height: 396px;
}

#cr-chart .highcharts-button {
    display: none !important;
}

.cr-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    color: #6b7280;
    font-size: 14px;
}

.cr-chart-watermark {
    width: 55%;
    max-width: 440px;
    height: auto;
    opacity: 0.5;
    margin-bottom: 14px;
}

.cr-chart-empty-text {
    max-width: 520px;
}

.cr-selected {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 12px 14px;
}

.cr-selected .cr-section-title {
    font-weight: 700;
    color: #111827;
}

.cr-selected-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cr-selected-header #cr-asof {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E7F3FF;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.cr-table-wrap {
    width: 100%;
    display: block;
    position: relative;
    overflow: visible;

    -webkit-overflow-scrolling: touch;
}

.cr-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.cr-table th .cr-tooltip {
    position: relative;
    z-index: 40;
    text-transform: none;
    letter-spacing: normal;
    vertical-align: middle;
    margin-right: 6px;
}

.cr-selected .cr-table th {
    padding-top: 22px;
}

.cr-selected .cr-table th .cr-tooltip {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    transform: scale(0.85);
    transform-origin: top right;
}

.cr-table th .cr-tooltip::after {
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    z-index: 600;
    display: none;
}

.cr-table thead {
    position: relative;
    z-index: 60;
}

.cr-table th {
    position: relative;
    z-index: 60;
}

.cr-table tbody td {
    position: relative;
    z-index: 1;
}

.cr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 1100px;
}

.cr-table th,
.cr-table td {
    padding: 10px;
    border-bottom: 0;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    color: #111827;
}

.cr-table th {
    white-space: normal;
    line-height: 1.15;
    vertical-align: top;
}

.cr-selected .cr-table th,
.cr-selected .cr-table td {
    min-width: 100px;
}

.cr-selected .cr-table th:nth-child(3),
.cr-selected .cr-table td:nth-child(3) {
    min-width: 300px;
    width: 300px;
    max-width: 520px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.cr-selected .cr-table th:last-child,
.cr-selected .cr-table td:last-child {
    min-width: 120px;
    width: 120px;
}

.cr-table td + td {
    border-left: 1px solid #eef0f6;
}

.cr-table th {
    font-family: Poppins;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

.cr-table tbody tr:nth-child(even) td {
    background: #F8F8F8;
}

.cr-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.cr-table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.cr-table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.cr-no-access .cr-table tbody td:nth-child(n+4) {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.cr-action-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 10px;
    height: 34px;
    padding: 0 10px;
    font-weight: 700;
    cursor: pointer;
}

.color-key {
    margin-top: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e6e8ef;
}
.color-key-title {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.color-key-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.color-key-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #111827;
}
.color-key-swatch {
    width: 20px;
    height: 3px;
    border-radius: 1px;
    flex-shrink: 0;
}
.color-key-swatch.dashed {
    background: transparent !important;
    border-top: 2.5px dotted #1a1a1a;
    height: 0;
}
.color-key-item code {
    font-family: monospace;
    font-size: 10px;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .cr-page {
        grid-template-columns: 1fr;
    }

    .cr-sidebar {
        border-right: none;
        border-bottom: 1px solid #e6e8ef;
    }

    .cr-limit-toast {
        top: calc(var(--cr-header-offset) + 79px);
        width: 400px;
        height: 34px;
    }

    .cr-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cr-benchmarks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
