@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --rb-orange: #c45c1a;
    --rb-orange-dark: #a34a12;
    --rb-orange-light: #fff4eb;
    --rb-orange-border: #f0c9a8;
    --rb-bg: #f3f5f8;
    --rb-surface: #ffffff;
    --rb-border: #e2e6ec;
    --rb-text: #14202c;
    --rb-text-muted: #5b6775;
    --rb-text-light: #8a95a3;
    --rb-sidebar-width: 260px;
    --rb-header-height: 72px;
    --rb-radius: 10px;
    --rb-radius-sm: 8px;
    --rb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --rb-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --rb-success: #1f9d55;
    --rb-danger: #d64545;
    --rb-dark: #1a2634;
    --rb-display: "Fraunces", Georgia, serif;
    --rb-sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--rb-sans);
    background: var(--rb-bg);
    color: var(--rb-text);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .app-sidebar__brand {
    font-family: var(--rb-display);
    letter-spacing: -0.02em;
}

/* ===== APP SHELL ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--rb-sidebar-width);
    background: var(--rb-surface);
    border-right: 1px solid var(--rb-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    text-decoration: none;
    color: var(--rb-text);
    font-weight: 700;
    font-size: 1.15rem;
}

.app-sidebar__brand-icon {
    width: 36px;
    height: 36px;
    background: var(--rb-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.app-sidebar__profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px 20px;
    border-bottom: 1px solid var(--rb-border);
    margin-bottom: 8px;
}

.app-sidebar__profile-copy {
    min-width: 0;
    flex: 1;
}

.app-sidebar__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdba74, var(--rb-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.app-sidebar__profile-name {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-sidebar__profile-role {
    font-size: 0.78rem;
    color: var(--rb-text-muted);
}

.app-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.app-sidebar__section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rb-text-light);
    padding: 12px 12px 6px;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--rb-radius-sm);
    color: var(--rb-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-sidebar__link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.app-sidebar__link:hover {
    background: #f9fafb;
    color: var(--rb-text);
}

.app-sidebar__link.active {
    background: var(--rb-orange-light);
    color: var(--rb-orange-dark);
    border-left-color: var(--rb-orange);
}

.app-sidebar__link .rb-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 7px;
}

.app-sidebar__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--rb-border);
}

.app-sidebar__footer .app-sidebar__link {
    color: var(--rb-danger);
}

.app-main {
    flex: 1;
    margin-left: var(--rb-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    min-height: var(--rb-header-height);
    height: auto;
    background: var(--rb-surface);
    border-bottom: 1px solid var(--rb-border);
    display: flex;
    align-items: center;
    padding: 10px 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-header__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--rb-text);
    cursor: pointer;
    padding: 4px 8px;
}

.app-header__search {
    flex: 1;
    min-width: 0;
    max-width: 480px;
    position: relative;
}

.app-header__search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    background: #f9fafb;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

.app-header__search input:focus {
    border-color: var(--rb-orange-border);
    background: #fff;
}

.app-header__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rb-text-light);
    font-size: 0.85rem;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.app-header__actions .btn-rb {
    white-space: nowrap;
}

.app-header__icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.app-header__icon-btn:hover {
    border-color: var(--rb-orange-border);
    color: var(--rb-orange);
}

.app-header__user {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(22rem, 42vw);
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--rb-text);
    flex-shrink: 0;
}

.app-header__user-name {
    font-size: 0.85rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.app-header__user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdba74, var(--rb-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.app-content {
    flex: 1;
    padding: 24px;
}

.app-content--flush {
    padding: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 24px;
}

.page-header__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--rb-text);
    line-height: 1.2;
}

.page-header__breadcrumb {
    font-size: 0.82rem;
    color: var(--rb-text-muted);
    margin: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.page-header__breadcrumb a {
    color: var(--rb-text-muted);
    text-decoration: none;
}

.page-header__breadcrumb a:hover {
    color: var(--rb-orange);
}

.page-header__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-rb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--rb-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.btn-rb-primary {
    background: var(--rb-orange);
    color: #fff;
    border-color: var(--rb-orange);
}

.btn-rb-primary:hover {
    background: var(--rb-orange-dark);
    color: #fff;
}

.btn-rb-outline {
    background: #fff;
    color: var(--rb-text);
    border-color: var(--rb-border);
}

.btn-rb-outline:hover {
    border-color: var(--rb-orange-border);
    color: var(--rb-orange-dark);
    background: var(--rb-orange-light);
}

.btn-rb-dark {
    background: var(--rb-dark);
    color: #fff;
    border-color: var(--rb-dark);
}

.btn-rb-dark:hover {
    background: #0f172a;
    color: #fff;
}

.btn-rb-success {
    background: var(--rb-success);
    color: #fff;
    border-color: var(--rb-success);
}

.btn-rb-success:hover {
    background: #16a34a;
    color: #fff;
}

.btn-rb-danger {
    background: #fff;
    color: var(--rb-danger);
    border-color: #fecaca;
}

.btn-rb-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ===== CARDS ===== */
.rb-card {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
}

.rb-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-card__header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.rb-card__body {
    padding: 20px;
}

/* ===== STAT CARDS ===== */
.stat-card-rb {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 20px;
    box-shadow: var(--rb-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-rb:hover {
    transform: translateY(-2px);
    box-shadow: var(--rb-shadow-md);
}

.stat-card-rb__label {
    font-size: 0.82rem;
    color: var(--rb-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card-rb__value {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--rb-text);
}

.stat-card-rb__meta {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--rb-text-muted);
}

.stat-card-rb__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-card-rb__icon--orange { background: var(--rb-orange-light); color: var(--rb-orange); }
.stat-card-rb__icon--green { background: #dcfce7; color: #16a34a; }
.stat-card-rb__icon--blue { background: #dbeafe; color: #2563eb; }
.stat-card-rb__icon--purple { background: #f3e8ff; color: #9333ea; }

/* ===== TABLES ===== */
.rb-table {
    width: 100%;
    border-collapse: collapse;
}

.rb-table thead th {
    background: #f9fafb;
    color: var(--rb-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rb-border);
    text-align: left;
}

.rb-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    vertical-align: middle;
}

.rb-table tbody tr:hover {
    background: #fafafa;
}

/* ===== BADGES ===== */
.rb-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.rb-badge--new {
    background: var(--rb-orange-light);
    color: var(--rb-orange-dark);
}

.rb-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.rb-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* ===== POS LAYOUT ===== */
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 30rem);
    gap: 0;
    min-height: calc(100vh - var(--rb-header-height));
    align-items: stretch;
}

.pos-main {
    padding: 20px 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.pos-sidebar {
    background: var(--rb-surface);
    border-left: 1px solid var(--rb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

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

.pos-toolbar__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pos-toolbar__actions .sc-btn,
.pos-seed-btn {
    white-space: nowrap;
}

.pos-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 16px;
    align-items: stretch;
}

.pos-filters__search {
    min-width: 0;
    position: relative;
}

.pos-filters__search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    font-size: 0.875rem;
    outline: none;
}

.pos-filters__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rb-text-light);
}

.pos-filters select {
    padding: 10px 14px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    font-size: 0.875rem;
    background: #fff;
    min-width: 140px;
}

.pos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.pos-categories::-webkit-scrollbar { display: none; }

.pos-category-pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--rb-border);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rb-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.pos-category-pill:hover {
    border-color: var(--rb-orange-border);
    color: var(--rb-orange-dark);
}

.pos-category-pill.active {
    background: var(--rb-orange);
    border-color: var(--rb-orange);
    color: #fff;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.pos-product-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.pos-product-grid--compact .pos-product-card__media,
.pos-product-grid--compact .pos-product-card__image {
    height: 84px;
}

.pos-product-grid--compact .pos-product-card__name {
    font-size: 0.82rem;
}

.pos-product-grid--compact .pos-product-card__sku {
    display: none;
}

.pos-product-card {
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    text-align: left;
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
}

.pos-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rb-shadow-md);
}

.pos-product-card__image {
    height: 120px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
}
.pos-product-card__media {
    height: 128px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.pos-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pos-product-card__media .pl-media__fallback {
    font-size: 1.75rem;
    color: var(--rb-orange, #c45c1a);
}
.pos-product-card {
    position: relative;
}
.pos-product-card > .pos-product-card__add {
    position: absolute;
    top: 96px;
    right: 10px;
    z-index: 2;
}
.pos-cat-tile__media {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.55rem;
    background: rgba(0,0,0,0.06);
}
.pos-cat-tile__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pos-cat-tile__media i {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.pos-product-card__add {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--rb-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.pos-product-card__body {
    padding: 12px;
}

.pos-product-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
    color: var(--rb-text);
    overflow-wrap: anywhere;
}

.pos-product-card__sku {
    font-size: 0.72rem;
    color: var(--rb-text-light);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.pos-product-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rb-text);
    margin: 0;
}

.pos-stock-chip {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--rb-text-muted);
}

.pos-stock-chip--low {
    background: #fff7ed;
    color: #9a3412;
}

.pos-stock-chip--out {
    background: #fee2e2;
    color: #991b1b;
}

.pos-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #0f1c27;
    color: #e8eef3;
    border-radius: 10px;
    font-size: 0.8rem;
}

.pos-status__time { font-variant-numeric: tabular-nums; font-weight: 600; }
.pos-status__store { font-weight: 600; }
.pos-status__shift { color: #b7f0c8; }
.pos-status__shift--warn { color: #fdba74; text-decoration: none; }
.pos-status__held {
    margin-left: auto;
    background: #fff7ed;
    color: #9a3412;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.pos-status__pulse {
    font-variant-numeric: tabular-nums;
    color: #c8d6e2;
    font-weight: 600;
}

.pos-density {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.pos-density .pos-mini.is-on,
.pos-mini.is-on {
    border-color: var(--rb-orange);
    background: var(--rb-orange-light);
    color: var(--rb-orange-dark);
    font-weight: 700;
}

.pos-pay-wrap {
    display: grid;
    gap: 8px;
}

.pos-pay-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rb-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--rb-text);
}

.pos-pay-accordion:hover {
    border-color: var(--rb-orange);
}

.pos-pay-panel--summary .pos-pay-option {
    min-height: 3.4rem;
}

.order-panel--dock {
    height: 100%;
    max-height: calc(100vh - var(--rb-header-height, 64px));
}

.order-panel__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.order-panel__dock {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--rb-border);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.order-panel__dock .order-total-row--grand {
    margin: 0 0 10px;
    padding-top: 0;
    border-top: 0;
}

.order-panel__dock .order-panel__actions {
    padding: 0;
    border-top: 0;
}

.order-panel__power {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 0;
}

.order-panel__totals--edit {
    border-top: 1px solid var(--rb-border);
}

.order-item__note {
    display: block;
    margin-top: 6px;
}

.order-item__note input {
    width: 100%;
    padding: 6px 8px;
    border: 1px dashed var(--rb-border);
    border-radius: 6px;
    font: inherit;
    font-size: 0.78rem;
    background: #fff;
}

.order-item__note input:focus {
    border-style: solid;
    border-color: var(--rb-orange);
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pos-held-strip .pos-order-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    cursor: default;
    padding: 0.75rem 0.85rem;
}

.pos-order-card__resume {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.pos-order-card__status {
    border: 0;
    cursor: pointer;
    align-self: flex-start;
}

.pos-held-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pos-held-strip > span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pos-held-chip,
.pos-hot-chip,
.pos-mini {
    border: 1px solid var(--rb-border);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.pos-held-chip { background: #fff7ed; border-color: #f0c9a8; color: #9a3412; }
.pos-hot-chip:hover,
.pos-mini:hover,
.pos-held-chip:hover { border-color: var(--rb-orange); color: var(--rb-orange-dark); }

.pos-hotkeys { margin-bottom: 12px; }
.pos-hotkeys__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rb-text-light);
    margin-bottom: 6px;
}
.pos-hotkeys__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pos-disc-presets,
.pos-tender-pads {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pos-note-field { margin: 8px 0 12px; }
.pos-note-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    font: inherit;
}

.pos-receipt__footer {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: var(--rb-text-muted);
    line-height: 1.4;
    text-align: center;
}

.pos-product-card.out-of-stock {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ===== ORDER PANEL ===== */
.order-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.order-panel__search {
    padding: 16px;
    border-bottom: 1px solid var(--rb-border);
}

.order-panel__search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    font-size: 0.85rem;
}

.order-panel__meta {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--rb-border);
}

.order-panel__field {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.order-panel__field span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rb-text-light);
}

.order-panel__meta select,
.order-panel__field select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    font-size: 0.85rem;
    background: #fff;
}

.pos-pay-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pos-pay-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 4.4rem;
    padding: 8px 6px;
    border: 1px solid var(--rb-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rb-text);
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pos-pay-option i {
    font-size: 1.1rem;
    color: var(--rb-text-muted);
}

.pos-pay-option.is-active {
    border-color: var(--rb-orange);
    background: var(--rb-orange-light);
    color: var(--rb-orange-dark);
}

.pos-pay-option.is-active i {
    color: var(--rb-orange);
}

.order-panel__header {
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--rb-border);
}

.order-panel__header-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-panel__header-count {
    font-weight: 500;
    color: var(--rb-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.order-panel__items {
    flex: 0 1 auto;
    max-height: min(36vh, 22rem);
    overflow-y: auto;
    padding: 4px 16px 8px;
}

.order-panel__items--empty {
    max-height: none;
    overflow: visible;
    padding: 0 16px;
}

.order-item {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px;
    overflow-wrap: anywhere;
}

.order-item__calc {
    font-size: 0.78rem;
    color: var(--rb-text-muted);
    overflow-wrap: anywhere;
}

.order-item__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.order-item__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.order-item__qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--rb-text-muted);
}

.order-item__qty {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.order-item__delete {
    background: none;
    border: none;
    color: var(--rb-danger);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.order-panel__totals {
    padding: 16px;
    border-top: 1px solid var(--rb-border);
    background: #fafafa;
}

.order-total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--rb-text-muted);
}

.order-total-row > span:first-child {
    overflow-wrap: anywhere;
    min-width: 0;
}

.order-total-row > span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.order-total-row--field {
    margin-bottom: 12px;
}

.order-total-row--grand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rb-text);
    margin-top: 4px;
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--rb-border);
}

.order-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--rb-text);
    cursor: pointer;
}

.order-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.order-check span {
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.pos-num-input {
    width: 5.75rem;
    min-width: 5.75rem;
    padding: 6px 8px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    text-align: right;
    font: inherit;
    background: #fff;
}

.pos-num-input--wide {
    width: 7.25rem;
    min-width: 7.25rem;
}

.order-panel__actions {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--rb-border);
}

.order-panel__actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.order-panel__actions .sc-btn,
.order-panel__actions .btn-rb {
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.order-panel__actions .btn-rb:disabled,
.order-panel__actions .sc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ===== AUTH LAYOUT ===== */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed 0%, #f4f6f9 50%, #fef3c7 100%);
    padding: 28px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--rb-shadow-md);
}

.auth-card--wide {
    max-width: 460px;
}

.auth-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    text-decoration: none;
    cursor: pointer;
}

.auth-card__logo-icon {
    width: 42px;
    height: 42px;
    background: var(--rb-orange);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-card__logo-text {
    font-family: var(--rb-sans);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rb-text);
    line-height: 1;
}

.auth-card h2 {
    text-align: center;
    font-family: var(--rb-display);
    font-size: clamp(1.35rem, 2.4vw, 1.55rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--rb-text);
}

.auth-card__lead {
    display: block;
    text-align: center;
    color: var(--rb-text-muted);
    font-family: var(--rb-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    margin: 0 auto 1.65rem;
    max-width: 22rem;
    line-height: 1.5;
}

.auth-card__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-card__form .auth-field {
    margin: 0 0 1.15rem;
}

.auth-card__form .auth-field:has(.auth-field__hint) {
    margin-bottom: 1.35rem;
}

.auth-card__form .auth-field label {
    display: block;
    font-family: var(--rb-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--rb-text);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.auth-card__form .form-control,
.auth-card__form input.form-control,
.auth-card__form input[type="text"],
.auth-card__form input[type="email"],
.auth-card__form input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 2.875rem;
    min-height: 2.875rem;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    background: #fff;
    color: var(--rb-text);
    font-family: var(--rb-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card__form .form-control::placeholder,
.auth-card__form input::placeholder {
    color: #9aa3af;
    font-style: normal;
    font-weight: 400;
    opacity: 1;
}

.auth-card__form .form-control:focus,
.auth-card__form input.form-control:focus {
    outline: none;
    border-color: var(--rb-orange);
    box-shadow: 0 0 0 3px rgba(196, 92, 26, 0.16);
}

.auth-card__form .auth-field--error .form-control {
    border-color: #dc2626;
}

.auth-card__form .auth-field__error {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #b91c1c;
}

.auth-card__form .auth-field__hint {
    margin: 0.45rem 0 0;
    padding: 0 0.05rem;
    font-size: 0.78rem;
    color: var(--rb-text-muted);
    line-height: 1.45;
}

.auth-card__submit {
    margin-top: 0.35rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

.auth-card__footer {
    text-align: center;
    margin: 1.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--rb-text-muted);
}

.auth-card__footer a {
    color: var(--rb-orange) !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-card__footer a:hover {
    text-decoration: underline;
    color: var(--rb-orange-dark) !important;
}

/* ===== ALERTS ===== */
.rb-alert {
    padding: 12px 16px;
    border-radius: var(--rb-radius-sm);
    margin-bottom: 16px;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.rb-alert-success { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.rb-alert-error, .rb-alert-danger { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.rb-alert-warning { background: #fef9c3; border-color: #fde047; color: #a16207; }
.rb-alert-info { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }

/* ===== FORM OVERRIDES ===== */
.form-control, .form-select {
    border-radius: var(--rb-radius-sm);
    border-color: var(--rb-border);
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--rb-orange-border);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pos-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .app-header__toggle {
        display: block;
    }

    .app-header__search {
        display: none;
    }

    .app-content {
        padding: 16px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1035;
    }

    .sidebar-overlay.open {
        display: block;
    }
}

/* ===== PROFESSIONAL ENHANCEMENTS ===== */

/* Dark mode */
[data-theme="dark"] {
    --rb-bg: #0f172a;
    --rb-surface: #1e293b;
    --rb-border: #334155;
    --rb-text: #f1f5f9;
    --rb-text-muted: #94a3b8;
    --rb-text-light: #64748b;
    --rb-orange-light: rgba(249, 115, 22, 0.15);
    --rb-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --rb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .app-header__search input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #0f172a;
    color: var(--rb-text);
}

[data-theme="dark"] .rb-table thead th {
    background: #0f172a;
}

[data-theme="dark"] .pos-product-card,
[data-theme="dark"] .pos-category-pill {
    background: var(--rb-surface);
}

/* Header enhancements */
.app-header__search-wrap {
    flex: 1;
    min-width: 0;
    max-width: 480px;
    position: relative;
}

.header-stat {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--rb-orange-light);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rb-orange-dark);
}

@media (min-width: 992px) {
    .header-stat { display: flex; }
}

.header-badge {
    position: relative;
}

.header-badge__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rb-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    box-shadow: var(--rb-shadow-md);
    z-index: 1050;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.search-dropdown.open { display: block; }

.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--rb-text);
    border-bottom: 1px solid var(--rb-border);
    transition: background 0.15s;
}

.search-dropdown__item:hover { background: var(--rb-orange-light); }

.search-dropdown__item strong {
    display: block;
    font-size: 0.85rem;
}

.search-dropdown__item small {
    color: var(--rb-text-muted);
    font-size: 0.75rem;
}

.search-dropdown__icon {
    width: 32px;
    height: 32px;
    background: var(--rb-orange-light);
    color: var(--rb-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-dropdown__empty {
    padding: 16px;
    text-align: center;
    color: var(--rb-text-muted);
    font-size: 0.85rem;
}

/* Toast notifications */
.rb-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: var(--rb-radius-sm);
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    box-shadow: var(--rb-shadow-md);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.rb-toast.show { opacity: 1; transform: translateX(0); }
.rb-toast--success { border-left: 4px solid var(--rb-success); }
.rb-toast--error { border-left: 4px solid var(--rb-danger); }
.rb-toast--info { border-left: 4px solid #3b82f6; }

/* Quick actions bar */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    text-decoration: none;
    color: var(--rb-text);
    flex: 1;
    min-width: 160px;
    transition: all 0.2s;
    box-shadow: var(--rb-shadow);
}

.quick-action:hover {
    border-color: var(--rb-orange-border);
    transform: translateY(-2px);
    box-shadow: var(--rb-shadow-md);
    color: var(--rb-orange-dark);
}

.quick-action__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.quick-action__icon--orange { background: var(--rb-orange-light); color: var(--rb-orange); }
.quick-action__icon--green { background: #dcfce7; color: #16a34a; }
.quick-action__icon--blue { background: #dbeafe; color: #2563eb; }
.quick-action__icon--purple { background: #f3e8ff; color: #9333ea; }

.quick-action__text strong {
    display: block;
    font-size: 0.875rem;
}

.quick-action__text small {
    color: var(--rb-text-muted);
    font-size: 0.75rem;
}

/* Alert panel */
.alert-panel {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    overflow: hidden;
    box-shadow: var(--rb-shadow);
}

.alert-panel__header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-panel__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--rb-border);
    font-size: 0.85rem;
}

.alert-panel__item:last-child { border-bottom: none; }

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-dot--warning { background: #f59e0b; }
.alert-dot--danger { background: var(--rb-danger); }

/* Trend indicator */
.trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.trend--up { background: #dcfce7; color: #15803d; }
.trend--down { background: #fee2e2; color: #b91c1c; }
.trend--neutral { background: #f3f4f6; color: var(--rb-text-muted); }

/* Filter bar */
.filter-bar {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--rb-shadow);
}

.filter-bar .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rb-text-muted);
    margin-bottom: 4px;
}

/* Summary strip */
.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-strip__item {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    padding: 16px;
    text-align: center;
}

.summary-strip__label {
    font-size: 0.75rem;
    color: var(--rb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.summary-strip__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rb-text);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--rb-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* Keyboard shortcuts modal */
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--rb-border);
}

.shortcut-row kbd {
    background: var(--rb-bg);
    border: 1px solid var(--rb-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-family: inherit;
}

/* POS discount row */
.discount-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.discount-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    font-size: 0.8rem;
}

.draft-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Smooth transitions */
.rb-alert {
    transition: opacity 0.3s, transform 0.3s;
}

.stat-card-rb__value {
    letter-spacing: -0.02em;
}

.rb-card, .stat-card-rb, .alert-panel {
    transition: box-shadow 0.2s ease;
}

.app-content--flush .pos-layout {
    margin: 0;
    min-height: calc(100vh - var(--rb-header-height));
}

.pos-checkout-head {
    margin-bottom: 14px;
    align-items: flex-start;
}

.pos-checkout-head__copy {
    min-width: 0;
    flex: 1;
}

.pos-help-btn {
    min-width: 2.5rem;
    justify-content: center;
}

.pos-empty-catalog {
    flex: 1;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--rb-border);
    border-radius: 12px;
}

.pos-empty-catalog__title {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--rb-text);
}

.pos-empty-catalog__copy {
    margin: 0 0 8px;
    max-width: 28rem;
    color: var(--rb-text-muted);
    line-height: 1.45;
}

.pos-cart-empty {
    padding: 0.65rem 0.25rem;
    text-align: center;
    color: var(--rb-text-muted);
    font-size: 0.85rem;
}

.pos-cart-empty p {
    margin: 0;
    overflow-wrap: anywhere;
}

.pos-shift-banner {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.85rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.pos-shift-banner--warn {
    background: #fff7ed;
    color: #9a3412;
}
.pos-split-rows { display: grid; gap: 8px; margin: 4px 0 12px; }
.pos-split-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 6.5rem) minmax(0, 1fr);
    gap: 8px;
}
.pos-split-row select,
.pos-split-row input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.pos-split-row:has(select):not(:has(input[data-pos-split-ref])) {
    grid-template-columns: minmax(0, 1.2fr) minmax(5.5rem, 7rem);
}
.pos-split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pos-pay-panel {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding-top: 4px;
}
.pos-pay-panel .pos-pay-options {
    margin-top: 4px;
}
.pos-pay-split-toggle {
    margin: 0;
}
.pos-pay-cash,
.pos-pay-digital {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--rb-border);
    border-radius: 10px;
    background: #fafafa;
}
.pos-pay-due {
    margin: 0;
    font-size: 0.86rem;
    color: var(--rb-text);
}
.pos-pay-warn {
    color: #b45309 !important;
}
.pos-momo-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pos-momo-networks .pos-mini.is-on {
    border-color: var(--rb-orange);
    background: var(--rb-orange-light);
    color: var(--rb-orange-dark);
}
.pos-pay-option {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.pos-pay-option:focus-visible {
    outline: 2px solid var(--rb-orange);
    outline-offset: 2px;
}
.pos-line-price {
    width: 5.5rem;
    min-width: 5.5rem;
    margin-left: auto;
    padding: 4px 6px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    font-size: 0.8rem;
}

.pos-receipt-page {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.pos-receipt-page__kicker {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rb-text-muted);
}

.pos-ticket {
    width: 100%;
    max-width: 80mm;
    margin: 0 auto;
    background: #fff;
    border: 1px dashed #c5ccd4;
    border-radius: 4px;
    padding: 14px 12px 16px;
    font-family: "Courier New", Courier, ui-monospace, monospace;
    color: #111;
    font-size: 0.84rem;
    line-height: 1.35;
}

.pos-ticket__kicker {
    margin: 0;
    text-align: center;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: #4b5563;
}

.pos-ticket__store {
    margin: 4px 0 8px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
}

.pos-ticket__meta,
.pos-ticket__thanks,
.pos-ticket__note {
    margin: 2px 0;
    text-align: center;
    font-size: 0.78rem;
    color: #374151;
}

.pos-ticket__rule {
    border-top: 1px dashed #333;
    margin: 8px 0;
}

.pos-ticket__item { margin: 0 0 6px; }
.pos-ticket__name { font-weight: 700; overflow-wrap: anywhere; }

.pos-ticket__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pos-ticket__row--total {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 4px;
}

.pos-receipt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.1rem;
    justify-content: center;
}

.pos-receipt__actions .sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1100px) {
    .pos-layout {
        grid-template-columns: minmax(0, 1fr) minmax(23rem, 26rem);
    }
}

@media (max-width: 992px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    .pos-sidebar {
        border-left: 0;
        border-top: 1px solid var(--rb-border);
        max-height: none;
        overflow: visible;
    }
    .order-panel--dock {
        max-height: none;
    }
    .order-panel__dock {
        position: sticky;
        bottom: 0;
        z-index: 5;
    }
    .pos-filters {
        grid-template-columns: 1fr;
    }
    .app-header__user {
        max-width: min(18rem, 48vw);
    }
}

.pos-scan-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}

.pos-scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 28, 39, 0.62);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.pos-scan-overlay[hidden] {
    display: none;
}

.pos-scan-card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: var(--rb-shadow-md);
}

.pos-scan-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pos-scan-card__head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.pos-scan-preview {
    position: relative;
    background: #0f1c27;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
}

.pos-scan-preview video {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #0f1c27;
}

.pos-scan-frame {
    position: absolute;
    inset: 18% 12%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 0 0 999px rgba(15, 28, 39, 0.28);
}

.pos-scan-card #posScanInput {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--rb-border);
    border-radius: 8px;
    font: inherit;
}

.pos-scan-photo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--rb-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.pos-scan-photo input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

@media print {
    @page { size: 80mm auto; margin: 3mm; }
    body * { visibility: hidden; }
    .pos-ticket, .pos-ticket * { visibility: visible; }
    .pos-ticket {
        position: absolute;
        left: 0;
        top: 0;
        width: 74mm;
        border: 0;
        box-shadow: none;
    }
    .app-sidebar, .app-header, .pos-receipt__actions, .sc-flash, .pos-scan-overlay, .pos-receipt-page__kicker {
        display: none !important;
    }
}

.pos-ws-switch-wrap,
.pos-ws-switch-host {
    padding: 0 16px 12px;
}
.pos-ws-switch {
    display: grid;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--rb-muted, #64748b);
}
.pos-ws-switch select {
    width: 100%;
    border: 1px solid var(--rb-border, #e2e8f0);
    border-radius: 8px;
    padding: 6px 8px;
    background: #fff;
    font-size: 0.85rem;
}
.pos-momo-ref {
    margin-top: 8px;
}
.pos-queue-banner {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.85rem;
}

.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.suite-console--pos .qb-card {
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.15rem;
    box-shadow: var(--rb-shadow);
}

.suite-console--pos .qb-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.suite-console--pos .qb-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.suite-console--pos .qb-card__head h2 {
    margin: 0;
}

.suite-console--pos .qb-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.suite-console--pos .qb-form-stack {
    display: grid;
    gap: 0.85rem;
}

.suite-console--pos .qb-fields-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.suite-console--pos .qb-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rb-text-muted);
}

.suite-console--pos .qb-field input,
.suite-console--pos .qb-field select {
    min-height: 2.45rem;
    border: 1px solid var(--rb-border);
    border-radius: 8px;
    padding: 0 0.7rem;
    font: inherit;
    background: #fff;
    color: var(--rb-text);
}

.suite-console--pos .qb-field--check {
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    min-height: 2.45rem;
}

.suite-console--pos .qb-field--check input {
    min-height: auto;
    width: 1rem;
    height: 1rem;
}

.suite-console--pos .qb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.15rem;
}

.suite-console--pos .qb-tab {
    border: 1px solid var(--rb-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rb-text-muted);
    cursor: pointer;
}

.suite-console--pos .qb-tab.is-on {
    background: var(--rb-orange);
    border-color: var(--rb-orange);
    color: #fff;
}

.pos-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1rem;
}

.pos-filter-bar input,
.pos-filter-bar select {
    min-height: 2.4rem;
    border: 1px solid var(--rb-border);
    border-radius: 8px;
    padding: 0 0.7rem;
    background: #fff;
    font: inherit;
}

.pos-filter-bar input {
    min-width: 16rem;
    flex: 1;
}

.pos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 16rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--rb-border);
    border-radius: 12px;
}

.pos-empty i {
    font-size: 1.6rem;
    color: var(--rb-orange);
}

.pos-empty h2 {
    margin: 0;
    font-size: 1.15rem;
}

.pos-empty p {
    margin: 0 0 8px;
    max-width: 28rem;
    color: var(--rb-text-muted);
    line-height: 1.45;
}

.pos-report-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

@media (max-width: 900px) {
    .suite-console--pos .qb-report-grid,
    .suite-console--pos .qb-fields-2,
    .pos-report-split {
        grid-template-columns: 1fr;
    }
}

