.rs-grid {
    color: var(--rs-grid-text, #1d2939);
    --rs-grid-bg: var(--rs-grid-surface, #fff);
    --rs-grid-line: var(--rs-grid-border, #d8dfea);
    --rs-grid-header: var(--rs-grid-heading, #edf2f8);
    --rs-grid-highlight: var(--rs-grid-hover, #e5f0fd);
    --rs-grid-primary: var(--rs-grid-accent, #165caa);
}

.rs-grid .cp3-grid-body {
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
    gap: .75rem;
}
.rs-grid .cp3-grid-body--fill,
.rs-grid .cp3-grid-body-main { flex: 1 1 auto; min-width: 0; min-height: 0; }
.rs-grid .cp3-grid-body-main { display: flex; flex-direction: column; gap: .5rem; }
.rs-grid .scroller { min-width: 0; }
.rs-grid [data-testid="cp3-customizable-grid-toolbar"] { display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-grid .input-group, .rs-grid .btn-group { display: flex; flex-wrap: wrap; align-items: center; }
.rs-grid [data-testid="cp3-customizable-grid-search"] input { min-width: 10ch; }
.rs-grid .d-flex { display: flex; }
.rs-grid .flex-nowrap { flex-wrap: nowrap; }
.rs-grid .justify-content-end { justify-content: end; }
.rs-grid .text-muted { color: var(--rs-grid-muted, #526075); }
.rs-grid .rs-grid-range-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-grid .rs-grid-range-filter label { display: grid; gap: .25rem; }
.rs-grid .table { width: 100%; border-collapse: collapse; background: var(--rs-grid-bg); }
.rs-grid .table :is(th, td) {
    padding: .45rem .6rem;
    text-align: left;
    border-bottom: 1px solid var(--rs-grid-line);
    vertical-align: middle;
}
.rs-grid .table th { background: var(--rs-grid-header); }
.rs-grid .table .rs-grid-control-cell { padding: 0; }
.rs-grid :is(.rs-grid-cell-control, .rs-grid-selection-control) {
    color: inherit;
    font: inherit;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
.rs-grid .rs-grid-cell-control { width: 100%; padding: .45rem .6rem; text-align: inherit; }
.rs-grid .rs-grid-selection-control { padding: .05rem .2rem; }
.rs-grid .rs-grid-cell-control:disabled { cursor: default; opacity: .6; }
.rs-grid .rs-grid-cell-control:focus-visible { outline-offset: -2px; }
.rs-grid .rs-grid-sort-control { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.rs-grid .rs-grid-square-mixed::before { content: "⊟"; }
.rs-grid .table .text-right { text-align: right; }
.rs-grid .table .text-center { text-align: center; }
.rs-grid .table-hover tbody tr:hover,
.rs-grid .table-hover tbody tr.rs-grid-row-selected,
.rs-grid .cp3-grid-insights-picked { background: var(--rs-grid-highlight); }
.rs-grid .table-hover tbody tr.rs-grid-status-row:not(:hover, .rs-grid-row-selected) > td {
    --bs-table-bg: transparent;
    background-color: color-mix(in srgb, var(--rs-grid-row-colour) 7%, var(--rs-grid-bg));
}
.rs-grid .table-hover tbody tr.rs-grid-status-row:not(:hover, .rs-grid-row-selected) > td:first-child {
    box-shadow: inset 3px 0 color-mix(in srgb, var(--rs-grid-row-colour) 55%, var(--rs-grid-bg));
}
.rs-grid .table-hover tbody tr.rs-grid-row-selected > td {
    --bs-table-bg: transparent;
    background-color: var(--rs-grid-highlight);
}
.rs-grid .text-bold, .rs-grid .font-weight-bold { font-weight: 700; }
.rs-grid .text-underline { text-decoration: underline; }
.rs-grid .rs-card, .rs-grid .cp3-grid-insights {
    border: 1px solid var(--rs-grid-line);
    border-radius: .35rem;
    background: var(--rs-grid-bg);
}
.rs-grid .rs-card { margin-block: .4rem; }
.rs-grid .rs-grid-status-card .rs-card { border-inline-start-width: 3px; }
.rs-grid .rs-grid-status-card:not(:hover, [data-item-selected="true" i]) .rs-card {
    border-inline-start-color: color-mix(in srgb, var(--rs-grid-row-colour) 55%, var(--rs-grid-bg));
    background-color: color-mix(in srgb, var(--rs-grid-row-colour) 7%, var(--rs-grid-bg));
}
.rs-grid [data-testid="cp3-customizable-grid-card-item"][data-item-selected="true" i] .rs-card {
    border-color: var(--rs-grid-primary);
    background: var(--rs-grid-highlight);
}
.rs-grid :is(.card-header, .card-footer) { padding: .45rem; background: var(--rs-grid-header); }
.rs-grid .card-body { padding: .5rem; overflow: auto; }
.rs-grid .badge { background: var(--rs-grid-accent, #165caa); padding: .15rem .35rem; border-radius: .25rem; color: var(--rs-grid-badge-text, #fff); }
.rs-grid .cp3-grid-insights { flex: 1 1 23rem; min-width: min(100%, 23rem); padding: .75rem; overflow: auto; }
.rs-grid .cp3-grid-insights-header { display: flex; align-items: center; justify-content: space-between; }
.rs-grid .cp3-grid-insights-pickers { display: flex; gap: .5rem; flex-wrap: wrap; }
.rs-grid .cp3-grid-insights-table-wrap { overflow-x: auto; }
.rs-grid .cp3-grid-insights-swatch { display: inline-block; width: .75em; height: .75em; margin-inline-end: .3em; }
.rs-grid .rs-grid-insights-bars { padding: 0; list-style: none; }
.rs-grid .cp3-grid-status-badge i { color: var(--cp3-status-colour, inherit); }
.rs-grid .rs-grid-insights-bar {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(6em, 1fr) minmax(4em, 2fr) auto;
    align-items: center;
    gap: .5rem;
    border: 0;
    padding: .3rem;
    background: transparent;
    color: inherit;
    text-align: start;
}
.rs-grid .rs-grid-insights-bar-track { background: var(--rs-grid-header); }
.rs-grid .rs-grid-insights-bar-fill { display: block; min-height: .55rem; background: var(--rs-grid-chart-bar, var(--rs-grid-primary)); }
.rs-grid .rs-grid-insights-bar[aria-pressed="true"] { background: var(--rs-grid-highlight); }
.rs-grid .cp3-grid-filter-menu-backdrop { position: fixed; z-index: 11; inset: 0; }
.rs-grid .rs-grid-filter-direct {
    position: absolute;
    z-index: 12;
    width: min(44rem, calc(100vw - 2rem));
    max-height: 70vh;
    overflow: auto;
    background: var(--rs-grid-bg);
    border: 1px solid var(--rs-grid-line);
    border-radius: .35rem;
    color: inherit;
}
.rs-grid .cp3-grid-filter-menu-body { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(12rem, 2fr); }
.rs-grid .cp3-grid-filter-menu-body > *,
.rs-grid .cp3-grid-filter-menu-foot { min-width: 0; padding: .5rem; }
.rs-grid .cp3-grid-filter-menu-list { border-inline-end: 1px solid var(--rs-grid-line); }
.rs-grid .cp3-grid-filter-menu-foot, .rs-grid .cp3-grid-filter-menu-detail-head,
.rs-grid .cp3-grid-filter-menu-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.rs-grid .cp3-grid-filter-menu-back { display: none; }
.rs-grid .cp3-grid-filter-menu-item { display: flex; gap: .4rem; align-items: center; }
.rs-grid .cp3-grid-filter-menu-item-name { overflow-wrap: anywhere; }
.rs-grid .cp3-grid-filter-menu-item.active { background: var(--rs-grid-highlight); }
.rs-grid :is(.dropdown, .input-group) { position: relative; }
.rs-grid .dropdown-menu { display: none; }
.rs-grid .dropdown-menu.show {
    display: block;
    position: absolute;
    z-index: 12;
    padding: .4rem;
    min-width: 10rem;
    background: var(--rs-grid-bg);
    border: 1px solid var(--rs-grid-line);
    color: inherit;
}
.rs-grid .rs-grid-filter-direct { inset-block-start: 100%; inset-inline-start: 0; }
.rs-grid .dropdown-item { color: inherit; }
.rs-grid button.dropdown-item { display: block; text-align: start; padding: .25rem; width: 100%; border: 0; background: transparent; }
.rs-grid .dropdown-item:is(.active, :hover) { background: var(--rs-grid-highlight); }
.rs-grid .rs-grid-filter-option { display: flex; align-items: center; justify-content: end; gap: .4rem; padding-block: .3rem; }
.rs-grid .rs-grid-filter-option > span:first-child { margin-inline-end: auto; }
.rs-grid .rs-grid-filter-option [aria-pressed="true"] { background: var(--rs-grid-highlight); }
.rs-grid .rs-grid-filter-option [disabled] { opacity: .6; }
.rs-grid .rs-grid-value-progress {
    display: inline-block;
    min-width: 4rem;
    background: linear-gradient(to right, var(--rs-grid-value-colour, var(--rs-grid-highlight)) var(--rs-grid-value-progress), var(--rs-grid-header) 0);
    border-radius: .25rem;
    padding: .15rem .35rem;
    text-align: center;
}
.rs-grid .rs-grid-value-wheel {
    min-width: 3rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--rs-grid-bg) 72%, transparent 73%), conic-gradient(var(--rs-grid-value-colour, var(--rs-grid-primary)) var(--rs-grid-value-progress), var(--rs-grid-header) 0);
    padding-block: .7rem;
}
.rs-grid .cp3-grid-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .12rem .4rem;
    border: 1px solid var(--cp3-status-colour, var(--rs-grid-line));
    border-radius: .35rem;
}
.rs-grid :is(.rs-grid-value-link, .cp3-grid-insights-clickable, .pointer) { cursor: pointer; }
.rs-grid :focus-visible { outline: 2px solid var(--rs-grid-primary); outline-offset: 2px; }
.rs-grid .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rs-grid .pagination { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; list-style: none; }
.rs-grid .pagination .active .page-link { font-weight: 700; }
.rs-grid .pagination .disabled .page-link { opacity: .6; }
@media (max-width: 40rem) {
    .rs-grid .cp3-grid-filter-menu-body { display: block; }
    .rs-grid .rs-grid-filter-direct[data-view="detail"] .cp3-grid-filter-menu-list,
    .rs-grid .rs-grid-filter-direct[data-view="list"] .cp3-grid-filter-menu-detail { display: none; }
    .rs-grid .cp3-grid-filter-menu-back { display: inline-flex; }
    .rs-grid .rs-grid-filter-direct { position: fixed; inset: auto .6rem .6rem; width: auto; }
}
/* The desk can omit the CP3 icon font. These controls retain a visible glyph with the default skin. */
.rs-grid .fa-square::before { content: "□"; }
.rs-grid .fa-check-square::before { content: "☑"; }
.rs-grid .fa-sort::before { content: "↕"; }
.rs-grid .fa-sort-up::before { content: "↑"; }
.rs-grid .fa-sort-down::before { content: "↓"; }
.rs-grid .fa-chevron-left::before { content: "‹"; }
.rs-grid .fa-chevron-right::before { content: "›"; }
.rs-grid .fa-chevron-double-left::before { content: "«"; }
.rs-grid .fa-chevron-double-right::before { content: "»"; }
.rs-grid .fa-chevron-down::before { content: "⌄"; }
.rs-grid .fa-layer-group::before { content: "≡"; }
.rs-grid .fa-check::before { content: "✓"; }
.rs-grid .fa-times::before { content: "×"; }
.rs-grid .fa-chart-bar::before { content: "▥"; }
.rs-grid .fa-trash::before { content: "×"; }
.rs-grid .fa-eye::before { content: "◉"; }


.rs-grid .rs-grid-insights-interactive-chart {
    position: relative;
    margin-block: .5rem;
    padding-bottom: 1.9rem;
}
.rs-grid .rs-grid-insights-interactive-canvas {
    position: relative;
    min-width: 0;
    height: 14rem;
}
.rs-grid .cp3-grid-insights-chart--rings.rs-grid-insights-interactive-chart {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: 0;
}
.rs-grid .cp3-grid-insights-chart--rings .rs-grid-insights-interactive-canvas { flex: 1 1 auto; height: 15rem; }
.rs-grid .cp3-grid-insights-chart--rings .cp3-grid-insights-axis { display: none; }
.rs-grid .cp3-grid-insights-legend { flex: 0 1 42%; margin: 0; padding: 0; list-style: none; font-size: .8rem; }
.rs-grid .cp3-grid-insights-legend-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-grid .cp3-grid-insights-legend-count { margin-inline-start: auto; color: var(--rs-grid-muted, #526075); }
.rs-grid .cp3-grid-insights-legend li,
.rs-grid .rs-grid-insights-legend-button { display: flex; align-items: center; gap: .3rem; }
.rs-grid .rs-grid-insights-legend-button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: .2rem;
    text-align: start;
}
.rs-grid .cp3-grid-insights-axis { position: absolute; inset: auto 0 0; height: 1.9rem; }
.rs-grid .cp3-grid-insights-axis-label { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rs-grid .cp3-grid-insights-axis-label[role="button"] { cursor: pointer; }
.rs-grid .cp3-grid-insights-axis-label--faded { opacity: .35; }
.rs-grid .cp3-grid-insights-axis-label--hovered { z-index: 2; opacity: 1; }
.rs-grid .cp3-grid-insights-axis-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .25rem; }
.rs-grid .cp3-grid-insights-axis-label--hovered .cp3-grid-insights-axis-pill {
    border: 1px solid var(--rs-grid-line);
    border-radius: .35rem;
    background: var(--rs-grid-bg);
}
.rs-grid .cp3-grid-insights-axis-name { display: none; }
.rs-grid .cp3-grid-insights-axis-label--hovered .cp3-grid-insights-axis-name { display: inline; }
.rs-grid .cp3-grid-insights-axis-label--hovered .cp3-grid-insights-axis-text { display: none; }
.rs-grid .cp3-grid-insights-axis-text,
.rs-grid .cp3-grid-insights-axis-badge { font-size: .7rem; }
.rs-grid .cp3-grid-insights-axis-badge { border-radius: .4rem; padding: .1rem .25rem; color: #fff; }
@media (max-width: 32rem) {
    .rs-grid .cp3-grid-insights-chart--rings.rs-grid-insights-interactive-chart { display: block; }
}
