:root {
    --b-divider-thickness: 1px;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

body {
    margin: 0;
    font-family: Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif;
    font-size: .825rem;
    font-weight: 400;
    line-height: 1.625;
    color: #6c757d;
    text-align: left;
    background-color: #f7f9fc;
}

.main {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left .35s ease-in-out,left .35s ease-in-out,margin-right .35s ease-in-out,right .35s ease-in-out;
    flex-direction: column;
}

.content {
    padding: 2.5rem 2.5rem 1.5rem;
    flex: 1;
    direction: ltr;
}

.badge {
    display: inline-block;
    padding: .3em .45em;
    font-size: 80%;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .2rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn {
    font-weight: 400;
    padding: .25rem .7rem;
    font-size: .825rem;
    line-height: 1.625;
    border-radius: .2rem;
}

.btn-group-sm > .btn, .btn-sm {
    padding: .15rem .5rem;
    font-size: .75rem;
    line-height: 1.625;
    /*border-radius: .1rem;*/
}

.btn-group-lg > .btn, .btn-lg {
    padding: .35rem 1rem;
    font-size: .95rem;
    line-height: 1.625;
    /*border-radius: .3rem;*/
}

.btn-close {
    box-sizing: content-box;
}

.btn-atares-green {
    --bs-btn-color: #fff;
    --bs-btn-bg: #008383;
    --bs-btn-border-color: #008383;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006d6d;
    --bs-btn-hover-border-color: #006060;
    --bs-btn-focus-shadow-rgb: 0, 131, 131;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #006060;
    --bs-btn-active-border-color: #005555;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #008383;
    --bs-btn-disabled-border-color: #008383;
}


.searchable-dropdown-toggle.btn.dropdown-toggle.btn-outline-primary,
.searchable-dropdown-toggle.btn.dropdown-toggle.btn-outline-secondary,
.searchable-dropdown-toggle.btn.dropdown-toggle.btn-outline-dark {
    border: 1px solid !important;
    border-color: var(--bs-btn-border-color) !important;
    text-align: left;
}

.searchable-dropdown-menu {
    margin-top: 5px;
}

    .searchable-dropdown-menu .dropdown-item {
        border-top: 1px solid #f1f3f5;
        font-size: 0.825rem;
    }

.card {
    margin-bottom: 24px;
    box-shadow: 0 0 0.875rem 0 rgb(41, 48, 66/5%);
}

    .card .card-header .card-title {
        font-size: .95rem;
        font-weight: 500;
        color: #414b54;
        line-height: 2;
        margin-bottom: 1rem;
    }

.card-subtitle {
    font-weight: 400;
    margin-top: -.5rem;
}

.card-subtitle, .card-text:last-child {
    margin-bottom: 0;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.84062rem + 2px);
    padding: .25rem .7rem;
    font-size: .825rem;
    font-weight: 400;
    line-height: 1.625;
    color: #414b54;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .2rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(1.84062rem + 2px);
    padding: .25rem 1.7rem .25rem .7rem;
    font-size: .825rem;
    font-weight: 400;
    line-height: 1.625;
    color: #414b54;
    vertical-align: middle;
    border: 1px solid #ced4da;
    border-radius: .2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: .25rem .7rem;
    margin-bottom: 0;
    font-size: .825rem;
    font-weight: 400;
    line-height: 1.625;
    color: #414b54;
    text-align: center;
    white-space: nowrap;
    background-color: #e2e8ee;
    border: 1px solid #ced4da;
    border-radius: .2rem;
}

.input-group-lg > .custom-select, .input-group-lg > .form-control, .input-group-lg > .input-group-append > .btn, .input-group-lg > .input-group-append > .input-group-text, .input-group-lg > .input-group-prepend > .btn, .input-group-lg > .input-group-prepend > .input-group-text {
    padding: .35rem 1rem;
    font-size: .95rem;
    line-height: 1.625;
    border-radius: .3rem;
}

.input-group-sm > .custom-select, .input-group-sm > .form-control:not(textarea) {
    height: calc(1.51875rem + 2px);
}

.input-group-sm > .custom-select, .input-group-sm > .form-control, .input-group-sm > .input-group-append > .btn, .input-group-sm > .input-group-append > .input-group-text, .input-group-sm > .input-group-prepend > .btn, .input-group-sm > .input-group-prepend > .input-group-text {
    padding: .15rem .5rem;
    font-size: .75rem;
    line-height: 1.625;
    border-radius: .1rem;
}

.table.b-datagrid + .row {
    padding-left: 1rem;
    padding-right: 1rem;
}

.table.sales-grid tr td {
    vertical-align: middle;
}

.table-column-code {
    width: 75px;
}

.table-column-amount {
    width: 100px;
}

.nav.nav-tabs .nav-item .nav-link.active {
    background: #fff;
    color: #020202;
}

.nav.nav-tabs .nav-item .nav-link {
    background: transparent;
    color: #020202 !important;
    padding: .75rem 1rem;
}

.tab-content h4 {
    font-size: .95rem;
}

.tab-vertical-left .col-auto {
    padding-right: 0;
}

.tab-vertical-left .col {
    padding-left: 0;
}

.tab-vertical-right .col-auto {
    padding-left: 0;
}

.tab-vertical-right .col {
    padding-right: 0;
}

h6 {
    font-size: .825rem;
}

.text-sm {
    font-size: .75rem;
}

.text-lg {
    font-size: .95rem;
}

.illustration {
    background: white;
    color: #497aca;
}

.stat {
    background: #e0eafc;
    border-radius: 50%;
    padding: .75rem;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
}

    .stat i {
        color: #497aca !important;
        text-align: center !important;
    }


a {
    text-decoration: none;
    /*color: inherit;*/
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* GroupBox card styling */
.groupbox-card {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding-top: 1.25rem; /* Space for the legend */
    position: relative;
    margin-top: 0.5rem;
}

    .groupbox-card .card-header {
        position: absolute;
        top: -0.75rem; /* Overlap the border */
        left: 1rem; /* Align with card content */
        background-color: #fff;
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        font-weight: bold;
        line-height: 1;
        border: 1px solid #ced4da;
        -moz-border-radius: inherit;
        -webkit-border-radius: inherit;
        border-radius: inherit;
    }

/* Login styling */
.container-login100 {
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #061B2E;
    /*    background: -webkit-linear-gradient(-135deg, #00d4ff, #020024);
    background: -o-linear-gradient(-135deg, #00d4ff, #020024);
    background: -moz-linear-gradient(-135deg, #00d4ff, #020024);
    background: linear-gradient(-135deg, #00d4ff, #020024);*/
}

.wrap-login100 {
    width: 850px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 150px 100px;
}

.login100-pic {
    width: 250px;
}

    .login100-pic img {
        max-width: 100%;
    }

.login100-form {
    width: 290px;
}

.login100-form-title {
    font-family: Poppins-Bold;
    font-size: 24px;
    color: #333333;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    display: block;
    padding-bottom: 54px;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.card-body-fullheight {
    height: calc(100vh - 200px); /* Adjust the value based on your layout */
    overflow-y: auto;
    padding: 1rem;
}

.sales-container {
    width: 100%;
    min-height: min-content;
}

.table .form-label {
    margin-bottom: 0;
}

.table .form-check {
    margin: 0 !important;
    padding-left: 2em;
}

/* Payment Items */
.payment-item {
    border: 1px solid #E6EAED;
    border-radius: 10px;
    color: #092C4C;
    font-size: 15px;
    display: block;
    text-align: center;
    padding: 10px 15px;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
}

    .payment-item:hover {
        --bs-text-opacity: 1;
        opacity: 1;
        background-color: #FFF6EE;
        border-color: #FE9F43;
        color: #FE9F43;
    }

    .payment-item.btn-primary {
        --bs-text-opacity: 1;
        opacity: 1;
        background-color: #FFF6EE !important;
        border-color: #FE9F43 !important;
        color: #FE9F43 !important;
    }

        .payment-item.btn-primary:hover {
            background-color: #FFF6EE !important;
            border-color: #FE9F43 !important;
            color: #FE9F43 !important;
        }

        .payment-item.btn-primary:focus,
        .payment-item.btn-primary:active {
            background-color: #FFF6EE !important;
            border-color: #FE9F43 !important;
            color: #FE9F43 !important;
            box-shadow: 0 0 0 0.2rem rgba(254, 159, 67, 0.25) !important;
        }

    .payment-item img {
        width: 20px;
    }

/* Dropdown Calendar (Flatpicker) */
.dropdown-flatpicker .flatpickr-calendar {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

/* POS */
.pos-btn-block-group > .btn-block + .btn-block {
    margin-top: 0;
}

.pos-container {
    width: 100%;
    min-height: calc(100vh - 115px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
    gap: 0px;
}

.pos-container-top {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-container-bottom {
    flex: 0 0 auto;
}

.pos-sales-grid-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0px;
}

.pos-sales-grid-header {
    flex: 0 0 auto;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-sales-grid-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    max-height: calc(100vh - 440px);
}

    .pos-sales-grid-content .b-loading-indicator,
    .pos-sales-grid-content .b-loading-indicator-wrapper,
    .pos-sales-grid-content .loading-indicator {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }


    /* Table container that fills remaining space and provides scrolling */
    .pos-sales-grid-content .table-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        border: 1px solid rgba(0, 0, 0, 0.175);
        border-radius: 0.375rem;
        display: flex;
        flex-direction: column;
    }

        .pos-sales-grid-content .table-container .no-sales {
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            flex: 1;
            margin: 0;
            min-height: 100%;
            background-color: #fff;
        }


        .pos-sales-grid-content .table-container .table {
            margin-bottom: 0;
            min-height: 0;
        }

            /* Ensure fixed header behavior works with flex layout */
            .pos-sales-grid-content .table-container .table thead th {
                position: sticky;
                top: 0;
                background-color: #f8f9fa;
                z-index: 10;
            }


.stat {
    background: #e0eafc;
    border-radius: 50%;
    padding: .75rem;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
}

    .stat i {
        color: #497aca !important;
        text-align: center !important;
    }

.cash-counter .bill-img {
    width: auto;
    height: 31.44px;
}

.cash-counter input.form-control {
    padding: 0.1rem 0.25rem;
    font-size: 0.8rem;
}

.cash-counter .denom-label {
    white-space: nowrap;
}
