/* Make the filters render in one horizontal row */
.fi-body .ds-filter-row .fi-fo-component-ctn {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Prevent each field from taking full width / stacking */
.fi-body .ds-filter-row .fi-fo-field-wrp {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

/* Hide labels completely */
.fi-body .ds-filter-row .fi-fo-field-wrp-label,
.fi-body .ds-filter-row label.fi-fo-field-wrp-label {
    display: none !important;
}

/* Pills */
.fi-body .ds-pill .fi-input-wrp {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 12px !important;
    min-width: 200px !important
}

.fi-body .ds-pill-interval .fi-input-wrp {
    min-width: 180px !important;
    width: 180px !important;
}

.fi-body .ds-pill-interval [role="listbox"] [role="option"],
.fi-body .ds-pill-interval .fi-dropdown-list-item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fi-body .ds-pill-interval * {
    word-break: keep-all !important;
}

/* Text size */
.fi-body .ds-pill .fi-select-input {
    font-size: 13px !important;
}

/* Force the Interval field wrapper itself to fixed width */
.fi-body .ds-filter-row .fi-fo-field-wrp.ds-pill-interval {
    flex: 0 0 180px !important;
    /* fixed column in flex row */
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

/* Make the input fill the wrapper (no auto sizing) */
.fi-body .ds-filter-row .fi-fo-field-wrp.ds-pill-interval .fi-input-wrp {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Keep selected value in one line */
.fi-body .ds-filter-row .fi-fo-field-wrp.ds-pill-interval .fi-select-input {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* If ds-pill-interval is NOT on the wrapper, target the wrapper via :has() */
.fi-body .ds-filter-row .fi-fo-field-wrp:has(.ds-pill-interval) {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
}

/* Make the input fill that fixed wrapper */
.fi-body .ds-filter-row .fi-fo-field-wrp:has(.ds-pill-interval) .fi-input-wrp {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Truncate selected value */
.fi-body .ds-filter-row .fi-fo-field-wrp:has(.ds-pill-interval) .fi-select-input {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}





/* Dashboard tabs wrapper: center + spacing */
.fi-body .ds-dash-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Pill container like Filament tabs */
.fi-body .ds-dash-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.dark .fi-body .ds-dash-tabs {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Each tab */
.fi-body .ds-dash-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.75);
    background: transparent;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dark .fi-body .ds-dash-tab {
    color: rgba(255, 255, 255, 0.75);
}

/* Hover */
.fi-body .ds-dash-tab:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.92);
}

.dark .fi-body .ds-dash-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

/* Active (very clear) */
.fi-body .ds-dash-tab.is-active {
    background: rgba(0, 0, 0, 0.06);
    color: rgb(56, 165, 233);
}

.dark .fi-body .ds-dash-tab.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: rgb(56, 165, 233);
}

/* Content spacing */
.fi-body .ds-dash-tabs-content {
    margin-top: 6px;
}