/* POS Cashier Layout Styles */

.pos-cashier-root {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

.pos-cashier-body {
    background: #fafafa;
}

/* Touch-friendly targets: minimum 48px */
.pos-cashier-root .mud-button {
    min-height: 48px;
    touch-action: manipulation;
}

.pos-cashier-root .mud-icon-button {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Keypad button sizing */
.pos-keypad .mud-button {
    min-height: 60px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Cart line items - comfortable touch targets */
.pos-cashier-root .cart-line {
    min-height: 48px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: default;
}

/* Large price display */
.pos-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

/* High contrast totals */
.pos-total-display {
    background: #1a237e;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

/* Receipt print styles */
@media print {
    /* Hide everything except receipt content */
    .pos-cashier-root > *:not(#receipt-content),
    .mud-appbar,
    .pos-cashier-root .mud-button,
    nav,
    header,
    footer {
        display: none !important;
    }

    #receipt-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 80mm;
        padding: 4mm;
        margin: 0;
        box-shadow: none !important;
        border: none !important;
        font-size: 12px;
        line-height: 1.4;
    }

    #receipt-content * {
        color: #000 !important;
        background: #fff !important;
    }

    /* Compact receipt typography */
    #receipt-content .mud-typography-h5 {
        font-size: 16px !important;
    }

    #receipt-content .mud-typography-h6 {
        font-size: 14px !important;
    }

    #receipt-content .mud-typography-body2 {
        font-size: 11px !important;
    }

    #receipt-content .mud-typography-caption {
        font-size: 10px !important;
    }

    @page {
        size: 80mm auto;
        margin: 0;
    }
}

/* Split-screen checkout layout */
@media (max-width: 768px) {
    .pos-cashier-root .d-flex[style*="overflow:hidden"] {
        flex-direction: column;
    }

    .pos-cashier-root .d-flex[style*="overflow:hidden"] > div[style*="width:340px"] {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }
}
