:root {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --ink: #1f2328;
    --muted: #6b7280;
    --line: #e5ded4;
    --brand: #116a5b;
    --brand-dark: #0d5146;
    --accent: #d84f2a;
    --warning: #9a5b00;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-weight: 800;
    text-decoration: none;
    color: var(--brand);
}

.brand img {
    display: block;
    width: auto;
    max-width: 168px;
    height: 38px;
    object-fit: contain;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.mobile-nav-toggle,
.mobile-nav-head,
.mobile-nav-backdrop {
    display: none;
}

.nav a,
.nav summary,
.nav-help {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.nav a.active,
.nav a:hover,
.nav-group.active > summary,
.nav summary:hover,
.nav-help:hover {
    color: var(--brand);
    background: #eaf4f1;
}

.nav-help {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.nav-group {
    position: relative;
}

.nav-group summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(31, 35, 40, 0.14);
}

.nav-menu a {
    display: block;
    white-space: nowrap;
}

.nav-group:not([open]) .nav-menu {
    display: none;
}

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(31, 35, 40, 0.54);
}

.tour-highlight {
    position: relative;
    z-index: 92;
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(17, 106, 91, 0.28), 0 18px 48px rgba(0, 0, 0, 0.28);
}

.tour-popover {
    position: fixed;
    z-index: 93;
    width: min(340px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.tour-popover h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.tour-popover p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.tour-actions span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.tour-buttons {
    display: flex;
    gap: 8px;
}

main {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 28px;
    align-items: stretch;
    min-height: 420px;
    padding: 46px 0;
}

.hero h1,
.section-title h1,
.menu-cover h1 {
    margin: 0;
    max-width: 820px;
    font-size: 44px;
    line-height: 1.05;
}

.lead {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.button.primary:hover {
    background: var(--brand-dark);
}

.button.danger {
    border-color: #d6452f;
    background: #fff2ed;
    color: #9d2f14;
}

.button.full {
    width: 100%;
}

.status-panel,
.card,
.metric,
.form-card,
.pdv-cart,
.pdv-products {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31, 35, 40, 0.06);
}

.status-panel {
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 24px;
}

.status-panel span,
.metric span {
    color: var(--muted);
    font-size: 13px;
}

.status-panel strong {
    margin-bottom: 12px;
    font-size: 20px;
}

.grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

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

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

.card,
.metric {
    padding: 22px;
}

.card h2,
.metric strong {
    margin: 0 0 10px;
}

.card p {
    color: var(--muted);
    line-height: 1.5;
}

.metric {
    display: grid;
    gap: 8px;
}

.metric strong {
    font-size: 30px;
}

.metric.warning strong {
    color: var(--warning);
}

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

.section-title.compact h1 {
    font-size: 30px;
}

.narrow {
    width: min(520px, 100%);
    margin: 32px auto;
}

.form-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.auth-link {
    color: var(--brand);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.inline-auth-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 16px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.category-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.category-chip {
    display: inline-flex;
    width: auto;
    gap: 0;
    color: var(--ink);
    cursor: pointer;
}

.category-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.category-chip input:checked + span {
    border-color: var(--brand);
    background: #e6f3ef;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.category-chip span:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.category-manager {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.category-manager summary {
    color: var(--brand);
    font-weight: 900;
    cursor: pointer;
}

.category-manage-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.category-manage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px minmax(105px, auto) 96px auto;
    gap: 8px;
    align-items: center;
}

.category-manage-row input,
.category-manage-row select {
    min-height: 38px;
    padding: 8px 10px;
}

.category-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.category-menu-toggle input {
    width: 16px;
    min-height: 16px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    accent-color: var(--brand);
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

select {
    background: #fff;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

.muted {
    color: var(--muted);
}

.empty-state {
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.sales-bars .empty-state,
.ranking-list .empty-state,
.stock-list .empty-state {
    grid-column: 1 / -1;
}

.form-alert {
    padding: 12px;
    border: 1px solid #f0b09c;
    border-radius: 6px;
    background: #fff2ed;
    color: #9d2f14;
    font-weight: 800;
}

.success {
    border-color: #b8dfd4;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 28px;
    align-items: center;
    min-height: 520px;
    padding: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(17, 27, 30, 0.96), rgba(17, 27, 30, 0.64)),
        url("../images/fundo.webp") center/cover;
    color: #fff;
}

.home-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: 58px;
    line-height: 1;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.82);
}

.home-preview {
    position: relative;
    min-height: 390px;
}

.home-preview img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.preview-ticket {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.preview-ticket span,
.preview-ticket small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.preview-ticket strong {
    color: var(--brand);
    font-size: 32px;
}

.home-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.home-benefits article,
.home-showcase {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 35, 40, 0.06);
}

.home-benefits article {
    padding: 22px;
}

.home-benefits span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eaf4f1;
    color: var(--brand);
    font-weight: 800;
}

.home-benefits h2 {
    margin: 0 0 10px;
}

.home-benefits p,
.home-showcase p,
.showcase-list span {
    color: var(--muted);
    line-height: 1.5;
}

.home-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 24px;
    margin-top: 18px;
    padding: 28px;
}

.home-showcase h2 {
    margin: 0;
    font-size: 34px;
}

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

.showcase-list div {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfaf8;
}

.showcase-list strong {
    color: var(--brand);
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(17, 27, 30, 0.94), rgba(17, 27, 30, 0.62)),
        url("../images/fundo.webp") center/cover;
    color: #fff;
}

.platform-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(17, 27, 30, 0.96), rgba(17, 106, 91, 0.72)),
        url("../images/fundo-cinza.jpeg") center/cover;
    color: #fff;
}

.platform-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
}

.platform-hero p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
}

.admin-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
}

.admin-hero p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.button.light {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-control-card {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.admin-control-card span,
.admin-control-card small {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

.admin-control-card strong {
    font-size: 34px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.admin-metric,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 35, 40, 0.06);
}

.admin-metric {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.admin-metric span,
.admin-metric small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-metric strong {
    font-size: 28px;
}

.admin-metric.primary {
    border-color: #b8dfd4;
    background: #eef8f5;
}

.admin-metric.primary strong {
    color: var(--brand);
}

.admin-metric.warning strong {
    color: var(--warning);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    margin-top: 18px;
}

.admin-stack {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.admin-grid > *,
.admin-stack > * {
    min-width: 0;
}

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

.admin-panel {
    padding: 20px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0;
}

.status-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf4f1;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.sales-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 240px;
    padding-top: 18px;
}

.sales-bars div {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: var(--size);
    min-height: 54px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}

.sales-bars span {
    position: absolute;
    bottom: -26px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-actions a {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfaf8;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.quick-actions a:hover {
    border-color: var(--brand);
    background: #eaf4f1;
    color: var(--brand);
}

.ranking-list,
.stock-list {
    display: grid;
    gap: 12px;
}

.ranking-list div,
.stock-list div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.ranking-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eaf4f1;
    color: var(--brand);
    font-weight: 800;
}

.ranking-list em,
.stock-list span {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.stock-list div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-form {
    display: grid;
    gap: 13px;
}

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

.product-table span,
.product-table em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

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

.company-list,
.platform-checklist {
    display: grid;
    gap: 10px;
}

.company-list-panel {
    overflow-x: auto;
}

.company-table-head,
.company-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 1fr) 130px minmax(230px, 0.9fr) 130px;
    gap: 14px;
    align-items: start;
}

.additional-table-head,
.additional-table-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 120px 110px minmax(230px, 1fr) 190px 170px;
    gap: 14px;
    align-items: center;
}

.additional-table-head {
    min-width: 1080px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f4eee6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.additional-table-row {
    min-width: 1080px;
}

.additionals-table {
    overflow-x: auto;
}

.additionals-page .admin-panel {
    width: 100%;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 14px;
}

.admin-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.admin-pagination a.active {
    border-color: var(--brand);
    background: #e6f3ef;
    color: var(--brand);
}

.standalone-extra-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.standalone-extra-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.standalone-extra-check:has(input:checked) {
    border-color: #b8dfd4;
    background: #eef8f5;
    color: var(--brand);
}

.product-link-grid {
    max-height: 240px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.company-table-head {
    min-width: 1040px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4eee6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.company-card {
    min-width: 1040px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.company-fields {
    display: grid;
    gap: 8px;
}

.company-card label {
    gap: 5px;
    font-size: 12px;
}

.company-card input,
.company-card select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
}

.company-card small,
.user-card span,
.user-card em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.company-actions a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group > span {
    color: var(--muted);
    font-weight: 800;
}

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-grid.compact {
    gap: 6px;
}

.check-pill {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.check-pill input {
    flex: 0 0 auto;
    margin: 0 6px 0 0;
}

.users-grid {
    grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1.45fr);
}

.users-panel {
    min-width: 0;
}

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

.user-card {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.9fr) 140px 120px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.user-card-main {
    align-self: center;
    display: grid;
    gap: 4px;
}

.user-card .form-group {
    grid-column: 1 / -2;
}

.platform-checklist div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.platform-checklist strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eaf4f1;
    color: var(--brand);
}

.email-enabled {
    justify-content: flex-start;
    width: fit-content;
}

.email-help {
    margin-top: 18px;
}

.platform-user-table {
    display: grid;
    gap: 10px;
    overflow-x: auto;
}

.platform-user-head,
.platform-user-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.1fr) 120px 110px minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 900px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.platform-user-head {
    background: #f4eee6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.platform-user-row {
    background: #fff;
}

.platform-user-row span,
.platform-user-row em,
.platform-user-row small {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.table-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.tables-grid {
    grid-template-columns: 360px minmax(0, 1fr);
}

.tables-panel {
    min-width: 0;
}

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

.table-card {
    display: grid;
    grid-template-columns: minmax(150px, 1fr);
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.table-card-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 90px 110px 120px;
    gap: 10px;
    align-items: end;
}

.table-card-status {
    display: grid;
    gap: 4px;
    align-self: stretch;
    align-content: center;
    padding: 10px;
    border-radius: 8px;
    background: #f5f2ec;
}

.table-card-status.free {
    background: #edf8f4;
}

.table-card-status.busy {
    background: #fff4e7;
}

.table-card-status span,
.table-card-status em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.inline-password-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.inline-password-form input {
    min-height: 34px;
    font-size: 13px;
}

.kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.kitchen-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.kitchen-card-em_preparo {
    border-color: #f0c36a;
    background: #fffaf0;
}

.kitchen-card-cancelado {
    border-color: #f0b09c;
    background: #fff5f0;
}

.kitchen-card > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.kitchen-card span {
    color: var(--muted);
    font-weight: 800;
    word-break: break-word;
    flex: 1 1 100%;
}

.kitchen-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.kitchen-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf4f1;
    color: var(--brand);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.kitchen-card ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
}

.flash-alert {
    animation: flashAlert 1s ease-out;
}

@keyframes flashAlert {
    0% { background-color: #fff; }
    30% { background-color: #d1fae5; }
    100% { background-color: #f7f9fc; }
}

.kitchen-audio-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kitchen-audio-modal {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.kitchen-audio-modal h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--text);
}

.kitchen-audio-modal p {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.admin-multiselect {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.admin-multiselect:focus {
    border-color: var(--brand);
}

.admin-multiselect option {
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
}

.admin-multiselect option:checked {
    background-color: var(--brand);
    color: #fff;
}

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

.kitchen-actions button {
    flex: 1 1 auto;
    min-width: 120px;
}

.cancel-reason-note {
    margin: 0;
    padding: 10px;
    border: 1px solid #f0b09c;
    border-radius: 8px;
    background: #fff;
    color: #9d2f14;
    font-weight: 800;
}

.payment-provider {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.payment-provider small,
.payment-help {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.payment-warning {
    padding: 11px 12px;
    border: 1px solid #f0b09c;
    border-radius: 8px;
    background: #fff2ed;
    color: #9d2f14;
    font-weight: 800;
    line-height: 1.35;
}

.product-edit-actions,
.sales-table-head,
.sales-table-row,
.stock-table-head,
.stock-table-row {
    display: grid;
    gap: 12px;
    align-items: center;
}

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

.sales-table,
.stock-table,
.payment-settings form {
    display: grid;
    gap: 10px;
}

.sales-table-head,
.sales-table-row {
    grid-template-columns: 190px 145px 130px 120px minmax(180px, 1fr) 70px 120px 110px 150px;
    min-width: 1220px;
}

.sales-order-head,
.sales-order-row {
    grid-template-columns: 190px 145px 130px minmax(180px, 1fr) 70px 120px 130px 150px;
    min-width: 1080px;
}

.sales-table,
.product-table,
.stock-table {
    overflow-x: auto;
}

.sales-table-head,
.product-table-head,
.stock-table-head {
    padding: 12px;
    border-radius: 8px;
    background: #f4eee6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sales-table-row,
.product-table-row,
.stock-table-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.sales-table-row > *,
.product-table-row > *,
.stock-table-row > * {
    min-width: 0;
}

.sales-table-row strong,
.sales-table-row span,
.product-table-row strong,
.product-table-row span {
    overflow-wrap: anywhere;
}

.sales-actions,
.sales-cancel-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.status-pill.success {
    border-color: #b8dfd4;
    background: #eef8f5;
    color: var(--brand);
}

.status-pill.danger {
    border-color: #f0b09c;
    background: #fff2ed;
    color: #9d2f14;
}

.status-pill.warning {
    border-color: #f1d39a;
    background: #fff8e8;
    color: #8a4b00;
}

.sales-open-orders-panel {
    margin-top: 18px;
}

.sales-filter-panel,
.sales-ledger-panel {
    display: grid;
    gap: 16px;
}

.sales-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(220px, 1.4fr);
    gap: 12px;
    align-items: end;
}

.sales-filters label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.sales-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sales-filter-actions .button,
.sales-filter-actions .ghost-button {
    min-height: 42px;
    white-space: nowrap;
}

.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.sales-summary-card {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.sales-summary-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sales-summary-card strong {
    color: var(--ink);
    font-size: 24px;
}

.sales-column-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.sales-column-tools label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.sales-ledger {
    display: grid;
    gap: 10px;
}

.sales-ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(150px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.sales-ledger-main {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.sales-ledger-title,
.sales-ledger-optional {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.sales-ledger-title strong {
    color: var(--ink);
}

.sale-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef8f5;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.sale-type-badge.online {
    background: #f2edff;
    color: #5c3b9a;
}

.sale-type-badge.mesa {
    background: #fff4df;
    color: #8a4b00;
}

.sale-type-badge.paid {
    background: #e7f6ed;
    color: #11663a;
}

.sale-type-badge.receivable {
    background: #fff2ed;
    color: #c2410c;
}

.sales-products {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sales-products span,
.sales-products em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
    color: var(--ink);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.sales-products strong {
    color: var(--brand);
}

.sales-products em {
    color: var(--muted);
}

.sales-ledger-total {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.sales-ledger-total > strong {
    color: var(--ink);
    font-size: 20px;
}

.sales-ledger-row [data-sales-column="code"],
.sales-ledger-row [data-sales-column="operator"] {
    display: none;
}

.sales-ledger.show-code [data-sales-column="code"],
.sales-ledger.show-operator [data-sales-column="operator"],
.sales-ledger.show-status [data-sales-column="status"] {
    display: inline-flex;
}

.sales-ledger:not(.show-status) [data-sales-column="status"] {
    display: none;
}

@media (max-width: 980px) {
    .sales-filters,
    .sales-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-search-filter,
    .sales-filter-actions {
        grid-column: 1 / -1;
    }

    .sales-ledger-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sales-ledger-total {
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .sales-filters,
    .sales-summary-grid {
        grid-template-columns: 1fr;
    }

    .sales-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sales-column-tools {
        justify-content: flex-start;
    }

    .sales-ledger-row {
        padding: 12px;
    }
}

.product-table-head,
.product-table-row {
    display: grid;
    grid-template-columns: 40px 170px minmax(220px, 1.4fr) minmax(150px, 0.8fr) 110px minmax(150px, 0.8fr) 110px 110px 110px 110px;
    min-width: 1380px;
    gap: 12px;
    align-items: center;
}

.product-table-row {
    list-style: none;
}

.product-table-row::-webkit-details-marker {
    display: none;
}

.product-table-row em {
    color: var(--brand);
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.product-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.product-row-actions form {
    margin: 0;
}

.product-row-actions .button {
    min-height: 36px;
    padding: 8px 10px;
}

.product-table-item {
    display: grid;
    gap: 8px;
}

.product-edit-form {
    display: grid;
    gap: 12px;
    min-width: 980px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
}

.stock-table-head,
.stock-table-row {
    grid-template-columns: minmax(260px, 1fr) 120px 120px 120px 150px;
    min-width: 820px;
}

.stock-table-row em,
.stock-table-row small {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.profile-preview {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #edf8f4;
}

.order-confirmed-page {
    min-height: calc(100vh - 90px);
    display: grid;
    place-items: center;
    padding: 36px 16px;
    background:
        linear-gradient(180deg, rgba(11, 94, 79, 0.08), rgba(255, 255, 255, 0.92)),
        var(--bg);
}

.order-confirmed-panel {
    width: min(620px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(20, 27, 24, 0.12);
}

.order-confirmed-panel h1 {
    margin: 0;
    font-size: 34px;
}

.order-confirmed-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.order-confirmed-code,
.order-confirmed-grid > div,
.order-confirmed-items {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.order-confirmed-code {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.order-confirmed-code span,
.order-confirmed-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-confirmed-code strong {
    color: var(--brand);
    font-size: 24px;
}

.order-confirmed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-confirmed-grid > div {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.order-confirmed-grid strong {
    color: var(--ink);
    font-size: 15px;
}

.order-confirmed-items {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.order-confirmed-items > strong {
    color: var(--ink);
}

.order-confirmed-items ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-confirmed-items li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.order-confirmed-items li strong {
    color: var(--ink);
}

.confirmed-pix-box {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 20px;
    margin: 4px 0 16px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}
.confirmed-pix-box .pix-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}
.confirmed-pix-box .pix-instructions {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.4;
}
.confirmed-pix-box .qr-code-wrapper {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.restaurant-brand-lockup {
    display: inline-grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    max-width: min(480px, 100%);
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
}

.restaurant-brand-lockup img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.restaurant-brand-lockup strong,
.restaurant-brand-lockup span {
    display: block;
}

.restaurant-brand-lockup span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 800;
}

.attention {
    border-color: #f1d7a8;
    background: #fffaf0;
}

.pdv-shell {
    display: grid;
    gap: 18px;
}

.pdv-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: stretch;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(17, 27, 30, 0.94), rgba(17, 27, 30, 0.68)),
        url("../images/fundo-cinza.jpeg") center/cover;
    color: #fff;
}

.pdv-header h1 {
    margin: 0;
    font-size: 38px;
}

.pdv-header p:not(.eyebrow) {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.pdv-shift {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pdv-caixa-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    align-items: baseline;
}

.pdv-shift span,
.pdv-shift small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 700;
}

.pdv-shift strong {
    min-width: 0;
    font-size: 22px;
    line-height: 1.05;
}

.pdv-caixa-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdv-caixa-summary small {
    grid-column: 1 / -1;
}

.caixa-actions-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.caixa-actions-header button {
    display: none;
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
}

.caixa-action-secondary {
    justify-content: center;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.caixa-action-danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.32);
}

.caixa-action-primary {
    grid-column: 1 / -1;
}

.pdv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.open-services {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.online-orders-panel {
    margin-top: 16px;
}

.online-orders-board {
    display: block;
}

.online-flow-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.online-flow-lane {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.online-flow-lane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.online-flow-lane-head strong {
    color: var(--ink);
    font-size: 13px;
}

.online-flow-lane-head span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eaf4f1;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.online-flow-cards {
    display: grid;
    gap: 10px;
}

.online-flow-empty {
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.online-order-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.online-order-card > div:first-child,
.online-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.online-order-card strong {
    color: var(--ink);
}

.online-order-card small,
.online-order-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.online-order-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
    line-height: 1.5;
}

.online-order-address {
    padding: 8px 10px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fff;
}

.online-order-hint {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

@media (max-width: 680px) {
    .online-flow-board {
        grid-template-columns: 1fr;
    }
}

.online-order-pendente {
    border-color: #b8dfd4;
    background: #f5fbf9;
}

.online-order-em_preparo {
    border-color: #f0c36a;
    background: #fffaf0;
}

.online-order-enviado_entrega {
    border-color: #93c5fd;
    background: #eff6ff;
}

.online-order-pronto {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

@media (min-width: 821px) {
    .pdv-header {
        position: sticky;
        top: 66px;
        z-index: 9;
        transition: padding 0.25s ease;
    }

    .pdv-header.is-compact {
        padding: 10px 26px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .pdv-header.is-compact .eyebrow,
    .pdv-header.is-compact p:not(.eyebrow) {
        display: none;
    }

    .pdv-header.is-compact h1 {
        font-size: 20px;
        margin: 0;
    }

    .pdv-header.is-compact .pdv-shift {
        padding: 6px 12px;
        gap: 6px;
        border-radius: 6px;
    }

    .pdv-header.is-compact .pdv-caixa-label {
        display: none;
    }

    .pdv-header.is-compact .pdv-caixa-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdv-header.is-compact .pdv-shift strong {
        font-size: 15px;
    }

    .pdv-header.is-compact .pdv-shift small {
        font-size: 11px;
    }

    .pdv-header.is-compact .caixa-actions-header {
        display: flex;
        gap: 6px;
        justify-content: flex-end;
    }

    .pdv-header.is-compact .caixa-actions-header button {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .pdv-layout {
        transition: padding-top 0.25s ease;
    }

    .pdv-header.is-compact ~ .pdv-layout {
        padding-top: 104px;
    }

    .pdv-cart {
        position: sticky;
        top: 66px;
        transition: top 0.25s ease;
    }

    .pdv-products {
        position: sticky;
        top: 66px;
        display: flex;
        flex-direction: column;
        max-height: calc(130vh - 76px);
        transition: top 0.25s ease, max-height 0.25s ease;
    }

    .pdv-header.is-compact ~ .pdv-layout .pdv-cart,
    .pdv-header.is-compact ~ .pdv-layout .pdv-products {
        top: 124px;
    }

    .pdv-header.is-compact ~ .pdv-layout .pdv-products {
        max-height: calc(130vh - 134px);
    }

    .pdv-product-grid {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        scrollbar-width: thin;
        scrollbar-color: var(--line) transparent;
    }

    .pdv-product-grid::-webkit-scrollbar {
        width: 5px;
    }

    .pdv-product-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .pdv-product-grid::-webkit-scrollbar-thumb {
        background: var(--line);
        border-radius: 999px;
    }

    .pdv-product-grid::-webkit-scrollbar-thumb:hover {
        background: var(--brand);
    }

}

.service-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.service-card {
    display: grid;
    gap: 7px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
}

.service-card.active,
.service-card:hover {
    border-color: var(--brand);
    background: #eaf4f1;
}

.service-card-select {
    display: grid;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.service-card span,
.service-card-select span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card strong,
.service-card-select strong {
    font-size: 20px;
}

.service-card small,
.service-card-select small {
    color: var(--muted);
    font-weight: 800;
}

.service-ticket-button {
    min-height: 34px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.service-ticket-button:hover {
    background: var(--brand);
    color: #fff;
}

.pdv-products,
.pdv-cart {
    padding: 18px;
}

.pdv-products {
    min-height: 0;
}


.pdv-tools {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.pdv-search {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.pdv-search input {
    margin-top: 8px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-tabs button {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.category-tabs button.active {
    border-color: var(--brand);
    color: var(--brand);
    background: #eaf4f1;
}

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

.product-button {
    display: grid;
    gap: 10px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.product-button span {
    color: var(--brand);
    font-weight: 800;
}

.pdv-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pdv-product-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.pdv-product-card.is-hidden {
    display: none;
}

.pdv-product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.pdv-product-info {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 10px 16px 0;
    flex: 1 1 auto;
}

.pdv-product-info strong {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.2;
}

.pdv-product-info span {
    color: var(--brand);
    font-size: 20px;
    font-weight: 800;
}

.pdv-product-days {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid #d8ebe5;
    border-radius: 999px;
    background: #f3fbf8;
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.pdv-product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 16px 16px;
    margin-top: auto;
    flex-shrink: 0;
}

.pdv-open-additions {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.pdv-open-additions:hover {
    border-color: var(--brand);
    background: #eaf4f1;
}

.pdv-add-product {
    margin: 0;
}

.cart-list {
    min-height: 230px;
    color: var(--muted);
}

.cart-row,
.cart-total {
    display: grid;
    align-items: center;
    gap: 12px;
}

.cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.cart-row-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-row-actions button {
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.cart-row-actions button:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #eaf4f1;
}

.cart-total {
    display: flex;
    justify-content: space-between;
}

.cart-row span small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.cart-total {
    padding: 16px 0;
    font-size: 18px;
}

.pdv-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pdv-cart-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pdv-mobile-cart-close,
.pdv-mobile-checkout-back,
.pdv-review-actions,
.pdv-cart-backdrop,
.pdv-mobile-dock {
    display: none;
}

.pdv-cart-head h2 {
    margin: 0;
}

.service-panel {
    display: none;
    gap: 7px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #d8ebe5;
    border-radius: 8px;
    background: #f3fbf8;
}

.service-panel.is-visible {
    display: grid;
}

.service-panel.is-warning {
    border-color: #f1d7a8;
    background: #fffaf0;
}

.service-panel strong {
    color: var(--brand);
}

.service-panel span,
.service-panel small {
    color: var(--muted);
    font-weight: 800;
}

.service-items {
    display: grid;
    gap: 4px;
    max-height: 120px;
    overflow: auto;
    padding-top: 6px;
}

.service-orders {
    display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.service-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.service-order span {
    display: grid;
    gap: 2px;
}

.service-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.cancel-order-panel {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.sales-cancel-panel {
    width: min(390px, calc(100vw - 28px));
}

.sales-cancel-panel .panel-head {
    align-items: flex-start;
}

.sales-cancel-panel h2 {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.1;
}

.sales-cancel-panel .muted {
    margin: 0 0 12px;
    line-height: 1.35;
}

.sales-cancel-modal-form {
    display: grid;
    gap: 12px;
}

.cancel-reasons {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.cancel-reasons label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
    font-weight: 800;
}

.access-log-panel {
    margin-bottom: 18px;
}

.access-log-filters {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.8fr auto auto;
    gap: 12px;
    align-items: end;
}

.access-log-filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.access-log-filters input,
.access-log-filters select {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.access-log-table {
    display: grid;
    gap: 8px;
    overflow-x: auto;
}

.access-log-head,
.access-log-row {
    display: grid;
    grid-template-columns: 130px minmax(210px, 1.2fr) minmax(150px, 0.9fr) 86px minmax(220px, 1.4fr) 120px 70px;
    gap: 10px;
    align-items: center;
    min-width: 1080px;
}

.access-log-head {
    padding: 12px;
    border-radius: 8px;
    background: #f1ece5;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.access-log-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.access-log-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghost-button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.ghost-button:hover {
    color: var(--accent);
    border-color: #f0b09c;
}

.pdv-cart-list {
    min-height: 0;
    overflow: visible;
}

.pdv-checkout-block {
    background: #f8f7f5;
    padding: 18px;
    margin: 18px -18px -18px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
}

.pdv-summary {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
}

.pdv-table-field select {
    display: none;
}

.table-picker {
    position: relative;
    margin-top: 7px;
}

.table-picker-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.table-picker-button > span {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-picker-selected-text {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.table-picker-selected-text strong,
.table-picker-selected-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-picker-button small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.table-picker-button strong {
    color: var(--brand);
}

.pdv-summary .table-picker-menu {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    width: 100%;
    max-height: 420px;
    margin-top: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 35, 40, 0.16);
}

.pdv-summary .table-picker.open .table-picker-menu {
    display: grid;
}

.table-picker-search {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.table-picker-search input {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfaf8;
    font: inherit;
    text-transform: none;
}

.pdv-summary .table-picker-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: 0 10px 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.pdv-summary .table-picker-tabs button {
    flex: 1;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfaf8;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdv-summary .table-picker-tabs button:hover {
    background: #f1ece5;
    color: var(--ink);
}

.pdv-summary .table-picker-tabs button.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pdv-summary .table-picker-options {
    display: grid;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pdv-summary .table-picker-options button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.pdv-summary .table-picker-options button:last-child {
    border-bottom: 0;
}

.pdv-summary .table-picker-options button.active,
.pdv-summary .table-picker-options button:hover {
    background: #eaf4f1;
}

.pdv-summary .table-picker-options button.is-busy:hover {
    background: #fff7f4;
}

.pdv-summary .table-picker-options button.is-hidden,
.table-picker-empty.is-hidden {
    display: none;
}

.table-picker-empty {
    margin: 0;
    padding: 14px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.table-picker-option-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.table-picker-option-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-picker-option-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.table-icon-svg {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d8ebe5;
    background: #eaf4f1;
    flex-shrink: 0;
}

.table-icon-svg svg {
    width: 20px;
    height: 20px;
}

.table-icon-svg.is-free {
    color: var(--brand);
}

.table-icon-svg.is-busy {
    border-color: #ffd4c7;
    background: #fff0ed;
    color: #dc2626;
}

.table-status-dot {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.table-status-dot.is-free {
    background: #eaf4f1;
    color: var(--brand);
}

.table-status-dot.is-busy {
    background: #fff0ed;
    color: #c2410c;
}

.pdv-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-summary span {
    color: var(--muted);
}

.pdv-summary-total {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 20px;
}

.pdv-summary-total strong {
    color: var(--brand);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.pdv-print-options {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.pdv-action-stack {
    display: grid;
    gap: 8px;
}

.pdv-action-stack .ghost-button {
    color: var(--accent);
}

.pdv-close-panel {
    display: none;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8ebe5;
    border-radius: 8px;
    background: #f7fbfa;
}

.pdv-close-panel.is-visible {
    display: grid;
}

.pdv-close-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-close-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pdv-close-head strong {
    color: var(--brand);
    font-size: 20px;
}

.pdv-close-panel label {
    color: var(--muted);
    font-weight: 900;
}

.pdv-close-panel input {
    min-height: 40px;
}

.payment-option {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.payment-option.active,
.payment-option:hover {
    border-color: var(--brand);
    background: #eaf4f1;
    color: var(--brand);
}

.pdv-finish {
    min-height: 50px;
}

.receipt-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.receipt-modal.open {
    display: flex;
}

.receipt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 30, 0.72);
}

.receipt-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    overflow-y: auto;
    overflow-x: hidden;
}

.receipt-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.receipt-modal iframe {
    width: 100%;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f1eb;
}

.pdv-result {
    display: none;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.35;
}

.pdv-result.success,
.pdv-result.error {
    display: block;
}

.pdv-result.success {
    border: 1px solid #b8dfd4;
    background: #eef8f5;
    color: var(--brand);
}

.pdv-result.error {
    border: 1px solid #f0b09c;
    background: #fff2ed;
    color: #9d2f14;
}

.partial-payment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.partial-payment-summary[hidden],
.partial-payment-history[hidden] {
    display: none;
}

.partial-payment-summary > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f7faf9;
}

.partial-payment-summary span,
.partial-payment-history span,
.split-payment-hint {
    color: var(--muted);
    font-size: 12px;
}

.partial-payment-summary strong {
    color: var(--brand);
    font-size: 18px;
}

.partial-payment-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    align-items: end;
}

.split-payment-hint {
    display: block;
    margin-top: 3px;
}

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

.split-payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 36px;
    gap: 10px;
    align-items: end;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.split-payment-remove {
    width: 36px;
    min-height: 40px;
    padding: 0;
    color: var(--danger);
}

.split-payment-add {
    justify-content: center;
    border-style: dashed;
}

.partial-payment-history {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.partial-payment-history > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .partial-payment-entry,
    .split-payment-row {
        grid-template-columns: 1fr;
    }

    .split-payment-remove {
        width: 100%;
    }
}

.menu-cover {
    padding: 42px 0 28px;
}

.menu-category {
    margin-top: 24px;
}

.menu-category h2 {
    margin: 0 0 12px;
}

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

.menu-list article {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.menu-list h3 {
    margin: 0 0 6px;
}

.menu-list p {
    margin: 0;
    color: var(--muted);
}

.menu-list strong {
    color: var(--brand);
    white-space: nowrap;
}

.restaurant-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: center;
    min-height: 460px;
    padding: 44px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17, 27, 30, 0.94), rgba(17, 27, 30, 0.58)),
        url("../images/fundo.webp") center/cover;
}

.restaurant-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: 58px;
    line-height: 1;
}

.restaurant-hero .lead {
    color: rgba(255, 255, 255, 0.82);
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.restaurant-meta span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hero-dish {
    position: relative;
    align-self: stretch;
    min-height: 340px;
}

.hero-dish img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-price {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.hero-price span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-price strong {
    color: var(--accent);
    font-size: 24px;
}

.menu-toolbar {
    position: sticky;
    top: 69px;
    z-index: 8;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.menu-filter-drawer,
.menu-tabs-close {
    display: none;
}

.search-box {
    display: grid;
    gap: 6px;
}

.search-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-box input {
    margin: 0;
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.menu-filter {
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.menu-filter.active,
.menu-filter:hover {
    border-color: var(--brand);
    background: #eaf4f1;
    color: var(--brand);
}

.featured-strip {
    display: flex;
    gap: 14px;
    margin: 20px 0;
    overflow: hidden;
}

.featured-strip article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    flex: 0 0 calc((100% - 28px) / 3);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-strip article.active,
.featured-strip article:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 28px rgba(17, 106, 91, 0.14);
    transform: translateY(-2px);
}

.featured-strip img {
    width: 92px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-strip span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.featured-strip strong {
    font-size: 18px;
}

.modern-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 110px;
}

.menu-product {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 35, 40, 0.08);
    flex-direction: column;
}

.menu-product.feature-focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(17, 106, 91, 0.16), 0 18px 42px rgba(31, 35, 40, 0.12);
}

.menu-product.is-hidden {
    display: none;
}

.menu-product img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.menu-product-body {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.pill-row,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill,
.rating {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.pill {
    background: #eaf4f1;
    color: var(--brand);
}

.rating {
    background: #fff4df;
    color: #7a4b00;
}

.menu-product h2 {
    margin: 0;
    font-size: 22px;
}

.menu-product p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.product-footer strong {
    color: var(--brand);
    font-size: 22px;
}

.menu-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-add {
    min-height: 40px;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.menu-customize {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.menu-customize:hover {
    border-color: var(--brand);
    background: #eaf4f1;
}

.menu-add:hover {
    filter: brightness(0.95);
}

.floating-order {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: min(360px, calc(100% - 32px));
}

.floating-order.cart-pulse .floating-order-head,
.floating-order.cart-pulse .floating-order-toggle {
    animation: cartPulse 0.65s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.floating-order-toggle {
    display: none;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(17, 106, 91, 0.24);
    cursor: pointer;
}

.floating-order-toggle strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
}

.floating-order-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(31, 35, 40, 0.18);
}

.floating-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: var(--ink);
    color: #fff;
}

.floating-order-head div {
    display: grid;
    gap: 3px;
}

.floating-order-head small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.floating-order-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-minimize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.cart-minimize:hover {
    background: rgba(255, 255, 255, 0.18);
}

.floating-order-items {
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
    padding: 14px;
    color: var(--muted);
}

.public-cart-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    font-size: 14px;
}

.floating-order-panel .button {
    border-radius: 0;
}

.floating-order.is-minimized {
    width: min(290px, calc(100% - 32px));
}

.floating-order.is-minimized .floating-order-panel {
    cursor: pointer;
}

.floating-order.is-minimized .floating-order-items,
.floating-order.is-minimized .floating-order-panel > .button {
    display: none;
}

.floating-order.is-minimized .floating-order-head {
    padding: 12px 14px;
}

.is-hidden {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.open {
    display: flex;
}

.checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 30, 0.72);
}

.checkout-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    width: min(1040px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.checkout-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.checkout-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
}

.checkout-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.checkout-form {
    display: grid;
    gap: 12px;
}

.checkout-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.checkout-payment-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.checkout-payment {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.checkout-payment.active,
.checkout-payment:hover {
    border-color: var(--brand);
    background: #eaf4f1;
    color: var(--brand);
}

.checkout-card-area,
.checkout-summary,
.checkout-pix {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.checkout-info {
    padding: 11px 12px;
    border-radius: 6px;
    background: #eaf4f1;
    color: var(--brand);
    font-weight: 800;
    line-height: 1.35;
}

.checkout-info.warning {
    border: 1px solid #f0b09c;
    background: #fff2ed;
    color: #9d2f14;
}

.mp-card-form {
    display: grid;
    gap: 12px;
}

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

.checkout-card-grid.three {
    grid-template-columns: 0.75fr 0.65fr minmax(180px, 1fr);
}

.checkout-card-wide {
    grid-column: 1 / -1;
}

.gateway-field {
    display: flex;
    align-items: center;
    height: 44px;
    min-height: 44px;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.gateway-field iframe {
    width: 100% !important;
    height: 42px !important;
    max-height: 42px !important;
}

.checkout-summary {
    position: sticky;
    top: 92px;
    background: #fff;
}

.checkout-summary h3 {
    margin: 0;
}

.checkout-summary-row,
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-row span {
    color: var(--muted);
}

.checkout-total {
    align-items: center;
    border: 0;
    font-size: 18px;
}

.checkout-total strong {
    color: var(--brand);
    font-size: 24px;
}

.checkout-pix img {
    width: min(240px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.checkout-pix textarea {
    min-height: 118px;
    font-size: 12px;
}

.checkout-pix .button {
    min-height: 42px;
}

.checkout-result {
    display: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.35;
}

.checkout-result.success,
.checkout-result.error {
    display: block;
}

.checkout-result.success {
    border: 1px solid #b8dfd4;
    background: #eef8f5;
    color: var(--brand);
}

.checkout-result.error {
    border: 1px solid #f0b09c;
    background: #fff2ed;
    color: #9d2f14;
}

.checkout-form.is-complete > .form-split,
.checkout-form.is-complete > label,
.checkout-form.is-complete > .checkout-payment-tabs,
.checkout-form.is-complete > .checkout-card-area,
.checkout-form.is-complete > .checkout-result,
.checkout-form.is-complete > #checkoutSubmit {
    display: none;
}

.checkout-confirmation {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 26px 18px;
    border: 1px solid #b8dfd4;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef8f5 0%, #ffffff 100%);
    text-align: center;
}

.checkout-confirmation.is-hidden {
    display: none;
}

.checkout-confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 32px;
    font-weight: 900;
}

.checkout-confirmation span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.checkout-confirmation.is-canceled {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}
.checkout-confirmation.is-canceled .checkout-confirmation-icon {
    background: #dc2626;
}
.checkout-confirmation.is-canceled span {
    color: #dc2626;
}

.checkout-confirmation h3 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
}

.checkout-confirmation p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.4;
}

.checkout-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.checkout-confirmation-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.checkout-confirmation-grid small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-confirmation-grid strong {
    color: var(--brand);
    font-size: 18px;
}

.addon-modal {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.addon-modal.open {
    display: flex;
}

.addon-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 30, 0.68);
}

.addon-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.addon-options {
    display: grid;
    gap: 8px;
}

.addon-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.addon-option strong,
.addon-modal-total strong {
    color: var(--brand);
}

.addon-qty-control {
    display: inline-grid;
    grid-template-columns: 36px 54px 36px;
    align-items: center;
    min-width: 128px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.addon-qty-control button,
.addon-qty-control input {
    width: 100%;
    height: 34px;
    border: 0;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.addon-qty-control button {
    cursor: pointer;
}

.addon-qty-control input {
    min-width: 54px;
    padding: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    color: #111b1e;
    font-size: 16px;
    line-height: 34px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.addon-qty-control input::-webkit-outer-spin-button,
.addon-qty-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.addon-modal-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 18px;
}

@media (max-width: 820px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        padding: 10px 16px;
    }

    body.mobile-nav-open .topbar {
        z-index: 100;
    }

    body.mobile-nav-open .pdv-mobile-dock {
        display: none;
    }

    .brand img {
        height: 34px;
        max-width: 138px;
    }

    .mobile-nav-toggle {
        display: inline-grid;
        gap: 4px;
        place-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 8px 20px rgba(31, 35, 40, 0.12);
        cursor: pointer;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 17px;
        height: 2px;
        border-radius: 999px;
        background: var(--muted);
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 98;
        background: rgba(31, 35, 40, 0.42);
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        display: block;
    }

    html.mobile-nav-open,
    body.mobile-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.mobile-nav-open {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        touch-action: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        align-items: stretch;
        justify-items: stretch;
        justify-content: stretch;
        gap: 10px;
        width: min(380px, 94vw);
        height: 100vh;
        padding: 18px 16px;
        border-left: 1px solid var(--line);
        background: #fff;
        box-shadow: -22px 0 70px rgba(31, 35, 40, 0.2);
        overflow: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        transform: translateX(105%);
        transition: transform 0.22s ease;
    }

    body.mobile-nav-open .nav {
        transform: translateX(0);
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
        padding: 2px 0 16px;
        border-bottom: 1px solid var(--line);
        color: var(--brand);
        font-size: 18px;
    }

    .mobile-nav-head button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--muted);
        font-size: 24px;
        cursor: pointer;
    }

    .nav a,
    .nav summary,
    .nav-help {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 50px;
        padding: 13px 16px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    .nav > a,
    .nav > .nav-group,
    .nav > .nav-help {
        justify-self: stretch;
        width: 100%;
    }

    .nav a.active,
    .nav a:hover,
    .nav-group.active > summary,
    .nav summary:hover,
    .nav-help:hover {
        background: #e3f2ee;
    }

    .nav a.active {
        box-shadow: inset 4px 0 0 var(--brand);
    }

    .nav-group {
        position: static;
        width: 100%;
    }

    .nav-group summary {
        justify-content: space-between;
    }

    .nav-menu {
        position: static;
        display: grid;
        gap: 4px;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: none;
        background: #fbfaf8;
    }

    .nav-menu a {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 600;
        white-space: normal;
    }

    @media (max-width: 560px) {
        .nav {
            left: auto;
            width: min(340px, 86vw);
            padding: 18px 20px 28px;
            border-left: 1px solid var(--line);
            box-shadow: -18px 0 54px rgba(31, 35, 40, 0.22);
        }
    }

    .hero,
    .grid.two,
    .grid.three,
    .home-hero,
    .home-benefits,
    .home-showcase,
    .showcase-list,
    .admin-hero,
    .platform-hero,
    .admin-metrics,
    .admin-grid,
    .admin-grid.bottom,
    .pdv-layout,
    .pdv-header,
    .pdv-tools,
    .restaurant-hero,
    .menu-toolbar,
    .featured-strip,
    .modern-menu-grid {
        grid-template-columns: 1fr;
    }

    .checkout-layout,
    .form-split,
    .checkout-card-grid,
    .checkout-card-grid.three {
        grid-template-columns: 1fr;
    }

    .checkout-panel {
        padding: 16px;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-modal {
        padding: 10px;
        align-items: stretch;
    }

    .checkout-panel {
        max-height: calc(100vh - 20px);
    }

    .checkout-summary {
        order: initial;
    }

    .hero h1,
    .section-title h1,
    .menu-cover h1,
    .restaurant-hero h1 {
        font-size: 34px;
    }

    .restaurant-hero {
        padding: 28px;
    }

    .hero-dish {
        min-height: 260px;
    }

    .admin-hero h1 {
        font-size: 32px;
    }

    .platform-hero h1 {
        font-size: 32px;
    }

    .user-card {
        grid-template-columns: 1fr;
    }

    .company-actions {
        justify-content: flex-start;
    }

    .access-log-filters {
        grid-template-columns: 1fr;
    }

    .user-card .form-group {
        grid-column: auto;
    }

    .home-hero {
        padding: 28px;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .home-preview,
    .home-preview img {
        min-height: 280px;
        height: 280px;
    }

    .sales-bars {
        min-height: 180px;
    }

    .pdv-shell {
        padding-bottom: 92px;
    }

    .pdv-header {
        padding: 18px;
    }

    .pdv-header h1 {
        font-size: 30px;
    }

    .pdv-header p:not(.eyebrow) {
        font-size: 14px;
    }

    .pdv-shift {
        padding: 14px;
    }

    .order-confirmed-panel {
        padding: 22px;
    }

    .order-confirmed-panel h1 {
        font-size: 28px;
    }

    .order-confirmed-grid {
        grid-template-columns: 1fr;
    }

    .pdv-caixa-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

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

    .caixa-actions-header button {
        width: 100%;
        justify-content: center;
    }

    .pdv-products {
        min-height: auto;
        padding: 12px;
    }

    .pdv-tools {
        position: sticky;
        top: 62px;
        z-index: 24;
        gap: 10px;
        margin: -4px -4px 12px;
        padding: 10px 4px;
        background: var(--bg);
    }

    .pdv-search input {
        min-height: 46px;
        font-size: 16px;
    }

    .pdv-tools .category-tabs {
        flex-wrap: nowrap;
        margin: 0;
        padding-bottom: 4px;
        overflow-x: auto;
    }

    .pdv-tools .category-tabs button {
        flex: 0 0 auto;
    }

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

    .pdv-product-card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 136px;
    }

    .pdv-product-card img {
        grid-row: 1 / 3;
        width: 104px;
        height: 100%;
        min-height: 136px;
    }

    .pdv-product-info {
        padding: 12px 12px 0;
    }

    .pdv-product-info strong {
        min-height: 0;
    }

    .pdv-product-actions {
        padding: 8px 12px 12px;
    }

    .open-services {
        position: static;
        max-height: none;
        padding: 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 12px 30px rgba(31, 35, 40, 0.08);
    }

    .open-services .panel-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }

    .open-services .panel-head h2 {
        margin: 2px 0 0;
        font-size: 18px;
        line-height: 1.15;
    }

    .open-services .panel-head .button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .service-board {
        display: flex;
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
        scroll-snap-type: x proximity;
    }

    .service-board .empty-state {
        width: 100%;
        min-height: 44px;
        padding: 12px;
        border-style: solid;
        font-size: 12px;
    }

    .service-card {
        flex: 0 0 154px;
        min-height: 76px;
        padding: 11px;
        scroll-snap-align: start;
    }

    .service-card strong {
        font-size: 18px;
    }

    .service-card small {
        font-size: 12px;
    }

    .pdv-cart {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 66;
        display: none;
        flex-direction: column;
        max-height: min(88dvh, 720px);
        padding: 0;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        box-shadow: 0 -24px 70px rgba(31, 35, 40, 0.28);
        overscroll-behavior: contain;
    }

    .pdv-cart.is-mobile-open {
        display: flex;
    }

    .pdv-cart::before {
        content: "";
        justify-self: center;
        width: 64px;
        height: 5px;
        margin-top: 10px;
        border-radius: 999px;
        background: #a8a29a;
    }

    .pdv-cart-head {
        align-items: start;
        margin: 0;
        padding: 12px 16px 10px;
        border-bottom: 1px solid var(--line);
    }

    .pdv-cart-head h2 {
        font-size: 26px;
        line-height: 1.05;
    }

    .pdv-cart-head-actions {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 6px;
    }

    .pdv-cart-head-actions .ghost-button {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .service-panel {
        display: none;
    }

    .pdv-mobile-cart-close {
        display: inline-flex;
    }

    .pdv-mobile-checkout-back {
        display: none;
    }

    .pdv-cart.is-checkout-step .pdv-mobile-checkout-back {
        display: inline-flex;
    }

    .pdv-cart.is-checkout-step .pdv-cart-head-actions {
        grid-template-columns: repeat(4, auto);
    }

    .pdv-cart-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(17, 27, 30, 0.48);
    }

    body.pdv-cart-open .pdv-cart-backdrop {
        display: block;
    }

    body.pdv-cart-open {
        overflow: hidden;
    }

    body.pdv-cart-open .pdv-mobile-dock {
        display: none;
    }

    .pdv-cart-list {
        flex: 1 1 auto;
        display: grid;
        align-content: start;
        gap: 8px;
        min-height: 0;
        max-height: none;
        padding: 12px 16px;
        overflow: auto;
        background: #fbfaf8;
    }

    .pdv-review-actions {
        display: grid;
        gap: 8px;
        padding: 12px 16px max(14px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 -10px 26px rgba(31, 35, 40, 0.08);
    }

    .pdv-review-actions .button,
    .pdv-review-actions .ghost-button {
        min-height: 50px;
    }

    .pdv-review-actions .button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .pdv-cart:not(.is-checkout-step) .pdv-summary,
    .pdv-cart:not(.is-checkout-step) .payment-grid,
    .pdv-cart:not(.is-checkout-step) .pdv-print-options,
    .pdv-cart:not(.is-checkout-step) .pdv-result,
    .pdv-cart:not(.is-checkout-step) .pdv-action-stack {
        display: none;
    }

    .pdv-cart.is-checkout-step .pdv-cart-list,
    .pdv-cart.is-checkout-step .pdv-review-actions {
        display: none;
    }

    .pdv-cart-list > p {
        margin: 0;
        padding: 16px;
        border: 1px dashed var(--line);
        border-radius: 8px;
        background: #fff;
        text-align: center;
    }

    .pdv-cart-list .cart-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .pdv-cart-list .cart-row > span strong {
        display: block;
        font-size: 16px;
        line-height: 1.2;
    }

    .pdv-cart-list .cart-row > strong {
        font-size: 16px;
        white-space: nowrap;
    }

    .pdv-cart-list .cart-row-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 42px 42px minmax(0, 1fr);
    }

    .pdv-cart-list .cart-row-actions button {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 14px;
    }

    .pdv-summary {
        gap: 8px;
        padding: 12px 16px;
        border-top: 1px solid var(--line);
        background: #fff;
    }

    .pdv-summary label {
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 900;
    }

    .pdv-summary select {
        min-height: 46px;
        font-size: 16px;
    }

    .pdv-summary div:not(.pdv-summary-total) {
        font-size: 15px;
    }

    .pdv-summary-total {
        margin-top: 2px;
        padding-top: 8px;
        font-size: 22px;
    }

    .payment-grid,
    .pdv-print-options,
    .pdv-result,
    .pdv-action-stack {
        padding-right: 16px;
        padding-left: 16px;
        background: #fff;
    }

    .payment-grid {
        margin: 0;
        padding-top: 2px;
        padding-bottom: 10px;
    }

    .payment-option {
        min-height: 46px;
    }

    .pdv-print-options {
        gap: 6px;
        margin: 0;
        padding-bottom: 10px;
    }

    .pdv-print-options .check-pill {
        min-height: 42px;
    }

    .pdv-result {
        margin: 0;
    }

    .pdv-action-stack {
        display: grid;
        gap: 8px;
        padding-top: 2px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        box-shadow: 0 -10px 26px rgba(31, 35, 40, 0.08);
    }

    .pdv-action-stack .button,
    .pdv-action-stack .ghost-button {
        min-height: 48px;
    }

    .pdv-mobile-dock {
        position: fixed;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        z-index: 55;
        display: grid;
        grid-template-columns: 0.38fr 0.62fr;
        gap: 10px;
    }

    .pdv-mobile-shortcut,
    .pdv-mobile-cart-open {
        min-height: 58px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 8px;
        box-shadow: 0 16px 38px rgba(31, 35, 40, 0.24);
        font-weight: 900;
        cursor: pointer;
    }

    .pdv-mobile-shortcut {
        background: #fff;
        color: var(--brand);
    }

    .pdv-mobile-cart-open {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: var(--brand);
        color: #fff;
        text-align: left;
    }

    .pdv-mobile-cart-open small,
    .pdv-mobile-cart-open strong {
        display: block;
    }

    .pdv-mobile-cart-open small {
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
    }

    .pdv-mobile-cart-open strong {
        margin-top: 2px;
        font-size: 18px;
    }

    .pdv-mobile-cart-open em {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        border-radius: 999px;
        background: #fff;
        color: var(--brand);
        font-style: normal;
        font-weight: 900;
    }

    .pdv-mobile-cart-open.has-items {
        background: var(--accent);
    }

    .pdv-mobile-cart-open.has-items em {
        color: var(--accent);
    }

    .menu-toolbar {
        position: sticky;
        top: 72px;
        z-index: 18;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 10px;
    }

    .menu-filter-drawer {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 9px 13px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--brand);
        color: #fff;
        font-weight: 800;
    }

    .menu-tabs-panel {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        width: min(280px, 86vw);
        padding: 18px;
        border-right: 1px solid var(--line);
        background: #fff;
        box-shadow: 20px 0 60px rgba(31, 35, 40, 0.22);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .menu-tabs-panel.open {
        transform: translateX(0);
    }

    .menu-tabs-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-bottom: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: 24px;
    }

    .menu-tabs {
        display: grid;
        justify-content: stretch;
    }

    .menu-filter {
        justify-content: center;
        width: 100%;
    }

    .featured-strip {
        overflow: hidden;
    }

    .featured-strip article {
        display: none;
        flex-basis: 100%;
    }

    .featured-strip article.active {
        display: grid;
    }

    .product-footer,
    .menu-product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-add,
    .menu-customize {
        width: 100%;
    }

    .floating-order {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .floating-order-toggle {
        display: flex;
    }

    .floating-order-panel {
        display: none;
        margin-top: 8px;
    }

    .floating-order.open:not(.is-minimized) .floating-order-panel {
        display: block;
    }

    .floating-order.is-minimized .floating-order-panel {
        display: none;
    }
}

@media (max-width: 640px) {
    .checkout-modal {
        align-items: stretch;
        padding: 8px;
    }

    .checkout-panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        padding: 16px;
        gap: 14px;
        border-radius: 10px;
    }

    .checkout-head {
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .checkout-head h2 {
        font-size: 30px;
        line-height: 1.08;
    }

    .checkout-close {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .checkout-layout,
    .checkout-form,
    .checkout-card-area,
    .checkout-summary,
    .checkout-pix {
        min-width: 0;
    }

    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .checkout-form,
    .checkout-summary {
        grid-column: 1 / -1;
    }

    .checkout-summary {
        position: static;
        order: initial;
        padding: 14px;
    }

    .checkout-summary-row,
    .checkout-total {
        gap: 10px;
    }

    .checkout-total {
        font-size: 17px;
    }

    .checkout-total strong {
        font-size: 24px;
        white-space: nowrap;
    }

    .checkout-payment-tabs {
        grid-template-columns: 1fr;
    }

    .checkout-payment {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        white-space: normal;
        line-height: 1.2;
    }

    .checkout-form textarea {
        min-height: 92px;
    }
}

.pdv-alarm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pdv-alarm-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
    animation: alarmPulse 2s infinite;
}

.pdv-alarm-icon {
    font-size: 58px;
    margin-bottom: 16px;
    animation: bellRing 1s infinite;
}

@keyframes alarmPulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 30px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes bellRing {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.floating-tracker {
    position: fixed;
    right: 24px;
    bottom: 110px;
    z-index: 25;
}

.tracker-toggle {
    display: flex !important;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0 16px;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
}

.tracker-toggle:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.tracker-toggle strong {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .floating-tracker {
        right: 16px;
        bottom: 85px;
    }
}
