:root {
    --main-color: #032842;
    --main-color-title-text: #6C757D;
    --main-color-edit-icon: #FFCC00;
    --main-color-delete-icon: #FF3B30;;
}

body {
    font-family: 'Kanit', sans-serif !important;
}

.breadcrumb {
    background-color: white !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>' !important;
}

.navbar_border {
    border-bottom: 4px solid #7B0002;
    z-index: 2;
    padding: 2px !important;
}

.navbar_container {
    margin: 4px 20px !important;
    max-width: 100% !important;
}

#navbarSupportedContent {
    justify-content: flex-end;
}

.dropdown-menu-logout {
    left: -5rem !important;
    top: 3rem !important;
}

.dropdown-item-logout:hover {
    background-color: white !important;
    border-radius: 20px;
}

.dropdown-item {
    cursor: pointer !important;
}

.profile_preview {
    border-radius: 50%;
    border: 1px solid #7B0002;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.main-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    padding: 88px 8px 0 8px;
    min-height: 100%;
    width: 250px;
    border-right: 1px solid #DEE2E6;
    z-index: 1;
    background: white;
}

.sidebar-menu {
    list-style: none;
    padding-left: 0;
}
.sidebar-menu .list_menu {
    padding: 8px 15px;
    margin-bottom: 16px;
}
.sidebar-menu .list_menu a {
    text-decoration: unset;
    color: #757575;
}
.sidebar-menu .list_menu .menu_name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-menu .active {
    background-color: #7B0002;
    border-radius: 25px;
}
.sidebar-menu .active.list_menu a {
    color: white !important;
}

.custom_breadcrumb {
    position: absolute;
    padding: 7px 15px;
    width: 100%;
    background: white;
    z-index: 0;
}

.custom_breadcrumb ol {
    margin-bottom: 0;
    padding-left: 16rem;
}

.content_container {
    margin-top: 55px;
    margin-left: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_container {
    background-color: white;
    border-radius: 8px;
    border-bottom: 4px solid #7B0002;
    padding: 16px;
}
.main_container .header {
    font-size: 20px;
    color: #7B0002;
}
.main_container .header .icon{
    color: #032842;
}

.content_container {
    max-width: 100% !important;
}

.content_container .container {
    padding: 0 24px 16px 24px;
    margin-left: 0;
    margin-right: 0;
    max-width: 99%;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.base_color {
    color: var(--main-color) !important;
}

.base_bg_color {
    background-color: var(--main-color) !important;
}

.base_border_color {
    border-color: var(--main-color) !important;
}

.border_tl_radius20 {
    border-top-left-radius: 20px !important;
}

.border_bl_radius20 {
    border-bottom-left-radius: 20px !important;
}

.border_tr_radius20 {
    border-top-right-radius: 20px !important;
}

.border_br_radius20 {
    border-bottom-right-radius: 20px !important;
}

.border_section {
    border-right: 1px solid #833133;
}
@media (max-width: 991px){
    .border_section {
        border: none !important;
    }
    .image_profile_responsive {
        display: flex;
        justify-content: center;
    }
    .pd_0_responsive {
        padding-left: 0 !important;
        padding-right: 16px !important;
        margin-top: 1rem;
    }
}

.title_text {
    color: var(--main-color-title-text);
    white-space: nowrap;
}

.title_layout {
    margin-bottom: 8px;
}

.field_layout {
    margin-bottom: 24px;
}

.sarabun_font {
    font-family: 'Sarabun', 'Kanit', sans-serif;
}

.edit_icon {
    color: var(--main-color-edit-icon);
    width: 16px;
    height: 24px;
}
.delete_icon {
    color: var(--main-color-delete-icon);
    width: 16px;
    height: 24px;
}

.upload_image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #833133;;
}

.upload_image .btn_upload_image {
    width: 120px;
    height: 32px;
    border: 1px solid #7B0002;
    border-radius: 31px;
    background-color: white;
    color: #7B0002;
    margin-top: 15px;
}

.upload_image .btn_hidden {
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 15px;
}

.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer .cancel_btn {
    color: #7B0002;
    text-decoration: unset;
}

.footer .btn_submit {
    background: #032842;
    border-radius: 32px;
    color: white;
    width: 104px;
    height: 40px;
}

.footer .btn_submit:hover {
    color: white;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 28px;
}

.select2-selection {
    border: 1px solid #ced4da !important;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 37px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-results__option {
    color: #343A40;
}

.btn-add {
    background: #7B0002;
    border-radius: 32px;
    color: white;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-add:hover {
    color: white;
}

.table-responsive th {
    color: #6C757D;
    font-weight: 400;
}

.pagination .paginate_button.previous, .pagination .paginate_button.next {
    width: 41px;
    height: 40px;
}

.page-item.previous.disabled .page-link, .page-item.previous .page-link {
    border: 1px solid #E9ECEF !important;
    border-radius: 20px 0px 0px 20px !important;
    color: #ADB5BD !important;
}

.page-item.active .page-link {
    background-color: #032842 !important;
    border: 1px solid #DAE2EA !important;
    color: white !important;
}

.page-link {
    color: #032842 !important;
}

.page-item.next.disabled .page-link, .page-item.next .page-link {
    border: 1px solid #E9ECEF !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    color: #ADB5BD !important;
}

.dataTables_paginate {
    padding-top: 13px !important;
}

.dataTables_info {
    padding-top: 22px !important;
    padding-left: 11rem;
    color: #ADB5BD;
}

#map, #detail_mailbox_map {
    height: 143px;
    border-radius: 8px;
    border: 1px solid #E1E1E1;
}

#detail_mailbox_map {
    height: 239px;
}

.btn_confirm_popup, .btn_cancel_popup {
    background-color: #032842;
    border-radius: 20px;
    color: white;
    border: 1px solid #032842;
    padding: 6px 25px;
}

.btn_cancel_popup {
    background-color: #7B0002;
    margin-right: 10px;
    border: 1px solid #7B0002;
}

.table-striped tbody tr:nth-of-type(odd), .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #FFFFFF !important;
}

#block_preview {
    width: 152px;
    height: 152px;
    overflow: hidden;
    background-color: grey;
    border: 4px solid #7B0002;
    border-radius: 50%;
}

.loader_body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    background-color: #212529;
    opacity: 0.8;
    display: none;
}

.loader_body .loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #7B0002;
    width: 180px;
    height: 180px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    z-index: 1001;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}