.badge.bg-purple {
    background-color: #b39ddb !important;
}

.btn-default {
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
}

.btn-orange, .btn-orange:hover, .btn-orange:focus {
    background: #FD8F46;
    color: #FFFFFF;
}

.custom-table-rounded {
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}
.custom-table-rounded td,
.custom-table-rounded th {
    border-right: none !important;
}
.custom-table-rounded tbody tr:nth-child(even) {
    background-color: #F6F6F6 !important;
}
.custom-table-rounded tbody tr:nth-child(even) td {
    background-color: #F6F6F6;
}
.custom-table-rounded tbody tr:nth-child(odd) {
    background-color: #fff !important;
}
.custom-table-rounded thead tr:first-child th:first-child {
    border-top-left-radius: 16px;
}
.custom-table-rounded thead tr:first-child th:last-child {
    border-top-right-radius: 16px;
}
.custom-table-rounded tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}
.custom-table-rounded tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}
.custom-table-rounded td:first-child {
    border-left: 1px solid #E5E5E5 !important;
}
.custom-table-rounded td:last-child {
    border-right: 1px solid #E5E5E5 !important;
}
.custom-table-rounded thead th {
    border-left: none !important;
}
.input-group.position-relative .calendar-icon {
    pointer-events: none;
}
.calendar-icon {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    height: 20px;
}
.line-doc {
    margin-top: 10px;
    z-index: 100;
    width: 1px;
    height: 24px;
    background-color: #898C94;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    min-height: 42px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    color: #BDBDBD;
    font-size: 14px;
    margin-left: 0;
    padding-left: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    min-height: 32px;
    background: transparent;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 0;
    margin: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #F6F6F6;
    border-radius: 6px;
    color: #222;
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-right: 4px;
    padding: 2px 8px 2px 22px;
    position: relative;
    border: none;
    box-shadow: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #BDBDBD;
    font-size: 14px;
    margin-left: 0;
    padding-left: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--multiple {
    position: relative;
}
.select2-container--default .select2-selection--multiple::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    transform: rotate(45deg);
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -6px;
    pointer-events: none;
    background: transparent;
}

.select2-container--default .select2-selection--multiple.filled::after {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    white-space: normal;
    word-break: break-all;
    max-width: 100%;
    display: block;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    width: 100% !important;
    min-width: 200px;
    white-space: normal !important;
}

.tooltip-inner {
    background-color: #475D17 !important;
    color: #fff !important;
    border-radius: 4px;
    white-space: break-spaces;
    overflow: hidden;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 12px !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #475D17 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #475D17 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #475D17 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #475D17 !important;
}

.badge-custom {
    border-radius: 8px;
    align-items: center;
    padding: 2px 8px;
    gap: 6px;
    font-size: 12px;
}

.badge-event {
    border-radius: 16px;
}

.bg-event-purple {
    background: #F3EAFD;
    border: 1px solid #D9BBF7;
    color: #9545D8;
}

.bg-event-info {
    background: #DEF3FF;
    border: 1px solid #75DCFF;
    color: #0091D4;
}

.bg-event-secondary {
    background: #CCFBEF;
    border: 1px solid #5FE9CD;
    color: #0E9381;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb-item {
    color: #4F4F4F;
}

.breadcrumb .active {
    color: #FD8F46;
}

.event-detail, .event-summary {
    padding: 24px 32px;
}

.title-event {
    font-size: 30px;
}

.event-file-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
}

.event-file-link .fw-bold {
    font-weight: bold;
}

.content-event {
    display: flex;
    align-items: flex-start;
    margin: unset;
}

.event-date {
    margin-left: -10px;
}

@media (min-width: 992px) {
    .col-lg-11 {
        flex: 0 0 auto;
        width: 95.666667%;
    }
}

.search-icon-inside {
    position: absolute;
    left: 15px;
    top: 45%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.7;
}

.mt-not-login {
    margin-top: 105px;
}

.btn-waiting-cancel,
.btn-waiting-cancel:hover,
.btn-waiting-cancel:focus,
.btn-waiting-cancel:focus-visible {
    background-color: #00B0F0;
    border: #00B0F0;
}

.invalid-feedback {
    display: block !important;
}

@media (max-width: 1285px) {
    .content-event .event-detail, .event-summary {
        width: 100%;
    }
}

.btn-action-single {
    display: flex;
    width: 100%;
    white-space: nowrap;
    font-size: 14px;
    height: 40px;
}

.custom-table-rounded td,
.custom-table-rounded th {
    padding: 12px 16px !important;
    vertical-align: middle;
}

.custom-table-rounded td:last-child {
    text-align: center;
}

.custom-table-rounded td:last-child .text-start {
    text-align: left !important;
    display: block;
}

.event-list-container {
    width: 100%;
}

.event-type {
    display: flex;
    align-items: center;
}

.type-title {
    width: 65%;
}

.type-title span {
    display: block;
    width: fit-content;
}

.limit-enrollment {
    width: 35%;
}

/* Custom scrollbar for better UX */

@media (max-width: 768px) {
    .table-responsive-custom {
        overflow-x: scroll;   /* luôn bật thanh cuộn ngang */
        overflow-y: hidden;   /* ẩn thanh cuộn dọc nếu không cần */
    }

    .table-responsive-custom::-webkit-scrollbar {
        height: 3px;           /* chiều cao scrollbar ngang trên Chrome, Safari */
    }

    .table-responsive-custom::-webkit-scrollbar-thumb {
        background-color: #aaa;
        border-radius: 6px;
    }

    .table-responsive-custom::-webkit-scrollbar-track {
        background-color: #f1f1f1;
    }
}


