@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)
}

.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-content-custom {
    display: none
}

    .tab-content-custom.active {
        display: block;
    }

.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;
    }
/* end css tabs */
.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;
    }*/

.ari-page-container .mud-drawer-fixed.mud-drawer-responsive.mud-drawer-clipped-always {
    height: 100%;
    background-color: #FFFFFF
}

.ari-page-container.ari-page-login .mud-main-content .mud-container,
.ari-page-container .mud-main-content {
    padding: 0 !important;
}

.ari-page-container.ari-page-login .mud-typography-h5 {
    display: none;
}
/*language*/
.fi {
    position: relative;
    display: inline-block;
    width: 1.33333333em;
    line-height: 1em;
    height: 17px;
    background-repeat: no-repeat;
}

.mud-table {
    padding: 15px;
    background-color: #FFFFFF;
}

.mud-drawer--closed .mud-icon-button {
    position: fixed;
    top: 20px;
    left: 0px;
}

.mud-drawer--closed .mud-icon-button .mud-icon-button-label {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 70px;
    font-family: 'FontAwesome', sans-serif;
    background-color: rgba(255, 255, 255, 0.5);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.mud-drawer--closed .mud-icon-button .mud-icon-button-label {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.mud-drawer--closed .mud-icon-button .mud-icon-button-label::before {
    content: "\f054";
    font-family: 'FontAwesome', sans-serif;
    display: inline-block;
    text-align: center;
    line-height: 70px;
    font-size: 18px;
}

.mud-drawer--closed .mud-icon-button .mud-icon-button-label > svg {
    opacity: 0;
}

.mud-icon-button:hover {
    background-color: transparent !important;
}

.custom-footer-menu__content {
    background: #FFFF !important;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-footer-menu__bottom > div >div{
    color:#333;
}

.custom-footer-menu__bottom i {
    color: #333;
}
.custom-menu-logout {
    width: var(--mud-drawer-width-left);
}

.mud-drawer--closed .custom-menu-logout {
    display:none;
}

.custom-menu > .mud-navmenu {
    padding-bottom: 80px !important;
}

/*preview */
.ari-page-Ari-WebModule-FormBuilder-Pages-Form-Preview-Index aside.mud-drawer-pos-left {
    display:none;
}

.ari-page-Ari-WebModule-FormBuilder-Pages-Form-Preview-Index .mud-main-content {
    margin-left:0 !important;
}

.ari-page-Ari-WebModule-FormBuilder-Pages-Form-Preview-Index .mud-container--gutters {
    padding-left: 0;
    padding-right: 0;
}
/*endpreview */

