:root {
    --bs-primary: #78c2ad;
    --bs-primary-rgb: 120, 194, 173;
    --bs-primary-bg-subtle: #e4f3ef;
    --bs-primary-border-subtle: #78c2ad;
    --bs-primary-text: #304e45;
}

h1, h2, h3 {
    color: #5a5a5a;
}

h4, h5 {
    color: rgba(120, 194, 173, 1)
}

.text-sucess {
    /* --bs-text-opacity: 1; */
    color: rgba(120, 194, 173, 1) !important
}

/* .dash-bootstrap .btn-primary,
.btn-primary {
    --bs-btn-color: #304e45 !important;
    --bs-btn-bg: #78c2ad !important;
    --bs-btn-border-color: #78c2ad !important;
    --bs-btn-hover-color: #304e45 !important;
    --bs-btn-hover-bg: #5fa890 !important;
    --bs-btn-hover-border-color: #5fa890 !important;
    --bs-btn-active-color: #304e45 !important;
    --bs-btn-active-bg: #4e947d !important;
    --bs-btn-active-border-color: #4e947d !important;
    --bs-btn-disabled-bg: #78c2ad !important;
    --bs-btn-disabled-border-color: #78c2ad !important;
} */

.btn-primary,
.btn-outline-primary {
    background-image: linear-gradient(#78c2ad, #78c2ad 60%, #78c2ad);
    border-color: #78c2ad;
    background-color: transparent;
    color: #ffffff;
}

.btn-primary:disabled,
.btn-primary.disabled,
.btn-outline-primary:disabled,
.btn-outline-primary.disabled,
fieldset:disabled .btn-primary,
fieldset:disabled .btn-outline-primary {
    background-image: linear-gradient(#78c2ad, #78c2ad 60%, #78c2ad);
    border-color: #78c2ad;
    color: #ffffff;
    opacity: 0.65; /* keep Bootstrap’s disabled feel */
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-primary:active,
.btn-outline-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.show > .btn-outline-primary.dropdown-toggle {
    background-image: linear-gradient(#198754, #198754 60%, #198754);
    border-color: #6dbca4;
    color: #ffffff;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    color: #ffffff;
    border-color: #5fa890;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
    border-color: #4e947d;
    box-shadow: 0 0 0 0.2rem #00ffb759;
}

#btn-search-all:hover,
#btn-search-all:focus,
#btn-search-all:active,
#btn-search-all:focus-visible {
    background-color: #5fa890 !important;
    border-color: #5fa890 !important;
    color: white !important;
}

#btn-search-all:active {
    background-color: #4e947d !important;
    border-color: #4e947d !important;
}

.ted-soda-form-image-field-group {
    border: 1px solid rgba(32, 201, 151, 0.3);
    border-radius: 0.85rem;
    padding: 1rem;
    background-color: #ffffff;
}

.ted-soda-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 992px) {
    .ted-soda-image-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .ted-soda-image-grid {
        grid-template-columns: repeat(1, minmax(150px, 1fr));
    }
}

.ted-soda-image-grid-item .dash-uploader {
    min-height: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.catalog-btn-committee,
.catalog-btn-technical,
.catalog-btn-financial {
    background-color: transparent;
    transition: all 0.2s ease;
}

.catalog-btn-committee {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.catalog-btn-committee:hover,
.catalog-btn-committee:focus,
.catalog-btn-committee:active,
.catalog-btn-committee:focus-visible {
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: none;
}

.catalog-btn-technical {
    color: #198754 !important;
    border-color: #198754 !important;
}

.catalog-btn-technical:hover,
.catalog-btn-technical:focus,
.catalog-btn-technical:active,
.catalog-btn-technical:focus-visible {
    color: #ffffff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
    box-shadow: none;
}

.catalog-btn-financial {
    color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.catalog-btn-financial:hover,
.catalog-btn-financial:focus,
.catalog-btn-financial:active,
.catalog-btn-financial:focus-visible {
    color: #ffffff !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    box-shadow: none;
}

.catalog-badge-committee,
.catalog-badge-technical,
.catalog-badge-financial {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.catalog-badge-committee {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.catalog-badge-technical {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.catalog-badge-financial {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
}

.catalog-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.catalog-delete-btn:hover,
.catalog-delete-btn:focus {
    background-color: #ffe5e9;
    border-color: #dc3545;
}

.catalog-delete-btn img {
    display: block;
    pointer-events: none;
}

.modal-open .DateRangePickerInput,
.modal-open .DateRangePickerInput input,
.modal-open .DateRangePickerInput .DateInput_input,
.modal-open .DateInput_input__focused {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid #ced4da !important;
}

.modal-open .DateRangePickerInput__withBorder,
.modal-open .DateRangePickerInput__withBorder:focus,
.modal-open .DateInput_input__focused,
.modal-open .DateInput_focused {
    border-color: #ced4da !important;
    background-color: #fff !important;
}

.date-picker-sm .DateRangePickerInput,
.date-picker-sm .DateInput_input {
    font-size: 1rem;
    padding: 0.1rem 0.3rem;
    min-height: 1.6rem;
}

.date-picker-sm .DateRangePickerInput {
    border-radius: 6px;
    max-width: 220px;
}

.date-picker-sm .DateInput {
    width: 105px;
}

/* This targets the inner box specifically when it's inside our custom class */
.map-custom-tooltip .tooltip-inner {
    max-width: 675px !important; /* Increases the width limit */
    width: 675px;                /* Sets the exact width */
    text-align: left;            /* Makes long text readable */
    padding: 10px;               /* Gives the text some breathing room */
}