
/* Add this to your CSS file or within a <style> tag in your component */
.pos-grid {
    display: grid;
}

/* Define the number of columns based on screen size */
@media (min-width: 1200px) {
    .pos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* 5 columns for large screens */
        /*height: 65vh;*/
    }

    .pos-detail {
        height: 65vh;
    }

    .pos-screen-height {
        height: 85vh;
    }
}

@media (min-width: 1327px) and (max-width: 1617px) {
    .pos-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
        /*height: 55vh;*/
    }

    .pos-detail {
        height: 55vh;
    }

    .pos-screen-height {
        height: 75vh;
    }
}

@media (min-width: 992px) and (max-width: 1327px) {
    .pos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .pos-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for small screens */
    }
}

@media (max-width: 767.98px) {
    .pos-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for extra small screens */
    }
}

.pos-tile {
    height: 120px;
    border: solid 1px #dce4ec;
    border-radius: 15px;
    margin: 4px;
    background-size: cover;
    position: relative;
    background-color: #e5e5e5;
    cursor: pointer;
    aspect-ratio: 1/1;
    min-width: 80px;
}


    .pos-tile .pos-item-name {
        position: absolute;
        bottom: 0;
        color: #fff;
        background: rgba(64, 64, 64, .5);
        text-shadow: 1px 0 #000;
        text-align: center;
        width: 118px;
        border-radius: 0 0 16px 16px;
        line-height: 20px;
        font-size: 12px;
        cursor: pointer;
    }

.sale-thumbnail {
    width: 32px;
    height: 32px;
    float: left;
    border-radius: 5px;
    background-size: cover;
    position: relative;
}

 /*Extra large screens (Above 1200px) - Using default 90vh*/ 

.pos-detail {
    border: 0;
    margin-left: 10px;
}

#summary {
    border: 0;
    width: 98%;
}

#summaryGroup {
    height: 160px;
    padding-top: 15px;
    background-color: #cfcfcf;
    width: 100%;
}

.inner-content {
    margin-left: 10px;
}

.numericCol {
    text-align: right;
    padding: 2px !important
}

    .numericCol strong {
        margin: 3px 0 0 0;
        color: #575962;
        font-size: 16px;
        line-height: 16px;
        font-style: normal;
        font-weight: 600;
    }



/* Add this CSS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pos-tile {
    animation: slideIn 0.5s ease-in-out forwards;
}

.payment-options {
    display: flex;
    flex-direction: column;
}

.payment-tile {
    /*margin-bottom: 5px;*/
    width: 100%;
}

.payment-tile:hover {
    background-color: #f0f0f0;
}

.payment-tile:first-child .rz-button {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.payment-tile:last-child .rz-button {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.payment-tile .rz-button:hover {
    background-color: #f0f0f0;
}

.rz-button .rz-icon-left {
    margin-right: 5px;
}

/* END - PAYMENT METHOD */


/* START - NUMBER PAD */
    .number-pad-dialog {
        margin-top: 20px;
        text-align: center;
    }

    .number-pad {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-top: 10px;
    }

    .number-button {
        width: 100%;
        height: 60px;
        background-color: #3e4a5e;
        color: white;
        font-size: 2rem;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .number-button:hover {
        background-color: #2e3a4e;
    }

    .amount-display {
        font-size: 2rem;
        text-align: right;
    }

/* START - NUMBER PAD */

/*.pos-screen-height {
    height: 84vh;
}*/

.pos-footer-bar {
    height: 110px;
    overflow: visible;
    width: 101%;
    background-color: #4d4d4d;
    position: fixed;
    z-index: 2000;
    right: 0;
    bottom: 0;
    left: 0;
    color: #fff;
}

.pdf, .error {
    color: #db4c4c;
}

.pos-btn .btn-text {
    min-width: 50px;
    display: block;
}

.pos-btn {
    color: #fff;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    width: 85px;
    font-size: 12px;
}

.footer-link:hover, .pos-footer-link:hover, .pos-footer-link:hover .glyphicons:before, .pos-footer-link-big:hover, .pos-footer-link-big:hover .glyphicons:before {
    text-decoration: none;
    background-color: #128caa !important;
    color: #a4deea !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

