:root {
    color-scheme: dark;
    --bg: #101311;
    --surface: #181d19;
    --surface-raised: #1e241f;
    --surface-soft: #222a23;
    --line: #2c352e;
    --text: #f3f5ef;
    --muted: #9aa59b;
    --green: #b6f36b;
    --brand: #b6f36b;
    --green-deep: #15210d;
    --amber: #ffcd70;
    --red: #ff8c82;
    --radius: 18px;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }
body { --green: var(--brand, #b6f36b); margin: 0; min-width: 320px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #d3ffa0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: Manrope, 'DM Sans', sans-serif; letter-spacing: -.035em; }
h1 { margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.15; font-weight: 700; }
h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
h3 { margin-bottom: 7px; font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.centered { text-align: center; }
.eyebrow { margin-bottom: 8px; color: var(--green); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }

.topbar {
    min-height: 70px; padding: 10px max(22px, calc((100vw - 1360px) / 2));
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(23,32,24,.98);
}
.site-sticky-nav { position: sticky; z-index: 30; top: 0; padding: 8px max(16px, calc((100vw - 1360px) / 2)); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(16,19,17,.96); backdrop-filter: blur(16px); }
.site-nav-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.site-back-button { justify-self: start; min-height: 48px; }
.site-nav-title { max-width: min(42vw, 460px); overflow: hidden; color: var(--text); font: 700 1rem Manrope, 'DM Sans', sans-serif; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.site-nav-title:hover { color: var(--text); }
.site-nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.site-nav-row .button { min-height: 48px; white-space: nowrap; }
.site-nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 6px; }
.site-nav-links a:not(.text-link) { min-height: 36px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 8px; color: #b7c1b8; font-size: .73rem; font-weight: 600; }
.site-nav-links a:not(.text-link):hover, .site-nav-links a[aria-current="page"] { color: var(--green); background: #222a23; }
.site-nav-links .text-link { padding: 0 8px; }
.site-nav-links .user-chip { padding: 6px 10px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: .98rem; font-weight: 700; }
.brand:hover { color: var(--text); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font: 600 .58rem 'DM Sans', sans-serif; letter-spacing: .11em; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: #19210f; background: var(--green); font: 800 1rem Manrope, sans-serif; letter-spacing: -.08em; }
.small-mark { width: 39px; height: 39px; border-radius: 13px; font-size: .82rem; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.top-actions .button { min-height: 48px; white-space: nowrap; }
.top-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; }
.top-nav a { flex: 0 0 auto; padding: 9px 10px; border-radius: 8px; color: #b7c1b8; font-size: .73rem; font-weight: 600; }
.top-nav a:hover { color: var(--green); background: #222a23; }
.top-nav a[aria-current="page"] { color: var(--green); background: #222a23; }
.top-nav a[aria-disabled="true"] { color: #778178; pointer-events: none; }
.user-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 30px; color: #c8d0c8; font-size: .75rem; }
.text-link { color: #c7d0c8; font-size: .8rem; font-weight: 600; }

.workspace { width: min(1360px, 100%); margin: 0 auto; padding: 35px 30px 64px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.welcome-row .muted { margin: 0; font-size: .94rem; }
.live-pill, .status-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #c8d2c8; font-size: .72rem; }
.live-pill i { width: 7px; height: 7px; display: inline-block; border-radius: 100%; background: var(--green); box-shadow: 0 0 12px #b6f36b77; }
.tabs { display: flex; align-items: center; gap: 7px; width: fit-content; margin-bottom: 26px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #151915; }
.tab { min-height: 40px; padding: 0 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: .81rem; font-weight: 600; transition: .18s ease; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); background: #293222; }
.tab-count { margin-left: 5px; color: #c5d6b3; font-size: .72rem; }
.panel { display: none; }
.panel.active { display: block; animation: appear .2s ease-out; }
@keyframes appear { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 24px; }
.catalog { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-head .eyebrow { margin-bottom: 5px; }
.section-head .muted { margin: 6px 0 0; font-size: .82rem; }
.search-wrap { width: min(260px, 42%); height: 43px; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: #849087; background: var(--surface); }
.search-wrap span { font-size: 1.35rem; line-height: 1; }
.search-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .78rem; }
.search-wrap:focus-within { border-color: #8fac70; box-shadow: 0 0 0 3px #b6f36b16; }
.search-wrap input:focus { border: 0; box-shadow: none; }
.search-wrap input::placeholder { color: #788279; }
.category-pills { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 17px; padding: 2px 2px 6px; scrollbar-width: thin; }
.category-pills .pill { display: inline-flex; align-items: center; gap: 6px; }
.category-pill-image { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 5px; object-fit: cover; }
.pill { min-height: 34px; flex: 0 0 auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #aab4aa; background: transparent; cursor: pointer; font-size: .73rem; font-weight: 600; }
.pill:hover { border-color: #687461; color: var(--text); }
.pill.active { border-color: #46583a; color: var(--green); background: #1d2819; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { width: 100%; min-width: 0; display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: linear-gradient(145deg, #1a201b, #171b18); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.product-card:hover { border-color: #495849; transform: translateY(-2px); }
.product-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.product-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3b463c; border-radius: 11px; color: var(--green); background: #232c22; font: 700 .88rem Manrope, sans-serif; }
.product-category { max-width: 65%; overflow: hidden; color: #89968b; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.product-card-name { min-height: 22px; margin-bottom: 7px; font-size: .93rem; }
.product-card-meta { color: var(--muted); font-size: .76rem; }
.product-card-action { margin-top: 12px; color: var(--accent); font-size: .8rem; font-weight: 700; }
.variant-list { display: grid; gap: 6px; }
.variant-option { position: relative; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border: 1px solid #303a31; border-radius: 9px; background: #202620; cursor: pointer; text-align: left; transition: .16s ease; }
.variant-option:hover:not(:disabled) { border-color: #82966d; background: #293326; }
.variant-option:disabled { cursor: not-allowed; opacity: .48; }
.variant-option strong { font-size: .72rem; white-space: nowrap; }
.variant-picker-dialog { width: min(460px, calc(100vw - 28px)); max-height: min(85dvh, 700px); overflow: auto; padding: 20px; border: 1px solid #435143; border-radius: 17px; color: var(--text); background: var(--surface); box-shadow: 0 25px 90px #000b; }
.variant-picker-dialog::backdrop { background: #050705bd; backdrop-filter: blur(4px); }
.variant-picker-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.variant-picker-header h2 { margin: 0; }
.variant-details { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.variant-label { position: relative; display: flex; align-items: center; gap: 5px; color: #c8d0c8; font-size: .7rem; }
.variant-meta { display: flex; align-items: center; gap: 5px; }
.variant-stock { color: #89968b; font-size: .59rem; }
.add-symbol { color: var(--green); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.stock-tag { padding: 3px 5px; border-radius: 5px; color: #c4d5b3; background: #32412b; font-size: .52rem; white-space: nowrap; }
.stock-tag.low, .stock-tag.out, .stock-alert { border-color: #65403a; color: #ff9a90; background: #3b2522; }
.no-results { grid-column: 1 / -1; padding: 45px 10px; color: var(--muted); text-align: center; }
.no-results a { color: var(--accent); font-weight: 700; }

.bill-card { position: sticky; top: 16px; padding: 19px; border: 1px solid #394338; border-radius: var(--radius); background: #1b211c; box-shadow: 0 15px 40px #00000014; }
.bill-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.bill-heading .eyebrow { margin-bottom: 4px; }
.clear-link { padding: 5px 0; border: 0; color: #9aa69b; background: transparent; cursor: pointer; font-size: .72rem; }
.clear-link:hover { color: var(--red); }
.cart-lines { max-height: 330px; overflow-y: auto; }
.empty-cart { min-height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #89948b; text-align: center; }
.empty-cart > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 9px; border: 1px dashed #465047; border-radius: 50%; color: var(--green); font-size: 1.2rem; }
.empty-cart p { margin: 0 0 3px; color: #c2cbc2; font-size: .8rem; }
.empty-cart small { font-size: .68rem; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid #2a322b; }
.cart-line-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line-main strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-main small { color: var(--muted); font-size: .68rem; }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-control button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #3b473b; border-radius: 8px; color: var(--green); background: #252d25; cursor: pointer; font-size: 1rem; }
.quantity-control button:hover { background: #34402f; }
.quantity-control span { min-width: 12px; color: #e4e9e1; font-size: .76rem; text-align: center; }
.bill-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 13px; }
.bill-total span { color: #aeb8af; font-size: .82rem; }
.bill-total strong { color: var(--green); font: 700 1.25rem Manrope, sans-serif; letter-spacing: -.04em; }
.bill-summary { display: grid; gap: 6px; padding: 12px 0 0; border-top: 1px solid #2a322b; }
.bill-summary > div { display: flex; justify-content: space-between; color: #8f9b90; font-size: .7rem; }
.bill-summary strong { color: #c5cec4; font-size: .7rem; font-weight: 600; }
.bill-fields { display: grid; gap: 1px; }
.till-details { display: grid; gap: 6px; margin: 3px 0 12px; padding: 10px; border: 1px solid #323d33; border-radius: 9px; color: #93a092; background: #171d18; font-size: .66rem; }
.till-details span { display: flex; justify-content: space-between; gap: 8px; }
.till-details strong { color: #d7e3d3; font-weight: 600; }
.checkout-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.checkout-methods .button { min-height: 42px; padding: 0 8px; font-size: .68rem; }
.compact-label, label { display: flex; flex-direction: column; gap: 7px; color: #aeb8ae; font-size: .72rem; font-weight: 600; }
.compact-label { margin-bottom: 10px; }
label small { color: var(--muted); font-size: .65rem; font-weight: 400; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #354036; border-radius: 9px; outline: 0; color: var(--text); background: #141915; font-size: .8rem; }
input:focus, select:focus, textarea:focus { border-color: #8fac70; box-shadow: 0 0 0 3px #b6f36b16; }
input::placeholder, textarea::placeholder { color: #778178; }
textarea { min-height: 86px; resize: vertical; }
select { cursor: pointer; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: .78rem; font-weight: 700; transition: .16s ease; }
.button:disabled { opacity: .47; cursor: not-allowed; }
.button.primary { color: #17200f; background: var(--green); }
.button.primary:hover:not(:disabled) { background: #c8fc8e; transform: translateY(-1px); }
.button.secondary { border-color: #3d493e; color: #d9e0d7; background: #222923; }
.button.secondary:hover { border-color: #788b68; color: var(--green); }
.full-button { width: 100%; }
.checkout-button { min-height: 48px; margin-top: 5px; }
.checkout-button span { font-size: 1rem; }
.microcopy { margin: 10px 0 0; color: #788379; font-size: .65rem; line-height: 1.45; text-align: center; }
.hidden { display: none !important; }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.room-card { position: relative; min-height: 205px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #1c231d, #171b18); }
.room-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 12px; color: var(--green); background: #2a3427; font-size: 1.2rem; }
.room-card .status-pill { position: absolute; top: 19px; right: 15px; padding: 6px 8px; font-size: .62rem; }
.room-card h3 { margin-bottom: 4px; }
.room-rate { margin-bottom: 13px; color: var(--green); font: 700 1.08rem Manrope, sans-serif; }
.room-rate small { color: var(--muted); font: 400 .69rem 'DM Sans', sans-serif; }
.room-card .button { width: 100%; min-height: 38px; font-size: .7rem; }
.booking-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr); gap: 15px; align-items: start; }
.form-card, .list-card, .account-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.form-card h3, .list-title h3 { margin-bottom: 15px; }
.form-card label { margin-bottom: 12px; }
.form-card .button { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-grid label { min-width: 0; }
.list-title { margin-bottom: 2px; }
.list-title .eyebrow { margin-bottom: 5px; }
.list-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #2a322c; }
.list-row:last-child { border-bottom: 0; }
.list-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-row strong { font-size: .78rem; }
.list-row small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.list-row > strong { white-space: nowrap; }
.activity-title { min-width: 0; display: flex; gap: 6px; overflow: hidden; white-space: nowrap; }
.activity-receipt { flex: 0 0 auto; }
.activity-products { min-width: 0; overflow: hidden; flex: 1 1 auto; font-weight: 500 !important; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { padding: 5px 8px; text-transform: capitalize; }
.row-end { display: flex; align-items: center; gap: 11px; }
.order-row { flex-wrap: wrap; padding: 8px 0; }
.order-status-form { display: flex; align-items: center; gap: 7px; }
.order-status-form select { width: auto; min-height: 36px; padding: 6px 25px 6px 8px; font-size: .68rem; }
.order-status-form .button { min-height: 36px; padding: 0 10px; font-size: .67rem; }
.empty-message { margin: 15px 0 3px; font-size: .78rem; }
.recent-section { margin-top: 34px; }
.recent-section .section-head { margin-bottom: 13px; }
.shift-receipts-card { margin-bottom: 22px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.shift-receipts-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.shift-receipts-header .eyebrow { margin-bottom: 5px; }
.shift-receipts-header h2 { margin-bottom: 4px; }
.shift-receipts-header .muted { margin: 0; font-size: .75rem; }
.latest-receipt-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.latest-receipt-main { min-width: 0; flex: 1 1 auto; }
.latest-receipt-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.latest-receipt-number { color: var(--text); font: 700 1rem Manrope, sans-serif; }
.latest-receipt-meta { margin: 6px 0; color: var(--muted); font-size: .72rem; }
.latest-receipt-items { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text); font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-receipt-total { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 4px; }
.latest-receipt-total > span { color: var(--muted); font-size: .67rem; }
.latest-receipt-total > strong { color: var(--green); font: 700 1.12rem Manrope, sans-serif; }
.latest-receipt-total .button { min-height: 40px; margin-top: 4px; padding: 0 13px; font-size: .71rem; }
.shift-receipts-empty { margin: 0; padding: 13px; border-radius: 10px; color: var(--muted); background: var(--surface-raised); font-size: .78rem; }
.previous-receipts { margin-top: 14px; }
.previous-receipts-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.previous-receipts-heading h3 { margin: 0; font-size: .84rem; }
.previous-receipts-heading > span { color: var(--muted); font-size: .67rem; }
.previous-receipt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.previous-receipt-card { min-width: 0; display: grid; gap: 7px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-raised); }
.previous-receipt-card:hover { border-color: #71845f; color: var(--text); background: var(--surface-soft); }
.previous-receipt-top, .previous-receipt-bottom { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.previous-receipt-top strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.previous-receipt-top small, .previous-receipt-bottom small { color: var(--muted); font-size: .63rem; white-space: nowrap; }
.previous-receipt-items { display: -webkit-box; overflow: hidden; min-height: 1.35em; color: var(--muted); font-size: .66rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.previous-receipt-bottom strong { color: var(--green); font-size: .69rem; white-space: nowrap; }
.account-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; }
.stock-alert { border: 1px solid #65403a; }
.account-card h3 { margin-bottom: 3px; }
.account-card .muted { margin-bottom: 0; }
.password-form { display: flex; align-items: center; gap: 8px; }
.password-form input { width: 190px; }
.password-form .button { min-width: 135px; }

.toast { position: fixed; z-index: 20; right: 25px; bottom: 25px; max-width: min(420px, calc(100vw - 30px)); padding: 13px 17px; border: 1px solid #485b3e; border-radius: 12px; color: #eaf3e3; background: #253021; box-shadow: 0 10px 35px #0008; font-size: .8rem; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: none; }
.toast.toast-error { border-color: #71433d; background: #35231f; }
.mobile-cart-bar { display: none; }
.close-shift-dialog { width: min(420px, calc(100vw - 28px)); padding: 22px; border: 1px solid #3c493d; border-radius: 17px; color: var(--text); background: #1a201b; box-shadow: 0 25px 90px #0009; }
.close-shift-dialog::backdrop { background: #050705bd; backdrop-filter: blur(4px); }
.close-shift-dialog h2 { margin-bottom: 8px; }
.close-shift-dialog label { margin-top: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.shop-workspace { padding-top: 43px; }
.shop-layout { grid-template-columns: minmax(0, 1fr) 370px; }
.shop-bill { top: 18px; }
.shop-order-form { display: grid; gap: 8px; }
.shop-order-form .compact-label { margin: 0; }
.shop-hero { position: relative; min-height: 245px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 30px; padding: 34px 40px; border: 1px solid #354135; border-radius: 22px; background: radial-gradient(ellipse at 87% 45%, #35452a 0, #222b21 30%, #1a201b 73%); }
.shop-hero > div:first-child { position: relative; z-index: 1; max-width: 700px; }
.shop-hero h1 { max-width: 620px; font-size: clamp(2rem, 4vw, 3.15rem); }
.shop-hero .muted { max-width: 580px; margin-bottom: 19px; font-size: .86rem; line-height: 1.6; }
.shop-hero-lead { margin-bottom: 8px; color: #d2ddce; font-size: 1.02rem; }
.shop-hero-art { position: absolute; top: 50%; right: 9%; width: 190px; height: 170px; display: grid; place-items: center; border: 1px solid #9db18b24; border-radius: 42% 58% 55% 45%; background: #9db18b0a; transform: translateY(-50%) rotate(-7deg); }
.shop-hero-art span { font-size: 5.2rem; }
.shop-hero-art i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px #b6f36b99; }
.shop-hero-art i:nth-of-type(1) { top: 22px; right: 30px; }
.shop-hero-art i:nth-of-type(2) { bottom: 24px; left: 28px; width: 6px; height: 6px; }
.shop-hero-art i:nth-of-type(3) { top: 50%; left: 12px; width: 5px; height: 5px; }
.shop-order-form .form-grid { gap: 8px; }
.shop-order-form .form-grid label { min-width: 0; }
.admin-workspace, .close-workspace { padding-top: 32px; }
.admin-section, .close-section { margin-top: 30px; }
.admin-settings-form, .admin-add-form, .close-form { display: grid; gap: 15px; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.admin-settings-grid label { min-width: 0; }
.admin-settings-form.form-card { gap: 11px; padding: 15px; }
.admin-settings-form label { margin-bottom: 0; }
.admin-settings-grid { gap: 10px 12px; }
.admin-settings-form .admin-check-label { min-height: 32px; }
.admin-settings-form > .muted { margin: 0; }
.rooms-copy-description { grid-column: 1 / -1; }
.admin-receipt-settings { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #171d18; }
.admin-receipt-settings .eyebrow { margin-bottom: 12px; }
.receipt-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.admin-check-label { min-height: 36px; display: flex; flex-direction: row; align-items: center; gap: 10px; color: #c9d2c8; cursor: pointer; font-size: .75rem; }
.admin-check-label input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--green); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.admin-products-table { min-width: 1320px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid #2a322c; text-align: left; }
.admin-table th { color: #95a194; background: #1c221d; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { color: #d7ded5; font-size: .73rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td input { min-width: 90px; min-height: 38px; padding: 7px 8px; font-size: .73rem; }
.admin-table td form { margin: 0; }
.admin-table .button { min-height: 38px; padding: 0 11px; }
.admin-notifications { display: grid; gap: 9px; }
.admin-notification { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-notification > div { display: flex; justify-content: space-between; gap: 12px; }
.admin-notification strong { color: #e3e9e1; font-size: .77rem; }
.admin-notification time { flex: 0 0 auto; color: #8f9b90; font-size: .66rem; }
.admin-notification p { margin: 8px 0 0; color: #b0bbb0; font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }
.close-total-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.close-total-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #1d241e, #171b18); }
.close-total-card span, .close-pool-card span { color: #aab5aa; font-size: .72rem; }
.close-total-card strong { color: var(--green); font: 700 1.15rem Manrope, sans-serif; }
.close-pool-card { display: flex; align-items: center; gap: 15px; margin-top: 12px; padding: 14px 17px; border: 1px solid #3b4739; border-radius: 13px; background: #1c241b; }
.close-pool-card strong { color: #dce8d5; font-size: .8rem; }
.close-pool-card small { margin-left: auto; color: #a0ad9e; font-size: .69rem; }
.close-form { max-width: 780px; }
.close-form > .muted { margin: 0; }
.close-form .button { justify-self: start; min-width: 150px; }
.close-form .form-grid { margin-bottom: 3px; }
.receipt-dialog { position: relative; width: min(450px, calc(100vw - 28px)); max-height: calc(100vh - 30px); overflow-y: auto; padding: 25px; border: 1px solid #465346; border-radius: 18px; color: var(--text); background: #1b211c; box-shadow: 0 25px 90px #0009; }
.receipt-dialog::backdrop { background: #050705bd; backdrop-filter: blur(4px); }
.receipt-close { position: absolute; top: 12px; right: 12px; width: 34px; min-height: 34px; border: 1px solid #394439; border-radius: 9px; color: #c6d0c4; background: #222923; cursor: pointer; font-size: 1.15rem; }
.receipt-content { padding: 8px 0 2px; }
.receipt-content h2 { padding-right: 36px; margin-bottom: 5px; font-size: 1.25rem; }
.receipt-subtitle { margin-bottom: 16px; color: #99a599; font-size: .7rem; }
.receipt-meta { display: grid; gap: 7px; padding: 11px 0; border-top: 1px dashed #465045; border-bottom: 1px dashed #465045; }
.receipt-meta span, .receipt-total-row { display: flex; justify-content: space-between; gap: 12px; color: #aab5aa; font-size: .69rem; }
.receipt-meta strong { color: #e2e8df; text-align: right; overflow-wrap: anywhere; }
.receipt-lines { display: grid; gap: 9px; padding: 15px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; color: #cbd4ca; font-size: .71rem; }
.receipt-line span { overflow-wrap: anywhere; }
.receipt-line strong { flex: 0 0 auto; color: #e3e9e1; }
.receipt-total-row { padding: 4px 0; }
.receipt-grand-total { margin-top: 7px; padding-top: 12px; border-top: 1px solid #3a453a; color: #e7eee4; font-size: .8rem; }
.receipt-grand-total strong { color: var(--green); font: 700 1.05rem Manrope, sans-serif; }
.receipt-payment { margin: 13px 0 0; color: #a5b0a5; font-size: .7rem; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.receipt-actions .button { min-height: 40px; flex: 1 1 120px; padding: 0 10px; font-size: .7rem; }
.receipt-hint { margin: 12px 0 0; line-height: 1.5; }
.receipt-page { min-height: 100vh; padding-bottom: 92px; }
.public-receipt-wrap { width: min(700px, calc(100% - 30px)); margin: 28px auto 26px; }
.public-receipt-card { padding: clamp(20px, 5vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, #1d241e, #171b18); box-shadow: 0 24px 70px #0003; }
.public-receipt-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); text-align: center; }
.receipt-brand { justify-content: center; margin-bottom: 22px; text-align: left; }
.receipt-address { margin: -12px 0 22px; color: #aab5aa; font-size: .76rem; line-height: 1.6; white-space: normal; }
.public-receipt-header h1 { margin: 0 0 7px; font: 700 1.6rem Manrope, sans-serif; }
.public-receipt-header .muted { margin: 0; }
.public-receipt-meta { display: grid; gap: 12px; padding: 19px 0; }
.public-receipt-meta > div, .public-receipt-total { display: flex; justify-content: space-between; gap: 16px; }
.public-receipt-meta span, .public-receipt-total span { color: #aab5aa; font-size: .78rem; }
.public-receipt-meta strong { color: #e2e8df; font-size: .78rem; text-align: right; overflow-wrap: anywhere; }
.public-receipt-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.public-receipt-table { width: 100%; border-collapse: collapse; text-align: left; }
.public-receipt-table th { padding: 12px 8px; color: #aab5aa; font-size: .69rem; font-weight: 600; text-transform: uppercase; }
.public-receipt-table td { padding: 13px 8px; border-top: 1px solid #2d352e; color: #dce4da; font-size: .78rem; }
.public-receipt-table th:nth-child(2), .public-receipt-table td:nth-child(2) { width: 62px; text-align: center; }
.public-receipt-table th:last-child, .public-receipt-table td:last-child { white-space: nowrap; text-align: right; }
.public-receipt-total { padding: 8px 0; }
.public-receipt-total strong { color: #e2e8df; font-size: .8rem; }
.public-receipt-grand-total { margin-top: 5px; padding: 15px 0; border-top: 1px solid #3a453a; }
.public-receipt-grand-total span { color: #e7eee4; font-size: .9rem; }
.public-receipt-grand-total strong { color: var(--green); font: 700 1.15rem Manrope, sans-serif; }
.public-receipt-payment { margin-top: 4px; border-top: 1px solid var(--line); }
.public-receipt-thanks { margin: 8px 0 0; padding-top: 18px; border-top: 1px dashed #465045; color: #c8d4c4; font-size: .85rem; text-align: center; }
.public-receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.public-receipt-actions .button { flex: 1 1 160px; }
.public-receipt-actions .receipt-hint { flex: 1 0 100%; min-height: 1.2em; margin: 0; text-align: center; }
.receipt-not-found { padding-block: 50px; text-align: center; }
.receipt-not-found .receipt-brand { margin-bottom: 38px; }
.receipt-not-found-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #465346; border-radius: 50%; color: var(--green); font-size: 1.35rem; }
.receipt-not-found h1 { margin-bottom: 8px; }
.receipt-not-found .muted { margin: 0; }
.receipt-footer { display: flex; justify-content: center; gap: 5px; margin: 18px 15px 26px; color: var(--muted); font-size: .78rem; text-align: center; }
.receipt-footer a { color: var(--green); font-weight: 700; }
.receipt-bottom-nav { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 10px max(12px, calc((100vw - 1220px) / 2)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(20,25,21,.96); backdrop-filter: blur(16px); scrollbar-width: thin; }
.receipt-bottom-nav .button { min-width: 128px; min-height: 48px; flex: 1 0 auto; white-space: nowrap; }
.receipt-page .public-receipt-actions .button { min-height: 48px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.store-footer { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.store-footer a { color: var(--green); }

.setup-body { min-height: 100vh; display: grid; place-items: center; padding: 26px 15px; background: radial-gradient(ellipse at 50% 0, #263321 0, #101311 48%); }
.setup-wrap, .login-wrap { width: min(100%, 560px); }
.setup-wrap > .brand-mark, .login-wrap > .brand-mark { margin-bottom: 22px; }
.setup-wrap > h1, .login-wrap > h1 { font-size: 2rem; }
.setup-wrap > .muted, .login-wrap > .muted { margin-bottom: 23px; font-size: .88rem; }
.setup-card { display: grid; gap: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #191e1a; box-shadow: 0 20px 70px #0003; }
.setup-card h2 { margin: 4px 0 -4px; color: #dbe3da; font-size: .94rem; }
.setup-card label { gap: 6px; }
.setup-card .form-grid { gap: 12px; }
.setup-card details { padding-top: 11px; border-top: 1px solid var(--line); }
.setup-card summary { margin-bottom: 12px; color: #c4cec4; cursor: pointer; font-size: .8rem; font-weight: 600; }
.setup-card details .form-grid { row-gap: 13px; }
.setup-card .full-button { min-height: 48px; margin-top: 3px; }
.setup-wrap > .small { margin-top: 15px; }
.login-wrap { width: min(100%, 440px); padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 24px 80px #0005; }
.login-wrap .login-brand { display: flex; align-items: center; justify-content: flex-start; gap: 11px; margin: 0 0 28px; color: var(--text); text-align: left; }
.login-brand img, .login-brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; object-fit: cover; color: #101311; background: var(--brand); font-size: .82rem; font-weight: 900; }
.login-brand strong { font-size: 1rem; letter-spacing: -.02em; }
.login-wrap > .eyebrow { margin-bottom: 7px; }
.login-wrap > h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.035em; }
.login-wrap > .muted { margin: 7px 0 20px; }
.login-wrap .setup-card { gap: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.login-wrap .setup-card .full-button { margin-top: 2px; }
.login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 21px; }
.login-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.login-links a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 480px) { .login-wrap { padding: 22px 18px; } }
.notice { margin: 14px 0; padding: 12px 14px; border: 1px solid #394338; border-radius: 10px; color: #d5ded3; background: #1d241e; font-size: .8rem; line-height: 1.5; }
.notice.success { border-color: #536946; color: #d5f7bc; background: #202b1c; }
.notice.error { border-color: #74433c; color: #ffb0a7; background: #2d211f; }

.rooms-workspace { padding-top: 30px; }
.rooms-hero { position: relative; min-height: 255px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 38px; padding: 38px 44px; border: 1px solid #354135; border-radius: 22px; background: radial-gradient(ellipse at 87% 45%, #35452a 0, #222b21 30%, #1a201b 73%); }
.rooms-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.rooms-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.rooms-lead { margin-bottom: 8px; color: #d2ddce; font-size: 1.05rem; }
.rooms-hero .muted { max-width: 510px; margin-bottom: 20px; font-size: .86rem; line-height: 1.6; }
.payment-promise { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.payment-promise span { margin-right: 4px; color: #9eaa9d; font-size: .73rem; }
.payment-promise strong { padding: 7px 10px; border: 1px solid #445440; border-radius: 20px; color: #d8e6d0; background: #242e22; font-size: .66rem; font-weight: 600; }
.hero-decoration { position: absolute; top: 50%; right: 8%; width: 215px; height: 190px; display: grid; place-items: center; border: 1px solid #9db18b24; border-radius: 38% 62% 56% 44%; color: #d0e7bb; background: #9db18b0a; transform: translateY(-50%) rotate(-7deg); }
.hero-decoration span { font-size: 6rem; opacity: .8; }
.hero-decoration i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 22px #b6f36b99; }
.hero-decoration i:nth-of-type(1) { top: 25px; right: 36px; }
.hero-decoration i:nth-of-type(2) { bottom: 30px; left: 30px; width: 6px; height: 6px; }
.hero-decoration i:nth-of-type(3) { top: 50%; left: 15px; width: 5px; height: 5px; }
.booking-notice { margin: -20px 0 28px; }
.rooms-section { margin-bottom: 40px; }
.rooms-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: #c5d0c4; font-size: .68rem; }
.public-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.public-room-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(155deg, #1d241e, #171b18 78%); }
.public-room-card:target { border-color: #718b5d; box-shadow: 0 0 0 3px #b6f36b14; }
.public-room-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.public-room-top .room-icon { width: 43px; height: 43px; margin: 0; border: 1px solid #3b4939; font-size: 1.35rem; }
.room-status { padding: 6px 9px; border: 1px solid #41513a; border-radius: 20px; color: #cfe7bc; background: #263221; font-size: .63rem; font-weight: 700; }
.room-status.status-occupied { border-color: #725534; color: #ffcf82; background: #352a1c; }
.room-status.status-cleaning { border-color: #68443e; color: #ffaaa0; background: #342320; }
.room-number { margin-bottom: 5px; font-size: .61rem; }
.public-room-card h3 { margin-bottom: 6px; font-size: 1.18rem; }
.public-room-description { min-height: 40px; margin-bottom: 15px; color: #9ba69b; font-size: .76rem; line-height: 1.5; }
.public-room-facts { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0 13px; border-top: 1px solid #2a332b; color: #a7b2a7; font-size: .69rem; }
.public-room-price { color: var(--green); font: 700 1rem Manrope, sans-serif; white-space: nowrap; }
.public-room-price small { color: #a3aea2; font: 400 .64rem 'DM Sans', sans-serif; }
.public-booking-form { display: grid; gap: 11px; padding-top: 12px; border-top: 1px solid #2a332b; }
.public-booking-form label { gap: 6px; font-size: .68rem; }
.public-booking-form input, .public-booking-form select { min-height: 42px; padding: 9px 10px; font-size: .73rem; }
.public-booking-form .form-grid { gap: 8px; }
.room-estimate { min-height: 37px; display: flex; align-items: center; margin: 0; padding: 8px 10px; border: 1px solid #344132; border-radius: 8px; color: #d0dfc7; background: #20281e; font-size: .7rem; font-weight: 600; }
.public-booking-form .full-button { min-height: 46px; }
.public-booking-form .full-button span { font-size: 1rem; }
.staff-bookings { margin-top: 44px; }
.recent-bookings-table { overflow-x: auto; padding: 0; }
.booking-table-head, .booking-table-row { min-width: 770px; display: grid; grid-template-columns: .8fr 1.15fr 1.1fr 1.35fr .85fr .8fr; align-items: center; gap: 12px; padding: 12px 16px; }
.booking-table-head { border-bottom: 1px solid var(--line); color: #8e9a8f; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.booking-table-row { min-height: 52px; border-bottom: 1px solid #2a322c; color: #b7c1b6; font-size: .69rem; }
.booking-table-row:last-child { border-bottom: 0; }
.booking-table-row strong { overflow: hidden; color: #e2e8e0; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.booking-table-row .status-pill { width: fit-content; }

@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-layout, .shop-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
    .workspace { padding-right: 22px; padding-left: 22px; }
    .bill-card { padding: 16px; }
    .password-form input { width: 160px; }
    .top-nav { gap: 1px; }
    .top-nav a { padding: 8px 7px; font-size: .67rem; }
    .public-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-hero-art { right: 4%; opacity: .7; }
    .admin-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .close-total-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .site-sticky-nav { padding: 8px 12px 6px; }
    .site-nav-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back actions" "title title"; gap: 6px 8px; }
    .site-back-button { grid-area: back; }
    .site-nav-title { grid-area: title; justify-self: center; max-width: 90%; }
    .site-nav-actions { grid-area: actions; gap: 6px; }
    .site-nav-actions .button, .site-back-button { padding-right: 10px; padding-left: 10px; font-size: .7rem; }
    .site-nav-links { justify-content: flex-start; overflow-x: auto; padding: 5px 0 1px; }
    .site-nav-links a:not(.text-link) { flex: 0 0 auto; }
    .receipt-bottom-nav { justify-content: flex-start; gap: 7px; padding-right: 9px; padding-left: 9px; }
    .receipt-bottom-nav .button { min-width: 126px; }
    .receipt-footer { margin-bottom: 20px; }
    .topbar { min-height: 62px; flex-wrap: wrap; gap: 4px 8px; padding: 9px 16px; }
    .top-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .top-nav a { padding: 7px 10px; font-size: .7rem; }
    .top-actions { gap: 12px; }
    .user-chip { display: none; }
    .top-actions .text-link, .topbar > .text-link { font-size: .72rem; }
    .workspace { padding: 26px 16px 92px; }
    .shop-workspace { padding-top: 20px; }
    .shop-hero { min-height: 225px; margin-bottom: 23px; padding: 27px 22px; }
    .shop-hero > div:first-child { max-width: 100%; }
    .shop-hero-art { right: -58px; width: 160px; height: 145px; opacity: .5; }
    .shop-hero .muted { max-width: 440px; }
    .rooms-workspace { padding-top: 20px; }
    .rooms-hero { min-height: 230px; margin-bottom: 28px; padding: 28px 23px; }
    .hero-decoration { right: -54px; width: 170px; height: 150px; opacity: .45; }
    .rooms-hero-copy { max-width: 100%; }
    .rooms-hero .muted { max-width: 420px; }
    .public-room-grid { grid-template-columns: 1fr; gap: 12px; }
    .public-room-card { padding: 17px; }
    .public-room-description { min-height: 0; }
    .staff-bookings { margin-top: 32px; }
    .welcome-row { align-items: flex-start; margin-bottom: 21px; }
    .welcome-row .muted { max-width: 470px; font-size: .82rem; line-height: 1.5; }
    .live-pill { margin-top: 5px; padding: 7px 9px; font-size: .65rem; }
    .tabs { width: 100%; margin-bottom: 20px; }
    .tab { flex: 1; padding: 0 9px; font-size: .75rem; }
    .shift-receipts-card { padding: 13px; }
    .shift-receipts-header { align-items: flex-start; }
    .latest-receipt-card { align-items: stretch; flex-direction: column; gap: 12px; }
    .latest-receipt-total { align-items: center; flex-direction: row; justify-content: space-between; }
    .latest-receipt-total .button { margin: 0; }
    .previous-receipt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-layout, .shop-layout { display: flex; flex-direction: column; }
    .catalog { width: 100%; }
    .section-head { align-items: center; }
    .search-wrap { width: min(225px, 48%); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .product-card { padding: 12px; border-radius: 13px; }
    .product-card-name { font-size: .84rem; }
    .variant-option { min-height: 49px; padding: 7px; }
    .variant-option strong { font-size: .66rem; }
    .variant-label { font-size: .66rem; }
    .bill-card { position: static; width: 100%; margin: 3px 0 0; padding: 16px; }
    .cart-lines { max-height: 250px; }
    .mobile-cart-bar { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); border-top: 1px solid #374238; background: #171d18f5; backdrop-filter: blur(14px); transform: translateY(110%); transition: transform .2s ease; }
    .mobile-cart-bar.has-items { transform: none; }
    .mobile-cart-bar > span { display: flex; flex-direction: column; gap: 3px; }
    .mobile-cart-bar small { color: var(--muted); font-size: .66rem; }
    .mobile-cart-bar strong { color: var(--green); font: 700 1.02rem Manrope, sans-serif; }
    .mobile-cart-bar .button { min-width: 120px; min-height: 42px; }
    .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .room-card { min-height: 190px; padding: 13px; }
    .room-card .status-pill { position: static; display: inline-flex; margin-bottom: 12px; font-size: .57rem; }
    .room-icon { margin-bottom: 10px; }
    .room-rate { font-size: .91rem; }
    .room-rate small { display: block; margin-top: 2px; }
    .room-card .button { padding: 0 5px; font-size: .64rem; }
    .booking-layout { grid-template-columns: 1fr; }
    .account-card { align-items: flex-start; flex-direction: column; }
    .password-form { width: 100%; flex-wrap: wrap; }
    .password-form input { flex: 1 1 175px; width: auto; }
    .password-form .button { flex: 1 1 100%; }
    .toast { right: 15px; bottom: 88px; }
    .shop-workspace { padding-top: 27px; }
    .shop-bill { order: 2; }
    .store-footer { margin-top: 25px; }
}
.visually-hidden, .image-picker-input { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.avatar-upload-form { display: grid; justify-items: start; gap: 8px; }
.account-profile-photo { position: relative; }
.photo-change-button { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; color: #15200d; background: var(--green); font-size: 1rem; cursor: pointer; }
.photo-change-button:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.image-picker-control { position: relative; display: grid; justify-items: start; gap: 8px; }
.image-picker-control .button { display: inline-flex; align-items: center; justify-content: center; }
.image-picker-control:focus-within .button { outline: 2px solid var(--green); outline-offset: 2px; }
.image-picker-control [data-image-file-name] { max-width: 100%; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.image-picker-preview { width: 92px; height: 66px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-raised); font-size: .68rem; text-align: center; }
.image-picker-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-picker-trigger { width: fit-content; min-height: 38px; cursor: pointer; }
.shop-workspace { padding-top: 16px; }
.shop-hero { min-height: 154px; margin-bottom: 16px; padding: 18px 24px; border-radius: 16px; }
.shop-hero-copy { max-width: min(78%, 780px) !important; }
.shop-hero .eyebrow { margin-bottom: 4px; font-size: .6rem; }
.shop-hero h1 { max-width: 100%; margin-bottom: 3px; font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.shop-hero-lead { margin: 0 0 7px; font-size: .82rem; }
.shop-hero .muted { margin: 0 0 8px; font-size: .75rem; line-height: 1.35; }
.shop-hero-art { right: 5%; width: 100px; height: 100px; }
.shop-hero-art span { font-size: 3.2rem; }
.shop-hero-art i { display: none; }
.shop-hero .payment-promise { gap: 5px; }
.shop-hero .payment-promise span { width: auto; margin: 0; font-size: .64rem; }
.shop-hero .payment-promise strong { padding: 4px 8px; font-size: .6rem; }
.shop-body .site-sticky-nav { padding-top: 5px; padding-bottom: 5px; }
.shop-body .site-nav-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.shop-body .site-nav-row .button { min-height: 38px; padding: 0 10px; font-size: .72rem; }
.shop-body .site-nav-links { display: none; }
.shop-body .site-nav-title { max-width: 45vw; justify-self: center; }
.shop-body .shop-layout { align-items: start; }
@media (max-width: 760px) {
    .shop-workspace { padding-top: 10px; }
    .shop-hero { min-height: 0; margin-bottom: 12px; padding: 13px 15px; }
    .shop-hero-copy { max-width: 78% !important; }
    .shop-hero h1 { max-width: 100%; font-size: 1.35rem; }
    .shop-hero .eyebrow { margin-bottom: 3px; }
    .shop-hero .muted { display: none; }
    .shop-hero-lead { margin-bottom: 5px; font-size: .72rem; }
    .shop-hero-art { right: 2%; width: 68px; height: 68px; }
    .shop-hero-art span { font-size: 2.4rem; }
    .shop-hero .payment-promise { gap: 4px; }
    .shop-hero .payment-promise span { font-size: .57rem; }
    .shop-hero .payment-promise strong { padding: 3px 6px; font-size: .54rem; }
    .shop-body .site-nav-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions"; }
    .shop-body .site-back-button, .shop-body .site-nav-row > span { display: none; }
    .shop-body .site-nav-title { grid-column: 1; grid-row: 1; justify-self: start; max-width: 60vw; }
    .shop-body .site-nav-actions { grid-column: 2; grid-row: 1; }
    .shop-body .site-nav-actions > a { display: none; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.62rem; }
    .brand { font-size: .85rem; }
    .brand small { font-size: .52rem; }
    .small-mark { width: 35px; height: 35px; }
    .top-actions { gap: 10px; }
    .top-actions .text-link { font-size: .65rem; }
    .welcome-row { gap: 8px; }
    .rooms-hero { min-height: 0; padding: 25px 18px; border-radius: 17px; }
    .rooms-hero h1 { max-width: 260px; font-size: 1.85rem; }
    .rooms-hero .muted { max-width: 270px; font-size: .77rem; }
    .rooms-lead { font-size: .91rem; }
    .payment-promise { gap: 5px; }
    .payment-promise span { width: 100%; }
    .payment-promise strong { padding: 6px 8px; font-size: .59rem; }
    .hero-decoration { right: -82px; width: 145px; height: 130px; }
    .hero-decoration span { font-size: 4.5rem; }
    .shop-hero { min-height: 0; padding: 23px 17px; border-radius: 17px; }
    .shop-hero h1 { max-width: 260px; font-size: 1.82rem; }
    .shop-hero .muted { max-width: 280px; font-size: .75rem; }
    .shop-hero-lead { font-size: .89rem; }
    .shop-hero-art { right: -72px; width: 135px; height: 125px; }
    .shop-hero-art span { font-size: 4rem; }
    .shop-order-form .form-grid { grid-template-columns: 1fr; gap: 0; }
    .admin-workspace, .close-workspace { padding-top: 22px; }
    .admin-settings-grid { grid-template-columns: 1fr; }
    .receipt-dialog { padding: 20px; }
    .admin-settings-form, .admin-add-form, .close-form { padding: 16px; }
    .receipt-settings-grid { grid-template-columns: 1fr; gap: 5px; }
    .admin-notification > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .close-pool-card { align-items: flex-start; flex-direction: column; gap: 7px; }
    .close-pool-card small { margin-left: 0; }
    .public-booking-form .form-grid { gap: 8px; }
    .booking-notice { margin-top: -13px; }
    .live-pill { gap: 5px; padding: 7px 8px; font-size: .59rem; }
    .section-head h2 { font-size: 1.08rem; }
    .search-wrap { width: 45%; height: 39px; padding: 0 8px; }
    .search-wrap input { font-size: .68rem; }
    .product-grid { gap: 8px; }
    .product-card { padding: 10px; }
    .product-card-head { margin-bottom: 9px; }
    .product-icon { width: 30px; height: 30px; border-radius: 9px; }
    .product-category { font-size: .58rem; }
    .product-card-name { min-height: 20px; margin-bottom: 7px; font-size: .8rem; }
    .variant-option { gap: 3px; min-height: 47px; }
    .variant-label { gap: 3px; font-size: .6rem; }
    .variant-option strong { font-size: .63rem; }
    .stock-tag { padding: 2px 3px; font-size: .45rem; }
    .variant-stock { font-size: .53rem; }
    .add-symbol { font-size: .57rem; }
    .room-grid { grid-template-columns: 1fr; }
    .room-card { min-height: 0; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 2px 10px; padding: 13px; }
    .room-icon { grid-row: span 3; margin: 0; }
    .room-card .status-pill { grid-column: 3; grid-row: 1; margin: 0; }
    .room-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
    .room-rate { grid-column: 2; grid-row: 2; margin: 0; font-size: .88rem; }
    .room-rate small { display: inline; }
    .room-card .button { grid-column: 3; grid-row: 2 / span 2; width: auto; min-width: 100px; }
    .form-grid { gap: 8px; }
    .form-card, .list-card, .account-card { padding: 15px; }
    .list-row { gap: 8px; }
    .order-status-form { flex: 1 1 100%; }
    .order-status-form select { flex: 1; }
    .row-end { align-items: flex-end; flex-direction: column; gap: 5px; }
    .store-footer { gap: 10px; font-size: .68rem; }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f6f1;
    --surface: #ffffff;
    --surface-raised: #f9fbf7;
    --surface-soft: #edf2eb;
    --line: #d7dfd4;
    --text: #202a21;
    --muted: #647064;
    --green: #4b742c;
    --green-deep: #e8f0e2;
    --amber: #8a5a00;
    --red: #a63d35;
}
:root[data-theme="light"] body.app-body { color: var(--text); background: var(--bg); }
:root[data-theme="light"] .topbar { border-color: #c8d6c1; background: #e4ecdf; box-shadow: 0 3px 14px #253c2410; }
:root[data-theme="light"] .brand-mark { color: #fff; }
:root[data-theme="light"] .top-nav a,
:root[data-theme="light"] .user-chip,
:root[data-theme="light"] .top-actions .text-link { color: #405143; }
:root[data-theme="light"] .top-nav a:hover,
:root[data-theme="light"] .top-nav a[aria-current="page"] { color: #3d6527; background: #d3e2ca; }
:root[data-theme="light"] .text-link:hover { color: #365d22; }
:root[data-theme="light"] .live-pill,
:root[data-theme="light"] .status-pill { border-color: var(--line); color: #455347; background: #fff; }
:root[data-theme="light"] .site-sticky-nav { border-color: #c8d6c1; background: #e4ecdf; }
:root[data-theme="light"] .site-nav-links a:not(.text-link) { color: #455347; }
:root[data-theme="light"] .site-nav-links a:not(.text-link):hover,
:root[data-theme="light"] .site-nav-links a[aria-current="page"] { color: var(--green); background: #e9f0e4; }
:root[data-theme="light"] .site-nav-links .text-link,
:root[data-theme="light"] .site-nav-links .user-chip { color: #455347; }
:root[data-theme="light"] .button.secondary { border-color: #cbd6c9; color: #2a362b; background: #fff; }
:root[data-theme="light"] .button.secondary:hover { border-color: #809674; color: var(--green); background: #f4f8f1; }
:root[data-theme="light"] .button.primary { color: #fff; background: #4b742c; }
:root[data-theme="light"] .button.primary:hover:not(:disabled) { background: #3d6422; }
:root[data-theme="light"] .button.primary:disabled { border-color: #cbd6c8; color: #586454; background: #e6ece2; opacity: 1; }
:root[data-theme="light"] .receipt-bottom-nav { border-color: var(--line); background: rgba(250,252,248,.96); }
:root[data-theme="light"] .public-receipt-card,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .bill-card,
:root[data-theme="light"] .public-room-card { border-color: var(--line); background: #fff; box-shadow: 0 12px 35px #2430210b; }
:root[data-theme="light"] .receipt-address,
:root[data-theme="light"] .public-receipt-meta span,
:root[data-theme="light"] .public-receipt-total span,
:root[data-theme="light"] .public-receipt-table th,
:root[data-theme="light"] .public-receipt-thanks,
:root[data-theme="light"] .public-room-description,
:root[data-theme="light"] .public-room-facts,
:root[data-theme="light"] .rooms-count,
:root[data-theme="light"] .payment-promise span { color: #657266; }
:root[data-theme="light"] .public-receipt-meta strong,
:root[data-theme="light"] .public-receipt-table td,
:root[data-theme="light"] .public-receipt-total strong,
:root[data-theme="light"] .public-receipt-grand-total span,
:root[data-theme="light"] .public-receipt-grand-total strong,
:root[data-theme="light"] .public-room-card h3 { color: #202a21; }
:root[data-theme="light"] .public-receipt-table td,
:root[data-theme="light"] .public-receipt-grand-total,
:root[data-theme="light"] .public-receipt-thanks { border-color: var(--line); }
:root[data-theme="light"] .shop-hero,
:root[data-theme="light"] .rooms-hero { border-color: #d7e0d1; background: radial-gradient(ellipse at 87% 45%, #e1ecd9 0, #f1f5ee 48%, #fff 100%); }
:root[data-theme="light"] .shop-hero-lead,
:root[data-theme="light"] .rooms-lead { color: #354a32; }
:root[data-theme="light"] .shop-hero .muted,
:root[data-theme="light"] .rooms-hero .muted { color: #5e6e5e; }
:root[data-theme="light"] .payment-promise strong { border-color: #d0ddc8; color: #42593b; background: #f7faf4; }
:root[data-theme="light"] .product-category,
:root[data-theme="light"] .variant-label,
:root[data-theme="light"] .variant-stock { color: #5f6c60; }
:root[data-theme="light"] .product-icon { border-color: #d4dfd0; background: #eff5e9; }
:root[data-theme="light"] .variant-option { border-color: #dce4d9; background: #f7f9f5; }
:root[data-theme="light"] .variant-option:hover:not(:disabled) { border-color: #8da480; background: #eef4e9; }
:root[data-theme="light"] .category-pills .pill { color: #536153; }
:root[data-theme="light"] .category-pills .pill.active { border-color: #b9c9ad; color: #42682a; background: #eaf2e4; }
:root[data-theme="light"] .tabs { background: #fff; }
:root[data-theme="light"] .tab.active { color: #42682a; background: #eaf2e4; }
:root[data-theme="light"] .tab-count { color: #53694c; }
:root[data-theme="light"] .empty-cart { color: #687568; }
:root[data-theme="light"] .empty-cart p,
:root[data-theme="light"] .quantity-control span,
:root[data-theme="light"] .bill-summary strong { color: #354236; }
:root[data-theme="light"] .quantity-control button { border-color: #cbd6c9; color: #42682a; background: #edf3e8; }
:root[data-theme="light"] .bill-total span,
:root[data-theme="light"] .bill-summary > div { color: #657266; }
:root[data-theme="light"] .cart-line,
:root[data-theme="light"] .booking-table-row { border-color: var(--line); }
:root[data-theme="light"] .booking-table-row { color: #58665a; }
:root[data-theme="light"] .booking-table-row strong { color: #2b382d; }
:root[data-theme="light"] .booking-table-head { border-color: var(--line); color: #58665a; }
:root[data-theme="light"] .list-row { border-color: var(--line); }
:root[data-theme="light"] .activity-title { color: #263328; }
:root[data-theme="light"] .mobile-cart-bar { border-color: var(--line); color: var(--text); background: rgba(250,252,248,.96); }
:root[data-theme="light"] .mobile-cart-bar strong { color: var(--green); }
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { border-color: #cbd6c9; color: #202a21; background: #fff; }
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder { color: #879287; }
:root[data-theme="light"] .search-wrap input { border: 0; color: var(--text); background: transparent; box-shadow: none; }
:root[data-theme="light"] label,
:root[data-theme="light"] .compact-label { color: #4d5b4e; }
:root[data-theme="light"] .public-booking-form { border-color: var(--line); }
:root[data-theme="light"] .room-estimate { border-color: #d2dfca; color: #44583e; background: #f2f7ed; }
:root[data-theme="light"] .public-booking-form input,
:root[data-theme="light"] .public-booking-form select { background: #fff; }
:root[data-theme="light"] .site-nav-title { color: var(--text); }
:root[data-theme="light"] .receipt-page .public-receipt-card { background: #fff; }
:root[data-theme="light"] .receipt-page .public-receipt-header h1 { color: #202a21; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    @page { margin: 12mm; }
}

.theme-toggle { display: none !important; }

.app-ready::before { content: none; }
html:not(.app-ready)::before,
.global-progress.is-active::before {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    background-size: 45% 100%;
    animation: global-progress-run 1.1s ease-in-out infinite;
    content: "";
}
.global-progress {
    position: fixed;
    z-index: 9999;
    top: 3px;
    left: 50%;
    display: none;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
    pointer-events: none;
}
.global-progress.is-active { display: flex; }
.global-progress > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #b6f36b88; animation: global-progress-pulse .8s ease-in-out infinite alternate; }
.global-progress > strong { padding: 3px 8px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--text); background: var(--surface); font-size: .62rem; font-weight: 650; }
.global-progress.is-navigation::before { content: ""; }
@keyframes global-progress-run { from { background-position: -50% 0; } to { background-position: 250% 0; } }
@keyframes global-progress-pulse { to { opacity: .35; transform: scale(.7); } }

@media (min-width: 1024px) {
    .catalog-tools .search-wrap { width: min(360px, 58%); }
    .pos-layout .bill-card { max-height: none; overflow: visible; }
    .pos-layout .cart-lines { max-height: none; overflow: visible; }
    .pos-layout .bill-card.customer-details-open { max-height: calc(100vh - 28px); overflow-y: auto; overflow-x: hidden; }
}

.product-kitchen-badge {
    padding: 3px 7px;
    border: 1px solid #73552b;
    border-radius: 6px;
    color: #ffcf7e;
    background: #3c2c19;
    font-size: .59rem;
    font-weight: 750;
    white-space: nowrap;
}
.latest-receipt-identify {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.latest-receipt-summary { grid-template-columns: auto minmax(90px, .75fr) minmax(120px, 1.4fr) minmax(72px, auto) auto auto; }
.shift-status-actions { display: flex; align-items: center; gap: 10px; }
.close-shift-action { min-height: 42px; }
.close-shift-action[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.kitchen-orders-pos-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.kitchen-order-pos-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 13px; background: var(--surface); }
.kitchen-order-pos-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kitchen-order-pos-card header strong { font-size: 1rem; }
.kitchen-order-pos-card header span { color: var(--amber); font-size: .72rem; text-transform: capitalize; }
.kitchen-order-pos-card p { margin: 8px 0; color: var(--muted); font-size: .76rem; }
.kitchen-order-pos-card ul { display: grid; gap: 6px; margin: 10px 0; padding-left: 18px; font-size: .82rem; }
.kitchen-status-preparing { border-left-color: #77b8ff; }
.kitchen-status-preparing header span { color: #77b8ff; }
.kitchen-status-ready { border-left-color: var(--green); }
.kitchen-status-ready header span { color: var(--green); }
.account-menu { position: relative; z-index: 90; min-width: 0; }
.account-menu > summary { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: #15200d; background: var(--green); font-size: .8rem; font-weight: 800; }
.account-menu-summary { min-width: 0; display: grid; gap: 1px; }
.account-menu-summary strong { max-width: 155px; overflow: hidden; color: var(--text); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-summary small { color: var(--muted); font-size: .6rem; }
.account-menu-chevron { color: var(--muted); font-size: .8rem; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-popover { position: absolute; z-index: 95; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 24px)); display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 18px 48px #0009; }
.account-menu-popover strong { color: var(--text); font-size: .82rem; }
.account-menu-popover > span { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.account-menu-popover a { min-height: 42px; display: flex; align-items: center; padding: 0 9px; border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: .76rem; }
.account-menu-popover a:hover { background: var(--surface-soft); }
.admin-sidebar-user .account-menu { width: 100%; }
.admin-sidebar-user .account-menu > summary { border: 0; padding-left: 0; background: transparent; }
.admin-sidebar-user .account-menu-popover { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; }
.admin-record-search { width: min(100%, 480px); min-height: 48px; display: flex !important; align-items: center; gap: 9px; margin: 12px 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); }
.admin-record-search > span { font-size: 1.2rem; }
.admin-record-search input { width: 100%; min-width: 0; min-height: 42px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; box-shadow: none; }
.admin-record-search input:focus { border: 0; box-shadow: none; }
.admin-menu-search { min-width: 0; overflow: hidden; background: var(--surface-raised); }
.admin-menu-search > span { flex: 0 0 auto; line-height: 1; }
.admin-menu-search input { min-width: 0; height: 40px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; appearance: none; }
.admin-menu-search input::-webkit-search-cancel-button { cursor: pointer; }
.admin-page .admin-menu-search {
    width: auto;
    min-height: 42px;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin: 0 4px 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-raised);
}
.admin-page .admin-menu-search:focus-within {
    border-color: #8fac70;
    box-shadow: 0 0 0 3px #b6f36b16;
}
.admin-page .admin-menu-search > span {
    width: 17px;
    height: 17px;
    display: grid;
    flex: 0 0 17px;
    place-items: center;
}
.admin-page .admin-menu-search svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.admin-page .admin-menu-search input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: .75rem;
}
.admin-page .admin-menu-search input:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}
.admin-page .admin-menu-search input::placeholder { color: var(--muted); }
.admin-page [data-admin-record][hidden] { display: none !important; }
.admin-search-empty { padding: 12px; }
.account-workspace { max-width: 760px; }
.account-profile-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-profile-card dl > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.account-profile-card dt { color: var(--muted); font-size: .68rem; }
.account-profile-card dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: .8rem; }
.account-password-form { display: grid; gap: 12px; margin-top: 16px; }
.account-password-form label { display: grid; gap: 6px; }
.account-password-form .button { justify-self: start; min-height: 48px; }

@media (max-width: 1023px) {
    .catalog-tools .search-wrap { width: 100%; }
}
@media (max-width: 640px) {
    .latest-receipt-summary { grid-template-columns: minmax(68px, auto) minmax(0, .8fr) minmax(0, 1fr) auto; }
    .latest-receipt-identify { grid-column: 2; grid-row: 1; font-size: .61rem; }
    .latest-receipt-number { grid-column: 1; grid-row: 1; }
    .latest-receipt-payment { grid-column: 1; grid-row: 2; }
    .latest-receipt-summary-total { grid-column: 2; grid-row: 2; }
    .latest-receipt-chevron { grid-column: 4; grid-row: 1 / 3; }
    .catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
    .shift-status-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
    .close-shift-action { min-height: 38px; padding: 0 9px; font-size: .66rem; }
    .account-menu-summary { display: none; }
    .account-menu > summary { padding-right: 7px; }
    .account-profile-card dl { grid-template-columns: 1fr; }
}

.super-admin-page { min-width: 320px; background: var(--bg); }
.super-topbar { position: sticky; z-index: 80; top: 0; min-height: 72px; display: flex; align-items: center; gap: 24px; padding: 10px max(20px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--line); background: rgba(16, 19, 17, .96); backdrop-filter: blur(16px); }
.super-topbar nav { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.super-topbar nav a { min-height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 10px; border-radius: 8px; color: #b7c1b8; font-size: .73rem; font-weight: 650; white-space: nowrap; }
.super-topbar nav a:hover, .super-topbar nav a[aria-current="page"] { color: var(--green); background: var(--surface-raised); }
.super-topbar .account-menu { flex: 0 0 auto; }
.super-workspace { width: min(1440px, 100%); padding-top: 26px; }
.super-workspace .admin-breadcrumb { margin-bottom: 13px; }
.super-workspace .admin-page-heading { margin-bottom: 21px; }
.super-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.super-stat-card { min-width: 0; min-height: 105px; display: grid; align-content: space-between; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); }
.super-stat-card span { color: var(--muted); font-size: .73rem; font-weight: 650; }
.super-stat-card strong { overflow: hidden; color: var(--text); font: 750 clamp(1.25rem, 2.2vw, 1.8rem) Manrope, 'DM Sans', sans-serif; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.super-content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: start; gap: 16px; }
.super-panel { min-width: 0; margin-bottom: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.super-panel > .section-head { align-items: flex-start; }
.super-panel > .section-head > a:not(.button) { font-size: .75rem; white-space: nowrap; }
.super-panel .muted { margin: 7px 0 0; font-size: .78rem; line-height: 1.55; }
.super-sales-bars { min-height: 235px; display: grid; grid-template-columns: repeat(14, minmax(28px, 1fr)); align-items: end; gap: 7px; overflow-x: auto; padding: 18px 2px 2px; }
.super-sales-bar { min-width: 28px; min-height: 195px; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 5px; }
.super-sales-bar > span { width: min(24px, 70%); height: var(--bar-height); align-self: end; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #c9ff8b, #70aa45); box-shadow: 0 0 14px #b6f36b18; }
.super-sales-bar small { color: var(--muted); font-size: .58rem; white-space: nowrap; }
.super-activity-feed { display: grid; gap: 0; margin: 3px 0 0; padding: 0; list-style: none; }
.super-activity-feed li { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.super-activity-feed li > div { min-width: 0; display: grid; gap: 4px; }
.super-activity-feed strong { color: var(--text); font-size: .76rem; text-transform: capitalize; }
.super-activity-feed span, .super-activity-feed time { color: var(--muted); font-size: .66rem; }
.super-activity-feed time { flex: 0 0 auto; white-space: nowrap; }
.super-subscription-summary .section-head { align-items: center; margin-bottom: 0; }
.super-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.super-panel-actions .button { min-height: 42px; }
.super-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0 18px; }
.super-filter-form label { min-width: min(165px, 100%); flex: 1 1 165px; display: grid; gap: 6px; color: var(--muted); font-size: .69rem; font-weight: 650; }
.super-filter-form input, .super-filter-form select { width: 100%; min-width: 0; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-raised); font-size: .75rem; }
.super-filter-form .button { min-height: 42px; }
.super-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.super-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.super-table th { padding: 12px 13px; color: var(--muted); background: var(--surface-raised); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.super-table td { padding: 12px 13px; border-top: 1px solid var(--line); color: var(--text); font-size: .74rem; vertical-align: middle; }
.super-table tr:hover td { background: #ffffff04; }
.super-table code { color: #c9d6c6; font-size: .65rem; overflow-wrap: anywhere; }
.super-status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; color: #cbd4cb; background: var(--surface-raised); font-size: .63rem; font-weight: 700; white-space: nowrap; }
.super-status.status-active { border-color: #3d6034; color: var(--green); background: #1b2b18; }
.super-status.status-trial { border-color: #705b30; color: var(--amber); background: #332919; }
.super-status.status-pending { border-color: #3b5a78; color: #9dcaff; background: #192a3b; }
.super-status.status-failed, .super-status.status-cancelled, .super-status.status-blocked { border-color: #70413d; color: var(--red); background: #321f1d; }
.super-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 15px; color: var(--muted); font-size: .7rem; }
.super-pagination span { margin-right: auto; }
.super-pagination a { min-width: 34px; min-height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); }
.super-pagination a.is-active { border-color: #536940; color: var(--green); background: #263221; }
.super-action-list { min-width: 250px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.super-action-list form { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.super-action-list .button { min-height: 34px; padding: 0 9px; font-size: .65rem; }
.super-action-list input, .super-plan-form select { min-width: 120px; min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-raised); font-size: .65rem; }
.super-business-name { min-width: 145px; display: flex; align-items: center; gap: 9px; }
.super-business-name img { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; object-fit: cover; }
.super-business-name span { display: grid; gap: 2px; }
.super-business-name strong { font-size: .74rem; }
.super-business-name small { color: var(--muted); font-size: .62rem; }
.platform-settings-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: -5px 0 22px; }
.platform-settings-nav a { min-width: 0; display: grid; gap: 5px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); text-decoration: none; transition: border-color .15s, background .15s; }
.platform-settings-nav a:hover, .platform-settings-nav a[aria-current="page"] { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); background: var(--surface-raised); }
.platform-settings-nav a[aria-current="page"] strong { color: var(--green); }
.platform-settings-nav strong { font-size: .82rem; }
.platform-settings-nav small { color: var(--muted); font-size: .67rem; line-height: 1.4; }
.platform-settings-form { display: grid; gap: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.platform-setting-group { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.platform-setting-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.platform-setting-heading h2 { margin: 0 0 4px; font-size: 1rem; }
.platform-setting-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.platform-setting-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--surface-raised); }
.platform-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 9px; }
.platform-toggle { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); cursor: pointer; }
.platform-toggle input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.platform-toggle > span { display: grid; gap: 4px; }
.platform-toggle strong { font-size: .78rem; }
.platform-toggle small, .platform-field-grid small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.platform-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.platform-field-grid label { min-width: 0; display: grid; align-content: start; gap: 6px; color: var(--text); font-size: .76rem; font-weight: 650; }
.platform-field-grid input { width: 100%; }
.platform-settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 8px; }
.platform-settings-footer p { max-width: 580px; margin: 0; font-size: .74rem; }
.super-business-filters { align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.super-business-filters label:first-child { flex: 2 1 300px; }
.super-business-filter-actions { display: flex; gap: 8px; }
.super-business-list { display: grid; gap: 10px; }
.super-business-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.super-business-card-main { min-width: 0; display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(180px, 1fr) auto; align-items: center; gap: 18px; padding: 15px 17px; }
.super-business-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.super-business-identity > img, .super-business-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; object-fit: cover; color: var(--green); background: var(--surface-raised); font-weight: 800; }
.super-business-identity h2 { margin: 0; font-size: .88rem; }
.super-business-identity > div { min-width: 0; display: grid; gap: 3px; }
.super-business-identity small, .super-business-slug { color: var(--muted); font-size: .68rem; }
.super-business-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.super-business-summary > span:not(.super-status) { display: grid; gap: 3px; }
.super-business-summary small, .super-business-facts small { color: var(--muted); font-size: .62rem; }
.super-business-summary strong { font-size: .75rem; }
.super-business-primary-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.super-business-manage { position: relative; }
.super-business-manage > summary { cursor: pointer; list-style: none; }
.super-business-manage > summary::-webkit-details-marker { display: none; }
.super-business-manage-panel { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: min(660px, calc(100vw - 40px)); padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px #0008; }
.super-business-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.super-business-facts > span { display: grid; align-content: start; gap: 5px; }
.super-business-facts strong { font-size: .72rem; }
.super-business-controls { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding-top: 14px; }
.super-business-controls h3 { margin: 0 0 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.super-business-control-list { display: grid; gap: 8px; }
.super-business-control-list form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.super-business-control-list input, .super-plan-form input, .super-plan-form select { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: .72rem; }
.super-business-control-list input { flex: 1 1 150px; }
.super-business-control-list .button, .super-plan-form .button { min-height: 38px; padding: 0 11px; font-size: .7rem; }
.super-plan-form { display: grid; gap: 7px; padding-top: 9px; }
.super-business-empty { display: grid; justify-items: center; gap: 5px; padding: 38px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.super-business-empty strong { color: var(--text); }
.super-plan-details { position: relative; }
.super-plan-details > summary { cursor: pointer; list-style: none; }
.super-plan-details > summary::-webkit-details-marker { display: none; }
.super-plan-form { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: min(290px, calc(100vw - 30px)); display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 12px 35px #0008; }
.super-plan-form input { width: 100%; }
.super-subscriptions-panel .section-head .button { flex: 0 0 auto; }
@media (max-width: 1100px) {
    .super-topbar { flex-wrap: wrap; gap: 8px 14px; }
    .super-topbar nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
    .super-topbar > .brand { margin-right: auto; }
    .super-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .super-content-grid { grid-template-columns: minmax(0, 1fr); }
    .super-business-card-main { grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) auto; gap: 12px; }
}
@media (max-width: 640px) {
    .super-topbar { position: relative; padding: 10px 12px 7px; }
    .super-topbar .brand { font-size: .78rem; }
    .super-topbar .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .super-topbar .brand small { font-size: .48rem; }
    .super-topbar .account-menu > summary { min-height: 38px; }
    .super-topbar .account-menu-popover { right: 0; }
    .super-topbar nav { gap: 2px; padding-bottom: 3px; }
    .super-topbar nav a { min-height: 36px; padding: 0 8px; font-size: .68rem; }
    .super-workspace { padding: 18px 12px 40px; }
    .platform-settings-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 16px; }
    .platform-settings-nav a { padding: 10px; }
    .platform-settings-nav small { font-size: .62rem; }
    .platform-field-grid { grid-template-columns: minmax(0, 1fr); }
    .platform-setting-group { padding: 14px; }
    .platform-settings-footer { align-items: stretch; flex-direction: column; }
    .platform-settings-footer .button { width: 100%; justify-content: center; }
    .super-business-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
    .super-business-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .super-business-card-main { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 13px; }
    .super-business-identity { grid-column: 1 / -1; }
    .super-business-summary { grid-column: 1 / -1; }
    .super-business-primary-actions { grid-column: 1 / -1; justify-content: stretch; }
    .super-business-primary-actions > form, .super-business-primary-actions > form .button { flex: 1; }
    .super-business-primary-actions > form .button { width: 100%; justify-content: center; }
    .super-business-manage-panel { position: fixed; top: 50%; right: 12px; left: 12px; width: auto; max-height: 80vh; overflow-y: auto; transform: translateY(-50%); }
    .super-business-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .super-business-controls { grid-template-columns: minmax(0, 1fr); }
    .super-workspace .admin-page-heading { margin-bottom: 15px; }
    .super-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .super-stat-card { min-height: 88px; padding: 12px; }
    .super-stat-card span { font-size: .63rem; }
    .super-stat-card strong { font-size: 1.15rem; }
    .super-panel { padding: 14px; border-radius: 12px; }
    .super-panel > .section-head, .super-subscription-summary .section-head { align-items: flex-start; flex-direction: column; }
    .super-panel-actions { width: 100%; }
    .super-panel-actions .button { flex: 1 1 auto; justify-content: center; }
    .super-sales-bars { grid-template-columns: repeat(14, minmax(26px, 1fr)); gap: 4px; }
    .super-sales-bar { min-width: 26px; }
    .super-sales-bar small { font-size: .53rem; }
    .super-filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .super-filter-form label { min-width: 0; }
    .super-filter-form label:nth-last-of-type(1) { grid-column: 1 / -1; }
    .super-filter-form .button { width: 100%; justify-content: center; }
}

.account-profile-photo { display: flex; align-items: center; gap: 18px; margin: 8px 0 22px; }
.account-avatar-frame { position: relative; width: 88px; height: 88px; flex: 0 0 88px; }
.account-avatar-frame > img, .account-avatar-frame > span { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; }
.account-avatar-frame > span, .business-logo-preview > span { color: var(--text); background: var(--surface-raised); font-size: 2rem; font-weight: 800; }
.avatar-upload-form { position: absolute; right: 0; bottom: 0; }
.account-menu-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
.admin-business-logo-form { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.admin-business-logo-form > label { flex: 1 1 260px; }
.business-logo-preview { width: 72px; height: 72px; overflow: hidden; border-radius: 15px; background: var(--surface-raised); }
.business-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.business-logo-preview > span { width: 100%; height: 100%; font-size: 1.7rem; }
.business-share-link { display: grid; gap: 9px; margin-top: 16px; }
.business-share-link > div { display: flex; gap: 10px; min-width: 0; }
.business-share-link input { min-width: 0; flex: 1 1 auto; }
.admin-category-order-form { margin-bottom: 18px; }
.admin-category-sort-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-category-sort-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: grab; }
.admin-category-sort-list li.is-dragging { opacity: .45; }
.admin-category-thumbnail { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 7px; object-fit: cover; }
.admin-category-sort-list li .muted { margin-left: auto; font-size: .78rem; }
.category-drag-handle { color: var(--muted); font-size: 1.35rem; }
.category-sort-controls { display: flex; gap: 5px; }
.category-sort-controls .button { min-width: 40px; min-height: 40px; padding: 0 8px; }
.site-nav-title { display: inline-flex; align-items: center; gap: 9px; }
.site-business-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: var(--surface); }
.admin-section > .section-head .admin-record-search { flex: 0 1 420px; width: min(100%, 420px); margin: 0; }
@media (max-width: 760px) {
    .account-profile-photo { align-items: flex-start; }
    .business-share-link > div { flex-wrap: wrap; }
    .admin-category-sort-list li > strong { min-width: 0; overflow-wrap: anywhere; }
    .admin-category-sort-list li .muted { display: none; }
    .admin-section > .section-head:has(.admin-record-search) { align-items: stretch; flex-wrap: wrap; }
    .admin-section > .section-head .admin-record-search { flex-basis: 100%; width: 100%; }
}

.checkout-confirm-dialog { width: min(460px, calc(100vw - 28px)); max-height: min(82vh, 680px); padding: 22px; border: 1px solid var(--line); border-radius: 17px; color: var(--text); background: var(--surface); box-shadow: 0 24px 80px #000b; }
.checkout-confirm-dialog::backdrop { background: #070a08c9; backdrop-filter: blur(4px); }
.checkout-confirm-dialog h2 { margin: 0 0 13px; font-size: 1.2rem; }
.checkout-confirm-dialog ul { display: grid; gap: 7px; max-height: 36vh; overflow-y: auto; margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: .82rem; }
.checkout-confirm-dialog p { margin: 8px 0; color: var(--muted); font-size: .8rem; }
.checkout-confirm-dialog .checkout-confirm-total { color: var(--green); font-size: 1.02rem; font-weight: 800; }
.checkout-confirm-dialog .dialog-actions { margin-top: 20px; }
.order-search { margin-bottom: 12px; }
.order-main { min-width: 0; flex: 1 1 240px; display: grid; gap: 4px; }
.order-item-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--text) !important; }
.order-item-summary > span { min-width: 0; overflow-wrap: anywhere; }
[data-online-order][hidden] { display: none !important; }
.room-management-list { display: grid; gap: 7px; }
.room-management-row { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.room-management-summary { min-width: 0; display: grid; grid-template-columns: 42px minmax(120px, 1fr) minmax(110px, auto) auto auto; align-items: center; gap: 10px; }
.room-management-summary > img, .room-management-placeholder { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; object-fit: cover; color: var(--green); background: var(--surface-raised); }
.room-management-name { min-width: 0; display: grid; gap: 3px; }
.room-management-name strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.room-management-name span, .room-management-rate small { color: var(--muted); font-size: .67rem; }
.room-management-rate { white-space: nowrap; font-size: .78rem; }
.room-edit-details { min-width: 0; }
.room-edit-details > summary { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); cursor: pointer; font-size: .69rem; font-weight: 700; white-space: nowrap; }
.room-edit-details[open] { grid-column: 1 / -1; }
.room-edit-details > .room-editor { margin-top: 9px; }
.room-add-collapsible { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.room-add-collapsible > summary { min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; list-style: none; cursor: pointer; }
.room-add-collapsible > summary::-webkit-details-marker { display: none; }
.room-add-collapsible > summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.room-add-collapsible > summary strong { font-size: .78rem; }
.room-add-collapsible > summary small { color: var(--muted); font-size: .68rem; }
.room-add-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #172015; background: var(--green); font-size: 1.15rem; }
.room-add-action { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.room-add-collapsible[open] > summary { border-bottom: 1px solid var(--line); }
.room-add-collapsible .room-add-form { margin: 0; border: 0; background: transparent; }
.room-management-row .room-history { grid-column: 1 / -1; }
.room-editor { min-width: 0; display: grid; gap: 13px; margin: 0; }
.room-editor > h3 { margin: 0; }
.room-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.room-editor-grid label { min-width: 0; display: grid; align-content: start; gap: 6px; }
.room-editor-grid label small { color: var(--muted); font-size: .68rem; }
.room-editor-wide { grid-column: 1 / -1; }
.room-editor-heading { min-width: 0; display: flex; align-items: center; gap: 11px; }
.room-editor-heading > div { min-width: 0; flex: 1; }
.room-editor-heading h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.room-editor-heading > span { flex: 0 0 auto; }
.room-editor-heading img { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 10px; object-fit: cover; }
.room-history { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.room-history > summary { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--text); cursor: pointer; font-size: .78rem; font-weight: 700; }
.room-history > summary span { color: var(--muted); font-size: .69rem; font-weight: 500; }
.room-history-content { display: grid; gap: 7px; padding: 0 12px 12px; }
.room-history-content h4 { margin: 8px 0 2px; font-size: .76rem; }
.room-history-content > .muted { margin: 0; font-size: .72rem; }
.room-history-row { min-width: 0; display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: var(--surface-raised); }
.room-history-row strong, .room-history-row span, .room-history-row small { min-width: 0; overflow-wrap: anywhere; font-size: .72rem; }
.room-history-row span, .room-history-row small { color: var(--muted); }
.pos-room-image { width: 100%; height: 110px; margin-bottom: 9px; border-radius: 10px; object-fit: cover; }
.public-room-image { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.public-room-amenities { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.room-unavailable-notice { padding: 10px; font-size: .75rem; }
.public-room-card .public-room-top { align-items: flex-start; }
.admin-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.admin-order-card { min-width: 0; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-order-heading, .admin-order-footer { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.admin-order-heading > div { min-width: 0; display: grid; gap: 4px; }
.admin-order-heading h3 { margin: 0; overflow-wrap: anywhere; font-size: .84rem; }
.admin-order-heading > div > span, .admin-order-footer > span { color: var(--muted); font-size: .69rem; overflow-wrap: anywhere; }
.admin-order-items { display: flex; flex-wrap: wrap; gap: 6px 11px; margin: 0; font-size: .73rem; }
.admin-order-items span { overflow-wrap: anywhere; }
.admin-order-footer strong { flex: 0 0 auto; color: var(--green); font-size: .82rem; }

@media (max-width: 640px) {
    .room-editor-grid { grid-template-columns: 1fr; }
    .room-editor-wide { grid-column: auto; }
    .room-management-summary { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
    .room-management-summary > img, .room-management-placeholder { width: 36px; height: 36px; }
    .room-management-rate { grid-column: 2; grid-row: 2; }
    .room-management-summary > .status-pill { grid-column: 3; grid-row: 1; }
    .room-edit-details { grid-column: 3; grid-row: 2; }
    .room-management-row .room-history { grid-column: 1 / -1; }
    .room-editor-heading { flex-wrap: wrap; }
    .room-editor-heading > span { margin-left: 69px; }
    .order-main { flex-basis: 100%; }
    .order-row .row-end { width: 100%; justify-content: space-between; }
    .checkout-confirm-dialog { padding: 17px; }
    .checkout-confirm-dialog .dialog-actions { position: sticky; bottom: -17px; padding: 10px 0 0; background: var(--surface); }
    .admin-order-heading { align-items: flex-start; }
    .admin-order-footer { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1024px) {
    .pos-layout { grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); gap: 20px; }
    .pos-layout .bill-card { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
}

.shift-receipts-card { margin-bottom: 12px; padding: 7px 10px; }
.latest-receipt-card { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 0; background: transparent; }
.latest-receipt-details { min-width: 0; flex: 1 1 auto; }
.latest-receipt-summary { min-height: 42px; display: grid; grid-template-columns: auto minmax(90px, 1fr) minmax(72px, auto) auto auto; align-items: center; gap: 9px; list-style: none; cursor: pointer; }
.latest-receipt-summary::-webkit-details-marker { display: none; }
.latest-receipt-summary-label, .latest-receipt-payment { color: var(--muted); font-size: .72rem; }
.latest-receipt-number { min-width: 0; overflow: hidden; color: var(--text); font-size: .79rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.latest-receipt-summary-total { color: var(--green); font-size: .86rem; white-space: nowrap; }
.latest-receipt-chevron { color: var(--muted); transition: transform .16s ease; }
.latest-receipt-details[open] .latest-receipt-chevron { transform: rotate(180deg); }
.latest-receipt-action { min-height: 36px; flex: 0 0 auto; padding: 0 10px; font-size: .67rem; }
.latest-receipt-expanded { padding: 10px 4px 4px; border-top: 1px solid var(--line); }
.latest-receipt-expanded .latest-receipt-meta { margin: 0 0 6px; }
.latest-receipt-expanded .latest-receipt-items { margin-bottom: 9px; }
.latest-receipt-card.no-receipt .latest-receipt-summary-total { color: var(--muted); }
.product-card-head { flex-wrap: wrap; gap: 5px; }
.product-low-stock { padding: 3px 6px; border-radius: 6px; color: #ffb1a8; background: #422925; font-size: .59rem; font-weight: 700; }
.variant-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; }
.variant-label { color: var(--text); font-size: .8rem; }
.variant-price { color: var(--green); white-space: nowrap; }
.variant-quantity-control { display: flex; align-items: center; gap: 5px; }
.variant-quantity-control button { width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); cursor: pointer; font-size: 1rem; }
.variant-quantity-control input { width: 50px; min-height: 34px; padding: 4px; text-align: center; }
.variant-add-button { min-height: 36px; padding: 0 10px; font-size: .68rem; }
.cart-line-main strong { white-space: normal; }
.cart-line-main small { color: var(--muted); }
.customer-toggle { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; text-align: left; font: inherit; font-size: .73rem; font-weight: 700; }
.customer-chevron { color: var(--muted); font-size: 1rem; }
.customer-toggle[aria-expanded="true"] .customer-chevron { transform: rotate(180deg); }
.customer-fields { display: grid; gap: 1px; }
.customer-fields[hidden] { display: none; }
.customer-fields textarea { min-height: 60px; }
.bill-heading-actions { display: flex; align-items: center; gap: 8px; }
.bill-sheet-close { display: none; }

@media (max-width: 1023px) {
    body.pos-cart-open { overflow: hidden; }
    .pos-layout { display: flex; flex-direction: column; gap: 14px; }
    .pos-layout .catalog { width: 100%; }
    .pos-layout .bill-card { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; margin: 0; padding: 18px 16px calc(88px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 55px #0008; transform: translateY(110%); transition: transform .22s ease; }
    .pos-layout.is-mobile-cart-open .bill-card { transform: translateY(0); }
    .pos-layout .bill-sheet-close { display: inline-flex; min-height: 38px; padding: 0 10px; font-size: .68rem; }
    .pos-layout .cart-lines { max-height: min(27vh, 220px); }
    .pos-layout.is-mobile-cart-open::after { position: fixed; z-index: 55; inset: 0; background: #050705a6; content: ""; }
    .mobile-cart-bar { z-index: 45; }
    .mobile-cart-bar.cart-open { transform: translateY(110%); }
}

@media (max-width: 640px) {
    .shift-receipts-card { margin-bottom: 9px; padding: 5px; }
    .latest-receipt-card { flex-wrap: wrap; gap: 5px; padding: 3px; }
    .latest-receipt-summary { min-height: 42px; grid-template-columns: minmax(68px, auto) minmax(0, 1fr) auto; gap: 4px 7px; }
    .latest-receipt-summary-label { display: none; }
    .latest-receipt-payment { grid-column: 1; grid-row: 2; font-size: .63rem; }
    .latest-receipt-number { grid-column: 1 / 3; grid-row: 1; }
    .latest-receipt-summary-total { grid-column: 2; grid-row: 2; font-size: .78rem; }
    .latest-receipt-chevron { grid-column: 3; grid-row: 1 / 3; justify-self: end; }
    .latest-receipt-action { min-height: 34px; flex: 1 1 70px; padding: 0 7px; }
    .variant-option { grid-template-columns: minmax(0, 1fr) auto; }
    .variant-option .variant-details { grid-column: 1; grid-row: 1; }
    .variant-option .variant-price { grid-column: 2; grid-row: 1; }
    .variant-option .variant-quantity-control { grid-column: 1; grid-row: 2; }
    .variant-option .variant-add-button { grid-column: 2; grid-row: 2; }
}

.shift-workspace { padding-top: 24px; }
.shift-filters { display: grid; grid-template-columns: repeat(4, minmax(125px, 1fr)) auto; align-items: end; gap: 10px; margin: 0 0 18px; padding: 12px 14px; }
.shift-filters label { min-width: 0; gap: 5px; margin: 0; font-size: .68rem; }
.shift-filters input, .shift-filters select { min-height: 39px; padding: 8px 10px; font-size: .75rem; }
.shift-filter-actions { display: flex; align-items: center; gap: 7px; }
.shift-filter-actions .button { min-height: 39px; padding: 0 12px; white-space: nowrap; }
.shift-overview { margin: 0 0 23px; }
.shift-overview-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 11px; }
.shift-overview-head .eyebrow { margin-bottom: 4px; }
.shift-overview-head h2 { font-size: 1.05rem; }
.shift-overview-period { color: var(--muted); font-size: .72rem; }
.shift-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.shift-summary-card { position: relative; min-width: 0; min-height: 118px; display: grid; align-content: space-between; gap: 12px; overflow: hidden; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(140deg, var(--surface-raised), var(--surface)); box-shadow: 0 8px 22px #00000012; }
.shift-summary-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--metric-accent, var(--green)); content: ""; }
.shift-summary-top { display: flex; align-items: center; gap: 9px; }
.shift-summary-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--metric-accent, var(--green)) 35%, transparent); border-radius: 9px; color: var(--metric-accent, var(--green)); background: color-mix(in srgb, var(--metric-accent, var(--green)) 12%, transparent); font-size: .76rem; font-weight: 800; }
.shift-summary-top > span:not(.shift-summary-icon) { min-width: 0; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .025em; }
.shift-summary-card strong { color: var(--text); font: 700 1.12rem Manrope, sans-serif; overflow-wrap: anywhere; }
.shift-summary-card small { color: var(--muted); font-size: .63rem; }
.shift-metric-count { --metric-accent: #65c9b2; }
.shift-metric-sales { --metric-accent: #b6f36b; }
.shift-metric-cash { --metric-accent: #6bcf8d; }
.shift-metric-airtel { --metric-accent: #f16b66; }
.shift-metric-mpamba { --metric-accent: #72a8ff; }
.shift-metric-pool { --metric-accent: #bc91ff; }
.shift-metric-difference { --metric-accent: #f1bd5d; }
.shift-section { margin: 20px 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 26px #00000010; }
.shift-section .section-head { margin: 0 0 12px; }
.shift-section .section-head .eyebrow { margin-bottom: 4px; }
.shift-section .section-head h2 { font-size: 1.05rem; }
.shift-register-heading { align-items: center; }
.shift-register-actions { display: flex; align-items: center; gap: 12px; }
.shift-view-toggle { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.shift-view-toggle .button { min-height: 34px; padding: 5px 11px; font-size: .72rem; }
.shift-view-toggle .is-active { border-color: var(--green); color: var(--text); background: var(--surface-2); }
.shift-table-wrap { margin-top: 0; }
.shift-table { min-width: 1680px; }
.shift-table.transaction-table { min-width: 1200px; }
.shift-table td { vertical-align: top; }
.shift-table td a { font-weight: 700; }
.shift-table .shift-items { max-width: 310px; white-space: normal; }
.shift-table .shift-note { max-width: 220px; white-space: normal; overflow-wrap: anywhere; }
.shift-table-wrap[data-shift-layout="list"] { overflow: visible; border: 0; background: transparent; }
.shift-table-wrap[data-shift-layout="list"] .shift-table { display: block; width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; }
.shift-table-wrap[data-shift-layout="list"] .shift-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.shift-table-wrap[data-shift-layout="list"] .shift-table tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.shift-table-wrap[data-shift-layout="list"] .shift-table tr { display: grid; grid-template-columns: 72px minmax(130px, 1.4fr) minmax(85px, .7fr) minmax(80px, .7fr) minmax(120px, 1fr) minmax(100px, .8fr) auto; align-items: center; gap: 0 12px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.shift-table-wrap[data-shift-layout="list"] .shift-table td { min-width: 0; display: block; padding: 5px 0; border: 0; overflow-wrap: anywhere; }
.shift-table-wrap[data-shift-layout="list"] .shift-table td::before { content: none; }
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(4),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(5),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(7),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(8),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(9),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(12),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(13),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(14),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(15),
.shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(16) { display: none; }
.shift-table-wrap[data-shift-layout="list"] .shift-table td.shift-row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.shift-table-wrap[data-shift-layout="list"] .shift-row-actions .button { min-height: 34px; margin: 0; padding: 5px 9px; font-size: .68rem; }
.shift-table-wrap[data-shift-layout="list"] .shift-table td[colspan] { display: block; grid-column: 1 / -1; }
.shift-row-actions { min-width: 160px; }
.shift-row-actions .button { display: inline-flex; margin: 0 4px 5px 0; }
.shift-negative { color: #ff887d !important; font-weight: 700; }
.shift-positive { color: #b6f36b !important; font-weight: 700; }
.shift-status-open { border-color: #785f2c; color: #ffcf70; background: #30291c; }
.shift-status-closed { border-color: #3c6740; color: #b6f36b; background: #1d2b1d; }
.shift-back-link { margin: 0 0 18px; }
.shift-detail-heading { margin-top: 8px; }
.shift-report-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 8px; }
.shift-report-actions .button, .shift-back-link { min-height: 48px; }
.shift-detail-summary { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.shift-search { width: min(440px, 100%); margin: 14px 0 10px; }
.shift-stock-entry { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.shift-stock-entry .section-head { margin: 0; }
.shift-stock-entry .section-head h3 { margin: 0; }
.shift-stock-entry > .muted { margin: 0; }
.shift-stock-entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 430px; overflow-y: auto; }
.shift-stock-entry-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.shift-stock-entry-row > span { min-width: 0; display: grid; gap: 3px; }
.shift-stock-entry-row strong { overflow: hidden; color: var(--text); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.shift-stock-entry-row small { color: var(--muted); font-size: .67rem; }
.shift-stock-entry-row input { width: 110px; min-width: 90px; min-height: 40px; }
:root[data-theme="light"] .shift-summary-card,
:root[data-theme="light"] .shift-section,
:root[data-theme="light"] .shift-stock-entry,
:root[data-theme="light"] .shift-stock-entry-row { background: #fff; }
:root[data-theme="light"] .shift-summary-top > span:not(.shift-summary-icon),
:root[data-theme="light"] .shift-stock-entry-row small { color: #657266; }
:root[data-theme="light"] .shift-summary-card strong,
:root[data-theme="light"] .shift-stock-entry-row strong { color: #202a21; }
:root[data-theme="light"] .shift-negative { color: #b42318 !important; }
:root[data-theme="light"] .shift-positive { color: #35722d !important; }
:root[data-theme="light"] .shift-status-open { border-color: #ebd69d; color: #76530c; background: #fff8df; }
:root[data-theme="light"] .shift-status-closed { border-color: #c6dfbd; color: #34712e; background: #eef7e9; }
:root[data-theme="light"] .shift-table-wrap { border-color: #d3ddd0; background: #fff; }
:root[data-theme="light"] .shift-table th { color: #536253; border-color: #dce4d9; background: #f0f4ed; }
:root[data-theme="light"] .shift-table td { color: #344236; border-color: #e0e7dd; }

@media (max-width: 1250px) {
    .shift-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    .shift-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shift-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .shift-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .shift-filter-actions .button { flex: 1; justify-content: center; }
    .shift-overview-head { align-items: start; flex-direction: column; gap: 4px; }
    .shift-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .shift-summary-card { min-height: 105px; padding: 11px 12px; }
    .shift-summary-card strong { font-size: .95rem; }
    .shift-stock-entry-list { grid-template-columns: 1fr; }
    .shift-report-actions .button { flex: 1; justify-content: center; }
    .shift-section { padding: 13px; }
    .shift-register-heading { align-items: flex-start; }
    .shift-register-actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table tr { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 3px 9px; padding: 7px 4px; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(3) { display: none; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(6) { grid-column: 3; grid-row: 1; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(10) { grid-column: 1 / 2; grid-row: 2; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table td:nth-child(11) { grid-column: 2; grid-row: 2; }
    .shift-table-wrap[data-shift-layout="list"] .shift-table td.shift-row-actions { grid-column: 3; grid-row: 2; }
    .admin-user-list-item { align-items: flex-start; }
    .admin-user-list-main { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    .admin-user-list-status { grid-column: 2; grid-row: 1; }
    .admin-user-last-login { grid-column: 1; }
    .admin-user-edit { grid-column: 1 / -1; }
    .admin-user-list-actions { align-items: flex-end; flex-direction: column; }
    .admin-user-list-actions > form .button { min-height: 32px; padding: 4px 7px; font-size: .62rem; }
}

@media print {
    .shift-page, .shift-page * { visibility: visible !important; color: #111 !important; }
    .shift-page .topbar,
    .shift-page .shift-filters,
    .shift-page .shift-back-link,
    .shift-page .shift-report-actions,
    .shift-page .shift-search { display: none !important; }
    .shift-page .workspace { max-width: none; padding: 0; }
    .shift-page .shift-section { break-inside: auto; margin: 12px 0; background: #fff !important; box-shadow: none; }
    .shift-page .admin-table-wrap { overflow: visible; border: 1px solid #bbb; }
    .shift-page .admin-table { min-width: 0 !important; }
    .shift-page .admin-table th, .shift-page .admin-table td { color: #111 !important; border-color: #bbb !important; }
    .shift-page .admin-table th { background: #eee !important; }
    .shift-page .shift-summary-card { border-color: #bbb; background: #fff !important; box-shadow: none; }
    .shift-page .admin-table tr { break-inside: avoid; }
}

@media print {
    body:not(.shift-page) * { visibility: hidden !important; }
    #receipt-dialog, #receipt-dialog *, #public-receipt, #public-receipt * { visibility: visible !important; }
    #receipt-dialog { position: absolute; inset: 0; display: block; width: 100%; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; border-radius: 0; color: #111; background: #fff; box-shadow: none; }
    #public-receipt { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; color: #111; background: #fff; box-shadow: none; }
    #receipt-dialog::backdrop { display: none; }
    .receipt-close, .receipt-actions, .public-receipt-actions, .receipt-hint { display: none !important; }
    #public-receipt, #public-receipt * { color: #111 !important; }
    .receipt-content h2, .receipt-meta strong, .receipt-line, .receipt-line strong, .receipt-grand-total,
    .receipt-payment, .receipt-subtitle, .public-receipt-header h1, .public-receipt-header .muted,
    .receipt-address, .public-receipt-meta span, .public-receipt-meta strong, .public-receipt-table th,
    .public-receipt-table td, .public-receipt-total span, .public-receipt-total strong, .public-receipt-thanks { color: #111 !important; }
    .receipt-meta, .receipt-grand-total { border-color: #999 !important; }
    .receipt-grand-total strong { color: #111 !important; }
    .public-receipt-header, .public-receipt-meta, .public-receipt-table-wrap, .public-receipt-table td,
    .public-receipt-grand-total, .public-receipt-thanks { border-color: #999 !important; }
    .public-receipt-grand-total strong { color: #111 !important; }
}

.admin-tabs { max-width: 100%; overflow-x: auto; scroll-margin-top: 16px; }
.admin-section[id] { scroll-margin-top: 18px; }
.admin-settings-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-user-add-form { display: grid; gap: 14px; }
.admin-user-add-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.admin-user-add-grid label { min-width: 0; }
.admin-user-add-grid .admin-check-label { margin: 0 0 3px; }
.admin-user-add-form > .button { justify-self: start; }
.admin-users-table { min-width: 1050px; }
.admin-users-table td select { min-width: 115px; min-height: 38px; padding: 7px 25px 7px 9px; font-size: .73rem; }
.admin-users-table td .admin-user-active { min-height: 36px; display: flex; align-items: center; margin: 0; }
.admin-users-table td .admin-user-active input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--green); }
.admin-user-actions { min-width: 280px; white-space: normal; }
.admin-user-actions > button, .admin-user-actions > details, .admin-user-actions > form { display: inline-flex; vertical-align: middle; margin: 2px; }
.admin-user-actions form { align-items: center; gap: 6px; }
.admin-user-actions .button { min-height: 36px; padding: 0 9px; font-size: .66rem; }
.admin-reset-password { position: relative; }
.admin-reset-password > summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.admin-reset-password > summary::-webkit-details-marker { display: none; }
.admin-reset-password form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 7px; margin-top: 7px; }
.admin-reset-password input { min-width: 145px; min-height: 36px; padding: 6px 8px; font-size: .68rem; }
.button.danger { border-color: #70443e; color: #ffb0a7; background: #352522; }
.button.danger:hover { border-color: #985e54; color: #ffd1ca; background: #432b27; }
.owner-readonly-notice { border-color: #75602d; color: #ffe0a0; background: #30291c; }
.owner-readonly-notice strong { margin-right: 5px; }
.owner-workspace { padding-top: 30px; }
.owner-workspace .welcome-row { margin-bottom: 20px; }
.owner-pos-disabled { flex: 0 0 auto; }
.owner-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.owner-metric { min-width: 0; display: grid; align-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: 0 8px 22px #00000012; }
.owner-metric > span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.owner-metric > strong { color: var(--text); font: 700 1.16rem Manrope, sans-serif; overflow-wrap: anywhere; }
.owner-metric > small { color: var(--muted); font-size: .65rem; }
.owner-metric-primary { border-color: #45523c; }
.owner-metric-primary > strong { color: var(--green); }
.owner-metric-alert { border-color: #70443e; background: linear-gradient(145deg, #342421, var(--surface)); }
.owner-metric-alert > strong { color: #ff9a90; }
.owner-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 22px; }
.owner-shortcuts .button { min-height: 42px; }
.owner-shortcut-count { color: var(--muted); font-size: .67rem; font-weight: 500; }
.owner-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.owner-panel { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 26px #00000010; }
.owner-panel .section-head { margin-bottom: 9px; }
.owner-panel .section-head h2 { font-size: 1.02rem; }
.owner-panel .section-head .text-link { flex: 0 0 auto; font-size: .7rem; }
.owner-list-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.owner-list-row:last-child { border-bottom: 0; }
.owner-list-row > div:first-child { min-width: 0; display: grid; gap: 4px; }
.owner-list-row strong { font-size: .73rem; }
.owner-list-row small { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.owner-list-row .status-pill { flex: 0 0 auto; }
.owner-list-row a, a.owner-list-row:hover { color: var(--text); }
.owner-list-value, .owner-list-end > strong { flex: 0 0 auto; color: var(--text); font-size: .72rem; }
.owner-list-end { display: flex; align-items: center; gap: 8px; }
.owner-shift-link:hover, .owner-receipt-link:hover { color: var(--green); }
.owner-receipts { grid-column: 1 / -1; }
.owner-room-readonly { display: grid; justify-items: start; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.owner-room-readonly strong { color: var(--muted); font-size: .75rem; }

:root[data-theme="light"] .owner-metric,
:root[data-theme="light"] .owner-panel,
:root[data-theme="light"] .owner-room-readonly { border-color: #d3ddd0; background: #fff; box-shadow: 0 8px 22px #2430210b; }
:root[data-theme="light"] .owner-metric > span,
:root[data-theme="light"] .owner-metric > small,
:root[data-theme="light"] .owner-list-row small,
:root[data-theme="light"] .owner-room-readonly strong { color: #657266; }
:root[data-theme="light"] .owner-metric > strong,
:root[data-theme="light"] .owner-list-row,
:root[data-theme="light"] .owner-list-value,
:root[data-theme="light"] .owner-list-end > strong { color: #202a21; }
:root[data-theme="light"] .owner-metric-primary > strong { color: #42682a; }
:root[data-theme="light"] .owner-metric-alert { border-color: #e4c2bd; background: #fff8f6; }
:root[data-theme="light"] .owner-metric-alert > strong { color: #b42318; }
:root[data-theme="light"] .owner-readonly-notice { border-color: #e5d39e; color: #76530c; background: #fff8df; }
:root[data-theme="light"] .button.danger { border-color: #e6c6c2; color: #9c2820; background: #fff4f2; }
:root[data-theme="light"] .owner-page .stock-alert { border-color: #efb3ae; color: #9e2520; background: #fff0ee; }

.product-card-featured { width: 100%; height: 126px; display: block; overflow: hidden; margin-bottom: 10px; border-radius: 10px; background: #121613; }
.product-card-featured img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-category-icon-image { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; object-fit: cover; }

.catalog-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.scan-barcode-button { min-height: 48px; white-space: nowrap; }
.product-icon.has-product-image { overflow: hidden; padding: 0; background: #151915; }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.barcode-cell { min-width: 230px; }
.barcode-cell input { width: 150px; }
.barcode-cell .button { margin: 3px 2px 3px 0; }
.barcode-save-button { font-size: .64rem !important; }
.input-action-row { display: flex; align-items: center; gap: 7px; }
.input-action-row input { min-width: 0; }
.input-action-row .button { flex: 0 0 auto; }
.scanner-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.scanner-form-actions small { flex: 1 1 220px; }
.scanner-dialog { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: min(92dvh, 920px); overflow: auto; overscroll-behavior: contain; padding: 0; border: 1px solid #435143; border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: 0 25px 90px #000b; }
.scanner-dialog::backdrop { background: #050705d9; backdrop-filter: blur(5px); }
.scanner-shell { display: grid; gap: 14px; padding: 20px; }
.scanner-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; background: var(--surface); }
.scanner-header .eyebrow { margin-bottom: 4px; }
.scanner-close { min-height: 48px; }
.scanner-status { min-height: 24px; margin: 0; color: var(--muted); font-size: .84rem; }
.scanner-preview { min-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #070a08; }
#barcode-reader { width: 100%; min-height: 260px; border: 0 !important; }
#barcode-reader video { width: 100% !important; max-height: 48vh; object-fit: cover; }
#barcode-reader__scan_region { min-height: 250px; }
#barcode-reader__dashboard_section_csr span { color: #eef4ea; }
#ocr-camera { width: 100%; max-height: 54vh; display: block; object-fit: contain; }
.scanner-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.scanner-toolbar .button { min-height: 48px; }
.scanner-result, .scanner-ocr-result { display: grid; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.scanner-result strong { color: var(--red); }
.scanner-result p { margin: 0; }
.scanner-fallback { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 4px; }
.scanner-fallback label:last-child { grid-column: 1 / -1; }
.scanner-fallback .button { min-height: 48px; }
.scanner-fallback input[type="file"] { min-height: 44px; padding: 7px; }
.scanner-ocr-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.scanner-ocr-fields .button { min-height: 43px; }
.scanner-ocr-result textarea { min-height: 130px; }
.scanner-ocr-result > .muted { margin: 0; }
:root[data-theme="light"] .scanner-dialog { border-color: #cbd6c9; color: #202a21; background: #fff; }
:root[data-theme="light"] .scanner-preview { border-color: #cbd6c9; }
:root[data-theme="light"] .scanner-result,
:root[data-theme="light"] .scanner-ocr-result { border-color: #d7dfd4; background: #f7f9f5; }
:root[data-theme="light"] .scanner-result strong { color: #a63d35; }
:root[data-theme="light"] .toast { border-color: #b7cba9; color: #263522; background: #edf5e6; box-shadow: 0 10px 35px #24302126; }
:root[data-theme="light"] .toast.toast-error { border-color: #e0b5b0; color: #762a24; background: #fff0ee; }

.admin-color-inputs { display: flex; gap: 8px; }
.admin-color-inputs input[type="color"] { width: 58px; min-width: 58px; height: 46px; padding: 4px; }
.admin-color-inputs input[type="text"] { min-width: 0; }
.branding-live-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.branding-live-preview > .eyebrow { grid-column: 1 / -1; margin: 0; }
.branding-preview-block { min-height: 84px; display: grid; align-content: center; gap: 5px; padding: 14px; border-left: 3px solid var(--brand); border-radius: 9px; background: var(--surface-raised); }
.branding-preview-block strong { color: var(--brand); }
.branding-preview-block small { color: var(--muted); }
.branding-preview-block img { max-width: 90px; max-height: 38px; object-fit: contain; }
.admin-category-records { display: grid; gap: 10px; }
.admin-category-record { display: flex; align-items: end; gap: 10px; }
.admin-category-edit-form { flex: 1; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(110px, .7fr) minmax(180px, 1.1fr) auto auto; align-items: end; gap: 10px; }
.admin-category-edit-form .admin-category-thumbnail { display: block; margin-top: 6px; }
.admin-category-record > form:last-child { flex: 0 0 auto; }
.shop-closed-panel { width: min(680px, calc(100% - 32px)); margin: 56px auto; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.store-min-order-message:empty { display: none; }
.login-brand { justify-content: center; flex-wrap: wrap; margin-bottom: 20px; color: var(--brand); text-align: center; }
.login-brand img { width: 48px; height: 48px; object-fit: contain; }
.login-brand small { width: 100%; color: var(--muted); }

@media (max-width: 760px) {
    .branding-live-preview { grid-template-columns: 1fr; }
    .admin-category-record { align-items: stretch; flex-direction: column; }
    .admin-category-edit-form { grid-template-columns: 1fr 1fr; }
    .admin-category-edit-form button { min-height: 44px; }
}

@media (max-width: 1250px) {
    .owner-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-user-add-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .catalog-section-head { align-items: stretch; flex-direction: column; }
    .catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .catalog-tools .search-wrap { width: 100%; }
    .scanner-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
    .scanner-shell { min-height: 100%; align-content: start; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); }
    .scanner-preview { min-height: min(42vh, 390px); }
    #barcode-reader { min-height: min(42vh, 390px); }
    #barcode-reader video { max-height: 42vh; }
    #barcode-reader__scan_region { min-height: min(40vh, 370px); }
    .scanner-fallback { grid-template-columns: 1fr; }
    .scanner-fallback label:last-child { grid-column: auto; }
    .scanner-ocr-fields { grid-template-columns: 1fr; }
    .barcode-cell { min-width: 260px; }
    .owner-workspace { padding-top: 22px; }
    .owner-workspace .welcome-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .owner-pos-disabled { max-width: 100%; white-space: normal; }
    .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .owner-metric { min-height: 105px; padding: 12px; }
    .owner-metric > strong { font-size: .98rem; }
    .owner-shortcuts .button { flex: 1 1 calc(50% - 8px); }
    .owner-dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
    .owner-receipts { grid-column: auto; }
    .owner-panel { padding: 14px; }
    .admin-user-add-grid { grid-template-columns: 1fr; }
    .admin-user-add-form > .button { width: 100%; }
    .admin-tabs { width: 100%; }
}

/* Multi-page Admin workspace */
.admin-shell { min-height: 100vh; padding-bottom: 0; }
.admin-sidebar { position: fixed; z-index: 45; inset: 0 auto 0 0; display: flex; width: 260px; flex-direction: column; padding: 14px 10px 12px; border-right: 1px solid var(--line); background: var(--surface); transition: width .18s ease; }
.admin-brand-block { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; border-bottom: 1px solid var(--line); }
.admin-brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: #101311; background: var(--green); font-weight: 900; text-decoration: none; }
.admin-brand-copy { min-width: 0; display: grid; gap: 3px; }
.admin-brand-copy strong, .admin-brand-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand-copy strong { color: var(--text); font-size: .82rem; }
.admin-brand-copy span { color: var(--muted); font-size: .68rem; }
.admin-collapse-button { min-width: 36px; min-height: 36px; margin-left: auto; border: 0; border-radius: 9px; color: var(--text); background: transparent; cursor: pointer; }
.admin-collapse-button:hover { background: var(--surface-2); }
.admin-plan-status { display: grid; gap: 4px; padding: 7px 9px; color: var(--text); font-size: .72rem; }
.admin-plan-status > span { width: fit-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; }
.admin-plan-status small { color: var(--muted); }
.admin-sidebar-nav { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.admin-menu-search { min-height: 44px; display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.admin-menu-search input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; outline: 0; box-shadow: none; appearance: none; background: transparent; }
.admin-menu-items { display: grid; gap: 1px; overflow-y: auto; }
.admin-menu-link { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-left: 3px solid transparent; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .77rem; }
.admin-menu-link[hidden] { display: none !important; }
.admin-menu-link:hover { color: var(--text); background: var(--surface-2); }
.admin-menu-link.is-active { border-left-color: var(--green); color: var(--text); background: var(--surface-2); font-weight: 700; }
.admin-menu-icon { width: 22px; flex: 0 0 22px; text-align: center; font-size: 1.08rem; }
.admin-menu-label { white-space: nowrap; }
.admin-sidebar-user { display: grid; gap: 4px; padding: 12px 9px 2px; border-top: 1px solid var(--line); font-size: .72rem; }
.admin-sidebar-user strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-user span { color: var(--muted); }
.admin-sidebar-user a { width: fit-content; min-height: 40px; display: flex; align-items: center; color: var(--muted); }
.admin-main-shell { min-height: 100vh; margin-left: 260px; transition: margin-left .18s ease; }
.admin-page-content { width: min(100%, 1500px); max-width: none; margin: 0; padding: 26px clamp(18px, 3vw, 42px) 48px; }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 2px 0 16px; color: var(--muted); font-size: .72rem; }
.admin-breadcrumb a { color: var(--muted); text-decoration: none; }
.admin-breadcrumb strong { color: var(--text); font-weight: 600; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.admin-page-heading h1 { margin: 0; }
.admin-back-button { min-height: 48px; }
.admin-page-content > .notice.success { position: fixed; z-index: 70; top: 16px; right: 18px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 12px 34px #0005; }
.admin-mobile-bar, .admin-bottom-nav, .admin-more-overlay { display: none; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin-metric-card { min-height: 110px; display: grid; align-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-metric-card span { color: var(--muted); font-size: .76rem; }
.admin-metric-card strong { color: var(--text); font-size: 1.7rem; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.admin-settings-tabs { display: flex; gap: 7px; margin: 0 0 17px; overflow-x: auto; }
.admin-settings-tabs a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.admin-settings-tabs a.is-active { border-color: var(--green); color: var(--text); background: var(--surface-2); }
.admin-settings-panel { display: block; margin-top: 16px; }
.admin-settings-panel > .muted { margin: 0 0 16px; }
.admin-settings-panel > .admin-settings-form { width: 100%; box-sizing: border-box; }
.admin-smtp-test-form { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.admin-smtp-test-form { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-smtp-test-form .muted { font-size: .75rem; }
.admin-smtp-password { display: flex; gap: 8px; }
.admin-smtp-password input { min-width: 0; flex: 1; }
.admin-category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-category-list span { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.admin-empty-state { padding: 14px; }
.admin-sidebar-collapsed .admin-sidebar { width: 72px; }
.admin-sidebar-collapsed .admin-main-shell { margin-left: 72px; }
.admin-sidebar-collapsed .admin-brand-copy, .admin-sidebar-collapsed .admin-plan-status, .admin-sidebar-collapsed .admin-menu-search,
.admin-sidebar-collapsed .admin-menu-label, .admin-sidebar-collapsed .admin-sidebar-user strong,
.admin-sidebar-collapsed .admin-sidebar-user span, .admin-sidebar-collapsed .admin-sidebar-user a { display: none; }
.admin-sidebar-collapsed .admin-collapse-button { transform: rotate(180deg); }
.admin-sidebar-collapsed .admin-menu-link { justify-content: center; padding: 0; }
.admin-sidebar-collapsed .admin-sidebar-user { min-height: 48px; justify-items: center; }

@media (max-width: 1023px) {
    .admin-sidebar { display: none; }
    .admin-main-shell { min-height: 100vh; margin-left: 0; }
    .admin-mobile-bar { position: sticky; z-index: 40; top: 0; display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
    .admin-hamburger { width: 48px; height: 48px; border: 0; border-radius: 10px; color: var(--text); background: transparent; font-size: 1.25rem; }
    .admin-mobile-brand { overflow: hidden; color: var(--text); font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
    .admin-mobile-pos { min-height: 48px; display: inline-flex; align-items: center; }
    .admin-page-content { padding: 18px 14px calc(88px + env(safe-area-inset-bottom)); }
    .admin-bottom-nav { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
    .admin-bottom-nav a, .admin-bottom-nav button { min-width: 0; min-height: 54px; display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-decoration: none; font: inherit; font-size: .62rem; }
    .admin-bottom-nav span { font-size: 1.05rem; }
    .admin-bottom-nav .is-active { color: var(--text); background: var(--surface-2); }
    .admin-more-overlay { position: fixed; z-index: 80; inset: 0; display: none; background: #0009; }
    .admin-more-overlay.is-open { display: block; }
    .admin-more-sheet { width: 100%; height: 100%; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); background: var(--bg); }
    .admin-more-head { min-height: 50px; display: flex; align-items: center; justify-content: space-between; color: var(--text); font-size: 1.1rem; }
    .admin-more-head button { width: 48px; height: 48px; border: 0; color: var(--text); background: transparent; font-size: 1.7rem; }
    .admin-more-sheet .admin-menu-search { flex: 0 0 48px; margin: 8px 0 12px; }
    .admin-more-sheet .admin-sidebar-nav { overflow-y: auto; }
    .admin-more-sheet .admin-menu-items { gap: 5px; }
    .admin-more-sheet .admin-menu-link { min-height: 58px; border-left-width: 4px; border-radius: 11px; background: var(--surface); font-size: .9rem; }
    .admin-menu-open { overflow: hidden; }
    .admin-settings-tabs { margin-right: -14px; }
    .admin-smtp-test-form { align-items: flex-start; flex-direction: column; }
}
.admin-brand-mark img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }

/* Keep Admin tables readable without creating viewport-level horizontal scrolling. */
.admin-page, .admin-main-shell, .admin-page-content, .admin-page-content * { min-width: 0; overflow-wrap: anywhere; }
.admin-page { max-width: 100%; overflow-x: clip; }
.admin-main-shell, .admin-page-content { max-width: 100%; }
.admin-page .admin-table-wrap { max-width: 100%; overflow: visible; border: 0; background: transparent; }
.admin-page .admin-table, .admin-page .admin-users-table, .admin-page .admin-products-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
}
.admin-page .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.admin-page .admin-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 12px;
}
.admin-page .admin-table tr {
    min-width: 0;
    display: grid;
    align-content: start;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.admin-page .admin-table td {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(76px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.admin-page .admin-table td:last-child { border-bottom: 0; }
.admin-page .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
}
.admin-page .admin-table td[colspan] { display: block; grid-column: 1 / -1; }
.admin-page .admin-table td[colspan]::before { content: none; }
.admin-page .admin-table td input, .admin-page .admin-table td select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-page .admin-table td form { min-width: 0; }
.admin-page .admin-table .button { max-width: 100%; white-space: normal; }
.admin-page .barcode-cell { grid-template-columns: minmax(76px, .7fr) minmax(0, 1.3fr); }
.admin-page .barcode-cell input, .admin-page .barcode-cell button { grid-column: 2; }
.admin-page .admin-user-actions { min-width: 0; }
.admin-page .admin-user-actions > button, .admin-page .admin-user-actions > details,
.admin-page .admin-user-actions > form { display: flex; flex-wrap: wrap; }
.admin-page .admin-user-actions details form { flex-wrap: wrap; }
.admin-page .admin-user-add-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.admin-access-fields {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.admin-access-fields legend { padding: 0 5px; color: var(--muted); font-size: .76rem; }
.admin-access-fields legend.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.admin-access-fields label { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; }
.admin-access-fields input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.admin-access-fields.compact-access { gap: 3px 8px; padding: 4px; border: 0; }
.admin-access-fields.compact-access label { min-height: 30px; font-size: .68rem; }
.admin-settings-tabs { flex-wrap: wrap; overflow: visible; }
.admin-settings-tabs a { white-space: normal; }
.admin-product-view-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.admin-product-view-toolbar .is-active { border-color: var(--green); color: var(--text); background: var(--surface-2); }
.admin-view-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.admin-view-toggle .is-active { border-color: var(--green); color: var(--text); background: var(--surface-2); }
.admin-view-toggle button { min-height: 42px; }
.admin-page [data-admin-view-content][hidden] { display: none !important; }
.admin-record-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.admin-record-card { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.admin-record-card h2 { margin: 0; font-size: .92rem; }
.admin-plans-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; margin: 16px 0 24px; }
.admin-plan-card-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-plan-card-heading h2 { min-width: 0; overflow-wrap: anywhere; }

.check-16 { width: 16px; height: 16px; min-width: 16px; min-height: 16px; accent-color: #1a7f4a; margin: 0; flex-shrink: 0; }
.check-card { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.btn-small { min-height: 34px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.user-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-page .user-actions { min-width: 320px; flex-wrap: nowrap; white-space: nowrap; }
.user-actions > button, .user-actions > details, .user-actions > form { display: inline-flex; flex: 0 0 auto; align-items: center; }
.user-actions .button, .user-actions summary.button { min-width: 110px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; font-size: 13px; line-height: 1.4; white-space: nowrap; writing-mode: horizontal-tb; }
.user-actions details form { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.admin-page .admin-table td[data-label="Actions"] { min-width: 320px; white-space: nowrap; }
.admin-page .admin-user-actions input { width: auto; min-width: 0; }
.module-selection-actions { display: flex; gap: 12px; margin-top: 8px; }
.currency-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.currency-summary-card { display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.currency-summary-card span { color: var(--muted); font-size: .75rem; }
.currency-summary-card strong { font-size: 1.2rem; }
.currency-code-badge { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.currency-state-pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.currency-state-pill.is-active { color: #b6f36b; border-color: #59723e; }
.currency-state-pill.is-default { color: #ffcd70; border-color: #755e30; }
.currency-search { max-width: 360px; margin-bottom: 14px; }
.currency-form-card { margin-bottom: 20px; }
.business-currency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.business-currency-card { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.business-currency-card .currency-label { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.business-currency-card .currency-default-label { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.currency-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.currency-edit-grid .wide { grid-column: 1 / -1; }
.admin-currency-actions { min-width: 190px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-currency-actions form { display: inline-flex; }
.admin-shift-summary { margin: 14px 0 18px; }
.admin-shift-list-wrap { overflow-x: auto; }
.admin-shift-list-wrap table { min-width: 900px; }
.admin-shift-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.admin-shift-page-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-shift-page-numbers a, .admin-shift-page-numbers span { min-width: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.admin-shift-page-numbers .is-current { color: var(--green); border-color: var(--green); }
.admin-page .admin-access-fields .check-16 { width: 16px; height: 16px; min-width: 16px; min-height: 16px; }

@media (max-width: 680px) {
    .currency-edit-grid { grid-template-columns: minmax(0, 1fr); }
    .currency-edit-grid .wide { grid-column: auto; }
    .admin-page .admin-user-actions { min-width: 320px; }
    .admin-page .admin-table td[data-label="Actions"] { min-width: 320px; }
}
.admin-heading-actions { display: flex; align-items: center; gap: 8px; }
.help-button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; font-size: 12px; white-space: nowrap; }
.help-button > span { width: 15px; height: 15px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; }
.help-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px max(16px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.help-workspace { width: min(1440px, 100%); margin: 0 auto; padding: 22px 24px 54px; }
.help-search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.help-search { width: min(680px, 100%); min-height: 48px; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.help-search > span { font-size: 1.4rem; }
.help-search input { width: 0; min-width: 0; min-height: 38px; flex: 1 1 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: var(--surface-raised); }
.help-search input:focus { border-color: #8fac70; box-shadow: 0 0 0 3px #b6f36b16; }
.help-layout { display: grid; grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) minmax(150px, 190px); align-items: start; gap: 22px; }
.help-sidebar, .help-toc { min-width: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.help-mobile-drawer summary { display: none; }
.help-sidebar nav, .help-nav-group { display: grid; gap: 5px; }
.help-nav-group + .help-nav-group { margin-top: 18px; }
.help-nav-group h2 { margin: 0 0 4px; color: var(--muted); font: 700 .68rem 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.help-article-link { display: block; padding: 8px 9px; border-radius: 8px; color: #c6d0c6; font-size: .82rem; }
.help-article-link:hover, .help-article-link.is-active { color: var(--green); background: var(--surface-soft); }
.help-article { min-width: 0; padding: 24px clamp(16px, 3vw, 38px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.help-article > h1 { margin-bottom: 24px; }
.help-section { scroll-margin-top: 18px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.help-section + .help-section { padding-top: 22px; }
.help-section:last-of-type { border-bottom: 0; }
.help-section h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.help-section h3 { margin: 18px 0 8px; }
.help-section-body { color: #d3dbd2; font-size: .91rem; line-height: 1.7; }
.help-section-body p { margin: 0 0 12px; }
.help-section-body ul, .help-section-body ol { padding-left: 23px; }
.help-section-body li + li { margin-top: 6px; }
.help-section-body code { padding: 2px 5px; border-radius: 4px; color: var(--green); background: #101511; overflow-wrap: anywhere; }
.help-section-body pre { max-width: 100%; overflow-x: auto; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #101511; }
.help-section-body pre code { padding: 0; }
.help-anchor { opacity: 0; font-size: .78rem; }
.help-section h2:hover .help-anchor, .help-anchor:focus { opacity: 1; }
.help-toc { display: grid; gap: 9px; }
.help-toc > strong { font-size: .82rem; }
.help-toc nav { display: grid; gap: 8px; }
.help-toc a { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.help-toc a:hover { color: var(--green); }
.help-no-results { margin: 0 0 18px; padding: 12px; border: 1px solid #755e30; border-radius: 9px; color: #ffcd70; }
.help-section[hidden], .help-article-link[hidden], .help-nav-group[hidden] { display: none !important; }
.admin-shift-summary { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.admin-page .shift-filters { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.shift-filter-actions { display: flex; align-items: center; gap: 8px; }
.admin-page .admin-table td[data-label="Actions"] input { width: auto; max-width: none; }
.admin-page .admin-table td[data-label="Actions"] .button,
.admin-page .admin-table td[data-label="Actions"] summary.button { min-width: 110px; max-width: none; white-space: nowrap; writing-mode: horizontal-tb; }
@media (max-width: 980px) {
    .help-layout { grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); }
    .help-sidebar { grid-column: 1 / -1; position: static; max-height: none; }
    .help-mobile-drawer summary { display: block; cursor: pointer; color: var(--green); font-weight: 700; }
    .help-mobile-drawer:not([open]) nav { display: none; }
    .help-mobile-drawer nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
    .help-toc { top: 10px; }
}
@media (max-width: 680px) {
    .help-topbar { padding: 9px 12px; }
    .help-workspace { padding: 14px 12px 40px; }
    .help-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .help-article { padding: 18px 15px; }
    .help-toc { position: static; order: -1; max-height: none; }
    .help-toc nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .help-sidebar { grid-column: auto; }
    .admin-heading-actions { flex-wrap: wrap; }
    .admin-page-heading { align-items: flex-start; }
}
.admin-plan-status { flex: 0 0 auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .63rem; font-weight: 750; }
.admin-plan-status.is-active { border-color: #3d6034; color: var(--green); background: #1b2b18; }
.admin-plan-status.is-inactive { border-color: #70413d; color: var(--red); background: #321f1d; }
.admin-plans-grid > .admin-record-card { min-width: 0; height: 100%; }
.admin-plans-grid .admin-inline-edit { margin: 0; }
.admin-plans-grid .admin-inline-edit .button { min-height: 40px; }
.admin-record-card dl { display: grid; gap: 6px; margin: 0; }
.admin-record-card dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.admin-record-card dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-record-card dt { color: var(--muted); font-size: .69rem; font-weight: 700; }
.admin-record-card dd { min-width: 0; margin: 0; font-size: .77rem; }
.admin-product-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-product-card { min-width: 0; display: grid; align-content: start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-product-card-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.admin-product-card-heading img, .admin-product-card-image-placeholder { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; border-radius: 11px; object-fit: cover; background: var(--surface-2); }
.admin-product-card-image-placeholder { color: var(--green); font-size: 1.7rem; font-weight: 800; }
.admin-product-card-heading h3 { margin: 0 0 5px; overflow-wrap: anywhere; }
.admin-product-card-heading span, .admin-product-card-variants small { color: var(--muted); font-size: .75rem; }
.admin-product-card-variants { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-product-card-variants li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.admin-product-card-variants li > span { overflow-wrap: anywhere; }
.admin-product-card-variants small { grid-column: 1 / -1; }
.admin-product-card-edit, .admin-product-card-add-variant { min-width: 0; }
.admin-product-card-edit > summary, .admin-product-card-add-variant > summary { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 44px; list-style: none; cursor: pointer; }
.admin-product-card-edit > summary::-webkit-details-marker, .admin-product-card-add-variant > summary::-webkit-details-marker { display: none; }
.admin-product-card details form { display: grid; gap: 10px; margin-top: 10px; padding: 11px; }
.admin-category-add-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.admin-category-add-form label { min-width: min(100%, 260px); flex: 1; }
.admin-user-records[data-admin-layout-mode="list"] .admin-table tbody { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.admin-user-records[data-admin-layout-mode="list"] .admin-table tr { padding: 4px 10px; border-radius: 6px; }
.admin-user-records[data-admin-layout-mode="list"] .admin-table td { padding: 5px 0; }
.admin-user-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.admin-user-list-item { min-width: 0; display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(110px, .7fr) minmax(120px, .8fr) minmax(112px, .7fr) auto; align-items: center; gap: 12px; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.admin-user-list-main { min-width: 0; display: contents; }
.admin-user-list-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.admin-user-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #536940; border-radius: 50%; color: var(--green); background: var(--surface-raised); font-size: .78rem; font-weight: 800; }
.admin-user-list-identity > div { min-width: 0; display: grid; gap: 3px; }
.admin-user-list-identity strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-list-identity span, .admin-user-last-login { color: var(--muted); font-size: .68rem; }
.admin-user-list-status { display: flex; align-items: center; gap: 7px; }
.admin-user-list-status .status-pill { padding: 4px 8px; font-size: .66rem; }
.admin-user-state { color: var(--muted); font-size: .68rem; }
.admin-user-state.is-active { color: var(--green); }
.admin-user-last-login { display: grid; gap: 3px; }
.admin-user-last-login small { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-user-edit { position: relative; }
.admin-user-edit > summary { color: var(--green); font-size: .7rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.admin-user-edit-form { display: grid; gap: 9px; min-width: min(420px, calc(100vw - 48px)); margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.admin-user-edit-form .admin-user-role-field { display: grid; gap: 5px; font-size: .7rem; }
.admin-user-edit-form .admin-user-role-field select { min-height: 38px; }
.admin-user-edit-form .admin-user-active { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; }
.admin-user-edit-form .admin-access-fields { padding: 8px; }
.admin-user-edit-form .check-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 5px; }
.admin-user-edit-form .check-card { padding: 6px 8px; font-size: .68rem; }
.admin-user-list-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.admin-user-list-actions form { display: flex; align-items: center; gap: 6px; }
.admin-user-list-actions details form { flex-wrap: wrap; margin-top: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.admin-user-list-actions details input { width: 180px; min-height: 34px; }
.admin-user-add-form .module-selection-actions { display: flex; gap: 6px; margin-top: 6px; }
.admin-user-add-form .module-selection-actions button { min-height: 26px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: .65rem; line-height: 1; cursor: pointer; }
.admin-user-add-form .module-selection-actions button:hover { color: var(--text); border-color: var(--green); }
.admin-user-page-heading { align-items: end; }
.admin-user-page-heading > div:first-child > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.admin-user-page-heading .admin-record-search { width: min(360px, 42%); min-width: 230px; margin: 0; }
.admin-user-create { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-user-create > summary { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; list-style: none; cursor: pointer; }
.admin-user-create > summary::-webkit-details-marker { display: none; }
.admin-user-create-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: #172015; background: var(--green); font-size: 1.25rem; font-weight: 600; }
.admin-user-create > summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.admin-user-create > summary strong { font-size: .8rem; }
.admin-user-create > summary small { color: var(--muted); font-size: .68rem; }
.admin-user-create-action { margin-left: auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: .7rem; font-weight: 700; }
.admin-user-create[open] > summary { border-bottom: 1px solid var(--line); }
.admin-user-create .admin-user-add-form { margin: 0; padding: 16px; border: 0; background: transparent; }
.admin-user-create .admin-user-add-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.admin-user-create .admin-access-fields { display: block; }
.admin-user-create .admin-access-fields .check-grid { margin-top: 8px; }
.admin-user-create .admin-access-fields > p { margin: 8px 0 0; }
.admin-user-list-actions { justify-content: flex-end; }
.admin-user-list-actions .button { min-height: 32px; padding: 5px 9px; font-size: .65rem; }
.admin-settings-tabs { gap: 6px; margin-bottom: 12px; }
.admin-settings-tabs a { min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: .75rem; }
.admin-settings-panel { margin-top: 12px; }
.admin-record-search input { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.admin-record-search input:focus { border-color: #8fac70; box-shadow: 0 0 0 3px #b6f36b16; }
@media (max-width: 760px) {
    .admin-user-page-heading { align-items: stretch; }
    .admin-user-page-heading .admin-record-search { width: 100%; min-width: 0; }
    .admin-user-list-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 11px 4px; }
    .admin-user-list-identity { grid-column: 1; grid-row: 1; }
    .admin-user-list-status { grid-column: 2; grid-row: 1; flex-wrap: wrap; justify-content: flex-end; }
    .admin-user-last-login { grid-column: 1; grid-row: 2; }
    .admin-user-edit { grid-column: 1 / -1; grid-row: 3; }
    .admin-user-list-actions { grid-column: 2; grid-row: 2; align-items: center; flex-direction: row; flex-wrap: wrap; }
    .admin-user-list-actions .button { min-height: 30px; padding: 4px 7px; font-size: .61rem; }
    .admin-user-create-action { font-size: .65rem; }
}
.admin-category-table { margin-top: 0; }
.admin-category-list[data-admin-view-content="cards"] { margin-top: 2px; }
.admin-plan-pricing { margin-top: 24px; }
.admin-plan-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.admin-plan-pricing-grid[data-admin-layout-mode="list"] { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.admin-plan-pricing-card { min-width: 0; display: grid; gap: 12px; }
.admin-plan-editor { position: relative; z-index: 0; width: 100%; margin: 0 0 28px; }
.admin-plan-editor + .admin-plans-grid { position: relative; z-index: 0; clear: both; margin-top: 0; }
.admin-plan-pricing-card h3 { margin: 0; }
.admin-plan-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-plan-pricing-grid[data-admin-layout-mode="list"] .admin-plan-pricing-card { grid-template-columns: minmax(100px, .7fr) minmax(0, 2fr) auto auto; align-items: end; padding: 10px; }
.admin-plan-pricing-grid[data-admin-layout-mode="list"] .admin-plan-price-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-billing-section { display: grid; gap: 12px; }
.admin-billing-section > h2, .admin-billing-current h2 { margin: 0; }
.admin-billing-current, .admin-billing-price-grid { margin-bottom: 20px; }
.admin-billing-current { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.admin-billing-current dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; }
.admin-billing-current dl > div { display: grid; gap: 3px; }
.admin-billing-current dt { color: var(--muted); font-size: .69rem; }
.admin-billing-current dd { margin: 0; font-size: .8rem; }
.admin-billing-form { max-width: 650px; display: grid; gap: 12px; }
.admin-billing-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 16px; }
.admin-page .admin-record-list,
.admin-page [data-admin-view-content="list"] .admin-products-table,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table {
    display: table;
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}
.admin-page .admin-record-list thead,
.admin-page [data-admin-view-content="list"] .admin-products-table thead,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}
.admin-page .admin-record-list tbody,
.admin-page [data-admin-view-content="list"] .admin-products-table tbody,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table tbody {
    display: table-row-group;
}
.admin-page .admin-record-list tr,
.admin-page [data-admin-view-content="list"] .admin-products-table tr,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table tr {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.admin-page .admin-record-list td,
.admin-page [data-admin-view-content="list"] .admin-products-table td,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table td {
    display: table-cell;
    padding: 8px 7px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.admin-page .admin-record-list td::before,
.admin-page [data-admin-view-content="list"] .admin-products-table td::before,
.admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table td::before { content: none; }

@media screen {
    .shift-page { max-width: 100%; overflow-x: clip; }
    .shift-page .workspace, .shift-page .shift-section, .shift-page .shift-table-wrap { max-width: 100%; min-width: 0; }
    .shift-page .shift-table-wrap { overflow: visible; border: 0; background: transparent; }
    .shift-page .shift-table { display: block; width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; }
    .shift-page .shift-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
    .shift-page .shift-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 12px; }
    .shift-page .shift-table tr { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
    .shift-page .shift-table td { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
    .shift-page .shift-table td::before { content: attr(data-label); color: var(--muted); font-size: .67rem; font-weight: 700; }
    .shift-page .shift-table td[colspan] { display: block; grid-column: 1 / -1; }
    .shift-page .shift-table td[colspan]::before { content: none; }
    .shift-page .shift-table td.shift-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
    .shift-page .shift-table td.shift-row-actions::before { flex-basis: 100%; }
    .shift-page .shift-table tr[hidden], .shift-page .shift-table .shift-no-search-results[hidden] { display: none !important; }
}
@media (max-width: 640px) {
    .admin-page-content { padding-right: 12px; padding-left: 12px; }
    .admin-page .admin-table tbody { grid-template-columns: minmax(0, 1fr); }
    .admin-page .admin-table tr { padding-right: 10px; padding-left: 10px; }
    .admin-page .admin-table td { grid-template-columns: minmax(68px, .65fr) minmax(0, 1.35fr); gap: 6px; }
    .admin-page .barcode-cell { grid-template-columns: minmax(68px, .65fr) minmax(0, 1.35fr); }
}
@media (max-width: 900px) {
    .admin-plan-pricing-grid[data-admin-layout-mode="list"] .admin-plan-pricing-card { grid-template-columns: minmax(0, 1fr); }
    .admin-plan-pricing-grid[data-admin-layout-mode="list"] .admin-plan-price-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-page .admin-record-list,
    .admin-page [data-admin-view-content="list"] .admin-products-table,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table {
        display: block;
    }
    .admin-page .admin-record-list thead,
    .admin-page [data-admin-view-content="list"] .admin-products-table thead,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
    }
    .admin-page .admin-record-list tbody,
    .admin-page [data-admin-view-content="list"] .admin-products-table tbody,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }
    .admin-page .admin-record-list tr,
    .admin-page [data-admin-view-content="list"] .admin-products-table tr,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table tr {
        display: grid;
        padding: 4px 9px;
        border-bottom: 1px solid var(--line);
    }
    .admin-page .admin-record-list td,
    .admin-page [data-admin-view-content="list"] .admin-products-table td,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table td {
        display: grid;
        grid-template-columns: minmax(76px, .7fr) minmax(0, 1.3fr);
        gap: 8px;
        padding: 5px 0;
    }
    .admin-page .admin-record-list td::before,
    .admin-page [data-admin-view-content="list"] .admin-products-table td::before,
    .admin-page .admin-user-records[data-admin-layout-mode="list"] .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .68rem;
        font-weight: 700;
    }
}
@media screen and (max-width: 640px) {
    .shift-page .shift-table tbody { grid-template-columns: minmax(0, 1fr); }
    .shift-page .shift-table tr { grid-template-columns: minmax(0, 1fr); }
    .shift-page .shift-table td { grid-template-columns: minmax(88px, .75fr) minmax(0, 1.25fr); }
}

.kitchen-topbar { position: sticky; top: 0; z-index: 20; }
.kitchen-header-actions { display: flex; align-items: center; gap: 12px; }
.kitchen-connection { color: var(--muted); font-size: .75rem; }
.kitchen-ready-badge { display: inline-flex; min-height: 20px; align-items: center; margin-left: 4px; padding: 2px 6px; border-radius: 999px; color: #17200f; background: #b6f36b; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.kitchen-ready-badge:not([hidden]) { border: 0; cursor: pointer; }
.kitchen-ready-badge[hidden] { display: none !important; }
.kitchen-ready-dialog { width: min(560px, calc(100vw - 28px)); max-height: 85vh; overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: 0 25px 90px #000b; }
.kitchen-ready-dialog::backdrop { background: #050705bd; backdrop-filter: blur(4px); }
.kitchen-ready-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kitchen-ready-row > div { min-width: 0; display: grid; gap: 4px; }
.kitchen-ready-row > div strong { font-size: .95rem; }
.kitchen-ready-row > div span, .kitchen-ready-row > div small { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.kitchen-ready-row .button { flex: 0 0 auto; }
.demo-banner { box-sizing: border-box; width: 100%; max-width: 100%; position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; padding: 9px 14px; color: #3a2800; background: #ffe36a; border-bottom: 1px solid #d5ab22; font-size: .78rem; line-height: 1.4; text-align: left; }
.demo-banner strong, .demo-banner > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.demo-banner strong { font-weight: 900; }
.demo-banner form { margin: 0; }
.demo-banner button { min-height: 36px; padding: 6px 12px; color: #3a2800; background: #fff5c3; border: 1px solid #aa8010; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.admin-shell > .demo-banner { width: calc(100% - 260px); margin-left: 260px; }
.admin-sidebar-collapsed.admin-shell > .demo-banner { width: calc(100% - 72px); margin-left: 72px; }
@media (max-width: 1023px) {
    .admin-shell > .demo-banner { width: 100%; margin-left: 0; }
}
.kitchen-page { min-height: 100vh; }
.kitchen-workspace { max-width: 1500px; padding-top: 30px; }
.kitchen-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.kitchen-page-heading h1 { margin-bottom: 5px; }
.kitchen-page-heading .muted { margin: 0; }
.kitchen-counts { display: flex; flex-wrap: wrap; gap: 9px; }
.kitchen-counts > span { min-width: 112px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.kitchen-counts strong { color: var(--text); font-size: 1.15rem; }
.kitchen-count-new { border-color: #765523 !important; }
.kitchen-count-new strong { color: #ffc75f; }
.kitchen-count-preparing { border-color: #315776 !important; }
.kitchen-count-preparing strong { color: #76c1ff; }
.kitchen-count-ready { border-color: #3a6839 !important; }
.kitchen-count-ready strong { color: #90e47b; }
.kitchen-error { margin-bottom: 16px; }
.kitchen-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 16px; }
.kitchen-order-card { min-width: 0; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-top: 5px solid #d59a38; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 30px #00000017; }
.kitchen-status-preparing { border-top-color: #4099da; }
.kitchen-status-ready { border-top-color: #60b84b; }
.kitchen-order-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kitchen-order-label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.kitchen-order-card h2 { margin: 4px 0 0; font: 800 2rem Manrope, sans-serif; letter-spacing: -.05em; }
.kitchen-status-pill { padding: 7px 10px; border-radius: 999px; color: #ffd584; background: #55401f; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.kitchen-status-preparing .kitchen-status-pill { color: #a7d9ff; background: #203d54; }
.kitchen-status-ready .kitchen-status-pill { color: #b7f4a8; background: #284723; }
.kitchen-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 13px 0; color: var(--muted); font-size: .77rem; }
.kitchen-table { padding: 5px 8px; border-radius: 7px; color: var(--text); background: var(--surface-soft); font-weight: 700; }
.kitchen-order-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kitchen-order-items li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 1rem; overflow-wrap: anywhere; }
.kitchen-item-qty { margin-right: 5px; color: var(--green); font-size: 1.2rem; }
.kitchen-order-items li small { color: var(--muted); font-size: .85rem; }
.kitchen-order-items .kitchen-item-note { padding-left: 28px; }
.kitchen-order-notes { margin: 8px 0 0; padding: 11px; border-radius: 9px; color: var(--text); background: var(--surface-soft); font-size: .82rem; overflow-wrap: anywhere; }
.kitchen-order-card footer { margin-top: 15px; }
.kitchen-order-card footer .button { width: 100%; min-height: 52px; font-size: .92rem; }
.kitchen-empty { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
    .kitchen-topbar { align-items: center; padding: 10px 14px; }
    .kitchen-header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .kitchen-header-actions .text-link { font-size: .7rem; }
    .kitchen-connection { display: none; }
    .kitchen-workspace { padding: 22px 14px 40px; }
    .kitchen-page-heading { align-items: flex-start; flex-direction: column; }
    .kitchen-counts { width: 100%; }
    .kitchen-counts > span { min-width: 0; flex: 1 1 90px; padding: 9px 7px; font-size: .7rem; }
    .kitchen-order-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .kitchen-order-card { padding: 16px; }
}

@media print {
    body.kitchen-page { background: #fff !important; color: #000 !important; }
    body.kitchen-page > * { display: none !important; }
    body.kitchen-page .kitchen-workspace { display: block !important; width: 100%; max-width: none; padding: 0; }
    body.kitchen-page .kitchen-page-heading,
    body.kitchen-page .kitchen-counts,
    body.kitchen-page .kitchen-error,
    body.kitchen-page .kitchen-order-card:not(.kitchen-print-target) { display: none !important; }
    body.kitchen-page .kitchen-order-grid { display: block; }
    body.kitchen-page .kitchen-order-card.kitchen-print-target { display: block !important; break-inside: avoid; border: 1px solid #888; color: #000; background: #fff; box-shadow: none; }
    body.kitchen-page .kitchen-order-card h2,
    body.kitchen-page .kitchen-order-items li,
    body.kitchen-page .kitchen-order-items li small,
    body.kitchen-page .kitchen-order-notes { color: #000; }
    body.kitchen-page .kitchen-order-card footer { display: none; }
}

.pos-business-logo-mark { overflow: hidden; border: 1px solid #ffffff20; color: #172015; background: #e8eee6; }
.pos-business-logo-mark img { width: 100%; height: 100%; padding: 3px; border-radius: inherit; object-fit: contain; }
.pos-brand-copy { min-width: 0; }
.pos-brand-copy small { white-space: nowrap; }
.catalog-tools .pos-product-search { width: 300px; min-width: 240px; flex: 0 1 300px; }
.pos-product-search > span,
.admin-products-heading .admin-record-search > span,
.admin-sales-heading .admin-record-search > span { flex: 0 0 auto; align-self: center; line-height: 1; }
.admin-products-heading { align-items: center; flex-wrap: nowrap; gap: 16px; }
.admin-products-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
.admin-page .admin-section > .admin-products-heading > .admin-record-search { width: min(360px, 42%); min-width: 230px; min-height: 42px; flex: 0 1 360px; margin: 0; }
.admin-products-heading .admin-record-search input { min-height: 38px; }
.admin-sales-heading { align-items: center; flex-wrap: nowrap; gap: 16px; }
.admin-sales-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
.admin-page .admin-section > .admin-sales-heading > .admin-record-search { width: min(380px, 48%); min-width: 240px; min-height: 42px; flex: 0 1 380px; margin: 0; }
.admin-sales-heading .admin-record-search input { min-height: 38px; }
.admin-sales-list-wrap { max-width: 100%; overflow: hidden; border-top: 1px solid var(--line); }
.admin-sales-list { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-sales-list th,
.admin-sales-list td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.admin-sales-list th { color: var(--muted); font-size: .64rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.admin-sales-list td { color: var(--text); font-size: .75rem; }
.admin-sales-list th:nth-child(1) { width: 16%; }
.admin-sales-list th:nth-child(2) { width: 15%; }
.admin-sales-list th:nth-child(3) { width: 19%; }
.admin-sales-list th:nth-child(4) { width: 8%; }
.admin-sales-list th:nth-child(5) { width: 14%; }
.admin-sales-list th:nth-child(6) { width: 15%; }
.admin-sales-list th:nth-child(7) { width: 13%; }
.admin-sale-receipt { font-weight: 750; }
.admin-sales-list .status-pill { white-space: normal; }
.kitchen-counts > button { min-width: 112px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); font: inherit; font-size: .8rem; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.kitchen-counts > button strong { color: var(--text); font-size: 1.15rem; }
.kitchen-counts > button:hover { border-color: #9ab17d; }
.kitchen-counts > button.is-selected { box-shadow: inset 0 0 0 1px currentColor; color: var(--text); background: var(--surface-raised); }
.kitchen-counts > .kitchen-count-new strong { color: #ffc75f; }
.kitchen-counts > .kitchen-count-preparing strong { color: #76c1ff; }
.kitchen-counts > .kitchen-count-ready strong { color: #90e47b; }
.kitchen-counts > .kitchen-count-all { border-color: #52634d; }
@media (max-width: 1023px) {
    .catalog-tools .pos-product-search { width: min(300px, 48vw); min-width: 200px; flex: 0 1 300px; }
    .admin-page .admin-section > .admin-products-heading > .admin-record-search { width: min(340px, 44%); min-width: 220px; }
}
@media (max-width: 760px) {
    .admin-page .admin-section > .admin-products-heading,
    .admin-page .admin-section > .admin-sales-heading { align-items: center !important; flex-wrap: wrap !important; }
    .admin-page .admin-section > .admin-products-heading > div:first-child,
    .admin-page .admin-section > .admin-sales-heading > div:first-child { flex: 1 1 100%; }
    .admin-page .admin-section > .admin-products-heading > .admin-record-search,
    .admin-page .admin-section > .admin-sales-heading > .admin-record-search { width: 100%; min-width: 0; min-height: 42px; flex: 1 1 100%; }
    .admin-sales-list { table-layout: auto; }
    .admin-sales-list thead { display: none; }
    .admin-sales-list tbody { display: grid; }
    .admin-sales-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
    .admin-sales-list tbody td { min-width: 0; display: flex; align-items: baseline; gap: 6px; padding: 2px 0; border: 0; font-size: .7rem; }
    .admin-sales-list tbody td::before { flex: 0 0 auto; color: var(--muted); content: attr(data-label) ":"; font-size: .62rem; }
    .admin-sales-list tbody td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); }
    .admin-sales-list tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
    .admin-sales-list tbody td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
    .admin-sales-list tbody td:nth-child(4) { grid-column: 1; grid-row: 4; }
    .admin-sales-list tbody td:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: end; }
    .admin-sales-list tbody td:nth-child(6) { grid-column: 1; grid-row: 5; }
    .admin-sales-list tbody td:nth-child(7) { grid-column: 2; grid-row: 5; justify-self: end; }
    .kitchen-counts { width: 100%; }
    .kitchen-counts > button { min-width: 0; flex: 1 1 72px; gap: 4px; padding: 8px 6px; font-size: .68rem; }
    .kitchen-counts > button strong { font-size: 1rem; }
    .pos-brand-copy small { font-size: .42rem; letter-spacing: .035em; }
    .catalog-tools .pos-product-search { width: min(100%, 320px); min-width: 0; flex: 0 1 320px; margin-left: auto; }
}
@media (max-width: 1023px) {
    .admin-page .admin-more-sheet .admin-menu-search {
        min-height: 48px;
        flex: 0 0 48px;
        margin: 8px 0 12px;
    }
}

/* Interaction updates */
.theme-toggle { display: none !important; }
html:not(.app-ready)::before,
.global-progress.is-active::before {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    background-size: 45% 100%;
    animation: global-progress-run 1.1s ease-in-out infinite;
    content: "";
}
.app-ready::before { content: none; }
.global-progress { position: fixed; z-index: 9999; top: 3px; left: 50%; display: none; align-items: center; gap: 7px; transform: translateX(-50%); pointer-events: none; }
.global-progress.is-active { display: flex; }
.global-progress > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #b6f36b88; animation: global-progress-pulse .8s ease-in-out infinite alternate; }
.global-progress > strong { padding: 3px 8px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--text); background: var(--surface); font-size: .62rem; font-weight: 650; }
@keyframes global-progress-run { from { background-position: -50% 0; } to { background-position: 250% 0; } }
@keyframes global-progress-pulse { to { opacity: .35; transform: scale(.7); } }
.product-kitchen-badge { padding: 3px 7px; border: 1px solid #73552b; border-radius: 6px; color: #ffcf7e; background: #3c2c19; font-size: .59rem; font-weight: 750; white-space: nowrap; }
.latest-receipt-identify { min-width: 0; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.latest-receipt-summary { grid-template-columns: auto minmax(90px, .75fr) minmax(120px, 1.4fr) minmax(72px, auto) auto auto; }
.shift-status-actions { display: flex; align-items: center; gap: 10px; }
.close-shift-action { min-height: 42px; }
.close-shift-action[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.kitchen-orders-pos-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.kitchen-order-pos-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 13px; background: var(--surface); }
.kitchen-order-pos-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kitchen-order-pos-card header strong { font-size: 1rem; }
.kitchen-order-pos-card header span { color: var(--amber); font-size: .72rem; text-transform: capitalize; }
.kitchen-order-pos-card p { margin: 8px 0; color: var(--muted); font-size: .76rem; }
.kitchen-order-pos-card ul { display: grid; gap: 6px; margin: 10px 0; padding-left: 18px; font-size: .82rem; }
.kitchen-order-pos-card.kitchen-status-preparing { border-left-color: #77b8ff; }
.kitchen-order-pos-card.kitchen-status-preparing header span { color: #77b8ff; }
.kitchen-order-pos-card.kitchen-status-ready { border-left-color: var(--green); }
.kitchen-order-pos-card.kitchen-status-ready header span { color: var(--green); }
.account-menu { position: relative; z-index: 90; min-width: 0; }
.account-menu > summary { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: #15200d; background: var(--green); font-size: .8rem; font-weight: 800; }
.account-menu-summary { min-width: 0; display: grid; gap: 1px; }
.account-menu-summary strong { max-width: 155px; overflow: hidden; color: var(--text); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-summary small { color: var(--muted); font-size: .6rem; }
.account-menu-chevron { color: var(--muted); font-size: .8rem; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-popover { position: absolute; z-index: 95; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 24px)); display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 18px 48px #0009; }
.account-menu-popover strong { color: var(--text); font-size: .82rem; }
.account-menu-popover > span { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.account-menu-popover a { min-height: 42px; display: flex; align-items: center; padding: 0 9px; border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: .76rem; }
.account-menu-popover a:hover { background: var(--surface-soft); }
.admin-sidebar-user .account-menu { width: 100%; }
.admin-sidebar-user .account-menu > summary { border: 0; padding-left: 0; background: transparent; }
.admin-sidebar-user .account-menu-popover { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; }
.admin-record-search { width: min(100%, 480px); min-height: 48px; display: flex !important; align-items: center; gap: 9px; margin: 12px 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); }
.admin-record-search > span { flex: 0 0 auto; font-size: 1.2rem; }
.admin-record-search { flex-direction: row; flex-wrap: nowrap; }
.admin-record-search input { width: 0; min-width: 0; min-height: 38px; flex: 1 1 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: var(--surface-raised); }
.admin-record-search input:focus { border-color: #8fac70; box-shadow: 0 0 0 3px #b6f36b16; }
.admin-menu-search { min-width: 0; overflow: hidden; background: var(--surface-raised); }
.admin-menu-search > span { flex: 0 0 auto; line-height: 1; }
.admin-menu-search input { min-width: 0; height: 40px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; appearance: none; }
.admin-page [data-admin-record][hidden] { display: none !important; }
.admin-search-empty { padding: 12px; }
.account-workspace { max-width: 760px; }
.account-profile-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-profile-card dl > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.account-profile-card dt { color: var(--muted); font-size: .68rem; }
.account-profile-card dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: .8rem; }
.account-password-form { display: grid; gap: 12px; margin-top: 16px; }
.account-password-form label { display: grid; gap: 6px; }
.account-password-form .button { justify-self: start; min-height: 48px; }

@media (min-width: 1024px) {
    .catalog-tools { flex: 1 1 auto; min-width: 0; }
    .catalog-tools .search-wrap { width: min(360px, 100%); min-width: 0; flex: 1 1 auto; }
    .pos-layout .bill-card { max-height: none; overflow: visible; }
    .pos-layout .cart-lines { max-height: none; overflow: visible; }
    .pos-layout .bill-card.customer-details-open { max-height: calc(100vh - 28px); overflow-y: auto; overflow-x: hidden; }
}
@media (max-width: 1023px) {
    .catalog-tools { flex: 1 1 auto; min-width: 0; }
    .catalog-tools .search-wrap { width: 100%; min-width: 0; flex: 1 1 auto; }
}
@media (max-width: 640px) {
    .latest-receipt-summary { grid-template-columns: minmax(58px, auto) minmax(0, 1fr) auto; }
    .latest-receipt-summary-label { display: none; }
    .latest-receipt-identify { grid-column: 2; grid-row: 1; font-size: .61rem; }
    .latest-receipt-number { grid-column: 1; grid-row: 1; }
    .latest-receipt-payment { grid-column: 1; grid-row: 2; }
    .latest-receipt-summary-total { grid-column: 2; grid-row: 2; }
    .latest-receipt-chevron { grid-column: 3; grid-row: 1 / 3; }
    .catalog-section-head { align-items: stretch; flex-wrap: wrap; }
    .catalog-section-head > div:first-child { flex: 1 1 100%; }
    .catalog-tools { width: 100%; }
    .shift-status-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
    .close-shift-action { min-height: 38px; padding: 0 9px; font-size: .66rem; }
    .account-menu-summary { display: none; }
    .account-menu > summary { padding-right: 7px; }
    .account-profile-card dl { grid-template-columns: 1fr; }
}
.module-dot {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: .25rem;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
}
.module-dot.is-on { background: #dff3c8; color: #29551b; }
.module-dot.is-off { background: #eee; color: #777; }
