<style>
        :root {
            /* fallbacks in case not defined in cashier_head */
            --cash-accent-main: var(--cash-accent-main, #22d3ee);
            --cash-accent-soft: var(--cash-accent-soft, #7dd3fc);
        }

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

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

        .pos-card,
        .pos-table-card {
            background:
                radial-gradient(circle at top left, rgba(34,211,238,0.10), transparent 55%),
                var(--cash-bg-card);
            border-radius: 18px;
            padding: 18px 22px 20px;
            box-shadow: 0 20px 45px rgba(0,0,0,0.55);
            color: var(--cash-text-main);
            border: 1px solid var(--cash-border-soft);
            margin-bottom: 22px;
        }

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

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

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

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

        .metric-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 10px 0 4px;
        }

        .metric-chip {
            flex: 0 0 auto;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(1,22,61,0.75);
            border: 1px solid rgba(130,238,253,0.8);
            font-size: 12px;
        }

        html[data-theme="light"] .metric-chip {
            background: #eff6ff;
            border-color: #bae6fd;
            color: #0f172a;
        }

        .metric-label {
            color: #82EEFD;
            font-weight: 500;
            margin-right: 6px;
        }

        html[data-theme="light"] .metric-label {
            color: #0369a1;
        }

        .metric-value {
            font-weight: 600;
        }

        /* PRODUCT ROWS */

        .product-rows {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .product-row {
            display: grid;
            grid-template-columns: 2.2fr 0.8fr 0.9fr;
            gap: 10px;
        }

        .product-select-wrapper {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        @media (max-width: 900px) {
            .product-row {
                grid-template-columns: 1fr;
            }
        }

        .product-row select,
        .product-row input {
            padding: 9px 11px;
            border-radius: 10px;
            border: 1px solid rgba(130,238,253,0.5);
            background: #0a3d87;
            color: #E9F5FF;
            font-size: 13px;
        }

        .product-row select::placeholder,
        .product-row input::placeholder {
            color: rgba(226,232,240,0.7);
        }

        html[data-theme="light"] .product-row select,
        html[data-theme="light"] .product-row input {
            background: #ffffff;
            border-color: #cbd5f5;
            color: #0f172a;
        }

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

        .product-row select:focus,
        .product-row input:focus {
            outline: none;
            border-color: #00FFE5;
            box-shadow: 0 0 0 1px rgba(0,255,229,0.35);
        }

        html[data-theme="light"] .product-row select:focus,
        html[data-theme="light"] .product-row input:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 1px rgba(56,189,248,0.35);
        }

        .product-row select option {
            background: #ffffff;
            color: #0f172a;
        }

        /* PAYMENT SECTION – after products */

        .payment-section {
            margin-top: 18px;
            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 */

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

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

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

        .btn-secondary {
            padding: 9px 16px;
            border-radius: 999px;
            border: 1px solid rgba(130,238,253,0.7);
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            background: rgba(0,26,80,0.4);
            color: #E9F5FF;
        }

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

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

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

        .back-link {
            margin-left: auto;
            text-decoration: none;
            font-size: 13px;
            color: var(--cash-accent-soft);
        }

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

        /* TABLE SECTION (unchanged) */

        .pos-table-card {
            margin-top: 4px;
        }

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

        .pos-table-header h3 {
            font-size: 17px;
            font-weight: 600;
        }

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

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

        .entries-form {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }

        .entries-form label {
            color: var(--cash-text-muted);
        }

        .entries-form select {
            padding: 7px 11px;
            border-radius: 999px;
            border: 1px solid rgba(130,238,253,0.6);
            background: #063d8c;
            color: #E9F5FF;
            font-size: 13px;
        }

        html[data-theme="light"] .entries-form select {
            background: #ffffff;
            border-color: #cbd5f5;
            color: #0f172a;
        }

        .pos-table-wrapper {
            width: 100%;
            overflow-x: auto;
            margin-top: 6px;
        }

        table.pos-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            min-width: 900px;
        }

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

        .pos-table th {
            background: #012a73;
            position: sticky;
            top: 0;
            z-index: 1;
            font-weight: 600;
        }

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

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

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

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

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

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

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

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

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

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

        .badge-refunded {
            font-size: 11px;
            padding: 4px 9px;
            border-radius: 999px;
            background: rgba(16,185,129,0.14);
            color: #6ee7b7;
        }

        html[data-theme="light"] .badge-refunded {
            background: #dcfce7;
            color: #166534;
        }

        .btn-refund {
            padding: 5px 10px;
            border-radius: 999px;
            border: none;
            background: #EF4444;
            color: #FFFBF5;
            font-size: 12px;
            cursor: pointer;
        }

        .btn-refund:hover {
            background: #DC2626;
        }

        /* MESSAGE BAR */
        .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;
        }
    </style>