/* POS Dedicated View Styles */

/* Remove default workspace padding for POS */
.view-item {
    padding: 0 !important;
}

/* Industrial Footer Suppression for POS */
body.view-pos footer {
    display: none !important;
}

@media screen and (max-width: 39.99rem) {
    .view-item { padding-top: 4rem !important; }
}

.pos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: 100%;
    width: 100%;
    gap: var(--spacing-1);
    padding: var(--spacing-1);
    background: transparent;
    overflow: hidden;
}

.pos-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.pos-view-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    overflow: hidden;
}

.pos-view-stack.hidden-view {
    transform: translateX(100%);
    pointer-events: none;
}

.pos-view-stack.active-view {
    transform: translateX(0);
}

.pos-view-stack.out-view {
    transform: translateX(-100%);
    pointer-events: none;
}

.pos-panel {
    background: var(--bg-2);
    border-radius: var(--radius-3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    min-height: 0;
}

.pos-categories {
    max-height: 50%;
}

.pos-panel > div[class*="overflow-y-auto"] {
    flex: 1;
    min-height: 0;
}

/* Panel 4: Controls (Bottom-Right) */
.pos-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-1);
    padding: var(--spacing-1);
    min-height: 0;
}

.pos-controls > * {
    min-width: 0;
}

.pos-control-left {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    gap: var(--spacing-1);
    height: 100%;
}

.pos-numpad {
    grid-row: span 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--spacing-1);
}

.pos-actions {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: var(--spacing-1);
    height: 100%;
}

.pos-actions > * {
    min-height: 0;
}

#checkout-view {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--spacing-1);
    height: 100%;
}
.pos-tile {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
    padding: var(--spacing-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-1);
}

.pos-tile:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

.category-tile {
    cursor: pointer;
    font-weight: bold;
    font-size: var(--font-2);
    line-height: 1.2;
}

.category-tile.active {
    background: var(--system-accent) !important;
    color: white !important;
}

.category-tile.active div {
    color: white !important;
}

.product-tile {
    /* Base styles removed, using utility classes from Picker.php */
    text-align: center;
}

.product-tile:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* Cart Styles */
.cart-list {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-2);
    gap: var(--spacing-2);
}

.cart-item .qty {
    width: 2.5rem;
    text-align: center;
    font-weight: bold;
    background: var(--bg-3);
    border-radius: var(--radius-1);
    padding: var(--spacing-1) 0;
}

.cart-totals {
    padding: var(--spacing-3);
    background: transparent;
}

/* Numpad Button */
.num-btn {
    background: var(--bg-3);
    border-radius: var(--radius-2);
    font-size: var(--font-4);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.num-btn:active {
    background: var(--bg-4);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-1);
    cursor: pointer;
    color: white;
    border-radius: var(--radius-2);
    font-weight: bold;
    height: 100%;
    min-height: 0;
    text-align: center;
    position: relative;
    padding: var(--spacing-2);
}

.btn-pay { background: var(--green-3); }
.btn-clear { background: var(--red-3); }
.btn-hold { background: var(--blue-3); }

@media (max-width: 60rem) {
    .pos-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: var(--spacing-1);
    }

    .pos-column {
        flex: 1;
        min-height: 0;
    }

    .v-stack.flex-1 {
        flex: 1;
        min-height: 0;
    }

    .pos-panel {
        flex: 1;
        min-height: 0;
    }

    .pos-categories {
        max-height: 40%;
    }

    .pos-controls {
        grid-template-columns: 1fr;
    }

    .pos-control-left, .pos-actions {
        height: auto;
        flex: 1;
    }
}
