/* nav bar margin/padding to remove space */
.navbar,
.navbar * {
    margin: 0px !important;
    padding: 0px !important;
}

/* Hide the default loading stripes */
.element-loader>.dash-spinner div {
    display: none !important;
}

/* Specific spinner modifications for element animations */
.element-loader>.dash-spinner {
    background: url('/assets/img/element.gif') no-repeat center center;
    background-size: 90px 90px;
    width: 90px;
    height: 90px;
}

/* Style the RangeSlider track */
.rc-slider-track {
    background-color: #B7E2B6 !important;
    /* Custom track color */
}

/* Style the RangeSlider handle */
.rc-slider-handle {
    border: 2px solid #0b6623 !important;
    /* Custom handle border color */
    background-color: #B7E2B6 !important;
    /* Custom handle background color */
    box-shadow: none !important;
    /* Remove shadow */
}

/* Style the RangeSlider handle when active */
.rc-slider-handle:active {
    border-color: #B7E2B6 !important;
    /* Custom handle active border color */
}

/* Style the RangeSlider rail */
.rc-slider-rail {
    background-color: #FADBAF !important;
    /* Custom rail color */
}

.rc-slider-dot {
    border: 1px solid #F2A436 !important;
    /* Custom dot border color */
    background-color: #ffffff !important;
    /* Custom dot background color */
}

/* Style the active dots */
.rc-slider-dot-active {
    border: 2px solid #4CB748 !important;
    /* Custom active dot border color */
    background-color: #ffffff !important;
    /* Custom active dot background color */
}

/* Style the tooltip */
.rc-slider-tooltip-inner {
    background-color: #0b6623 !important;
    /* Custom tooltip background color */
    color: #ffffff !important;
    /* Custom tooltip text color */
}

/* Style the RangeSlider active portion */
.rc-slider-handle-click-focused:focus {
    box-shadow: none !important;
}

/* assets/styles.css */
.btn-toggle {
    background-color: #94D491;
    /* Default color for By cmaID */
    border-color: #4CB748;
    width: 50%;
    /* Ensures buttons are of equal width */
    text-align: center;
    /* Center the text */
    box-shadow: none;
    /* Remove default focus shadow */
}

.btn-toggle:nth-child(2) {
    background-color: #F7C886;
    /* Default color for By Date */
    border-color: #F2A436;
}

.btn-toggle.active {
    font-weight: bold;
    border-width: 4px;
    box-shadow: none;
}

/* custom.css */
.modal-custom-width {
    max-width: 80%;
}

.custom-tabs .nav-link {
    background-color: #FFFFFF;
    /* Inactive tab background color */
    color: #4CB748;
    /* Inactive tab text color */
}

.custom-tabs .nav-link.active {
    background-color: #ffe5c1 !important;
    /* Active tab background color */
    color: #0b6623 !important;
    /* Active tab text color */
}

/* assets/style.css */
.custom-dropdown .Select--multi .Select-value {
    background-color: #B7E2B6 !important;
    border-color: #0b6623 !important;
    color: #0b6623 !important;
}

/* Style the selected items container */
.custom-dropdown .Select-value {
    background-color: #d0f2d0 !important;
    /* Background color for selected items */
    color: #0b6623 !important;
}

/* Style the selected items label */
.custom-dropdown .Select-value-label {
    color: #0b6623 !important;
    /* Text color for selected items */
}

/* Style the remove icon for selected items */
.custom-dropdown .Select-value-icon {
    color: #0b6623 !important;
    /* Icon color */
}

/* Override the default focus and hover states */
.custom-dropdown .Select-arrow-zone {
    color: #0b6623 !important;
    /* Dropdown indicator color */
}

/* Allow dynamic height for multi-select dropdown */
.custom-dropdown .Select__control {
    flex-wrap: wrap !important;
    min-height: auto !important;
    height: auto !important;
}

.custom-dropdown .Select__value-container {
    white-space: normal !important;
    flex-wrap: wrap !important;
    height: auto !important;
}

.custom-dropdown .Select__multi-value {
    white-space: normal !important;
}

/* hides the built-in Toggle Columns button */
.dash-table-container__button {
    display: none !important;
}

/* restyle radio items */
/* Colors */
:root {
    --accent: #F2A436;
    /* unselected (faded orange) */
    --accent-faded: rgba(242, 164, 54, 0.45);
    --selected: #4CB748;
    /* selected (green) */
}

/* Group container behaves like a single inline control */
.radio-group.btn-group {
    display: inline-flex;
    gap: 0;
    /* no gaps between buttons */
}

/* Hide native radios (kept for a11y) */
.radio-group .btn-check {
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Base button look (UNSELECTED) */
.radio-group .btn.btn-toggle {
    display: inline-flex;
    /* fix clipping */
    align-items: center;
    /* vertically center text */
    white-space: nowrap;
    /* don't wrap/crop long labels */
    border: 1px solid var(--accent-faded);
    color: var(--accent);
    background: transparent;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    /* IMPORTANT: let Bootstrap control the line-height */
    line-height: normal;
    /* or remove your previous 1.1/1.2 override */
    border-radius: 0;
    box-sizing: border-box;
    /* predictable sizing */
}

/* Collapse borders so there’s no visible gap */
.radio-group.btn-group .btn+.btn {
    margin-left: -1px;
}

/* Rounded ends only */
.radio-group.btn-group>.btn:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.radio-group.btn-group>.btn:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Hover (unselected) */
.radio-group .btn.btn-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Selected state */
.radio-group .btn.btn-toggle.active,
.radio-group .btn-check:checked+.btn.btn-toggle {
    background: var(--selected);
    border-color: var(--selected);
    color: #fff;
    font-weight: 700;
}

/* Optional: ensure fonts match your app; remove if not needed */
.radio-group .btn.btn-toggle {
    font-size: 0.95rem;
}

/* Let each button size to its text, not share space equally */
.radio-group.btn-group>.btn {
    flex: 0 0 auto;
    /* or: flex: initial; */
}

/* Make sure width grows to fit the label text */
.radio-group .btn.btn-toggle {
    width: auto;
    min-width: max-content;
    /* helps Firefox; ensures no squish */
    /* keep your padding/line-height/border/etc. */
}

/* assets/custom.css */
#clipboard-btn {
    display: inline-block !important;
    min-width: 28px;
    min-height: 28px;
}

#clipboard-btn button,
#clipboard-btn .dash-clipboard {
    display: inline-flex !important;
}