.floating-button-green {
    position: fixed;
    bottom: 140px;
    width: 40px;
    height: 40px;
    background-color: #7AA700;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 2;
}

.floating-button-green:hover {
    background-color: #567501;
    transform: scale(1.1);
}

.floating-button-green:active {
    transform: scale(0.95);
}

.floating-button-green-left {
    left: 40px;
}

.floating-button-green-right {
    right: 40px;
}

.floating-button-blue {
    position: fixed;
    bottom: 80px;
    width: 40px;
    height: 40px;
    background-color: #0634BC;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 2;
}

.floating-button-blue:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.floating-button-blue:active {
    transform: scale(0.95);
}

.floating-button-blue-left {
    left: 40px;
}

.floating-button-blue-right {
    right: 40px;
}

.floating-button-red {
    position: fixed;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 2;
}

.floating-button-red:hover {
    background-color: red;
    transform: scale(1.1);
}

.floating-button-red:active {
    transform: scale(0.95);
}

.floating-button-red-left {
    left: 40px;
}

.floating-button-red-right {
    right: 40px;
}


.custom-tax-table td{
    border: 1px solid black !important;
}

.pos-custom-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 100%;
    background: whitesmoke;
    color: black;
    font-size: 2rem;
    font-weight: bold;
    padding: 20px 40px;
}

.checkout-dialog{
    position: absolute;
    width: 700px;
    height: 200px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

label[contenteditable]:focus {
    outline: none;
    border: none;
}
/*customization*/
.col-custom- {
    max-width: calc(100% / 4)!important;
    height: 240px !important;
    margin-top: 5px!important; 
    margin-bottom: 5px!important;
}
.col-custom-4 {
    max-width: calc(100% / 4)!important;
    height: 240px !important;
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}
.col-custom-5 {
    max-width: calc(100% / 5)!important;
    height: 180px !important;
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}
.col-custom-6 {
    max-width: calc(100% / 6)!important;
    height: 180px !important;
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}
.col-custom-7 {
    max-width: calc(100% / 7)!important;
    height: 120px !important;
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}
.col-custom-8 {
    max-width: calc(100% / 8)!important;
    height: 120px !important;
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}
/*pos items*/
.pos-selected-item-grid{
    padding: 17px;
}
.pos-selected-item-grid p{
    font-size: 14px!important;
}
.pos-selected-item-grid-discount{
    width: 75px;
}
.pos-selected-item-grid-amount{
    width: 80px;
}

.pos-category-tab{
    overflow-x: auto; 
    white-space: nowrap; 
    scrollbar-width: none;
    -ms-overflow-style: none; 
    width: 100%; 
    /*margin-bottom: 10px;*/
}

.pos-sub-category-tab{
    overflow-x: auto; 
    white-space: nowrap; 
    scrollbar-width: none;
    -ms-overflow-style: none; 
    width: 100%; 
    /*margin-bottom: 10px;*/
}
.custom-tax-table{
    margin-top: 17px;
}
.pos-product-display-side{
    padding: 17px;
}
.table-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;

}
/*customization*/
.product-image-,
.product-image-4{
    height: 240px !important;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.product-image-5,
.product-image-6{
    height: 180px !important;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.product-image-7,
.product-image-8{
    height: 120px !important;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.product-image-body-,
.product-image-body-4{
    position: relative;
    width: 100%;
    height: 160px !important;
    overflow: hidden;
}

.product-image-body-5,
.product-image-body-6{
    position: relative;
    width: 100%;
    height: 120px !important;
    overflow: hidden;
}

.product-image-body-7,
.product-image-body-8 {
    position: relative;
    width: 100%;
    height: 80px !important;
    overflow: hidden;
}


.product-image-body- .card-img,
.product-image-body-4 .card-img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or 'cover' if you prefer */
}

.product-image-body-5 .card-img,
.product-image-body-6 .card-img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or 'cover' if you prefer */
}

.product-image-body-7 .card-img,
.product-image-body-8 .card-img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or 'cover' if you prefer */
}


.order-detail-customization-quantity-btn-hover-effect:hover {
    background-color: #d3d3d3 !important; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
}
/*customization*/
.product-image-footer-,
.product-image-footer-4{
    height: 80px !important;
}

.product-image-footer-5,
.product-image-footer-6{
    height: 60px !important;
}

.product-image-footer-7,
.product-image-footer-8{
    height: 40px !important;
}


@media (max-width: 1500px) {
    .pos-selected-item-grid{
        padding: 5px;
    }
    .pos-selected-item-grid-footer{
        padding: 3px;
    }
    /*customization*/
    .col-custom-,
    .col-custom-4{
        height: 200px !important;
    }
    
    .col-custom-5,
    .col-custom-6{
        height: 150px !important;
    }
   
    .col-custom-7,
    .col-custom-8{
        height: 100px !important;
    }
    
    .pos-selected-item-grid p{
        font-size: 12px!important;
    }
    .pos-selected-item-grid-discount{
        width: 60px;
    }
    .pos-selected-item-grid-amount{
        width: 65px;
    }
    .custom-tax-table{
        margin-top: 6px;
    }

    .pos-product-display-side{
        padding: 5px;
    }
    /*customization*/
    .product-image-,
    .product-image-4{
        height: 200px !important;
        position: relative;
    }
   
    .product-image-5,
    .product-image-6{
        height: 150px !important;
        position: relative;
    }
  
    .product-image-7,
    .product-image-8{
        height: 100px !important;
        position: relative;
    }

    .product-image-body-,
    .product-image-body-4{
        height: 150px !important;
    }
   
    .product-image-body-5,
    .product-image-body-6 {
        height: 110px !important;
    }
   
    .product-image-body-7,
    .product-image-body-8 {
        height: 70px !important;
    }
   
    .product-image-footer-,
    .product-image-footer-4{
        height: 50px !important;
    }
  
    .product-image-footer-5,
    .product-image-footer-6{
        height: 40px !important;
    }
    .product-image-footer-7,
    .product-image-footer-8{
        height: 30px !important;
    }
   
    .product-image-footer- p,
    .product-image-footer-4 p,
    .product-image-footer-5 p,
    .product-image-footer-6 p,
    .product-image-footer-7 p,
    .product-image-footer-8 p {
        font-size: 10px !important;
    }
}

@media (max-width: 1100px) {
    .col-custom-,
    .col-custom-4{
        height: 185px !important;
    }

    .col-custom-5,
    .col-custom-6{
        height: 140px !important;
    }

    .col-custom-7,
    .col-custom-8{
        height: 95px !important;
    }
    .product-image-,
    .product-image-4{
        height: 185px !important;
        position: relative;
    }

    .product-image-5,
    .product-image-6{
        height: 140px !important;
        position: relative;
    }

    .product-image-7,
    .product-image-8{
        height: 95px !important;
        position: relative;
    }
    .pos-selected-item-grid-discount{
        width: 50px;
    }
    .pos-selected-item-grid-amount{
        width: 55px;
    }
    .custom-tax-table{
        margin-top: 2px;
    }
    .product-image-footer-,
    .product-image-footer-4{
        height: 35px !important;
    }

    .product-image-footer-5,
    .product-image-footer-6{
        height: 30px !important;
    }
    .product-image-footer-7,
    .product-image-footer-8{
        height: 25px !important;
    }
    .product-image-footer- p,
    .product-image-footer-4 p,
    .product-image-footer-5 p,
    .product-image-footer-6 p,
    .product-image-footer-7 p,
    .product-image-footer-8 p {
        font-size: 8px !important;
    }
   
}

.custom-invoice {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}
.custom-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-invoice-header img {
    width: 100px;
}
.custom-invoice-header h1 {
    font-size: 24px;
    color: #2f4f4f;
}
.custom-invoice-header p {
    margin: 0;
    color: #666;
}
.custom-invoice-details {
    margin-top: 5px;
}
.custom-invoice-details table {
    width: 100%;
    border-collapse: collapse;
}
.custom-invoice-details td {
    padding: 0;
    vertical-align: top;
}
.custom-invoice-details td:nth-child(1) {
    font-weight: bold;
    width: 5%;
}
.custom-invoice-details td:nth-child(2) {
    width: 65%;
}
.custom-invoice-details td:nth-child(3) {
    width: 30%;
}
.custom-invoice-line-items {
    margin-top: 5px;
}
.custom-invoice-line-items table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
}
.custom-invoice-line-items th, .custom-invoice-line-items td {
    padding: 6px;
    text-align: center;
}
.custom-invoice-line-items th {
    background-color: #2f4f4f;
    color: #ffffff;
}
.custom-invoice-line-items tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.custom-invoice-line-items tbody tr:nth-child(even) {
    background-color: #e6e6e6;
}
.custom-invoice-totals {
    margin-top: 5px;
    display: flex;
    justify-content: end;
}
.custom-invoice-totals table {
    width: 40%;
    border-collapse: collapse;

}
.custom-invoice-totals td {
    padding: 2px;
    border-top: 1px solid #ccc;
}
.custom-invoice-totals tr td:first-child {
    text-align: left;
    width: 70%;
}
.custom-invoice-totals td:last-child {
    text-align: right;
}
.custom-invoice-footer {
    text-align: center;
    margin-top: 5px;
    color: #666;
}

/*checkout-portion*/
.pos-checkout-body {
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pos-checkout-container {
    text-align: center;
}

.pos-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 20px;
    justify-content: center;
}

.pos-checkout-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pos-checkout-card:hover {
    transform: scale(1.05);
}

.pos-checkout-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

/* Custom colors for icons */
.pos-checkout-cash {
    color: #2ecc71;
}

.pos-checkout-online {
    color: #34495e;
}

.pos-checkout-credit {
    color: #2c3e50;
}

.pos-checkout-credit-card {
    color: #2980b9;
}

.pos-checkout-card span {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
}

/*order-products-card*/
.entry-dialog-product-card {
    height: 120px !important; /* consistent height for all cards */
    overflow: hidden;
}

.entry-dialog-product-img {
    height: 65px !important;
    object-fit: contain;
    /*background-color: #f8f9fa;*/
    padding: 4px;
}

.entry-dialog-product-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-dialog-product-price {
    font-size: 0.85rem;
}

.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");
}

.e-listview.e-control {
    width: 400px;
}

.absent {
    background-color: red;
}

.btn-primary {
    background-color: #002a5c;
}

.btn-primary:hover {
    background-color: #003e8d;
}

.loader_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #002a5c;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}