/* common font and color */
:root {
    /* Colors: */
    --font-color: #333333;
    --primary-color: #005bbb;
    --primary-hover-color: #3b83f6f4;
    --second-color: #d7e1f3;
    --second-hover-color: #E7EBF7;
    --dark-color: #000;
    --light-color: #909090;
    --white-color: #ffffff;
    --btn-social-like: #DD5454;
    --btn-social-tw: #1D98CD;
    --btn-social-fb: #3D5898;
    --btn-social-share: #B8B8B8;
    --box-shadow-xss:0 8px 30px rgba(0,0,0,.05);
    --bs-btn-disabled-bg: #333;

    /* font */
    --font-main: 'Noto Sans JP', sans-serif;
    /* font size */
    --fs-8: 8px;
    --fs-10: 0.625rem;
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
}

/* active font for all */
body {
    color: var(--font-color);
    font-family: var(--font-main);
}

a {
    text-decoration: none;
    color: currentColor;
}

a.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.text-light {
    color: var(--light-color) !important;
    font-weight: 300;
}

/* css color */
.pk-color {
    color: var(--primary-color);
}

.pk-bg-color {
    background-color: var(--primary-color);
}

.second-color {
    color: var(--primary-color);
}

.second-bg-color {
    background-color: var(--primary-color);
}

/* css font size */
.fs-10 {
    font-size: var(--fs-10);
}

.fs-12 {
    font-size: var(--fs-12);
}

.fs-14 {
    font-size: var(--fs-14);
}

.fs-16 {
    font-size: var(--fs-16);
}

.fs-18 {
    font-size: var(--fs-18);
}

.fs-20 {
    font-size: var(--fs-20);
}

.fs-24 {
    font-size: var(--fs-24);
}

/* css button */

.btn {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    user-select: none;
    border: none;
}

.btn-primary {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
}

.btn-gray {
    color: var(--dark-color);
    background-color: var(--second-color);
}

.btn-gray:hover {
    background-color: var(--second-hover-color);

}

.btn-disabled {
    background-color: #333 !important;
    pointer-events: none;
    color: #fff !important;
    opacity: .3;
}

.btn-scale {
    transition: transform 0.4s !important;
}

.btn-scale:hover {
    transform: scale(1.05);
}

/* css input */
.input-box {
    border: none;
    background-color: transparent;
}

.input-box:focus-visible {
    border: none;
    border-bottom: 1px solid var(--btn-social-share);
    outline: none;
}

/* css for pc screen */

/* css for mobile screen */
@media screen and (max-width: 768px) {}

/* admin css */
#navbarSupportedContent {
    background-color: var(--light-color) !important;
}

#main-wrapper tbody tr:nth-child(odd) {
    background-color: #f5f5f5;
}

#main-wrapper .data-tables {
    margin-bottom: 16px;
    padding-top: 16px;
}

#main-wrapper .data-tables .btn-status {
    display: block;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    user-select: none;
}

#main-wrapper .data-tables .btn-status-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    min-width: 80px;
}

#main-wrapper .data-tables .btn{
    padding: 8px !important;
}

#main-wrapper .data-tables .btn.btn-danger {
    color: var(--white-color);
}
#main-wrapper .data-tables .list-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-wrapper .data-tables .btn ~ .btn {
    margin-left: 8px;
}

#main-wrapper .data-tables .btn-status-second {
    background-color: var(--second-color);
    color: var(--dark-color);
}

#main-wrapper tbody tr:nth-child(even) {
    background-color: var(--white-color);
}

#main-wrapper thead tr:nth-child(1) {
    background-color: #5c5f6d;
    color: #ffffff;
}

#main-wrapper .btn-close {
    padding: 12px;
    opacity: 1;
    background-color: var(--second-color);
    border-radius: 50%;
    right: 0px;
    top: 0px;
    transform: translate(40%, -40%);
}

.swal2-icon.swal2-warning.swal2-icon-show {
    font-size: 22px;
    margin-top: 24px;
}

.swal2-popup.swal2-modal.swal2-icon-warning.swal2-show,
.swal2-popup.swal2-modal.swal2-icon-success.swal2-show,
.swal2-popup.swal2-modal.swal2-icon-error.swal2-show {
    max-height: 100%;
}

@keyframes runDown {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Modal custom */
.modal-custom {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 998;
}

.modal-custom.show {
    display: block;
}

.modal-custom .modal-content {
    animation: runDown .15s linear;
}

.modal-custom .wrap-close {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn .15s linear;
}

.modal-custom .modal-dialog {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
}

.modal-custom .modal-content {
    border: none;
}

@media (max-width: 1200px) {
    .modal-custom .modal-dialog {
        max-width: 100%;
        margin: 1.75rem 24px;
    }
}

/* header admin */
.topbar .top-navbar{
    background-color: #ffffff;
}

.swal2-icon.swal2-warning {
    font-size: 18px !important;
}

.swal2-modal {
    max-height: unset !important;
}

.message-contact-icon {
    position: relative;
}

.message-contact-icon .dropdown-message-contact {
    position: absolute;
    background-color: #ffffff;
    margin-top: 25px;
    width: 300px;
    left: -280px;
    display: none;
    border: 1px solid #cdcdcd;
    max-height: 335px;
    overflow-y: auto;
}

.message-contact-icon .dropdown-message-contact {
    border-radius: 8px;
}

.message-contact-icon .dropdown-message-contact ul {
    padding-left: 0;
}

.message-contact-icon .dropdown-message-contact h5 {
    text-align: center;
    padding: 15px 0;
    background-color: #909090;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
}

.message-contact-icon .dropdown-message-contact ul li {
    list-style-type: none;
    padding: 10px 10px;
    border-bottom: 1px solid #cdcdcd;
}

.message-contact-icon .dropdown-message-contact ul li > a > img {
    height: 30px;
    width: 30px;
    margin-right: 8px;
}

.message-contact-icon .dropdown-message-contact ul li > a{
    display: flex;
    align-items: center;
}

.message-contact-icon .dropdown-message-contact ul li > a:hover p{
    color: #3B82F6;
}

.message-contact-icon .dropdown-message-contact ul li > a .title-name-message-contact {
    font-size: 12px;
    margin: 0;
    color: #000000;
}

.message-contact-icon .dropdown-message-contact ul li > a .title-content-message-contact {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.message-contact-icon .icon-message-contact {
    position: relative;
    margin-right: 15px;
}

.message-contact-icon .icon-message-contact i {
    color: #ffffff;
}

.message-contact-icon .icon-message-contact span {
    position: absolute;
    right: -10px;
    top: -12px;
    font-size: 8px;
    font-weight: 700;
    color: #ffffff;
    width: 15px;
    height: 15px;
    background-color: #fc0000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-contact-icon .icon-message-contact i:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.empty-message-contact {
    font-size: 25px;
    display: flex;
    margin-bottom: 10px;
    justify-content: center;
    color: #B8B8B8;
}

.empty-text-message-contact {
    font-size: 16px;
    text-align: center;
    color: #B8B8B8;
}

.nav-item-right {
    position: relative;
}

.nav-item-right::before {
    position: absolute;
    content: "";
    left: 0;
    height: 60%;
    width: 2px;
    background-color: rgb(206, 206, 206);
    margin: 12px 0 12px 6px;
}

.view-more-mail {
    padding: 6px 0 !important;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: #000000;
}
.view-more-mail:hover {
    color: var(--primary-color);
}

/* show form detail contact */
.show-form-detail-contact .modal-body .modal-body-row-name img {
    max-width: 175px;
    max-height: 175px;
    display: inline-block;
}

.show-form-detail-contact .modal-body .modal-body-row-name span {
    font-size: 14px;
    text-transform: uppercase;
}

.show-form-detail-contact .modal-body .modal-body-row-contact {
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.show-form-detail-contact .modal-body .modal-body-row-contact span {
    font-size: 14px;
    font-weight: 400;
}

.image-show-avatar-admin {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    overflow: hidden;
}
