@font-face {
    font-family: 'AppFont';
    src: url('../fonts/UbuntuSans-VariableFont_wdth,wght.ttf');
}

html, body {
    font-family: 'AppFont';
}

.content-wrapper.fill-height {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-page, .register-page {
    height: 100vh !important;
}

@keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.animation__rotate {
    -webkit-animation: rotate 0.8s linear;
    animation: rotate 0.8s linear;
}

.animation__rotate:not([style*="display: none"]) {
    animation-iteration-count: infinite;
}

.swal2-styled.swal2-confirm {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.swal2-styled.swal2-cancel {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.text-inherit {
    color: inherit !important;
}

a.disabled {
    pointer-events: none !important;
    opacity: 0.7;
    user-select: none !important;
}

.text-box-with-floating-btn {
    position: relative;
}

.text-box-with-floating-btn .form-control {
    padding-right: calc(2.25rem + 2px);
}

.text-box-with-floating-btn .btn-floating {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(2.25rem + 2px);
    height: calc(2.25rem + 2px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

th.is-orderable {
    position: relative;
    padding-right: 2em;
    cursor: pointer;
}

th.is-orderable:hover {
    box-shadow: 0px 0px 1px #000 inset;
}

th.is-orderable::before,
th.is-orderable::after {
    font-family: "Font Awesome 6 Free";
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    font-size: 0.7em;
    line-height: 1;
    text-rendering: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1.5em;
    opacity: 0.5;
}

th.is-orderable::before {
    content: "\f062";
}

th.is-orderable::after {
    content: "\f063";
    right: 0.7em;
}

th.is-orderable.is-ordered-asc::before,
th.is-orderable.is-ordered-desc::after {
    opacity: 1;
}

.inline-form-control {
    display: inline-block !important;
    width: unset !important;
}

th.td-action,
td.td-action {
    text-align: center;
    vertical-align: middle;
}

/* Billing screen css */
.bg-100 {
    background-color: #F8F9FA !important;
    color: #212529;
}

table.is-num-pad {
    border-collapse: unset;
    width: 20vw;
    height: 20vw;
    border-spacing: 0.2em;
    table-layout: fixed;
}

.input-group .ic-text {
    height: 100%;
    width: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.bg-white .input-group .ic-text {
    border-color: #CED4DA;
}

.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .ic-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .input-group-prepend > .btn,
.input-group > .input-group-prepend > .ic-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Setting width and height to the <td> element to avoid styling issue with Firefox */
table.is-num-pad td {
    width: 25%;
    height: 25%;
}

table.is-num-pad td .btn-numpad {
    width: 100%;
    height: 100%;
    font-size: 2em;
}

#new_sale_order_table_parent.calcBy-productCode {
    height: 30vh !important;
    overflow: auto;
}

#new_sale_order_table_parent.calcBy-productId {
    overflow: unset;
}

.rotate-90 {
    transform: rotate(90deg);
}

.vh-align-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 1024px) {
    table.is-num-pad {
        width: 30vw;
        height: 30vw;
    }

    table.is-num-pad td .btn-numpad {
        font-size: 1.8em;
    }
}

@media only screen and (max-width: 768px) {
    table.is-num-pad {
        width: 40vw;
        height: 40vw;
    }

    table.is-num-pad td .btn-numpad {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 480px) {
    table.is-num-pad {
        width: 50vw;
        height: 50vw;
    }

    table.is-num-pad td .btn-numpad {
        font-size: 1.2em;
    }
}

#new_sale_order_table > tbody > tr > td {
    padding: 0.375rem 0.75rem;
    height: 2em;
}

#new_sale_order_table td.is-editable.is-focused {
    background-color: lightcyan;
    border-color: lightcyan;
}

.btn:disabled {
    cursor: not-allowed;
}

#new_sale_order_table > tbody > tr > td.is-invalid {
    /* background-color: #ef9a9a; */
    border: 2px solid #dc3545 !important;
}

.portal-sale-order-receipt {
    width: 300px;
    height: auto;
    padding: 1em;
    z-index: 2147483647;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.portal-sale-order-receipt,
.portal-sale-order-receipt * {
    background: #fff;
    color: #000;
}

.portal-sale-order-receipt .portal-sale-order-receipt-logo > img {
    height: 5em;
}

.portal-sale-order-receipt .portal-sale-order-receipt-contact,
.portal-sale-order-receipt .portal-sale-order-receipt-order-data {
    font-size: 75%;
}

@media print {
    .hide-on-print * {
        visibility: hidden;
        height: 0 !important;
    }

    .portal-sale-order-receipt {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        transform: none !important;
    }

    .portal-sale-order-receipt,
    .portal-sale-order-receipt * {
        visibility: visible !important;
        height: auto !important;
    }

    .portal-sale-order-receipt .portal-sale-order-receipt-logo > img {
        height: 5em !important;
    }

    .portal-sale-order-receipt th, .portal-sale-order-receipt td {
        border: 0 !important;
    }

    @page {
        margin: 0;
    }
}

.table-sticky-header {
    position: relative;
}

.table-sticky-header > thead {
    position: sticky;
    top: 0;
}

.payment_mode_field_parent.is-invalid {
    color: #dc3545;
}

.is-invalid > .input-group > .form-control {
    border-color: #dc3545;
}

.is-invalid > .input-group ~ .is-invalid > label {
    color: #dc3545;
}

.is-invalid > .invalid-feedback {
    display: block;
}

.w-preloader {
    width: 100%;
    height: auto;
    position: relative;
}

.w-preloader.is-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.w-preloader.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    z-index: 2;
    width: 10%;
    height: 10%;
    transform-style: preserve-3d;
    background: url('/assets/img/logo.png') no-repeat;
    background-size: contain;
    background-position: center;
    animation: rotate 0.8s linear infinite;
}

.text-hint {
    font-size: 0.8em;
    opacity: 0.8;
}

.form-group .text-hint {
    padding: 0 .75rem;
}

.form-group.is-required-field > label::after,
th.is-required-field::after {
    content: '*';
    color: #f00;
    margin-left: 0.3em;
}

.form-group:has(.is-invalid) ~ .invalid-feedback,
.input-group:has(.is-invalid) ~ .invalid-feedback {
    display: block;
}

.css-b62m3t-container.is-invalid .css-13cymwt-control {
    border-color: #dc3545;
}

td.valign-center {
    vertical-align: middle;
}

.tooltip {
    z-index: 9999;
}

@media (max-width: 576px) {
    .sm-text-center {
        text-align: center;
    }

    .sm-mt-3 {
        margin-top: 1rem !important;
    }
}

.app-data-table > thead > tr > th {
    user-select: none;
    -moz-user-select: noen;
    -webkit-user-select: none;
    white-space: pre-line;
}

.user-panel .image {
    display: inline-flex;
    align-items: center;
}

.no-data-placeholder {
    opacity: 0.7;
    text-align: center;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}
