:root,
html[data-pos-theme='light'] {
    --pos-bg: #eef3f9;
    --pos-panel: #ffffff;
    --pos-panel-elevated: #ffffff;
    --pos-border: #d7e0ea;
    --pos-text: #0f172a;
    --pos-muted: #64748b;
    --pos-accent: #16a34a;
    --pos-accent-soft: rgba(22, 163, 74, 0.12);
    --pos-danger: #dc2626;
    --pos-warning: #d97706;
    --pos-warning-soft: rgba(217, 119, 6, 0.12);
    --pos-input-bg: #f8fafc;
    --pos-inset: #f1f5f9;
    --pos-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --pos-btn-secondary-bg: #e2e8f0;
    --pos-btn-secondary-text: #0f172a;
    --pos-qty-border: #cbd5e1;
    --pos-qty-text: #0f172a;
    --pos-overlay: rgba(15, 23, 42, 0.45);
    --pos-login-bg: linear-gradient(160deg, #f8fbff 0%, #e8eef7 100%);
}

html[data-pos-theme='dark'] {
    --pos-bg: #0f172a;
    --pos-panel: #1e293b;
    --pos-panel-elevated: #243247;
    --pos-border: #334155;
    --pos-text: #f8fafc;
    --pos-muted: #94a3b8;
    --pos-accent: #22b573;
    --pos-accent-soft: rgba(34, 181, 115, 0.18);
    --pos-danger: #ef4444;
    --pos-warning: #f59e0b;
    --pos-warning-soft: rgba(245, 158, 11, 0.16);
    --pos-input-bg: #0f172a;
    --pos-inset: #0f172a;
    --pos-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --pos-btn-secondary-bg: #334155;
    --pos-btn-secondary-text: #ffffff;
    --pos-qty-border: #64748b;
    --pos-qty-text: #f8fafc;
    --pos-overlay: rgba(15, 23, 42, 0.72);
    --pos-login-bg: radial-gradient(circle at top, #1e293b, #0f172a);
}

@media (prefers-color-scheme: dark) {
    html[data-pos-theme='auto'] {
        --pos-bg: #0f172a;
        --pos-panel: #1e293b;
        --pos-panel-elevated: #243247;
        --pos-border: #334155;
        --pos-text: #f8fafc;
        --pos-muted: #94a3b8;
        --pos-accent: #22b573;
        --pos-accent-soft: rgba(34, 181, 115, 0.18);
        --pos-danger: #ef4444;
        --pos-warning: #f59e0b;
        --pos-warning-soft: rgba(245, 158, 11, 0.16);
        --pos-input-bg: #0f172a;
        --pos-inset: #0f172a;
        --pos-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
        --pos-btn-secondary-bg: #334155;
        --pos-btn-secondary-text: #ffffff;
        --pos-qty-border: #64748b;
        --pos-qty-text: #f8fafc;
        --pos-overlay: rgba(15, 23, 42, 0.72);
        --pos-login-bg: radial-gradient(circle at top, #1e293b, #0f172a);
    }
}

@media (prefers-color-scheme: light) {
    html[data-pos-theme='auto'] {
        --pos-bg: #eef3f9;
        --pos-panel: #ffffff;
        --pos-panel-elevated: #ffffff;
        --pos-border: #d7e0ea;
        --pos-text: #0f172a;
        --pos-muted: #64748b;
        --pos-accent: #16a34a;
        --pos-accent-soft: rgba(22, 163, 74, 0.12);
        --pos-danger: #dc2626;
        --pos-warning: #d97706;
        --pos-warning-soft: rgba(217, 119, 6, 0.12);
        --pos-input-bg: #f8fafc;
        --pos-inset: #f1f5f9;
        --pos-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        --pos-btn-secondary-bg: #e2e8f0;
        --pos-btn-secondary-text: #0f172a;
        --pos-qty-border: #cbd5e1;
        --pos-qty-text: #0f172a;
        --pos-overlay: rgba(15, 23, 42, 0.45);
        --pos-login-bg: linear-gradient(160deg, #f8fbff 0%, #e8eef7 100%);
    }
}
body.pos-admin-body,
.pos-admin-mobile-bar {
    background: var(--pos-bg);
}

/* ── Admin shell ─────────────────────────────────────────────── */

body.pos-admin-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.06), transparent 28rem),
        var(--pos-bg);
    color: var(--pos-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.pos-admin-sidebar-open {
    overflow: hidden;
}

.pos-admin-app {
    display: flex;
    min-height: 100vh;
}

.pos-admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--pos-panel);
    border-right: 1px solid var(--pos-border);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 1040;
}

.pos-admin-sidebar-brand {
    padding: 1.35rem 1rem 1.15rem;
    border-bottom: 1px solid var(--pos-border);
    text-align: center;
}

.pos-admin-sidebar-brand .pos-admin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.pos-admin-sidebar-brand .pos-brand-logo-admin {
    height: 112px;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
}

.pos-admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.75rem 1rem;
}

.pos-admin-sidebar-section + .pos-admin-sidebar-section {
    margin-top: 1.1rem;
}

.pos-admin-sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pos-muted);
    padding: 0 0.55rem 0.4rem;
}

.pos-admin-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.pos-admin-sidebar-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    color: var(--pos-muted);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.pos-admin-sidebar-link:hover {
    color: var(--pos-text);
    background: var(--pos-inset);
}

.pos-admin-sidebar-link.active {
    color: #fff;
    background: var(--pos-accent);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
}

.pos-admin-sidebar-footer {
    padding: 0.85rem 0.75rem 1rem;
    border-top: 1px solid var(--pos-border);
    display: grid;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.5);
}

html[data-pos-theme='dark'] .pos-admin-sidebar-footer,
html[data-pos-theme='auto'] .pos-admin-sidebar-footer {
    background: rgba(15, 23, 42, 0.25);
}

.pos-admin-sidebar-pos {
    color: var(--pos-text) !important;
    border: 1px solid var(--pos-border);
    background: var(--pos-panel);
}

.pos-admin-sidebar-pos:hover {
    border-color: var(--pos-accent);
    color: var(--pos-accent) !important;
    background: var(--pos-accent-soft) !important;
}

.pos-admin-sidebar-logout {
    color: var(--pos-danger) !important;
}

.pos-admin-sidebar-logout:hover {
    background: rgba(220, 38, 38, 0.08) !important;
}

.pos-admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pos-admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pos-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pos-admin-sidebar-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--pos-border);
    border-radius: 0.55rem;
    background: var(--pos-panel);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.pos-admin-sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem var(--pos-accent-soft);
}

.pos-admin-sidebar-toggle-icon,
.pos-admin-sidebar-toggle-icon::before,
.pos-admin-sidebar-toggle-icon::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--pos-text);
    border-radius: 1px;
    position: relative;
}

.pos-admin-sidebar-toggle-icon::before,
.pos-admin-sidebar-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.pos-admin-sidebar-toggle-icon::before {
    top: -6px;
}

.pos-admin-sidebar-toggle-icon::after {
    top: 6px;
}

.pos-admin-mobile-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pos-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-admin-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--pos-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

html[data-pos-theme='dark'] .pos-admin-top,
html[data-pos-theme='auto'] .pos-admin-top {
    background: rgba(30, 41, 59, 0.92);
}

.pos-admin-top .pos-admin-mobile-bar {
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    position: static;
}

.pos-admin-quick-bar {
    padding: 0.5rem 1rem;
    overflow-x: auto;
}

.pos-admin-quick-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

.pos-admin-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--pos-border);
    background: var(--pos-panel);
    color: var(--pos-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pos-admin-quick-link:hover {
    background: var(--pos-inset);
    color: var(--pos-text);
}

.pos-admin-quick-link.active {
    border-color: var(--pos-accent);
    background: var(--pos-accent-soft);
    color: var(--pos-accent);
}

.pos-admin-quick-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.pos-admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: var(--pos-overlay);
    z-index: 1035;
}

.pos-admin-shell {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.pos-admin-main {
    flex: 1;
    padding: 1.5rem 1.25rem 3rem;
}

.pos-admin-brand {
    font-weight: 800;
    color: var(--pos-text);
    text-decoration: none;
}

.pos-admin-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.pos-admin-page-title {
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--pos-text);
}

.pos-admin-page-subtitle {
    margin: 0.35rem 0 0;
    color: var(--pos-muted);
    font-size: 0.98rem;
}

.pos-admin-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.pos-admin-alert {
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: var(--pos-shadow);
}

.pos-admin-body .alert-success {
    background: var(--pos-accent-soft);
    color: #166534;
}

.pos-admin-body .alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

.pos-card {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    padding: 1.35rem 1.45rem;
    box-shadow: var(--pos-shadow);
}

.pos-admin-body .pos-card > .h5,
.pos-admin-body .pos-card > h1,
.pos-admin-body .pos-card > h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pos-admin-metric {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    padding: 1.2rem 1.25rem 1.2rem 1.35rem;
    box-shadow: var(--pos-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pos-admin-metric::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--pos-admin-metric-accent, var(--pos-accent));
}

.pos-admin-metric-label {
    color: var(--pos-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.pos-admin-metric-value {
    font-size: clamp(1.5rem, 2vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pos-text);
    line-height: 1.1;
}

.pos-admin-metric-staff { --pos-admin-metric-accent: #2563eb; }
.pos-admin-metric-items { --pos-admin-metric-accent: #7c3aed; }
.pos-admin-metric-tabs { --pos-admin-metric-accent: #d97706; }
.pos-admin-metric-sales { --pos-admin-metric-accent: var(--pos-accent); }
.pos-admin-metric-week { --pos-admin-metric-accent: #0891b2; }
.pos-admin-metric-period { --pos-admin-metric-accent: #7c3aed; }
.pos-admin-metric-tables { --pos-admin-metric-accent: #64748b; }
.pos-admin-metric-paid { --pos-admin-metric-accent: #059669; }
.pos-admin-metric-unpaid { --pos-admin-metric-accent: #dc2626; }
.pos-admin-metric-bills { --pos-admin-metric-accent: #0f766e; }

.pos-admin-metric-bills-link {
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pos-admin-metric-bills-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pos-admin-metric-link-value {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
}

.pos-admin-metric-meta {
    margin-top: 0.35rem;
    color: var(--pos-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.pos-admin-dashboard-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.pos-admin-dashboard-period-label {
    margin: 0;
    color: var(--pos-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pos-admin-dashboard-period select {
    width: auto;
    min-width: 10rem;
    max-width: 100%;
}

.pos-admin-dashboard-period-range {
    color: var(--pos-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.pos-admin-dashboard-chart-card {
    display: flex;
    flex-direction: column;
}

.pos-admin-dashboard-chart-card .pos-admin-section-title {
    margin-bottom: 1rem;
}

.pos-admin-chart-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 240px;
    height: 260px;
}

.pos-admin-chart-wrap-doughnut {
    min-height: 220px;
    height: 240px;
}

.pos-admin-chart-wrap-horizontal {
    min-height: 200px;
    height: 220px;
}

.pos-admin-dashboard-table thead th {
    white-space: nowrap;
}

.pos-admin-dashboard-rank {
    width: 2.5rem;
    color: var(--pos-muted);
    font-weight: 700;
}

.pos-admin-dashboard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.pos-admin-dashboard-badge-warn {
    background: var(--pos-warning-soft);
    color: var(--pos-warning);
}

.pos-admin-dashboard-empty {
    color: var(--pos-muted);
    font-weight: 600;
}

.pos-admin-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.pos-admin-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--pos-border);
    background: var(--pos-inset);
    color: inherit;
    text-decoration: none;
    min-height: 100%;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pos-admin-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.35);
    background: var(--pos-panel);
    box-shadow: var(--pos-shadow);
    color: inherit;
}

.pos-admin-link-card-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pos-admin-link-card-desc {
    font-size: 0.86rem;
    color: var(--pos-muted);
}

.pos-admin-link-card.pos-admin-link-card-primary {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.04));
    border-color: rgba(22, 163, 74, 0.22);
}

.pos-admin-body .form-control,
.pos-admin-body .form-select {
    border-color: var(--pos-border);
    background: var(--pos-input-bg);
    color: var(--pos-text);
    border-radius: 12px;
    min-height: 2.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.pos-admin-body .form-control:focus,
.pos-admin-body .form-select:focus {
    border-color: var(--pos-accent);
    box-shadow: 0 0 0 0.2rem var(--pos-accent-soft);
    background: var(--pos-panel);
}

.pos-admin-body .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--pos-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pos-admin-body .btn {
    border-radius: 12px;
    font-weight: 700;
    min-height: 2.65rem;
    padding-inline: 1rem;
}

.pos-admin-body .btn-success {
    background: var(--pos-accent);
    border-color: var(--pos-accent);
}

.pos-admin-body .btn-success:hover,
.pos-admin-body .btn-success:focus {
    background: #15803d;
    border-color: #15803d;
}

.pos-admin-body .btn-outline-secondary {
    border-color: var(--pos-border);
    color: var(--pos-text);
    background: var(--pos-panel);
}

.pos-admin-body .btn-outline-secondary:hover {
    background: var(--pos-inset);
    border-color: var(--pos-border);
    color: var(--pos-text);
}

.pos-admin-body .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--pos-text);
    --bs-table-border-color: var(--pos-border);
    margin-bottom: 0;
}

.pos-admin-body .table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
    font-weight: 700;
    border-bottom-width: 1px;
    white-space: nowrap;
    background: var(--pos-inset);
}

.pos-admin-body .table tbody td {
    vertical-align: middle;
}

.pos-admin-body .table-hover tbody tr:hover {
    background: var(--pos-inset);
}

.pos-admin-body .text-muted,
.pos-admin-body .small.text-muted {
    color: var(--pos-muted) !important;
}

.pos-admin-body .badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.4em 0.7em;
}

.pos-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(22, 163, 74, 0.12), transparent 34rem),
        linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #172554 100%);
}

.pos-login-card {
    width: min(440px, 100%);
    background: var(--pos-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.pos-login-card .form-control {
    border-radius: 12px;
    min-height: 2.85rem;
    background: var(--pos-input-bg);
    border-color: var(--pos-border);
}

.pos-login-card .form-control:focus {
    border-color: var(--pos-accent);
    box-shadow: 0 0 0 0.2rem var(--pos-accent-soft);
}

.pos-login-card .btn-success {
    min-height: 3rem;
    font-weight: 800;
    border-radius: 12px;
}

.pos-login-card .alert-danger {
    border-radius: 12px;
    border: 0;
}

.pos-brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pos-brand-logo-staff {
    height: 42px;
}

.pos-brand-logo-admin {
    height: 46px;
}

.pos-brand-logo-login {
    height: 88px;
    margin: 0 auto;
}

.pos-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.pos-topbar-copy {
    min-width: 0;
}

.item-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef2f7;
}

.item-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    background: #eef2f7;
}

.pos-commission-block {
    background: var(--pos-inset);
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.pos-commission-block-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pos-inventory-item-form {
    background: var(--pos-panel);
}

.pos-inventory-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--pos-muted, #64748b);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.pos-inventory-table tbody td {
    vertical-align: middle;
}

.inventory-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--pos-inset, #e2e8f0);
}

.inventory-thumb-empty,
.inventory-edit-preview.inventory-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--pos-muted, #64748b);
    font-size: 0.85rem;
}

.inventory-edit-preview {
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--pos-inset, #e2e8f0);
}

.inventory-image-search-panel {
    padding: 0.75rem;
    border: 1px solid var(--pos-border, #dbe3ef);
    border-radius: 12px;
    background: var(--pos-surface-muted, #f8fafc);
}

.inventory-image-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.75rem;
}

.inventory-image-search-result {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--pos-border, #dbe3ef);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inventory-image-search-result:hover,
.inventory-image-search-result.is-selected {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

.inventory-image-search-result img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--pos-inset, #e2e8f0);
}

.inventory-image-search-result-title,
.inventory-image-search-result-source {
    display: block;
    line-height: 1.2;
}

.inventory-image-search-result-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pos-text, #0f172a);
}

.inventory-image-search-result-source {
    font-size: 0.68rem;
    color: var(--pos-muted, #64748b);
}

.inventory-row[hidden] {
    display: none;
}

.pos-inventory-table .form-control-sm {
    min-width: 88px;
}

.pos-inventory-filters {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--pos-inset, #f8fafc);
    border: 1px solid var(--pos-border, #e2e8f0);
}

.pos-inventory-modal .modal-dialog {
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
}

.pos-inventory-modal .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-inventory-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pos-inventory-modal .modal-header,
.pos-inventory-modal .modal-footer {
    flex-shrink: 0;
}

.pos-inventory-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.pos-staff-body {
    margin: 0;
    background: var(--pos-bg);
    color: var(--pos-text);
    min-height: 100vh;
}

.pos-staff-body .pos-muted,
.pos-staff-body .text-secondary,
.pos-staff-body .text-muted {
    color: var(--pos-muted) !important;
}

.pos-staff-body .pos-warning-text {
    color: var(--pos-warning) !important;
}

.pos-staff-body h1,
.pos-staff-body h2,
.pos-staff-body h3,
.pos-staff-body h4,
.pos-staff-body h5,
.pos-staff-body h6,
.pos-staff-body .pos-topbar-title {
    color: var(--pos-text);
}

.pos-theme-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background: var(--pos-inset);
    border: 1px solid var(--pos-border);
    gap: 0.15rem;
}

.pos-theme-toggle-btn {
    border: 0;
    background: transparent;
    color: var(--pos-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    min-width: 3.1rem;
    touch-action: manipulation;
}

.pos-theme-toggle-btn.active {
    background: var(--pos-panel);
    color: var(--pos-text);
    box-shadow: var(--pos-shadow);
}

.pos-staff-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--pos-login-bg);
}
.pos-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    height: 100vh;
}

.pos-shell.pos-shell-has-cart {
    grid-template-columns: 1fr 360px;
}

.pos-shell.pos-shell-has-cart > .pos-main,
.pos-shell.pos-shell-has-cart > .pos-cart {
    min-height: 0;
}

.pos-main {
    padding: 1rem;
    overflow: auto;
    background: var(--pos-bg);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.pos-cart {
    background: var(--pos-panel);
    border-left: 1px solid var(--pos-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pos-cart-header {
    flex-shrink: 0;
}

.pos-cart-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pos-cart-print,
.pos-cart-close {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--pos-border);
    border-radius: 12px;
    background: var(--pos-btn-secondary-bg);
    color: var(--pos-text);
    font-size: 1.75rem;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.pos-cart-print svg {
    display: block;
}

.pos-cart-print:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pos-cart-print:hover:not(:disabled),
.pos-cart-print:focus-visible:not(:disabled),
.pos-cart-close:hover,
.pos-cart-close:focus-visible {
    background: var(--pos-inset);
    outline: none;
}

.pos-cart-customer {
    flex-shrink: 0;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid var(--pos-border);
}

.pos-cart-customer-btn {
    width: 100%;
    border: 1px dashed var(--pos-border);
    border-radius: 14px;
    background: var(--pos-inset);
    color: var(--pos-text);
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    touch-action: manipulation;
}

.pos-cart-customer-btn:active {
    opacity: 0.9;
}

.pos-cart-customer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
}

.pos-cart-customer-value {
    font-size: 1rem;
    font-weight: 700;
}

.pos-cart-customer-value.is-empty {
    color: var(--pos-muted);
    font-weight: 600;
}

.pos-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pos-border);
    background: var(--pos-panel);
}

.pos-topbar-actions {
    margin-left: auto;
}

.pos-topbar-actions .pos-btn {
    white-space: nowrap;
}

.pos-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.pos-table-zone {
    margin-bottom: 1.5rem;
}

.pos-table-area-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.pos-area-tabs-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    cursor: pointer;
}

.pos-area-tabs-switch .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    padding-top: 0.15rem;
    user-select: none;
}

.pos-table-area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pos-table-area-tab {
    align-items: center;
    background: var(--pos-panel);
    border: 2px solid var(--pos-border);
    border-radius: 16px;
    color: var(--pos-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 3.5rem;
    min-width: 7.5rem;
    padding: 0.85rem 1.35rem;
    touch-action: manipulation;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pos-table-area-tab.active {
    background: var(--pos-accent-soft);
    border-color: var(--pos-accent);
    box-shadow: 0 0 0 2px var(--pos-accent-soft);
}

.pos-table-area-tab-badge {
    align-items: center;
    background: var(--pos-border);
    border-radius: 50%;
    color: var(--pos-muted);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    width: 2rem;
}

.pos-table-area-tab-badge.has-open {
    background: var(--pos-warning);
    color: #fff;
}

.pos-area-tabs-mode .pos-table-zone-title {
    display: none;
}

.pos-table-zone:last-child {
    margin-bottom: 0;
}

.pos-table-zone-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pos-muted);
    margin-bottom: 0.75rem;
}

.pos-table-zone-block {
    padding-top: 0.25rem;
}

.pos-table-zone-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pos-border);
}

.pos-receipt-logo-preview {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.pos-table-card {
    background: var(--pos-panel);
    border: 2px solid var(--pos-border);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--pos-text);
    box-shadow: var(--pos-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-table-card .pos-table-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pos-text);
}

.pos-table-card .pos-table-subtitle {
    color: var(--pos-muted);
}

.pos-table-card .pos-table-amount {
    color: var(--pos-warning);
    font-weight: 700;
}
.pos-table-card:hover,
.pos-table-card.active {
    transform: translateY(-2px);
    border-color: var(--pos-accent);
}

.pos-table-card.occupied {
    border-color: var(--pos-warning);
    background: linear-gradient(180deg, var(--pos-panel) 0%, var(--pos-warning-soft) 100%);
}

.pos-table-card.selected {
    border-color: var(--pos-accent);
    box-shadow: 0 0 0 3px var(--pos-accent-soft), var(--pos-shadow);
}

.pos-floor-canvas-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--pos-border);
    border-radius: 18px;
}

.pos-floor-canvas-viewport .pos-floor-canvas {
    border: none;
    border-radius: 0;
    min-height: 0;
}

.pos-floor-canvas {
    position: relative;
    width: 100%;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        var(--pos-panel);
    background-size: 5% 5%, 5% 5%, auto;
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
}

.pos-floor-canvas.is-drop-target {
    outline: 2px dashed var(--pos-accent);
    outline-offset: -2px;
}

.pos-floor-canvas .pos-table-card,
.pos-floor-table {
    position: absolute;
    margin: 0;
    min-width: 0;
    min-height: 0;
    padding: 0.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    touch-action: none;
}

.pos-floor-table.is-dragging {
    z-index: 3;
    cursor: grabbing;
    box-shadow: var(--pos-shadow);
}

.pos-floor-table-name,
.pos-floor-canvas .pos-table-name {
    font-size: clamp(0.65rem, 1.6vw, 1.1rem);
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.pos-floor-canvas .pos-table-subtitle,
.pos-floor-canvas .pos-table-amount {
    font-size: clamp(0.55rem, 1.2vw, 0.75rem);
    margin-top: 0.15rem;
}

.pos-table-shape-square {
    border-radius: 18px;
}

.pos-table-shape-round {
    border-radius: 50%;
}

.pos-table-shape-rectangle {
    border-radius: 12px;
}

.pos-table-shape-bar {
    border-radius: 999px;
}

.pos-admin-plan-app .pos-admin-plan-size-input {
    width: 5.5rem;
}

.pos-admin-plan-unplaced-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-admin-plan-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px dashed var(--pos-border);
    border-radius: 999px;
    background: var(--pos-panel);
    color: var(--pos-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: grab;
    user-select: none;
}

.pos-admin-plan-chip.is-dragging {
    opacity: 0.65;
}

.pos-admin-plan-chip.is-inactive,
.pos-floor-table.is-inactive-table {
    opacity: 0.55;
}

.pos-admin-plan-canvas {
    margin-top: 0.25rem;
}

.pos-order-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.pos-promotion-banner {
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: var(--pos-accent-soft);
    color: var(--pos-text);
    font-size: 0.875rem;
    border: 1px solid color-mix(in srgb, var(--pos-accent) 35%, transparent);
}

.pos-promotion-banner-sep {
    margin: 0 0.35rem;
    opacity: 0.65;
}

.pos-order-layout {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    flex: 1;
    min-height: 0;
    margin: 0.5rem;
    border: 1px solid var(--pos-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--pos-panel);
    box-shadow: var(--pos-shadow);
}

.pos-category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem;
    border-right: 1px solid var(--pos-border);
    background: var(--pos-inset);
    overflow-y: auto;
}

.pos-category-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.9rem 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    background: transparent;
    color: var(--pos-text);
    touch-action: manipulation;
}

.pos-category-btn:hover {
    background: var(--pos-panel);
}

.pos-category-btn.active {
    background: var(--pos-panel);
    color: var(--pos-accent);
    border-color: var(--pos-accent);
    box-shadow: var(--pos-shadow);
}

.pos-menu-area {
    padding: 1rem;
    overflow-y: auto;
    min-height: 0;
}

.pos-menu-panel {
    display: none;
}

.pos-menu-panel.active {
    display: block;
}

.pos-menu-panel-title {
    color: var(--pos-text);
}

.pos-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
}

.pos-menu-item {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    color: var(--pos-text);
    box-shadow: var(--pos-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.pos-menu-item:hover {
    transform: translateY(-2px);
    border-color: var(--pos-accent);
}

.pos-menu-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--pos-inset);
}
.pos-menu-item .meta {
    padding: 0.75rem;
}

.pos-cart-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.pos-cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--pos-border);
}

.pos-cart-actions {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid var(--pos-border);
    background: var(--pos-panel);
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    color: var(--pos-muted);
}

.pos-total-row strong {
    color: var(--pos-text);
}

.pos-btn {
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.pos-btn-primary {
    background: var(--pos-accent);
    color: #fff;
}

.pos-btn-secondary {
    background: var(--pos-btn-secondary-bg);
    color: var(--pos-btn-secondary-text);
}

.pos-qty-btn {
    min-width: 2.2rem;
    border: 1px solid var(--pos-qty-border);
    background: var(--pos-panel);
    color: var(--pos-qty-text);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}
.pos-btn-danger {
    background: var(--pos-danger);
    color: #fff;
}

body.pos-staff-body .modal-backdrop {
    z-index: 1990;
}

body.pos-staff-body .modal {
    z-index: 2000;
}

.pos-checkout-modal {
    z-index: 2000;
}

.pos-checkout-modal .modal-content {
    background: var(--pos-panel);
    color: var(--pos-text);
    border: 1px solid var(--pos-border);
}

.pos-checkout-modal .form-control,
.pos-checkout-modal .form-select {
    background: var(--pos-input-bg);
    border-color: var(--pos-border);
    color: var(--pos-text);
}

html[data-pos-theme='dark'] .pos-checkout-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (prefers-color-scheme: dark) {
    html[data-pos-theme='auto'] .pos-checkout-modal .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
}

.pos-change-display {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pos-accent);
}

.pos-pay-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pos-staff-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
}

.pos-staff-picker-btn {
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    background: var(--pos-btn-secondary-bg);
    color: var(--pos-text);
    padding: 1rem 0.75rem;
    font-weight: 700;
    min-height: 4.5rem;
    cursor: pointer;
}

.pos-staff-picker-btn:hover,
.pos-staff-picker-btn:focus-visible {
    border-color: var(--pos-accent);
    background: var(--pos-inset);
    outline: none;
}

.pos-staff-picker-btn.is-in-work {
    border-color: #2d9f5b;
    background: rgba(45, 159, 91, 0.18);
    color: #9ee8b8;
}

.pos-staff-picker-btn.is-off {
    border-color: #b44;
    background: rgba(187, 68, 68, 0.12);
    color: #f0a0a0;
    opacity: 0.85;
}

.pos-staff-picker-btn.is-neutral {
    border-color: var(--pos-border);
}

.pos-staff-picker-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pos-staff-picker-card .pos-staff-picker-btn {
    width: 100%;
}

.pos-staff-picker-off-btn {
    border: 1px solid var(--pos-border);
    border-radius: 10px;
    background: transparent;
    color: var(--pos-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.pos-staff-picker-off-btn:hover,
.pos-staff-picker-off-btn:focus-visible {
    border-color: #b44;
    color: #f0a0a0;
    outline: none;
}

.pos-attendance-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pos-muted);
}

.pos-attendance-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}

.pos-attendance-legend-dot.is-in-work {
    background: #2d9f5b;
}

.pos-attendance-legend-dot.is-off {
    background: #b44;
}

.pos-attendance-legend-dot.is-neutral {
    background: var(--pos-border);
}

.pos-move-table-zones {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pos-move-table-zone:last-child {
    margin-bottom: 0;
}

.pos-move-table-zone-title {
    color: var(--pos-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.pos-move-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
}

.pos-move-table-btn {
    border: 2px solid var(--pos-border);
    border-radius: 14px;
    background: var(--pos-panel);
    color: var(--pos-text);
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--pos-shadow);
}

.pos-move-table-btn .pos-move-table-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.pos-move-table-btn .pos-move-table-action {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
}

.pos-move-table-btn.is-merge {
    border-color: var(--pos-warning);
    background: linear-gradient(180deg, var(--pos-panel) 0%, var(--pos-warning-soft) 100%);
}

.pos-move-table-btn.is-merge .pos-move-table-action {
    color: var(--pos-warning);
}

.pos-move-table-btn:hover,
.pos-move-table-btn:focus-visible {
    border-color: var(--pos-accent);
    outline: none;
    transform: translateY(-1px);
}

.pos-bill-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pos-bill-picker-btn {
    align-items: center;
    background: var(--pos-panel);
    border: 2px solid var(--pos-border);
    border-radius: 16px;
    color: var(--pos-text);
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 4rem;
    padding: 1rem 1.15rem;
    text-align: left;
    touch-action: manipulation;
    width: 100%;
}

.pos-bill-picker-btn:hover,
.pos-bill-picker-btn:focus-visible {
    border-color: var(--pos-accent);
    outline: none;
}

.pos-bill-picker-btn-main {
    min-width: 0;
}

.pos-bill-picker-btn-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.pos-bill-picker-btn-meta {
    color: var(--pos-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.pos-bill-picker-btn-amount {
    color: var(--pos-warning);
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.pos-table-tab-count {
    font-weight: 700;
}

.pos-pay-method-btn {
    min-height: 5rem;
    border: 2px solid var(--pos-border);
    border-radius: 16px;
    background: var(--pos-inset);
    color: var(--pos-text);
    font-size: 1.2rem;
    font-weight: 800;
    touch-action: manipulation;
    padding: 0.75rem;
}

.pos-pay-method-btn:active {
    transform: scale(0.98);
}

.pos-pay-method-btn.active {
    border-color: var(--pos-accent);
    background: var(--pos-accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.pos-numpad-input {
    cursor: pointer;
    caret-color: transparent;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    min-height: 3rem;
}

.pos-pin-display-input {
    letter-spacing: 0.35rem;
    font-size: 1.5rem;
    text-align: center;
}

.pos-pin-login-card {
    width: min(480px, 96vw);
}

.pos-numpad-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: var(--pos-overlay);
    display: grid;
    align-items: end;
    padding: 0.75rem;
}

.pos-numpad-overlay[hidden] {
    display: none !important;
}

body.pos-numpad-open {
    overflow: hidden;
}

.pos-numpad-panel {
    width: min(420px, 100%);
    margin: 0 auto;
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 20px 20px 16px 16px;
    padding: 1rem;
    color: var(--pos-text);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.pos-numpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pos-numpad-label {
    font-weight: 700;
    color: var(--pos-muted);
}

.pos-numpad-close {
    border: 0;
    background: transparent;
    color: var(--pos-muted);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0 0.25rem;
}

.pos-numpad-display {
    background: var(--pos-input-bg);
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    min-height: 3.5rem;
    display: grid;
    place-items: center;
    letter-spacing: 0.08rem;
}

.pos-numpad-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.pos-numpad-quick-btn {
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    background: var(--pos-accent-soft, rgba(34, 197, 94, 0.12));
    color: var(--pos-text);
    font-size: 1rem;
    font-weight: 700;
    min-height: 2.75rem;
    touch-action: manipulation;
}

.pos-numpad-quick-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.pos-numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.pos-numpad-key {
    border: 0;
    border-radius: 14px;
    background: var(--pos-btn-secondary-bg);
    color: var(--pos-btn-secondary-text);
    font-size: 1.5rem;
    font-weight: 700;
    min-height: 3.4rem;
    touch-action: manipulation;
}

.pos-numpad-key:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.pos-stat-box {
    background: var(--pos-inset);
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    padding: 1rem;
}

.pos-stat-box .label {
    color: var(--pos-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.pos-stat-box .value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--pos-text);
}

button.pos-stat-box-reveal {
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

button.pos-stat-box-reveal:hover:not(:disabled) {
    border-color: var(--pos-accent);
    background: var(--pos-panel);
}

button.pos-stat-box-reveal:disabled {
    cursor: default;
    opacity: 0.92;
}
.pos-numpad-done {
    width: 100%;
    min-height: 3.2rem;
    font-size: 1.1rem;
}

.pos-text-keypad-panel {
    width: min(640px, 100%);
}

.pos-text-keypad-display {
    background: var(--pos-input-bg);
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    min-height: 3.25rem;
    display: grid;
    place-items: center;
    word-break: break-word;
}

.pos-text-keypad-display.is-empty {
    color: var(--pos-muted);
    font-size: 1rem;
    font-weight: 600;
}

.pos-text-keypad-rows {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.pos-text-keypad-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pos-text-keypad-key {
    border: 0;
    border-radius: 12px;
    background: var(--pos-btn-secondary-bg);
    color: var(--pos-btn-secondary-text);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 2.35rem;
    min-height: 2.85rem;
    padding: 0 0.55rem;
    touch-action: manipulation;
}

.pos-text-keypad-key:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.pos-text-keypad-key-fn {
    min-width: 2.75rem;
    font-size: 1rem;
}

.pos-text-keypad-key-shift.active {
    background: var(--pos-accent);
    color: #fff;
}

.pos-text-keypad-key-space {
    flex: 1;
    min-width: 8rem;
}

.pos-text-keypad-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.55rem;
}

.pos-text-keypad-clear,
.pos-text-keypad-done {
    min-height: 3.2rem;
    font-size: 1.05rem;
}

.pos-login-touch .pos-numpad-panel {
    width: min(480px, 100%);
}

.pos-eod-shell {
    grid-template-columns: 1fr;
}

.pos-stocktake-shell {
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.pos-stocktake-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.15);
}

.pos-stocktake-item-name {
    font-weight: 600;
}

.pos-stocktake-item-meta {
    font-size: 0.85rem;
    opacity: 0.75;
}

.pos-stocktake-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    padding: 0.85rem 0 1rem;
    background: linear-gradient(to top, var(--pos-bg, #fff) 75%, transparent);
}

.pos-eod-step-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pos-accent);
}

.pos-eod-commission-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.pos-card-dark {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--pos-shadow);
}

.pos-eod-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--pos-text);
    --bs-table-border-color: var(--pos-border);
}

html[data-pos-theme='dark'] .pos-eod-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--pos-text);
}

@media (prefers-color-scheme: dark) {
    html[data-pos-theme='auto'] .pos-eod-table {
        --bs-table-bg: transparent;
        --bs-table-color: var(--pos-text);
    }
}

@media (max-width: 992px) {
    .pos-shell {
        grid-template-columns: 1fr;
        height: 100vh;
        max-height: 100vh;
        min-height: 0;
    }

    .pos-shell.pos-shell-has-cart {
        grid-template-rows: minmax(0, 1fr) minmax(240px, 42vh);
    }

    .pos-cart {
        border-left: 0;
        border-top: 1px solid var(--pos-border);
        min-height: 0;
        max-height: none;
        height: 100%;
    }

    .pos-order-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .pos-category-nav {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--pos-border);
        white-space: nowrap;
    }

    .pos-category-btn {
        flex: 0 0 auto;
        min-width: 7rem;
    }

    .pos-menu-panel-title {
        display: none;
    }
}

.pos-admin-tables-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.pos-admin-stat-card {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--pos-shadow);
}

.pos-admin-stat-card .label {
    color: var(--pos-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.pos-admin-stat-card .value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pos-text);
}

@media (max-width: 991.98px) {
    .pos-admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .pos-admin-sidebar.is-open {
        transform: translateX(0);
    }

    .pos-admin-main {
        padding-top: 1rem;
    }
}

.pos-admin-tables-status {
    min-height: 1.5rem;
    font-size: 0.9rem;
}

.pos-admin-zone-list {
    display: grid;
    gap: 1rem;
}

.pos-admin-zone-panel {
    padding: 1rem;
}

.pos-admin-zone-panel.is-dragging-zone {
    opacity: 0.55;
}

.pos-admin-zone-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pos-border);
}

.pos-admin-zone-drag,
.pos-admin-table-grip {
    border: 0;
    background: var(--pos-inset);
    color: var(--pos-muted);
    border-radius: 10px;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    cursor: grab;
    touch-action: none;
    font-weight: 700;
    line-height: 1;
}

.pos-admin-zone-drag:active,
.pos-admin-table-card:active {
    cursor: grabbing;
}

.pos-admin-zone-drop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
    min-height: 6.5rem;
    padding: 0.85rem;
    border: 2px dashed var(--pos-border);
    border-radius: 18px;
    background: var(--pos-inset);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pos-admin-zone-drop.is-drop-target {
    border-color: var(--pos-accent);
    background: var(--pos-accent-soft);
}

.pos-admin-zone-empty {
    grid-column: 1 / -1;
    align-self: center;
    text-align: center;
    color: var(--pos-muted);
    font-size: 0.95rem;
    padding: 1.5rem 0;
}

.pos-admin-table-card {
    background: var(--pos-panel);
    border: 2px solid var(--pos-border);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: var(--pos-shadow);
    cursor: grab;
    transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.pos-admin-table-card.is-dragging {
    opacity: 0.45;
}

.pos-admin-table-card.is-inactive {
    opacity: 0.72;
    border-style: dashed;
}

.pos-admin-table-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pos-admin-table-edit {
    padding: 0;
    font-size: 0.85rem;
    text-decoration: none;
}

.pos-admin-table-name {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.pos-admin-table-badge {
    display: inline-block;
    background: var(--pos-accent-soft);
    color: var(--pos-accent);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pos-admin-table-meta {
    color: var(--pos-muted);
    font-size: 0.8rem;
}

/* Admin staff settings */
.pos-admin-staff-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.pos-admin-staff-search-wrap {
    flex: 1 1 14rem;
    min-width: 0;
}

.pos-admin-staff-search {
    max-width: 100%;
}

.pos-admin-staff-toolbar-meta {
    font-size: 0.82rem;
    color: var(--pos-muted);
    white-space: nowrap;
}

.pos-admin-staff-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pos-admin-staff-row {
    border: 1px solid var(--pos-border);
    border-radius: 0.75rem;
    background: var(--pos-panel-elevated, var(--pos-panel));
    overflow: hidden;
}

.pos-admin-staff-row[hidden] {
    display: none !important;
}

.pos-admin-staff-row-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.pos-admin-staff-row-toggle:hover,
.pos-admin-staff-row-toggle:focus-visible {
    background: rgba(100, 116, 139, 0.06);
}

.pos-admin-staff-row-toggle:not(.collapsed) {
    background: rgba(100, 116, 139, 0.05);
    border-bottom: 1px solid var(--pos-border);
}

.pos-admin-staff-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.pos-admin-staff-row-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.pos-admin-staff-row-code code {
    font-size: 0.8rem;
}

.pos-admin-staff-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pos-admin-staff-row-chevron {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--pos-muted);
    border-bottom: 2px solid var(--pos-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.15rem;
}

.pos-admin-staff-row-toggle:not(.collapsed) .pos-admin-staff-row-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.pos-admin-staff-details-wrap {
    border-top: 0;
}

.pos-admin-staff-details {
    padding: 0.9rem 1rem 1rem;
}

.pos-admin-staff-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--pos-border);
    align-items: center;
}

.pos-admin-staff-search-empty {
    margin-top: 0.75rem;
}

.pos-admin-staff-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(100, 116, 139, 0.12);
    color: var(--pos-muted);
}

.pos-admin-staff-badge.is-type {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.pos-admin-staff-badge.is-manager {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.pos-admin-staff-badge.is-active {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.pos-admin-staff-badge.is-inactive {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.pos-admin-staff-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 0.85rem 1rem;
}

.pos-admin-staff-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pos-muted);
    margin-bottom: 0.35rem;
}

.pos-admin-staff-field-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.pos-admin-staff-field-form.is-inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.pos-admin-staff-field-form.is-inline .form-control {
    flex: 1 1 7rem;
    min-width: 0;
    max-width: 100%;
}

.pos-admin-staff-field-form .form-select,
.pos-admin-staff-field-form .form-control {
    width: 100%;
    max-width: 100%;
}

.pos-admin-staff-field-note {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--pos-muted);
    line-height: 1.35;
}

@media (min-width: 1200px) {
    .pos-admin-staff-add-card {
        position: sticky;
        top: 5.5rem;
    }
}

@media (max-width: 575.98px) {
    .pos-admin-staff-row-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Admin end-of-day printable report */
.pos-eod-print-body {
    background: var(--pos-bg);
}

.pos-eod-print-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--pos-panel);
    border-bottom: 1px solid var(--pos-border);
    padding: 0.75rem 1rem;
}

.pos-eod-print-toolbar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pos-eod-print-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.pos-eod-print-header {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--pos-shadow);
}

.pos-eod-print-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pos-eod-print-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.pos-eod-print-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    color: var(--pos-text);
}

.pos-eod-print-heading h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--pos-text);
}

.pos-eod-print-date {
    font-size: 1.05rem;
    color: var(--pos-muted);
}

.pos-eod-print-meta,
.pos-eod-print-note {
    color: var(--pos-muted);
    font-size: 0.9rem;
}

.pos-eod-print-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 1.25rem 0 0;
}

.pos-eod-print-meta-grid dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
    margin-bottom: 0.15rem;
}

.pos-eod-print-meta-grid dd {
    margin: 0;
    font-weight: 600;
    color: var(--pos-text);
}

.pos-eod-print-section {
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--pos-shadow);
    break-inside: avoid;
}

.pos-eod-print-section-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--pos-text);
}

.pos-eod-print-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--pos-text);
}

.pos-eod-print-metric {
    background: var(--pos-inset);
    border: 1px solid var(--pos-border);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    height: 100%;
}

.pos-eod-print-metric-accent {
    border-color: rgba(22, 163, 74, 0.25);
    background: var(--pos-accent-soft);
}

.pos-eod-print-metric .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
    margin-bottom: 0.25rem;
}

.pos-eod-print-metric .value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pos-text);
}

.pos-eod-print-table {
    margin-bottom: 0;
}

.pos-eod-print-table th,
.pos-eod-print-table td {
    border-color: var(--pos-border);
}

.pos-eod-print-commission {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--pos-border);
}

.pos-eod-print-commission:last-of-type {
    border-bottom: 0;
}

.pos-eod-print-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--pos-accent-soft);
    color: var(--pos-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.pos-eod-print-badge-warning {
    background: var(--pos-warning-soft);
    color: var(--pos-warning);
}

.pos-eod-print-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    border-top: 1px solid var(--pos-border);
    font-size: 1rem;
}

.pos-eod-print-footer {
    text-align: center;
    color: var(--pos-muted);
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.pos-eod-print-powered-by {
    text-align: center;
    color: var(--pos-muted);
    font-size: 0.72rem;
    padding-top: 0.35rem;
}

@media print {
    .no-print {
        display: none !important;
    }

    html,
    body.pos-eod-print-body {
        background: #fff !important;
        color: #000 !important;
    }

    .pos-eod-print-page {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .pos-eod-print-header,
    .pos-eod-print-section {
        box-shadow: none;
        border-color: #ddd;
        page-break-inside: avoid;
    }

    .pos-eod-print-metric {
        background: #f8fafc;
        border-color: #ddd;
    }

    .pos-eod-print-metric-accent {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .pos-eod-print-table th,
    .pos-eod-print-table td {
        color: #000 !important;
    }
}

@page {
    margin: 14mm;
}

.pos-admin-bills-filters .form-label {
    color: var(--pos-muted);
    margin-bottom: 0.25rem;
}

.pos-admin-bills-filter-note {
    color: var(--pos-muted);
    font-size: 0.82rem;
}

.pos-admin-bill-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pos-admin-bill-row {
    border: 1px solid var(--pos-border);
    border-radius: 0.75rem;
    background: var(--pos-panel-elevated, var(--pos-panel));
    overflow: hidden;
}

.pos-admin-bill-row-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.pos-admin-bill-row-toggle:hover,
.pos-admin-bill-row-toggle:focus-visible {
    background: rgba(100, 116, 139, 0.06);
}

.pos-admin-bill-row-toggle:not(.collapsed) {
    background: rgba(100, 116, 139, 0.05);
    border-bottom: 1px solid var(--pos-border);
}

.pos-admin-bill-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.pos-admin-bill-row-id {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pos-muted);
}

.pos-admin-bill-row-table,
.pos-admin-bill-row-staff {
    font-size: 0.95rem;
    font-weight: 700;
}

.pos-admin-bill-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pos-admin-bill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(100, 116, 139, 0.12);
    color: var(--pos-muted);
}

.pos-admin-bill-badge.is-paid {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.pos-admin-bill-badge.is-open {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.pos-admin-bill-badge.is-closed {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.pos-admin-bill-badge.is-items {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.pos-admin-bill-row-total {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.pos-admin-bill-row-chevron {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--pos-muted);
    border-bottom: 2px solid var(--pos-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.15rem;
}

.pos-admin-bill-row-toggle:not(.collapsed) .pos-admin-bill-row-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.pos-admin-bill-details {
    padding: 0.9rem 1rem 1rem;
}

.pos-admin-bill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.9rem;
    font-size: 0.84rem;
}

.pos-admin-bill-meta > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pos-admin-bill-meta-label {
    color: var(--pos-muted);
    font-weight: 700;
}

.pos-admin-bill-items-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pos-muted);
}

.pos-admin-bill-totals {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--pos-border);
    max-width: 18rem;
    margin-left: auto;
}

.pos-admin-bill-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
    color: var(--pos-muted);
    padding: 0.15rem 0;
}

.pos-admin-bill-totals-row.is-grand {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--pos-border);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pos-text);
}

.pos-admin-bill-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pos-border);
}

.pos-admin-bank-transfers-table th {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pos-muted);
    border-bottom-width: 1px;
}

.pos-admin-bank-transfer-row.is-matched {
    background: rgba(34, 197, 94, 0.04);
}

.pos-admin-match-transfer-btn {
    min-width: 5.5rem;
}

@media (max-width: 575.98px) {
    .pos-admin-bill-row-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pos-admin-bill-row-total {
        grid-column: 1;
        justify-self: start;
    }

    .pos-admin-bill-row-chevron {
        grid-row: 1;
        grid-column: 2;
    }
}
