﻿/* =====================================================
   Unified Form Controls - BasicCollections
   ===================================================== */

:root {
    --bc-input-height: 46px;
    --bc-input-radius: 12px;
    --bc-input-border: #ced4da;
    --bc-input-focus: #86b7fe;
}

/* Bootstrap controls */
.form-control,
.form-select {
    min-height: var(--bc-input-height);
    border-radius: var(--bc-input-radius) !important;
    border: 1px solid var(--bc-input-border);
    font-size: 15px;
}

    /* Focus */
    .form-control:focus,
    .form-select:focus {
        border-color: var(--bc-input-focus);
        box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
    }

/* Labels */
.form-label {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

/* Help text */
.form-text {
    color: #64748b;
    font-size: 13px;
}

/* File input */
input[type="file"].form-control {
    padding-top: 10px;
}

/* =====================================================
   Select2 unified Bootstrap-like style
   ===================================================== */

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: var(--bc-input-height) !important;
    min-height: var(--bc-input-height) !important;
    border: 1px solid var(--bc-input-border) !important;
    border-radius: var(--bc-input-radius) !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        width: 100%;
        color: #212529 !important;
        line-height: var(--bc-input-height) !important;
        padding-right: 14px !important;
        padding-left: 36px !important;
        text-align: right;
    }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6c757d !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: var(--bc-input-height) !important;
        left: 10px !important;
        right: auto !important;
    }

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--bc-input-focus) !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15) !important;
}

/* Dropdown */
.select2-dropdown {
    border-radius: var(--bc-input-radius) !important;
    overflow: hidden;
    border: 1px solid var(--bc-input-border) !important;
    z-index: 999999 !important;
}

.select2-results__option {
    padding: 9px 12px;
    font-size: 15px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd !important;
    color: #fff !important;
}
