[data-bs-theme="dark"] .disable-href * {
    color: var(--tblr-gray-400);
    text-decoration: none;
    user-select: none;
    cursor: default;
    pointer-events: none;
}

/* Disabled Select2 */
[data-bs-theme="dark"] .select2-container--bootstrap.select2-container--disabled .select2-selection,
[data-bs-theme="dark"] .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
    opacity: 0.3;
    background-color: var(--tblr-bg-surface);
}

[data-bs-theme="dark"] .repeatable-element .label-input-v2:not(.is-disabled-or-readonly-label),
[data-bs-theme="dark"] .bg-light > .form-group .label-input-v2:not(.is-disabled-or-readonly-label) {
    background: linear-gradient(0deg, var(--tblr-bg-surface) 0%, var(--tblr-dark) 60%);
}

[data-bs-theme="dark"] .modal-body.bg-light > .form-group .label-input-v2:not(.is-disabled-or-readonly-label) {
    background: linear-gradient(0deg, var(--tblr-bg-surface) 0%, var(--tblr-secondary-bg) 60%);
}

[data-bs-theme="dark"] .repeatable-element .header-bidding-bidder-tab-pane .label-input-v2:not(.is-disabled-or-readonly-label) {
    background: var(--tblr-bg-surface) !important;
}

[data-bs-theme="dark"] .repeatable-element .is-disabled-or-readonly-label {
    background: linear-gradient(0deg, rgba(var(--tblr-gray-rgb-800), 0.3) 0%, var(--tblr-dark) 60%);
}

/* Fix selected options for select2 in dark theme */
[data-bs-theme="dark"] .select2-container--bootstrap .select2-results__option[aria-selected="true"] {
    color: var(--tblr-primary) !important;
}

[data-bs-theme="dark"] :not(.navbar-filters) .select2-results ul.select2-results__options li.select2-results__option.select2-results__option--highlighted {
    color: white !important;
}

[data-bs-theme="dark"] .targeting-options-disabled {
    opacity: 0.32;
    filter: grayscale(0.7);
}

[data-bs-theme="dark"] .custom-popover::-webkit-scrollbar {
    background: var(--tblr-bg-surface);
    border-radius: 10px;
}

[data-bs-theme="dark"] #global-search-results-wrap .search-results {
    background-color: var(--tblr-bg-surface);
    border-color: var(--tblr-primary-border-subtle);
}

[data-bs-theme="dark"] .logo {
    background-image: url("/assets/img/logo.png");
}

/* Use large logo only on auth pages in dark mode */
[data-bs-theme="dark"] body.auth-page .logo {
    background-image: url("/assets/img/logo_large.png");
    width: 284px;
    height: 86px;
}

[data-bs-theme="dark"] small.small-text {
    color: var(--tblr-gray-400);
}

/* Fix hover text color for tabs on dark theme */
[data-bs-theme="dark"] form .nav-tabs .nav-link:hover {
    color: var(--tblr-gray-200);
}

[data-bs-theme="dark"] .repeatable-element {
    background-color: var(--bg-repeatable-color) !important;
    border-color: var(--border-repeatable-color) !important;
    color: var(--tblr-dark-text);
}

/* Input placeholder styling for dark theme */
[data-bs-theme="dark"] input::placeholder {
    color: var(--tblr-gray-500) !important;
    opacity: 0.7 !important;
}

[data-bs-theme="dark"] textarea::placeholder {
    color: var(--tblr-gray-500) !important;
    opacity: 0.7 !important;
}

[data-bs-theme="dark"] select::placeholder {
    color: var(--tblr-gray-500) !important;
    opacity: 0.7 !important;
}

[data-bs-theme=dark] .select2-container--bootstrap .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: var(--tblr-gray-500) !important;
    opacity: 0.7 !important;
}

[data-bs-theme="dark"] .select2-dropdown {
    border-color: rgba(0, 40, 100, 0.12) !important;
    border-radius: 0;
    box-shadow: unset;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--tblr-secondary-bg) !important;
}

[data-bs-theme=dark] .card.bidder-card {
    border-color: var(--tblr-tertiary-bg);
}

[data-bs-theme=dark] .card.bidder-card .bg-light {
    background-color: var(--tblr-tertiary-bg) !important;
}

[data-bs-theme=dark] #form_tabs p .btn-link:not(:hover) {
    color: var(--tblr-primary);
}

[data-bs-theme=dark] span.select2-selection.select2-selection--single,
[data-bs-theme=dark] .select2-selection.select2-selection--multiple ul.select2-selection__rendered {
    border: none !important;
    /*border-radius: 0 !important;*/
}

[data-bs-theme=dark] form .select2.select2-container,
[data-bs-theme=dark] span.select2.select2-container {
    border-color: var(--tblr-primary-border-subtle) !important;
    border-style: solid !important;
    border-width: 1px !important;
}

[data-bs-theme=dark] form .select2-container--bootstrap .select2-selection {
    /*border-radius: 0 !important;*/
}

[data-bs-theme=dark] .select2-v2 span.select2-selection.select2-selection--single,
[data-bs-theme=dark] .select2-v2 .select2-selection.select2-selection--multiple ul.select2-selection__rendered {
    border-radius: var(--tblr-border-radius) !important;
}

[data-bs-theme="dark"] .bootstrap-tagsinput {
    border: 1px solid var(--tblr-primary-border-subtle) !important;
    background: var(--tblr-bg-surface);
}

[data-bs-theme="dark"] .table-light {
    color: var(--tblr-primary);
    border-color: var(--tblr-border-color);
}

[data-bs-theme="dark"] .upload-progress-trigger {
    /*border-color: var(--tblr-primary-border-subtle) !important;*/
}

[data-bs-theme=dark] .select2-selection__choice {
    background: var(--tblr-tabler) !important;
    color: #fff !important;
    border-color: var(--tblr-tabler) !important;
}

[data-bs-theme=dark] .select2-selection__choice .select2-selection__choice__remove {
    color: #fff !important;
}
