.datepicker:not(.active),
.datepicker-en:not(.active) {
    display: block !important;
    font-family: inherit;
}

.datepicker-en:not(.active) {
    width: auto !important;
    z-index: 5 !important;
    direction: ltr;
}

.input-group-addon {
    padding: 12px 15px !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 48.6px !important;
    padding: 12.8px 12px !important;
    border-radius: 8px !important;
}

.select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__rendered {
    color: #5b6b79 !important;
    font-size: 0.875rem;
}

.datepicker[readonly],
.hasDatepicker[readonly] {
    opacity: 1 !important;
}

.file_manager .file .hover {
    position: absolute;
    right: 10px;
    top: 10px;
    transition: all 0.2s ease-in-out;
    display: none;
}

.file_manager:hover .hover {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
}

.select2-results__option--group {
    padding: 0.375rem 0.75rem !important;
}
.select2-container--bootstrap-5
    .select2-dropdown
    .select2-results__options
    .select2-results__option[role="group"]
    .select2-results__group {
    padding: 0px !important;
    font-weight: 600 !important;
}
.select2-results__options--nested {
    padding-left: 1rem !important;
}

.dropdown-toggle::after {
    margin-top: 10px !important;
}

tbody td {
    vertical-align: top !important;
}

.steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: auto;
    position: relative;
    padding: 0;
}

.steps-horizontal::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-horizontal {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.step-description {
    font-size: 12px;
    color: #adb5bd;
    max-width: 150px;
    margin: 0 auto;
}

.step-horizontal.active .step-icon {
    background: #4361ee;
    border-color: #4361ee;
    color: white;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

.step-horizontal.complete .step-icon {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.stepper {
    display: none;
}

.stepper.active {
    display: block;
    width: 100%;
}

button:disabled,
button.disabled {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* ปิด hover ทุกกรณี */
button:disabled:hover,
button.disabled:hover {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* ถ้ามี icon ข้างใน */
button:disabled i,
button.disabled i {
    pointer-events: none !important;
}

.btn-link-danger:disabled,
.btn-link-danger.disabled {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5;
}

.btn-link-danger:disabled:hover {
    background: none !important;
    color: inherit !important;
}
