/* Form Controls*/
.form-title {
    color: #0A0A0A;
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 140% */
}

.form-label {
    color: var(--text-muted-dk);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.55;
    text-transform: uppercase;
}


.form-control {
    display: flex;
    height: 38px;
    min-height: 38px;
    padding: 7px 11px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--form-bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

    .form-control:focus {
        border-color: var(--slate-400);
        outline: 0;
        box-shadow: 0 0 0 2px rgba(42, 120, 214, 0.12);
    }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M11.0834%205.25L7.00008%209.33333L2.91675%205.25%22%20stroke%3D%22%231D293D%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    height: 38px;
    min-height: 38px;
    padding: 7px 36px 7px 11px;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    font-weight: 400;
    line-height: normal;
    background-color: var(--form-bg-color);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}

    .form-select:focus {
        border-color: var(--slate-400);
        outline: 0;
        box-shadow: 0 0 0 2px rgba(42, 120, 214, 0.12);
    }

.form-select-lt {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: normal;
    background-color: var(--form-bg-color);
    border-color: var(--border-soft);
}

select option {
    color: var(--slate-800);
}

.form-select-init {
    color: var(--text-muted-alt);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: normal;
    background-color: var(--form-bg-color);
    border: 1px solid var(--border-soft);
}

.form-select-lt:focus {
    border-color: var(--arion-mid);
    outline: 0;
    box-shadow: 0 0 0 .1rem var(--arion-mid);
}

/*.form-control {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--arion-dark);
}*/

.form-control:focus {
    border-color: var(--slate-400);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(42, 120, 214, 0.12);
}

/* Buttons */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
    font-family: var(--font-body) !important;
}

.btn {
    display: flex !important;
    min-height: 38px;
    padding: 7px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    line-height: normal;
}

.btn-sm {
    min-height: auto;
}

.btn-close {
    min-height: auto;
    padding: .25em;
}

.btn-credits {
    display: flex !important;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
}

.btn-primary {
    border: 1px solid var(--blue-600);
    background: var(--blue-600);
    color: #FFF;
    font-size: 13.5px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

    .btn-primary:hover {
        border: 1px solid var(--blue-500);
        background: var(--blue-800);
    }

.btn-secondary {
    border: 1px solid var(--border-soft);
    background: var(--form-bg-color);
    color: var(--text-color);
    font-size: 13.5px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

    .btn-secondary:hover {
        color: var(--slate-800);
        border: 1px solid var(--slate-300);
        background: var(--slate-100);
    }

.btn-check:active + .btn-primary, .btn-check:checked + .btn-primary, .btn-primary.active, .btn-primary:active, .show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--arion-btn-primary);
    border-color: var(--arion-btn-primary);
    box-shadow: 0 0 0 .1rem var(--arion-mid);
}

/* Report form shell
   Shared structure for report builders. Keep report-specific fields and
   controls local; use this contract for the surrounding panel and actions. */
.arion-report-form {
    --arion-report-form-gutter: var(--bs-gutter-x, 1.5rem);
    width: 100%;
}

.arion-report-form__panel {
    padding: 22px;
    box-shadow: none;
}

.arion-report-form__header {
    padding-bottom: 17px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.arion-report-form__header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.arion-report-form__header .form-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.arion-report-form__subtitle {
    margin: 5px 0 0;
    color: var(--text-muted-dk);
    font-size: 13.5px;
    line-height: 1.5;
}

.arion-report-form__body {
    padding-top: 0;
}

.arion-report-form__panel .form-label {
    display: block;
    margin: 0 0 7px;
}

.arion-report-form__footer {
    width: calc(100% + var(--arion-report-form-gutter));
    margin-inline: calc(var(--arion-report-form-gutter) / -2);
    padding-top: 1rem;
}

.arion-report-form__actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    padding: 0;
}

.arion-report-form__action--primary,
.arion-report-form__action--secondary {
    flex: 1 1 0;
}

.arion-report-form__action--primary {
    order: 2;
}

.arion-report-form__action--secondary {
    order: 1;
}

@media (max-width: 767.98px) {
    .arion-report-form__panel {
        padding: 18px;
    }

    .arion-report-form__actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .arion-report-form__action--primary,
    .arion-report-form__action--secondary {
        width: 100% !important;
        flex: none;
        order: unset;
    }
}

.btn-group {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.btn-light {
    color: rgb(99, 98, 85, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
}

    .btn-light:checked {
        background-color: var(--background-color-secondary);
    }

/* Checkboxes and Radio Buttons */

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22'/%3E%3C/svg%3E");
}

.form-check-input[type=radio] + label.form-check-label {
    /* color: var(--text-muted-lt);*/
}

.form-check-input:checked[type=radio] + label.form-check-label {
    color: var(--text-color);
}

.form-check-input:checked[type=checkbox] {
    background-color: black;
}

.form-check-input[type=checkbox] {
    border-radius: 4px;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: .15em;
    border: 1px solid var(--slate-400);
    background: var(--form-bg-color);
}

    .form-check-input:checked {
        background-color: white;
        border-color: rgba(0, 0, 0, .25);
    }

    .form-check-input:focus {
        border-color: rgba(0, 0, 0, .25);
        box-shadow: 0 0 0 .15rem rgba(0, 0, 0, .15);
    }

/* Reusable binary preference switch. */
.arion-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.arion-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.arion-switch__track {
    position: absolute;
    inset: 0;
    border: 1px solid var(--slate-300);
    border-radius: 100px;
    background: var(--slate-200);
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.arion-switch__track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--form-bg-color);
    box-shadow: 0 1px 2px rgba(11, 11, 11, 0.22);
    content: "";
    transition: transform 0.16s ease;
}

.arion-switch__input:checked + .arion-switch__track {
    border-color: var(--slate-600);
    background: var(--slate-600);
}

.arion-switch__input:checked + .arion-switch__track::after {
    transform: translateX(18px);
}

.arion-switch__input:focus-visible + .arion-switch__track {
    outline: 2px solid rgba(42, 120, 214, 0.22);
    outline-offset: 2px;
}

.arion-switch__input:disabled + .arion-switch__track {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Shared multi-select dropdowns — visually match standard .form-select controls. */
.dropdown.dropdownSelect {
    background-image: none;
    display: block;
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0 10px 0 11px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background-color: var(--form-bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: normal;
}

.dropdown.dropdownSelect:focus-within,
.dropdown.dropdownSelect.show {
    border-color: var(--slate-400);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(42, 120, 214, 0.12);
}

.dropdown.dropdownSelect > button,
.dropdown.dropdownSelect.dropdown-select-init > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 36px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    box-shadow: none;
}

.dropdown.dropdownSelect.dropdown-select-init > button {
    color: var(--text-muted-alt);
}

.dropdownSelect > .dropdown-toggle::after {
    display: block;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-left: auto;
    border: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M11.0834%205.25L7.00008%209.33333L2.91675%205.25%22%20stroke%3D%22%231D293D%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    content: "";
}

.dropdown.dropdownSelect > .dropdown-menu {
    width: 100%;
    min-width: 100%;
    padding: 6px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--form-bg-color);
    box-shadow: 0 8px 24px rgba(11, 11, 11, 0.12);
}

.dropdown.dropdownSelect .dropdown-item {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.35;
}

.dropdown.dropdownSelect .dropdown-item:hover,
.dropdown.dropdownSelect .dropdown-item:focus,
.dropdown.dropdownSelect .dropdown-item.active,
.dropdown.dropdownSelect .dropdown-item:active {
    background: var(--slate-100);
    color: var(--text-color);
}

.dropdown.dropdownSelect .form-check-label {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
}

/* Accordions */
.arionAccordion > .accordion-item {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--form-bg-color);
    box-shadow: none;
}

.arionAccordion .accordion-button {
    color: var(--text-color);
    background-color: var(--slate-50);
}

    .arionAccordion .accordion-button:not(.collapsed) {
        color: var(--text-color);
        background-color: var(--slate-50);
        box-shadow: inset 0 -1px 0 var(--border-soft);
    }

        .arionAccordion .accordion-button:not(.collapsed)::before {
            background-image: url("img/down-arrow.svg");
        }

    .arionAccordion .accordion-button:focus {
        border-color: transparent;
        outline: 0;
        box-shadow: none;
    }

    .arionAccordion .accordion-button:not(.collapsed):focus {
        box-shadow: inset 0 -1px 0 var(--border-soft);
    }

    .arionAccordion .accordion-button:focus-visible {
        outline: 2px solid var(--blue-500);
        outline-offset: -2px;
    }

.arionAccordion .accordion-body {
    border: 0;
    background: var(--form-bg-color);
}

/* Tags and Badges */
.tag-default {
    display: flex;
    padding: 2px 8px;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--slate-500);
    background: var(--form-bg-color);
    display: flex;
    justify-items: center;
    align-items: center;
    color: var(--slate-600);
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 133%; /* 15.96px */
}

.tag-label {
    margin-left: auto;
    margin-right: auto;
}

.tag-active {
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    background: var(--slate-500);
    border-radius: 100px;
    display: flex;
    align-items: center;
    color: var(--slate-50);
    cursor: default;
}

    .tag-active i {
        font-size: 12px;
        color: var(--slate-50);
        margin-left: 5px !important;
    }

.tag-optional {
    display: flex;
    width: 66.031px;
    height: 22px;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    border-radius: 10px;
    padding: 2px 8px;
    border: 1px solid var(--slate-300);
    background: var(--form-bg-color);
    color: var(--slate-500);
    cursor: default;
}

.tag-credits {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 133%; /* 15.96px */
    display: flex;
    width: 75.969px;
    height: 20px;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.20);
    color: #FFF;
}

badge {
    color: #fff;
    padding: 5px;
    background-color: var(--arion-dark-grey);
    border-color: var(--arion-btn-primary);
    border-radius: 5px;
    font-weight: 300 !important;
    margin-left: 0.5rem;
}

    badge.badge-lt {
        color: var(--arion-dark);
        background-color: var(--background-color);
        border-color: var(--arion-btn-primary);
    }

.icon-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-group {
    border-radius: 6px;
}

.arionRadioGroup .btn-group {
    border-radius: 6px;
}

.arionRadioGroup .btn-light {
    background-color: #e9ecef;
    border: unset;
    font-size: 1rem;
    padding: 0.44rem 0.7rem;
    border-radius: 6px;
}

    .arionRadioGroup .btn-light.active {
        background-color: var(--slate-800);
    }

.arionRadioGroup .btn-primary:hover {
    border: 0;
}

.search-group {
    position: relative;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

    .search-group:focus-within {
        border: 0;
        outline: 0;
        box-shadow: none;
    }

.search-addon {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--text-muted-lt);
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

    .search-addon svg,
    .search-addon iconify-icon {
        width: 14px;
        height: 14px;
        font-size: 14px;
        flex: 0 0 14px;
    }

.search-addon-x {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted-lt);
    cursor: pointer;
    transform: translateY(-50%);
}

.search-text {
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 7px 34px;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-md) !important;
    background: var(--form-bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
}

.search-text:focus {
    border-color: var(--blue-500) !important;
    box-shadow: 0 0 0 2px rgba(91, 155, 219, 0.14) !important;
}

/* Shared segmented toggle — the default two-or-more-option toggle pattern. */
.arion-segmented-toggle {
    display: inline-flex;
    width: auto;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(11, 11, 11, 0.1);
    border-radius: 999px;
    background: #f0efec;
}

    .arion-segmented-toggle > button {
        height: 28px;
        margin: 0;
        padding: 6px 14px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #898781;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 700;
        line-height: normal;
        white-space: nowrap;
        cursor: pointer;
        appearance: none;
        transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
    }

        .arion-segmented-toggle > button.active,
        .arion-segmented-toggle > button[aria-pressed="true"] {
            background: #fcfcfb;
            color: #0b0b0b;
            box-shadow: 0 1px 2px rgba(11, 11, 11, 0.1);
        }

        .arion-segmented-toggle > button:focus-visible {
            outline: 2px solid var(--blue-500);
            outline-offset: 1px;
        }


/* Shared RadioGroup treatment — matches .arion-segmented-toggle sitewide. */
.arion-radio-pills {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .arion-radio-pills::-webkit-scrollbar {
        display: none;
    }

    .arion-radio-pills [role="radiogroup"] {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: max-content;
        gap: 2px;
        padding: 3px;
        border: 1px solid rgba(11, 11, 11, 0.1);
        border-radius: 999px;
        background: #f0efec;
    }

    .arion-radio-pills .form-check.form-check-inline {
        margin: 0;
        padding-left: 0;
    }

    .arion-radio-pills .form-check-input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .arion-radio-pills .form-check-input:checked[type=radio] {
        background-image: none;
    }

    .arion-radio-pills .form-check-label {
        display: inline-flex;
        align-items: center;
        height: 28px;
        margin: 0;
        padding: 6px 14px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #898781;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 700;
        line-height: normal;
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
        transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
    }

        .arion-radio-pills .form-check-label > * {
            color: inherit;
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
            line-height: inherit;
        }

    .arion-radio-pills .form-check-input:checked + label.form-check-label {
        background: #fcfcfb;
        color: #0b0b0b !important;
        box-shadow: 0 1px 2px rgba(11, 11, 11, 0.1);
    }

    .arion-radio-pills .form-check-input:focus-visible + label.form-check-label {
        outline: 2px solid var(--blue-500);
        outline-offset: 1px;
    }
