.pos-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pos-header h1 {
    font-size: 26px;
    margin: 0;
    color: #1f2937;
}

.pos-header span {
    color: #6b7280;
    font-size: 14px;
}

.pos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.pos-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.pos-panel h2 {
    font-size: 18px;
    margin: 0 0 14px;
    color: #111827;
}

.pos-panel label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #374151;
}

.pos-scan-input {
    height: 48px;
    font-size: 18px;
}

.pos-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pos-result-item,
.pos-payment-item,
.pos-recent-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #f9fafb;
}

.pos-result-item button,
.pos-payment-item button {
    min-width: 40px;
}

.pos-table th,
.pos-table td {
    vertical-align: middle;
}

.pos-qty {
    width: 82px;
}

.pos-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 15px;
}

.pos-total-row strong {
    font-size: 18px;
}

.pos-grand-total {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.pos-grand-total strong {
    font-size: 30px;
    color: #0f766e;
}

.pos-payment-list,
.pos-recent-sales {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.pos-current-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f9fafb;
    min-height: 120px;
}

.pos-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pos-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.pos-metric span {
    color: #6b7280;
    display: block;
}

.pos-metric strong {
    color: #111827;
    font-size: 28px;
}

.ticket-page {
    background: #eef2f7;
    padding: 20px;
}

.ticket-paper {
    width: min(420px, 100%);
    margin: 0 auto;
    background: #fff;
    color: #111827;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.ticket-paper h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 16px;
}

.ticket-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #d1d5db;
    padding: 6px 0;
}

.ticket-qr {
    display: block;
    width: 120px;
    height: 120px;
    margin: 16px auto;
}

@media (max-width: 992px) {
    .pos-grid,
    .pos-grid-compact,
    .pos-metrics {
        grid-template-columns: 1fr;
    }

    .pos-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    body.ticket-page {
        background: #fff;
        padding: 0;
    }

    .ticket-paper {
        box-shadow: none;
        width: 100%;
        border-radius: 0;
    }

    #btnPrintTicket {
        display: none;
    }
}
