@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-navbar: #111216;
    --bg-main: #17181c;
    --bg-card: #1e2025;
    --bg-input: #27292f;
    --line: rgba(255, 255, 255, 0.07);
    --line-light: rgba(255, 255, 255, 0.035);
    --line-strong: rgba(255, 255, 255, 0.13);
    --subtle-fill: rgba(255, 255, 255, 0.04);
    --subtle-fill-hover: rgba(255, 255, 255, 0.08);

    --neon-pink: #ff007f;
    --neon-pink-hover: #dc006e;
    --neon-pink-soft: rgba(255, 0, 127, 0.09);
    --neon-pink-disabled: #873452;

    --neon-cyan: #00ffff;
    --neon-cyan-soft: rgba(0, 255, 255, 0.05);
    --neon-cyan-border: rgba(0, 255, 255, 0.24);
    --neon-cyan-focus: rgba(0, 255, 255, 0.54);

    --text-light: #f1f2f4;
    --text-secondary: #d4d8e0;
    --text-muted: #a0a5b1;
    --text-dim: #878e9d;
    --text-placeholder: #858c99;

    --success: #64d29e;
    --warning: #eec169;
    --danger: #ff7e8f;

    --radius-card: 10px;
    --radius-row: 8px;
    --radius-control: 7px;
    --radius-badge: 5px;
    --radius-modal: 14px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
}

[hidden] {
    display: none !important;
}

button, input, select, textarea {
    font-family: inherit;
    touch-action: manipulation;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* --- App Shell --- */
.app-shell {
    height: 100dvh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    overflow: hidden;
    position: relative;
}

/* --- Topbar --- */
.topbar {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--line);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.brand-lockup.large {
    gap: 12px;
}

.brand-mark {
    width: 34px;
    height: 36px;
    border-radius: 9px;
    background-color: var(--neon-pink-soft);
    color: var(--neon-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.brand-lockup.large .brand-mark {
    width: 46px;
    height: 48px;
    border-radius: 12px;
    font-size: 25px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-light);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-lockup.large .brand-title {
    font-size: 24px;
}

.brand-subtitle {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.25;
}

.brand-lockup.large .brand-subtitle {
    font-size: 12.5px;
}

.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 34px;
}

.sync-pill.state-ok {
    color: var(--success);
    background-color: rgba(100, 210, 158, 0.12);
    border-color: rgba(100, 210, 158, 0.35);
}

.sync-pill.state-pending {
    color: var(--warning);
    background-color: rgba(238, 193, 105, 0.12);
    border-color: rgba(238, 193, 105, 0.35);
}

.sync-pill.state-offline {
    color: var(--danger);
    background-color: rgba(255, 126, 143, 0.12);
    border-color: rgba(255, 126, 143, 0.35);
}

.sync-pill.state-working {
    color: var(--neon-cyan);
    background-color: rgba(0, 255, 255, 0.12);
    border-color: rgba(0, 255, 255, 0.35);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.icon-btn-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-control);
    background-color: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn-box:active {
    background-color: var(--subtle-fill-hover);
}

/* --- Main Tab Stack --- */
.tab-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.tab-pane {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.tab-pane.active {
    display: flex;
}

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

/* --- Page Header --- */
.page-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.page-header-left {
    min-width: 0;
    flex: 1;
}

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    line-height: 1.2;
}

.section-title {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.7px;
    color: var(--text-light);
    line-height: 1.2;
}

.section-desc {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    background-color: var(--bg-navbar);
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    flex-shrink: 0;
}

.nav-item {
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-control);
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    min-height: 48px;
}

.nav-item.active {
    background-color: var(--neon-cyan-soft);
    color: var(--neon-cyan);
}

.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.nav-badge.pink {
    background-color: var(--neon-pink);
    color: #fff;
}

.nav-badge.warning {
    background-color: var(--warning);
    color: var(--bg-navbar);
}

.nav-label {
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-item.active .nav-label {
    font-weight: 600;
}

/* --- Cards & Badges --- */
.web-card {
    background-color: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
}

.web-card.row-card {
    border-radius: var(--radius-row);
    padding: 12px 14px;
}

.web-card.clickable {
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.web-card.clickable:active {
    background-color: #24272e;
}

.web-card.in-cart {
    background-color: #21252c;
    border-color: var(--neon-cyan-border);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: var(--radius-badge);
    background-color: var(--subtle-fill);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--radius-badge);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* --- Form Controls & Buttons --- */
.field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #c1c6d0;
    margin-bottom: 6px;
}

.micro-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text-light);
    margin: 0;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
}

.input-action-right {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.form-input, .form-select {
    width: 100%;
    min-height: 44px;
    background-color: var(--bg-input);
    color: var(--text-light);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.form-input.has-left {
    padding-left: 36px;
}

.form-input.has-prefix {
    padding-left: 26px;
}

.form-input.has-right {
    padding-right: 40px;
}

.form-input::placeholder {
    color: var(--text-placeholder);
}

.form-input:focus, .form-select:focus {
    border-color: var(--neon-cyan-focus);
}

.btn {
    min-height: 44px;
    border-radius: var(--radius-control);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-sm {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--neon-pink);
    color: #fff;
}

.btn-primary:active {
    background-color: var(--neon-pink-hover);
}

.btn-primary:disabled {
    background-color: var(--neon-pink-disabled);
    color: #d9c2cc;
    cursor: not-allowed;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--line-strong);
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-outline:active {
    background-color: var(--subtle-fill-hover);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--bg-navbar);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    min-height: 40px;
    padding: 8px 12px;
}

.btn-pill-danger {
    border-radius: var(--radius-badge);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--danger);
    background-color: rgba(255, 126, 143, 0.1);
    border: 1px solid rgba(255, 126, 143, 0.3);
    cursor: pointer;
}

.divider {
    height: 1px;
    background-color: var(--line);
    border: none;
    margin: 0;
}

.divider.light {
    background-color: var(--line-light);
}

/* --- Chips & Lists --- */
.search-bar-box {
    padding: 12px 16px 8px;
    flex-shrink: 0;
}

.chips-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 16px 8px;
    flex-shrink: 0;
    scrollbar-width: none;
}

.chips-strip::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background-color: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 32px;
}

.filter-chip.selected {
    background-color: var(--neon-cyan-soft);
    border-color: var(--neon-cyan-border);
    color: var(--neon-cyan);
    font-weight: 600;
}

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

.list-stack {
    padding: 4px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Sales Product Row & Checkout Panel --- */
.prod-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prod-main {
    flex: 1;
    min-width: 0;
}

.prod-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-light);
    word-break: break-word;
}

.web-card.in-cart .prod-name {
    font-weight: 600;
}

.prod-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.prod-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.prod-price {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-light);
}

.web-card.in-cart .prod-price {
    color: var(--neon-cyan);
}

.stepper-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stepper-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
}

.stepper-btn.accent {
    background-color: var(--neon-cyan-soft);
    border-color: var(--neon-cyan-border);
    color: var(--neon-cyan);
}

.stepper-qty {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.pos-checkout-panel {
    background-color: var(--bg-navbar);
    border-top: 1px solid var(--line);
    padding: 12px 16px 14px;
    flex-shrink: 0;
}

.shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shipping-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

.switch-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    display: inline-block;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;
    background-color: #454a55;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background-color: var(--text-light);
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.switch-toggle input:checked + .switch-slider {
    background-color: var(--neon-cyan);
}

.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(20px);
    background-color: var(--bg-navbar);
}

.payment-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pay-pill {
    height: 38px;
    border-radius: var(--radius-control);
    border: 1px solid var(--line-strong);
    background-color: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.pay-pill.selected {
    background-color: var(--neon-cyan-soft);
    border-color: var(--neon-cyan-border);
    color: var(--neon-cyan);
    font-weight: 600;
}

.mixed-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.mixed-feedback {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 500;
}

.pos-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.pos-total-amount {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--text-light);
}

/* --- Inventory & KPIs --- */
.summary-strip {
    padding: 12px 16px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.summary-strip strong {
    color: var(--text-light);
    font-weight: 600;
}

.summary-strip .warn-text,
.summary-strip .warn-text strong {
    color: var(--warning);
}

.inv-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
    align-items: start;
}

.kpi-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 16px 12px;
}

.kpi-card {
    padding: 12px;
}

.kpi-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-light);
}

/* --- Alert Boxes --- */
.alert-box {
    padding: 12px 13px;
    border-radius: var(--radius-row);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.4;
}

.alert-warning {
    background-color: rgba(238, 193, 105, 0.1);
    border-color: rgba(238, 193, 105, 0.3);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(255, 126, 143, 0.1);
    border-color: rgba(255, 126, 143, 0.35);
    color: var(--danger);
}

.alert-success {
    background-color: rgba(100, 210, 158, 0.1);
    border-color: rgba(100, 210, 158, 0.35);
    color: var(--success);
}

.alert-info {
    background-color: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    color: var(--neon-cyan);
}

/* --- Action Cards (Incorporaciones) & Sub-views --- */
.action-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.action-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.subview-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.subview-appbar {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--line);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.subview-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-light);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Empty State --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--subtle-fill);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 6px;
}

.empty-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    max-width: 290px;
}

/* --- Login Overlay --- */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

/* --- Modals & Bottom Sheets --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background-color: rgba(0, 0, 0, 0.68);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-backdrop.center-dialog {
    align-items: center;
    padding: 20px;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 90dvh;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-modal) var(--radius-modal) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dialog-card {
    width: 100%;
    max-width: 400px;
    max-height: 85dvh;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sheet-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.sheet-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-light);
    margin: 4px 0 0;
}

.sheet-body {
    padding: 16px 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dialog-actions {
    padding: 0 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* --- Toasts --- */
.toast-host {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    width: calc(100% - 28px);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-item {
    background-color: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-row);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* --- Sync Queue Rows --- */
.sync-queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* --- Combo Builder Helpers --- */
.qty-stepper-box {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
}

.qty-stepper-box button {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 6px 9px;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.qty-stepper-box button:disabled {
    color: var(--text-dim);
    cursor: default;
}

.qty-stepper-box span {
    min-width: 26px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--neon-cyan);
}
