<style>
        :root {
            --cash-accent-teal: var(--cash-accent-teal, #22d3ee);
            --cash-accent-alt:  var(--cash-accent-alt,  #7dd3fc);
        }

        .cashier-main {
            padding: 24px 30px 34px;
            min-width: 0;
        }

        @media (max-width: 900px) {
            .cashier-main {
                padding: 18px 16px 26px;
            }
        }

        .pos-wrapper {
            max-width: 1280px;
            margin: 0 auto;
            width: 100%;
        }

        /* CARD */

        .pos-card {
            background:
                radial-gradient(circle at top left, rgba(34,211,238,0.10), transparent 55%),
                var(--cash-bg-card);
            border-radius: 18px;
            padding: 22px 24px 26px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
            border: 1px solid var(--cash-border-soft);
        }

        html[data-theme="light"] .pos-card {
            background:
                radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
                #ffffff;
            box-shadow: 0 10px 22px rgba(15,23,42,0.12);
            border-color: #dbeafe;
        }

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

        .pos-header h2 {
            font-size: 18px;
            font-weight: 600;
        }

        .pos-header p {
            font-size: 13px;
            color: var(--cash-text-muted);
            margin-top: 2px;
        }

        html[data-theme="light"] .pos-header p {
            color: #475569;
        }

        .receipt-pill {
            padding: 6px 14px;
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,0.7);
            background:
                radial-gradient(circle at 0% 0%, rgba(34,211,238,0.24), transparent 60%),
                rgba(15,23,42,0.96);
            font-size: 12px;
            color: var(--cash-accent-alt);
            white-space: nowrap;
        }

        html[data-theme="light"] .receipt-pill {
            background:
                radial-gradient(circle at 0% 0%, rgba(56,189,248,0.18), transparent 60%),
                #eff6ff;
            color: #0369a1;
        }

        /* SCAN FORM */

        .scan-form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            margin-top: 4px;
        }

        .scan-form-row input[type="text"] {
            flex: 1;
            padding: 11px 12px;
            border-radius: 10px;
            border: 1px solid rgba(148,163,184,0.45);
            background: #001B3A;
            color: #ffffff;
            outline: none;
            font-size: 14px;
        }

        .scan-form-row input::placeholder {
            color: rgba(211, 224, 237, 0.9);
        }

        html[data-theme="light"] .scan-form-row input[type="text"] {
            background: #ffffff;
            color: #0f172a;
            border-color: #cbd5f5;
        }

        html[data-theme="light"] .scan-form-row input::placeholder {
            color: #9ca3af;
        }

        .scan-form-row input[type="text"]:focus {
            border-color: #22d3ee;
            box-shadow: 0 0 0 1px rgba(34,211,238,0.55);
        }

        .btn-primary-main {
            background: linear-gradient(to right, #22d3ee, #0ea5e9);
            color: #011b35;
            border: none;
            border-radius: 10px;
            padding: 11px 18px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 10px 26px rgba(0,0,0,0.55);
        }

        .btn-primary-main:hover {
            filter: brightness(1.06);
        }

        /* MESSAGES */

        .pos-message {
            margin-bottom: 10px;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 13px;
        }

        .pos-message.success {
            background: rgba(34,197,94,0.10);
            border-left: 3px solid #22c55e;
            color: #bbf7d0;
        }

        .pos-message.error {
            background: rgba(220,38,38,0.12);
            border-left: 3px solid #ef4444;
            color: #fecaca;
        }

        html[data-theme="light"] .pos-message.success {
            background: #dcfce7;
            color: #166534;
        }

        html[data-theme="light"] .pos-message.error {
            background: #fee2e2;
            color: #b91c1c;
        }

        /* CART TABLE */

        .pos-table-wrapper {
            margin-top: 18px;
            overflow-x: auto;
        }

        table.pos-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 12px;
            overflow: hidden;
            font-size: 13px;
        }

        .pos-table th,
        .pos-table td {
            padding: 10px 10px;
            text-align: center;
            border-bottom: 1px solid rgba(148,163,184,0.35);
            color: #E5E7EB;
        }

        .pos-table th {
            background: #012a73;
            color: #82EEFD;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.06em;
        }

        .pos-table tr:nth-child(even) {
            background: rgba(2,35,98,0.82);
        }

        .pos-table tr:nth-child(odd) {
            background: rgba(1,26,80,0.82);
        }

        .pos-table tr:hover {
            background: rgba(130,238,253,0.18);
        }

        html[data-theme="light"] .pos-table th {
            background: #eff6ff;
            color: #0f172a;
        }

        html[data-theme="light"] .pos-table td {
            color: #0f172a;
        }

        html[data-theme="light"] .pos-table tr:nth-child(even) {
            background: #f9fafb;
        }

        html[data-theme="light"] .pos-table tr:nth-child(odd) {
            background: #ffffff;
        }

        html[data-theme="light"] .pos-table tr:hover {
            background: #e0f2fe;
        }

        .pos-table input[type="number"] {
            width: 90px;
            padding: 6px 8px;
            border-radius: 8px;
            border: 1px solid rgba(148,163,184,0.6);
            background: #001B3A;
            color: #ffffff;
            font-size: 13px;
        }

        html[data-theme="light"] .pos-table input[type="number"] {
            background: #ffffff;
            color: #0f172a;
            border-color: #cbd5f5;
        }

        .totals-row {
            background: rgba(3,4,94,0.98);
            font-weight: 600;
        }

        html[data-theme="light"] .totals-row {
            background: #e0f2fe;
        }

        /* PAYMENT SECTION */

        .payment-section {
            margin-top: 16px;
            padding: 14px 12px;
            border-radius: 14px;
            border: 1px solid rgba(148,163,184,0.6);
            background: rgba(2,16,40,0.85);
        }

        html[data-theme="light"] .payment-section {
            background: #f9fafb;
            border-color: #cbd5f5;
        }

        .payment-section h3 {
            font-size: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .payment-section h3 span {
            font-size: 16px;
        }

        .payment-methods {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-bottom: 10px;
            font-size: 13px;
        }

        .payment-methods label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .payment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 10px;
            font-size: 13px;
        }

        .payment-field {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .payment-field span.label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            opacity: 0.85;
        }

        .payment-field input[type="text"],
        .payment-field input[type="number"] {
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid rgba(148,163,184,0.6);
            background: #001B3A;
            color: #ffffff;
            font-size: 13px;
        }

        html[data-theme="light"] .payment-field input[type="text"],
        html[data-theme="light"] .payment-field input[type="number"] {
            background: #ffffff;
            color: #0f172a;
            border-color: #cbd5f5;
        }

        .payment-summary {
            margin-top: 8px;
            font-size: 13px;
        }

        .payment-summary .amount {
            font-weight: 600;
        }

        .payment-summary .change-positive {
            color: #4ade80;
        }

        .payment-summary .change-zero {
            color: #e5e7eb;
        }

        html[data-theme="light"] .payment-summary .change-zero {
            color: #111827;
        }

        .payment-options-extra {
            margin-top: 10px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ACTION BUTTONS UNDER TABLE */

        .pos-actions {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .btn-secondary {
            background: rgba(15,23,42,0.9);
            color: #e5e7eb;
            border-radius: 10px;
            border: 1px solid rgba(148,163,184,0.7);
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
        }

        .btn-secondary:hover {
            background: rgba(15,23,42,1);
        }

        html[data-theme="light"] .btn-secondary {
            background: #f3f4f6;
            color: #0f172a;
            border-color: #cbd5f5;
        }

        html[data-theme="light"] .btn-secondary:hover {
            background: #e5e7eb;
        }

        .btn-primary-submit {
            background: linear-gradient(to right, #22d3ee, #0ea5e9);
            color: #011b35;
            border-radius: 10px;
            border: none;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 10px 26px rgba(0,0,0,0.55);
        }

        .btn-primary-submit:hover {
            filter: brightness(1.06);
        }

        .back-link {
            display: inline-block;
            margin-top: 18px;
            font-size: 13px;
            color: var(--cash-accent-alt);
            text-decoration: none;
        }

        .back-link:hover {
            text-decoration: underline;
        }

        @media (max-width: 800px) {
            .scan-form-row {
                flex-direction: column;
            }

            .scan-form-row input[type="text"],
            .btn-primary-main {
                width: 100%;
            }

            .pos-header {
                flex-direction: column;
                align-items: flex-start;
            }
        }
    </style>