.pos-toast {
    position: fixed;
    top: 64px;
    right: 1.15rem;
    z-index: 60;
    min-width: 260px;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    animation: pos-toast-in 0.18s ease;
}

.pos-toast.ok {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.pos-toast.error {
    background: #fde8e6;
    color: #b42318;
    border: 1px solid #f7c1bc;
}

@keyframes pos-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pos-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    color: #212121;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    overflow: hidden;
}

.pos-top {
    position: relative;
    z-index: 30;
    height: 48px;
    background: var(--et-header-gold, #00008b);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.pos-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.pos-nav {
    position: relative;
    z-index: 31;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
}

.pos-nav > a,
.pos-nav > button,
.pos-nav-menu > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.3rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}

.pos-nav-icon {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.pos-nav-caret {
    margin-left: 0.1rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.pos-nav > a:hover,
.pos-nav > a.active,
.pos-nav > button:hover,
.pos-nav-menu > button:hover,
.pos-nav-menu.open > button,
.pos-nav-menu.active > button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.pos-nav-menu {
    position: relative;
}

.pos-nav-back {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.pos-nav-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.pos-nav-drop a,
.pos-nav-drop button {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-sizing: border-box;
    width: 100%;
    color: #1f2937;
    text-decoration: none;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
}

.pos-nav-drop a:hover,
.pos-nav-drop button:hover,
.pos-nav-drop a.active {
    color: var(--et-header-gold, #00008b);
    background: #eef2ff;
}

.pos-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pos-company-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.pos-session {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--et-header-gold-deep, #000070);
    border-radius: 999px;
    padding: 0.15rem 0.55rem 0.15rem 0.25rem;
}

.pos-session i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: var(--et-header-gold, #00008b);
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
}

.pos-spacer { flex: 1; }

.pos-systray {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.pos-note-wrap {
    position: relative;
}

.pos-note-back {
    position: fixed;
    inset: 0;
    z-index: 19;
}

.pos-note-btn {
    position: relative;
    z-index: 21;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.pos-note-btn:hover,
.pos-note-wrap:has(.pos-note-panel) .pos-note-btn {
    background: rgba(255, 255, 255, 0.14);
}

.pos-note-btn svg {
    width: 18px;
    height: 18px;
}

.pos-note-btn i {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.pos-note-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #fff;
    color: #111;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 0.55rem 0.35rem;
    z-index: 21;
}

.pos-note-panel strong {
    display: block;
    padding: 0.35rem 0.7rem 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.pos-note-panel button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.86rem;
    color: #111;
    cursor: pointer;
}

.pos-note-panel button:hover {
    background: #f3f4f6;
}

.pos-note-empty {
    margin: 0.15rem 0.7rem 0.55rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.pos-chat-panel { width: 320px; }

.pos-chat-people button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pos-chat-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.pos-chat-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pos-chat-head button {
    width: auto;
    padding: 0.2rem 0.45rem;
    font-size: 1.1rem;
}

.pos-chat-head strong {
    padding: 0.35rem 0;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
    font-size: 0.92rem;
}

.pos-chat-log {
    max-height: 260px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem 0.5rem;
}

.pos-chat-log p {
    margin: 0;
    max-width: 85%;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    background: #f3f4f6;
    text-align: left;
    font-size: 0.86rem;
}

.pos-chat-log p.mine {
    align-self: flex-end;
    background: #e0e7ff;
}

.pos-chat-log small {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.68rem;
}

.pos-chat-compose {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
}

.pos-chat-compose input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
}

.pos-chat-compose button {
    width: auto;
    background: var(--et-header-gold, #00008b);
    color: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
}

.pos-chat-compose button:hover { background: #000070; }

.pos-chat-error {
    margin: 0 0.7rem 0.45rem;
    color: #b91c1c;
    font-size: 0.8rem;
}

.pos-profile {
    position: relative;
}

.pos-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
}

.pos-profile-btn:hover,
.pos-profile.open .pos-profile-btn {
    background: rgba(255, 255, 255, 0.14);
}

.pos-profile-drop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 0.45rem;
    background: #fff;
    color: #111;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    z-index: 40;
}

.pos-profile-name {
    margin: 0.35rem 0.55rem 0;
    font-weight: 700;
}

.pos-profile-login {
    margin: 0.1rem 0.55rem 0.45rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.pos-profile-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.35rem 0.45rem;
    border-bottom: 1px solid #eef0f4;
}

.pos-profile-head p { margin: 0; }

.pos-profile-drop a {
    display: block;
    margin-top: 0.35rem;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.pos-profile-drop a:hover {
    background: #f3f4f6;
}

.pos-profile-drop button {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pos-profile-drop button:hover {
    background: #f3f4f6;
}

.pos-body {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(340px, 38%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}

.pos-ticket {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 340px;
    min-height: 0;
    overflow: hidden;
}

.ticket-lines {
    flex: 1;
    overflow: auto;
}

.ticket-empty {
    margin: 0;
    padding: 1.1rem 1.15rem;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ticket-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    cursor: pointer;
}

.ticket-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.15rem;
    background: #fff;
}

.ticket-qty button {
    border: 0;
    background: #f3f4f6;
    color: #111;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.ticket-qty span {
    min-width: 1.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.ticket-line-sum {
    display: grid;
    justify-items: end;
    gap: 0.3rem;
}

.ticket-remove {
    border: 0;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.ticket-remove:hover {
    background: #fecaca;
    color: #991b1b;
}

.ticket-line.active { background: #f3f4f6; }

.ticket-line strong { font-weight: 600; }

.ticket-line small {
    display: block;
    color: #6b7280;
    margin-top: 0.15rem;
}

.ticket-unit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.ticket-unit select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 0.2rem 0.4rem;
    color: #111;
    max-width: 180px;
}

.ticket-list-price {
    margin-left: 0.35rem;
    color: #9ca3af;
}

.ticket-reason {
    display: block;
    width: 100%;
    max-width: 240px;
    margin-top: 0.4rem;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.25rem 0.5rem;
    color: #111;
    font-size: 0.78rem;
}

.ticket-totals {
    margin: 0 1.15rem;
    padding: 0.85rem 0;
    border-top: 1px solid #111;
    text-align: right;
    line-height: 1.7;
}

.ticket-tables {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}

.ticket-tables button {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ticket-tables button small {
    margin-left: 0.35rem;
    color: #6b7280;
}

.ticket-tables button.active {
    background: #00008b;
    color: #fff;
    border-color: #00008b;
}

.ticket-tables button.active small {
    color: #fff;
}

.ticket-table-add {
    border-style: dashed !important;
}

.ticket-tables .ticket-walk-in {
    margin-right: 0.35rem;
}

.ticket-held-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 0.9rem;
}

.ticket-held-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

.ticket-held-row div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ticket-held-row small {
    color: #6b7280;
}

.till-variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 0.9rem;
}

.till-variant {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 0.6rem 0.75rem;
    text-align: left;
    cursor: pointer;
}

.till-variant:hover {
    background: #f1f5ff;
    border-color: #c7d2fe;
}

.till-variant small {
    color: #6b7280;
}

.pos-variant-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.pos-variant-chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
}

.ticket-free-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.ticket-free-tables button {
    min-width: 72px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #eef2ff;
    color: #00008b;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ticket-free-tables button:hover {
    background: #00008b;
    color: #fff;
}

.ticket-tables .ticket-bill {
    margin-left: auto;
    background: #00008b;
    color: #fff;
    border-color: #00008b;
}

.ticket-tables .ticket-move {
    margin-left: auto;
}

.ticket-tables .ticket-move + .ticket-kitchen,
.ticket-tables .ticket-kitchen + .ticket-bill {
    margin-left: 0;
}

.ticket-tables .ticket-kitchen {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.ticket-tables .ticket-move:disabled,
.ticket-tables .ticket-kitchen:disabled,
.ticket-tables .ticket-bill:disabled {
    opacity: 0.45;
    cursor: default;
}

.ticket-pad {
    display: grid;
    grid-template-columns: 118px 1fr 120px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.customer-btn {
    border: 0;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem;
}

.customer-btn small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #6b7280;
}

.pos-dialog.pos-customer-dialog {
    width: min(500px, 100%);
    max-height: calc(100vh - 1rem);
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.pos-customer-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    min-height: 0;
    padding: 0.85rem 1rem 1rem;
}

.pos-customer-search {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pos-search-field {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #94a3b8;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-search-field:focus-within {
    border-color: #00008b;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

.pos-search-field svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pos-search-field input {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.92rem;
}

.pos-customer-add,
.pos-sheet-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-customer-add svg {
    width: 18px;
    height: 18px;
}

.pos-customer-results {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-height: 0;
    max-height: 22rem;
    overflow: auto;
}

.pos-customer-results button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.45rem 0.7rem;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pos-customer-results button:hover {
    background: #f1f5ff;
}

.pos-customer-results button.active {
    border-color: #00008b;
    background: #f5f7ff;
}

.pos-customer-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #00008b;
    font-size: 0.8rem;
    font-weight: 700;
}

.pos-customer-avatar.walk-in {
    background: #dcfce7;
    color: #166534;
}

.pos-customer-text {
    flex: 1;
    min-width: 0;
}

.pos-customer-text strong,
.pos-customer-text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pos-customer-text strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.pos-customer-text small {
    font-size: 0.78rem;
    color: #64748b;
}

.pos-customer-check {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00008b;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s, transform 0.15s;
}

.pos-customer-check svg {
    width: 15px;
    height: 15px;
}

.pos-customer-results button.active .pos-customer-check {
    opacity: 1;
    transform: scale(1);
}

.pos-customer-empty {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    border: 1.5px dashed #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.pos-customer-empty strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.pos-customer-empty span {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
}

.pos-customer-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.6rem 0.75rem;
    overflow: auto;
}

.pos-customer-form label {
    display: grid;
    gap: 0.25rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.pos-customer-form label.wide {
    grid-column: 1 / -1;
}

.pos-customer-form input {
    width: 100%;
    min-height: 40px;
    padding: 0.4rem 0.7rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 400;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-customer-form input:focus {
    border-color: #00008b;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
    outline: 0;
}

.pos-customer-body .alert-error {
    margin: 0;
}

@media (max-width: 420px) {
    .pos-customer-form { grid-template-columns: 1fr; }
}

@media (max-height: 620px) {
    .pos-customer-results { max-height: none; }
}

.checkout-btn {
    grid-column: 3;
    border: 0;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #16a34a;
}

.pos-dialog-back:has(.pos-checkout-dialog) {
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.pos-dialog.pos-checkout-dialog {
    width: min(780px, 100%);
    max-height: calc(100vh - 1rem);
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.pos-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.45rem 0.6rem 0.45rem 1rem;
    border-bottom: 1px solid #eef0f4;
}

.pos-dialog .pos-sheet-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pos-checkout-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}

.pos-checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    overflow: auto;
    background: linear-gradient(165deg, #0b1a5c 0%, #00008b 55%, #1e2fa8 100%);
    color: #fff;
}

.pos-checkout-due span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pos-checkout-due strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.pos-checkout-saving {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 600;
}

.pos-checkout-breakdown {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pos-checkout-breakdown div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.pos-checkout-breakdown dt {
    color: rgba(255, 255, 255, 0.72);
}

.pos-checkout-breakdown dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pos-checkout-breakdown .discount dd {
    color: #86efac;
}

.pos-checkout-breakdown .total {
    margin-top: 0.1rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
}

.pos-checkout-breakdown .total dt {
    color: #fff;
    font-weight: 600;
}

.pos-checkout-breakdown .total dd {
    font-weight: 800;
}

.pos-checkout-customer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding: 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.pos-checkout-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pos-checkout-customer small {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.pos-checkout-customer strong,
.pos-checkout-customer span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pos-checkout-customer div > span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.7);
}

.pos-checkout-customer button {
    min-height: 32px;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-checkout-customer button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.pos-checkout-customer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-checkout-main {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    overflow: auto;
}

.pos-checkout-main .alert-error {
    margin: 0;
}

.pos-checkout-step h3 {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #475569;
}

.pos-checkout-step h3 small {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #94a3b8;
}

.pos-checkout-dialog input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.pos-checkout-dialog input[type="number"]::-webkit-inner-spin-button,
.pos-checkout-dialog input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pos-pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 0.45rem;
}

.pos-pay-methods button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.45rem 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pos-pay-methods button:hover:not(:disabled) {
    border-color: #c7d2fe;
    background: #f8faff;
}

.pos-pay-methods button.active {
    border-color: #00008b;
    background: #f5f7ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

.pos-pay-methods button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pos-pay-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef2ff;
    color: #00008b;
    transition: background 0.15s, color 0.15s;
}

.pos-pay-icon svg {
    width: 18px;
    height: 18px;
}

.pos-pay-methods button.active .pos-pay-icon {
    background: #00008b;
    color: #fff;
}

.pos-pay-text {
    min-width: 0;
}

.pos-pay-text strong,
.pos-pay-text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pos-pay-text strong {
    font-size: 0.86rem;
    color: #0f172a;
}

.pos-pay-text small {
    font-size: 0.7rem;
    color: #64748b;
}

.pos-pay-check {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00008b;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s, transform 0.15s;
}

.pos-pay-check svg {
    width: 12px;
    height: 12px;
}

.pos-pay-methods button.active .pos-pay-check {
    opacity: 1;
    transform: scale(1);
}

.pos-discount,
.pos-points {
    display: grid;
    gap: 0.45rem;
}

.pos-points-balance {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.pos-points-balance strong {
    color: #00008b;
}

.pos-discount-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
}

.pos-discount-kind {
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 10px;
    background: #f1f5f9;
}

.pos-discount-kind button {
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-discount-kind button.active {
    background: #fff;
    color: #00008b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.pos-discount-input,
.pos-money-field input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-discount-input {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.7rem;
}

.pos-discount-input:focus-within,
.pos-money-field input:focus {
    border-color: #00008b;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
    outline: 0;
}

.pos-discount-input input {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pos-discount-input span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.pos-discount-note {
    margin: 0;
    font-size: 0.78rem;
    color: #15803d;
}

.pos-form-note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.pos-serial-lookup {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pos-serial-lookup label {
    display: grid;
    gap: 0.25rem;
    min-width: 260px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pos-serial-lookup .pos-table,
.pos-serial-lookup .alert-error,
.pos-serial-lookup .page-kicker {
    flex-basis: 100%;
}

.pos-serial-line {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0;
    border: 0;
}

.pos-serial-line legend {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.pos-serial-line input {
    padding: 0.45rem 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
}

.pos-serial-line input:focus {
    border-color: #00008b;
    outline: 0;
}

.pos-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pos-chip-row button {
    min-height: 32px;
    padding: 0.2rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pos-chip-row button:hover:not(:disabled) {
    border-color: #c7d2fe;
    color: #00008b;
}

.pos-chip-row button.active {
    border-color: #00008b;
    background: #00008b;
    color: #fff;
}

.pos-chip-row .pos-chip-clear {
    margin-left: auto;
    border-color: transparent;
    background: transparent;
    color: #b42318;
}

.pos-chip-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-cash-tender {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "field result"
        "chips chips";
    gap: 0.45rem 0.6rem;
}

.pos-cash-tender .pos-chip-row {
    grid-area: chips;
}

.pos-money-field {
    grid-area: field;
    display: grid;
    gap: 0.2rem;
}

.pos-money-field span {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
}

.pos-money-field input {
    width: 100%;
    padding: 0.4rem 0.7rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pos-phone-field span {
    font-size: 0.82rem;
    color: #0f172a;
}

.pos-phone-field input {
    border: 2px solid #64748b;
    background: #f8fafc;
    padding: 0.6rem 0.8rem;
    letter-spacing: 0.03em;
}

.pos-phone-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.pos-phone-field input:focus {
    border-color: #00008b;
    background: #fff;
}

.pos-phone-field input:disabled {
    border-color: #cbd5e1;
    color: #64748b;
}

.pos-cash-result {
    grid-area: result;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.74rem;
    font-weight: 600;
}

.pos-cash-result strong {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.pos-cash-result.short {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.pos-receipt-options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.45rem;
}

.pos-receipt-toggles {
    display: inline-flex;
    gap: 0.35rem;
}

.pos-receipt-toggles button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pos-receipt-toggles button svg {
    width: 17px;
    height: 17px;
}

.pos-receipt-toggles button:hover {
    border-color: #c7d2fe;
}

.pos-receipt-toggles button.active {
    border-color: #00008b;
    background: #f5f7ff;
    color: #00008b;
}

.pos-receipt-email {
    flex: 1 1 200px;
}

.pos-customer-picker {
    position: relative;
}

.pos-customer-picker input {
    width: 100%;
}

.pos-customer-picker-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.pos-customer-picker-list button {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 0;
    border-radius: 8px;
    background: none;
    text-align: left;
    cursor: pointer;
}

.pos-customer-picker-list button:hover,
.pos-customer-picker-list button[aria-selected="true"] {
    background: #f5f7ff;
}

.pos-customer-picker-list small,
.pos-customer-picker-empty {
    color: #64748b;
    font-size: 0.78rem;
}

.pos-customer-picker-empty {
    display: block;
    padding: 0.45rem 0.6rem;
}

.pos-receipt-on-file {
    flex: 1 1 100%;
    color: #64748b;
    font-size: 0.78rem;
}

.pos-card-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.pos-card-status strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.pos-card-status span {
    font-size: 0.8rem;
    color: #64748b;
}

.pos-card-status-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ff;
    color: #00008b;
}

.pos-card-status-icon svg {
    width: 20px;
    height: 20px;
}

.pos-card-status.waiting {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pos-card-status.waiting .pos-card-status-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid #00008b;
    border-radius: 50%;
    animation: pos-card-pulse 1.4s ease-out infinite;
}

@keyframes pos-card-pulse {
    from { opacity: 0.6; transform: scale(0.9); }
    to { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
    .pos-card-status.waiting .pos-card-status-icon::after { animation: none; }
}

.pos-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    border-top: 1px solid #eef0f4;
    background: #fafbfc;
}

.pos-sheet-foot .btn-ghost {
    min-height: 44px;
}

.pos-checkout-pay {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 230px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pos-checkout-pay:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35);
}

.pos-checkout-pay:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: progress;
}

.pos-checkout-pay strong {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
    .pos-checkout-layout {
        grid-template-columns: 1fr;
        overflow: auto;
    }
    .pos-checkout-summary,
    .pos-checkout-main { overflow: visible; }
    .pos-checkout-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 0.6rem 1rem;
        padding: 0.75rem 0.9rem;
    }
    .pos-checkout-breakdown { padding: 0; border: 0; }
    .pos-checkout-customer { grid-column: 1 / -1; margin-top: 0; }
    .pos-checkout-pay { flex: 1; min-width: 0; }
}

@media (max-width: 420px) {
    .pos-checkout-summary { grid-template-columns: 1fr; }
    .pos-discount-row { flex-direction: column; }
    .pos-cash-tender {
        grid-template-columns: 1fr;
        grid-template-areas: "field" "result" "chips";
    }
}

@media (max-height: 620px) {
    .pos-sheet-head { padding-top: 0.3rem; padding-bottom: 0.3rem; }
    .pos-checkout-summary { gap: 0.55rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .pos-checkout-due strong { font-size: 1.5rem; }
    .pos-checkout-breakdown { gap: 0.2rem; padding: 0.45rem 0; }
    .pos-checkout-customer div > span { display: none; }
    .pos-checkout-main { gap: 0.65rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }
    .pos-sheet-foot { padding-top: 0.45rem; padding-bottom: 0.45rem; }
}

.numpad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.numpad button {
    border: 0;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    background: #fff;
    min-height: 42px;
    font-size: 1.05rem;
}

.numpad .numpad-void {
    background: #dc2626;
    color: #fff;
    font-weight: 600;
}

.numpad .numpad-void:hover {
    background: #b91c1c;
}

.pos-catalog {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    overflow: clip;
    background: #f4f4f4;
}

.catalog-bar {
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    padding: 0.4rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.catalog-bar a {
    color: #111;
    text-decoration: none;
}

.catalog-bar .catalog-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 36px;
    padding: 0 0.7rem;
    border: 2px solid #c7d2fe;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 139, 0.12);
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-bar .catalog-field:hover {
    border-color: #818cf8;
}

.catalog-bar .catalog-field:focus-within {
    border-color: #00008b;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.18);
}

.catalog-bar .catalog-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 0.95rem;
    font-weight: 600;
}

.catalog-bar .catalog-field input::placeholder {
    color: #6b7280;
    font-weight: 500;
}

.catalog-field-icon {
    flex: none;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    color: #00008b;
    font-size: 1rem;
    line-height: 1;
}

.catalog-bar .catalog-search {
    margin-left: auto;
    flex: 1 1 170px;
    max-width: 240px;
}

.catalog-bar .catalog-barcode {
    flex: 1 1 170px;
    max-width: 240px;
    background: #f5f7ff;
}

.catalog-bar .catalog-barcode .catalog-field-icon {
    font-size: 1.15rem;
}

.catalog-bar .till-chooser {
    max-width: 220px;
    padding: 0.28rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.till-session-menu {
    position: relative;
    flex: none;
}

.till-session-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.till-session-state:disabled {
    cursor: default;
    opacity: 0.6;
}

.till-session-caret {
    font-size: 0.7rem;
}

.till-session-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.till-session-drop {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 41;
    display: grid;
    min-width: 200px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.till-session-drop p {
    margin: 0 0 0.25rem;
    padding: 0.35rem 0.6rem 0.45rem;
    border-bottom: 1px solid #eef0f4;
    color: #6b7280;
    font-size: 0.78rem;
}

.till-session-drop button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
}

.till-session-drop button:hover {
    background: #f3f4f6;
}

.till-session-state.open {
    background: #dcfce7;
    color: #166534;
}

.till-session-state.closed {
    background: #fee2e2;
    color: #991b1b;
}

.till-cash-up {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1.5rem;
    margin: 0 0 1rem;
}

.till-cash-up dt {
    color: #475569;
}

.till-cash-up dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.till-cash-up .till-cash-off {
    color: #b91c1c;
    font-weight: 700;
}

.pos-warehouse-select {
    max-width: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 0.28rem 0.5rem;
    color: #111;
}

.pos-till-error {
    margin: 0.75rem 1rem 0;
}

.pos-till-notice {
    margin: 0.75rem 1rem 0;
    padding: 0.65rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

.pos-tile-stock {
    display: block;
    padding: 0 0.3rem 0.35rem;
    color: #6b7280;
    font-size: 0.72rem;
}

.pos-stock-filter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.pos-stock-filter select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 0.3rem 0.5rem;
}

.pos-receive-dialog {
    width: min(1100px, 100%);
}

.pos-invoice-review {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.pos-invoice-review:has(.pos-invoice-source) {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
}

.pos-invoice-source {
    min-width: 0;
}

.pos-invoice-source img,
.pos-invoice-frame {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pos-invoice-frame {
    min-height: 280px;
    object-fit: unset;
}

.pos-invoice-source pre {
    margin: 0;
    max-height: 280px;
    overflow: auto;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.75rem;
    white-space: pre-wrap;
}

.pos-match {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.pos-match.ok {
    background: #ecfdf3;
    color: #067647;
}

.pos-match.stop {
    background: #fde8e6;
    color: #b42318;
}

.pos-unit-table select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--et-line, #e5e7eb);
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    background: #fff;
}

.view-toggle {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle button {
    border: 0;
    background: #fff;
    color: #6b7280;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.view-toggle button.active {
    background: var(--et-header-gold, #00008b);
    color: #fff;
}

.pos-form-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.pos-page-tabs {
    padding: 0.85rem 1rem 0;
}

.pos-form-tabs button {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-form-tabs button.active {
    background: var(--et-header-gold, #00008b);
    color: #fff;
    border-color: var(--et-header-gold, #00008b);
}

.pos-wizard {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.pos-wizard li {
    flex: 1;
}

.pos-wizard button {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-wizard li.active button {
    background: var(--et-header-gold, #00008b);
    color: #fff;
    border-color: var(--et-header-gold, #00008b);
}

.pos-wizard li.done button {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.pos-wizard button:disabled {
    cursor: default;
    opacity: 0.55;
}

.pos-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.product-table th,
.product-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.84rem;
    white-space: nowrap;
    border-bottom: 1px solid #f3f4f6;
}

.product-table th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 1;
}

.product-table td.num,
.product-table th.num {
    text-align: right;
}

.product-table tbody tr {
    cursor: pointer;
}

.product-table tbody tr:hover {
    background: #f3f4f6;
}

.pos-category-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0 0.75rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    flex-shrink: 0;
}

.pos-category-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

.pos-category-tabs button:hover {
    color: #111;
}

.pos-category-tabs button.active {
    color: #00008b;
    border-bottom-color: #00008b;
}

.pos-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-content: start;
    gap: 0.7rem;
    padding: 0.9rem;
    overflow: auto;
}

.product-tile {
    background: #fff;
    border: 0;
    padding: 0 0 0.55rem;
    text-align: center;
}

.product-photo {
    position: relative;
    height: 110px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-photo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.price-tag {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.78rem;
    color: #4b5563;
}

.product-tile strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0 0.3rem;
}

.location-tag {
    display: inline-block;
    margin-top: 0.2rem;
    color: #92400e;
    font-size: 0.75rem;
}

.pos-manage {
    height: 100%;
    overflow: auto;
    background: #f8f9fb;
}

.pos-manage-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.55rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pos-manage-bar h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.pos-manage-bar input[type="search"] {
    margin-left: auto;
    min-width: 220px;
    border: 0;
    background: transparent;
    text-align: right;
}

.pos-manage-count {
    color: #6b7280;
    font-size: 0.86rem;
    white-space: nowrap;
}

.pos-category-page {
    padding: 1rem;
    max-width: 720px;
}

.pos-warehouse-page {
    padding: 1rem;
    max-width: 980px;
}

.pos-manage-card {
    margin: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
}

.pos-manage-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.pos-config-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.25rem 0 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.pos-screen-steps {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

/* Kitchen and bar screens: dark, high-contrast displays read from across the room, each station in its own colour. */

.kitchen-screen {
    --station: #f97316;
    --station-soft: rgba(249, 115, 22, 0.16);
    height: 100vh;
    overflow: auto;
    background: radial-gradient(circle at 15% -10%, #1e293b 0%, #0b1120 55%) fixed;
    color: #e2e8f0;
}

.kitchen-screen.kitchen-bar {
    --station: #a855f7;
    --station-soft: rgba(168, 85, 247, 0.16);
}

.kitchen-top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.9rem 1.5rem;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 -3px 0 var(--station);
}

.kitchen-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-right: auto;
}

.kitchen-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--station) 70%, #fff), var(--station));
    box-shadow: 0 10px 24px -10px var(--station);
    color: #fff;
}

.kitchen-badge svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kitchen-brand h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.kitchen-brand small {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
}

.kitchen-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.kitchen-outlet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
}

.kitchen-outlet select {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    background: #111827;
    color: #e2e8f0;
    font-weight: 600;
}

.kitchen-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
}

.kitchen-switch input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--station);
}

.kitchen-clock {
    font-size: 1.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.kitchen-full {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    background: transparent;
    color: #e2e8f0;
    font-weight: 700;
    cursor: pointer;
}

.kitchen-full:hover {
    border-color: var(--station);
    color: #fff;
}

:root:fullscreen .kitchen-full,
:root:-webkit-full-screen .kitchen-full {
    display: none;
}

.kitchen-print-note {
    margin: 0.75rem 1.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.kitchen-alert {
    margin: 0.75rem 1.5rem 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    font-weight: 600;
}

.kitchen-empty {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    padding: 5rem 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.kitchen-empty span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--station-soft);
    color: var(--station);
    font-size: 2.6rem;
    font-weight: 800;
}

.kitchen-empty h2 {
    margin: 0.6rem 0 0;
    color: #fff;
    font-size: 1.6rem;
}

.kitchen-empty p {
    margin: 0;
    font-size: 1.05rem;
}

.kitchen-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    align-items: start;
    gap: 1.1rem;
    padding: 1.25rem 1.5rem 2rem;
}

.kitchen-card {
    --urgency: #22c55e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.9);
    animation: kitchen-arrive 0.35s ease-out;
}

.kitchen-card.is-waiting {
    --urgency: #f59e0b;
}

.kitchen-card.is-late {
    --urgency: #ef4444;
    border-color: rgba(239, 68, 68, 0.55);
    animation: kitchen-arrive 0.35s ease-out, kitchen-late 1.6s ease-in-out infinite;
}

.kitchen-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, color-mix(in srgb, var(--urgency) 22%, transparent), transparent);
    border-top: 5px solid var(--urgency);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.kitchen-card h2 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

.kitchen-card header small {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.kitchen-wait {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    background: color-mix(in srgb, var(--urgency) 20%, transparent);
    color: var(--urgency);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kitchen-card ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0.95rem 1rem;
    list-style: none;
}

.kitchen-card li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f1f5f9;
}

.kitchen-qty {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.45rem;
    border-radius: 10px;
    background: var(--station-soft);
    color: var(--station);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.kitchen-photo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.kitchen-item small {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.kitchen-card footer {
    display: flex;
    gap: 0.6rem;
    padding: 0 1rem 1rem;
}

.kitchen-card footer button {
    border: 0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.kitchen-card footer button:active {
    transform: scale(0.97);
}

.kitchen-card footer .kitchen-print-button {
    background: #1f2937;
    color: #cbd5e1;
}

.kitchen-card footer .kitchen-print-button:hover {
    filter: brightness(1.25);
}

.kitchen-card footer .kitchen-done {
    flex: 1;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -12px #22c55e;
}

.kitchen-card footer .kitchen-done:hover {
    filter: brightness(1.08);
}

.kitchen-card footer .kitchen-done:disabled {
    opacity: 0.5;
    cursor: default;
}

@keyframes kitchen-arrive {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes kitchen-late {
    50% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), 0 18px 30px -22px rgba(0, 0, 0, 0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kitchen-card,
    .kitchen-card.is-late {
        animation: none;
    }
}

/* Online Store back office: its own header so staff can tell it apart from the till. */

.online-shell .pos-top {
    background: linear-gradient(115deg, #232f3e 0%, #37475a 55%, #007185 100%);
}

.warehouse-shell .pos-top {
    background: linear-gradient(115deg, #14532d 0%, #166534 55%, #15803d 100%);
}

.recon-shell .pos-top {
    background: linear-gradient(115deg, #2e1065 0%, #4c1d95 55%, #7c3aed 100%);
}

.recon-page .pos-manage-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.recon-daybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.recon-step {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.recon-step:disabled {
    opacity: 0.4;
    cursor: default;
}

.recon-day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
}

.recon-day input {
    border: 0;
    font: inherit;
    font-weight: 400;
    color: #52525b;
}

.recon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.recon-chip i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.recon-chip.ok { background: #dcfce7; color: #166534; }
.recon-chip.stop { background: #fee2e2; color: #b91c1c; }
.recon-chip.wait { background: #fef3c7; color: #92400e; }
.recon-chip.idle { background: #f4f4f5; color: #52525b; }

.recon-hero {
    margin: 0 1.25rem 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e4e4e7;
    border-left: 6px solid #a1a1aa;
    border-radius: 12px;
    background: #fff;
}

.recon-hero.ok { border-left-color: #16a34a; }
.recon-hero.stop { border-left-color: #dc2626; }
.recon-hero.wait { border-left-color: #d97706; }

.recon-hero h2 {
    margin: 0.6rem 0 0.25rem;
    font-size: 1.35rem;
}

.recon-hero p {
    margin: 0;
    color: #52525b;
}

.recon-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0 1.25rem 1rem;
}

.recon-source {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
}

.recon-source header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.recon-source header > div {
    flex: 1;
}

.recon-source h3 {
    margin: 0;
    font-size: 1.05rem;
}

.recon-source small {
    color: #71717a;
}

.recon-source-icon {
    font-size: 1.5rem;
}

.recon-source dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0;
}

.recon-source dt {
    color: #71717a;
    font-size: 0.8rem;
}

.recon-source dd {
    margin: 0.15rem 0 0;
    font-weight: 700;
}

.recon-source-note {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

.recon-source .btn-gold {
    align-self: flex-start;
}

.recon-attention {
    margin: 0 1.25rem 1.25rem;
}

.recon-inbox-note {
    margin: 0 1.25rem 1rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #f5f3ff;
    color: #4c1d95;
}

.recon-inbox-note.warn {
    background: #fef3c7;
    color: #92400e;
}

.recon-inbox-note a {
    margin-left: 0.4rem;
    font-weight: 700;
}

.recon-inbox-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1.25rem 1rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.recon-inbox-banner strong {
    flex: 1;
}

.recon-inbox-banner.stop strong { color: #b91c1c; }
.recon-inbox-banner.ok strong { color: #166534; }

.recon-inbox-banner span:last-child {
    color: #6d28d9;
    font-weight: 700;
}

.recon-signoff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 1.25rem 1rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
}

.recon-signoff p {
    flex: 1;
    margin: 0;
}

.recon-signoff small,
.recon-signoff .alert-error,
.recon-signoff .alert-ok {
    flex-basis: 100%;
    margin: 0;
}

.recon-tabs {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #fff;
}

.recon-tab {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    color: #52525b;
    font-weight: 700;
    text-decoration: none;
}

.recon-tab.active {
    background: #6d28d9;
    color: #fff;
}

.recon-inbox {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(320px, 3fr);
    gap: 1rem;
    margin: 0 1.25rem 1.25rem;
    align-items: start;
}

.recon-issue-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recon-issue {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.recon-issue:hover { border-color: #a78bfa; }
.recon-issue.selected { border-color: #6d28d9; box-shadow: 0 0 0 2px #ede9fe; }

.recon-issue header,
.recon-issue footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.recon-issue header strong { flex: 1; }
.recon-issue small { color: #71717a; }

.recon-issue-detail {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
}

.recon-issue-detail header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.recon-issue-detail h2 { margin: 0; font-size: 1.15rem; }
.recon-issue-detail h3 { margin: 0.5rem 0 0; font-size: 1rem; }
.recon-issue-detail .btn-gold { align-self: flex-start; }

.recon-issue-problem {
    margin: 0;
    font-size: 1.05rem;
}

.recon-issue-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin: 0;
}

.recon-issue-facts dt { color: #71717a; font-size: 0.8rem; }
.recon-issue-facts dd { margin: 0.1rem 0 0; font-weight: 600; }

.recon-notes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recon-notes li {
    padding: 0.6rem 0.8rem;
    border-left: 3px solid #a1a1aa;
    border-radius: 6px;
    background: #fafafa;
}

.recon-notes li.resolved { border-left-color: #16a34a; }
.recon-notes li.reopened { border-left-color: #d97706; }
.recon-notes small { color: #71717a; }
.recon-notes p { margin: 0.25rem 0 0; white-space: pre-wrap; }

.recon-note-input {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.recon-note-input textarea {
    padding: 0.5rem 0.65rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
    resize: vertical;
}

.recon-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .recon-inbox { grid-template-columns: 1fr; }
    .recon-issue-detail { position: static; }
}

.app-badge {
    padding: 0.15rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.online-orders .pos-manage-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.online-orders-branch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.online-orders-state {
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
}

.online-orders-state.paused {
    background: #fef3c7;
    color: #92400e;
}

.online-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    align-items: start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
}

.online-board-column {
    display: grid;
    gap: 0.6rem;
    border-radius: 10px;
    padding: 0.6rem;
    background: #f3f4f6;
}

.online-board-column header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.online-board-column h2 {
    margin: 0;
    font-size: 1rem;
}

.online-board-count {
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
    background: #fff;
    font-weight: 700;
}

.online-order-card {
    display: grid;
    gap: 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    background: #fff;
}

.online-order-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.online-order-head span,
.online-order-who {
    color: #6b7280;
}

.online-order-card ul {
    margin: 0;
    padding-left: 1rem;
}

.online-order-total {
    font-weight: 700;
    text-align: right;
}

.card-refund-issues {
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    background: #fef2f2;
}

.card-refund-issues h2 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.card-refund-issues ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-refund-issues li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.card-refund-issues .online-order-state {
    margin-left: 0.5rem;
    color: #b91c1c;
    font-weight: 600;
}

.online-order-paid {
    justify-self: start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
}

.online-order-paid.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.online-order-note {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.35;
}

.online-order-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.6rem;
    margin: 0;
    font-size: 0.9rem;
}

.online-order-detail dt {
    color: #6b7280;
}

.online-order-detail dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.online-order-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.online-order-card footer button {
    padding: 0.35rem 0.6rem;
}

.pos-manage-card:has(.app-grid) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.pos-sale-lines {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.pos-sale-lines li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.pos-sale-lines li:last-child { border-bottom: 0; }

.pos-sale-lines strong { font-size: 0.9rem; }

.pos-sale-lines small {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.pos-sale-lines-empty {
    margin: 0;
    padding: 0.7rem 0.85rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.pos-sale-breakdown {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.pos-sale-breakdown table {
    width: 100%;
    font-variant-numeric: tabular-nums;
}

.pos-sale-breakdown td small {
    display: block;
    color: #6b7280;
}

.pos-sale-breakdown tfoot th {
    border-top: 2px solid #e5e7eb;
}

.pos-sale-breakdown .page-kicker {
    margin: 0.5rem 0.85rem;
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
}

.pos-table th,
.pos-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.86rem;
}

.pos-table th {
    color: #6b7280;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pos-table .num {
    text-align: right;
}

.pos-unit-table {
    table-layout: fixed;
}

.pos-unit-table col.col-default { width: 76px; }
.pos-unit-table col.col-pricing { width: 118px; }
.pos-unit-table col.col-unit { width: auto; }
.pos-unit-table col.col-qty { width: 92px; }
.pos-unit-table col.col-money,
.pos-unit-table col.col-price { width: 118px; }
.pos-unit-table col.col-margin { width: 88px; }
.pos-unit-table col.col-actions { width: 48px; }

.pos-unit-table td.col-margin {
    text-align: right;
    padding-right: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.pos-unit-table td.col-margin.below-cost {
    color: #b91c1c;
    font-weight: 600;
}

.pos-unit-table th,
.pos-unit-table td {
    vertical-align: middle;
}

.pos-unit-table th.col-default,
.pos-unit-table td.col-default,
.pos-unit-table th.col-actions,
.pos-unit-table td.col-actions {
    text-align: center;
}

.pos-unit-table th.num {
    padding-right: 1.05rem;
}

.pos-unit-table input[type="text"],
.pos-unit-table input[type="number"],
.pos-unit-table input:not([type]) {
    display: block;
    box-sizing: border-box;
}

.pos-unit-table input[type="number"] {
    text-align: right;
}

.pos-unit-table input[type="radio"] {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 auto;
    accent-color: var(--et-header-gold, #00008b);
}

.pos-unit-add {
    margin-top: 0.65rem;
}

.pos-unit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-unit-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pos-unit-type.retail {
    background: #dbeafe;
    color: #1d4ed8;
}

.pos-unit-type.wholesale {
    background: #fef3c7;
    color: #92400e;
}

.pos-dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem 1rem 0;
}

.pos-chart-stack {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem 1rem 1.2rem;
}

.pos-chart-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.pos-chart-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 1rem 1.05rem 0.85rem;
}

.pos-chart-card h3 {
    margin: 0;
    font-size: 1rem;
}

.pos-chart-card .page-kicker {
    margin: 0.25rem 0 0.75rem;
}

.pos-chart-frame {
    min-width: 0;
}

.pos-chart-svg {
    display: block;
    width: 100%;
    height: 220px;
}

.pos-chart-axis {
    display: flex;
    justify-content: space-between;
    padding: 0 0.35rem 0 2.4rem;
    color: #6b7280;
    font-size: 0.72rem;
}

.pos-chart-label {
    fill: #6b7280;
    font-size: 11px;
}

.pos-chart-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.35rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.pos-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.35rem;
}

.pos-hbar {
    display: grid;
    gap: 0.55rem;
}

.pos-hbar-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) 4.2rem;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
}

.pos-hbar-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4b5563;
}

.pos-hbar-row strong {
    text-align: right;
}

.pos-hbar-track {
    height: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}

.pos-hbar-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.pos-stat {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 0.95rem 1rem;
}

.pos-stat small {
    display: block;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.pos-stat strong {
    font-size: 1.35rem;
}

.pos-stat-net strong {
    color: var(--et-header-gold, #00008b);
}

.pos-report-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pos-report-tools label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.pos-report-tools input[type="date"] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background: #fff;
    color: #111827;
}

.pos-report {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem 1rem 1.2rem;
}

.pos-report-note {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.pos-report-note.ok {
    color: #067647;
}

.pos-report-panel {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 1rem 1.05rem 0.9rem;
}

.pos-reports {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.pos-reports-menu {
    display: grid;
    gap: 0.2rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 0.75rem;
}

.pos-reports-menu h2 {
    margin: 0.5rem 0 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pos-reports-menu h2:first-child {
    margin-top: 0;
}

.pos-reports-menu button {
    text-align: left;
    border: 0;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    background: transparent;
    color: #111827;
    font-size: 0.88rem;
    cursor: pointer;
}

.pos-reports-menu button:hover {
    background: #f3f4f6;
}

.pos-reports-menu button.active {
    background: #eef2ff;
    color: var(--et-header-gold, #00008b);
    font-weight: 600;
}

.pos-reports-body,
.pos-reports-result {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.pos-history-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.pos-history-range label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pos-history-range input[type="date"] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    background: #fff;
    color: #111827;
}

.pos-reports-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.pos-reports-form label {
    display: grid;
    gap: 0.3rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.pos-reports-form input,
.pos-reports-form select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    background: #fff;
    color: #111827;
    min-width: 11rem;
}

.pos-reports-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.pos-reports-preset {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pos-reports-preset:hover:not(:disabled) {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.pos-reports-preset.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

.pos-reports-preset:disabled {
    cursor: progress;
    opacity: 0.6;
}

.pos-reports-stats {
    padding: 0;
}

.pos-reports-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #1e3a8a;
}

.pos-reports-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pos-reports-logo {
    display: block;
    max-width: 120px;
    max-height: 56px;
    object-fit: contain;
}

.pos-reports-head small {
    color: #1e3a8a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pos-reports-head h2 {
    margin: 0.1rem 0 0;
    font-size: 1.25rem;
}

.pos-reports-head p {
    margin: 0.2rem 0 0;
    color: #334155;
    font-size: 0.9rem;
}

.pos-reports-head > span {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
}

.pos-reports-chart svg {
    display: block;
    max-height: 340px;
}

.pos-report-list {
    display: grid;
    gap: 0.65rem;
}

.pos-report-panel h2,
.pos-report-list h2 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.pos-report-list h2 {
    margin: 0;
}

.pos-report-issues {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.pos-report-issues li {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 8px;
}

.pos-report-issues strong {
    font-size: 0.82rem;
}

.pos-report-issues span {
    color: #7c2d12;
    font-size: 0.88rem;
    line-height: 1.4;
}

.pos-report-table {
    width: 100%;
    border-collapse: collapse;
}

.pos-report-table th {
    text-align: left;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem 0.55rem;
    border-bottom: 1px solid #eef0f4;
}

.pos-report-table td {
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.pos-report-table tr:last-child td,
.pos-report-table tfoot td {
    border-bottom: 0;
}

.pos-report-table tfoot td {
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
}

.pos-report-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pos-report-amount {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
}

.pos-report-amount small {
    color: #b45309;
    font-size: 0.75rem;
}

.pos-report .app-grid-status.wait i {
    background: #d97706;
}

.pos-kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #fff;
}

.pos-kanban-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 0.75rem;
    align-items: center;
    min-height: 104px;
    padding: 0.85rem 1rem;
    border-right: 1px solid #f0f1f4;
    border-bottom: 1px solid #f0f1f4;
    background: #fff;
}

.pos-kanban-info {
    display: grid;
    gap: 0.12rem;
}

.pos-kanban-info strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.pos-kanban-info small,
.pos-kanban-info span {
    color: #6b7280;
    font-size: 0.8rem;
}

.pos-kanban-card img {
    width: 88px;
    height: 72px;
    object-fit: contain;
}

.pos-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 6px;
    display: block;
}

.pos-kanban-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.pos-dialog-back {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 1rem;
}

.pos-dialog-back.stacked {
    z-index: 50;
}

.pos-confirm-dialog {
    width: min(440px, 100%);
}

.pos-import-dialog {
    width: min(980px, 100%);
}

.pos-import-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
}

.pos-file-button {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.pos-file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pos-import-table-wrap {
    max-height: 320px;
    overflow: auto;
    border: 1px solid #eef0f4;
    border-radius: 10px;
}

.pos-import-table td,
.pos-import-table th {
    white-space: nowrap;
}

.pos-import-table tr.error td {
    color: #b42318;
}

.pos-dialog {
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
    padding: 1.15rem 1.2rem 1.2rem;
}

.pos-dialog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    margin: -0.15rem 0 0.35rem;
}

.pos-dialog-bar h2 {
    margin: 0;
}

.pos-dialog-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.pos-dialog-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.pos-dialog-body {
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.pos-dialog-section {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

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

.pos-product-dialog .pos-dialog-section {
    margin: 0.45rem 0 0.2rem;
}

.pos-product-dialog .pos-dialog-body > .pos-dialog-section:first-child {
    margin-top: 0;
}

.pos-product-dialog {
    padding: 0.8rem 1.1rem;
}

.pos-product-dialog .pos-dialog-bar {
    margin: 0 0 0.25rem;
}

.pos-product-dialog .pos-dialog-bar h2 {
    margin: 0;
    white-space: nowrap;
}

.pos-product-dialog .pos-dialog-bar .pos-wizard {
    flex: 1;
    max-width: 480px;
    margin: 0 0 0 auto;
}

.pos-product-dialog .pos-wizard button {
    padding: 0.32rem 0.6rem;
}

.pos-product-dialog .form-grid.pos-product-fields {
    gap: 0.3rem 0.9rem;
}

.pos-product-dialog .form-grid.pos-product-fields label {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.pos-product-dialog .form-grid.pos-product-fields input:not([type="checkbox"]):not([type="radio"]),
.pos-product-dialog .form-grid.pos-product-fields select,
.pos-product-dialog .pos-unit-table input:not([type="radio"]) {
    padding: 0.28rem 0.5rem;
    font-size: 0.88rem;
}

.pos-product-dialog .page-kicker {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.8rem;
}

.pos-product-dialog .form-actions {
    margin: 0.55rem 0 0;
}

@media (max-height: 760px) {
    .pos-product-dialog { padding: 0.6rem 1rem; }
    .pos-product-dialog .pos-dialog-section { margin: 0.3rem 0 0.15rem; }
    .pos-product-dialog .form-grid.pos-product-fields { gap: 0.2rem 0.9rem; }
    .pos-product-dialog .form-grid.pos-product-fields input:not([type="checkbox"]):not([type="radio"]),
    .pos-product-dialog .form-grid.pos-product-fields select { padding: 0.18rem 0.45rem; font-size: 0.84rem; }
    .pos-product-dialog .form-actions { margin-top: 0.4rem; }
    .pos-product-photo, .pos-product-photo img { width: 80px; height: 80px; }
}

@media (max-width: 640px) {
    .pos-product-dialog .pos-dialog-bar { flex-wrap: wrap; }
    .pos-product-dialog .pos-dialog-bar .pos-wizard { order: 3; flex-basis: 100%; max-width: none; }
    .pos-product-dialog .form-grid.pos-product-fields { grid-template-columns: 1fr; }
}

.form-grid.pos-product-fields {
    gap: 0.4rem 0.85rem;
}

.form-grid.pos-product-fields label {
    display: grid;
    grid-template-columns: 8.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-grid.pos-product-fields label.pos-config-toggle {
    margin: 0;
}

.form-grid.pos-product-fields label.pos-config-toggle input[type="checkbox"] {
    justify-self: start;
}

.form-grid.pos-product-fields .pos-dietary-tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-grid.pos-product-fields .pos-dietary-tags legend {
    float: left;
    width: 8.5rem;
    padding: 0;
    color: #374151;
    font-weight: 500;
    font-size: 0.82rem;
}

.form-grid.pos-product-fields .pos-dietary-tags label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.pos-station-filter {
    padding: 0.4rem 0.6rem;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
}

.pos-kanban-info small.pos-menu-summary {
    color: #00008b;
    font-weight: 600;
}

.form-grid.pos-product-fields input:not([type="checkbox"]):not([type="radio"]),
.form-grid.pos-product-fields select,
.pos-unit-table input[type="text"],
.pos-unit-table input[type="number"],
.pos-unit-table input:not([type]),
.pos-unit-table select {
    width: 100%;
    min-width: 0;
    padding: 0.42rem 0.6rem;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-grid.pos-product-fields input:not([type="checkbox"]):not([type="radio"]):hover,
.form-grid.pos-product-fields select:hover,
.pos-unit-table input:hover,
.pos-unit-table select:hover {
    border-color: #64748b;
}

.form-grid.pos-product-fields input:not([type="checkbox"]):not([type="radio"]):focus,
.form-grid.pos-product-fields select:focus,
.pos-unit-table input:focus,
.pos-unit-table select:focus {
    outline: none;
    border-color: var(--et-header-gold, #00008b);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.15);
}

.form-grid.pos-product-fields input:disabled,
.form-grid.pos-product-fields select:disabled {
    border-color: #cbd5e1;
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-grid.pos-product-fields input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--et-header-gold, #00008b);
}

.pos-product-photo {
    position: relative;
    display: block;
    width: 96px;
    margin-top: 0.6rem;
    cursor: pointer;
}

.pos-product-photo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pos-product-photo:hover img {
    border-color: #9ca3af;
}

.pos-product-photo input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pos-settings-body {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: start;
    min-height: calc(100% - 52px);
}

.pos-settings-nav {
    position: sticky;
    top: 52px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 1rem 0.75rem 1.5rem;
    background: #fff;
    border-right: 1px solid #eef0f4;
    align-self: stretch;
}

.pos-settings-group {
    margin: 0.9rem 0 0.3rem;
    padding: 0 0.65rem;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos-settings-group:first-child { margin-top: 0; }

.pos-settings-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.65rem;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    color: #1f2937;
    text-decoration: none;
}

.pos-settings-link strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.pos-settings-link small {
    color: #6b7280;
    font-size: 0.76rem;
}

.pos-settings-link:hover { background: #f5f7fb; }

.pos-settings-link.active {
    background: #eef2fb;
    border-left-color: var(--et-header-gold, #00008b);
}

.pos-settings-link.active strong { color: var(--et-header-gold, #00008b); }

.pos-settings-panel {
    max-width: 980px;
    padding: 1.25rem 1.5rem 2rem;
}

.pos-settings-head { margin-bottom: 1rem; }

.pos-settings-crumb {
    margin: 0 0 0.2rem;
    color: #9ca3af;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pos-settings-head h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.pos-settings-head > p:last-child {
    margin: 0.3rem 0 0;
    max-width: 70ch;
    color: #6b7280;
    font-size: 0.9rem;
}

.pos-settings-card {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}

.pos-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pos-settings-card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.pos-settings-card-head p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.pos-settings-card-head:only-child { margin-bottom: 0; }

.pos-settings-card-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.pos-settings-card-actions a { text-decoration: none; }

.pos-settings-fields { max-width: 720px; }

.pos-settings-facts td:first-child {
    width: 40%;
    color: #6b7280;
}

.pos-settings-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #f5f7fb;
    border: 1px dashed #c7d2e8;
    border-radius: 12px;
    color: #374151;
    font-size: 0.86rem;
}

.pos-settings-note a {
    flex-shrink: 0;
    text-decoration: none;
}

.pos-settings-notice {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    border-radius: 10px;
    color: #1e3a8a;
    font-size: 0.86rem;
}

.pos-card-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.pos-card-status strong { display: block; font-size: 0.95rem; }

.pos-card-status small { color: #6b7280; font-size: 0.8rem; }

.pos-card-status-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f59e0b;
}

.pos-card-status.ready {
    background: #ecfdf3;
    border-color: #abefc6;
}

.pos-card-status.ready .pos-card-status-dot { background: #12b76a; }

.pos-setup-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.pos-setup-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}

.pos-setup-steps strong { display: block; font-size: 0.84rem; }

.pos-setup-steps small {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.76rem;
}

.pos-setup-mark {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
}

.pos-setup-steps li.current {
    border-color: #b7c7e6;
    box-shadow: 0 6px 16px rgba(0, 0, 139, 0.08);
}

.pos-setup-steps li.current .pos-setup-mark {
    background: var(--et-header-gold, #00008b);
    color: #fff;
}

.pos-setup-steps li.done .pos-setup-mark {
    background: #ecfdf3;
    color: #067647;
}

.pos-setup-steps li.locked { opacity: 0.6; }

.pos-product-form {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .pos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pos-body { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }
    .pos-dash-grid,
    .pos-kanban,
    .pos-setup-steps,
    .pos-chart-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pos-settings-body { grid-template-columns: 1fr; }
    .pos-settings-nav {
        flex-direction: row;
        align-items: center;
        max-height: none;
        overflow-x: auto;
        padding: 0.5rem 0.75rem;
        border-right: 0;
        border-bottom: 1px solid #eef0f4;
        z-index: 1;
    }
    .pos-settings-group,
    .pos-settings-link small { display: none; }
    .pos-settings-link {
        flex-shrink: 0;
        border-left: 0;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
    }
    .pos-settings-link.active { border-bottom-color: var(--et-header-gold, #00008b); }
    .pos-settings-panel { padding: 1rem; }
}

@media (max-width: 720px) {
    .pos-dash-grid,
    .pos-kanban,
    .pos-setup-steps,
    .pos-chart-split,
    .pos-invoice-review,
    .pos-invoice-review:has(.pos-invoice-source) { grid-template-columns: 1fr; }
    .pos-manage-bar { flex-wrap: wrap; }
    .pos-report-tools { margin-left: 0; width: 100%; }
    .pos-report-table { display: block; overflow-x: auto; }
    .pos-reports { grid-template-columns: 1fr; }
    .pos-manage-bar input[type="search"] { margin-left: 0; text-align: left; }
    .pos-settings-card-head,
    .pos-settings-note { flex-direction: column; align-items: stretch; }
}

.nina-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 1.15rem;
    border: none;
    border-radius: 999px;
    background: #1b6ec2;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    cursor: pointer;
}

.nina-launcher.open {
    padding: 0;
    font-size: 1.5rem;
}

.nina-unread {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ef4444;
}

.nina-window {
    position: fixed;
    right: 1.25rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 2.5rem));
    height: min(36rem, calc(100vh - 7.5rem));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.nina-window-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #1b6ec2;
    color: #fff;
}

.nina-window-head div {
    display: grid;
    flex: 1;
}

.nina-window-head small {
    opacity: 0.85;
}

.nina-avatar {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: #fff;
    color: #1b6ec2;
    font-weight: 700;
}

.nina-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nina-log {
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding: 0.9rem;
    overflow-y: auto;
    background: #f8f9fb;
}

.nina-exchange {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nina-bubble {
    max-width: 85%;
    margin: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 14px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.nina-question {
    align-self: flex-end;
    background: #1b6ec2;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.nina-answer,
.nina-thinking {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.nina-answer p {
    margin: 0;
}

.nina-thinking {
    color: #4b5563;
    font-style: italic;
}

.nina-error {
    align-self: flex-start;
    background: #fde8e6;
    color: #b42318;
}

.nina-based-on {
    display: block;
    margin-top: 0.4rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.nina-stopped {
    align-self: flex-start;
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.nina-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nina-suggestions button {
    padding: 0.35rem 0.7rem;
    border: 1px solid #1b6ec2;
    border-radius: 999px;
    background: #fff;
    color: #1b6ec2;
    font-size: 0.85rem;
    cursor: pointer;
}

.nina-refusal {
    margin: 0;
    padding: 0.45rem 0.9rem;
    background: #fde8e6;
    color: #b42318;
    font-size: 0.85rem;
}

.nina-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.nina-compose input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
}

@media (max-width: 640px) {
    .nina-window {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        height: calc(100vh - 6.5rem);
    }
}
