:root {
    --app-bg: #f6f7f9;
    --app-border: #d9dee6;
    --app-ink: #1f2937;
    --app-muted: #667085;
    --app-primary: #0f766e;
    --app-primary-dark: #115e59;
    --tone-blue-bg: #eaf2ff;
    --tone-blue-fg: #1d4ed8;
    --tone-green-bg: #e8f7ef;
    --tone-green-fg: #047857;
    --tone-amber-bg: #fff4d8;
    --tone-amber-fg: #a16207;
    --tone-red-bg: #ffeceb;
    --tone-red-fg: #b91c1c;
    --tone-cyan-bg: #e7fafe;
    --tone-cyan-fg: #0e7490;
    --tone-slate-bg: #eef2f7;
    --tone-slate-fg: #334155;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
}

.app-body {
    min-height: 100vh;
    padding-bottom: 0;
}

.app-navbar {
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.app-navbar .container-fluid {
    gap: 10px;
}

.app-navbar .navbar-nav {
    gap: 2px;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.app-brand,
.icon-link-nav,
.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-brand {
    font-weight: 700;
}

.icon-link-nav {
    min-height: 38px;
    border-radius: 8px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.brand-mark,
.login-mark,
.metric-icon,
.module-icon,
.record-icon {
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    background: var(--app-primary);
    color: #ffffff;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.btn {
    min-height: 40px;
}

.btn-sm {
    min-height: 34px;
}

.btn-lg {
    min-height: 48px;
}

.d-flex.gap-2 {
    flex-wrap: wrap;
}

.nav-link.active {
    color: var(--app-primary-dark) !important;
    font-weight: 700;
}

.app-navbar .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border-color: var(--app-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.app-navbar .dropdown-item {
    min-height: 38px;
    border-radius: 8px;
    color: var(--app-ink);
    font-size: 0.9rem;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
}

.app-navbar .dropdown-item.active {
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
    font-weight: 800;
}

.app-public-menu-link {
    white-space: nowrap;
}

.app-breadcrumb {
    margin: -4px 0 14px;
}

.app-breadcrumb .breadcrumb {
    align-items: center;
    font-size: 0.86rem;
}

.app-breadcrumb a {
    color: var(--app-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.app-breadcrumb a:hover {
    text-decoration: underline;
}

.app-breadcrumb .active {
    color: var(--app-muted);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.user-avatar {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    background: var(--tone-slate-bg);
    color: var(--tone-slate-fg);
    font-weight: 800;
}

.user-meta {
    display: grid;
    line-height: 1.15;
    font-size: 0.9rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta small {
    color: var(--app-muted);
}

.mobile-bottom-nav {
    display: none;
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--app-primary-dark);
    --bs-btn-hover-border-color: var(--app-primary-dark);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--app-primary-dark);
    --bs-btn-active-border-color: var(--app-primary-dark);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--app-primary-dark);
    --bs-btn-active-border-color: var(--app-primary-dark);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.2);
}

.btn-primary:active,
.btn-primary.show,
.btn-outline-primary:active,
.btn-outline-primary.show {
    color: #ffffff !important;
    background-color: var(--app-primary-dark) !important;
    border-color: var(--app-primary-dark) !important;
}

.btn-success {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #138a5e;
    --bs-btn-border-color: #138a5e;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #107c55;
    --bs-btn-hover-border-color: #107c55;
    --bs-btn-active-color: #ffffff;
}

.btn-danger {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #c33124;
    --bs-btn-border-color: #c33124;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #b02b20;
    --bs-btn-hover-border-color: #b02b20;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #9f241b;
    --bs-btn-active-border-color: #9f241b;
}

.btn-warning {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #a16207;
    --bs-btn-border-color: #a16207;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #854d0e;
    --bs-btn-hover-border-color: #854d0e;
    --bs-btn-active-color: #ffffff;
}

.btn-deactivate {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #ea580c;
    --bs-btn-border-color: #ea580c;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #c2410c;
    --bs-btn-hover-border-color: #c2410c;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #9a3412;
    --bs-btn-active-border-color: #9a3412;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:active:focus,
.btn-warning span,
.btn-warning .icon,
.btn-warning svg {
    color: #ffffff !important;
}

.btn-outline-danger {
    --bs-btn-color: #c33124;
    --bs-btn-border-color: #c33124;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #c33124;
    --bs-btn-hover-border-color: #c33124;
}

.btn-outline-stockout {
    --bs-btn-color: #a16207;
    --bs-btn-border-color: #d97706;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #d97706;
    --bs-btn-hover-border-color: #d97706;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #a16207;
    --bs-btn-active-border-color: #a16207;
}

.btn-outline-deactivate {
    --bs-btn-color: #c2410c;
    --bs-btn-border-color: #ea580c;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #ea580c;
    --bs-btn-hover-border-color: #ea580c;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #c2410c;
    --bs-btn-active-border-color: #c2410c;
}

.btn-outline-danger:hover,
.btn-outline-danger:active,
.btn-outline-danger.show,
.btn-outline-danger:hover span,
.btn-outline-danger:active span,
.btn-outline-danger.show span,
.btn-outline-danger:hover .icon,
.btn-outline-danger:active .icon,
.btn-outline-danger.show .icon,
.btn-outline-danger:hover svg,
.btn-outline-danger:active svg,
.btn-outline-danger.show svg,
.btn-outline-stockout:hover,
.btn-outline-stockout:active,
.btn-outline-stockout.show,
.btn-outline-stockout:hover *,
.btn-outline-stockout:active *,
.btn-outline-stockout.show *,
.btn-outline-deactivate:hover,
.btn-outline-deactivate:active,
.btn-outline-deactivate.show,
.btn-outline-deactivate:hover *,
.btn-outline-deactivate:active *,
.btn-outline-deactivate.show * {
    color: #ffffff !important;
}

.btn-outline-danger:focus:not(:hover):not(:active):not(.show),
.btn-outline-danger:focus:not(:hover):not(:active):not(.show) span,
.btn-outline-danger:focus:not(:hover):not(:active):not(.show) .icon,
.btn-outline-danger:focus:not(:hover):not(:active):not(.show) svg {
    color: #c33124 !important;
}

.btn-outline-stockout:focus:not(:hover):not(:active):not(.show),
.btn-outline-stockout:focus:not(:hover):not(:active):not(.show) * {
    color: #a16207 !important;
}

.btn-outline-deactivate:focus:not(:hover):not(:active):not(.show),
.btn-outline-deactivate:focus:not(:hover):not(:active):not(.show) * {
    color: #c2410c !important;
}

.btn-outline-primary:not(:hover):not(:active):not(.show),
.btn-outline-primary:not(:hover):not(:active):not(.show) span,
.btn-outline-primary:not(:hover):not(:active):not(.show) .icon,
.btn-outline-primary:not(:hover):not(:active):not(.show) svg {
    color: var(--app-primary) !important;
}

.btn-outline-secondary:not(:hover):not(:active):not(.show),
.btn-outline-secondary:not(:hover):not(:active):not(.show) span,
.btn-outline-secondary:not(:hover):not(:active):not(.show) .icon,
.btn-outline-secondary:not(:hover):not(:active):not(.show) svg {
    color: #526071 !important;
}

.btn-outline-stockout:not(:hover):not(:active):not(.show),
.btn-outline-stockout:not(:hover):not(:active):not(.show) span,
.btn-outline-stockout:not(:hover):not(:active):not(.show) .icon,
.btn-outline-stockout:not(:hover):not(:active):not(.show) svg {
    color: #a16207 !important;
}

.btn-outline-deactivate:not(:hover):not(:active):not(.show),
.btn-outline-deactivate:not(:hover):not(:active):not(.show) span,
.btn-outline-deactivate:not(:hover):not(:active):not(.show) .icon,
.btn-outline-deactivate:not(:hover):not(:active):not(.show) svg {
    color: #c2410c !important;
}

.btn-outline-danger:not(:hover):not(:active):not(.show),
.btn-outline-danger:not(:hover):not(:active):not(.show) span,
.btn-outline-danger:not(:hover):not(:active):not(.show) .icon,
.btn-outline-danger:not(:hover):not(:active):not(.show) svg {
    color: #c33124 !important;
}

.pagination {
    --bs-pagination-color: var(--app-primary-dark);
    --bs-pagination-bg: #ffffff;
    --bs-pagination-border-color: var(--app-border);
    --bs-pagination-hover-color: var(--app-primary-dark);
    --bs-pagination-hover-bg: var(--tone-green-bg);
    --bs-pagination-hover-border-color: rgba(15, 118, 110, 0.28);
    --bs-pagination-focus-color: var(--app-primary-dark);
    --bs-pagination-focus-bg: var(--tone-green-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.18);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: var(--app-primary);
    --bs-pagination-active-border-color: var(--app-primary);
    --bs-pagination-disabled-color: var(--app-muted);
    --bs-pagination-disabled-bg: #f8fafc;
    --bs-pagination-disabled-border-color: var(--app-border);
}

.pagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-deactivate,
.btn-info,
.btn-secondary,
.btn-dark,
.kitchen-btn {
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-danger:hover,
.btn-danger:focus,
.btn-warning:hover,
.btn-warning:focus,
.btn-deactivate:hover,
.btn-deactivate:focus,
.btn-info:hover,
.btn-info:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-dark:hover,
.btn-dark:focus,
.kitchen-btn:hover,
.kitchen-btn:focus {
    color: #ffffff;
}

.btn-primary *,
.btn-success *,
.btn-danger *,
.btn-warning *,
.btn-deactivate *,
.btn-info *,
.btn-secondary *,
.btn-dark *,
.kitchen-btn * {
    color: #ffffff !important;
}

.btn-light,
.btn-light * {
    color: var(--app-ink) !important;
}

.guest-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0)),
        var(--app-bg);
}

.guest-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel,
.panel,
.metric-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.login-mark {
    width: 52px;
    height: 52px;
    background: var(--app-primary);
    color: #ffffff;
    overflow: hidden;
}

.login-mark .icon {
    width: 28px;
    height: 28px;
}

.login-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.eyebrow {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric-card {
    display: grid;
    min-height: 132px;
    align-content: start;
    gap: 12px;
    padding: 18px;
}

.metric-card span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.metric-card strong {
    font-size: 2rem;
    line-height: 1;
}

.metric-icon {
    width: 38px;
    height: 38px;
}

.metric-icon .icon,
.module-icon .icon,
.record-icon .icon {
    width: 20px;
    height: 20px;
}

.tone-blue {
    background: var(--tone-blue-bg);
    color: var(--tone-blue-fg);
}

.tone-green {
    background: var(--tone-green-bg);
    color: var(--tone-green-fg);
}

.tone-amber {
    background: var(--tone-amber-bg);
    color: var(--tone-amber-fg);
}

.tone-red {
    background: var(--tone-red-bg);
    color: var(--tone-red-fg);
}

.tone-cyan {
    background: var(--tone-cyan-bg);
    color: var(--tone-cyan-fg);
}

.tone-slate {
    background: var(--tone-slate-bg);
    color: var(--tone-slate-fg);
}

.dashboard-hero {
    display: flex;
    min-height: 180px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.98), rgba(12, 74, 110, 0.94)),
        #0f766e;
    color: #ffffff;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: 0;
}

.dashboard-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.module-group-stack {
    display: grid;
    gap: 20px;
}

.module-section {
    display: grid;
    gap: 10px;
}

.module-section + .module-section {
    padding-top: 16px;
    border-top: 1px solid var(--app-border);
}

.module-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
}

.module-section-title strong {
    color: var(--app-ink);
    font-size: 0.95rem;
}

.module-section-title span {
    color: var(--app-muted);
    font-size: 0.86rem;
}

.module-tile {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 88px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-ink);
    text-decoration: none;
}

.module-tile:hover {
    border-color: var(--app-primary);
    color: var(--app-primary-dark);
}

.module-icon {
    width: 46px;
    height: 46px;
}

.module-copy {
    display: grid;
    gap: 3px;
}

.module-copy small {
    color: var(--app-muted);
    line-height: 1.25;
}

.module-tile.is-disabled {
    pointer-events: none;
    background: #f8fafc;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--app-border);
}

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

.activity-row span,
.activity-row small {
    display: block;
    color: var(--app-muted);
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-card-list {
    display: grid;
    gap: 12px;
}

.mobile-record-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.coupon-record-card {
    position: relative;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
}

.coupon-record-card.has-action {
    padding-bottom: 58px;
}

.coupon-record-card.is-disabled {
    border-color: #d6dde7;
    background: #f1f5f9;
    box-shadow: none;
    color: #64748b;
}

.coupon-record-card.is-disabled .record-icon {
    background: #e2e8f0;
    color: #64748b;
}

.coupon-record-card.is-disabled .record-title-row strong,
.coupon-record-card.is-disabled .record-title-row span,
.coupon-record-card.is-disabled .record-meta {
    color: #64748b;
}

.coupon-record-card.is-disabled .badge {
    background-color: #64748b !important;
    color: #ffffff !important;
}

.coupon-record-actions {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.coupon-record-actions .btn {
    min-height: 36px;
    white-space: nowrap;
}

.record-icon {
    width: 46px;
    height: 46px;
}

.record-initials {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.record-main {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.record-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.record-title-row strong {
    min-width: 0;
}

.record-meta {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.record-actions,
.record-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.record-photo {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.product-mobile-card {
    grid-template-columns: 68px minmax(0, 1fr);
}

.table-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.direct-order-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.table-tile {
    display: grid;
    min-height: 150px;
    align-content: space-between;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-ink);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.direct-order-tile {
    display: grid;
    min-height: 132px;
    align-content: space-between;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-ink);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.table-tile:hover {
    border-color: var(--app-primary);
    color: var(--app-primary-dark);
}

.direct-order-tile:hover {
    border-color: var(--app-primary);
    color: var(--app-primary-dark);
}

.table-tile.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.table-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--tone-slate-bg);
    color: var(--tone-slate-fg);
}

.table-status-available .table-icon,
.table-status-paid .table-icon {
    background: var(--tone-green-bg);
    color: var(--tone-green-fg);
}

.table-status-occupied .table-icon,
.table-status-order_sent .table-icon,
.table-status-waiting_food .table-icon {
    background: var(--tone-amber-bg);
    color: var(--tone-amber-fg);
}

.table-status-closed_pending_payment .table-icon {
    background: var(--tone-blue-bg);
    color: var(--tone-blue-fg);
}

.table-tile.needs-waiter {
    border-color: #dc2626;
    background: #fff1f2;
    box-shadow: 0 14px 34px rgba(185, 28, 28, 0.14);
}

.direct-order-tile.needs-waiter {
    border-color: #dc2626;
    background: #fff1f2;
    box-shadow: 0 14px 34px rgba(185, 28, 28, 0.14);
}

.table-tile.needs-waiter:hover {
    border-color: #b91c1c;
    color: #991b1b;
}

.direct-order-tile.needs-waiter:hover {
    border-color: #b91c1c;
    color: #991b1b;
}

.table-tile.needs-waiter .table-icon {
    background: #dc2626;
    color: #ffffff;
}

.direct-order-tile.needs-waiter .table-icon {
    background: #dc2626;
    color: #ffffff;
}

.table-tile.has-ready-items {
    border-color: #16a34a;
    background: #ecfdf5;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.14);
}

.direct-order-tile.has-ready-items {
    border-color: #16a34a;
    background: #ecfdf5;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.14);
}

.table-tile.has-ready-items:hover {
    border-color: #15803d;
    color: #14532d;
}

.direct-order-tile.has-ready-items:hover {
    border-color: #15803d;
    color: #14532d;
}

.table-tile.has-ready-items .table-icon {
    background: #16a34a;
    color: #ffffff;
}

.direct-order-tile.has-ready-items .table-icon {
    background: #16a34a;
    color: #ffffff;
}

.table-attention-badge,
.table-ready-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.table-attention-badge {
    background: #dc2626;
}

.table-ready-badge {
    background: #16a34a;
}

.table-attention-badge .icon,
.table-ready-badge .icon {
    width: 16px;
    height: 16px;
}

.modal-warning-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--tone-red-bg);
    color: var(--tone-red-fg);
}

.modal-warning-icon.tone-amber {
    background: var(--tone-amber-bg);
    color: var(--tone-amber-fg);
}

.modal-warning-icon.tone-green {
    background: var(--tone-green-bg);
    color: var(--tone-green-fg);
}

.modal-warning-icon.tone-orange {
    background: #fff1e7;
    color: #c2410c;
}

.table-claim-panel {
    border-color: #dc2626;
    background: #fff7f7;
}

.account-summary {
    top: 84px;
}

.order-item-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.order-item small,
.order-item span {
    display: block;
    color: var(--app-muted);
}

.status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.order-item .status-badge,
.order-preview-row .status-badge,
.kitchen-item .status-badge {
    margin-top: 5px;
}

.status-active {
    border-color: #bbf7d0;
    background: #dcfce7;
    color: #15803d !important;
}

.status-muted {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569 !important;
}

.status-badge-pending_send,
.status-badge-received {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569 !important;
}

.status-badge-sent_kitchen {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.status-badge-accepted,
.status-badge-accepted_kitchen {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e !important;
}

.status-badge-in_preparation {
    border-color: #fef08a;
    background: #fefce8;
    color: #854d0e !important;
}

.status-badge-ready,
.status-badge-delivered {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #166534 !important;
}

.status-badge-cancelled {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b !important;
}

.status-badge-courtesy {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9 !important;
}

.kitchen-order-status-badge {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    max-width: 150px;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.kitchen-order-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.kitchen-order-status-received {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #1d4ed8 !important;
}

.kitchen-order-status-accepted {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e !important;
}

.kitchen-order-status-in_preparation {
    border-color: #fef08a;
    background: #fef9c3;
    color: #854d0e !important;
}

.kitchen-order-status-ready,
.kitchen-order-status-delivered {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534 !important;
}

.kitchen-order-status-cancelled {
    border-color: #fecaca;
    background: #fee2e2;
    color: #991b1b !important;
}

.order-preview-list,
.payment-confirm-list {
    display: grid;
    gap: 10px;
}

.order-preview-row,
.payment-confirm-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.order-preview-row small,
.payment-confirm-row small {
    display: block;
    color: var(--app-muted);
}

.order-preview-row.is-muted {
    opacity: 0.68;
}

.order-item .btn,
.order-item .btn span,
.order-item .btn .icon,
.mobile-record-card .btn,
.mobile-record-card .btn span,
.mobile-record-card .btn .icon {
    color: inherit;
}

.btn.btn-primary,
.btn.btn-primary span,
.btn.btn-primary .icon,
.btn.btn-success,
.btn.btn-success span,
.btn.btn-success .icon,
.btn.btn-danger,
.btn.btn-danger span,
.btn.btn-danger .icon,
.btn.btn-warning,
.btn.btn-warning span,
.btn.btn-warning .icon,
.btn.kitchen-btn,
.btn.kitchen-btn span,
.btn.kitchen-btn .icon {
    color: #ffffff !important;
}

.product-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.waiter-product-picker {
    display: grid;
    gap: 18px;
}

.waiter-product-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
}

.waiter-product-group {
    display: grid;
    gap: 10px;
}

.waiter-product-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--app-border);
}

.waiter-product-group:first-of-type .waiter-product-group-title {
    border-top: 0;
    padding-top: 0;
}

.waiter-product-group-title h3 {
    margin: 0;
    font-size: 1rem;
}

.waiter-product-group-title span {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.order-product-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.order-product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f7;
}

.order-product-card small {
    display: block;
    color: var(--app-muted);
}

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

.order-add-form > button {
    justify-content: center;
}

.order-note-input {
    width: 100%;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 38px minmax(42px, 1fr) 38px;
    align-items: stretch;
    min-height: 38px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-stepper-btn {
    width: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    color: var(--app-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-stepper-btn:hover:not(:disabled) {
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
}

.quantity-stepper-btn:disabled {
    opacity: 0.42;
}

.quantity-stepper-input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
    text-align: center;
    font-weight: 800;
    color: var(--app-text);
    background: #ffffff;
    appearance: textfield;
}

.quantity-stepper-input:focus {
    outline: 2px solid rgba(20, 132, 120, 0.22);
    outline-offset: -2px;
}

.quantity-stepper-input::-webkit-outer-spin-button,
.quantity-stepper-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.quantity-stepper-modal {
    max-width: 220px;
}

.ready-panel .panel-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.kitchen-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-left: 5px solid var(--tone-slate-fg);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.kitchen-card.status-received {
    border-left-color: var(--tone-blue-fg);
}

.kitchen-card.status-accepted {
    border-left-color: var(--tone-amber-fg);
}

.kitchen-card.status-in_preparation {
    border-left-color: var(--tone-red-fg);
}

.kitchen-card.status-ready {
    border-left-color: var(--tone-green-fg);
}

.kitchen-card header,
.kitchen-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.kitchen-card header span,
.kitchen-item small,
.kitchen-item span {
    display: block;
    color: var(--app-muted);
}

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

.kitchen-card-status {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    max-width: 150px;
}

.kitchen-items {
    display: grid;
    gap: 10px;
}

.kitchen-item {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.kitchen-actions {
    display: grid;
    align-content: start;
    gap: 8px;
}

.kitchen-action-btn {
    min-width: 122px;
    justify-content: center;
}

.waiter-action-btn {
    min-width: 112px;
    justify-content: center;
}

.kitchen-cancel-form {
    display: grid;
    gap: 6px;
}

.kitchen-btn {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.kitchen-btn:hover,
.kitchen-btn:focus {
    color: #ffffff;
    filter: none;
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.13);
}

.kitchen-btn:disabled,
.kitchen-btn.disabled {
    background: #e5e7eb !important;
    color: #475569 !important;
    opacity: 1;
    box-shadow: none;
}

.kitchen-btn:disabled *,
.kitchen-btn.disabled * {
    color: #475569 !important;
}

.kitchen-btn-prepare {
    background: #dc2626;
}

.kitchen-btn-prepare:hover,
.kitchen-btn-prepare:focus {
    background: #c92121;
}

.kitchen-btn-ready {
    background: #16a34a;
}

.kitchen-btn-ready:hover,
.kitchen-btn-ready:focus {
    background: #158f43;
}

.kitchen-btn-accept {
    min-height: 48px;
    background: #0f766e;
}

.kitchen-btn-accept:hover,
.kitchen-btn-accept:focus {
    background: #0d6b64;
}

.empty-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--tone-red-bg);
    color: var(--tone-red-fg);
}

.payment-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding-top: 14px;
    border-top: 1px solid var(--app-border);
}

.payment-total span {
    color: var(--app-muted);
}

.report-list {
    display: grid;
    gap: 10px;
}

.report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.report-row span {
    min-width: 0;
    font-weight: 700;
}

.report-row small {
    grid-column: 1 / -1;
    color: var(--app-muted);
}

.payment-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr 1.25fr;
    gap: 12px;
    padding: 16px 46px 12px 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.payment-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
}

.payment-remove-btn .icon {
    width: 15px;
    height: 15px;
}

.payment-remove-btn span {
    display: none;
}

.payment-row.is-hidden {
    display: none;
}

.payment-split-box {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.payment-balance {
    display: grid;
    gap: 2px;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.tip-box {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.tip-preset-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tip-preset-group .btn.active {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #ffffff;
}

.tip-preset-group .btn {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
}

.customer-autocomplete-list {
    position: absolute;
    z-index: 1050;
    display: none;
    width: min(100%, 520px);
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.customer-autocomplete-list.is-open {
    display: grid;
}

.customer-autocomplete-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--app-border);
    background: #ffffff;
    color: var(--app-ink);
    text-align: left;
}

.customer-autocomplete-item:last-child {
    border-bottom: 0;
}

.customer-autocomplete-item:hover,
.customer-autocomplete-item:focus {
    background: #f8fafc;
}

.customer-autocomplete-item small {
    color: var(--app-muted);
}

[data-customer-autocomplete].is-valid,
[data-coupon-lookup].is-valid {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

.payment-lookup-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.payment-lookup-status.is-valid {
    border-color: #86efac;
    background: #ecfdf5;
    color: #166534;
}

.payment-lookup-status.is-invalid {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.payment-lookup-status .icon {
    width: 17px;
    height: 17px;
}

.ticket-preview-shell {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.ticket-preview {
    display: block;
    width: 100%;
    min-height: 72vh;
    border: 0;
    background: #ffffff;
}

.account-ticket-preview {
    display: grid;
    gap: 10px;
}

.account-ticket-frame-shell {
    background: #f8fafc;
}

.ticket-preview-compact {
    min-height: 460px;
}

.settings-page {
    max-width: 1360px;
    margin: 0 auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.settings-panel {
    border-radius: 8px;
}

.settings-form .form-label {
    color: #51615f;
    font-size: 0.86rem;
    font-weight: 800;
}

.settings-brand-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-brand-preview > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.settings-brand-preview strong,
.settings-brand-preview small {
    display: block;
}

.settings-brand-preview small {
    color: var(--app-muted);
}

.settings-logo-preview,
.settings-favicon-preview {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--app-primary);
    color: #ffffff;
}

.settings-logo-preview {
    width: 48px;
    height: 48px;
}

.settings-favicon-preview {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--app-border);
}

.settings-logo-preview img,
.settings-favicon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-textarea {
    min-height: 260px;
    resize: vertical;
}

.rich-editor {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--app-border);
    background: #f8fafc;
}

.rich-editor-toolbar .btn {
    min-width: 36px;
    min-height: 34px;
    justify-content: center;
    padding-inline: 9px;
}

.rich-editor-separator {
    width: 1px;
    min-height: 28px;
    margin-inline: 2px;
    background: var(--app-border);
}

.rich-editor-surface {
    min-height: 280px;
    padding: 14px;
    color: var(--app-ink);
    line-height: 1.55;
    outline: none;
}

.rich-editor-surface:focus {
    box-shadow: inset 0 0 0 0.18rem rgba(15, 118, 110, 0.14);
}

.rich-editor-surface p,
.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-text-content p,
.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 0.75rem;
}

.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-text-content ul,
.rich-text-content ol {
    padding-left: 1.35rem;
}

.rich-text-content {
    display: grid;
    gap: 0.4rem;
}

.rich-text-content > :last-child {
    margin-bottom: 0;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.email-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.email-toggle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.email-toggle-card:hover,
.email-toggle-card:focus-within {
    border-color: rgba(15, 118, 110, 0.32);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.email-toggle-card input {
    margin-top: 4px;
}

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

.email-toggle-card small {
    margin-top: 4px;
    color: var(--app-muted);
    line-height: 1.35;
}

.email-help-note {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.72);
    color: var(--app-primary-dark);
    font-size: 0.92rem;
    line-height: 1.45;
}

.email-help-note .icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.email-connection-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.email-connection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.email-connection-status strong,
.email-connection-status small {
    display: block;
}

.email-connection-status small {
    color: var(--app-muted);
}

.email-led {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.16);
}

.email-connection-status.is-connected .email-led {
    background: #16a34a;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16), 0 0 18px rgba(22, 163, 74, 0.5);
}

.email-connection-status.is-pending .email-led {
    background: #d97706;
    box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.14);
}

.email-edit-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.92rem;
    font-weight: 700;
}

.email-test-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.template-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-placeholder-list code {
    padding: 6px 9px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 999px;
    background: rgba(240, 253, 250, 0.78);
    color: var(--app-primary-dark);
    font-size: 0.82rem;
}

.email-template-stack {
    display: grid;
    gap: 18px;
}

.email-template-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.email-template-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 54px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--app-muted);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.email-template-tab span {
    font-weight: 800;
}

.email-template-tab small {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.email-template-tab:hover {
    border-color: rgba(15, 118, 110, 0.18);
    background: rgba(240, 253, 250, 0.62);
    color: var(--app-primary-dark);
}

.email-template-tab.is-active {
    border-color: rgba(15, 118, 110, 0.32);
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
}

.email-template-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.template-html-input {
    min-height: 360px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
    resize: vertical;
}

.email-template-preview-shell {
    display: grid;
    grid-template-rows: auto minmax(360px, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.email-template-preview-head {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--app-border);
    background: #f8fafc;
}

.email-template-preview-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.email-template-preview-head strong {
    color: var(--app-ink);
}

.email-template-preview {
    width: 100%;
    min-height: 360px;
    border: 0;
    background: #ffffff;
}

.ticket-editor-page {
    max-width: 100%;
}

.ticket-designer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.ticket-form-panel,
.ticket-preview-panel {
    border-radius: 8px;
}

.ticket-form {
    display: grid;
    gap: 18px;
}

.ticket-fieldset {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 20px 14px 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.ticket-fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 -4px 8px;
    padding: 0 8px;
    color: var(--app-ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.ticket-control-grid {
    display: grid;
    gap: 12px;
}

.ticket-control-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ticket-editor-page .form-label {
    margin-bottom: 6px;
    color: #51615f;
    font-size: 0.82rem;
    font-weight: 800;
}

.ticket-editor-page .form-control {
    min-height: 40px;
    border-color: #d7e0dc;
    font-size: 0.92rem;
    font-weight: 700;
}

.ticket-auto-length {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--app-ink);
}

.ticket-auto-length span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
}

.ticket-auto-length small {
    color: var(--app-muted);
}

.ticket-option {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fffdfa;
}

.ticket-preview-panel {
    position: sticky;
    top: 86px;
}

.ticket-preview-card {
    padding: 12px;
    border: 1px dashed #e4cfad;
    border-radius: 8px;
    background: #fffdf8;
}

.ticket-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--app-ink);
    font-size: 0.9rem;
}

.ticket-preview-meta .icon {
    width: 18px;
    height: 18px;
    color: #64736f;
}

.ticket-preview-meta span {
    font-weight: 800;
}

.ticket-preview-stage {
    display: grid;
    justify-items: center;
    min-height: 520px;
    padding: 18px 18px 24px;
    overflow: auto;
    border: 1px solid #dfe7e3;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0 1px, transparent 1px 16px),
        #eef2ef;
}

.ticket-ruler {
    position: relative;
    width: min(58%, 250px);
    height: 24px;
    margin-bottom: 8px;
    color: #65726e;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.ticket-ruler::before,
.ticket-ruler::after {
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: #9aa8a4;
    content: "";
}

.ticket-ruler::before {
    left: 0;
}

.ticket-ruler::after {
    right: 0;
}

.ticket-paper-preview {
    display: grid;
    width: clamp(175px, calc(var(--ticket-width-mm, 80) * 2.65px), 300px);
    min-height: clamp(340px, calc((var(--ticket-lines, 22) * 18px) + 86px), 900px);
    align-content: start;
    gap: 4px;
    padding: 28px 18px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
}

.ticket-paper-preview > div {
    overflow-wrap: anywhere;
}

.ticket-paper-preview .is-bold {
    font-weight: 800;
}

@keyframes app-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-action-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    }
    45% {
        transform: scale(0.992);
        box-shadow: 0 12px 28px rgba(15, 118, 110, 0.14);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    }
}

@keyframes app-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.alert,
.metric-card,
.mobile-record-card,
.table-tile,
.direct-order-tile,
.order-item,
.order-product-card,
.kitchen-card,
.kitchen-item,
.payment-row,
.ticket-card,
.menu-item {
    animation: app-enter 0.2s ease-out both;
}

.is-actioning {
    animation: app-action-pulse 0.22s ease-out both;
}

.is-entering {
    animation: app-enter 0.18s ease-out both;
}

.is-leaving {
    animation: app-leave 0.12s ease-in both;
}

.product-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.upload-zone {
    display: grid;
    min-height: 280px;
    place-items: center;
    gap: 10px;
    padding: 16px;
    border: 2px dashed var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
}

.upload-zone.is-dragover {
    border-color: var(--app-primary);
    background: rgba(15, 118, 110, 0.06);
}

.upload-preview {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 8px;
}

.upload-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--app-ink);
    font-weight: 600;
}

.upload-zone small {
    color: var(--app-muted);
}

.public-body {
    background: #f5f7f6;
}

.menu-header {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-bottom: 0;
    background:
        linear-gradient(90deg, rgba(4, 32, 30, 0.94), rgba(4, 32, 30, 0.78) 46%, rgba(4, 32, 30, 0.2)),
        url("../images/public-menu-hero.png") center / cover no-repeat;
    color: #ffffff;
}

.menu-header-inner {
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.menu-header h1 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: 3.35rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.menu-header p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.84);
}

.menu-header .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.menu-header-actions .btn {
    box-shadow: 0 14px 28px rgba(4, 16, 16, 0.22);
}

.menu-header-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
}

.menu-header-actions .btn-outline-light:hover,
.menu-header-actions .btn-outline-light:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.qr-card {
    display: grid;
    width: 190px;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 46px rgba(4, 16, 16, 0.28);
    text-align: center;
}

.qr-card img {
    width: 100%;
    height: auto;
}

.qr-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.public-footer {
    border-top: 1px solid var(--app-border);
    background: #ffffff;
}

.public-footer-inner {
    display: flex;
    width: min(100%, 1320px);
    margin: 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 16px;
}

.public-footer strong {
    display: block;
    margin-bottom: 8px;
}

.public-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 8px;
    padding: 0;
    color: var(--app-muted);
    list-style: none;
}

.public-footer small {
    color: var(--app-muted);
}

.public-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.public-footer-actions a,
.public-footer-actions button,
.privacy-inline-link,
.customer-privacy-note button {
    border: 0;
    background: transparent;
    color: var(--app-primary-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    display: flex;
    max-width: min(560px, calc(100vw - 36px));
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.86rem;
}

.cookie-consent div {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.cookie-consent .btn {
    min-height: 34px;
}

.privacy-modal-body {
    display: grid;
    gap: 18px;
    color: var(--app-ink);
    line-height: 1.6;
}

.privacy-modal-body h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.customer-public-shell {
    display: grid;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.customer-public-card,
.customer-card-hero,
.customer-public-grid {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.customer-public-alert {
    position: relative;
    z-index: 1;
    width: min(100%, 1040px);
    margin: 0 auto 14px;
}

.customer-card-page {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 45, 42, 0.92), rgba(7, 45, 42, 0.70) 44%, rgba(7, 45, 42, 0.18)),
        url("../images/customer-card-bg.png") center / cover no-repeat;
}

.customer-public-card {
    display: grid;
    align-self: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.customer-register-shell {
    align-items: center;
    font-family: "Segoe UI Variable", "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
    background:
        linear-gradient(90deg, rgba(4, 20, 19, 0.68), rgba(4, 20, 19, 0.38) 52%, rgba(4, 20, 19, 0.66)),
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 44%),
        url("../images/customer-register-bg.png") center / cover no-repeat;
}

.customer-register-card {
    position: relative;
    overflow: hidden;
    gap: 22px;
    padding: 28px;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 28px 70px rgba(4, 16, 16, 0.24);
    backdrop-filter: blur(18px);
}

.customer-register-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--app-primary), #0e7490);
    content: "";
}

.customer-register-hero {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.customer-register-hero h1 {
    color: #0f172a;
    font-size: clamp(2.05rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: 0;
}

.customer-register-mark {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    background: var(--tone-green-bg);
    color: var(--app-primary-dark);
}

.customer-register-mark .icon {
    width: 26px;
    height: 26px;
}

.customer-register-form {
    display: grid;
    gap: 16px;
}

.customer-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.email-confirm-grid {
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    background: rgba(248, 252, 250, 0.72);
}

.modern-field {
    display: grid;
    gap: 7px;
    position: relative;
    padding-bottom: 48px;
}

.modern-field .form-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--app-ink);
    font-weight: 800;
}

.field-info-dot {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    color: var(--app-primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.customer-empty-notice {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.84);
    color: var(--app-primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
}

.customer-empty-notice .icon {
    width: 18px;
    height: 18px;
}

.modern-field small {
    color: var(--app-muted);
    font-size: 0.82rem;
}

.customer-field-tip {
    display: none;
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.68);
    line-height: 1.35;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.modern-input-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #d7e0dc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.modern-input-wrap:hover {
    border-color: rgba(15, 118, 110, 0.34);
    background: rgba(255, 255, 255, 0.96);
}

.modern-input-wrap:focus-within {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.13);
    transform: translateY(-1px);
}

.modern-input-wrap .icon {
    justify-self: center;
    color: var(--app-muted);
    transition: color 0.16s ease, transform 0.16s ease;
}

.modern-input-wrap:focus-within .icon {
    color: var(--app-primary);
    transform: scale(1.05);
}

.modern-input-wrap .form-control {
    min-height: 48px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.modern-input-wrap .form-control:focus {
    box-shadow: none;
}

.modern-field.is-invalid .modern-input-wrap {
    border-color: #dc2626;
    background: rgba(255, 247, 247, 0.96);
}

.modern-field.is-invalid .modern-input-wrap .icon,
.modern-field.is-invalid small {
    color: #b91c1c;
}

.modern-field.is-invalid .customer-field-tip {
    display: block;
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(255, 247, 247, 0.96);
    transform: translateY(-1px);
}

.customer-register-actions {
    padding-top: 2px;
}

.customer-public-actions,
.menu-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-privacy-consent {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.82);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.customer-consent-check {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
}

.customer-consent-check input[type="checkbox"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 30px;
    height: 30px;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.customer-consent-checkmark {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px rgba(248, 250, 252, 0.8);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-consent-checkmark::after {
    position: absolute;
    top: 9px;
    left: 8px;
    width: 13px;
    height: 7px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-right: 0;
    content: "";
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.14s ease;
}

.customer-consent-check input[type="checkbox"]:checked + .customer-consent-checkmark {
    border-color: var(--app-primary);
    background: var(--app-primary);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.customer-consent-check input[type="checkbox"]:checked + .customer-consent-checkmark::after {
    opacity: 1;
}

.customer-consent-check input[type="checkbox"]:focus-visible + .customer-consent-checkmark {
    box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.18);
}

.customer-privacy-consent:hover .customer-consent-checkmark {
    border-color: rgba(15, 118, 110, 0.42);
    transform: translateY(-1px);
}

.customer-privacy-text {
    line-height: 1.45;
}

.customer-privacy-consent:hover,
.customer-privacy-consent:focus-within {
    border-color: rgba(15, 118, 110, 0.34);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.09);
}

.customer-privacy-consent.is-invalid {
    border-color: #dc2626;
    background: rgba(255, 247, 247, 0.96);
}

.customer-consent-tip {
    display: none;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 8px;
    background: rgba(255, 247, 247, 0.96);
    color: #b91c1c;
    font-size: 0.84rem;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.customer-consent-tip.is-visible {
    display: block;
}

.customer-privacy-note {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-muted);
    font-size: 0.84rem;
    text-align: center;
}

.customer-privacy-note.compact {
    width: 100%;
    padding: 0;
    background: transparent;
    text-align: left;
}

.customer-email-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.72);
    color: var(--app-primary-dark);
}

.customer-email-note span {
    color: var(--app-muted);
}

.customer-recovery-results {
    display: grid;
    gap: 12px;
}

.customer-recovery-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.customer-recovery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.customer-recovery-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.82);
}

.customer-recover-search,
.customer-recovery-confirm-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.customer-recovery-confirm-form {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr) auto;
}

.customer-recover-search-action,
.customer-recovery-submit {
    display: grid;
    padding-bottom: 48px;
}

.customer-recover-privacy {
    padding: 10px 12px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.68);
}

.customer-card-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(9, 78, 72, 0.82);
    color: #ffffff;
    box-shadow: 0 22px 56px rgba(4, 16, 16, 0.28);
    backdrop-filter: blur(8px);
}

.customer-code-pill {
    display: inline-flex;
    width: fit-content;
    margin: 12px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-weight: 800;
}

.customer-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.customer-mini-stats span {
    display: grid;
    min-width: 150px;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
}

.customer-mini-stats strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.customer-mini-stats small {
    color: rgba(255, 255, 255, 0.78);
}

.customer-card-hero .eyebrow,
.customer-card-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.customer-card-copy h1 {
    margin: 0;
    font-size: 2rem;
}

.customer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.customer-qr-panel,
.customer-card-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-ink);
    text-align: center;
}

.customer-qr-panel {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.customer-progress-panel,
.customer-coupon-panel,
.customer-verify-card {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.customer-card-page .customer-progress-panel,
.customer-card-page .customer-coupon-panel {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(4, 16, 16, 0.18);
}

.customer-qr-panel img,
.customer-card-preview img {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.customer-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reward-progress {
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
}

.reward-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
}

.menu-filters {
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.section-title {
    margin-bottom: 16px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.35rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.menu-interest-section {
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.menu-interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.menu-interest-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    background: #f8fafc;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.menu-interest-card:hover,
.menu-interest-card:focus,
.menu-interest-card:focus-within {
    border-color: rgba(15, 118, 110, 0.34);
    background: #ffffff;
    color: inherit;
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

.menu-interest-card:focus-visible {
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.18);
}

.menu-interest-card img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

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

.menu-interest-card small {
    color: var(--app-muted);
}

.menu-interest-card span {
    font-weight: 800;
    white-space: nowrap;
}

.menu-item {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    scroll-margin-top: 94px;
}

.menu-item:target {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.14);
}

.menu-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
}

.menu-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sold-out-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.menu-item-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.menu-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.menu-item-body h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
}

.menu-item-heading strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.menu-item-body p,
.menu-item-body small {
    margin: 0;
    color: var(--app-muted);
}

.menu-item-ingredients {
    display: block;
    font-size: 0.84rem;
    line-height: 1.38;
}

.menu-item-ingredients span,
.menu-item-ingredients em {
    display: block;
}

.menu-item-ingredients em {
    margin-top: 2px;
    font-style: italic;
}

.print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-list {
    display: grid;
    gap: 12px;
}

.ticket-card {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.ticket-card.is-cancelled {
    border-color: #fecaca;
    background: #fff7f7;
}

.ticket-card-summary {
    display: grid;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 0;
    background: transparent;
    color: var(--app-ink);
    text-align: left;
}

.ticket-card-summary:hover,
.ticket-card-summary:focus {
    background: #f8fafc;
}

.ticket-card-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--tone-green-bg);
    color: var(--tone-green-fg);
}

.ticket-card.is-cancelled .ticket-card-icon {
    background: var(--tone-red-bg);
    color: var(--tone-red-fg);
}

.ticket-card-main,
.ticket-card-meta {
    display: grid;
    gap: 2px;
}

.ticket-card-main small,
.ticket-card-meta small {
    color: var(--app-muted);
}

.ticket-card-meta {
    justify-items: end;
    text-align: right;
}

.ticket-card-detail {
    padding: 0 14px 14px;
    border-top: 1px solid var(--app-border);
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 0.75rem;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover > * {
    background: #f8fafc;
}

@media (max-width: 1399.98px) {
    .navbar-collapse {
        padding-top: 12px;
    }

    .app-navbar .navbar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 6px;
        width: 100%;
    }

    .app-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .icon-link-nav {
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid transparent;
        background: #f8fafc;
    }

    .icon-link-nav.active {
        border-color: #cfe3dc;
        background: var(--tone-green-bg);
    }

    .user-chip {
        align-items: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--app-border);
    }

    .nav-right-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--app-border);
    }

    .nav-right-actions .user-chip {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .app-public-menu-link {
        justify-content: center;
    }
}

@media print {
    .app-navbar,
    .mobile-bottom-nav,
    .no-print,
    .btn,
    form {
        display: none !important;
    }

    body,
    .app-body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }

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

    .container-fluid {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .panel,
    .metric-card,
    .mobile-record-card,
    .report-row {
        border-color: #999999 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .row,
    .table-responsive {
        break-inside: auto;
    }

    .metric-card {
        min-height: auto;
    }
}

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

@media (max-width: 991.98px) {
    .app-body {
        padding-bottom: 82px;
    }

    .container-fluid {
        padding-right: 16px;
        padding-left: 16px;
    }

    .login-panel,
    .panel {
        padding: 18px;
    }

    .app-main {
        padding-top: 18px !important;
    }

    .navbar-collapse {
        padding-top: 12px;
    }

    .user-chip {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 10px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 22px;
    }

    .dashboard-hero h1 {
        font-size: 1.7rem;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .menu-header {
        min-height: auto;
        background-position: center right;
    }

    .menu-header-inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .menu-header h1 {
        font-size: 2.35rem;
    }

    .metric-card {
        min-height: 122px;
        padding: 14px;
    }

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

    .module-tile {
        min-height: 78px;
    }

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

    .table-tile {
        min-height: 132px;
    }

    .order-item,
    .order-preview-row,
    .payment-confirm-row,
    .kitchen-card header,
    .kitchen-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .kitchen-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .kitchen-card-status {
        justify-content: flex-start;
        max-width: none;
    }

    .payment-row {
        grid-template-columns: 1fr;
        padding-right: 46px;
    }

    .waiter-product-search {
        grid-template-columns: 1fr;
    }

    .ticket-card-summary {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .email-connection-panel,
    .email-test-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-card-meta {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }

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

    .ticket-designer-grid,
    .email-template-grid,
    .settings-grid,
    .settings-brand-preview,
    .ticket-control-grid.three,
    .ticket-control-grid.two {
        grid-template-columns: 1fr;
    }

    .ticket-preview-panel {
        position: static;
    }

    .ticket-preview-stage {
        min-height: 460px;
        padding: 14px;
    }

    .btn {
        min-height: 44px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--app-border);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        display: grid;
        min-height: 54px;
        place-items: center;
        gap: 3px;
        border-radius: 8px;
        color: var(--app-muted);
        font-size: 0.72rem;
        text-decoration: none;
    }

    .mobile-bottom-nav a.active {
        background: var(--tone-green-bg);
        color: var(--app-primary-dark);
        font-weight: 700;
    }

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

    .customer-card-hero,
    .customer-public-grid {
        grid-template-columns: 1fr;
    }

    .customer-register-card {
        padding: 22px;
    }

    .customer-register-hero,
    .customer-register-grid,
    .customer-recover-search,
    .customer-recovery-confirm-form {
        grid-template-columns: 1fr;
    }

    .customer-register-mark {
        width: 48px;
        height: 48px;
    }

    .customer-card-hero {
        padding: 22px;
    }

    .qr-card {
        width: 150px;
    }

    .public-footer-inner {
        flex-direction: column;
    }

    .public-footer-actions {
        justify-content: flex-start;
    }

    .coupon-record-actions {
        right: 14px;
        bottom: 14px;
    }

    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-consent div {
        width: 100%;
        justify-content: flex-end;
    }
}
