/* ── POS (pos- prefix) ────────────────────────────────────────────────── */
/* Dark theme matching platform design */

.pos-page {
    min-height: 100vh;
    background: #0F1412;
    color: #E8E8E8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 2rem;
}

/* ── Header ──────────────────────────────────────────────────────── */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    background: #0F1412;
    padding: 16px 20px;
}
.pos-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.pos-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pos-title i { color: #2DD4BF; }
.pos-quick-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pos-qs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.pos-qs-pending { background: rgba(234,179,8,0.15); color: #EAB308; }
.pos-qs-preparing { background: rgba(249,115,22,0.15); color: #F97316; }
.pos-qs-ready { background: rgba(45,212,191,0.15); color: #2DD4BF; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.pos-btn-primary { background: linear-gradient(135deg, #2DD4BF, #22C55E); color: #0F1412; box-shadow: 0 2px 8px rgba(45,212,191,0.2); }
.pos-btn-primary:hover { background: linear-gradient(135deg, #14B8A6, #16A34A); }
.pos-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.pos-btn-ghost { background: transparent; border: 1px solid #2E2E2E; color: #9CA3AF; }
.pos-btn-ghost:hover { border-color: #2DD4BF; color: #2DD4BF; }
.pos-btn-sm { padding: 4px 10px; font-size: 13px; }
.pos-btn-block { width: 100%; justify-content: center; padding: 12px; }
.pos-btn-danger { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.pos-btn-danger:hover { background: rgba(239,68,68,0.25); }
.pos-btn-action { background: linear-gradient(135deg, #2DD4BF, #22C55E); color: #0F1412; box-shadow: 0 2px 8px rgba(45,212,191,0.2); }
.pos-btn-action:hover { background: linear-gradient(135deg, #14B8A6, #16A34A); }
.pos-btn-cancel { background: rgba(239,68,68,0.1); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.pos-btn-success { background: rgba(45,212,191,0.15); color: #2DD4BF; border: 1px solid rgba(45,212,191,0.3); }
.pos-btn-muted { background: rgba(107,114,128,0.15); color: #6B7280; border: 1px solid #2E2E2E; }

/* ── Tabs ──────────────────────────────────────────────────────────── */
.pos-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #2E2E2E;
    margin-bottom: 20px;
    overflow-x: auto;
}
.pos-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pos-tab:hover { color: #2DD4BF; }
.pos-tab-active { color: #2DD4BF; border-bottom-color: #2DD4BF; font-weight: 600; }

/* ── Content Area ──────────────────────────────────────────────────── */
.pos-content {
    min-height: 400px;
    padding: 0 20px;
}

/* ── Filter Tabs ──────────────────────────────────────────────────── */
.pos-orders-toolbar,
.pos-menu-toolbar,
.pos-qr-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
a.pos-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pos-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
}
.pos-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #2E2E2E;
    background: transparent;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pos-filter-btn:hover { border-color: #2DD4BF; color: #2DD4BF; }
.pos-filter-active { background: linear-gradient(135deg, #2DD4BF, #22C55E); color: #0F1412; border-color: #2DD4BF; font-weight: 600; }

/* ── Search ───────────────────────────────────────────────────────── */
.pos-search-bar {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.pos-search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
}
.pos-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #1A1D1C;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    color: #E8E8E8;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.pos-search-input::placeholder { color: #6B7280; }
.pos-search-input:focus { border-color: #2DD4BF; }

/* ── Order Grid ────────────────────────────────────────────────────── */
.pos-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.pos-order-card {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
.pos-order-card:hover { transform: translateY(-2px); box-shadow: 0px 8px 24px rgba(0,0,0,0.4); }
.pos-order-card.pos-status-pending { border-left-color: #EAB308; }
.pos-order-card.pos-status-confirmed { border-left-color: #2DD4BF; }
.pos-order-card.pos-status-preparing { border-left-color: #F97316; }
.pos-order-card.pos-status-ready { border-left-color: #22C55E; }
.pos-order-card.pos-status-delivery { border-left-color: #3B82F6; }
.pos-order-card.pos-status-delivered { border-left-color: #6B7280; }
.pos-order-card.pos-status-cancelled { border-left-color: #EF4444; opacity: 0.7; }
.pos-order-card.pos-order-open-bill { border-left: 4px solid #2DD4BF; }

/* ── Open Bill Badge ───────────────────────────────────────────────── */
.pos-open-bill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(45,212,191,0.15);
    color: #2DD4BF;
    margin-left: 6px;
    vertical-align: middle;
}
.pos-btn-open-bill {
    background: rgba(45,212,191,0.15);
    color: #2DD4BF;
    border: 1px solid rgba(45,212,191,0.3);
}
.pos-btn-open-bill:hover { background: rgba(45,212,191,0.25); }
.pos-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.pos-order-number { font-weight: 700; font-size: 14px; color: #FFFFFF; }
.pos-order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pos-order-status.pos-status-pending { background: rgba(234,179,8,0.15); color: #EAB308; }
.pos-order-status.pos-status-confirmed { background: rgba(45,212,191,0.15); color: #2DD4BF; }
.pos-order-status.pos-status-preparing { background: rgba(249,115,22,0.15); color: #F97316; }
.pos-order-status.pos-status-ready { background: rgba(34,197,94,0.15); color: #22C55E; }
.pos-order-status.pos-status-delivery { background: rgba(59,130,246,0.15); color: #3B82F6; }
.pos-order-status.pos-status-delivered { background: rgba(107,114,128,0.15); color: #6B7280; }
.pos-order-status.pos-status-cancelled { background: rgba(239,68,68,0.15); color: #EF4444; }
.pos-order-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9CA3AF;
}
.pos-order-meta i { margin-right: 3px; }
.pos-order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}
.pos-order-customer { color: #E8E8E8; }
.pos-order-items-count { color: #9CA3AF; }
.pos-order-total { font-weight: 700; color: #2DD4BF; }
.pos-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Kitchen Display ──────────────────────────────────────────────── */
.pos-kitchen-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.pos-ks-card {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
.pos-ks-card i { color: #2DD4BF; font-size: 20px; margin-bottom: 4px; display: block; }
.pos-ks-card span { font-size: 28px; font-weight: 700; color: #FFFFFF; display: block; }
.pos-ks-card label { font-size: 12px; color: #9CA3AF; text-transform: uppercase; letter-spacing: 1px; }
.pos-kitchen-refresh { margin-bottom: 16px; }
.pos-kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.pos-kitchen-card {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 16px;
    border-top: 3px solid #F97316;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
.pos-kitchen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.pos-kitchen-order { font-weight: 700; color: #FFFFFF; font-size: 14px; }
.pos-kitchen-elapsed { color: #9CA3AF; font-size: 12px; }
.pos-kitchen-table { font-size: 13px; color: #2DD4BF; margin-bottom: 8px; }
.pos-kitchen-table i { margin-right: 4px; }
.pos-kitchen-items { margin-bottom: 4px; }
.pos-kitchen-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
}
.pos-ki-qty { font-weight: 700; color: #2DD4BF; min-width: 24px; }
.pos-ki-name { color: #E8E8E8; }
.pos-ki-note { color: #EAB308; font-size: 11px; margin-left: auto; }
.pos-kitchen-notes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2E2E2E;
    font-size: 12px;
    color: #EAB308;
}
.pos-kitchen-notes i { margin-right: 4px; }

/* ── Menu Management ──────────────────────────────────────────────── */
.pos-section { margin-bottom: 24px; }
.pos-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pos-section-title i { color: #2DD4BF; }
.pos-menu-list { display: flex; flex-direction: column; gap: 4px; }
.pos-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #1A1D1C;
    border: none;
    border-radius: 14px;
    transition: background 0.15s;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}
.pos-menu-row:hover { background: #1F2A27; }
.pos-menu-item-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pos-menu-item-name { font-size: 14px; color: #E8E8E8; font-weight: 500; }
.pos-menu-item-price { font-size: 14px; color: #2DD4BF; font-weight: 600; }
.pos-toggle-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.pos-toggle-on { background: rgba(45,212,191,0.15); color: #2DD4BF; }
.pos-toggle-on:hover { background: rgba(45,212,191,0.25); }
.pos-toggle-off { background: rgba(239,68,68,0.1); color: #EF4444; }
.pos-toggle-off:hover { background: rgba(239,68,68,0.2); }
.pos-specials-list { display: flex; flex-direction: column; gap: 4px; }
.pos-special-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #1A2B28;
    border: none;
    border-radius: 14px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}
.pos-special-info { display: flex; align-items: center; gap: 12px; }
.pos-special-name { font-weight: 500; color: #E8E8E8; }
.pos-special-price { color: #2DD4BF; font-weight: 600; }

/* ── Slug Setup (QR prerequisite) ──────────────────────────────────── */
.pos-slug-setup {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}
.pos-slug-setup-card {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
.pos-slug-setup-card h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin: 16px 0 8px;
}
.pos-slug-setup-card p {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.5;
}
.pos-slug-hint {
    background: #0F1412;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px !important;
    text-align: left;
    margin-bottom: 20px !important;
}
.pos-slug-hint strong {
    color: #2DD4BF;
}
.pos-slug-setup-icon {
    font-size: 36px;
    color: #2DD4BF;
}
.pos-slug-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.pos-slug-form .pos-input {
    flex: 1;
}
.pos-slug-form .pos-btn-ghost {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── QR Codes ─────────────────────────────────────────────────────── */
.pos-qr-content { text-align: center; }
.pos-qr-restaurant { margin-bottom: 32px; }
.pos-qr-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    display: inline-block;
    margin: 8px;
}
.pos-qr-label {
    font-size: 14px;
    font-weight: 600;
    color: #0F1412;
    margin-bottom: 12px;
}
.pos-qr-url {
    font-size: 11px;
    color: #6B7280;
    word-break: break-all;
    margin-top: 8px;
    max-width: 240px;
}
.pos-qr-name {
    font-size: 16px;
    font-weight: 700;
    color: #0F1412;
    margin-top: 4px;
}
.pos-qr-image {
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
    border-radius: 4px;
}
.pos-qr-placeholder {
    width: 200px;
    height: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border-radius: 4px;
    font-size: 48px;
    color: #9CA3AF;
}
.pos-qr-tables-title { text-align: left; }
.pos-qr-tables-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.pos-qr-table-card { min-width: 180px; }

/* ── Tables ───────────────────────────────────────────────────────── */
.pos-tables-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pos-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.pos-table-card {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
.pos-table-card:hover { transform: translateY(-2px); }
.pos-table-number {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}
.pos-table-name {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 8px;
}
.pos-table-status {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
}
.pos-status-active { background: rgba(45,212,191,0.15); color: #2DD4BF; }
.pos-status-inactive { background: rgba(107,114,128,0.15); color: #6B7280; }
.pos-table-actions { display: flex; gap: 8px; justify-content: center; }

/* ── Order Detail Overlay ─────────────────────────────────────────── */
.pos-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-detail-panel {
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.pos-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.pos-detail-header h3 { margin: 0; color: #FFFFFF; font-size: 18px; }
.pos-detail-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.pos-detail-body { margin-bottom: 16px; }
.pos-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1F2A27;
    font-size: 14px;
}
.pos-detail-row label { color: #9CA3AF; }
.pos-detail-total { color: #2DD4BF; font-weight: 700; font-size: 18px; }
.pos-detail-notes { color: #EAB308; font-style: italic; }
.pos-detail-footer {
    flex-shrink: 0;
    border-top: 1px solid #2E2E2E;
    padding-top: 16px;
    margin-top: 0;
}
.pos-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pos-detail-actions .pos-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

/* ── Modals ───────────────────────────────────────────────────────── */
.pos-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}
.pos-modal-content {
    position: relative;
    background: #1A1D1C;
    border: none;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2E2E2E;
}
.pos-modal-header h3 { margin: 0; color: #FFFFFF; font-size: 18px; }
.pos-modal-header h3 i { color: #2DD4BF; margin-right: 8px; }
.pos-modal-body { padding: 20px; }

/* ── Form Elements ──────────────────────────────────────────────── */
.pos-form-row {
    margin-bottom: 16px;
}
.pos-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 6px;
}
.pos-input {
    width: 100%;
    padding: 10px 12px;
    background: #1A1D1C;
    border: 1px solid #2E2E2E;
    border-radius: 10px;
    color: #E8E8E8;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pos-input:focus { border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,0.08); }
.pos-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.pos-select option {
    background: #1A1D1C;
    color: #E8E8E8;
    padding: 8px;
}
.pos-label-hint {
    font-weight: 400;
    font-size: 11px;
    color: #6B7280;
}

.pos-type-btns {
    display: flex;
    gap: 8px;
}
.pos-type-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.pos-type-btn:hover { border-color: #2DD4BF; color: #2DD4BF; }
.pos-type-active { background: linear-gradient(135deg, #2DD4BF, #22C55E); color: #0F1412; border-color: #2DD4BF; }

.pos-menu-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 4px;
}
.pos-pick-item {
    padding: 8px 10px;
    background: #1A1D1C;
    border: 1px solid #2E2E2E;
    border-radius: 10px;
    color: #E8E8E8;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.pos-pick-item:hover { border-color: #2DD4BF; background: #1F2A27; }
.pos-pick-price { color: #2DD4BF; font-weight: 600; }

.pos-search-count {
    font-size: 12px;
    color: #9CA3AF;
    padding: 4px 8px;
    text-align: center;
    margin-bottom: 4px;
}
.pos-empty-search {
    text-align: center;
    padding: 20px;
    color: #6B7280;
}
.pos-empty-search p {
    margin: 0;
    font-size: 13px;
}

/* ── POS Open Bill / Payment ─────────────────────────────────────── */
.pos-active-order-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(45,212,191,0.1);
    border: 1px solid rgba(45,212,191,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #E8E8E8;
    font-size: 14px;
}
.pos-active-order-banner i { color: #2DD4BF; font-size: 16px; }
.pos-active-order-banner strong { color: #2DD4BF; }

.pos-confirmation-card {
    text-align: center;
    padding: 20px 0 8px;
}
.pos-confirmation-icon {
    margin-bottom: 12px;
}
.pos-confirmation-icon i {
    font-size: 48px;
    color: #2DD4BF;
}
.pos-confirmation-card h4 {
    font-size: 20px;
    color: #FFFFFF;
    margin: 0 0 8px;
}
.pos-confirmation-subtitle {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 0 16px;
}
.pos-confirmation-details {
    text-align: left;
    background: #0F1412;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
}
.pos-confirmation-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #1F2A27;
}
.pos-confirmation-detail-row:last-child {
    border-bottom: none;
}
.pos-confirmation-detail-row span:first-child {
    color: #9CA3AF;
}
.pos-confirmation-detail-row span:last-child {
    color: #E8E8E8;
    font-weight: 500;
}
.pos-confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 2px solid #2E2E2E;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}
.pos-confirmation-value { color: #2DD4BF; }
.pos-confirmation-note {
    font-size: 12px;
    color: #9CA3AF;
    margin: 12px 0 0;
}
.pos-confirmation-note i { margin-right: 4px; color: #2DD4BF; }
.pos-confirmation-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.pos-confirmation-actions .pos-btn {
    flex: 1;
    justify-content: center;
}
.pos-confirmation-modal {
    max-width: 440px;
}

.pos-bill-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 2px solid #2E2E2E;
    margin-bottom: 8px;
}
.pos-bill-total-label { font-size: 16px; color: #9CA3AF; font-weight: 600; }
.pos-bill-total-amount { font-size: 28px; color: #2DD4BF; font-weight: 700; }
.pos-bill-order-number {
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 20px;
}

.pos-payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.pos-payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: #0F1412;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 600;
}
.pos-payment-btn i { font-size: 24px; color: #9CA3AF; transition: color 0.2s ease; }
.pos-payment-btn:hover { border-color: #2DD4BF; background: rgba(45,212,191,0.05); color: #2DD4BF; }
.pos-payment-btn:hover i { color: #2DD4BF; }
.pos-payment-btn.pos-payment-selected {
    border-color: #2DD4BF;
    background: rgba(45,212,191,0.1);
    color: #2DD4BF;
    box-shadow: 0 0 0 3px rgba(45,212,191,0.15);
}
.pos-payment-btn.pos-payment-selected i { color: #2DD4BF; }

.pos-bill-note {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin: 12px 0 0;
}
.pos-bill-note i { margin-right: 4px; color: #4B5563; }

.pos-submitting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: #9CA3AF;
    font-size: 14px;
}
.pos-submitting .pos-spinner {
    width: 24px; height: 24px;
    border-width: 2px;
    margin-bottom: 0;
}

.pos-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #2E2E2E;
    color: #6B7280;
}

.pos-order-summary {
    background: #0F1412;
    border: none;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}
.pos-order-summary h4 { margin: 0 0 8px; font-size: 14px; color: #FFFFFF; }
.pos-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #E8E8E8;
}
.pos-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #2E2E2E;
    margin-top: 8px;
    font-weight: 700;
    color: #2DD4BF;
    font-size: 16px;
}

/* ── Loading & Empty ──────────────────────────────────────────────── */
.pos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6B7280;
}
.pos-spinner {
    width: 36px; height: 36px;
    border: 3px solid #2E2E2E;
    border-top-color: #2DD4BF;
    border-radius: 50%;
    animation: pos-spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes pos-spin { to { transform: rotate(360deg); } }
.pos-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}
.pos-empty i { font-size: 36px; margin-bottom: 12px; display: block; }

/* ── Receipt ─────────────────────────────────────────────────────────── */
.pos-receipt-panel {
    max-width: 520px;
}
.pos-receipt-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.pos-receipt-section {
    margin-top: 4px;
}
.pos-receipt-divider {
    border: none;
    border-top: 1px dashed #2E2E2E;
    margin: 12px 0;
}
.pos-receipt-heading {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pos-receipt-heading i { color: #2DD4BF; }
.pos-receipt-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pos-receipt-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    border-bottom: 1px solid #1F2A27;
    font-size: 13px;
}
.pos-receipt-item:last-child {
    border-bottom: none;
}
.pos-receipt-item-info {
    min-width: 0;
}
.pos-receipt-item-name {
    color: #E8E8E8;
    font-weight: 500;
    word-break: break-word;
}
.pos-receipt-item-note {
    display: block;
    font-size: 11px;
    color: #EAB308;
    margin-top: 2px;
    padding-left: 14px;
}
.pos-receipt-item-note i {
    font-size: 10px;
    margin-right: 2px;
}
.pos-receipt-item-qty {
    color: #9CA3AF;
    white-space: nowrap;
    text-align: right;
    font-size: 12px;
}
.pos-receipt-item-subtotal {
    color: #2DD4BF;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}
.pos-receipt-totals {
    margin-top: 8px;
    padding-top: 8px;
}
.pos-receipt-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #9CA3AF;
}
.pos-receipt-total-row span:last-child {
    color: #E8E8E8;
    font-weight: 500;
}
.pos-receipt-grand-total {
    border-top: 2px solid #2E2E2E;
    margin-top: 8px;
    padding-top: 10px !important;
    font-size: 18px !important;
}
.pos-receipt-grand-total span:first-child {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}
.pos-receipt-grand-total span:last-child {
    color: #2DD4BF !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}
.pos-receipt-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B7280;
    padding-top: 8px;
}
.pos-receipt-business {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.pos-receipt-business-addr {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    letter-spacing: 0;
    margin-top: 2px;
}
.pos-receipt-powered {
    text-align: center;
    font-size: 10px;
    color: #4B5563;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #2E2E2E;
}
.pos-receipt-empty {
    color: #6B7280;
    text-align: center;
    font-size: 13px;
    margin: 8px 0 0;
}

/* ── Print ─────────────────────────────────────────────────────────── */
/* Receipt printing is handled via a dedicated print window (onprintreceipt)
   which opens a narrow thermal-receipt-sized window and calls window.print().
   No @media print rules needed here — the main page should never print. */
@media print {
    /* Prevent the dark POS page from printing */
    .pos-page { display: none !important; }
}