:root {
    --sidebar-width: 280px;
    --coffee-dark: #2f241d;
    --coffee: #5a3825;
    --coffee-soft: #7c4a2d;
    --cream: #fff7ec;
    --cream-2: #f5eadc;
    --line: rgba(124, 74, 45, .14);
}

body {
    background: #f5f3ef;
    color: #2f241d;
}

/* Admin layout v2 */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 74, 45, .12), transparent 30rem),
        linear-gradient(135deg, #f9f4ec, #efe1d0);
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #2f241d, #4b2f21);
    color: var(--cream);
    position: sticky;
    top: 0;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem .8rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    display: block;
}

.admin-sidebar-brand small {
    color: rgba(255,255,255,.66);
}

.brand-cup,
.admin-topbar-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    font-size: 1.4rem;
}

.admin-nav {
    display: grid;
    gap: .35rem;
}

.admin-nav a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem .8rem;
    border-radius: .95rem;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}

.admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    margin: 1rem 1rem 0;
    padding: .9rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    box-shadow: 0 .75rem 1.75rem rgba(47, 36, 29, .08);
    backdrop-filter: blur(8px);
}

.admin-session {
    color: #6d5b4c;
    font-size: .92rem;
}

.admin-main {
    padding: 1.25rem;
    flex: 1;
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: .72rem;
    color: #8b694d;
}

.admin-user-card {
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    padding: .65rem .9rem;
    border-radius: 1rem;
}

.admin-user-card small,
.admin-user-card strong {
    display: block;
    line-height: 1.1;
}

.admin-user-card small {
    color: #867466;
}

.admin-user-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f241d;
    color: #fff7ec;
    font-weight: 800;
}

.admin-card,
.card-dashboard {
    border: 0;
    border-radius: 1.25rem;
    background: rgba(255,255,255,.9);
    box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.08);
    border: 1px solid rgba(124, 74, 45, .1);
    overflow: hidden;
}

.admin-card-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(124, 74, 45, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,250,244,.7);
}

.admin-card-header h2 {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
}

.admin-card-header span {
    color: #837161;
    font-size: .9rem;
}

.admin-card-body {
    padding: 1.25rem;
}

.admin-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    color: #867466;
    font-size: .9rem;
    padding: .8rem 0 0;
}

.admin-sidebar-mobile {
    background: #2f241d;
    color: #fff7ec;
}

.admin-sidebar-mobile .btn-close {
    filter: invert(1);
}

.admin-switch .form-check-input,
.admin-switch-box .form-check-input {
    width: 3rem;
    height: 1.55rem;
}

.admin-switch-box {
    background: #fffaf4;
    border: 1px solid rgba(124,74,45,.12);
    border-radius: .9rem;
    padding: .85rem .85rem .85rem 3.1rem;
}

.is-disabled {
    opacity: .45;
}

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

.product-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: .65rem;
    background: #eee;
}

.product-thumb-lg {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: .9rem;
    background: #eee;
    flex: 0 0 auto;
}

.product-form-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8dcc1, #fff6ec);
    border: 1px solid rgba(124,74,45,.12);
}

.product-description-line {
    max-width: 410px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-table thead th {
    background: #fffaf4;
    color: #6e5642;
    font-size: .83rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #2f241d, #7c4a2d);
}

.receipt {
    max-width: 380px;
    font-family: monospace;
}

.sidebar {
    min-height: calc(100vh - 56px);
    background: #2f241d;
}

.sidebar a {
    color: #f8f1e8;
    text-decoration: none;
    display: block;
    padding: .65rem .9rem;
    border-radius: .5rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.12);
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

.cardapio-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(190, 111, 57, .18), transparent 32rem),
        linear-gradient(135deg, #fff7ec, #f3e2ce);
    color: #2f241d;
}

.cardapio-hero {
    background: linear-gradient(135deg, rgba(47, 36, 29, .96), rgba(124, 74, 45, .92));
    color: #fff7ec;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1rem 2.5rem rgba(47, 36, 29, .2);
}

.cardapio-card {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.75rem rgba(47, 36, 29, .12);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(6px);
}

.cardapio-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1c19b;
    font-size: 1.4rem;
}

.cardapio-price {
    color: #6b4f2f;
    font-size: 1.03rem;
}

.cardapio-qr {
    width: 132px;
    height: 132px;
    background: #fff;
    border-radius: 1rem;
    padding: .6rem;
}

.cardapio-produto-img {
    width: 64px;
    height: 64px;
    border-radius: .9rem;
    object-fit: cover;
    background: #f8dcc1;
}

/* PDV fullscreen v2 */
.pdv-body {
    background:
        radial-gradient(circle at top left, rgba(124, 74, 45, .18), transparent 34rem),
        linear-gradient(135deg, #f7efe4, #efe0cf);
    min-height: 100vh;
}

.pdv-main {
    min-height: 100vh;
    padding: 1rem;
}

.pdv-shell {
    min-height: calc(100vh - 2rem);
}

.pdv-topbar {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(124, 74, 45, .12);
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.75rem rgba(47, 36, 29, .08);
    backdrop-filter: blur(8px);
}

.pdv-brand-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #5a3825;
    color: #fff7ec;
    font-size: 1.45rem;
}

.pdv-panel {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(124, 74, 45, .1);
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.75rem rgba(47, 36, 29, .08);
}

.pdv-category-filter .btn {
    border-radius: 999px;
}

.pdv-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: .85rem;
    max-height: calc(100vh - 250px);
    overflow: auto;
    padding-right: .35rem;
}

.pdv-product-card {
    border: 1px solid rgba(124, 74, 45, .13);
    border-radius: 1.15rem;
    background: #fffaf4;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 .35rem 1rem rgba(47, 36, 29, .06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    width: 100%;
    position: relative;
}

.pdv-product-card:hover,
.pdv-product-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 .8rem 1.6rem rgba(47, 36, 29, .13);
    border-color: rgba(124, 74, 45, .35);
}

.pdv-product-featured::before {
    content: 'Destaque';
    position: absolute;
    top: .65rem;
    left: .65rem;
    z-index: 2;
    background: #ffc107;
    color: #2f241d;
    font-size: .7rem;
    font-weight: 800;
    border-radius: 999px;
    padding: .18rem .5rem;
}

.pdv-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 193, 155, .8), transparent 35%),
        linear-gradient(135deg, #f8dcc1, #fff6ec);
}

.pdv-product-info {
    padding: .8rem;
}

.pdv-product-name {
    min-height: 2.6rem;
    color: #2f241d;
    font-weight: 700;
    line-height: 1.15;
}

.pdv-product-price {
    color: #5a3825;
    font-weight: 800;
    font-size: .98rem;
}

.pdv-product-category {
    color: #8b694d;
    font-size: .75rem;
}

.pdv-product-options {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.pdv-product-options small {
    border-radius: 999px;
    background: rgba(90,56,37,.08);
    color: #5a3825;
    padding: .12rem .45rem;
    font-weight: 700;
}

.pdv-cart {
    position: sticky;
    top: 1rem;
}

.pdv-cart-list {
    max-height: calc(100vh - 430px);
    overflow: auto;
}

.pdv-cart-item {
    border-bottom: 1px solid rgba(124, 74, 45, .12);
    padding: .8rem 0;
}

.pdv-cart-item:last-child {
    border-bottom: 0;
}

.pdv-cart-total {
    border-radius: 1rem;
    background: #2f241d;
    color: #fff7ec;
}

.pdv-modal-product-img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 1rem;
    background: #f8dcc1;
}

.pdv-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(124, 74, 45, .25);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.pdv-qty-control button {
    border: 0;
    background: transparent;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.pdv-qty-control input {
    width: 4rem;
    border: 0;
    text-align: center;
    font-weight: 700;
}

.pdv-empty-state {
    border: 2px dashed rgba(124, 74, 45, .22);
    border-radius: 1rem;
    padding: 2rem;
    color: #7c4a2d;
    text-align: center;
    background: rgba(255,255,255,.55);
}

@media (max-width: 991.98px) {
    .admin-main {
        padding: 1rem;
    }

    .admin-topbar {
        margin: .75rem .75rem 0;
    }

    .pdv-product-grid {
        max-height: none;
    }

    .pdv-cart {
        position: static;
    }

    .pdv-cart-list {
        max-height: none;
    }
}


/* Melhorias v4: dashboard, funcionário e cardápio */
.min-w-0 { min-width: 0; }
.admin-user-pill {
    align-items: center;
    gap: .65rem;
    border: 1px solid rgba(124,74,45,.12);
    background: #fffaf4;
    border-radius: 999px;
    padding: .35rem .7rem .35rem .4rem;
}
.admin-user-pill > span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--coffee-dark);
    color: var(--cream);
    font-weight: 800;
}
.admin-user-pill strong,
.admin-user-pill small { display: block; line-height: 1.05; }
.admin-user-pill small { color: #837161; font-size: .72rem; }
.dashboard-hero,
.staff-hero {
    border-radius: 1.65rem;
    padding: clamp(1.3rem, 3vw, 2.4rem);
    background: linear-gradient(135deg, rgba(47,36,29,.98), rgba(124,74,45,.92));
    color: var(--cream);
    box-shadow: 0 1rem 2.4rem rgba(47,36,29,.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dashboard-hero h1,
.staff-hero h1 { margin: .15rem 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 850; }
.dashboard-hero p,
.staff-hero p { margin: 0; color: rgba(255,247,236,.78); }
.staff-hero { background: linear-gradient(135deg, #263b31, #5a7c4c); }
.staff-hero span { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; color: rgba(255,247,236,.75); }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.metric-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(124,74,45,.1);
    border-radius: 1.25rem;
    padding: 1.1rem;
    box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.08);
}
.metric-card span,
.detail-tile span { color: #806d5c; font-size: .83rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric-card strong { display: block; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.1; margin: .35rem 0; color: var(--coffee-dark); }
.metric-card small { color: #897667; }
.metric-warning { background: #fff7df; border-color: rgba(255,193,7,.38); }
.bar-chart { display: grid; gap: .95rem; }
.bar-row { display: grid; grid-template-columns: 3.6rem 1fr 7rem; align-items: center; gap: .85rem; }
.bar-row > span { color: #7a6657; font-weight: 700; font-size: .9rem; }
.bar-row > strong { text-align: right; color: var(--coffee-dark); }
.bar-track { height: .72rem; border-radius: 999px; background: rgba(124,74,45,.11); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c4a2d, #c78952); }
.bar-fill.staff { background: linear-gradient(90deg, #3d6047, #7fa269); }
.mini-list-item,
.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(124,74,45,.1);
}
.mini-list-item:last-child,
.ranking-item:last-child { border-bottom: 0; }
.mini-list-item strong,
.mini-list-item small,
.ranking-item strong,
.ranking-item small { display: block; }
.mini-list-item small,
.ranking-item small { color: #8a7768; }
.mini-list-item > span,
.ranking-item > span { font-weight: 800; color: var(--coffee); white-space: nowrap; }
.stock-alert > span { background: #fff0d1; border-radius: 999px; padding: .25rem .65rem; color: #8a4e00; }
.empty-state-mini {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(124,74,45,.07);
    color: #806d5c;
    text-align: center;
}
.empty-state-mini.success { background: rgba(25,135,84,.08); color: #146c43; }
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.page-title-row h1 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 850; }
.page-title-row p { margin: .25rem 0 0; color: #806d5c; }
/* Área do funcionário */
.staff-body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(61,96,71,.12), transparent 32rem), linear-gradient(135deg, #f3f5ef, #e8eee1);
    color: #223025;
}
.staff-shell { display: flex; min-height: 100vh; }
.staff-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(180deg, #1f3026, #3d6047);
    color: #f7fff4;
    position: sticky;
    top: 0;
}
.staff-sidebar-brand { display: flex; align-items: center; gap: .85rem; padding: .9rem .8rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.staff-sidebar-brand > span { width: 2.8rem; height: 2.8rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); font-size: 1.35rem; }
.staff-sidebar-brand strong,
.staff-sidebar-brand small { display: block; }
.staff-sidebar-brand small { color: rgba(255,255,255,.66); }
.staff-nav { display: grid; gap: .35rem; padding-top: 1rem; }
.staff-nav a { color: rgba(255,255,255,.84); text-decoration: none; display: flex; align-items: center; gap: .72rem; padding: .78rem .85rem; border-radius: .95rem; transition: background .16s ease, transform .16s ease; }
.staff-nav a:hover,
.staff-nav a.active { background: rgba(255,255,255,.13); color: #fff; transform: translateX(2px); }
.staff-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.staff-topbar { margin: 1rem 1rem 0; padding: .85rem 1rem; border-radius: 1.25rem; background: rgba(255,255,255,.86); border: 1px solid rgba(61,96,71,.14); box-shadow: 0 .75rem 1.75rem rgba(31,48,38,.08); display: flex; align-items: center; gap: 1rem; }
.staff-topbar-title { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.staff-topbar-title > span { width: 2.6rem; height: 2.6rem; border-radius: .95rem; display: inline-flex; align-items: center; justify-content: center; background: #3d6047; color: #fff; }
.staff-topbar-title strong,
.staff-topbar-title small { display: block; line-height: 1.08; }
.staff-topbar-title small { color: #637263; }
.staff-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.staff-user { background: #f5faef; color: #3d6047; font-weight: 700; border-radius: 999px; padding: .35rem .7rem; }
.staff-main { flex: 1; padding: 1.25rem; }
.staff-footer { display: flex; flex-wrap: wrap; gap: .5rem; color: #637263; font-size: .9rem; }
.staff-sidebar-mobile { background: #1f3026; color: #fff; }
.staff-sidebar-mobile .btn-close { filter: invert(1); }
.staff-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1rem; }
.staff-product-card { color: inherit; text-decoration: none; background: rgba(255,255,255,.92); border: 1px solid rgba(61,96,71,.12); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 .55rem 1.35rem rgba(31,48,38,.08); transition: transform .16s ease, box-shadow .16s ease; }
.staff-product-card:hover { transform: translateY(-2px); box-shadow: 0 .9rem 1.8rem rgba(31,48,38,.14); }
.staff-product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e4eadf; }
.staff-product-card div { padding: 1rem; }
.staff-product-card small { color: #688069; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.staff-product-card h2 { font-size: 1.1rem; margin: .35rem 0; font-weight: 850; }
.staff-product-card p { color: #3d6047; font-weight: 800; margin-bottom: .45rem; }
.staff-product-card span { color: #637263; font-size: .9rem; }
.product-detail-image { width: 100%; border-radius: 1.25rem; aspect-ratio: 4/3; object-fit: cover; background: #e9eee4; }
.detail-tile { border-radius: 1.1rem; background: rgba(255,255,255,.86); border: 1px solid rgba(124,74,45,.1); padding: 1rem; height: 100%; }
.detail-tile strong { display: block; margin-top: .35rem; color: var(--coffee-dark); }
.report-card { display: block; height: 100%; color: inherit; text-decoration: none; background: rgba(255,255,255,.9); border: 1px solid rgba(61,96,71,.12); border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 .55rem 1.35rem rgba(31,48,38,.08); }
.report-card span { font-size: 2rem; }
.report-card h2 { font-size: 1.2rem; font-weight: 850; margin: .75rem 0 .35rem; }
.report-card p { color: #637263; margin: 0; }
.profile-card .profile-avatar { width: 5rem; height: 5rem; border-radius: 1.35rem; background: #3d6047; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; margin-bottom: 1.25rem; }
.form-card { max-width: 720px; }
/* Cardápio digital v2 */
.cardapio-v2 { background: radial-gradient(circle at 10% 0%, rgba(241,193,155,.42), transparent 32rem), linear-gradient(135deg, #fff8ef, #efe0cd); }
.cardapio-hero-v2 { background: linear-gradient(135deg, rgba(47,36,29,.98), rgba(111,65,38,.94)); color: #fff7ec; border-radius: 1.75rem; padding: clamp(1.35rem, 4vw, 2.7rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: 0 1.1rem 2.6rem rgba(47,36,29,.22); overflow: hidden; position: relative; }
.cardapio-hero-v2::after { content: '☕'; position: absolute; right: 8rem; bottom: -2.5rem; font-size: 10rem; color: rgba(255,255,255,.06); transform: rotate(-12deg); }
.cardapio-hero-copy { position: relative; z-index: 1; }
.cardapio-pill { display: inline-flex; border-radius: 999px; padding: .35rem .75rem; background: rgba(255,255,255,.12); color: #fff7ec; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.cardapio-hero-v2 h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: .95; font-weight: 900; margin: .75rem 0; }
.cardapio-hero-v2 p { max-width: 680px; color: rgba(255,247,236,.8); font-size: 1.1rem; margin-bottom: 1rem; }
.cardapio-contact { display: flex; flex-wrap: wrap; gap: .65rem; }
.cardapio-contact span { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .35rem .7rem; color: rgba(255,247,236,.86); }
.cardapio-qr-box { position: relative; z-index: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 1.25rem; padding: 1rem; text-align: center; min-width: 155px; }
.cardapio-qr-box img { width: 132px; height: 132px; border-radius: .85rem; background: #fff; padding: .55rem; display: block; margin: 0 auto .5rem; }
.cardapio-qr-box small { color: rgba(255,247,236,.78); }
.cardapio-toolbar { background: rgba(255,255,255,.78); border: 1px solid rgba(124,74,45,.12); border-radius: 1.35rem; padding: 1rem; box-shadow: 0 .65rem 1.5rem rgba(47,36,29,.08); }
.cardapio-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.cardapio-filter-row .btn { border-radius: 999px; }
.cardapio-category-section { margin-bottom: 2rem; }
.cardapio-category-title { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.cardapio-category-title > span { width: 3.2rem; height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; background: #f1c19b; font-size: 1.5rem; }
.cardapio-category-title h2 { margin: 0; font-weight: 900; color: #2f241d; }
.cardapio-category-title p { margin: .15rem 0 0; color: #7f6c5b; }
.cardapio-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cardapio-item-v2 { display: flex; gap: 1rem; background: rgba(255,255,255,.9); border: 1px solid rgba(124,74,45,.1); border-radius: 1.25rem; padding: .85rem; box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.08); }
.cardapio-item-v2 > img { width: 6.2rem; height: 6.2rem; border-radius: 1rem; object-fit: cover; background: #f8dcc1; flex: 0 0 auto; }
.cardapio-item-body { min-width: 0; flex: 1; }
.cardapio-item-body h3 { font-size: 1.05rem; font-weight: 850; margin: 0 0 .35rem; }
.cardapio-item-body p { color: #806d5c; font-size: .92rem; margin-bottom: .65rem; }
.cardapio-item-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.cardapio-item-footer strong { color: #5a3825; font-size: 1.02rem; }
.cardapio-item-footer span { background: #fff0d1; color: #7c4a2d; border-radius: 999px; padding: .18rem .55rem; font-size: .78rem; font-weight: 800; }
.cardapio-empty { border-radius: 1.25rem; padding: 1.3rem; text-align: center; background: rgba(255,255,255,.82); color: #806d5c; }
.cardapio-footer-v2 { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; color: #806d5c; padding: 1.5rem 0; }
@media (max-width: 991.98px) {
    .dashboard-hero,
    .staff-hero,
    .cardapio-hero-v2 { align-items: flex-start; flex-direction: column; }
    .staff-main { padding: 1rem; }
    .staff-topbar { margin: .75rem .75rem 0; }
    .page-title-row { align-items: flex-start; flex-direction: column; }
    .bar-row { grid-template-columns: 3.2rem 1fr; }
    .bar-row > strong { grid-column: 2; text-align: left; font-size: .88rem; }
}
@media (max-width: 575.98px) {
    .cardapio-item-v2 { flex-direction: column; }
    .cardapio-item-v2 > img { width: 100%; height: auto; aspect-ratio: 4/3; }
    .cardapio-qr-box { width: 100%; }
}




.pagination-wrapper {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding-top: 1rem;
}
.pagination .page-link {
    border-radius: .75rem;
    margin: 0 .125rem;
    color: #6f4e37;
}
.pagination .page-item.active .page-link {
    background: #6f4e37;
    border-color: #6f4e37;
    color: #fff;
}


/* Módulo salão v1 */
.salao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.salao-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(124,74,45,.12);
    border-radius: 1.35rem;
    padding: 1.1rem;
    box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.08);
    transition: transform .16s ease, box-shadow .16s ease;
    overflow: hidden;
    position: relative;
}
.salao-card:hover { transform: translateY(-2px); box-shadow: 0 .9rem 1.8rem rgba(47,36,29,.14); }
.salao-card::after { content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 7rem; height: 7rem; border-radius: 999px; background: rgba(124,74,45,.08); }
.salao-card-ocupada { border-color: rgba(220,53,69,.22); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,241,241,.9)); }
.salao-card-livre { border-color: rgba(25,135,84,.18); }
.salao-card-reservada { border-color: rgba(255,193,7,.35); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,249,226,.9)); }
.salao-card-kicker { display: inline-flex; color: #806d5c; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.salao-card h2 { font-size: 2.3rem; line-height: 1; margin: .15rem 0; color: var(--coffee-dark); font-weight: 900; }
.salao-card p { color: #806d5c; margin: 0; }
.salao-card-body { display: grid; gap: .65rem; margin-top: 1rem; }
.salao-card-body small { display: block; color: #806d5c; font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.salao-card-body strong { color: var(--coffee-dark); }
.salao-product-grid { max-height: calc(100vh - 330px); }
.salao-comanda-panel { position: sticky; top: 1rem; }
.salao-cart-list { max-height: calc(100vh - 490px); overflow: auto; }
@media (max-width: 991.98px) {
    .salao-comanda-panel { position: static; }
    .salao-product-grid,
    .salao-cart-list { max-height: none; }
}

/* Pagamento misto v7 */
.mixed-payment-box {
    border: 1px solid rgba(40, 31, 25, .12);
    border-radius: 1.25rem;
    background: #fffaf4;
    padding: 1rem;
}
.payment-rows {
    display: grid;
    gap: .75rem;
}
.payment-row {
    background: #fff;
    border: 1px solid rgba(40, 31, 25, .08);
    border-radius: 1rem;
    padding: .75rem;
}
.payment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}
.payment-summary > div {
    background: #fff;
    border: 1px solid rgba(40, 31, 25, .08);
    border-radius: .9rem;
    padding: .65rem .75rem;
}
.payment-summary span {
    display: block;
    color: #7a6a5f;
    font-size: .78rem;
}
.payment-summary strong {
    display: block;
    color: #2e211a;
    font-size: 1rem;
}
.mixed-payment-box.is-paid {
    border-color: rgba(25, 135, 84, .35);
}
.mixed-payment-box.is-pending {
    border-color: rgba(255, 193, 7, .5);
}
@media (max-width: 575.98px) {
    .payment-summary {
        grid-template-columns: 1fr;
    }
}

/* Relatórios v8 */
.report-kpi {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.94));
    border: 1px solid rgba(124,74,45,.12);
    border-radius: 1.25rem;
    box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.08);
    padding: 1.15rem;
    height: 100%;
}

.report-kpi span,
.report-kpi small {
    color: #867466;
    display: block;
}

.report-kpi strong {
    color: #2f241d;
    display: block;
    font-size: clamp(1.45rem, 2.3vw, 2.05rem);
    line-height: 1.1;
    margin: .35rem 0 .2rem;
}

.report-bars,
.report-mini-list,
.report-ranking {
    display: grid;
    gap: .9rem;
}

.report-bar-row {
    display: grid;
    grid-template-columns: 86px 1fr 110px;
    gap: .8rem;
    align-items: center;
}

.report-bar-label,
.report-bar-value {
    font-size: .88rem;
    color: #6e5642;
}

.report-bar-value {
    text-align: right;
    font-weight: 700;
}

.report-bar-track,
.report-thin-track {
    background: rgba(124,74,45,.12);
    border-radius: 999px;
    overflow: hidden;
}

.report-bar-track {
    height: 1.1rem;
}

.report-thin-track {
    height: .55rem;
    margin-top: .45rem;
}

.report-bar-fill,
.report-thin-track > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8a4f2a, #d99050);
    min-width: .35rem;
}

.report-mini-item,
.report-rank-row {
    background: #fffaf4;
    border: 1px solid rgba(124,74,45,.10);
    border-radius: 1rem;
    padding: .8rem;
}

.report-rank-row {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.report-rank-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #2f241d;
    color: #fff7ec;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.report-shortcut {
    display: block;
    height: 100%;
    text-decoration: none;
    color: #2f241d;
    background: #fffaf4;
    border: 1px solid rgba(124,74,45,.12);
    border-radius: 1rem;
    padding: 1rem;
    transition: .18s ease;
}

.report-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.2rem rgba(47,36,29,.08);
}

.report-shortcut strong,
.report-shortcut span {
    display: block;
}

.report-shortcut span {
    color: #867466;
    font-size: .9rem;
    margin-top: .25rem;
}

@media (max-width: 767.98px) {
    .report-bar-row {
        grid-template-columns: 72px 1fr;
    }

    .report-bar-value {
        grid-column: 1 / -1;
        text-align: left;
        margin-left: 72px;
    }
}

@media print {
    .no-print,
    .admin-sidebar,
    .admin-topbar,
    .admin-footer {
        display: none !important;
    }

    .admin-content,
    .admin-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .admin-card,
    .report-kpi {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Melhorias v9: comprovante térmico, caixa, metas e salão no PDV */
.thermal-receipt {
    width: 80mm;
    max-width: 100%;
    background: #fff;
    color: #111;
    border: 1px dashed rgba(0,0,0,.25);
    border-radius: .75rem;
    padding: 7mm 5mm;
    font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.25;
    box-shadow: 0 1rem 2rem rgba(0,0,0,.08);
}

.receipt-logo-wrap,
.receipt-center { text-align: center; }
.receipt-logo { max-width: 42mm; max-height: 22mm; object-fit: contain; margin-bottom: 2mm; }
.receipt-store-name { font-weight: 900; font-size: 16px; text-transform: uppercase; }
.receipt-muted { color: #444; font-size: 11px; }
.receipt-separator { border-top: 1px dashed #111; margin: 3mm 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 4mm; align-items: flex-start; }
.receipt-row span:first-child { flex: 1; }
.receipt-row strong { text-align: right; white-space: nowrap; }
.receipt-title { font-weight: 900; text-transform: uppercase; margin-bottom: 1.5mm; }
.receipt-total { font-size: 15px; font-weight: 900; margin-top: 1.5mm; }
.receipt-line-small { font-size: 11px; }
.receipt-item { margin-bottom: 2mm; }
.receipt-item-name { font-weight: 700; }
.receipt-social { font-weight: 900; font-size: 14px; }
.receipt-qr-wrap { margin: 2mm 0; }
.receipt-qr { width: 32mm; height: 32mm; image-rendering: pixelated; }
.receipt-link { word-break: break-all; }
.receipt-whatsapp { font-weight: 700; margin-top: 1mm; }
.receipt-message { font-weight: 700; }

.cashier-box {
    background: #fff8ef;
    border: 1px solid rgba(124, 74, 45, .12);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 100%;
}
.cashier-box span,
.cashier-box small { display: block; color: #7b6758; }
.cashier-box strong { display: block; font-size: 1.35rem; color: #2f241d; }

.progress-thin {
    height: .5rem;
    background: #f0e4d7;
    border-radius: 999px;
    overflow: hidden;
}
.progress-thin .progress-bar {
    background: linear-gradient(90deg, #8a4f2a, #d99050);
}

.pdv-table-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: .75rem;
}
.pdv-table-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-decoration: none;
    color: #2f241d;
    background: #fffaf4;
    border: 1px solid rgba(124,74,45,.12);
    border-left: .4rem solid #6c757d;
    border-radius: 1rem;
    padding: .9rem;
    transition: .18s ease;
}
.pdv-table-card:hover {
    transform: translateY(-2px);
    color: #2f241d;
    box-shadow: 0 .6rem 1.2rem rgba(47,36,29,.08);
}
.pdv-table-livre { border-left-color: #198754; }
.pdv-table-ocupada { border-left-color: #dc3545; }
.pdv-table-reservada { border-left-color: #ffc107; }
.pdv-table-inativa { opacity: .65; }
.pdv-table-number { font-weight: 900; font-size: 1.05rem; }
.pdv-table-status { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #7b6758; }
.pdv-table-card strong { font-size: .95rem; }
.pdv-table-card small { color: #7b6758; }
.pdv-table-card em { font-style: normal; font-weight: 800; margin-top: .35rem; color: #8a4f2a; }

@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }

    html,
    body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden;
    }

    .thermal-receipt,
    .thermal-receipt * {
        visibility: visible;
    }

    .thermal-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm !important;
        max-width: 80mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 3mm 4mm 5mm !important;
        margin: 0 !important;
        font-size: 11px !important;
    }

    .receipt-logo { max-width: 38mm !important; max-height: 18mm !important; }
    .receipt-qr { width: 28mm !important; height: 28mm !important; }
}

/* PDV fullscreen v11 - menu oculto e uso total da tela */
.pdv-fullscreen-active {
    overflow-x: hidden;
}

.pdv-fullscreen-active .admin-sidebar,
.pdv-fullscreen-active .admin-sidebar-mobile,
.pdv-fullscreen-active .admin-topbar,
.pdv-fullscreen-active .staff-sidebar,
.pdv-fullscreen-active .staff-sidebar-mobile,
.pdv-fullscreen-active .staff-topbar {
    display: none !important;
}

.pdv-fullscreen-active .admin-shell,
.pdv-fullscreen-active .staff-shell,
.pdv-fullscreen-active .admin-content,
.pdv-fullscreen-active .staff-content,
.pdv-fullscreen-active .admin-main,
.pdv-fullscreen-active .staff-main,
.pdv-fullscreen-active .pdv-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.pdv-fullscreen-active .pdv-main {
    min-height: 100vh;
    padding: .65rem;
}

.pdv-fullscreen-active .pdv-shell {
    min-height: calc(100vh - 1.3rem);
}

.pdv-fullscreen-active .pdv-topbar {
    margin-bottom: .75rem !important;
}

@media (min-width: 1200px) {
    .pdv-fullscreen-active .pdv-main {
        padding: .85rem;
    }

    .pdv-fullscreen-active .pdv-shell {
        min-height: calc(100vh - 1.7rem);
    }
}


/* Painel com menu recolhido v12 */
.admin-body .admin-sidebar,
.staff-body .staff-sidebar {
    display: none !important;
}

.admin-body .admin-shell,
.staff-body .staff-shell {
    display: block;
    min-height: 100vh;
}

.admin-body .admin-content,
.staff-body .staff-content {
    width: 100%;
    min-height: 100vh;
}

.admin-body .admin-topbar,
.staff-body .staff-topbar {
    position: sticky;
    top: .75rem;
    z-index: 1020;
}

.panel-menu-button {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    font-weight: 850;
    padding: .48rem .78rem;
    white-space: nowrap;
    background: rgba(255,255,255,.72);
    border-color: rgba(124,74,45,.24);
    color: #5a3825;
}

.panel-menu-button:hover,
.panel-menu-button:focus {
    background: #5a3825;
    border-color: #5a3825;
    color: #fff7ec;
}

.panel-menu-icon {
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.staff-panel-menu-button {
    border-color: rgba(61,96,71,.25);
    color: #3d6047;
}

.staff-panel-menu-button:hover,
.staff-panel-menu-button:focus {
    background: #3d6047;
    border-color: #3d6047;
    color: #fff;
}

.admin-sidebar-mobile,
.staff-sidebar-mobile {
    width: min(330px, 90vw) !important;
    border-right: 0;
    box-shadow: 1.25rem 0 2.5rem rgba(0,0,0,.18);
}

.admin-sidebar-mobile .offcanvas-header,
.staff-sidebar-mobile .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.admin-sidebar-mobile .offcanvas-title,
.staff-sidebar-mobile .offcanvas-title {
    font-weight: 900;
}

.admin-sidebar-mobile .offcanvas-body,
.staff-sidebar-mobile .offcanvas-body {
    padding: 1rem;
}

.admin-sidebar-mobile .admin-nav,
.staff-sidebar-mobile .staff-nav {
    padding-top: 0;
}

@media (max-width: 575.98px) {
    .admin-body .admin-topbar,
    .staff-body .staff-topbar {
        top: .5rem;
        margin: .5rem .5rem 0;
        padding: .72rem;
        border-radius: 1rem;
    }

    .panel-menu-button strong {
        display: none;
    }

    .panel-menu-button {
        width: 2.35rem;
        height: 2.35rem;
        justify-content: center;
        padding: 0;
    }

    .admin-main,
    .staff-main {
        padding: .85rem;
    }
}

/* PDV AJAX v13 */
.pdv-live-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.pdv-ajax-alert {
    animation: pdv-alert-in .22s ease-out both;
    pointer-events: auto;
}

.pdv-ajax-alert.is-hiding {
    animation: pdv-alert-out .22s ease-in both;
}

@keyframes pdv-alert-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pdv-alert-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }
}


/* Melhorias v14 - configurações, venda detalhada e logo dinâmica */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8a4f2a;
    margin-bottom: .35rem;
}
.config-brand-card {
    background: linear-gradient(160deg, #fffaf4, #ffffff 52%, #f5eadb);
}
.config-logo-preview {
    min-height: 170px;
    border-radius: 1.25rem;
    border: 1px dashed rgba(124,74,45,.28);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.config-logo-preview img {
    max-width: 100%;
    max-height: 135px;
    object-fit: contain;
}
.config-info-box {
    border: 1px solid rgba(124,74,45,.12);
    background: #fffaf4;
    border-radius: 1rem;
    padding: .95rem;
    min-height: 100%;
}
.config-info-box span {
    display: block;
    color: #806f61;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .25rem;
}
.config-info-box strong {
    color: #2f241d;
    font-size: .95rem;
}
.config-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(124,74,45,.12);
    background: rgba(255,255,255,.92);
    border-radius: 1.25rem;
    padding: 1.1rem;
    color: #2f241d;
    box-shadow: 0 .55rem 1.35rem rgba(47,36,29,.06);
    transition: .18s ease;
    position: relative;
    overflow: hidden;
}
.config-tile:hover {
    transform: translateY(-2px);
    color: #2f241d;
    box-shadow: 0 .85rem 1.85rem rgba(47,36,29,.1);
}
.config-tile-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.config-tile h2 {
    font-size: 1.05rem;
    margin: 0 0 .25rem;
    font-weight: 900;
}
.config-tile p {
    color: #806f61;
    margin: 0;
    font-size: .92rem;
}
.config-tile em {
    position: absolute;
    right: 1rem;
    bottom: .75rem;
    font-style: normal;
    font-weight: 800;
    color: #8a4f2a;
    font-size: .82rem;
}
.sale-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: .85rem;
    object-fit: cover;
    background: #fff8ef;
    border: 1px solid rgba(124,74,45,.12);
}
.venda-detail-table thead th {
    color: #7b6758;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #fffaf4;
}
.sale-summary-list {
    display: grid;
    gap: .85rem;
}
.sale-summary-list dt {
    color: #806f61;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
}
.sale-summary-list dd {
    margin: -.55rem 0 0;
    font-weight: 800;
    color: #2f241d;
}
.sale-summary-list dd small {
    display: block;
    font-weight: 500;
    color: #867466;
}
.payment-detail-item span {
    font-weight: 900;
    color: #198754;
}
.payment-total-box {
    border-top: 1px dashed rgba(124,74,45,.28);
    padding-top: .85rem;
    display: grid;
    gap: .45rem;
}
.payment-total-box div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.payment-total-box span {
    color: #806f61;
}
.payment-total-box strong {
    color: #2f241d;
}
.receipt-logo-wrap {
    min-height: 12mm;
}
.receipt-logo {
    mix-blend-mode: multiply;
}
@media print {
    .receipt-logo {
        filter: grayscale(1) contrast(1.15);
    }
}

.cash-ranking {
    display: grid;
    gap: .75rem;
}
.cash-ranking > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(124,74,45,.12);
    border-radius: 1rem;
    padding: .85rem 1rem;
    background: #fffaf4;
}
.cash-ranking span {
    font-weight: 700;
    color: #2f241d;
}
.cash-ranking strong {
    color: #8a4f2a;
    white-space: nowrap;
}
.cash-timeline {
    position: relative;
    display: grid;
    gap: .9rem;
    padding-left: 1.4rem;
}
.cash-timeline::before {
    content: "";
    position: absolute;
    left: .42rem;
    top: .35rem;
    bottom: .35rem;
    width: 2px;
    background: rgba(124,74,45,.16);
}
.cash-timeline-item {
    position: relative;
}
.cash-timeline-dot {
    position: absolute;
    left: -1.33rem;
    top: .45rem;
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    background: #8a4f2a;
    box-shadow: 0 0 0 4px #fff8ef;
}
.cash-timeline-venda .cash-timeline-dot { background: #198754; }
.cash-timeline-cancelamento .cash-timeline-dot { background: #dc3545; }
.cash-timeline-fechamento .cash-timeline-dot { background: #0d6efd; }
.cash-timeline-content {
    border: 1px solid rgba(124,74,45,.12);
    background: #fff;
    border-radius: 1rem;
    padding: .9rem 1rem;
}
.cash-timeline-content span {
    color: #8a4f2a;
    font-weight: 800;
    font-size: .9rem;
}
.cash-timeline-content small {
    display: block;
    color: #806f61;
    margin-top: .2rem;
}

/* v18 - Fidelidade e QR Code por mesa */
.mesa-qr-preview {
    width: min(220px, 100%);
    background: #fff;
    border-radius: 1.25rem;
    padding: .75rem;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}
.mesa-qr-page .cardapio-qr-box img {
    object-fit: contain;
    border-radius: 1rem;
    background: #fff;
}
.mesa-order-item .mesa-add-form {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding-top: .85rem;
}
.mesa-order-cart {
    top: 1rem;
}
.mesa-order-cart .pdv-cart-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
}
@media (max-width: 991.98px) {
    .mesa-order-cart.sticky-lg-top { position: static !important; }
}

/* v19 - Salão com campainha e mesa mobile app */
.salao-live-panel {
    background: linear-gradient(135deg, #fff7e8, #ffffff);
    border: 1px solid rgba(161, 98, 7, .16);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.salao-live-status { display: flex; align-items: center; gap: .9rem; }
.salao-live-status strong { display: block; font-size: 1rem; color: #111827; }
.salao-live-status span { display: block; color: #6b7280; font-size: .875rem; }
.salao-live-icon {
    width: 46px; height: 46px; border-radius: 16px;
    display: grid; place-items: center;
    background: #111827; color: #fff; font-size: 1.35rem;
}
.salao-live-status.has-alert .salao-live-icon { background: #dc2626; animation: salaoBellPulse 1s ease-in-out infinite; }
.salao-card.has-pending-order {
    border-color: rgba(220, 38, 38, .35) !important;
    box-shadow: 0 16px 38px rgba(220, 38, 38, .12) !important;
}
.salao-pulse { animation: salaoBellPulse 1.1s ease-in-out infinite; }
@keyframes salaoBellPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, .28); }
    50% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}
.salao-comanda-modal-summary {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.salao-comanda-modal-summary > div {
    border: 1px solid #e5e7eb; border-radius: 1rem; padding: .85rem; background: #f9fafb;
}
.salao-comanda-modal-summary span { display: block; color: #6b7280; font-size: .78rem; }
.salao-comanda-modal-summary strong { display: block; color: #111827; font-size: 1rem; }
.salao-pending-order-card {
    border: 1px solid rgba(245, 158, 11, .22);
    background: #fffbeb;
    border-radius: 1.1rem;
    padding: 1rem;
    margin-bottom: .85rem;
}
.salao-order-item-row, .salao-comanda-item-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .65rem 0; border-bottom: 1px dashed #e5e7eb;
}
.salao-order-item-row:last-child, .salao-comanda-item-row:last-child { border-bottom: 0; }
.salao-order-item-row small, .salao-comanda-item-row small { display: block; color: #6b7280; margin-top: .15rem; }
.salao-comanda-items-list { background: #f9fafb; border-radius: 1rem; padding: .5rem .85rem; }

.mesa-app-page {
    background: #f5efe7;
    color: #211915;
    padding-bottom: 84px;
}
.mesa-app-header {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem 1rem;
    background: rgba(255, 250, 244, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(80, 55, 38, .1);
}
.mesa-app-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.mesa-app-brand img { width: 44px; height: 44px; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.mesa-app-brand strong, .mesa-app-brand span { display: block; line-height: 1.15; }
.mesa-app-brand span { color: #7c624e; font-size: .84rem; }
.mesa-app-header-link {
    text-decoration: none; color: #fff; background: #3b2418; border-radius: 999px;
    padding: .58rem .9rem; font-weight: 700; font-size: .9rem;
}
.mesa-app-main { max-width: 980px; margin: 0 auto; padding: 1rem; }
.mesa-app-hero {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, .22), transparent 34%), linear-gradient(135deg, #3b2418, #7a4c2d);
    border-radius: 1.6rem;
    padding: 1.25rem;
    color: #fff;
    box-shadow: 0 18px 40px rgba(59, 36, 24, .22);
    margin-bottom: 1rem;
}
.mesa-app-pill { display: inline-flex; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; margin-bottom: .65rem; }
.mesa-app-hero h1 { font-size: clamp(1.65rem, 8vw, 3.1rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 .65rem; max-width: 620px; }
.mesa-app-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 540px; }
.mesa-app-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.mesa-app-hero-meta span { background: rgba(255,255,255,.12); padding: .4rem .7rem; border-radius: 999px; font-size: .85rem; }
.mesa-app-card, .mesa-app-client-card, .mesa-app-toolbar, .mesa-product-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(80, 55, 38, .08);
    border-radius: 1.35rem;
    box-shadow: 0 12px 28px rgba(80,55,38,.08);
}
.mesa-app-card { padding: 1rem; margin-bottom: 1rem; }
.mesa-section-title { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .9rem; }
.mesa-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: #3b2418; color: #fff; font-weight: 800; flex: 0 0 auto; }
.mesa-section-title h2 { margin: 0; font-size: 1.1rem; }
.mesa-section-title p { margin: .1rem 0 0; color: #7c624e; font-size: .9rem; }
.mesa-app-form { display: grid; gap: .75rem; }
.mesa-app-form label { font-weight: 700; color: #3b2418; }
.mesa-app-form input { margin-top: .35rem; }
.mesa-app-client-card { color: #fff; background: linear-gradient(135deg, #166534, #22c55e); padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.mesa-app-client-card strong, .mesa-app-client-card span { display: block; }
.mesa-app-client-card span { opacity: .86; font-size: .88rem; }
.mesa-app-toolbar { position: sticky; top: 70px; z-index: 20; padding: .75rem; margin-bottom: 1rem; }
.mesa-category-chips { display: flex; gap: .5rem; overflow-x: auto; padding-top: .6rem; scrollbar-width: none; }
.mesa-category-chips::-webkit-scrollbar { display: none; }
.mesa-category-chips .btn { white-space: nowrap; border-radius: 999px; }
.mesa-app-category { margin-bottom: 1.25rem; }
.mesa-category-title { margin: 1rem .25rem .65rem; }
.mesa-category-title h2 { font-size: 1.2rem; margin: 0; }
.mesa-category-title p { margin: .15rem 0 0; color: #7c624e; }
.mesa-product-list { display: grid; gap: .85rem; }
.mesa-product-card { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; }
.mesa-product-card img { width: 112px; height: 100%; min-height: 150px; object-fit: cover; background: #eee; }
.mesa-product-info { padding: .85rem; }
.mesa-product-info h3 { font-size: 1rem; margin: 0 0 .25rem; }
.mesa-product-info p { font-size: .86rem; color: #7c624e; margin: 0 0 .4rem; }
.mesa-product-info > strong { color: #3b2418; }
.mesa-form-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: .5rem; }
.mesa-product-form label { font-size: .78rem; color: #6b4e3d; font-weight: 700; }
.mesa-cart-list, .mesa-comanda-items, .mesa-status-timeline { display: grid; gap: .55rem; }
.mesa-cart-row, .mesa-comanda-row, .mesa-status-row {
    display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start;
    padding: .75rem; background: #fffaf4; border: 1px solid rgba(80,55,38,.07); border-radius: 1rem;
}
.mesa-cart-row small, .mesa-cart-row span, .mesa-comanda-row small, .mesa-status-row small { display: block; color: #7c624e; font-size: .82rem; }
.mesa-cart-total, .mesa-comanda-summary { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem; background: #3b2418; color: #fff; border-radius: 1rem; margin-top: .8rem; }
.mesa-comanda-summary { background: #111827; }
.mesa-comanda-summary div span { display: block; opacity: .75; font-size: .78rem; }
.mesa-empty-state { background: #fffaf4; color: #7c624e; padding: 1rem; border-radius: 1rem; text-align: center; }
.mesa-status-row { justify-content: flex-start; align-items: center; }
.mesa-status-dot { width: 12px; height: 12px; border-radius: 999px; background: #6b7280; flex: 0 0 auto; }
.mesa-status-enviado { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, .12); }
.mesa-status-aceito { background: #16a34a; box-shadow: 0 0 0 5px rgba(22, 163, 74, .12); }
.mesa-status-cancelado { background: #dc2626; box-shadow: 0 0 0 5px rgba(220, 38, 38, .12); }
.mesa-bottom-nav {
    position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 50;
    width: min(94vw, 520px); background: rgba(59, 36, 24, .94); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .45rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; box-shadow: 0 18px 38px rgba(59,36,24,.28);
}
.mesa-bottom-nav a { color: rgba(255,255,255,.82); text-decoration: none; text-align: center; border-radius: 999px; padding: .7rem .35rem; font-weight: 700; font-size: .9rem; position: relative; }
.mesa-bottom-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.mesa-bottom-nav span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .72rem; margin-left: .2rem; }
@media (max-width: 575.98px) {
    .salao-live-panel { flex-direction: column; align-items: stretch; }
    .salao-comanda-modal-summary { grid-template-columns: 1fr; }
    .mesa-app-main { padding: .85rem; }
    .mesa-product-card { grid-template-columns: 92px 1fr; border-radius: 1.1rem; }
    .mesa-product-card img { width: 92px; min-height: 170px; }
    .mesa-product-info { padding: .75rem; }
    .mesa-form-grid { grid-template-columns: 1fr; }
    .mesa-app-toolbar { top: 64px; }
}

/* Fidelidade + QR da mesa v20 */
.mesa-app-v2 {
    background: #f4efe7;
}
.mesa-app-hero-modern {
    background: radial-gradient(circle at top left, rgba(255,255,255,.32), transparent 32%), linear-gradient(135deg, #2d1b12, #8a4f2b);
    color: #fff;
    border: 0;
    box-shadow: 0 20px 50px rgba(45, 27, 18, .2);
}
.mesa-app-hero-modern p,
.mesa-app-hero-modern .mesa-app-hero-meta span {
    color: rgba(255,255,255,.82);
}
.mesa-login-found {
    border-radius: 22px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    padding: 14px;
    color: #14532d;
}
.mesa-login-found strong {
    display: block;
    font-size: 1.05rem;
}
.mesa-pontos-card {
    background: linear-gradient(180deg, #fffaf0, #fff);
    border: 1px solid rgba(245, 158, 11, .22);
}
.mesa-pontos-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 20px;
    background: #2d1b12;
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.mesa-pontos-balance span {
    color: rgba(255,255,255,.72);
    font-size: .85rem;
}
.mesa-pontos-balance strong {
    font-size: 1.2rem;
}
.mesa-reward-list {
    display: grid;
    gap: 12px;
}
.mesa-reward-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(45, 27, 18, .08);
    padding: 10px;
    box-shadow: 0 10px 24px rgba(45, 27, 18, .06);
}
.mesa-reward-card.is-disabled {
    opacity: .62;
}
.mesa-reward-card img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: #f3eee7;
}
.mesa-reward-card strong,
.mesa-reward-card small,
.mesa-reward-card span {
    display: block;
}
.mesa-reward-card small {
    color: #8a4f2b;
    font-weight: 700;
}
.mesa-reward-card span {
    color: #6b7280;
    font-size: .82rem;
}
.mesa-bottom-nav-4 {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 460px) {
    .mesa-reward-card {
        grid-template-columns: 58px 1fr;
    }
    .mesa-reward-card img {
        width: 58px;
        height: 58px;
    }
    .mesa-reward-card form {
        grid-column: 1 / -1;
    }
    .mesa-reward-card .btn {
        width: 100%;
    }
    .mesa-bottom-nav-4 a {
        font-size: .72rem;
        padding-left: 3px;
        padding-right: 3px;
    }
}

/* Mesa mobile refinada v21 */
.mesa-product-card {
    grid-template-columns: 96px 1fr;
    align-items: stretch;
}
.mesa-product-card > img {
    width: 80px;
    height: 80px;
    min-height: 80px;
    margin: 12px 0 12px 12px;
    border-radius: 20px;
    object-fit: cover;
    align-self: start;
    box-shadow: 0 10px 22px rgba(45, 27, 18, .12);
}
.mesa-product-info {
    min-width: 0;
}
.mesa-product-info h3 {
    line-height: 1.15;
}
.mesa-form-grid.mesa-form-grid-single {
    grid-template-columns: 1fr;
}
.mesa-qty-control {
    display: grid;
    grid-template-columns: 42px minmax(54px, 1fr) 42px;
    align-items: center;
    border: 1px solid rgba(80, 55, 38, .12);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.mesa-qty-control button {
    width: 42px;
    height: 42px;
    border: 0;
    background: #3b2418;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
    display: grid;
    place-items: center;
}
.mesa-qty-control button:active {
    transform: scale(.96);
}
.mesa-qty-control input {
    height: 42px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 800;
    background: #fffaf4;
    color: #3b2418;
    padding: 0 .25rem;
    -moz-appearance: textfield;
}
.mesa-qty-control input::-webkit-outer-spin-button,
.mesa-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
@media (max-width: 575.98px) {
    .mesa-product-card {
        grid-template-columns: 92px 1fr;
    }
    .mesa-product-card > img {
        width: 80px;
        height: 80px;
        min-height: 80px;
        margin: 10px 0 10px 10px;
        border-radius: 18px;
    }
    .mesa-product-info {
        padding: .72rem .72rem .72rem .55rem;
    }
    .mesa-product-form {
        margin-top: .75rem !important;
    }
    .mesa-qty-control {
        grid-template-columns: 40px minmax(48px, 1fr) 40px;
    }
    .mesa-qty-control button,
    .mesa-qty-control input {
        height: 40px;
    }
    .mesa-qty-control button {
        width: 40px;
        font-size: 1.35rem;
    }
}

/* v22 - Manutenção do sistema */
.maintenance-option {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}
.maintenance-option:hover {
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.maintenance-option input {
    margin-top: .25rem;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}
.maintenance-option strong {
    display: block;
    color: #111827;
    margin-bottom: .25rem;
}
.maintenance-option small {
    display: block;
    color: #6b7280;
    line-height: 1.35;
}
.maintenance-option-danger {
    border-color: rgba(220, 53, 69, .35);
    background: linear-gradient(135deg, rgba(220, 53, 69, .08), #fff 60%);
}
.maintenance-option-danger:hover {
    border-color: rgba(220, 53, 69, .7);
}

/* Cozinha / Monitor de preparo */
.cozinha-login-page,
.cozinha-monitor-page {
    background: radial-gradient(circle at top left, rgba(233, 184, 114, .22), transparent 38%), #1f120d;
    color: #fff8ec;
}
.cozinha-login-card { background: rgba(255, 248, 236, .98); }
.cozinha-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 82px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2a1710, #4a2a1c);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.cozinha-brand { display: flex; align-items: center; gap: 14px; }
.cozinha-brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 16px; background: #fff8ec; padding: 6px; }
.cozinha-brand strong { display:block; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1; }
.cozinha-brand span { display:block; color: #e9b872; font-size: .95rem; margin-top: 4px; }
.cozinha-actions { display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
.cozinha-monitor { padding: 24px; }
.cozinha-summary-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.cozinha-summary-card {
    background: rgba(255,255,255,.95);
    color: #2a1710;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,.16);
    border: 1px solid rgba(233,184,114,.22);
}
.cozinha-summary-card span { display:block; font-weight: 800; color: #7a6a60; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.cozinha-summary-card strong { display:block; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin: 8px 0; }
.cozinha-summary-card small { color: #7a6a60; }
.cozinha-panel {
    background: #fff8ec;
    color: #2a1710;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.cozinha-panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap: 18px; margin-bottom: 20px; }
.cozinha-panel-head h1 { margin:0; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 900; }
.cozinha-panel-head p { margin: 6px 0 0; color:#7a6a60; max-width: 760px; }
.cozinha-clock { background:#2a1710; color:#e9b872; border-radius:18px; padding: 12px 18px; font-weight: 900; font-size: clamp(1.2rem, 2vw, 2rem); min-width: 110px; text-align:center; }
.cozinha-alert { background:#fff0cf; border:1px solid #e9b872; color:#5b321f; border-radius:18px; padding:12px 16px; margin-bottom: 18px; font-weight: 800; }
.cozinha-orders-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cozinha-order-card {
    background:#fff;
    border-radius: 22px;
    border: 2px solid #f4e7d8;
    box-shadow: 0 10px 25px rgba(42,23,16,.08);
    overflow:hidden;
}
.cozinha-order-card.is-novo { border-color:#b95c4e; }
.cozinha-order-card.is-em_preparo { border-color:#e9b872; }
.cozinha-order-card.is-pronto { border-color:#6c8a64; }
.cozinha-order-head { padding: 16px; background:#fcf6ee; display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; }
.cozinha-order-head strong { display:block; font-size: 1.1rem; }
.cozinha-order-head span { display:block; color:#7a6a60; font-size:.9rem; }
.cozinha-order-body { padding: 16px; }
.cozinha-order-product { font-size: 1.25rem; font-weight: 900; margin-bottom: 8px; }
.cozinha-order-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.cozinha-order-meta span { background:#f4e7d8; border-radius:999px; padding: 6px 10px; color:#5b321f; font-weight: 700; font-size: .86rem; }
.cozinha-order-obs { background:#fff8ec; border-radius:14px; padding:10px; color:#5b321f; font-size:.95rem; margin-bottom: 14px; }
.cozinha-order-actions { display:grid; gap: 8px; }
.cozinha-empty-state { grid-column: 1/-1; text-align:center; padding: 70px 20px; color:#7a6a60; }
.cozinha-empty-state div { font-size: 4rem; }
.cozinha-empty-state h2 { color:#2a1710; font-weight: 900; }
@media (max-width: 900px) {
    .cozinha-topbar { align-items:flex-start; flex-direction:column; }
    .cozinha-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cozinha-panel-head { flex-direction:column; }
}
@media (max-width: 520px) {
    .cozinha-monitor { padding: 14px; }
    .cozinha-summary-grid { grid-template-columns: 1fr; }
    .cozinha-orders-grid { grid-template-columns: 1fr; }
}

/* v24 - Salão: itens aguardando envio para cozinha */
.salao-item-pendente-cozinha {
    border-left: 4px solid #f0ad4e;
    background: rgba(240, 173, 78, .08);
}
.cozinha-order-head strong {
    letter-spacing: .01em;
}
.cozinha-order-meta span:first-child {
    font-weight: 700;
    color: #2a1710;
}

/* Reconhecimento de cliente no salão */
.cliente-lookup-feedback {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(42, 23, 16, .12);
    background: #fff8ec;
    color: #2a1710;
}

.cliente-lookup-feedback.is-found {
    border-color: rgba(25, 135, 84, .25);
    background: #edf8f1;
}

.cliente-lookup-feedback.is-new {
    border-color: rgba(233, 184, 114, .45);
    background: #fff8ec;
}

.cliente-lookup-feedback.is-error {
    border-color: rgba(185, 92, 78, .35);
    background: #fff1ee;
}

.cliente-lookup-feedback strong {
    color: #2a1710;
}

.cliente-lookup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cliente-lookup-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #5b321f;
    font-size: .84rem;
    font-weight: 700;
}


/* v27 - Página inicial pública com cardápio e pedido via WhatsApp */
.public-menu-page {
    background: #fcf6ee;
    color: #2a1710;
    min-height: 100vh;
}

.public-menu-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(233,184,114,.28), transparent 32%),
        linear-gradient(135deg, #2a1710 0%, #4b2a1d 58%, #6d3b25 100%);
    color: #fff8ec;
    padding-bottom: 3rem;
}

.public-menu-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff8ec;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}

.public-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    padding: 4px;
}

.public-menu-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
}

.public-hero-copy {
    max-width: 680px;
    padding-top: 2rem;
}

.public-eyebrow,
.public-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(233,184,114,.16);
    color: #e9b872;
    border: 1px solid rgba(233,184,114,.35);
    border-radius: 999px;
    padding: .4rem .8rem;
    font-weight: 800;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.public-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.06em;
    margin: 1rem 0;
}

.public-hero-copy p {
    color: rgba(255,248,236,.86);
    font-size: 1.15rem;
    max-width: 620px;
}

.public-hero-buttons,
.public-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.public-contact-line span {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .5rem .75rem;
    color: rgba(255,248,236,.86);
    font-weight: 700;
}

.public-cart-card {
    background: #fff8ec;
    color: #2a1710;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    position: sticky;
    top: 1rem;
}

.public-cart-header,
.public-cart-total,
.public-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-cart-header span {
    color: #7a6a60;
    font-size: .9rem;
}

.public-cart-header strong,
.public-cart-total strong {
    display: block;
    font-size: 1.1rem;
}

.public-cart-empty {
    margin: 1rem 0;
    border-radius: 18px;
    background: #f4e7d8;
    color: #7a6a60;
    padding: 1rem;
    text-align: center;
}

.public-cart-items {
    display: grid;
    gap: .7rem;
    margin: 1rem 0;
    max-height: 300px;
    overflow: auto;
    padding-right: .25rem;
}

.public-cart-item {
    background: #fff;
    border: 1px solid #f0dfcb;
    border-radius: 16px;
    padding: .8rem;
}

.public-cart-item strong,
.public-cart-item span,
.public-cart-item small {
    display: block;
}

.public-cart-item span,
.public-cart-item small,
.public-cart-help {
    color: #7a6a60;
    font-size: .83rem;
}

.public-cart-item-actions {
    text-align: right;
    min-width: 88px;
}

.public-cart-item-actions button {
    border: 0;
    background: #f4e7d8;
    color: #2a1710;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    font-weight: 900;
    margin-top: .35rem;
}

.public-cart-total {
    border-top: 1px dashed #d7b991;
    border-bottom: 1px dashed #d7b991;
    padding: .9rem 0;
    margin: 1rem 0;
}

.public-client-fields .form-control {
    border-radius: 14px;
}

.public-menu-main {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.public-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.public-toolbar h2 {
    font-weight: 900;
    letter-spacing: -.04em;
    margin: .6rem 0 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.public-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2rem;
}

.public-category-section {
    margin-bottom: 2.5rem;
}

.public-category-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
}

.public-category-title > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #2a1710;
    color: #fff8ec;
    border-radius: 18px;
    font-size: 1.45rem;
}

.public-category-title h3 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.03em;
}

.public-category-title p {
    margin: 0;
    color: #7a6a60;
}

.public-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.public-product-card {
    background: #fff;
    border: 1px solid #f0dfcb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(42,23,16,.08);
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 170px;
}

.public-product-card > img {
    width: 112px;
    height: 100%;
    object-fit: cover;
    background: #f4e7d8;
}

.public-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.public-product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.public-product-title-row h4 {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -.02em;
}

.public-product-body p {
    color: #7a6a60;
    margin: 0;
    font-size: .9rem;
}

.public-product-body strong {
    color: #5b321f;
}

.public-product-actions {
    margin-top: auto;
}

.public-empty {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: #7a6a60;
}

.public-qty-control {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    border: 1px solid #e8d4bc;
    border-radius: 16px;
    overflow: hidden;
}

.public-qty-control button {
    border: 0;
    background: #f4e7d8;
    color: #2a1710;
    font-size: 1.4rem;
    font-weight: 900;
}

.public-qty-control input {
    border: 0;
    text-align: center;
    font-weight: 900;
    min-height: 48px;
}

.public-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.public-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    background: #f4e7d8;
    padding: 1rem;
}

.public-modal-total strong {
    font-size: 1.2rem;
}

.public-floating-cart {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
}

.public-footer {
    background: #2a1710;
    color: #fff8ec;
    padding: 1.4rem 0;
}

.public-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
}

.public-footer span {
    color: rgba(255,248,236,.72);
}

@media (max-width: 991.98px) {
    .public-hero-grid {
        grid-template-columns: 1fr;
    }
    .public-cart-card {
        position: static;
    }
    .public-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .public-menu-topbar {
        align-items: flex-start;
    }
    .public-menu-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .public-hero-copy {
        padding-top: .5rem;
    }
    .public-product-grid {
        grid-template-columns: 1fr;
    }
    .public-product-card {
        grid-template-columns: 92px minmax(0, 1fr);
        border-radius: 18px;
        min-height: 145px;
    }
    .public-product-card > img {
        width: 92px;
    }
}
