﻿.cashLayout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 94.5vh;
    overflow: hidden;
    color: #ffffff;
}

.cashHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ffffff22;
    width: 100%;
    height: 10vh;
}

.cashHeaderTable,
.cashHeaderActions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cashCaption {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
}

#cashProductSearch {
    border: none;
    background: #ffffff22;
    color: #fff;
    font-family: Poppins;
    padding: 0 64px;
    border-top: 1px solid #ffffff33;
    border-bottom: 1px solid #ffffff33;
}

    #cashProductSearch::placeholder {
        color: #fff;
        font-family: Poppins;
    }

    #cashProductSearch:focus {
        outline: none;
        border: none;
    }

.cashBody {
    display: grid;
    grid-template-columns: 20% 30% 50%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.cashCategories, .cashProducts, .cashOrder {
    overflow-y: auto;
}

.cashCategories {
    border-right: 1px solid #ffffff22;
    display: grid;
    grid-template-rows: 10vh 1fr;
}

.cashProducts {
    border-right: 1px solid #ffffff22;
    display: grid;
    grid-template-rows: 10vh 48px 1fr;
}

.cashPanelTitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff55;
}

.cashEmpty {
    padding: 0 64px;
    font-size: 0.85rem;
    font-weight: normal;
}

.cashCategoryButton {
    display: block;
    width: 100%;
    padding: 16px 64px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .cashCategoryButton.isSelected {
        background: #ffffff22;
        color: white;
    }

    .cashCategoryButton:hover {
        background: #ffffff11;
    }

#cashCategoryList {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cashProductGrid {
    display: flex;
    gap: 0;
    flex-direction: column;
}

.cashProductButton {
    display: flex;
    justify-content: space-between;
    padding: 16px 64px;
    cursor: pointer;
    /* background: #ffffff22; */
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px solid #ffffff22;
}

    .cashProductButton:hover {
        background: #ffffff11;
    }

.cashProductName {
}

.cashProductPrice {
    color: #ffffff88;
}

.cashOrderItem {
    padding: 12px 64px;
    border-bottom: 1px solid #ffffff22;
    font-size: 0.85rem;
}

.cashOrderItemTop {
    display: grid;
    grid-template-columns: 75% 12.5% 12.5%;
    /* justify-content: space-between; */
}

.cashOrderHeader {
    display: flex;
    justify-content: space-between;
    padding: 0 64px;
    align-items: center;
    height: 10vh;
}

.cashQuantityControls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #ffffff66;
}

.cashQuantityButton,
.cashRemoveButton,
.cashPrimaryButton {
    padding: 8px 12px;
    cursor: pointer;
}

#cashOrderItems {
    overflow: hidden;
    overflow-y: auto;
}

.cashOrder {
    position: relative;
    display: grid;
    grid-template-rows: 10vh 1fr 10vh;
    overflow: hidden;
    background: #ffffff11;
    box-shadow: 0 0 30px 0 #00000055;
}



.cashCategories, .cashProducts, .cashOrder {
    overflow-x: hidden;
    overflow-y: auto;
    /* Firefox */
    scrollbar-width: none;
    /* IE */
    -ms-overflow-style: none;
}

    .cashCategories::-webkit-scrollbar, .cashProducts::-webkit-scrollbar, .cashOrder::-webkit-scrollbar {
        display: none;
    }

#cashLoading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

.cashTotals {
    border-top: 1px solid #ffffff22;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 64px;
    height: 10vh;
}

.cashTotalRow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cashTotalRowMain {
    font-size: 24px;
    font-weight: bold;
}

.cashStatus {
    display: inline-block;
    padding: 8px 32px;
    background: #ffffff33;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cashHeaderTable {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.cashTableSelect {
    min-width: 220px;
    height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

    .cashTableSelect:focus {
        outline: none;
        border-color: #2d7d74;
    }

.cashDialog {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.45);
    z-index: 5000;
    backdrop-filter: blur(10px);
}

    .cashDialog.isVisible {
        display: flex;
    }

.cashDialogWindow {
    width: 420px;
    padding: 30px;
}

.cashDialogBody {
    display: flex;
    flex-direction: column;
}

.cashFormRow {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

    .cashFormRow label {
        margin-bottom: 6px;
        font-size: 13px;
    }

.cashDialogBody input,
.cashDialogBody select {
    height: 40px;
    padding: 0 10px;
    border: none;
    outline: none;
    background: #ffffff22;
    font-family: Poppins;
    color: #ffffff;
}

.cashDialogButtons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cashCheckoutWindow {
    max-width: 520px;
}

.cashCheckoutTotal {
    text-align: center;
    margin-bottom: 32px;
}

.cashCheckoutAmount {
    font-size: 42px;
    font-weight: 700;
}

.cashPaymentTypeGrid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.cashPaymentTile {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 22px;
    cursor: pointer;
    text-align: center;
    transition: .15s;
}

    .cashPaymentTile:hover {
        background: rgba(255,255,255,.05);
    }

    .cashPaymentTile.isSelected {
        border-color: #ffffff;
        background: rgba(255,255,255,.10);
    }

.cashPaymentTileTitle {
    font-size: 18px;
    font-weight: 600;
}

.cashDialogError {
    margin-top: 10px;
    color: #b42318;
    font-size: 13px;
}

.cashGiftCertificateRedemption {
    border-color: rgba(0, 120, 70, 0.25);
    background: rgba(0, 120, 70, 0.06);
}

    .cashGiftCertificateRedemption strong {
        color: #087443;
    }

.cashLegacyGiftCertificateFields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.cashLegacyGiftCertificateMessage {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

#cashRegisterLegacyGiftCertificateButton {
    margin-top: 12px;
}

.hidden {
    display: none;
}
