﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

.bg-corporate {
    background-color: #152c73 !important;
    color: #ffffff !important;
}
.bg-toshiba {
    background-color: #E61E1E !important;
    color: #ffffff !important;
}
.letter-spacing-sm {
    letter-spacing: 0.5px;
}
/* ===== Select2 single ให้เท่ากับ Bootstrap 5.2.3 form-select ===== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: calc(2.3rem + 2px) !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding: 0 !important;
        line-height: 1.5 !important;
        color: #212529;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: calc(2.3rem + 2px) !important;
        right: 0.75rem !important;
        top: 0 !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            top: 50% !important;
            transform: translateY(-50%) !important;
            position: absolute !important;
        }

/* โฟกัสเหมือน Bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
}

/* ===== ปรับ Search box ใน dropdown ให้เหมือน BS5 ===== */
.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

.select2-container--default .select2-search--dropdown {
    padding: .5rem !important;
}

    .select2-container--default .select2-search--dropdown .select2-search__field {
        height: calc(2.3rem + 2px) !important;
        padding: 0.375rem 0.75rem !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        outline: 0 !important;
    }

        .select2-container--default .select2-search--dropdown .select2-search__field:focus {
            border-color: #86b7fe !important;
            box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
        }


