.sticky-table-header {
    position: sticky;
    top: 50px;
    z-index: 1;
}

html {
    position: relative;
    min-height: 100%;
}

/* sticky footer code */
body {
    margin-bottom: 60px; /* Margin bottom by footer height */
}

.footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the fixed height of the footer here */
}

/*!
 * IE10 viewport hack for Surface/desktop Windows 8 bug
 * Copyright 2014-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
@-ms-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}


.bg-success-20 {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-bottom: #000 !important;
}

.bg-warning-20 {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-bottom: #000 !important;

}

.bg-danger-20 {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-bottom: #000 !important;

}

/* For small screen */
.row-striped :nth-child(even).row {
    background-color: #ffffff;
}

.row-striped :nth-child(odd).row {
    background-color: #cecece;
}

.clickable-row {
    cursor: pointer;
}

/*.b-lazy {*/
/*    -webkit-transition: opacity 200ms ease-in-out;*/
/*    -moz-transition: opacity 200ms ease-in-out;*/
/*    -o-transition: opacity 200ms ease-in-out;*/
/*    transition: opacity 200ms ease-in-out;*/
/*    max-width: 100%;*/
/*    opacity: 0;*/
/*}*/

/*.b-lazy.b-loaded {*/
/*    opacity: 1;*/
/*}*/

table.table-vscroll {
    height: 220px; /* Just for the demo          */
    overflow-y: auto; /* Trigger vertical scroll    */
    overflow-x: hidden; /* Hide the horizontal scroll */
}

table.table-vscroll {
    display: block;
}


@media print {

    .col-1 {
        width: 8%;
        float: left;
    }

    .col-2 {
        width: 16%;
        float: left;
    }

    .col-3 {
        width: 25%;
        float: left;
    }

    .col-4 {
        width: 33%;
        float: left;
    }

    .col-5 {
        width: 42%;
        float: left;
    }

    .col-6 {
        width: 50%;
        float: left;
    }

    .col-7 {
        width: 58%;
        float: left;
    }

    .col-8 {
        width: 66%;
        float: left;
    }

    .col-9 {
        width: 75%;
        float: left;
    }

    .col-10 {
        width: 83%;
        float: left;
    }

    .col-11 {
        width: 92%;
        float: left;
    }

    .col-12 {
        width: 100%;
        float: left;
    }

    body {
        background: none;
        font-family: "Arial";
    }

    body, #pullsheet {
        -webkit-print-color-adjust: exact;
        font-size: 16px;
        font-family: "Arial";
        padding: 6px;
        width: 85%;
        margin: auto;

    }

    body, #receipt {
        width: 85%;
        margin: auto;
    }

    .h5 {
        font-size: 17px;
        font-weight: bold;
    }

    .print-hide {
        display: none;
    }

    #pullsheet div {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #pullsheet table tr td {
        padding: .2rem;
    }

    div.bg-warning {
        font-weight: normal;
    }

    span.notpulled {
        /*background-color: #000000 !important;*/

    }

    table.pagebreak {
        page-break-after: always;
    }

    div.pagebreak {
        page-break-after: always;
    }

    div {
        width: 100%;
        height: 100%;
    }

    pull-list-customer {
        background-color: #7f7f7f;
        text-align: left;
        font-weight: normal;
        width: 100%;
        page-break-inside: avoid;
    }

    table .pull-list-items {
        page-break-inside: avoid;
    }

    .pull-list-customer h5 a {
        text-decoration: none;
    }

    div.pull-list-item {
        background-color: #dddddd;
        padding: 0;
        font-weight: normal;
    }

    div.pull-list-customer .row {
        /*background-color: #;*/
        text-align: left;
        font-weight: normal;
        padding: 0;
    }

    *, ::after, ::before {
        text-shadow: none !important;
        box-shadow: none !important
    }

    a:not(.btn) {
        text-decoration: underline
    }

    abbr[title]::after {
        content: " (" attr(title) ")"
    }

    pre {
        white-space: pre-wrap !important
    }

    blockquote, pre {
        border: 1px solid #adb5bd;
        page-break-inside: avoid
    }

    img, tr {
        page-break-inside: avoid
    }

    h2, h3, p {
        orphans: 3;
        widows: 3
    }

    h2, h3 {
        page-break-after: avoid
    }

    @page {
        size: a3
    }

    body {
        min-width: 992px !important
    }

    .container {
        min-width: 992px !important
    }

    .badge {
        border: 1px solid #000
    }

    .table {
        border-collapse: collapse !important

    }

    .table td, .table th {
        background-color: #fff !important
    }

    .table-bordered td, .table-bordered th {
        border: 1px solid #dee2e6 !important
    }

    .table-dark {
        color: inherit
    }

    thead .table-dark th {
        background-color: #000000 !important;
    }

    .table-dark tbody + tbody, .table-dark td, .table-dark th, .table-dark thead th {
        border-color: #dee2e6
    }
    div.card-body{
        background-color: #ffffff !important;
    }
}

span.prepaid {
    text-decoration: line-through;
    font-weight: bold;
}

span.notpulled {
    text-decoration: line-through;
}

.striped-div:nth-child(2n) {
    background: #fff;
}

.striped-div {
    background: #c8dfed;
}


#loading {
    display: flex;
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading-sm {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading-mini {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.25);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}


html {
    scroll-padding-top: 70px;
}

.quickcheckin {
    display: none;
}


/*.navbar .nav-item:not(:last-child){*/
/*    margin-right: 35px;*/
/*}*/

.dropdown-toggle::after {
    transition: transform 0.15s linear;
}

.show.dropdown .dropdown-toggle::after {
    transform: translateY(3px);
}

.dropdown-menu {
    margin-top: 0;
}

header > hide:hover + nav,
header > nav:hover {
    display: block;
}

#transactionSearchForItemsModal .modal-dialog, #transactionSearchForItemsModal .modal-content, #transactionActionsModal .modal-dialog, #transactionActionsModal .modal-content, #searchModal .modal-dialog, #searchModal .modal-content {
    height: 80%
}

#transactionActionsModal .modal-body, #searchModal .modal-body, #transactionSearchForItemsModal .modal-body {
    max-height: calc(100% - 120px);
    overflow-y: scroll;
}

.box {
    display: none;
}

.mobyBottom {
    position: absolute;
    bottom: 0;
}

#reconcileRegisters .input-group .input-group-text {
    width: 70%;
}

.csaChecklist {
    padding-left: 1em;
    text-indent: -.75em;
}

a:not([btn]) {
    text-decoration: none;
}

a:not([btn]):hover {
    text-decoration: underline;
}

.obfuscate-form-field-text {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Container holding the image and the text */
.imageContainer {
    position: relative;
    text-align: center;
    color: #000000;
    /*z-index: -1;*/
    /*text-shadow: #000000 2px 2px 3px;*/
}

/* Bottom left text */
.bottom-left {
    position: absolute;
    bottom: 5%;
    left: 8%;
    background-color: #ffffff;
}

/* Top left text */
.top-left {
    position: absolute;
    top: 5%;
    left: 8%;
    background-color: #ffffff;
}

/* Top right text */
.top-right {
    position: absolute;
    top: 5%;
    right: 8%;
    background-color: #ffffff;
}

/* Bottom right text */
.bottom-right {
    position: absolute;
    bottom: 5%;
    right: 8%;
    background-color: #ffffff;
}

/* Centered text */
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
}

.centered-bottom {
    position: absolute;
    bottom: 5%;
    left: auto;
    background-color: #ffffff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /*This is for firefox*/
}

.showarrows input[type=number]::-webkit-inner-spin-button,
.showarrows input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: number-input;
    -moz-appearance: number-input;
    appearance: auto;
    margin: 0;
}

.showarrows input[type=number] {
    -moz-appearance: number-input; /*This is for firefox*/
}

/* HIDE NAV ON SCROLL DOWN. SHOW ON SCROLL UP. MUST ALSO UN-COMMENT IN MOBY-FOOT */
/*nav {*/
/*    transition: background 0.4s ease-in-out;*/
/*    background: #010101;*/
/*}*/
/*.is-hidden {*/
/*    opacity: 0;*/
/*    transition: transform 0.4s, opacity 0.2s;*/
/*}*/
/*.fixed-top {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    right: 0;*/
/*    left: 0;*/
/*    z-index: 1030;*/
/*}*/

/*.navbar-hide {*/
/*    pointer-events: none;*/
/*    opacity: 0;*/
/*}*/


.timeline {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative
}

.timeline:before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: #2d353c;
    left: 5%;
    margin-left: -2.5px
}

.timeline > li {
    position: relative;
    min-height: 50px;
    padding: 0
}

.timeline .timeline-time {
    position: absolute;
    left: 0;
    width: 18%;
    text-align: right;
    top: 30px
}

.timeline .timeline-time .date,
.timeline .timeline-time .time {
    display: block;
    font-weight: 600
}

.timeline .timeline-time .date {
    line-height: 16px;
    font-size: 12px
}

.timeline .timeline-time .time {
    line-height: 24px;
    font-size: 20px;
    color: #242a30
}

.timeline .timeline-icon {
    left: 0;
    position: absolute;
    width: 10%;
    text-align: center;
    top: 20px
}

.timeline .timeline-icon a {
    text-decoration: none;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 20px;
    background: #d9e0e7;
    line-height: 10px;
    color: #fff;
    font-size: 14px;
    border: 5px solid #2d353c;
    transition: border-color .2s linear
}

.timeline .timeline-body {
    margin-left: 10%;
    margin-right: 0;
    background: #fff;
    position: relative;
    padding: 2px 25px;
    border-radius: 6px
}

.timeline .timeline-body:before {
    content: '';
    display: block;
    position: absolute;
    border: 10px solid transparent;
    border-right-color: #fff;
    left: -20px;
    top: 20px
}

.timeline .timeline-body > div + div {
    margin-top: 15px
}

.timeline .timeline-body > div + div:last-child {
    margin-bottom: -20px;
    padding-bottom: 20px;
    border-radius: 0 0 6px 6px
}

.timeline-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e7eb;
    line-height: 30px
}

.timeline-header .userimage {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 40px;
    overflow: hidden;
    margin: -2px 10px -2px 0
}

.timeline-header .username {
    font-size: 16px;
    font-weight: 600
}

.timeline-header .username,
.timeline-header .username a {
    color: #2d353c
}

.timeline img {
    max-width: 100%;
    display: block
}


.timeline-content:after,
.timeline-content:before {
    content: '';
    display: table;
    clear: both
}

.timeline-title {
    margin-top: 0
}

.timeline-footer {
    background: #fff;
    border-top: 1px solid #e2e7ec;
    padding-top: 15px
}

.timeline-footer a:not(.btn) {
    color: #575d63
}

.timeline-footer a:not(.btn):focus,
.timeline-footer a:not(.btn):hover {
    color: #2d353c
}

.timeline-likes {
    color: #6d767f;
    font-weight: 600;
    font-size: 12px
}

.timeline-likes .stats-right {
    float: right
}

.timeline-likes .stats-total {
    display: inline-block;
    line-height: 20px
}

.timeline-likes .stats-icon {
    float: left;
    margin-right: 5px;
    font-size: 9px
}

.timeline-likes .stats-icon + .stats-icon {
    margin-left: -2px
}

.timeline-likes .stats-text {
    line-height: 20px
}

.timeline-likes .stats-text + .stats-text {
    margin-left: 15px
}

.timeline-comment-box {
    background: #f2f3f4;
    margin-left: -25px;
    margin-right: -25px;
    padding: 20px 25px
}

.timeline-comment-box .user {
    float: left;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 30px
}

.timeline-comment-box .user img {
    max-width: 100%;
    max-height: 100%
}

.timeline-comment-box .user + .input {
    margin-left: 44px
}

.lead {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 300;
    line-height: 1.4;
}

.text-danger, .text-red {
    color: #ff5b57 !important;
}

#cb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-radius: 0;
    display: none;
}

.barcode {
    display: block;
}

.table-striped-custom tbody tr:nth-child(4n-1),
.table-striped-custom tbody tr:nth-child(4n) {
    background-color: #f8f9fa; /* Change this color to your desired background color */
}

.aspect-ratio-container {
    position: relative;
    width: 100%;
    height: 0; /* Set initial height to 0 */
    padding-top: calc(10.25 / 6.625 * 100%); /* Invert the aspect ratio for height calculation */
    overflow: hidden;
}

.aspect-ratio-container-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Make the image fill the container */
    object-fit: cover; /* Scale the image while maintaining aspect ratio and covering the container */
}

.transaction-tender-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    max-height: 200px; /* Set a maximum height */
    overflow-y: auto; /* Enable vertical overflow scrolling */

}
.bg-table-success {
    background-color: #d1e7dd;
    color: #0f5132; /* optional: text color to match */
}
.bg-table-warning {
    background-color: #fff3cd;
    color: #664d03;
}
/* === Base Colors === */
:root {
    --bs-purple: #6f42c1;
    --bs-orange: #fd7e14;
    --bs-soft-red: #f8d7da;
    --bs-soft-red-text: #842029;
}

/* === Backgrounds === */
.bg-purple     { background-color: var(--bs-purple) !important; color: #fff !important; }
.bg-orange     { background-color: var(--bs-orange) !important; color: #000 !important; }
.bg-soft-red   { background-color: var(--bs-soft-red) !important; color: var(--bs-soft-red-text) !important; }

/* === Text === */
.text-purple     { color: var(--bs-purple) !important; }
.text-orange     { color: var(--bs-orange) !important; }
.text-soft-red   { color: var(--bs-soft-red-text) !important; }

/* === Borders === */
.border-purple     { border-color: var(--bs-purple) !important; }
.border-orange     { border-color: var(--bs-orange) !important; }
.border-soft-red   { border-color: var(--bs-soft-red) !important; }

/* === Buttons === */
.btn-purple {
    background-color: var(--bs-purple);
    color: #fff;
    border: 1px solid var(--bs-purple);
}
.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #fff;
}

.btn-orange {
    background-color: var(--bs-orange);
    color: #000;
    border: 1px solid var(--bs-orange);
}
.btn-orange:hover {
    background-color: #e96b0c;
    border-color: #e96b0c;
    color: #000;
}

.btn-soft-red {
    background-color: var(--bs-soft-red);
    color: var(--bs-soft-red-text);
    border: 1px solid #f1aeb5;
}
.btn-soft-red:hover {
    background-color: #f1aeb5;
    border-color: #e18c98;
    color: var(--bs-soft-red-text);
}

/* === Alerts === */
.alert-purple {
    background-color: #ede2f9;
    border-color: var(--bs-purple);
    color: var(--bs-purple);
}

.alert-orange {
    background-color: #ffe5cc;
    border-color: var(--bs-orange);
    color: var(--bs-orange);
}

.alert-soft-red {
    background-color: var(--bs-soft-red);
    border-color: #f1aeb5;
    color: var(--bs-soft-red-text);
}
