:root {
    --ink: #17211e;
    --muted: #66736f;
    --line: #d9e3df;
    --line-strong: #bdcbc5;
    --paper: #f3f6f5;
    --surface: #ffffff;
    --surface-soft: #f8faf9;
    --primary: #0f766e;
    --primary-strong: #0b5f59;
    --primary-soft: #e6f6f2;
    --primary-contrast: #ffffff;
    --primary-focus: rgba(15, 118, 110, .16);
    --accent: #d95f4b;
    --accent-soft: #fff0ed;
    --accent-contrast: #ffffff;
    --green: #15803d;
    --green-soft: #ecfdf3;
    --red: #b42318;
    --red-soft: #fff1f0;
    --amber: #b45309;
    --amber-soft: #fff8e7;
    --blue: #2563eb;
    --sidebar: #14201d;
    --sidebar-contrast: #ffffff;
    --sidebar-muted: #a9b7b1;
    --sidebar-width: 264px;
    --touch: 46px;
    --shadow: 0 10px 28px rgba(23, 33, 30, .07);
    --shadow-strong: 0 18px 48px rgba(23, 33, 30, .16);
}

html[data-theme="light"] {
    color-scheme: light;
    background: var(--paper);
    --bulma-scheme-main: #ffffff;
    --bulma-scheme-main-bis: #f8faf9;
    --bulma-text: #17211e;
    --bulma-text-strong: #17211e;
    --bulma-body-background-color: #f3f6f5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-strong);
}

.title,
.subtitle,
.label,
.content,
.table,
.panel,
.modal-card-title {
    color: var(--ink) !important;
}

.title {
    margin-bottom: .3rem !important;
}

.title.is-2 {
    font-size: 2rem;
}

.title.is-3 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.title.is-4 {
    font-size: 1.35rem;
}

.title.is-5 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.subtitle {
    margin-top: 0 !important;
    color: var(--muted) !important;
}

.label {
    margin-bottom: .4rem;
    font-size: .84rem;
    font-weight: 750;
}

.help {
    color: var(--muted) !important;
}

.button,
.input,
.select select,
.textarea,
.file-input-control {
    min-height: var(--touch);
    border-radius: 8px;
    border-color: var(--line-strong);
    box-shadow: none;
    font: inherit;
}

.input,
.select select,
.textarea,
.file-input-control {
    width: 100%;
    background: var(--surface) !important;
    color: var(--ink) !important;
}

.input::placeholder,
.textarea::placeholder {
    color: #8a9691;
    opacity: 1;
}

.input:focus,
.select select:focus,
.textarea:focus,
.file-input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

.file-input-control {
    padding: .55rem .7rem;
    border: 1px solid var(--line-strong);
}

.file-input-control::file-selector-button {
    min-height: 32px;
    margin-right: .7rem;
    padding: .35rem .7rem;
    border: 0;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding-inline: .9rem;
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 750;
    white-space: normal;
}

.button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.button.is-primary,
.button.is-link {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-contrast);
}

.button.is-primary:hover:not(:disabled),
.button.is-link:hover:not(:disabled) {
    border-color: var(--primary-strong);
    background: var(--primary-strong);
    color: var(--primary-contrast);
}

.button.is-dark {
    border-color: var(--sidebar);
    background: var(--sidebar);
    color: #fff;
}

.button.is-light {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--ink);
}

.button.is-success {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.button.is-warning {
    border-color: #f1b94f;
    background: #f7c760;
    color: #4d3100;
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

.button.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.button.is-loading::after,
.icon-button.is-loading::after,
.product-button.is-loading::after {
    width: 18px;
    height: 18px;
    position: absolute;
    inset: 50% auto auto 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: app-spin .7s linear infinite;
}

.app-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button {
    width: var(--touch);
    height: var(--touch);
    min-width: var(--touch);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    position: relative;
}

.icon-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: .7rem 1rem;
    border-radius: 8px;
    background: var(--sidebar);
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    color: var(--sidebar-contrast);
    overflow: hidden;
}

.sidebar-brand {
    min-height: 78px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sidebar-brand > a {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--sidebar-contrast);
}

.sidebar-brand img,
.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    object-fit: contain;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-weight: 900;
}

.brand-mark.large {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 1.1rem;
}

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

.sidebar-brand strong {
    font-size: .98rem;
}

.sidebar-brand small {
    margin-top: .15rem;
    color: var(--sidebar-muted);
    font-size: .76rem;
}

.sidebar-close {
    display: none;
    border-color: rgba(255, 255, 255, .14);
    background: transparent;
    color: var(--sidebar-contrast);
}

.sidebar-nav {
    flex: 1;
    padding: .75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-group + .nav-group {
    margin-top: .9rem;
}

.nav-group > p {
    margin: 0 0 .3rem .7rem;
    color: var(--sidebar-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: rgba(255, 255, 255, .09);
    color: var(--sidebar-contrast);
}

.sidebar-link.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-link .app-icon {
    width: 19px;
    height: 19px;
}

.sidebar-footer {
    padding: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.tutorial-launch {
    position: relative;
}

.has-unseen-tutorial::after {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    right: 8px;
    border: 2px solid var(--sidebar);
    border-radius: 50%;
    background: #f3bd4c;
    content: "";
}

.sidebar-user {
    min-width: 0;
    margin-top: .55rem;
    padding: .65rem .4rem .1rem;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    gap: .55rem;
    align-items: center;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--primary-contrast);
    font-size: .78rem;
    font-weight: 900;
}

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

.sidebar-user strong {
    color: var(--sidebar-contrast);
    font-size: .78rem;
}

.sidebar-user small {
    color: var(--sidebar-muted);
    font-size: .7rem;
}

.sidebar-user .icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-color: rgba(255, 255, 255, .1);
    background: transparent;
    color: var(--sidebar-contrast);
}

.app-workspace {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.app-topbar,
.mobile-bottom-nav,
.nav-scrim {
    display: none;
}

.app-main {
    min-width: 0;
    padding: 1.35rem;
}

.app-content {
    width: min(100%, 1540px);
    min-width: 0;
    margin: 0 auto;
    padding: 0 !important;
}

.standalone-main {
    min-height: 100vh;
    padding: 1.25rem;
}

.standalone-main > .container {
    padding: 0;
}

.session-bar {
    min-height: 64px;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
}

.session-bar > a:first-child {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
}

.session-bar > span {
    margin-left: auto;
    color: var(--muted);
    font-size: .85rem;
}

.session-bar .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: .78rem;
}

.page-header {
    min-width: 0;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.page-header.compact {
    align-items: center;
}

.page-header > div:first-child {
    min-width: 0;
}

.page-kicker {
    margin: 0 0 .22rem;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
}

.app-panel,
.box.app-box,
.app-box {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface) !important;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.app-panel + .app-panel {
    margin-top: 1rem;
}

.panel-heading-row,
.section-heading {
    min-width: 0;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.panel-heading-row h2,
.panel-heading-row p,
.section-heading h2,
.section-heading p {
    margin: 0 !important;
}

.panel-heading-row p,
.section-heading p {
    color: var(--muted);
    font-size: .82rem;
}

.page-section {
    margin-top: 1.3rem;
}

.app-notification {
    margin-bottom: 1rem !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow);
}

.app-notification.is-success {
    border-left: 4px solid var(--green);
}

.app-notification.is-danger {
    border-left: 4px solid var(--red);
}

.app-notification.is-warning {
    border-left: 4px solid var(--amber);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .8rem;
}

.metric {
    min-height: 138px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: start;
    gap: .3rem .75rem;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(23, 33, 30, .04);
}

.metric > span:not(.metric-icon),
.metric small {
    color: var(--muted);
}

.metric > span:not(.metric-icon) {
    font-size: .84rem;
    font-weight: 650;
}

.metric-icon {
    width: 36px;
    height: 36px;
    grid-column: 2;
    grid-row: 1 / span 2;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.metric strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1.1;
}

.metric small {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: .35rem;
    font-size: .76rem;
}

.metric-lowStock .metric-icon {
    background: var(--amber-soft);
    color: var(--amber);
}

.metric-todaySales .metric-icon {
    background: #eef4ff;
    color: var(--blue);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .7rem;
}

.quick-actions > a {
    min-width: 0;
    min-height: 76px;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    gap: .7rem;
    align-items: center;
    background: var(--surface);
    color: var(--ink);
}

.quick-actions > a:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.quick-actions strong,
.quick-actions small {
    display: block;
}

.quick-actions small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .78rem;
}

.quick-action-arrow {
    color: var(--muted);
}

.summary-strip {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--surface);
    box-shadow: var(--shadow);
}

.summary-strip > div {
    min-width: 0;
    padding: .9rem 1rem;
}

.summary-strip > div + div {
    border-left: 1px solid var(--line);
}

.summary-strip span,
.summary-strip strong {
    display: block;
}

.summary-strip span {
    color: var(--muted);
    font-size: .78rem;
}

.summary-strip strong {
    margin-top: .2rem;
    font-size: 1.35rem;
}

.summary-strip .has-alert strong {
    color: var(--amber);
}

.data-row {
    min-width: 0;
    padding: .7rem 0;
    border-bottom: 1px solid #edf1ef;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .15rem .75rem;
    align-items: center;
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row > span,
.data-row > strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.data-row small {
    grid-column: 1 / -1;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.empty-state {
    min-height: 108px;
    padding: 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .25rem;
    color: var(--muted);
    text-align: center;
}

.empty-state.compact {
    min-height: 72px;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state-icon {
    width: 28px;
    height: 28px;
    margin-bottom: .2rem;
    color: var(--primary);
}

.status-pill,
.age-pill,
.item-count-pill,
.stock-alert {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.status-pill {
    min-height: 28px;
    padding: .35rem .65rem;
    background: #edf1ef;
    color: var(--ink);
}

.status-pill[data-status="open"] {
    background: #eef4ff;
    color: #1d4ed8;
}

.status-pill[data-status="sent"] {
    background: var(--amber-soft);
    color: var(--amber);
}

.status-pill[data-status="in_progress"] {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-pill[data-status="ready"],
.status-pill[data-status="paid"] {
    background: var(--green-soft);
    color: var(--green);
}

.status-pill[data-status="cancelled"] {
    background: var(--red-soft);
    color: var(--red);
}

.status-pill.status-large {
    min-height: 36px;
    padding: .5rem .85rem;
    font-size: .8rem;
}

.field-grid {
    display: grid;
    gap: .8rem;
}

.field-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid .field {
    margin-bottom: 0;
}

.login-shell {
    min-height: calc(100vh - 2.5rem);
    display: grid;
    place-items: center;
}

.login-panel {
    width: min(430px, 100%);
}

.login-brand {
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.login-intro,
.login-help {
    color: var(--muted);
}

.login-intro {
    margin: 0 0 1rem;
}

.login-help {
    margin: .85rem .35rem 0;
    font-size: .76rem;
    text-align: center;
}

.login-form {
    padding: 1.1rem;
}

.password-field {
    position: relative;
}

.password-field .input {
    padding-right: 54px;
}

.password-field .icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    position: absolute;
    top: 4px;
    right: 4px;
    border: 0;
    background: transparent;
}

.branch-shell {
    width: min(900px, 100%);
    margin: 2rem auto;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: .8rem;
}

.branch-card {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.branch-icon {
    width: 76px;
    height: 62px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--branch-soft, var(--primary-soft));
    color: var(--branch-primary, var(--primary));
}

.branch-card-image {
    width: 76px;
    height: 62px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
}

.branch-card-image.is-photo {
    object-fit: cover;
}

.branch-card-image.is-logo {
    padding: .35rem;
    object-fit: contain;
}

.branch-card strong,
.branch-card small {
    display: block;
}

.branch-card small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.pos-view-switch {
    display: none;
}

.pos-shell {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(390px, 1.2fr) minmax(330px, .85fr) minmax(320px, 360px);
    gap: 1rem;
    align-items: start;
}

.pos-shell > * {
    min-width: 0;
}

.pos-left > .panel-heading-row {
    min-height: 44px;
}

.floor-wrap,
.designer-canvas-wrap {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

#floor-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 900 / 520;
    display: block;
    background: var(--surface);
    cursor: pointer;
}

.open-orders-panel {
    margin-top: 1rem;
}

.open-orders {
    display: grid;
    gap: .5rem;
}

.open-order {
    width: 100%;
    min-height: 64px;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.open-order:hover,
.open-order.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.open-order strong,
.open-order small {
    display: block;
}

.open-order small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .74rem;
}

.open-order-total {
    white-space: nowrap;
}

.pos-menu,
.pos-ticket,
.designer-tools {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pos-ticket {
    position: sticky;
    top: 1rem;
}

.search-field {
    min-height: var(--touch);
    padding: 0 .75rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--surface);
    color: var(--muted);
}

.search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.app-tabs {
    margin: .7rem 0 !important;
    overflow: hidden;
}

.app-tabs ul {
    width: 100%;
    border-bottom: 0 !important;
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-tabs li {
    flex: 0 0 auto;
}

.app-tabs button {
    min-height: 38px;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--ink);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.app-tabs li.is-active button {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .6rem;
    max-height: calc(100vh - 245px);
    padding-right: .2rem;
    overflow-y: auto;
}

.product-button {
    min-width: 0;
    min-height: 82px;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 26px;
    gap: .6rem;
    align-items: center;
    position: relative;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.product-button:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.product-button img,
.product-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 7px;
    object-fit: cover;
}

.product-placeholder {
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
}

.product-copy {
    min-width: 0;
}

.product-copy strong,
.product-copy small {
    display: block;
}

.product-copy strong {
    overflow-wrap: anywhere;
}

.product-copy small {
    margin-top: .25rem;
    color: var(--muted);
    font-size: .76rem;
}

.product-add {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.product-add .app-icon {
    width: 16px;
    height: 16px;
}

.ticket-empty {
    min-height: 180px;
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}

.ticket-head p:not(.page-kicker) {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.ticket-items {
    max-height: 34vh;
    margin: .9rem 0;
    display: grid;
    gap: .55rem;
    overflow-y: auto;
}

.ticket-item {
    min-width: 0;
    padding-bottom: .55rem;
    border-bottom: 1px solid #edf1ef;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .6rem;
}

.ticket-item strong,
.ticket-item small {
    display: block;
}

.ticket-item small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .74rem;
}

.ticket-total {
    margin: .9rem 0;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.ticket-total strong {
    font-size: 1.35rem;
}

.payment-panel {
    margin: .85rem 0;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.payment-panel h3 {
    margin: 0 0 .7rem;
    font-size: .9rem;
    font-weight: 800;
}

.cash-received-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}

.cash-change {
    margin-top: .45rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}

.cash-change.is-short {
    color: var(--red);
}

.cash-change.is-ready {
    color: var(--green);
}

.permission-note {
    margin: .8rem 0;
    padding: .7rem;
    border-left: 3px solid var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: .8rem;
}

.ticket-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.ticket-actions-grid .action-send,
.ticket-actions-grid .action-pay {
    grid-column: 1 / -1;
}

.modal-background {
    background: rgba(10, 20, 17, .58);
}

.modal-card {
    width: min(460px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.modal-card-head,
.modal-card-body,
.modal-card-foot {
    border-color: var(--line);
    background: var(--surface);
}

.modal-card-head {
    justify-content: space-between;
}

.modal-card-foot {
    justify-content: flex-end;
}

.production-board {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    align-items: start;
}

.production-station {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-soft);
}

.station-header {
    min-height: 64px;
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--surface);
}

.station-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.station-bar .station-icon {
    background: #eef4ff;
    color: var(--blue);
}

.station-other .station-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.station-header h2,
.station-header p {
    margin: 0;
}

.station-header h2 {
    font-size: 1rem;
    font-weight: 850;
}

.station-header p {
    color: var(--muted);
    font-size: .76rem;
}

.station-orders {
    padding: .65rem;
}

.production-order {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(23, 33, 30, .05);
}

.production-order + .production-order {
    margin-top: .65rem;
}

.production-order > header {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    align-items: flex-start;
}

.production-order > header p {
    margin: .2rem 0 0;
    color: var(--muted);
    font-size: .74rem;
}

.production-order-title {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.age-pill {
    min-height: 24px;
    padding: .3rem .5rem;
    background: var(--surface-soft);
    color: var(--muted);
}

.age-pill.is-late {
    background: var(--red-soft);
    color: var(--red);
}

.production-items {
    margin: .7rem 0;
    display: grid;
    gap: .7rem;
}

.production-line {
    min-width: 0;
    padding-top: .7rem;
    border-top: 1px solid #edf1ef;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
}

.production-product > strong {
    display: flex;
    align-items: center;
    gap: .45rem;
    overflow-wrap: anywhere;
}

.quantity-badge {
    min-width: 26px;
    height: 26px;
    padding: 0 .3rem;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--sidebar);
    color: #fff;
    font-size: .76rem;
}

.production-product .note {
    margin: .35rem 0;
    padding: .4rem .5rem;
    border-left: 3px solid #e4a72b;
    background: var(--amber-soft);
    color: #5f4206;
    font-size: .78rem;
}

.production-item-actions {
    display: flex;
    gap: .4rem;
}

.production-item-actions .button,
.production-order footer .button {
    min-height: 44px;
    font-size: .76rem;
}

.production-order footer {
    padding-top: .65rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    align-items: center;
}

.production-order footer > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
}

.production-order footer > div {
    display: flex;
    gap: .4rem;
}

.station-empty {
    background: var(--surface);
}

.cash-summary-band {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.cash-summary-band > div {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cash-summary-band span,
.cash-summary-band small,
.cash-summary-band strong {
    display: block;
}

.cash-summary-band span,
.cash-summary-band small {
    color: var(--muted);
}

.cash-summary-band span {
    font-size: .8rem;
    font-weight: 650;
}

.cash-summary-band strong {
    margin: .3rem 0;
    font-size: 1.75rem;
}

.cash-summary-band small {
    font-size: .73rem;
}

.cash-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    align-items: start;
}

.cash-workspace > *,
.cash-history-grid > * {
    min-width: 0;
}

.cash-stack {
    display: grid;
    gap: .9rem;
    align-content: start;
}

.cash-history-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.cash-workspace .app-panel {
    width: 100%;
    margin: 0;
}

.cash-breakdown {
    display: grid;
    gap: .25rem;
}

.cash-breakdown > div {
    padding: .45rem 0;
    border-bottom: 1px solid #edf1ef;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.cash-breakdown .total {
    margin-top: .35rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--primary-soft);
}

.cash-difference-preview {
    margin: .3rem 0 .9rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    font-weight: 800;
}

.cash-difference-preview.is-balanced {
    border-color: #a8dfb9;
    background: var(--green-soft);
    color: var(--green);
}

.cash-difference-preview.is-over {
    border-color: #f1d38e;
    background: var(--amber-soft);
    color: var(--amber);
}

.cash-difference-preview.is-short {
    border-color: #efbbb6;
    background: var(--red-soft);
    color: var(--red);
}

.inventory-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.inventory-controls,
.inventory-data {
    min-width: 0;
}

.responsive-table {
    max-width: 100%;
}

.table {
    background: var(--surface) !important;
}

.table th {
    color: var(--muted) !important;
    font-size: .72rem;
    text-transform: uppercase;
}

.table th,
.table td {
    border-color: #e8eeeb !important;
    vertical-align: middle;
}

.is-selected-warning {
    background: var(--amber-soft) !important;
}

.stock-alert {
    min-height: 22px;
    margin-left: .4rem;
    padding: .25rem .45rem;
    background: #f7d99d;
    color: #744b00;
}

.designer-shell {
    min-width: 0;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.designer-tools {
    position: sticky;
    top: 1rem;
}

.shape-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
}

.shape-picker .button {
    justify-content: flex-start;
}

.shape-swatch {
    width: 22px;
    height: 16px;
    border: 2px solid currentColor;
    display: inline-block;
}

.shape-swatch.is-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.shape-swatch.is-poly {
    width: 0;
    height: 0;
    border-width: 0 11px 18px;
    border-style: solid;
    border-color: transparent transparent currentColor;
}

.designer-actions {
    display: grid;
    gap: .5rem;
}

.designer-canvas-wrap {
    position: relative;
    overflow: auto;
    overscroll-behavior: contain;
}

.canvas-hint {
    min-height: 38px;
    padding: .6rem .75rem;
    position: sticky;
    left: 0;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .75rem;
}

#designer-canvas {
    width: 100%;
    min-width: 820px;
    height: auto;
    display: block;
    background: var(--surface);
    touch-action: none;
    cursor: grab;
}

#designer-canvas:active {
    cursor: grabbing;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .85rem;
}

.qr-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    break-inside: avoid;
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-brand {
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: .3rem;
}

.qr-brand img {
    max-width: 96px;
    max-height: 46px;
    object-fit: contain;
}

.qr-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: .78rem;
}

.qr-card h2 {
    margin: .55rem 0;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 900;
}

.qr-card p {
    margin: .45rem 0;
    color: var(--muted);
    font-size: .82rem;
}

.qr-card small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.qr-code {
    margin: .6rem 0;
    display: grid;
    place-items: center;
}

.qr-code svg {
    width: min(172px, 100%);
    height: auto;
}

.qr-actions {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}

.qr-actions form,
.qr-actions .button {
    width: 100%;
}

.ticket-config-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(390px, 480px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.ticket-settings-panel {
    min-width: 0;
}

.ticket-width-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.ticket-width-options label {
    min-height: 72px;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .15rem .4rem;
    align-content: center;
    cursor: pointer;
}

.ticket-width-options label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.ticket-width-options input {
    margin-top: .2rem;
    accent-color: var(--primary);
}

.ticket-width-options span {
    grid-column: 2;
    color: var(--muted);
    font-size: .7rem;
}

.toggle-grid {
    margin: .8rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.toggle-control {
    min-height: 72px;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .6rem;
    align-items: center;
    cursor: pointer;
}

.toggle-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-track {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    position: relative;
    background: #c8d3ce;
    transition: background .16s ease;
}

.toggle-track::after {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    content: "";
    transition: transform .16s ease;
}

.toggle-control input:checked + .toggle-track {
    background: var(--primary);
}

.toggle-control input:checked + .toggle-track::after {
    transform: translateX(16px);
}

.toggle-control strong,
.toggle-control small {
    display: block;
}

.toggle-control small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .7rem;
}

.ticket-preview-area {
    min-width: 0;
}

.ticket-preview-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.ticket-preview-grid > div {
    min-width: 0;
}

.preview-label {
    margin: 0 0 .45rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.ticket-actions {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.print-ticket {
    width: min(var(--ticket-width, 80mm), 100%);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-family: Arial, sans-serif;
    box-shadow: var(--shadow);
}

.ticket-preview {
    max-width: 100%;
}

.ticket-logo {
    max-width: min(34mm, 60%);
    max-height: 22mm;
    margin: 0 auto .4rem;
    display: block;
    object-fit: contain;
}

.print-ticket header {
    margin-bottom: .7rem;
    padding-bottom: .7rem;
    border-bottom: 1px dashed #777;
    text-align: center;
}

.print-ticket h1 {
    margin: 0 0 .3rem;
    color: #111;
    font-size: 1.15rem;
    font-weight: 900;
}

.print-ticket p {
    margin: .12rem 0;
    color: #111;
    font-size: .82rem;
}

.print-ticket table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #111;
    font-size: .82rem;
}

.print-ticket th,
.print-ticket td {
    padding: .32rem 0;
    border-bottom: 1px solid #ddd;
    color: #111;
    vertical-align: top;
}

.print-ticket small {
    display: block;
    margin-top: .12rem;
}

.print-ticket .right {
    text-align: right;
}

.print-ticket footer {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px dashed #777;
}

.print-ticket footer div {
    display: flex;
    justify-content: space-between;
}

.print-ticket footer .total {
    margin-top: .3rem;
    font-size: 1.05rem;
    font-weight: 900;
}

.ticket-empty-line {
    color: var(--muted);
    text-align: center;
}

.segmented-tabs {
    min-height: 50px;
    margin-bottom: 1rem;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    background: var(--surface);
}

.admin-tabs {
    width: min(760px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segmented-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.segmented-tabs button.is-active {
    background: var(--primary);
    color: var(--primary-contrast);
}

.admin-form-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: start;
}

.branch-settings-form {
    min-width: 0;
}

.branch-settings-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    align-items: start;
}

.branch-settings-fields {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.branch-media-grid {
    margin-top: .8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.branch-media-control {
    min-width: 0;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
}

.branch-media-preview {
    width: 92px;
    height: 76px;
    border: 1px dashed var(--line-strong);
    border-radius: 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--surface-soft);
    color: var(--primary);
}

.branch-media-preview img {
    width: 100%;
    height: 100%;
}

.branch-media-preview.is-logo img {
    padding: .35rem;
    object-fit: contain;
}

.branch-media-preview.is-photo img {
    object-fit: cover;
}

.compact-check {
    margin-top: .45rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .72rem;
}

.branch-file-picker {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .45rem;
    align-items: center;
}

.branch-file-picker .button {
    min-height: 40px;
}

.branch-file-picker small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: .55rem;
}

.theme-preset-option {
    min-width: 0;
    min-height: 74px;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    cursor: pointer;
}

.theme-preset-option:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-focus);
}

.theme-preset-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-preset-option strong,
.theme-preset-option small {
    display: block;
}

.theme-preset-option small {
    margin-top: .12rem;
    color: var(--muted);
    font-size: .68rem;
}

.theme-preset-swatches {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.theme-preset-swatches i:nth-child(1) { background: var(--preset-primary); }
.theme-preset-swatches i:nth-child(2) { background: var(--preset-accent); }
.theme-preset-swatches i:nth-child(3) { background: var(--preset-sidebar); }

.theme-preset-custom {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
}

.branch-color-grid {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.branch-color-control {
    min-width: 0;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: .4rem;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 750;
}

.branch-color-control > span:last-child {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .45rem;
    align-items: center;
}

.branch-color-control input[type="color"] {
    width: 42px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
}

.branch-color-control code {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .72rem;
    text-overflow: ellipsis;
}

.branch-toggle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-live-preview {
    min-width: 0;
    position: sticky;
    top: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.branch-live-preview-heading {
    min-height: 48px;
    padding: .45rem .55rem .45rem .8rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.branch-preview-sidebar {
    min-height: 300px;
    padding: .8rem;
    background: var(--sidebar);
    color: var(--sidebar-contrast);
}

.branch-preview-brand {
    min-width: 0;
    padding-bottom: .75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--sidebar-contrast) 12%, transparent);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .6rem;
    align-items: center;
}

.branch-preview-brand img,
.branch-preview-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: contain;
}

.branch-preview-brand strong,
.branch-preview-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-preview-brand strong {
    color: var(--sidebar-contrast);
    font-size: .8rem;
}

.branch-preview-brand small {
    color: var(--sidebar-muted);
    font-size: .68rem;
}

.branch-preview-nav {
    margin-top: .8rem;
    display: grid;
    gap: .35rem;
}

.branch-preview-nav span {
    min-height: 38px;
    padding: .45rem .55rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--sidebar-muted);
    font-size: .73rem;
    font-weight: 700;
}

.branch-preview-nav span.is-active {
    background: color-mix(in srgb, var(--sidebar-contrast) 10%, transparent);
    color: var(--sidebar-contrast);
    box-shadow: inset 3px 0 0 var(--accent);
}

.branch-preview-customer {
    padding: .8rem;
    display: grid;
    gap: .65rem;
    background: var(--paper);
}

.branch-preview-photo {
    width: 100%;
    height: 118px;
    border-radius: 7px;
    object-fit: cover;
}

.branch-preview-customer-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
}

.branch-preview-logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
}

.branch-preview-customer-copy strong,
.branch-preview-customer-copy small {
    display: block;
}

.branch-preview-customer-copy small,
.branch-preview-customer p {
    color: var(--muted);
    font-size: .7rem;
}

.branch-preview-customer p {
    min-height: 2.1em;
    margin: 0;
}

.branch-preview-customer .button {
    width: 100%;
    pointer-events: none;
}

.settings-save-bar {
    margin-top: 1rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    position: sticky;
    bottom: .7rem;
    z-index: 15;
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.catalog-list {
    display: grid;
    gap: .5rem;
}

.catalog-row {
    min-width: 0;
    min-height: 66px;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
}

.catalog-row img,
.catalog-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    object-fit: cover;
}

.catalog-placeholder {
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
}

.catalog-row strong,
.catalog-row small {
    display: block;
}

.catalog-row small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .72rem;
}

.catalog-row.is-inactive {
    opacity: .55;
}

.branch-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .45rem;
}

.branch-checks label {
    min-height: 44px;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
}

.branch-checks input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.reports-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.audit-panel {
    grid-column: 1 / -1;
}

.ranking-row {
    min-width: 0;
    padding: .65rem 0;
    border-bottom: 1px solid #edf1ef;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: center;
}

.ranking-row > span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .74rem;
    font-weight: 900;
}

.ranking-row strong,
.ranking-row small {
    display: block;
}

.ranking-row small {
    color: var(--muted);
    font-size: .72rem;
}

.audit-list {
    display: grid;
}

.audit-row {
    min-width: 0;
    padding: .65rem 0;
    border-bottom: 1px solid #edf1ef;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
}

.audit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.audit-row strong,
.audit-row small {
    display: block;
}

.audit-row small,
.audit-row time {
    color: var(--muted);
    font-size: .72rem;
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 150;
    display: grid;
    gap: .5rem;
}

.toast {
    min-width: 250px;
    max-width: min(420px, calc(100vw - 2rem));
    padding: .8rem 1rem;
    border-radius: 8px;
    background: var(--sidebar);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.toast.is-error {
    background: var(--red);
}

.toast.is-success {
    background: var(--green);
}

.public-main {
    padding-bottom: 2rem;
}

.customer-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.customer-hero {
    min-height: 100px;
    margin-bottom: .8rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.customer-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
}

.customer-cover {
    width: 180px;
    height: 78px;
    border-radius: 7px;
    object-fit: cover;
}

.customer-hero p,
.customer-hero span {
    margin: 0;
    color: var(--muted);
}

.customer-hero .customer-welcome {
    max-width: 620px;
    margin-top: .3rem;
    display: block;
    color: var(--primary-strong);
    font-size: .76rem;
    font-weight: 650;
}

.customer-hero h1 {
    margin: .12rem 0;
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1.05;
    font-weight: 900;
}

.customer-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 1rem;
    align-items: start;
}

.customer-grid > * {
    min-width: 0;
}

.customer-toolbar {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: .45rem 0 .65rem;
    background: rgba(243, 246, 245, .96);
    backdrop-filter: blur(10px);
}

.customer-tabs {
    margin-bottom: .5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}

.customer-tabs a {
    min-height: var(--touch);
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
}

.customer-tabs a.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.customer-tabs a span {
    min-width: 22px;
    height: 22px;
    padding: 0 .3rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: .7rem;
}

.category-chips {
    margin-top: .5rem;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.category-chips button {
    min-height: 38px;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 0 0 auto;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
}

.category-chips button.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.customer-category > h2 {
    margin: .85rem 0 .55rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.customer-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: .7rem;
}

.customer-product {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: .65rem;
    align-content: start;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(23, 33, 30, .04);
}

.customer-product.without-image {
    grid-template-columns: minmax(0, 1fr);
}

.customer-product > img,
.customer-product-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 7px;
    object-fit: cover;
}

.customer-product-placeholder {
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
}

.customer-product-copy {
    min-width: 0;
}

.customer-product-copy > strong,
.customer-product-copy > span {
    display: block;
}

.customer-product-copy p {
    min-height: 1.1rem;
    margin: .15rem 0;
    color: var(--muted);
    font-size: .78rem;
}

.customer-product-copy > span {
    color: var(--primary);
    font-weight: 900;
}

.customer-product form {
    grid-column: 1 / -1;
}

.customer-add-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: .45rem;
}

.customer-add-row .input {
    text-align: center;
}

.customer-note {
    margin-top: .45rem;
}

.customer-note summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.customer-note .input {
    margin-top: .25rem;
}

.customer-cart {
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    position: sticky;
    top: .8rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.customer-cart h2,
.customer-cart p {
    margin: 0;
}

.customer-cart h2 {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
}

.item-count-pill {
    min-height: 28px;
    padding: .35rem .6rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.customer-cart-items {
    max-height: 46vh;
    display: grid;
    gap: .5rem;
    overflow-y: auto;
}

.customer-cart-items > div {
    min-width: 0;
    padding-bottom: .5rem;
    border-bottom: 1px solid #edf1ef;
    display: flex;
    justify-content: space-between;
    gap: .65rem;
}

.customer-cart-items small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
}

.customer-help {
    margin-top: .65rem !important;
    color: var(--muted);
    font-size: .76rem;
    text-align: center;
}

.customer-cart-bar {
    display: none;
}

.customer-error-shell {
    min-height: calc(100vh - 2.5rem);
    display: grid;
    place-items: center;
}

.customer-error {
    width: min(440px, 100%);
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    gap: .35rem;
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow);
}

.customer-error h1,
.customer-error p,
.customer-error span {
    margin: 0;
}

.customer-error h1 {
    font-size: 1.3rem;
}

.customer-error p,
.customer-error span {
    color: var(--muted);
}

.tutorial-layer {
    position: fixed;
    inset: 0;
    z-index: 140;
    pointer-events: none;
}

.tutorial-highlight {
    position: fixed;
    z-index: 141;
    border: 3px solid #5eead4;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(8, 18, 15, .68), 0 0 0 5px rgba(94, 234, 212, .18);
    transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

.tutorial-card {
    width: min(390px, calc(100vw - 24px));
    padding: 1rem;
    position: fixed;
    z-index: 142;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: var(--sidebar);
    color: #fff;
    box-shadow: var(--shadow-strong);
    pointer-events: auto;
}

.tutorial-card-head,
.tutorial-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.tutorial-counter {
    color: #9fb2aa;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tutorial-close {
    min-height: 36px;
    padding: .3rem .55rem;
    border: 0;
    background: transparent;
    color: #dce6e2;
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
}

.tutorial-card h2 {
    margin: .6rem 0 .35rem;
    color: #fff;
    font-size: 1.15rem;
}

.tutorial-card p {
    margin: 0;
    color: #c7d4cf;
    font-size: .88rem;
    line-height: 1.5;
}

.tutorial-progress {
    margin: .85rem 0;
    display: flex;
    gap: .3rem;
}

.tutorial-progress span {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    background: #41534d;
}

.tutorial-progress span.is-active {
    background: #5eead4;
}

.tutorial-actions {
    justify-content: flex-end;
}

.tutorial-actions .button {
    min-height: 40px;
}

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

@media (max-width: 1320px) {
    .production-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-config-layout {
        grid-template-columns: 1fr;
    }

    .ticket-preview-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 1180px) {
    .pos-view-switch {
        min-width: 0;
        margin-bottom: .8rem;
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: sticky;
        top: .5rem;
        z-index: 20;
        background: rgba(255, 255, 255, .96);
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px);
    }

    .pos-view-switch button {
        min-width: 0;
        min-height: 44px;
        padding: .35rem;
        border: 0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        position: relative;
        background: transparent;
        color: var(--muted);
        font: inherit;
        font-size: .78rem;
        font-weight: 800;
    }

    .pos-view-switch button.is-active {
        background: var(--primary);
        color: #fff;
    }

    .pos-view-switch b {
        min-width: 20px;
        height: 20px;
        padding: 0 .25rem;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .2);
        font-size: .66rem;
    }

    .pos-shell {
        display: block;
    }

    .pos-shell > [data-pos-pane] {
        display: none;
    }

    .pos-shell > [data-pos-pane].is-mobile-active {
        display: block;
    }

    .pos-menu,
    .pos-ticket {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
    }

    .inventory-layout,
    .designer-shell,
    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .designer-tools {
        position: static;
    }
}

@media (max-width: 1023px) {
    :root {
        --touch: 48px;
    }

    .app-sidebar {
        width: min(320px, 88vw);
        z-index: 90;
        transform: translateX(-102%);
        transition: transform .2s ease;
        box-shadow: var(--shadow-strong);
    }

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

    .sidebar-close {
        display: inline-grid;
    }

    .nav-scrim {
        position: fixed;
        inset: 0;
        z-index: 80;
        border: 0;
        background: rgba(10, 20, 17, .55);
    }

    .nav-is-open .nav-scrim {
        display: block;
    }

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

    .app-topbar {
        min-height: 60px;
        padding: .5rem .75rem;
        position: sticky;
        top: 0;
        z-index: 50;
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: .55rem;
        align-items: center;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
    }

    .topbar-title {
        min-width: 0;
    }

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

    .topbar-title strong {
        font-size: .9rem;
    }

    .topbar-title small {
        color: var(--muted);
        font-size: .7rem;
    }

    .app-main {
        padding: .9rem .8rem calc(82px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        min-height: calc(66px + env(safe-area-inset-bottom));
        padding: 5px max(6px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-right));
        position: fixed;
        inset: auto 0 0;
        z-index: 55;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-around;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(23, 33, 30, .08);
        backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        min-width: 58px;
        min-height: 56px;
        padding: .3rem .35rem;
        border: 0;
        border-radius: 7px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: .12rem;
        background: transparent;
        color: var(--muted);
        font: inherit;
        font-size: .66rem;
        font-weight: 750;
    }

    .mobile-bottom-nav a.is-active {
        background: var(--primary-soft);
        color: var(--primary-strong);
    }

    .mobile-bottom-nav .app-icon {
        width: 21px;
        height: 21px;
    }

    .toast-stack {
        right: .75rem;
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .customer-grid {
        grid-template-columns: 1fr;
    }

    .customer-cart {
        position: static;
    }
}

@media (max-width: 900px) {
    .cash-workspace,
    .cash-history-grid {
        grid-template-columns: 1fr;
    }

    .cash-history-grid {
        grid-column: auto;
    }

    .branch-settings-layout {
        grid-template-columns: 1fr;
    }

    .branch-live-preview {
        position: static;
    }
}

@media (max-width: 760px) {
    .title.is-2 {
        font-size: 1.7rem;
    }

    .title.is-3 {
        font-size: 1.5rem;
    }

    .page-header,
    .page-header.compact {
        align-items: stretch;
        display: grid;
    }

    .page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-header > .button {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric {
        min-height: 126px;
        padding: .8rem;
    }

    .metric strong {
        font-size: 1.45rem;
    }

    .summary-strip,
    .cash-summary-band,
    .production-board,
    .reports-grid,
    .ticket-preview-grid {
        grid-template-columns: 1fr;
    }

    .summary-strip > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .audit-panel {
        grid-column: auto;
    }

    .field-grid.two-columns,
    .toggle-grid {
        grid-template-columns: 1fr;
    }

    .branch-media-grid,
    .branch-color-grid {
        grid-template-columns: 1fr;
    }

    .ticket-width-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .production-line {
        grid-template-columns: 1fr;
    }

    .production-item-actions,
    .production-order footer,
    .production-order footer > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .production-order footer > span {
        grid-column: 1 / -1;
    }

    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table th,
    .responsive-table td {
        display: block;
    }

    .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .responsive-table tr {
        margin-bottom: .65rem;
        padding: .55rem .7rem;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .responsive-table td {
        min-height: 34px;
        padding: .4rem 0 !important;
        border: 0 !important;
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: .6rem;
        text-align: right;
    }

    .responsive-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 750;
        text-align: left;
    }

    .stock-alert {
        margin: .2rem 0 0 auto;
    }

    .admin-tabs {
        width: 100%;
    }

    .segmented-tabs button {
        min-width: 0;
        padding: .35rem;
        font-size: .72rem;
    }

    .segmented-tabs .app-icon {
        width: 17px;
        height: 17px;
    }

    .audit-row {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .audit-row time {
        grid-column: 2;
    }

    .customer-products {
        grid-template-columns: 1fr;
    }

    .customer-cart-bar {
        min-height: calc(58px + env(safe-area-inset-bottom));
        padding: .6rem .8rem env(safe-area-inset-bottom);
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        gap: .7rem;
        align-items: center;
        background: var(--sidebar);
        color: var(--sidebar-contrast);
        box-shadow: 0 -8px 24px rgba(23, 33, 30, .16);
    }

    .customer-cart-bar > span {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .public-main {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .tutorial-highlight {
        transition: none;
    }
}

@media (max-width: 560px) {
    .standalone-main {
        padding: .75rem;
    }

    .session-bar > span {
        display: none;
    }

    .session-bar .button span {
        display: none;
    }

    .metric-grid,
    .quick-actions,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .page-actions {
        grid-template-columns: 1fr;
    }

    .branch-media-control {
        grid-template-columns: 1fr;
    }

    .branch-media-preview {
        width: 100%;
        height: 110px;
    }

    .settings-save-bar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
    }

    .settings-save-bar .button {
        width: 100%;
    }

    .pos-view-switch span {
        font-size: .72rem;
    }

    .ticket-actions-grid {
        grid-template-columns: 1fr;
    }

    .ticket-actions-grid .action-send,
    .ticket-actions-grid .action-pay {
        grid-column: auto;
    }

    .production-item-actions,
    .production-order footer > div {
        grid-template-columns: 1fr 1fr;
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }

    .branch-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .branch-card-image,
    .branch-icon {
        width: 64px;
        height: 56px;
    }

    .branch-card .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .catalog-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .catalog-row img,
    .catalog-placeholder {
        width: 44px;
        height: 44px;
    }

    .catalog-row > strong:last-child {
        grid-column: 2;
    }

    .customer-hero {
        min-height: 88px;
        padding: .75rem;
    }

    .customer-logo,
    .customer-hero .brand-mark.large {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .customer-cover {
        width: 110px;
        height: 68px;
    }

    .customer-hero h1 {
        font-size: 1.55rem;
    }

    .customer-product {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .customer-product.without-image {
        grid-template-columns: 1fr;
    }

    .customer-product > img,
    .customer-product-placeholder {
        width: 76px;
        height: 76px;
    }

    .customer-toolbar {
        top: 59px;
    }

    .route-cliente .customer-toolbar {
        top: 0;
    }

    .toast-stack {
        right: .6rem;
        left: .6rem;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}

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

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

    html,
    body {
        background: #fff !important;
    }

    .app-sidebar,
    .app-topbar,
    .mobile-bottom-nav,
    .nav-scrim,
    .session-bar,
    .no-print,
    .ticket-actions,
    .tutorial-layer,
    .toast-stack {
        display: none !important;
    }

    .app-workspace {
        margin-left: 0 !important;
    }

    .app-main,
    .app-section,
    .standalone-main {
        padding: 0 !important;
    }

    .app-content,
    .container,
    .container.is-fluid {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-ticket {
        width: var(--ticket-width, 80mm);
        max-width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .route-qr_tables .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6mm;
    }

    .route-qr_tables .qr-card {
        min-height: 118mm;
        border-color: #aaa;
        box-shadow: none;
    }
}
