﻿@import 'partial/_form-floating.css';

body:not(.is-mobile) .fixed-body-content-width {
    width: 944px;
    margin: 0 auto;
}
.c-sidebar-nav-dropdown.c-show .c-sidebar-nav-link:hover {
    color: white !important;
}
.btn-square-md {
    width: 100px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: 100px !important;
    text-align: center;
    padding: 0px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
/* bootbox override */
.bootbox .modal-header {
    display: block;
}

/* end bootbox override*/

/* remove arrow spinner for input type number */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* remove arrow spinner for input type number */
disabledInput {
    pointer-events: none;
    color: #AAA;
    background: #F5F5F5;
}

.validation-summary-errors {
    color: #772b35;
    background-color: #fadddd;
    border-color: #f8cfcf;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.login-form .avatar {
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: -50px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    z-index: 9;
    background: #fff;
    padding: 15px;
    box-shadow: 0px 2px 2px rgb(0 0 0 / 10%);
}

.otp-form .text-otp {
    width: 3rem;
    height: 3rem;
    background-color: #ebedef !important;
    margin: .2rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

    .otp-form .text-otp:focus {
        border-color: #63b3ed;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(99, 179, 237, 0.9);
        outline: 0 none;
    }

button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.modal-confirm {
    color: #636363;
    width: 325px;
    font-size: 14px;
}

    .modal-confirm .modal-content {
        padding: 20px;
        border-radius: 5px;
        border: none;
    }

    .modal-confirm .modal-header {
        border-bottom: none;
        position: relative;
    }

    .modal-confirm h4 {
        text-align: center;
        font-size: 26px;
        margin: 30px 0 -15px;
    }

    .modal-confirm .form-control,
    .modal-confirm .btn {
        min-height: 40px;
        border-radius: 3px;
    }

    .modal-confirm .close {
        position: absolute;
        top: -5px;
        right: -5px;
    }

    .modal-confirm .modal-footer {
        border: none;
        text-align: center;
        border-radius: 5px;
        font-size: 13px;
    }

    .modal-confirm .icon-box {
        color: #fff;
        position: absolute;
        margin: 0 auto;
        left: 0;
        right: 0;
        top: -70px;
        width: 95px;
        height: 95px;
        border-radius: 50%;
        z-index: 9;
        background: #82ce34;
        padding: 15px;
        text-align: center;
        box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    }

        .modal-confirm .icon-box i {
            font-size: 58px;
            position: relative;
            top: 3px;
        }

    .modal-confirm.modal-dialog {
        margin-top: 80px;
    }

    .modal-confirm .btn {
        color: #fff;
        border-radius: 4px;
        background: #82ce34;
        text-decoration: none;
        transition: all 0.4s;
        line-height: normal;
        border: none;
    }

        .modal-confirm .btn:hover,
        .modal-confirm .btn:focus {
            background: #6fb32b;
            outline: none;
        }

.modal-backdrop.in {
    opacity: 0.5 !important;
}

.trigger-btn {
    display: inline-block;
    margin: 100px auto;
}

.space-filler {
    flex: 1 1 auto;
}

/*Remittance Form*/

.bootbox.modal.fade .modal-dialog {
    transform: none;
}

.bootbox.modal.fade:not(.show) {
    opacity: inherit;
}

[v-cloak] {
    visibility: hidden;
}

.alert-header {
    font-size: 20px;
    padding: 5px 0;
}

    .alert-header.danger {
        border-bottom: 1px solid #e55353;
    }

    .alert-header.warning {
        border-bottom: 1px solid #f9b115;
    }

.total-display {
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0);
    background: none !important;
    font-weight: bold;
    position: relative;
}

    .total-display::after {
        border-bottom: 1px solid #000;
        border-top: 1px solid #000;
        bottom: 0;
        content: "";
        height: 4px;
        width: 100%;
        left: 0;
        position: absolute;
    }

.form-check-input {
    height: 16px;
    cursor: pointer;
}

body:not(.is-mobile) .form-check-input {
    width: 16px;
}

.cursor-pointer {
    cursor: pointer;
}

.table-sticky-header thead tr th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 9;
    border-top: 0;
    border-bottom: 0;
}

    .table-sticky-header thead tr th:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        border-top: 1px solid #d8dbe0;
        border-bottom: 1px solid #d8dbe0;
        top: 0;
        left: 0;
        pointer-events: none;
    }

.table-sticky-header.no-top-border thead tr th:before {
    border-top: none;
}

.table-sticky-footer tfoot tr th {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 9;
    border-top: 0;
}

    .table-sticky-footer tfoot tr th:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        border-top: 1px solid #d8dbe0;
        bottom: 0;
        left: 0;
        pointer-events: none;
    }

.required-field::after {
    content: " *";
    color: #e55353 !important;
}

option:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.w-255px {
    width: 255px;
}

.small-icon-button {
    padding: 6px;
    height: 25px;
    width: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#remittance-form-table {
    border-top: none !important;
}

    #remittance-form-table th {
        padding: 5px;
    }

    #remittance-form-table thead th:first-child {
        background-color: #fff;
        padding: 0px;
        width: 0px;
        text-align: center;
    }

    #remittance-form-table.table-has-errors thead th:first-child {
        width: 30px;
    }

    #remittance-form-table thead th:first-child:before {
        border: none !important;
        background-color: #fff;
    }

    #remittance-form-table thead th:nth-child(2) {
        text-align: center;
    }

    #remittance-form-table tbody tr {
        height: 50px;
    }

    #remittance-form-table td {
        vertical-align: middle;
        padding: 5px;
        text-align: center;
    }

        #remittance-form-table td:first-child {
            vertical-align: middle;
            border: none !important;
            background-color: #fff;
            padding: 0px;
        }

        #remittance-form-table td:nth-child(2) {
            vertical-align: middle;
        }

        #remittance-form-table td .row-error-btn {
            align-items: center;
            border-radius: 50%;
            display: none;
            font-size: 12px;
            height: 25px;
            justify-content: center;
            opacity: 0;
            padding: 6px;
            transition: all 0.5s ease-in-out;
            width: 25px;
        }

    #remittance-form-table tr.has-warning td {
        border-bottom: 1px solid #f9b115;
    }

    #remittance-form-table tr.has-error td {
        border-bottom: 1px solid #e55353;
    }

    #remittance-form-table tr.has-warning td,
    #remittance-form-table tr.has-error td {
        padding-right: 6px;
    }

        #remittance-form-table tr.has-warning td .row-error-btn,
        #remittance-form-table tr.has-error td .row-error-btn {
            display: inline-flex;
            opacity: 1;
            visibility: visible;
        }

    #remittance-form-table .form-control {
        padding: 5px;
    }

    #remittance-form-table .month-picker {
        display: inline;
        width: 105px;
    }

    #remittance-form-table .year-picker {
        display: inline;
        width: 70px;
    }

/*Virtual Remittance 'Table'*/

.remittance-form-table-wrapper {
    height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
}

.remittance-form-table {
    border-top: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 1440px;
}

    .remittance-form-table.table-striped .tbody .tr-wrapper .tr.odd{
        background-color: rgba(0,0,21,.05);
    }

    .remittance-form-table .th, .remittance-form-table .td {
        display: flex;
        flex-grow: 1;
    }

    .remittance-form-table .td {
        align-items: center;
        display: flex;
        gap: 5px;
    }

    .remittance-form-table .th {
        padding: 5px;
        font-weight: bold;
    }

    .remittance-form-table .thead, .remittance-form-table .tr, .remittance-form-table .tbody {
        display: flex;
        width: 100%;
    }

    .remittance-form-table .thead .th:first-child {
        background-color: #fff;
        padding: 0px;
        width: 0px;
        text-align: center;
    }

    .remittance-form-table:not(.table-has-errors) .thead .th:first-child, .remittance-form-table:not(.table-has-errors) .tbody .td:first-child {
        display: none;
    }

    .remittance-form-table.table-has-errors .thead .th:first-child, .remittance-form-table.table-has-errors .tbody .td:first-child {
        width: 35px;
    }

    .remittance-form-table .thead .th:first-child:before {
        border: none !important;
        background-color: #fff;
    }

    .remittance-form-table .thead .th:nth-child(2) {
        text-align: center;
    }

    .remittance-form-table .tbody {
        flex-direction: column;
    }

        .remittance-form-table .tbody .tr {
            display: flex;
            height: 50px;
        }

    .remittance-form-table .td {
        align-items: center;
        padding: 5px;
        text-align: center;
    }

        .remittance-form-table .td:first-child {
            align-items: center;
            border: none !important;
            background-color: #fff;
            padding: 0px;
        }

        .remittance-form-table .td:nth-child(2) {
            align-items: center;
        }

        .remittance-form-table .td .row-error-btn {
            align-items: center;
            border-radius: 50%;
            display: none;
            font-size: 12px;
            height: 25px;
            justify-content: center;
            opacity: 0;
            padding: 6px;
            transition: all 0.5s ease-in-out;
            width: 25px;
        }

    .remittance-form-table .tr.has-warning .td {
        border-bottom: 1px solid #f9b115;
    }

    .remittance-form-table .tr.has-error .td {
        border-bottom: 1px solid #e55353;
    }

    .remittance-form-table .tr.has-warning .td,
    .remittance-form-table .tr.has-error .td {
        padding-right: 6px;
    }

        .remittance-form-table .tr.has-warning .td .row-error-btn,
        .remittance-form-table .tr.has-error .td .row-error-btn {
            display: inline-flex;
            opacity: 1;
            visibility: visible;
        }

    .remittance-form-table .form-control {
        padding: 5px;
    }

    .remittance-form-table .month-picker {
        display: inline;
        width: 105px;
    }

    .remittance-form-table .year-picker {
        display: inline;
        width: 70px;
    }

    .remittance-form-table.table-sticky-header .vue-recycle-scroller__slot:first-child {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        box-shadow: 0 2px 2px 0 rgba(var(--elevation-base-color),.14),0 3px 1px -2px rgba(var(--elevation-base-color),.12),0 1px 5px 0 rgba(var(--elevation-base-color),.2);
    }

    .remittance-form-table.table-sticky-header:not(.no-top-border) .vue-recycle-scroller__slot:first-child::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        border-top: 1px solid #d8dbe0;
        top: 0;
        left: 0;
        pointer-events: none;
    }


    .remittance-form-table.table-sticky-footer .vue-recycle-scroller__slot:last-child {
        position: sticky;
        bottom: 0;
        background-color: white;
        z-index: 9;
        border-top: 0;
    }

        .remittance-form-table.table-sticky-footer .vue-recycle-scroller__slot:last-child:before {
            content: "";
            position: absolute;
            height: 100%;
            width: 100%;
            border-top: 1px solid #d8dbe0;
            bottom: 0;
            left: 0;
            pointer-events: none;
        }

.remittance-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
    border-bottom: 1px solid #1E5631;
    gap: 4px;
}

    .remittance-tabs button {
        color: #3c4b64;
        font-weight: bold;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        border-top: 1px solid #ccc;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        border-bottom: 0;
        margin-top: 4px;
        padding: 5px 10px;
        transition: opacity 0.2s ease-in-out;
        box-shadow: 0 2px 2px 0 rgba(var(--elevation-base-color),.14),0 3px 1px -2px rgba(var(--elevation-base-color),.12),0 1px 5px 0 rgba(var(--elevation-base-color),.2);
    }

        .remittance-tabs button.active {
            color: #fff;
            background-color: #1E5631;
            border: none;
        }

        .remittance-tabs button:focus {
            outline: none;
        }

        .remittance-tabs button:hover {
            opacity: 0.8;
        }

/*#region bootstrap overrides  */
.form-control.is-valid,
.form-control.is-invalid {
    background-image: none;
    padding-right: inherit;
}

/*#region switch toggle */
.c-switch-input:not(:checked):not(:disabled) + .c-switch-slider::before {
    border-color: rgba(63, 62, 62, 0.75);
}

.c-switch-label .c-switch-input:not(:checked):not(:disabled) + .c-switch-slider::after {
    color: rgba(63, 62, 62, 0.75);
}

.c-switch-opposite-primary .c-switch-input:not(:checked):not(:disabled) + .c-switch-slider {
    background-color: inherit;
    border-color: rgba(63, 62, 62, 0.75);
}

/*#endregion switch toggle */

/*#endregion bootstrap overrides  */