@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --color-grid: #E3F2FC;
    --color-border: #E0E0E0;
    --bg-color: #F7F7F9;
    --button-search-bg: #007BFF;
    --button-clear-bg: #EAEAEA;
    --button-delete-bg: #FFD1D5;
    --button-delete-color: #DC3545;
    --button-clear-color: #2B2B2B;
    --button-search-color: #FFFFFF;
}

html {
    font-family: "Inter", sans-serif !important;
}

body {
    background-color: var(--bg-color)
}

.tab-content-custom{
    display:none
}
    .tab-content-custom.active {
        display: block;
    }
    /*.mud-main-content .mud-container {
    background-color: var(--bg-color) !important;
    padding-bottom: 80px;
}*/
    /* css rasawidget */
    #rasaWidget > div > div:nth-child(2) > div.flex-row-reverse > div > div:nth-child(1) {
        background-color: #147CF5 !important;
    }

    #rasaWidget > div > div:nth-child(2) > div.flex-row-reverse > div > div:nth-child(1) p {
        margin-bottom: 0 !important;
    }

#rasaWidget > div #dropdown > ul {
    margin-bottom: 0 !important;
    padding-left: 0;
}

#rasaWidget p {
    margin-bottom: 0 !important;
}

/* css rasawidget end*/


/*grid css*/

table thead {
    background-color: var(--color-grid);
    font-size: 13px
}

.table-bordered thead td,
.table-bordered thead th {
    border: unset !important;
}

.btn.btn-primary {
    background-color: var(--button-search-bg) !important;
    color: var(--button-search-color) !important;
}

.btn-secondary {
    background-color: var(--button-clear-bg) !important;
    color: var(--button-clear-color) !important;
    border: unset;
}

.btn-danger {
    background-color: var(--button-delete-bg) !important;
    color: var(--button-delete-color) !important;
    border: unset;
}

.table tbody:not(:has(*)) {
    position: relative;
    height: 283px;
}

    .table tbody:not(:has(*))::before {
        content: "";
        background-repeat: no-repeat;
        background-position-x: center;
        background-position-y: 52px;
        background-color: #fff;
        position: absolute;
        width: 80px;
        height: 132px;
        left: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

table td {
    border: unset !important;
    border-top: 1px solid #dee2e6;
}

.grid-action .action-button-waper > fieldset > .fieldset-body {
    margin-bottom: 0;
    position: absolute;
    top: 0;
    display: none;
    background-color: #F3F5F9;
    z-index: 100;
    width: 150px;
    right: 0;
    padding: 0 !important;
    box-shadow: unset;
    border: none;
    border-radius: unset;
}

.grid-action .builder-component .action-button-waper > fieldset > .fieldset-body {
    position: initial;
    display: block;
    transform: none;
}

.grid-action .builder-component .action-button-waper {
    visibility: visible;
    overflow: unset;
    opacity: 1;
}

    .grid-action .builder-component .action-button-waper .formio-component-button,
    .grid-action .action-button-waper .formio-component-button,
    .grid-action .action-button-waper button,
    .grid-action .builder-component .action-button-waper button {
        background-color: transparent !important;
        border: unset;
        margin-bottom: 0 !important;
        color: #333333;
    }

.grid-action .action-button-waper {
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
}

    .grid-action .action-button-waper .builder-components tr:hover {
        display: block;
    }

.grid-action tbody > tr:hover {
    background-color: #F3F5F9;
    border: 1px solid #E0E0E0;
    box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    z-index: 2;
}

    .grid-action tbody > tr:hover .action-button-waper {
        visibility: visible;
        opacity: 1;
        overflow: unset;
    }

        .grid-action tbody > tr:hover .action-button-waper .fieldset-body {
            display: flex;
            flex-wrap: nowrap;
            flex-direction: row;
            justify-content: flex-end;
            min-width: unset;
        }

.grid-action .action-button-waper > fieldset > .fieldset-body button.btn-action {
    background-color: #F3F5F9 !important;
    border-radius: unset;
}

.grid-action .action-button-waper .fieldset-body .formio-component-button {
    margin-top: 0;
    width: auto;
}

.grid-action .table > :not(caption) > * > * {
    padding: 8px 10px !important;
}

/*.grid-action .datagrid-table thead tr th:last-child {
    padding: 0 !important;
}*/

.grid-action .status-grid > p {
    white-space: nowrap;
}

.grid-action .datagrid-table > tbody > tr > td:last-child {
    padding: 0 !important;
}

    .grid-action .datagrid-table > tbody > tr > td:last-child .action-button-waper:before {
        display: none;
    }

.grid-action button.btn-action:hover {
    opacity: 1;
}

.grid-action .action-button-waper fieldset .fieldset-body:not(:has(button))::before {
    background-color: #F3F5F9 !important;
    margin-bottom: 0;
    margin-top: 0;
    padding: 10px;
}

.grid-action table thead tr th {
    white-space: nowrap;
}
/*
    .grid-action table thead tr th:nth-last-child(2) {
        text-align: center;
    }*/

table .form-check-input {
    position: inherit;
}

.formio-component-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

    .formio-component-pagination > div:nth-child(2),
    .formio-component-pagination > div > div {
        display: none !important;
    }

    .formio-component-pagination ul.pagination {
        gap: 8px;
    }

.add-button-form-list {
    position: absolute;
    right: 0;
    top: -64px;
    z-index: 100;
}

.builder-component .add-button-form-list {
    position: static
}

.grid-type-detail table {
    border: unset !important;
}

.grid-type-detail tfoot {
    text-align: center;
}

.grid-type-detail thead {
    display: none
}

.grid-type-detail td {
    padding-left: 0;
    padding-right: 0;
}

table tbody tr:not(:last-child) {
    border-bottom: 1px solid #D4D4D4;
}

.grid-type-detail-not-border table tbody tr:not(:last-child) {
    border-bottom: unset;
}

.grid-type-detail tbody tr {
    position: relative;
}

    .grid-type-detail tbody tr td .formio-button-remove-row:last-child {
        position: absolute !important;
        right: 0;
        top: 0;
        background-color: transparent !important;
        color: #DC3737 !important;
    }

.formio-button-remove-row i:before {
    content: "\f1f8";
}

.grid-type-detail.grid-type-detail-3-col table tbody {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .grid-type-detail.grid-type-detail-3-col table tbody tr {
        width: calc(100%/3)
    }
/*end css grid*/
/*css tabs */
.tab-buttons {
    border-bottom: 1px solid #D1D1D1;
}
    .tab-buttons .tab-button{
        position:relative;
        padding:15px;
        font-weight:bold;
    }
        .tab-buttons .tab-button.active {
            color: #0ea5e9;
        }
        .tab-buttons .tab-button.active:before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #0ea5e9;
            height: 2px;
        }

    .formio-component-tabs .card {
        border: unset;
    }

.formio-component-tabs .card-header {
    background-color: transparent;
}

    .formio-component-tabs .card-header .card-header-tabs .nav-item .nav-link.active {
        border: unset;
        color: #00BC9D;
        border-bottom: 2px solid #00BC9D;
        font-weight: 600;
    }

.formio-component-file > .field-wrapper > div:first-child,
.formio-component-textinfo .col-form-label,
.formio-component-radio > .field-wrapper > div:first-child,
.formio-component-NICForm > .field-wrapper > div:first-child,
.formio-component-password > .field-wrapper > div:first-child,
.formio-component-phoneNumber > .field-wrapper > div:first-child,
.formio-component-number > .field-wrapper > div:first-child,
.formio-component-email > .field-wrapper > div:first-child,
.formio-component-datetime > .field-wrapper > div:first-child,
.formio-component-textfield > .field-wrapper > div:first-child,
.formio-component-select > .field-wrapper > div:first-child {
    width: 160px !important;
    flex: unset !important;
    margin: 10px;
    font-weight: 500;
}

.col-form-label {
    font-weight: 500;
}

.field-wrapper {
    align-items: center;
}

.wraper--buttons-action-form > fieldset > .fieldset-body {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* popup-custom */
.swal-modal > span {
    display: block;
    color: var(--color-main);
    text-align: center;
    max-width: 100%;
    font-size: 0.875rem;
    margin-top: 16px;
    font-weight: 400;
}

.toast-title > span {
    padding-left: 10px;
}

.copy-account-no {
    font-size: 1rem;
}

.swal-overlay {
    z-index: 9999999999 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formio-custom-select svg {
    top: calc(50% - 2px) !important;
}

.swal-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 30px;
}

.swal-button {
    min-width: 155px;
}

.swal-text {
    color: var(--color-main);
    text-align: center;
    max-width: 100%;
}

.swal-overlay:before {
    content: none;
}

.image-qr-code-wrapper > div > .qr-code-item-qr-code > div {
    width: 180px;
    margin: auto;
}

.swal-title {
    order: -1;
    width: 100%;
    border-radius: 30px 30px 0 0;
    color: var(--white-color);
    padding: 14px 0;
    padding-bottom: 14px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1.125rem;
}

    .swal-title:not(:last-child) {
        margin-bottom: 0;
    }

    .swal-title:not(:first-child) {
        padding-bottom: 14px;
    }

.swal-icon--error + .swal-title {
    background-color: var(--error-color);
}

.swal-icon--success + .swal-title {
    background-color: var(--success-color);
}

.swal-icon--warning + .swal-title {
    background-color: var(--warning-color);
}

.swal-footer {
    text-align: center !important;
}

.swal-button:focus {
    box-shadow: none !important;
}

.swal-button--cancel {
    color: var(--white-color);
}

.swal-icon--error__x-mark {
    display: none;
}

.swal-icon {
    width: 60px;
    height: 60px;
    border-width: 0;
    border-style: 0;
    border-radius: 0;
    padding: 0;
    position: 0;
    box-sizing: content-box;
    margin: 16px auto;
    background-repeat: no-repeat;
    background-size: contain;
}

.swal-icon--success:before,
.swal-icon--success:after {
    content: none;
}

.swal-icon--success__ring,
.swal-icon--success__line--long,
.swal-icon--success__line--tip,
.swal-icon--success__hide-corners,
.swal-icon--warning__body {
    display: none;
}


/* popup-custom-end */

.formio-component-columns {
    justify-content: space-between;
}

    .formio-component-columns .col-md-6 {
        width: 46% !important;
        max-width: unset;
        flex: unset;
    }

.form-radio.radio,
.custom-flex-items > fieldset > .fieldset-body {
    display: flex;
    align-items: center;
    gap: 15px
}

.custom-flex-items > fieldset > .fieldset-body {
    margin: 10px;
}

/*.bottom-action-button {
    position: fixed;
    left: 240px;
    bottom: 0;
    right: 0;
    background-color: #F3F5F9;
    box-shadow: 1px -2px 5px 0px rgba(0,0,0,0.25);
    -webkit-box-shadow: 1px -2px 5px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 1px -2px 5px 0px rgba(0,0,0,0.25);
    margin-bottom: 0 !important
}
*/
/*.mud-drawer-close-responsive-md-left .bottom-action-button {
    left: 0;
}*/

/*.component-preview .bottom-action-button,
.builder-component .bottom-action-button {
    position: static;
}*/

.bottom-action-button  fieldset  .fieldset-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    gap:15px;
}

    .bottom-action-button > fieldset > .fieldset-body fieldset > .fieldset-body {
        padding: 0;
        gap: 15px
    }


    .bottom-action-button fieldset .fieldset-body .formio-component-button,
    .bottom-action-button fieldset .fieldset-body button {
        margin-bottom: 0 !important
    }
/*
.fileSelector{
    font-size:0;
}
    .fileSelector .fa.fa-camera {
        font-size: 0;
    }
    .fileSelector .browse {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        font-size: 0;
    }*/
/*language*/
.fi {
    position: relative;
    display: inline-block;
    width: 1.33333333em;
    line-height: 1em;
    height: 17px;
    background-repeat: no-repeat;
}
/*end language*/

/* CuongDM custom popup */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}

    .custom-popup > fieldset > .fieldset-body,
    .custom-popup > table {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        width: 30%;
        padding: 24px;
        border-radius: 8px
    }

        .custom-popup > table td {
            padding: 0;
        }

    .custom-popup.active {
        opacity: 1;
        visibility: visible;
        z-index: 2000;
    }

.control-detail.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}

.control-detail.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.wrapper-field-popup {
    padding: 8px 16px;
}

.wrapper-button-popup > fieldset > .fieldset-body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
    gap: 15px;
}

.wrapper-field-start > fieldset > .fieldset-body {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}
/* End custom popup */


/* User profile */
.password-wapper > fieldset > .fieldset-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar-wapper .fieldset-body .logoImage .fileSelector {
    border-radius: 100%;
    overflow: hidden;
}

.profile-avatar-wapper .fieldset-body .logoImage a.browse {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    background-color: rgba(0, 0, 0, 0.405);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .profile-avatar-wapper .fieldset-body .logoImage a.browse:before {
        content: '\f030';
        font-family: 'FontAwesome';
        font-size: 15px;
        color: var(--black-800);
    }

.profile-avatar-wapper div.btn-remove-image {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 5px;
    background-color: transparent;
    box-shadow: unset;
}

.profile-avatar-wapper button.btn-remove-image:focus,
.profile-avatar-wapper button.btn-remove-image {
    background-color: transparent !important;
    border: none;
    color: #656565 !important;
    box-shadow: none;
}

.profile-avatar-wapper .fieldset-body .logoImage span > img {
    z-index: 0;
}

.profile-avatar-wapper .fieldset-body .logoImage {
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.profile-avatar-wapper .formio-component-avatar {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 100%;
}

.custom-wraper-profile-password .card-body,
.profile-wapper-page {
    padding: 40px 60px;
    background-color: #ffff;
}

.label-user-info {
    font-size: 14px;
    color: #667085;
    line-height: 22px;
    font-weight: 500;
}

.value-user-info {
    font-size: 15px;
    color: #101828;
    line-height: 26px;
    font-weight: 500;
    overflow-wrap: break-word;
}

.edit-profile {
    background-color: #7D70CA !important;
    border-radius: 4px !important;
    color: #ffff !important;
    position: absolute !important;
    right: 0 !important;
    color: #ffff !important;
    border: unset !important;
    top: -90px;
    width: 200px;
}

.colum-profile {
    margin-bottom: 50px;
}

.image-default {
    position: relative;
    display: block;
}

    .image-default::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 150px;
        height: 150px;
        background-repeat: no-repeat;
        background-position: center;
    }


.profile-avatar-wapper .fieldset-body {
    display: flex;
    align-items: center;
    width: fit-content;
    position: relative;
}

    .profile-avatar-wapper .fieldset-body .logoImage {
        background: transparent;
        color: transparent;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin-bottom: 0;
    }

        .profile-avatar-wapper .fieldset-body .logoImage .fileSelector {
            border: none;
            font-size: 0;
            display: flex;
            text-align: center;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
        }


            .profile-avatar-wapper .fieldset-body .logoImage .fileSelector i {
                display: none;
            }

        .profile-avatar-wapper .fieldset-body .logoImage span > img {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            width: 100% !important;
            height: 100%;
            object-fit: contain;
            background: #D1D1D1;
            border-radius: 50%;
        }

.profile-avatar {
    object-fit: cover;
    /* width: 74px;
    height: 74px; */
}

.profile-avatar-wapper .fileSize, .profile-avatar-wapper .fileName {
    display: none;
}

.profile-avatar-wapper .alert.alert-danger {
    width: 250px;
    font-size: 0.8333rem;
    background: transparent;
    padding: 0;
    border: none;
}
/* End User profile  */

/*menu  */
.custom-menu nav .custom-menu-item .custom-menu-item-icon {
    color: #FFFFFF;
}
.mud-nav-link .mud-nav-link-text {
    margin-inline-start: 18px;
}
/*end menu*/