@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #fbfaf8;
    --bg-soft: #f4f1ee;
    --card: #fffdfa;
    --card-soft: #f6f0ed;
    --text: #221311;
    --text-soft: #5f4b42;
    --text-muted: #7c675c;
    --brand: #4e342e;
    --brand-hover: #422a25;
    --brand-strong: #321f1a;
    --line: #eae3dd;
    --line-strong: #d6cbc2;
    --accent: #c39f90;
    --success: #2f6f4f;
    --shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --anim-fast: 180ms;
    --anim-ui: 220ms;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(195, 159, 144, 0.18), transparent 24%),
        linear-gradient(180deg, #fbfaf8 0%, #f4f1ee 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

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

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 10px;
}

.site-topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 4px;
}

.site-topbar-logo {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.9);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(34, 19, 17, 0.08);
    backdrop-filter: blur(10px);
    transition: transform var(--anim-fast) ease, border-color var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.site-topbar-logo:hover,
.site-topbar-logo:focus-visible {
    transform: translateY(-1px);
    border-color: #c39f90;
    background: rgba(255, 253, 250, 0.98);
}

.site-topbar-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.layout {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: 10px 0 36px;
}

.layout.public-layout {
    width: min(1080px, calc(100% - 28px));
}

.layout.narrow {
    width: min(920px, calc(100% - 28px));
}

.layout.wide {
    width: min(1180px, calc(100% - 28px));
}

.hero,
.simple-header,
.panel,
.success-card,
.kitchen-card,
.dish-card,
.modal-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

@keyframes fadeInUpFast {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScaleFast {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero,
.simple-header,
.success-card {
    background: rgba(255, 253, 250, 0.92);
    border-radius: 26px;
    animation: fadeInUpFast var(--anim-fast) var(--ease-out) both;
}

.hero {
    padding: 12px 18px;
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: min(220px, 66vw);
    height: auto;
    aspect-ratio: 297 / 46;
    object-fit: contain;
}

.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.brand-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform var(--anim-fast) ease, opacity var(--anim-fast) ease;
}

.brand-header-logo:hover,
.brand-header-logo:focus-visible {
    transform: translateY(-1px);
    opacity: 0.9;
}

.brand-header-logo img {
    width: 78px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.context-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 10px 24px 2px;
    margin: 0;
}

.context-header-group {
    width: min(100%, 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.context-header-label {
    order: 2;
    display: inline-block;
    max-width: 180px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    text-align: center;
}

.context-header-slogan {
    order: 3;
    margin-top: 2px;
    color: #7b625a;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.01em;
    opacity: 0.85;
    text-align: center;
}

.context-header-closed-note {
    order: 4;
    margin-top: 4px;
    color: #56372f;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.menu-status-tag {
    position: absolute;
    top: 34px;
    right: 32px;
    min-width: 0;
    padding: 0 0 0 10px;
    border-left: 2px solid rgba(86, 55, 47, 0.18);
    text-align: left;
}

.menu-status-tag::before {
    content: none;
}

.menu-status-label {
    display: block;
    color: rgba(86, 55, 47, 0.48);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
}

.menu-status-time {
    display: block;
    margin-top: 4px;
    color: #56372f;
    font-size: 0.81rem;
    font-weight: 800;
    line-height: 1.1;
}

.context-header .brand-header-logo {
    order: 1;
    flex: 0 0 auto;
}

.context-header-link {
    order: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 5px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.82);
    color: var(--brand-strong);
    font-size: 0.68rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(65, 45, 37, 0.08);
}

.context-header-link:hover,
.context-header-link:focus-visible {
    border-color: #d5b7aa;
    outline: none;
}

.cart-dock-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(172px + env(safe-area-inset-bottom, 0px));
    z-index: 39;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.cart-dock-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255, 253, 250, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 100%);
}

.cart-dock-wrap.is-visible {
    opacity: 1;
}

.cart-dock {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(22px);
    width: min(calc(100% - 28px), 360px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(78, 52, 46, 0.96);
    color: #fffdfa;
    box-shadow: 0 18px 36px rgba(34, 19, 17, 0.24);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition:
        transform 260ms var(--ease-out),
        opacity 220ms ease,
        box-shadow 220ms ease;
}

.cart-dock.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cart-dock.is-bump {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
    box-shadow: 0 22px 44px rgba(34, 19, 17, 0.28);
}

.cart-dock-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.12);
    border: 1px solid rgba(255, 253, 250, 0.18);
}

.cart-dock-icon .cart-icon {
    width: 22px;
    height: 22px;
    stroke: #fffdfa;
}

.cart-dock-icon .cart-icon path:last-child {
    fill: #fffdfa;
}

.cart-dock-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.cart-dock-copy strong {
    font-size: 0.95rem;
    line-height: 1.1;
    color: inherit;
}

.cart-dock-copy small {
    font-size: 0.76rem;
    line-height: 1.1;
    color: rgba(255, 253, 250, 0.78);
}

.cart-dock-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.16);
    border: 1px solid rgba(255, 253, 250, 0.18);
    font-size: 0.92rem;
    font-weight: 800;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    z-index: 42;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #14994b);
    color: #fffdfa;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(20, 153, 75, 0.34), 0 8px 18px rgba(34, 19, 17, 0.18);
    opacity: 0;
    transform: translateY(26px) scale(0.86);
    animation: whatsappFloatEntrance 920ms 520ms cubic-bezier(.2, .9, .2, 1.12) forwards;
    transition: bottom 260ms var(--ease-out), transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(37, 211, 102, 0.44);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float::before {
    animation: whatsappFloatHalo 1600ms 980ms ease-out 2;
}

.whatsapp-float::after {
    animation: whatsappFloatHalo 1600ms 1220ms ease-out 2;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fffdfa;
    outline: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 52px rgba(20, 153, 75, 0.42), 0 10px 22px rgba(34, 19, 17, 0.22);
}

.whatsapp-float-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.whatsapp-float-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
    transform: translateX(0.5px);
}

.whatsapp-float-copy {
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.orders-float {
    position: fixed;
    right: 204px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    z-index: 41;
    min-width: 72px;
    min-height: 54px;
    display: inline-grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    padding: 8px 12px;
    border: 1px solid rgba(181, 151, 132, 0.42);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.94);
    color: var(--brand-strong);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(65, 45, 37, 0.14);
    opacity: 0;
    transform: translateY(22px) scale(0.9);
    animation: whatsappFloatEntrance 840ms 420ms cubic-bezier(.2, .9, .2, 1.12) forwards;
    transition: bottom 260ms var(--ease-out), transform 180ms ease, box-shadow 180ms ease;
}

.orders-float span {
    display: block;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 0.98;
}

.orders-float:hover,
.orders-float:focus-visible {
    color: var(--brand-strong);
    outline: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(65, 45, 37, 0.18);
}

.whatsapp-float.is-cart-visible {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.orders-float.is-cart-visible {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

@keyframes whatsappFloatEntrance {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.86);
        filter: saturate(0.7);
    }
    62% {
        opacity: 1;
        transform: translateY(-5px) scale(1.055);
        filter: saturate(1.18);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1);
    }
}

@keyframes whatsappFloatHalo {
    0% {
        opacity: 0.72;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(1.38);
    }
}

.hero-copy h1,
.menu-intro h1,
.simple-header h1,
.success-card h1 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-copy p,
.menu-intro p,
.simple-header p,
.success-card p,
.dish-body p,
.modal-description,
.field span,
.muted,
.kitchen-meta p,
.kitchen-note,
.summary-list p {
    color: var(--text-soft);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cart-chip,
.secondary-pill {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--line-strong);
    font-weight: 700;
}

.profile-chip {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--line-strong);
    transition: background-color var(--anim-fast) ease, border-color var(--anim-fast) ease;
}

.profile-chip:hover,
.profile-chip:focus-visible {
    background: #fffdfa;
    border-color: #c39f90;
}

.profile-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-button {
    background: var(--card-soft);
    border-color: var(--line-strong);
    color: var(--text);
}

.back-button:hover,
.back-button:focus-visible {
    background: #fffdfa;
    border-color: #d8c1b7;
}

[data-page="checkout"] {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
}

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

.cart-chip {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
}

.cart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-icon path:last-child {
    fill: var(--brand);
    stroke: none;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: white;
    border-radius: 999px;
    border: 2px solid #fffdfa;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.menu-grid,
.kitchen-grid,
.checkout-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.menu-grid {
    justify-items: start;
}

.menu-feature-band {
    --menu-feature-safe-right: clamp(124px, 13vw, 176px);
    position: relative;
    isolation: isolate;
    overflow: visible;
    margin-top: 0;
    padding: 16px var(--menu-feature-safe-right) 16px 0;
    display: inline-grid;
    grid-template-columns: 180px 180px;
    width: fit-content;
    max-width: 100%;
    gap: 14px;
    align-items: center;
    background: transparent;
    box-shadow: none;
}

.menu-feature-shape {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    pointer-events: none;
    z-index: 0;
    filter: none;
    box-shadow: none;
}

.menu-feature-band > :not(.menu-feature-shape) {
    position: relative;
    z-index: 1;
}

.menu-feature-title {
    order: 2;
    width: 180px;
    padding: 6px 0 0 18px;
    display: grid;
    gap: 10px;
    color: #fff7f1;
    align-self: center;
}

.menu-feature-kicker {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 247, 241, 0.7);
}

.menu-feature-title h1 {
    margin: 0;
    display: grid;
    gap: 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.82rem, 4.7vw, 3.2rem);
    line-height: 0.9;
    letter-spacing: 0;
    color: #fffdfa;
    font-weight: 800;
    text-transform: uppercase;
}

.menu-feature-title h1 span {
    display: block;
    white-space: nowrap;
}

.menu-feature-card-wrap {
    order: 1;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    justify-self: start;
    display: grid;
    gap: 6px;
}

.menu-carousel {
    margin-top: 0;
    min-width: max-content;
    padding: 0 6px 6px 0;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 247, 241, 0.34) transparent;
}

.menu-carousel::-webkit-scrollbar {
    height: 10px;
}

.menu-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 247, 241, 0.34);
    border-radius: 999px;
}

.menu-carousel > * {
    scroll-snap-align: start;
}

[data-page="cardapio"] .dish-card {
    flex: 0 0 180px;
    width: 180px;
}

[data-page="cardapio"] .dish-media {
    aspect-ratio: 1.18 / 0.62;
}

[data-page="cardapio"] .dish-body {
    padding: 10px;
    gap: 6px;
}

[data-page="cardapio"] .dish-body h2 {
    font-size: 0.9rem;
}

[data-page="cardapio"] .dish-body p {
    font-size: 0.84rem;
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-page="cardapio"] {
    padding-bottom: 140px;
}

.menu-intro {
    padding: 6px 2px 2px;
}

.menu-intro .eyebrow {
    font-family: "Poppins", sans-serif;
}

.display-title,
.menu-intro h1 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(1.95rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.menu-intro p {
    font-family: "Poppins", sans-serif;
}

.menu-intro p:last-child {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 620px;
}

.menu-divider {
    width: 100%;
    height: 1px;
    margin: 6px 0 0;
    background: linear-gradient(90deg, transparent 0%, rgba(214, 203, 194, 0.85) 12%, rgba(214, 203, 194, 0.85) 88%, transparent 100%);
}

.quality-signature {
    width: min(calc(100% - 48px), 540px);
    margin: 0 auto 16px;
    padding: 4px 0 10px;
    text-align: center;
}

.quality-signature-text {
    color: rgba(86, 55, 47, 0.62);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.quality-signature-text span {
    margin: 0 7px;
    opacity: 0.55;
}

.quality-marquee {
    position: relative;
    height: 42px;
    margin-bottom: 10px;
    overflow: hidden;
    opacity: 0.9;
    mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.quality-marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    height: 100%;
    animation: qualityMarquee 18s linear infinite;
}

.quality-marquee-track img {
    width: 42px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    opacity: 0.82;
    transform: rotate(-2deg);
}

@keyframes qualityMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.menu-promo-card {
    margin-top: 40px;
    padding: 11px 12px;
    display: grid;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(214, 203, 194, 0.82);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 253, 250, 0.96), rgba(246, 240, 236, 0.9)),
        #fffdfa;
    box-shadow: 0 18px 44px rgba(34, 19, 17, 0.08);
}

.menu-promo-copy {
    min-width: 0;
}

.menu-promo-kicker {
    margin: 0 0 4px;
    color: #8b6b60;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.menu-promo-copy h2 {
    margin: 0;
    max-width: 540px;
    color: var(--brand-strong);
    font-size: clamp(0.96rem, 3.5vw, 1.22rem);
    line-height: 1.04;
}

.menu-promo-copy p:last-child {
    margin: 8px 0 0;
    max-width: 560px;
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.36;
}

.meal-promo-progress,
.cart-promo-progress {
    display: grid;
    gap: 7px;
}

.meal-promo-progress {
    margin-top: 7px;
}

.meal-promo-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.68rem;
    line-height: 1.15;
}

.meal-promo-progress-head span {
    flex: 0 0 auto;
    color: #8b6b60;
    font-weight: 900;
}

.meal-promo-progress-head strong {
    color: var(--brand-strong);
    font-size: 0.72rem;
    text-align: right;
}

.meal-promo-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(92, 59, 49, 0.1);
}

.meal-promo-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6a4036, #2f7b57);
    transition: width 260ms ease;
}

.meal-promo-auto-note {
    display: block;
    color: rgba(107, 84, 74, 0.78);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
}

.meal-promo-progress.is-applied .meal-promo-progress-head strong,
.cart-promo-progress.is-applied .meal-promo-progress-head strong {
    color: #2f7b57;
}

.extras-section {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

[data-page="cardapio"] .extras-section {
    gap: 8px;
}

[data-page="cardapio"] .extras-section + .extras-section {
    margin-top: 30px;
}

[data-page="cardapio"] .extras-section .menu-grid {
    margin-top: 0;
}

.extras-section-head h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.05;
}

.extras-section-head p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.bebidas-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 8px;
}

[data-page="cardapio"] .bebidas-grid .dish-card {
    width: 100%;
    min-width: 0;
    flex: initial;
    border-radius: 14px;
}

[data-page="cardapio"] .bebidas-grid .dish-media {
    aspect-ratio: 1 / 0.62;
    display: block;
    width: 100%;
}

[data-page="cardapio"] .bebidas-grid .dish-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center center;
}

[data-page="cardapio"] .bebidas-grid .dish-top-badges {
    top: 5px;
    left: 5px;
    right: 5px;
    gap: 3px;
}

[data-page="cardapio"] .bebidas-grid .dish-price-badge {
    min-height: 20px;
    padding: 2px 5px;
    font-size: 0.58rem;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge {
    min-height: 20px;
    padding: 1px;
    gap: 2px;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge button {
    width: 13px;
    height: 13px;
    font-size: 0.56rem;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge strong {
    min-width: 8px;
    font-size: 0.58rem;
}

[data-page="cardapio"] .bebidas-grid .dish-body {
    padding: 7px;
    gap: 4px;
}

[data-page="cardapio"] .bebidas-grid .dish-body h2 {
    font-size: 0.74rem;
    line-height: 1.12;
}

[data-page="cardapio"] .bebidas-grid .dish-body p {
    display: none;
}

[data-page="cardapio"] .bebidas-grid .dish-add-button--footer {
    min-height: 30px;
    padding: 7px 8px;
    border-radius: 0 0 14px 14px;
    font-size: 0.7rem;
}

.extras-empty-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 253, 250, 0.76);
}

.extras-empty-card strong {
    display: block;
    font-size: 1rem;
    color: var(--brand-strong);
}

.extras-empty-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.checkout-payment-stage {
    display: grid;
    gap: 16px;
    border-radius: 18px;
    transition: box-shadow var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.checkout-payment-stage.field-needs-attention {
    background: transparent;
    box-shadow: none;
}

.checkout-payment-stage.is-payment-missing:not(.is-payment-method-missing) .payment-choice-card,
.checkout-payment-stage.is-payment-method-missing .payment-suboptions .secondary-pill:not(.is-selected) {
    border-color: rgba(155, 63, 47, 0.58);
    background: rgba(255, 246, 239, 0.92);
    box-shadow: 0 0 0 3px rgba(155, 63, 47, 0.12);
    animation: paymentAttentionPulse 520ms var(--ease-out) both;
    opacity: 1;
}

.checkout-payment-stage.is-payment-method-missing .payment-choice-card.is-selected {
    box-shadow: 0 14px 28px rgba(34, 19, 17, 0.18), 0 0 0 3px rgba(155, 63, 47, 0.1);
}

.payment-feedback {
    margin-top: -4px;
    color: #9b3f2f;
    font-weight: 800;
}

@keyframes paymentAttentionPulse {
    0% {
        transform: translateY(0);
    }
    35% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

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

.payment-choice-card {
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(214, 203, 194, 0.82);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.62);
    color: rgba(34, 19, 17, 0.52);
    text-align: left;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity var(--anim-fast) ease, border-color var(--anim-fast) ease, background-color var(--anim-fast) ease, color var(--anim-fast) ease, box-shadow var(--anim-fast) ease, transform var(--anim-fast) ease;
}

.payment-choice-card span {
    display: block;
    margin-bottom: 6px;
    color: rgba(92, 59, 49, 0.54);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.payment-choice-card strong {
    display: block;
    font-size: 1.05rem;
}

.payment-choice-card.is-selected,
.payment-suboptions .is-selected {
    border-color: #5a3a32;
    background: linear-gradient(180deg, #6a473e 0%, #4e342e 100%);
    color: var(--brand-strong);
    opacity: 1;
    box-shadow: 0 14px 28px rgba(34, 19, 17, 0.18);
    transform: translateY(-1px);
}

.payment-choice-card.is-selected {
    color: #fffdfa;
}

.payment-choice-card.is-selected span,
.payment-choice-card.is-selected strong {
    color: #fffdfa;
}

.payment-suboptions .secondary-pill:not(.is-selected) {
    opacity: 0.64;
    background: rgba(255, 253, 250, 0.7);
    color: rgba(34, 19, 17, 0.62);
}

.payment-suboptions .is-selected {
    color: #fffdfa;
    font-weight: 900;
}

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

.payment-pix-panel {
    display: grid;
    gap: 6px;
}

.payment-pix-panel strong {
    overflow-wrap: anywhere;
}

.pix-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.pix-copy-button {
    width: 42px;
    height: 42px;
    color: var(--brand-strong);
}

.pix-copy-button svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pix-copy-feedback {
    color: var(--success);
    font-weight: 800;
}

.dish-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius-lg);
    animation: fadeInUpFast var(--anim-ui) var(--ease-out) both;
    flex: 0 0 220px;
    width: 220px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dish-media {
    position: relative;
    aspect-ratio: 1.1 / 0.86;
    overflow: hidden;
    background: linear-gradient(135deg, #f6f0ed, #ecdfd9);
}

.dish-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.dish-top-badges > * {
    pointer-events: auto;
    flex: 0 0 auto;
}

.dish-price-badge {
    min-height: 30px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(135deg, #5a3a32 0%, #4e342e 100%);
    border: 1px solid rgba(255, 253, 250, 0.22);
    box-shadow: 0 10px 20px rgba(34, 19, 17, 0.12);
    color: #fffdfa;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.dish-qty-badge {
    min-height: 28px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid rgba(214, 203, 194, 0.95);
    box-shadow: 0 10px 20px rgba(34, 19, 17, 0.12);
    -webkit-tap-highlight-color: transparent;
}

.dish-qty-badge button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: #fffdfa;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.dish-qty-badge button:focus-visible {
    outline: 2px solid rgba(255, 253, 250, 0.7);
    outline-offset: 2px;
}

.dish-qty-badge strong {
    min-width: 14px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-strong);
}

.dish-price-badge strong,
.dish-price-badge span {
    display: block;
}

.dish-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-body {
    position: relative;
    z-index: 2;
    padding: 12px;
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
}

.dish-body h2,
.panel h2,
.success-summary h2,
.kitchen-card h2,
.modal-content h2 {
    margin: 0;
    font-size: 0.88rem;
}

.dish-footer,
.checkout-fee,
.checkout-total,
.qty-row,
.modal-actions,
.panel-head,
.kitchen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.primary-button,
.status-button {
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--brand);
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--brand-hover);
}

.dish-add-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: transparent;
    color: #fffdfa;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
}

.dish-add-button--footer {
    z-index: 2;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 10px 14px;
}

.dish-qty-badge--footer {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    padding: 7px 12px;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: linear-gradient(90deg, #5a3a32 0%, #4e342e 100%);
    box-shadow: none;
    overflow: hidden;
}

.dish-qty-badge--footer button {
    width: 26px;
    height: 26px;
    background: rgba(255, 253, 250, 0.96);
    color: var(--brand-strong);
    font-size: 0.9rem;
}

.dish-qty-badge--footer strong {
    min-width: 20px;
    color: #fffdfa;
    font-size: 0.9rem;
}

.dish-qty-badge strong,
.qty-control strong {
    display: inline-block;
    will-change: transform, opacity;
}

.dish-qty-badge.is-qty-active {
    box-shadow: inset 0 0 0 1px rgba(255, 253, 250, 0.16);
}

.dish-qty-badge strong.is-qty-increasing,
.qty-control strong.is-qty-increasing {
    animation: qtyNumberIncrease 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dish-qty-badge strong.is-qty-decreasing,
.qty-control strong.is-qty-decreasing {
    animation: qtyNumberDecrease 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dish-qty-badge strong.is-qty-unchanged {
    animation-name: qtyNumberNudge;
}

@keyframes qtyNumberIncrease {
    0% {
        opacity: 0.58;
        transform: translateY(7px) scale(0.82);
    }
    58% {
        opacity: 1;
        transform: translateY(-3px) scale(1.18);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes qtyNumberDecrease {
    0% {
        opacity: 0.58;
        transform: translateY(-7px) scale(0.82);
    }
    58% {
        opacity: 1;
        transform: translateY(3px) scale(1.14);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes qtyNumberNudge {
    0%,
    100% {
        transform: translateX(0);
    }
    32% {
        transform: translateX(-3px);
    }
    64% {
        transform: translateX(3px);
    }
}

.dish-add-button::before,
.dish-add-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: transform 420ms var(--ease-out);
    z-index: -1;
}

.dish-add-button::before {
    background: linear-gradient(90deg, #5a3a32 0%, #4e342e 100%);
    transform: translateX(0);
}

.dish-add-button::after {
    background: linear-gradient(90deg, #6c4a40 0%, #5a3a32 100%);
    transform: translateX(-102%);
}

.dish-add-button-label {
    display: block;
    transition: opacity 180ms ease, transform 240ms ease;
}

.dish-add-button-label--success {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateX(-10px);
}

.dish-add-button.is-confirming::before {
    transform: translateX(102%);
}

.dish-add-button.is-confirming::after {
    transform: translateX(0);
}

.dish-add-button.is-confirming .dish-add-button-label--default {
    opacity: 0;
    transform: translateX(10px);
}

.dish-add-button.is-confirming .dish-add-button-label--success {
    opacity: 1;
    transform: translateX(0);
}

.dish-add-button.is-confirming {
    transform: scale(0.985);
}

.cart-fly-chip {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid rgba(214, 203, 194, 0.95);
    box-shadow: 0 14px 28px rgba(34, 19, 17, 0.16);
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    z-index: 80;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition:
        transform 720ms cubic-bezier(0.2, 0.82, 0.2, 1),
        opacity 720ms ease;
}

.cart-fly-chip.is-flying {
    transform: translate(calc(-50% + var(--fly-x, 0px)), calc(-50% + var(--fly-y, 0px))) scale(0.38);
    opacity: 0.22;
}

.primary-button.wide {
    width: 100%;
    justify-content: center;
}

.secondary-link {
    font-weight: 700;
    color: var(--brand);
}

.panel,
.success-summary,
.kitchen-card {
    background: rgba(255, 253, 250, 0.98);
    border-radius: 22px;
    animation: fadeInUpFast var(--anim-ui) var(--ease-out) both;
}

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

.management-grid.management-grid--cards {
    grid-template-columns: 1fr;
}

.management-form-panel {
    align-self: start;
}

.management-list {
    display: grid;
    gap: 16px;
}

.management-list--cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 224px));
    align-items: stretch;
    justify-content: start;
    grid-auto-rows: 1fr;
    gap: 12px;
}

.management-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    flex: 0 1 auto;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
}

.management-create-card {
    min-height: 284px;
    width: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 18px;
    border: 1px dashed #d6cbc2;
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 250, 0.72);
    color: #4e342e;
    box-shadow: 0 10px 24px rgba(34, 19, 17, 0.05);
    cursor: pointer;
    text-align: center;
    transition: transform var(--anim-fast) ease, border-color var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.management-create-card:hover,
.management-create-card:focus-visible {
    transform: translateY(-2px);
    border-color: #4e342e;
    background: #fffdfa;
    outline: none;
}

.management-create-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #4e342e;
    color: #fffdfa;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.management-create-card strong {
    color: #221311;
    font-size: 0.98rem;
    font-weight: 800;
}

.management-create-card small {
    color: #6b544a;
    font-size: 0.78rem;
    font-weight: 700;
}

.management-card .dish-media {
    aspect-ratio: 1.55 / 1;
    flex: 0 0 auto;
}

.management-card .dish-body {
    min-height: 164px;
    padding: 11px;
    gap: 8px;
}

.management-card .dish-body h2 {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.18;
}

.management-card .dish-body p {
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.32;
}

.ops-shell--cozinha .management-card .status-badge {
    font-size: 10px;
    padding: 5px 8px;
}

.management-card-head > div {
    min-width: 0;
}

.management-card-head p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.management-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.management-meta {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding-top: 2px;
}

.management-meta p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.management-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
}

.context-actions-menu {
    position: fixed;
    z-index: 260;
    min-width: 172px;
    padding: 6px;
    border: 1px solid rgba(78, 52, 46, 0.16);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 0 18px 42px rgba(34, 19, 17, 0.2);
}

.context-actions-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #321f1a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.context-actions-menu button:hover,
.context-actions-menu button:focus-visible {
    background: #f1ebe5;
    outline: none;
}

.context-actions-menu button.is-danger {
    color: #8d2d22;
}

.context-actions-menu button.is-warning {
    color: #84511d;
}

.context-actions-menu button.is-warning:hover,
.context-actions-menu button.is-warning:focus-visible {
    background: #f7ecdb;
}

.context-actions-menu button.is-danger:hover,
.context-actions-menu button.is-danger:focus-visible {
    background: #f9e7e2;
}

.management-actions form {
    margin: 0;
}

.ops-shell--cozinha .management-actions .secondary-pill.compact,
.ops-shell--cozinha .management-actions .status-button {
    font-size: 11px;
    padding: 6px 9px;
}

.secondary-pill.compact {
    padding: 9px 12px;
}

.switch-card {
    justify-content: flex-start;
}

.switch-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

body.modal-open {
    overflow: hidden;
}

.management-modal {
    z-index: 120;
}

.management-modal-card {
    width: min(720px, 100%);
    overflow: visible;
}

.management-modal-card .modal-content {
    padding: 22px;
}

.management-modal-head {
    padding-right: 48px;
}

.weekday-check-grid > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 8px;
}

.weekday-check-grid label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdfa;
    color: var(--text);
    font-weight: 700;
}

.weekday-check-grid input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.image-upload-field {
    display: grid;
    gap: 8px;
}

.image-upload-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdfa;
}

.image-upload-preview {
    width: 96px;
    aspect-ratio: 1.25 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6f0ed, #ecdfd9);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

.image-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.image-upload-body strong {
    color: var(--text);
    font-size: 0.92rem;
}

.image-upload-body small {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-upload-actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.image-upload-actions input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.image-upload-button {
    cursor: pointer;
}

.image-upload-delete {
    border: 1px solid rgba(214, 203, 194, 0.95);
    color: var(--brand);
    cursor: pointer;
}

.image-upload-delete:disabled {
    cursor: wait;
    opacity: 0.64;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 8px;
}

.catalog-header-kicker {
    margin: 0 0 3px;
    color: #7c675c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.catalog-header h1 {
    margin: 0;
    color: #221311;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
}

.catalog-header p:last-child {
    margin: 5px 0 0;
    color: #5f4b42;
    font-size: 13px;
    line-height: 1.35;
}

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

.status-badge.is-live {
    color: var(--success);
    border-color: rgba(47, 111, 79, 0.22);
    background: rgba(47, 111, 79, 0.1);
}

.panel,
.success-summary {
    padding: 18px;
}

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

#checkout-delivery-fields {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

#checkout-delivery-fields .talheres-field {
    margin-block: 4px;
}

.checkout-stage-shell {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.checkout-stage-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-stage-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 253, 250, 0.72);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color var(--anim-fast) ease, color var(--anim-fast) ease, border-color var(--anim-fast) ease;
}

.checkout-stage-tab:hover,
.checkout-stage-tab:focus-visible {
    border-color: #c39f90;
    color: var(--brand);
}

.checkout-stage-tab:disabled {
    cursor: default;
    opacity: 0.58;
}

.checkout-stage-tab.is-active {
    background: rgba(255, 253, 250, 0.98);
    color: var(--brand-strong);
    border-color: #d5b7aa;
}

.checkout-stage-tab-index {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1e7e1;
    color: var(--brand-strong);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
}

.checkout-stage-tab.is-active .checkout-stage-tab-index {
    background: var(--brand);
    color: #fffdfa;
}

.checkout-stage-panel {
    display: grid;
    gap: 14px;
}

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

.checkout-stage-actions--capsule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.92);
    box-shadow: 0 14px 32px rgba(65, 45, 37, 0.08);
}

.checkout-stage-actions--capsule .primary-button,
.checkout-stage-actions--capsule .secondary-pill {
    min-width: 0;
    min-height: 56px;
    border-radius: 999px;
    border-color: transparent;
    justify-self: stretch;
    white-space: nowrap;
}

.checkout-stage-actions--capsule .secondary-pill {
    justify-content: center;
    background: transparent;
    color: var(--brand-strong);
}

.checkout-order-note-field {
    margin-top: 2px;
}

.checkout-talheres-field {
    margin-top: 2px;
}

.checkout-name-field {
    margin-top: 2px;
}

.checkout-stage-actions .primary-button,
.checkout-stage-actions .secondary-pill {
    width: 100%;
}

.checkout-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-mode-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex: 0 0 auto;
}

.checkout-mode-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

#checkout-address-summary {
    cursor: pointer;
}

#checkout-address-summary:hover,
#checkout-address-summary:focus-visible {
    border-color: rgba(47, 111, 79, 0.36);
    box-shadow: 0 10px 24px rgba(47, 111, 79, 0.08);
    outline: none;
}

.checkout-delivery-head {
    align-items: flex-start;
}

.checkout-delivery-summary {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(246, 240, 237, 0.58);
    color: var(--text-soft);
    font-size: 0.84rem;
}

.checkout-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.checkout-delivery-summary strong {
    color: var(--brand-strong);
    text-align: right;
    white-space: nowrap;
}

.checkout-delivery-summary .checkout-summary-total {
    margin-top: 3px;
    padding-top: 8px;
    border-top: 1px solid rgba(92, 59, 49, 0.12);
    color: var(--brand-strong);
    font-weight: 800;
}

.checkout-page-footer {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 24;
    width: min(100%, 320px);
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.checkout-page-footer::before,
[data-page="carrinho"] .checkout-fixed-actions::before {
    content: "";
    position: absolute;
    inset: -78px -16px -18px;
    z-index: 0;
    background: rgba(255, 253, 250, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 100%);
    pointer-events: none;
}

[data-page="carrinho"] {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

[data-page="carrinho"] .checkout-page-footer {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

[data-page="carrinho"] .checkout-fixed-actions {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    width: min(calc(100% - 28px), 390px);
    transform: translateX(-50%);
    pointer-events: none;
}

[data-page="carrinho"] .checkout-fixed-actions .checkout-stage-actions--capsule {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

[data-page="checkout"] {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
}

.checkout-nav-links {
    margin: -4px 0 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

[data-page="checkout"] .context-header,
[data-page="carrinho"] .context-header {
    min-height: 58px;
    padding: 4px 18px 0;
}

[data-page="checkout"] .brand-header-logo img,
[data-page="carrinho"] .brand-header-logo img {
    width: 64px;
}

[data-page="checkout"] .context-header-label,
[data-page="carrinho"] .context-header-label {
    font-size: 0.78rem;
}

[data-page="checkout"] .checkout-stage-shell {
    margin-top: 6px;
    gap: 8px;
}

[data-page="checkout"] .checkout-stage-panel {
    gap: 8px;
}

[data-page="checkout"] .panel {
    padding: 12px;
    border-radius: 20px;
}

[data-page="checkout"] .checkout-form,
[data-page="checkout"] .checkout-payment-stage {
    gap: 8px;
}

[data-page="checkout"] .panel-head {
    gap: 6px;
}

[data-page="checkout"] .panel-head h2 {
    font-size: 1.04rem;
    line-height: 1.1;
    margin: 0;
}

[data-page="checkout"] .checkout-address-selector {
    display: grid;
    gap: 2px;
}

[data-page="checkout"] #checkout-delivery-fields:empty {
    display: none;
}

[data-page="checkout"] .address-resolution-card {
    gap: 5px;
    padding: 10px 12px;
    border-radius: 14px;
}

[data-page="checkout"] .address-resolution-kicker {
    font-size: 0.64rem;
}

[data-page="checkout"] .address-resolution-card strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

[data-page="checkout"] .address-resolution-card small {
    font-size: 0.74rem;
    line-height: 1.25;
}

[data-page="checkout"] .checkout-delivery-summary {
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
}

[data-page="checkout"] .payment-choice-grid {
    gap: 8px;
}

[data-page="checkout"] .payment-choice-card {
    min-height: 76px;
    padding: 11px 12px;
    border-radius: 14px;
}

[data-page="checkout"] .payment-choice-card span {
    font-size: 0.62rem;
}

[data-page="checkout"] .payment-choice-card strong {
    font-size: 0.94rem;
}

[data-page="checkout"] .payment-suboptions {
    gap: 8px;
    margin-top: -2px;
}

[data-page="checkout"] .payment-suboptions .secondary-pill {
    min-height: 42px;
    padding: 9px 12px;
}

[data-page="checkout"] .payment-pix-panel {
    margin-top: -2px;
}

[data-page="checkout"] .primary-button.wide {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 16px;
}

[data-page="checkout"] .checkout-page-footer {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 28px), 390px);
    grid-template-columns: 1fr;
    gap: 8px;
}

[data-page="checkout"] .checkout-footer-notice {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(62, 104, 70, 0.2);
    border-radius: 14px;
    background: rgba(246, 255, 247, 0.96);
    color: #244b2b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 12px 28px rgba(34, 19, 17, 0.12);
    pointer-events: none;
}

[data-page="checkout"] .checkout-footer-notice.hidden {
    display: none;
}

[data-page="checkout"] .checkout-page-footer .checkout-submit-button {
    position: relative;
    display: grid;
    gap: 2px;
    justify-items: center;
    line-height: 1.12;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

[data-page="checkout"] .checkout-page-footer .checkout-submit-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.28) 42%, transparent 68%);
    opacity: 0;
    pointer-events: none;
}

[data-page="checkout"] .checkout-page-footer .checkout-submit-button > * {
    position: relative;
    z-index: 1;
}

[data-page="checkout"] .checkout-page-footer .checkout-submit-button small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
}

[data-page="carrinho"] .checkout-stage-shell {
    margin-top: 10px;
    gap: 10px;
}

[data-page="carrinho"] .checkout-stage-panel {
    gap: 10px;
}

.cart-back-link {
    justify-self: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.cart-back-link:hover,
.cart-back-link:focus-visible {
    color: var(--brand-strong);
}

.cart-closed-note {
    width: fit-content;
    max-width: min(100%, 620px);
    justify-self: center;
    margin: -2px 0 0;
    padding: 7px 12px 7px 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(96, 68, 54, 0.12);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 253, 250, 0.86), rgba(246, 240, 235, 0.72));
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 10px 24px rgba(34, 19, 17, 0.055);
}

.cart-closed-note > span:first-child {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(96, 68, 54, 0.1);
    color: var(--brand-strong);
    font-size: 0.72rem;
}

.cart-closed-note > span:last-child {
    min-width: 0;
}

[data-page="carrinho"] .checkout-summary-panel {
    padding: 10px;
    border-radius: 20px;
}

[data-page="carrinho"] .checkout-summary-panel .panel-head {
    margin-bottom: 6px;
}

[data-page="carrinho"] .checkout-summary-panel .panel-head h2 {
    font-size: 1.08rem;
}

[data-page="carrinho"] .checkout-summary-panel .checkout-items {
    gap: 6px;
    padding-bottom: 8px;
}

[data-page="carrinho"] .checkout-summary-panel .checkout-item {
    padding: 7px;
    border-radius: 14px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(34, 19, 17, 0.035);
}

[data-page="carrinho"] .checkout-item-main {
    gap: 8px;
    align-items: center;
}

[data-page="carrinho"] .checkout-item-media {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 11px;
}

[data-page="carrinho"] .checkout-item-body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    padding-bottom: 0;
}

[data-page="carrinho"] .checkout-item-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

[data-page="carrinho"] .checkout-item-top > div {
    min-width: 0;
}

[data-page="carrinho"] .checkout-item-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-page="carrinho"] .checkout-item-bottom .checkout-item-qty-control {
    margin-left: 0;
}

[data-page="carrinho"] .checkout-item-title {
    font-size: 0.84rem;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

[data-page="carrinho"] .checkout-item-variation {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-page="carrinho"] .checkout-item-price {
    font-size: 0.76rem;
    line-height: 1.1;
    align-self: start;
}

[data-page="carrinho"] .checkout-item-bottom {
    margin-top: 0;
    gap: 6px;
}

[data-page="carrinho"] .checkout-item-qty-control {
    gap: 3px;
    padding: 2px;
}

[data-page="carrinho"] .checkout-item-qty-control .qty-btn {
    width: 19px;
    height: 19px;
    font-size: 0.78rem;
}

[data-page="carrinho"] .checkout-item-qty-control .qty-value {
    min-width: 16px;
    font-size: 0.72rem;
}

[data-page="carrinho"] .checkout-item-actions {
    padding: 0;
    margin: 0;
}

[data-page="carrinho"] .checkout-item-actions .icon-button {
    width: 24px;
    height: 24px;
}

[data-page="carrinho"] .checkout-item-actions .icon-button svg {
    width: 12px;
    height: 12px;
}

[data-page="carrinho"] .checkout-item-note-wrap {
    margin-left: 62px;
}

[data-page="carrinho"] .checkout-item-note {
    padding: 4px 7px;
    border-radius: 9px;
    font-size: 0.7rem;
    line-height: 1.16;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

[data-page="carrinho"] .checkout-summary-panel .checkout-total {
    padding-top: 10px;
    margin-top: 0;
}

.cart-coupon-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(92, 59, 49, 0.12);
}

.cart-promo-progress {
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(92, 59, 49, 0.1);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.66);
}

.cart-promo-progress .meal-promo-track {
    height: 6px;
}

.cart-promo-progress small {
    min-height: 1em;
    color: #8b6b60;
    font-size: 0.66rem;
    line-height: 1.2;
}

.cart-promo-progress .meal-promo-auto-note {
    margin-top: -2px;
    font-size: 0.6rem;
}

.cart-coupon-inline input {
    min-width: 0;
    border: 1px solid #e3d8d1;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.72);
    padding: 8px 11px;
    color: var(--text);
    font-size: 0.82rem;
}

.cart-coupon-inline button {
    border: 1px solid #e3d8d1;
    border-radius: 999px;
    background: #fffdfa;
    padding: 8px 10px;
    color: var(--brand);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.cart-coupon-inline small {
    grid-column: 1 / -1;
    min-height: 1em;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.2;
}

.cart-discount-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(92, 59, 49, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cart-discount-line strong {
    color: #2f7b57;
    font-size: 0.92rem;
}

[data-page="carrinho"] .checkout-summary-panel .checkout-total span {
    font-size: 0.94rem;
}

[data-page="carrinho"] .checkout-summary-panel .checkout-total strong {
    font-size: 1.32rem;
}

[data-page="carrinho"] .checkout-name-field input {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 1rem;
}

[data-page="carrinho"] .checkout-talheres-field {
    padding: 7px 10px;
    border-radius: 15px;
}

[data-page="carrinho"] .talheres-toggle-wrap {
    justify-content: flex-start;
}

[data-page="carrinho"] .talheres-toggle {
    width: 100%;
    gap: 10px;
}

[data-page="carrinho"] .talheres-slider {
    width: 88px;
    height: 36px;
}

[data-page="carrinho"] .talheres-knob {
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
}

[data-page="carrinho"] .talheres-knob svg {
    width: 16px;
    height: 16px;
}

[data-page="carrinho"] .talheres-toggle input[type="checkbox"]:checked + .talheres-slider .talheres-knob {
    transform: translateX(52px);
}

[data-page="carrinho"] .talheres-status {
    min-width: 0;
    font-size: 0.86rem;
}

[data-page="carrinho"] .checkout-order-note-field textarea {
    min-height: 86px;
    padding: 14px 16px;
    font-size: 0.96rem;
    line-height: 1.35;
}

[data-page="carrinho"] .checkout-stage-actions--capsule {
    padding: 4px;
    margin-top: 0;
}

[data-page="carrinho"] .checkout-stage-actions--capsule .primary-button,
[data-page="carrinho"] .checkout-stage-actions--capsule .secondary-pill {
    min-height: 50px;
    padding-inline: 10px;
    font-size: 0.86rem;
    gap: 7px;
}

[data-page="carrinho"] .checkout-mode-button svg {
    width: 18px;
    height: 18px;
}

.checkout-footer-action,
.checkout-footer-back {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.12);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.checkout-submit-button.is-ready {
    animation: checkoutSubmitReadyHalo 1700ms ease-in-out infinite;
}

.checkout-submit-button.is-ready::after {
    animation: checkoutSubmitReadyShine 1700ms ease-in-out infinite;
}

@keyframes checkoutSubmitReadyHalo {
    0%,
    100% {
        box-shadow: 0 18px 38px rgba(34, 19, 17, 0.2), 0 0 0 0 rgba(90, 58, 50, 0.16);
    }
    50% {
        box-shadow: 0 22px 46px rgba(34, 19, 17, 0.26), 0 0 0 8px rgba(90, 58, 50, 0.12);
    }
}

@keyframes checkoutSubmitReadyShine {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }
    28%,
    58% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

.checkout-stack {
    display: grid;
    gap: 14px;
}

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

.saved-profile-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d8c1b7;
    border-radius: 14px;
    background: #f6f0ed;
}

.saved-profile-card--plain {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.saved-profile-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.saved-profile-actions {
    display: flex;
    justify-content: stretch;
    margin-top: 4px;
    width: 100%;
}

.saved-profile-create {
    border: 1px solid var(--line-strong);
    background: #fffdfa;
    color: var(--brand);
    border-radius: 14px;
    width: 100%;
    padding: 11px 18px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--anim-fast) ease, border-color var(--anim-fast) ease;
}

.saved-profile-create:hover,
.saved-profile-create:focus-visible {
    border-color: #c39f90;
    background: #fff;
}

.saved-profile-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand);
    text-transform: uppercase;
}

.saved-profile-list {
    display: grid;
    gap: 8px;
}

.saved-profile-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed #d9c8be;
    border-radius: 16px;
    background: #f8f4f1;
    text-align: center;
}

.saved-profile-empty strong {
    color: #221311;
}

.saved-profile-empty small {
    color: #7c675c;
}

.saved-profile-entry {
    display: flex;
    align-items: stretch;
    gap: 8px;
    position: relative;
}

.saved-profile-entry.is-selected .saved-profile-button {
    position: relative;
    border-color: #9a6f61;
    background: linear-gradient(180deg, #fffdfa, #f9f1ee);
    box-shadow: 0 10px 22px rgba(34, 19, 17, 0.12);
}

.saved-profile-entry.is-selected .saved-profile-button::after {
    content: "Selecionado";
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #4e342e;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.saved-profile-entry.is-selected .saved-profile-menu-toggle {
    border-color: #9a6f61;
    background: #fff;
}

.saved-profile-entry.is-selected .saved-profile-eta {
    border-color: #c39f90;
    background: #fff8f5;
}

.saved-profile-button {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fffdfa;
    color: var(--text);
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
}

.saved-profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.saved-profile-eta {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #f6f0ed;
    border: 1px solid #e2d2ca;
    display: grid;
    place-items: center;
    text-align: center;
}

.saved-profile-eta-value {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
}

.saved-profile-button .saved-profile-eta-value small {
    display: inline;
    margin-left: 2px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
}

.saved-profile-eta-value.is-loading,
.saved-profile-eta-value.is-unavailable {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.saved-profile-text {
    min-width: 0;
}

.saved-profile-button {
    font-weight: 700;
    line-height: 1.35;
}

.saved-profile-button strong,
.saved-profile-button small {
    display: block;
}

.saved-profile-button small {
    margin-top: 2px;
    font-weight: 500;
    color: var(--text-soft);
    line-height: 1.35;
}

.saved-profile-button:hover,
.saved-profile-button:focus-visible {
    border-color: #c39f90;
    background: #fff;
}

.saved-profile-menu {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    z-index: 4;
}

.saved-profile-menu-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fffdfa;
    color: var(--brand);
    cursor: pointer;
    line-height: 1;
    font-size: 1.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
    color: transparent;
    position: relative;
    z-index: 1;
}

.saved-profile-menu-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background:
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.6px) 0 50% / 5px 5px no-repeat,
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.6px) 50% 50% / 5px 5px no-repeat,
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.6px) 100% 50% / 5px 5px no-repeat;
    color: var(--brand);
}

.saved-profile-menu-toggle:hover,
.saved-profile-menu-toggle:focus-visible {
    border-color: #c39f90;
    background: #fff;
}

.saved-profile-menu-list {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    min-width: auto;
    z-index: 22;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: grid;
    gap: 8px;
}

.saved-profile-menu-list:not(.hidden) {
    display: grid;
}

.saved-profile-menu-list:not(.hidden) + .saved-profile-menu-toggle,
.saved-profile-menu:has(.saved-profile-menu-list:not(.hidden)) .saved-profile-menu-toggle {
    opacity: 0;
    pointer-events: none;
}

.saved-profile-menu-item {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fffdfa;
    text-align: center;
    padding: 0;
    cursor: pointer;
    color: var(--brand);
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(34, 19, 17, 0.12);
}

.saved-profile-button {
    padding-right: 60px;
}

.saved-profile-menu-item::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.saved-profile-menu-item:hover,
.saved-profile-menu-item:focus-visible {
    border-color: #c39f90;
    background: #fff;
}

.saved-profile-menu-item.is-danger {
    color: #7b3023;
}

.saved-profile-menu-item[data-profile-action="edit"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 16.25V20h3.75L18.8 8.94l-3.75-3.75L4 16.25zm2.92 2.33H6v-.92l9.05-9.05.92.92L6.92 18.58zM19.86 7.88a1 1 0 0 0 0-1.41l-2.33-2.33a1 1 0 0 0-1.41 0l-.78.78 3.75 3.75.77-.79z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 16.25V20h3.75L18.8 8.94l-3.75-3.75L4 16.25zm2.92 2.33H6v-.92l9.05-9.05.92.92L6.92 18.58zM19.86 7.88a1 1 0 0 0 0-1.41l-2.33-2.33a1 1 0 0 0-1.41 0l-.78.78 3.75 3.75.77-.79z'/%3E%3C/svg%3E");
}

.saved-profile-menu-item[data-profile-action="delete"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3.75h6A1.25 1.25 0 0 1 16.25 5V6H20a1 1 0 1 1 0 2h-1l-.72 10.1A2 2 0 0 1 16.28 20H7.72a2 2 0 0 1-1.99-1.9L5 8H4a1 1 0 1 1 0-2h3.75V5A1.25 1.25 0 0 1 9 3.75ZM10.25 6h3.5v-.25h-3.5V6Zm-.5 4.25a1 1 0 0 1 1 1V16a1 1 0 1 1-2 0v-4.75a1 1 0 0 1 1-1Zm4.5 0a1 1 0 0 1 1 1V16a1 1 0 1 1-2 0v-4.75a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3.75h6A1.25 1.25 0 0 1 16.25 5V6H20a1 1 0 1 1 0 2h-1l-.72 10.1A2 2 0 0 1 16.28 20H7.72a2 2 0 0 1-1.99-1.9L5 8H4a1 1 0 1 1 0-2h3.75V5A1.25 1.25 0 0 1 9 3.75ZM10.25 6h3.5v-.25h-3.5V6Zm-.5 4.25a1 1 0 0 1 1 1V16a1 1 0 1 1-2 0v-4.75a1 1 0 0 1 1-1Zm4.5 0a1 1 0 0 1 1 1V16a1 1 0 1 1-2 0v-4.75a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.profile-form {
    display: grid;
    gap: 14px;
}

.address-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.address-flow-step {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #e6dad2;
    border: 1px solid #d9c8be;
    box-shadow: none;
}

.address-flow-step.is-active {
    background: #5c3b31;
    border-color: #5c3b31;
}

.address-flow-step.is-ready {
    background: #cfe9db;
    border-color: #8dc4aa;
}

.address-step-card {
    display: grid;
    gap: 10px;
    padding: 12px 12px 14px;
    border: 1px solid #dfd1c8;
    border-radius: 22px 22px 18px 18px;
    background: #f8f4f1;
}

.address-step-card--map,
.address-step-card--details {
    height: min(76vh, 720px);
    align-content: start;
}

.address-step-card--map {
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    gap: 8px;
}

.profile-editor-panel {
    display: grid;
    gap: 16px;
    padding: 0;
}

.profile-selector-panel {
    display: grid;
    gap: 16px;
    padding: 0;
}

.profile-selector-head {
    display: grid;
    gap: 4px;
}

.profile-selector-head strong {
    color: #221311;
    font-size: 1.1rem;
}

.profile-selector-head small {
    color: #7c675c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.saved-profile-selector-actions {
    display: flex;
}

.profile-editor-panel.hidden {
    display: none;
}

.profile-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-editor-head h2 {
    margin: 0;
}

.profile-editor-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-editor-footer-link {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.text-action-button {
    border: 0;
    padding: 8px 4px;
    background: transparent;
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.text-action-button:hover,
.text-action-button:focus-visible {
    color: var(--brand-strong);
}

.city-badge-row {
    display: flex;
    justify-content: flex-start;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d8cbc3;
    background: #f6f0ed;
    color: #4e342e;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.resolved-address-inline {
    display: grid;
    gap: 2px;
    padding: 0 2px;
    min-height: 34px;
    align-content: start;
}

.resolved-address-inline-text {
    display: grid;
    gap: 1px;
    margin: 0;
    color: #8a7267;
    font-size: 0.72rem;
    line-height: 1.15;
}

.resolved-address-inline-text strong {
    color: #5f4b42;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resolved-address-inline-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-modal-card {
    width: min(520px, 100%);
    max-height: min(88vh, 760px);
    overflow: hidden;
}

.profile-selector-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
}

.profile-modal-card.profile-selector-modal {
    width: min(100%, 820px);
    max-height: calc(100vh - 52px);
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 48px rgba(37, 25, 20, 0.28);
    overflow: hidden;
    margin: auto auto 0;
}

.profile-selector-modal-body {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 14px;
    padding: 64px 16px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#profile-editor-modal.modal-backdrop {
    align-items: flex-end;
    padding: 44px 0 0;
}

#profile-editor-modal .modal-close {
    top: 4px;
    right: 16px;
}

.notice-modal-card {
    width: min(420px, 100%);
}

.notice-modal-body {
    gap: 18px;
    padding-top: 52px;
}

.notice-modal-copy {
    display: grid;
    gap: 10px;
}

.notice-modal-copy strong {
    color: #221311;
    font-size: 1.08rem;
    font-weight: 800;
}

.notice-modal-copy p {
    margin: 0;
    color: #5f4a40;
    font-size: 0.96rem;
    line-height: 1.55;
}

.notice-modal-copy p span {
    display: block;
}

.notice-modal-copy p span + span {
    margin-top: 5px;
}

.notice-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.notice-modal-actions .primary-button,
.notice-modal-actions .secondary-pill {
    min-width: 136px;
    min-height: 56px;
    margin: 0;
    border-radius: 18px;
}

.notice-modal-actions .hidden {
    display: none;
}

.checkout-address-selector {
    display: grid;
    gap: 14px;
}

.checkout-address-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkout-address-cta .saved-profile-create--compact {
    width: auto;
    min-height: 28px;
    margin-left: auto;
    padding: 3px 10px;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
}

.checkout-address-cta .saved-profile-create--compact:hover,
.checkout-address-cta .saved-profile-create--compact:focus-visible {
    border-color: var(--line);
    background: rgba(246, 240, 237, 0.52);
    color: var(--brand);
}

.address-preview-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8cbc3;
    border-radius: 16px;
    background: #e9ecef;
}

.address-preview-map {
    width: 100%;
    height: 150px;
}

.address-preview-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, calc(-100% + 8px));
    pointer-events: none;
    z-index: 10;
}

.address-preview-pin::before,
.address-preview-pin::after {
    content: "";
    position: absolute;
    inset: 0;
}

.address-preview-pin::before {
    border-radius: 50% 50% 50% 0;
    background: #5c3b31;
    transform: rotate(-45deg);
    box-shadow: 0 10px 20px rgba(34, 19, 17, 0.18);
}

.address-preview-pin::after {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fffdfa;
    top: 7px;
    left: 7px;
}

.address-preview-copy {
    display: grid;
    gap: 4px;
}

.address-preview-copy strong {
    color: #221311;
    font-size: 1rem;
    line-height: 1.35;
}

.address-preview-copy small {
    color: #6b544a;
    font-size: 0.84rem;
    line-height: 1.4;
}

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

fieldset.field {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: white;
    color: var(--text);
}

.field input.field-needs-attention,
.field textarea.field-needs-attention,
.address-resolution-card.field-needs-attention,
.saved-profile-create.field-needs-attention {
    border-color: #9b3f2f;
    box-shadow: 0 0 0 3px rgba(155, 63, 47, 0.16);
}

.field-error {
    color: #9b3f2f;
    font-weight: 800;
}

.field textarea {
    resize: vertical;
}

.address-grid {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 10px;
}

.address-autocomplete-shell {
    position: relative;
}

.address-loading {
    position: absolute;
    top: 50%;
    right: 42px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
}

.address-options-button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #386aa3;
    cursor: pointer;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
}

.address-options-button:hover,
.address-options-button:focus-visible {
    background: #f2ebe7;
    outline: none;
}

.operator-address-search #operator-address-query {
    padding-right: 48px;
}

.address-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 25;
    background: #fffdfa;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(34, 19, 17, 0.16);
    max-height: 238px;
    overflow: auto;
}

.address-suggestion-item {
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
    display: grid;
    gap: 2px;
    color: var(--text);
}

.address-suggestion-item + .address-suggestion-item {
    border-top: 1px solid var(--line);
}

.address-suggestion-item strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.24;
}

.address-suggestion-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.22;
}

.address-suggestion-item:hover,
.address-suggestion-item:focus-visible {
    background: #f7f1ed;
}

.address-suggestion-empty {
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.operator-address-search {
    display: grid;
    gap: 10px;
    align-content: start;
    align-self: start;
    grid-auto-rows: max-content;
}

.operator-address-search .field {
    display: block;
    align-self: start;
}

.operator-address-search .address-autocomplete-shell {
    height: auto;
    min-height: 0;
    align-self: start;
}

.operator-address-search .secondary-pill {
    justify-self: start;
}

.operator-district-field input {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.address-step-card.is-operator-search-mode:not(.is-map-visible) #use-current-location,
.address-step-card.is-operator-search-mode:not(.is-map-visible) .address-map-shell,
.address-step-card.is-operator-search-mode:not(.is-map-visible) .address-map-actions,
.address-step-card.is-operator-search-mode:not(.is-map-visible) #address-map-feedback,
.address-step-card.is-operator-search-mode:not(.is-map-visible) .resolved-address-inline {
    display: none;
}

.address-step-card.is-operator-search-mode.is-map-visible .operator-address-search {
    display: none;
}

.field-help {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

#address-map-feedback {
    min-height: 1.2em;
    margin-top: -2px;
}

.field-help.is-warning,
.coords-warning {
    color: #8b6357;
}

.coords-warning {
    margin: -4px 0 0;
    font-size: 0.82rem;
}

.address-resolution-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e3d8d1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #f8f2ef 100%);
}

.address-resolution-card.hidden {
    display: none;
}

.address-resolution-card.is-exact {
    border-color: #acd9bf;
    background: linear-gradient(180deg, #f6fcf8 0%, #eef8f2 100%);
}

.address-resolution-card.is-approximate {
    border-color: #e8c9b4;
    background: linear-gradient(180deg, #fff9f5 0%, #fdf1e9 100%);
}

.address-resolution-card.is-manual {
    border-color: #c9d6f0;
    background: linear-gradient(180deg, #f7f9fe 0%, #eef3ff 100%);
}

.address-resolution-card.is-pending {
    border-style: dashed;
    background: #f8f4f1;
}

.address-resolution-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.address-resolution-kicker {
    margin: 0;
    color: #7c675c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.address-resolution-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f0e7e2;
    color: #5f4b42;
}

.address-resolution-badge.is-exact {
    background: #dff1e6;
    color: #16663c;
}

.address-resolution-badge.is-approximate {
    background: #fde8d8;
    color: #9e4d12;
}

.address-resolution-badge.is-manual {
    background: #e2ebff;
    color: #3358a8;
}

.address-resolution-badge.is-pending {
    background: #eee5e0;
    color: #7c675c;
}

.address-resolution-card strong {
    color: #221311;
    font-size: 0.98rem;
    line-height: 1.4;
}

.address-resolution-card small {
    color: #5f4b42;
    font-size: 0.8rem;
    line-height: 1.45;
}

.address-resolution-audit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.address-resolution-audit span,
.saved-profile-resolution {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd1ca;
    background: #fffdfa;
    color: #5f4b42;
    font-size: 0.74rem;
    font-weight: 700;
}

.saved-profile-resolution {
    margin-top: 8px;
}

.saved-profile-resolution.is-exact {
    border-color: #b7dfc4;
    color: #16663c;
    background: #edf8f1;
}

.saved-profile-resolution.is-approximate {
    border-color: #efc9ac;
    color: #9e4d12;
    background: #fff2e8;
}

.saved-profile-resolution.is-manual {
    border-color: #c7d6fb;
    color: #3358a8;
    background: #eff4ff;
}

.saved-profile-resolution.is-pending {
    color: #7c675c;
    background: #f6f0ed;
}

.address-map-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dfd1c8;
    border-radius: 16px;
    background: #f8f4f1;
}

.address-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.address-map-kicker {
    margin: 0 0 2px;
    color: #7c675c;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.address-map-head strong {
    color: #221311;
    font-size: 0.86rem;
    line-height: 1.2;
}

.address-map-help {
    margin: 0;
    color: #5f4b42;
    font-size: 0.82rem;
    line-height: 1.45;
}

.address-map-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8cbc3;
    border-radius: 18px;
    background: #e9ecef;
    min-height: 0;
}

.address-map-shell::before,
.address-map-shell::after {
    content: "";
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.address-map-shell::before {
    inset: 0;
    z-index: 15;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.42) 35%, rgba(255, 255, 255, 0) 60%),
        rgba(248, 244, 241, 0.48);
    background-size: 220% 100%, auto;
}

.address-map-shell::after {
    top: 50%;
    left: 50%;
    z-index: 20;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 999px;
    border: 3px solid rgba(92, 59, 49, 0.16);
    border-top-color: #5c3b31;
}

.address-map-shell.is-locating::before,
.address-map-shell.is-locating::after {
    opacity: 1;
}

.address-map-shell.is-locating::before {
    animation: map-locating-sheen 1.15s linear infinite;
}

.address-map-shell.is-locating::after {
    animation: map-locating-spin 0.75s linear infinite;
}

.address-map-shell.is-locating .address-map-pin {
    opacity: 0.38;
    transform: translate(-50%, calc(-100% + 10px)) scale(0.96);
}

.address-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.address-map-actions {
    display: flex;
    justify-content: flex-start;
}

.address-map-actions .primary-button {
    min-width: 180px;
}

.address-map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, calc(-100% + 10px));
    pointer-events: none;
    z-index: 500;
    transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes map-locating-sheen {
    from {
        background-position: 200% 0, 0 0;
    }
    to {
        background-position: -40% 0, 0 0;
    }
}

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

.address-map-pin::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px 999px 999px 0;
    background: #4e342e;
    transform: rotate(-45deg);
    box-shadow: 0 10px 20px rgba(34, 19, 17, 0.24);
}

.address-map-pin::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fffdfa;
}

@media (max-width: 640px) {
    .resolved-address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    [data-page="cardapio"] .menu-feature-band {
        --menu-feature-safe-right: 88px;
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 6px;
        padding: 12px var(--menu-feature-safe-right) 12px 0;
    }

    [data-page="cardapio"] .menu-feature-title {
        padding-left: 10px;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: 1.2rem;
    }

    [data-page="cardapio"] .dish-card {
        flex-basis: 126px;
        width: 126px;
    }

    [data-page="cardapio"] .dish-body {
        padding: 7px;
    }

    [data-page="cardapio"] .dish-body h2 {
        font-size: 0.74rem;
    }

    [data-page="cardapio"] .dish-body p {
        font-size: 0.66rem;
    }

    [data-page="cardapio"] .dish-add-button--footer {
        min-height: 44px;
        font-size: 0.84rem;
    }
}

.talheres-field {
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fffdfa;
    gap: 8px;
}

.talheres-toggle-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.talheres-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.talheres-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.talheres-slider {
    width: 118px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #efe2da, #e7d6cd);
    position: relative;
    display: block;
    overflow: hidden;
    transition: background-color var(--anim-fast) ease, border-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
}

.talheres-slider::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.talheres-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(34, 19, 17, 0.22);
    display: grid;
    place-items: center;
    transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.talheres-knob svg {
    width: 20px;
    height: 20px;
    stroke: #4e342e;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.talheres-status {
    min-width: 150px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
    line-height: 1.25;
    text-align: left;
}

.talheres-status .state-off {
    display: none;
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider {
    background: linear-gradient(180deg, #5b3d35, #4e342e);
    border-color: #4e342e;
    box-shadow: 0 8px 18px rgba(78, 52, 46, 0.24);
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider .talheres-knob {
    transform: translateX(72px);
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider .talheres-knob svg {
    stroke: #3f2a24;
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider + .talheres-status {
    color: #4e342e;
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider + .talheres-status .state-on {
    display: inline;
}

.talheres-toggle input[type="checkbox"]:checked + .talheres-slider + .talheres-status .state-off {
    display: none;
}

.talheres-toggle input[type="checkbox"]:not(:checked) + .talheres-slider + .talheres-status .state-on {
    display: none;
}

.talheres-toggle input[type="checkbox"]:not(:checked) + .talheres-slider + .talheres-status .state-off {
    display: inline;
}

.talheres-toggle input[type="checkbox"]:focus-visible + .talheres-slider {
    outline: 2px solid rgba(78, 52, 46, 0.28);
    outline-offset: 2px;
}

.choice-grid {
    display: grid;
    gap: 8px;
}

.choice-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: #fffdfa;
    cursor: pointer;
    min-height: 58px;
    transition: border-color var(--anim-fast) ease, background-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease, transform var(--anim-fast) ease;
}

.choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.choice-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9f4f1;
    border: 1px solid var(--line);
    color: var(--brand);
}

.choice-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choice-text-wrap {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.choice-text {
    font-weight: 700;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.15;
}

.choice-text-wrap small {
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.choice-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    transition: border-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.choice-card:has(input:checked) {
    border-color: #b98f80;
    background: #f6f0ed;
    box-shadow: 0 7px 16px rgba(34, 19, 17, 0.1);
}

.choice-card:has(input:checked) .choice-icon {
    background: #ecdfd9;
    border-color: #c39f90;
    color: #402622;
}

.choice-card:has(input:checked) .choice-check {
    border-color: var(--brand);
    background: #fff;
    box-shadow: inset 0 0 0 5px var(--brand);
}

.choice-card:hover {
    border-color: #c9a799;
}

.choice-card:active {
    transform: translateY(1px);
}

.checkout-items,
.summary-list,
.kitchen-items {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.checkout-item,
.summary-list li {
    display: flex;
    gap: 12px;
}

.checkout-item:last-child,
.summary-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
}

.checkout-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(246, 240, 237, 0.94));
    display: grid;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(34, 19, 17, 0.05);
    animation: fadeInScaleFast var(--anim-fast) var(--ease-out) both;
}

.checkout-item-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkout-item-media {
    width: 92px;
    min-width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6f0ed, #ecdfd9);
    align-self: center;
}

.checkout-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-body {
    flex: 1;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-bottom: 4px;
    align-content: center;
}

.checkout-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-item-title {
    display: block;
    font-size: 1.02rem;
    line-height: 1.3;
}

.checkout-item-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #f6f0ed;
}

.checkout-item-qty-control .qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: white;
    color: var(--brand);
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.checkout-item-qty-control .qty-btn:hover,
.checkout-item-qty-control .qty-btn:focus-visible {
    background: #ecdfd9;
}

.checkout-item-qty-control .qty-value {
    min-width: 26px;
    text-align: center;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
}

.checkout-item-price {
    white-space: nowrap;
    color: var(--brand-strong);
    font-size: 1rem;
    align-self: flex-start;
}

.checkout-item-note {
    margin: 0;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.45;
}

.checkout-item-note-wrap {
    margin-top: 0;
    margin-left: 104px;
}

.checkout-item-actions {
    align-items: center;
    display: inline-flex;
}

.checkout-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--brand);
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: #f6e8e2;
    border-color: #c39f90;
    color: #7b3023;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.checkout-items {
    margin-top: 2px;
    padding-bottom: 18px;
}

.checkout-total {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.checkout-fee {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.checkout-fee span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.checkout-fee strong {
    color: var(--brand-strong);
    font-size: 1.02rem;
}

.checkout-summary-panel {
    display: grid;
    gap: 0;
    padding: 18px 18px 16px;
}

.checkout-summary-panel .panel-head {
    margin-bottom: 12px;
}

.checkout-summary-panel .panel-head h2 {
    font-size: 1.46rem;
    letter-spacing: -0.02em;
}

.checkout-summary-panel .muted[data-cart-count] {
    font-weight: 700;
    color: var(--brand);
}

.checkout-summary-panel .checkout-items {
    padding-bottom: 20px;
    gap: 14px;
}

.checkout-summary-panel .checkout-item {
    border-radius: 22px;
    padding: 16px;
}

.checkout-summary-panel .checkout-item-media {
    width: 92px;
    min-width: 92px;
    height: 92px;
    border-radius: 18px;
}

.checkout-summary-panel .checkout-item-body {
    gap: 11px;
    padding-bottom: 8px;
}

.checkout-summary-panel .checkout-item-title {
    font-size: 0.98rem;
}

.checkout-summary-panel .checkout-item-price {
    font-size: 0.98rem;
}

.checkout-summary-panel .checkout-item-actions {
    padding-top: 6px;
    margin-top: 4px;
}

.checkout-summary-panel .checkout-total {
    margin-top: 2px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-summary-panel .checkout-fee {
    margin-top: 2px;
    padding-top: 14px;
}

.checkout-summary-panel .checkout-total span {
    font-size: 1rem;
    color: var(--text);
}

.checkout-summary-panel .checkout-total strong {
    font-size: 1.56rem;
    line-height: 1;
    color: var(--brand-strong);
    letter-spacing: -0.02em;
}

.empty-state {
    padding: 28px 20px;
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.92);
    border: 1px dashed var(--line-strong);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 21, 18, 0.72);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px;
    z-index: 50;
    animation: fadeInScaleFast var(--anim-fast) var(--ease-out) both;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    width: min(420px, 100%);
    background: #fffdfa;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    animation: fadeInScaleFast var(--anim-fast) var(--ease-out) both;
    margin: auto 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #5c3b31;
    color: #fffdfa;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    aspect-ratio: 1.1 / 0.78;
    object-fit: cover;
    background: linear-gradient(135deg, #f6f0ed, #ecdfd9);
}

.modal-content {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.modal-price {
    margin: -8px 0 0;
    font-weight: 800;
    color: var(--brand);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--card-soft);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid var(--line);
}

.qty-control button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: white;
    cursor: pointer;
    font-weight: 800;
}

.order-modal-card {
    width: min(360px, 100%);
    border-radius: 18px;
}

.order-modal-card .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 253, 250, 0.72);
    background: rgba(34, 19, 17, 0.32);
    color: #fffdfa;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.order-modal-card .modal-image {
    aspect-ratio: 1.9 / 1;
}

.order-modal-card .modal-content {
    padding: 12px;
    gap: 8px;
}

.order-modal-card .eyebrow {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.order-modal-card .modal-content h2 {
    font-size: 0.98rem;
    line-height: 1.15;
}

.order-modal-card .modal-description {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.25;
}

.order-modal-card .modal-price {
    margin: 0;
    font-size: 0.98rem;
}

.order-modal-card .field {
    gap: 4px;
}

.order-modal-card .field span,
.order-modal-card .qty-row > span {
    font-size: 0.86rem;
}

.order-modal-card .field textarea {
    min-height: 42px;
    max-height: 76px;
    padding: 8px 10px;
    border-radius: 12px;
    resize: none;
}

.dish-variation-field {
    border: 0;
    padding: 0;
    margin: 0;
}

.dish-variation-field legend {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.dish-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

.dish-variation-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid #e0d4ce;
    border-radius: 999px;
    padding: 8px 13px;
    background: #fffdfa;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.dish-variation-chip input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.order-modal-card .qty-row,
.order-modal-card .modal-actions {
    gap: 8px;
}

.order-modal-card .modal-qty-row {
    align-items: center;
}

.order-modal-card .modal-qty-control {
    width: 118px;
    min-height: 42px;
    margin: 0;
    padding: 6px;
    justify-content: center;
    gap: 11px;
    border: 1px solid rgba(255, 253, 250, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.12), rgba(255, 253, 250, 0) 45%),
        linear-gradient(135deg, #65443a 0%, #4e342e 54%, #321f1a 100%);
    box-shadow: 0 14px 26px rgba(34, 19, 17, 0.2), inset 0 1px 0 rgba(255, 253, 250, 0.2);
}

.order-modal-card .modal-qty-control button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 16px rgba(34, 19, 17, 0.1);
}

.order-modal-card .modal-qty-control strong {
    min-width: 22px;
    color: #fffdfa;
    text-align: center;
    font-size: 0.94rem;
}

.order-modal-card .modal-qty-control button[data-qty-plus] {
    color: transparent;
    font-size: 0;
}

.order-modal-card .modal-qty-control button[data-qty-plus]::before {
    content: "+";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand-strong);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-0.5px);
}

.order-modal-card .modal-qty-control.is-empty {
    width: 42px;
    min-height: 42px;
    padding: 6px;
    gap: 0;
}

.order-modal-card .modal-qty-control.is-empty button[data-qty-minus],
.order-modal-card .modal-qty-control.is-empty strong {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
}

.order-modal-card .modal-qty-control.is-empty button[data-qty-plus] {
    width: 30px;
    height: 30px;
}

.order-modal-card .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
}

.order-modal-card .secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(92, 59, 49, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 253, 250, 0.86);
    color: var(--brand);
    font-size: 0.82rem;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
}

.order-modal-card .primary-button {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.success-card {
    padding: 24px 20px;
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.success-summary {
    padding: 0;
    box-shadow: none;
    border: 0;
}

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

.order-closed-page {
    min-height: 100dvh;
}

.order-closed-panel {
    align-self: start;
}

.order-closed-panel .panel-head h2 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: clamp(2.1rem, 9vw, 3.6rem);
    line-height: 0.95;
}

.order-closed-hero {
    padding: 14px;
    border: 1px solid rgba(78, 52, 46, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.94) 0%, rgba(248, 242, 239, 0.92) 100%);
}

.order-closed-hero p:not(.address-resolution-kicker) {
    max-width: 24rem;
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.35;
}

.order-closed-copy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.whatsapp-countdown-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(47, 111, 79, 0.24);
    border-radius: 18px;
    background: rgba(47, 111, 79, 0.08);
    color: var(--text-soft);
}

.whatsapp-progress-ring {
    --progress: 0%;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle, #fffdfa 0 58%, transparent 59%),
        conic-gradient(var(--success) var(--progress), rgba(47, 111, 79, 0.16) 0);
    color: var(--brand-strong);
    font-weight: 900;
    line-height: 1;
    transition: background 220ms linear;
}

.whatsapp-countdown-card strong {
    display: block;
    color: var(--brand-strong);
    font-size: 1rem;
    line-height: 1.15;
}

.whatsapp-countdown-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    line-height: 1.35;
}

.order-flow-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.84);
}

.order-flow-step {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 8px 4px;
    border-radius: 12px;
    color: var(--text-soft);
    text-align: center;
}

.order-flow-step span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eee5e0;
    color: #7c675c;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.order-flow-step strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    line-height: 1.1;
}

.order-flow-step.is-done span,
.order-flow-step.is-active span {
    background: var(--success);
    color: #fffdfa;
}

.order-flow-step.is-active {
    background: rgba(47, 111, 79, 0.1);
    color: var(--brand-strong);
}

.order-closed-address small:empty {
    display: none;
}

.order-closed-items {
    display: grid;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.order-closed-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    color: var(--text);
}

.order-closed-item + .order-closed-item {
    border-top: 1px solid var(--line);
}

.order-closed-item div {
    display: grid;
    gap: 4px;
}

.order-closed-item strong,
.order-closed-item span {
    font-weight: 800;
}

.order-closed-item small {
    color: var(--text-soft);
}

.order-closed-actions {
    margin-top: 2px;
}

.order-closed-page {
    width: min(560px, calc(100% - 32px));
    min-height: 100dvh;
    padding: 32px 0;
    display: grid;
    align-items: center;
}

.order-closed-stage {
    width: 100%;
}

.order-closed-panel--quiet {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: clamp(28px, 7vw, 46px) clamp(18px, 5vw, 34px);
    border: 1px solid rgba(78, 52, 46, 0.09);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 22px 60px rgba(50, 31, 26, 0.08);
    text-align: center;
    animation: orderClosedPanelIn 520ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-logo {
    width: 76px;
    height: 76px;
    display: inline-grid;
    place-items: center;
    animation: orderClosedElementIn 520ms 80ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-logo img {
    width: 48px;
    height: auto;
    display: block;
}

.order-closed-status {
    display: grid;
    gap: 8px;
    animation: orderClosedElementIn 520ms 150ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-status span {
    color: rgba(78, 52, 46, 0.54);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-closed-status h1 {
    margin: 0;
    color: var(--brand-strong);
    font-size: clamp(1.55rem, 7vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.order-closed-status p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.35;
}

.order-closed-panel--quiet .whatsapp-countdown-card {
    padding: 0;
    border: 0;
    background: transparent;
    animation: orderClosedCounterIn 560ms 240ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-panel--quiet .whatsapp-progress-ring {
    width: 86px;
    height: 86px;
    background:
        radial-gradient(circle, #fffdfa 0 61%, transparent 62%),
        conic-gradient(var(--success) var(--progress), rgba(47, 111, 79, 0.13) 0);
    color: var(--brand-strong);
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(47, 111, 79, 0.08);
}

.order-closed-running-notice {
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid rgba(78, 52, 46, 0.08);
    border-radius: 999px;
    background: rgba(248, 242, 239, 0.56);
    color: rgba(78, 52, 46, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    animation: orderClosedElementIn 520ms 330ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-ops-summary {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: orderClosedElementIn 520ms 410ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-ops-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(78, 52, 46, 0.08);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.82);
    color: rgba(78, 52, 46, 0.62);
    font-size: 0.75rem;
    line-height: 1.1;
}

.order-closed-ops-summary strong {
    color: var(--brand-strong);
    font-weight: 900;
}

.order-closed-panel--quiet .order-closed-actions {
    width: 100%;
    max-width: 310px;
    margin-top: 0;
    animation: orderClosedElementIn 520ms 490ms cubic-bezier(.2, .78, .28, 1) both;
}

.order-closed-panel--quiet .primary-button,
.order-closed-panel--quiet .secondary-pill {
    min-height: 44px;
    border-radius: 999px;
}

.layout.public-layout.order-closed-page {
    width: min(560px, calc(100% - 32px));
}

@keyframes orderClosedPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes orderClosedElementIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orderClosedCounterIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-closed-panel--quiet,
    .order-closed-logo,
    .order-closed-status,
    .order-closed-panel--quiet .whatsapp-countdown-card,
    .order-closed-running-notice,
    .order-closed-ops-summary,
    .order-closed-panel--quiet .order-closed-actions {
        animation: none;
    }
}

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

.follow-order-actions .secondary-pill {
    justify-content: center;
}

.my-orders-panel .panel-head h2 {
    font-size: 1.45rem;
}

.my-orders-page {
    padding-bottom: 260px;
}

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

#clear-my-orders {
    margin-top: 18px;
}

.my-order-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.9);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(65, 45, 37, 0.08);
}

.my-order-card:hover,
.my-order-card:focus-visible {
    border-color: rgba(47, 111, 79, 0.36);
    outline: none;
}

.my-order-status {
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 111, 79, 0.1);
    color: var(--brand-strong);
    font-size: 0.74rem;
    font-weight: 900;
}

.my-order-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.my-order-main strong {
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1;
}

.my-order-main b {
    color: var(--brand-strong);
    font-size: 1rem;
}

.my-order-card small,
.my-orders-empty p,
.my-orders-loading {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.35;
}

.my-orders-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: rgba(246, 240, 237, 0.58);
    text-align: center;
}

.my-orders-empty strong {
    color: var(--text);
}

.my-orders-loading {
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
}

.my-order-flow {
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
}

.my-order-flow .order-flow-step {
    gap: 3px;
    padding: 5px 2px;
    border-radius: 8px;
}

.my-order-flow .order-flow-step span {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
}

.my-order-flow .order-flow-step strong {
    font-size: 0.72rem;
}

.my-order-card small {
    font-size: 0.86rem;
}

.my-order-meta {
    margin-top: -2px;
    font-weight: 800;
}

.my-order-number {
    justify-self: end;
    color: rgba(92, 59, 49, 0.58);
    font-size: 0.74rem;
    font-weight: 800;
}

.kitchen-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.status-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--line-strong);
    font-weight: 700;
}

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

.status-button {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f6f0ed;
    color: var(--brand-strong);
    border: 1px solid var(--line-strong);
    font-weight: 700;
    transition: background-color var(--anim-fast) ease, color var(--anim-fast) ease, border-color var(--anim-fast) ease;
}

.status-button.is-active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.status-novo {
    border-color: #d8c1b7;
}

.status-em_preparo {
    border-color: #c39f90;
}

.status-finalizado .status-badge {
    color: var(--success);
}

.ops-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
}

.ops-sidebar {
    background: radial-gradient(circle at top right, rgba(145, 85, 60, 0.22), transparent 42%), linear-gradient(180deg, #5d3a32 0%, #3f2621 100%);
    padding: 18px 16px 24px;
    color: #f4f1ee;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.ops-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px 8px 12px;
}

.ops-brand img {
    width: 96px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ops-nav {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    align-content: start;
    grid-auto-rows: max-content;
}

.ops-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 1.01rem;
    transition: background-color var(--anim-fast) ease, color var(--anim-fast) ease;
}

.ops-nav-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    color: currentColor;
}

.ops-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.ops-nav-icon svg path {
    fill: currentColor;
}

.ops-nav-item:hover,
.ops-nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.ops-nav-item.is-active {
    background: #fffdfa;
    color: #3d2621;
    box-shadow: 0 10px 18px rgba(19, 9, 8, 0.15);
}

.ops-nav-badges {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ops-nav-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.86);
    color: #3d2621;
    border: 1px solid rgba(95, 75, 66, 0.16);
}

.ops-nav-badge--approval {
    background: #d43d3d;
    color: #fffdfa;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 18px rgba(212, 61, 61, 0.24);
}

.ops-nav-badge.is-hidden {
    display: none;
}

.ops-nav-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ops-sidebar-session {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.ops-sidebar-session .ops-user-chip,
.ops-sidebar-session .ops-logout {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ops-sidebar-session form {
    margin: 0;
}

.ops-nav-item--subtle {
    opacity: 0.88;
    font-size: 0.95rem;
}

.ops-main {
    padding: 16px 22px 28px;
    display: grid;
    gap: 14px;
}

.ops-session {
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ops-session-kicker,
.ops-kicker {
    margin: 0;
    color: #8b6357;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 800;
}

.ops-session h1 {
    margin: 2px 0 0;
    font-size: 1.85rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1;
}

.ops-session-description {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ops-session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-day-header .ops-session-actions {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ops-user-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fffdfa;
    color: var(--text-soft);
    font-weight: 700;
}

.ops-logout {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fffdfa;
    color: var(--text);
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
}

.ops-headline h2 {
    margin: 8px 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.05;
    font-weight: 700;
}

.ops-headline p:last-child {
    margin: 0;
    color: var(--text-soft);
}

.ops-period-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ops-period-btn {
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    padding: 9px 14px;
    background: #fffdfa;
    font-weight: 700;
    color: var(--text);
}

.ops-period-btn.is-active {
    background: #4e342e;
    border-color: #4e342e;
    color: #fff;
}

.dashboard-day-header {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 252px;
}

.dashboard-day-overview {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 auto;
    text-align: center;
    width: min(100%, 900px);
}

.dashboard-day-rail {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: minmax(128px, 1fr) auto minmax(128px, 1fr);
    align-items: center;
    gap: 14px;
}

.dashboard-date-current {
    min-width: 112px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: #fffdfa;
    color: var(--text);
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-date-current.is-active {
    background: #4e342e;
    border-color: #4e342e;
    color: #fffdfa;
}

.dashboard-date-center {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.dashboard-date-current-form {
    position: relative;
    display: inline-grid;
    justify-items: center;
}

.dashboard-date-current-form input[type="date"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.dashboard-weekday {
    margin: 0;
    color: #7c675c;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-date-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-side-day {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 11px 13px;
    border: 1px solid rgba(181, 151, 132, 0.34);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.72);
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dashboard-side-day:last-child {
    text-align: right;
}

.dashboard-side-day:hover,
.dashboard-side-day:focus-visible {
    transform: translateY(-1px);
    border-color: #c9aa99;
    box-shadow: 0 12px 26px rgba(65, 45, 37, 0.10);
    outline: none;
}

.dashboard-side-day span {
    color: var(--brand-strong);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-side-day small {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-side-day strong {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
}

.dashboard-date-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-date-tool {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid rgba(181, 151, 132, 0.38);
    border-radius: 999px;
    background: #fffdfa;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-date-tool.is-active {
    background: #4e342e;
    border-color: #4e342e;
    color: #fffdfa;
}

.dashboard-week-strip {
    width: min(100%, 820px);
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-week-day {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 8px 7px;
    border: 1px solid rgba(181, 151, 132, 0.30);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.62);
    color: var(--text);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.dashboard-week-day:hover,
.dashboard-week-day:focus-visible {
    transform: translateY(-1px);
    border-color: #c9aa99;
    outline: none;
}

.dashboard-week-day span {
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-week-day strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.1;
}

.dashboard-week-day small {
    color: var(--text-soft);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.05;
}

.dashboard-week-day.is-selected {
    border-color: #4e342e;
    background: #fffdfa;
    box-shadow: inset 0 0 0 1px rgba(78, 52, 46, 0.14);
}

.dashboard-week-day.is-today:not(.is-selected) {
    border-color: rgba(0, 166, 109, 0.32);
}

.dashboard-week-day.is-empty {
    opacity: 0.62;
}

.ops-heatmap-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.ops-heatmap-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.ops-heatmap-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ops-heatmap-head h3 {
    margin: 8px 0 6px;
    font-size: 1.9rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ops-heatmap-head p:last-child {
    margin: 0;
    color: var(--text-soft);
}

.ops-heatmap-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ops-heatmap-filter-btn {
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 8px 12px;
    background: #fffdfa;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--anim-fast) ease, border-color var(--anim-fast) ease, color var(--anim-fast) ease;
}

.ops-heatmap-filter-btn:hover,
.ops-heatmap-filter-btn:focus-visible {
    border-color: #c39f90;
}

.ops-heatmap-filter-btn.is-active {
    background: #4e342e;
    border-color: #4e342e;
    color: #fff;
}

.ops-heatmap-map {
    width: 100%;
    height: 760px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.ops-heatmap-map-shell {
    position: relative;
    isolation: isolate;
}

.ops-heatmap-bairros-faixa {
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fffdfa;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ops-heatmap-bairros-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(78, 52, 46, 0.26);
    color: #4e342e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ops-heatmap-bairros-empty {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.ops-heatmap-side {
    display: grid;
    gap: 12px;
}

.ops-heatmap-list-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdfa;
    padding: 12px;
    max-height: 372px;
    overflow: auto;
}

.ops-heatmap-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ops-heatmap-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 9px 10px;
    background: #fff;
}

.ops-heatmap-list li span {
    color: var(--text);
    font-weight: 700;
}

.ops-heatmap-list li strong {
    color: var(--brand);
    font-weight: 800;
}

.ops-heatmap-list li.is-empty {
    justify-content: flex-start;
    color: var(--text-soft);
    font-weight: 600;
}

.ops-heatmap-list.is-plain li {
    justify-content: flex-start;
}

.ops-heatmap-map.is-hidden {
    display: none;
}

.ops-heatmap-map .maplibregl-map {
    background: #fdfcfa;
}

.ops-heatmap-map canvas {
    outline: none;
}

.ops-heatmap-map .maplibregl-canvas {
    border-radius: 16px;
}

.ops-heatmap-map .maplibregl-ctrl-top-left,
.ops-heatmap-map .maplibregl-ctrl-top-right,
.ops-heatmap-map .maplibregl-ctrl-bottom-left {
    display: none;
}

.ops-heatmap-map .maplibregl-ctrl-bottom-right {
    right: 8px;
    bottom: 8px;
}

.ops-heatmap-map .maplibregl-ctrl.maplibregl-ctrl-attrib {
    margin: 0;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.52);
    color: rgba(95, 89, 83, 0.68);
    border-radius: 8px 0 0 0;
    border: 0;
    box-shadow: none;
    font-size: 9px;
    line-height: 1.4;
}

.ops-heatmap-map .maplibregl-ctrl-attrib a {
    color: inherit;
    text-decoration: none;
}

.ops-heatmap-map .maplibregl-ctrl-attrib-button {
    display: none;
}

.ops-heatmap-hotspot {
    position: absolute;
    width: var(--hotspot-size, 28px);
    height: var(--hotspot-size, 28px);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(255, 122, 24, 0.22) 0%, rgba(255, 122, 24, 0.14) 34%, rgba(255, 122, 24, 0.08) 58%, rgba(255, 122, 24, 0.03) 78%, rgba(255, 122, 24, 0) 100%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    filter: blur(7px);
    mix-blend-mode: multiply;
    opacity: 0.44;
}

.ops-heatmap-hotspot-core {
    width: var(--hotspot-core, 10px);
    height: var(--hotspot-core, 10px);
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.52);
    box-shadow:
        0 0 0 4px rgba(255, 145, 64, 0.12),
        0 0 18px rgba(255, 106, 0, 0.2);
}

.ops-heatmap-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    isolation: isolate;
}

.ops-heatmap-bairro-label {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #4e342e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    border: 1px solid rgba(78, 52, 46, 0.18);
    box-shadow: 0 2px 6px rgba(34, 19, 17, 0.12);
}

.ops-heatmap-bairro-cloud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    z-index: 4;
    pointer-events: none;
}

.ops-heatmap-bairro-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(78, 52, 46, 0.2);
    color: #4e342e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(34, 19, 17, 0.08);
}

.ops-heatmap-static-cloud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 9999;
    pointer-events: none;
}

.ops-heatmap-static-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(78, 52, 46, 0.35);
    color: #4e342e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(34, 19, 17, 0.16);
}

.ops-heatmap-empty {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed var(--line-strong);
    background: rgba(246, 240, 237, 0.76);
    color: var(--text-soft);
}

.ops-heatmap-card.is-loading .ops-heatmap-map {
    opacity: 0.7;
}

.ops-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.ops-kpis--costs {
    grid-template-columns: repeat(2, minmax(260px, 420px));
    justify-content: start;
}

.dashboard-balance-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
    align-items: stretch;
    gap: 18px;
}

.dashboard-kpi-quadrants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.dashboard-balance-card {
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
}

.dashboard-balance-value {
    color: var(--text);
    font-size: 3rem;
    line-height: 1;
}

.dashboard-balance-details {
    display: grid;
    gap: 12px;
}

.dashboard-balance-details span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    color: #7b675d;
    font-weight: 800;
}

.dashboard-balance-details b {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-balance-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(216, 193, 183, 0.58);
}

.dashboard-balance-footer span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    color: #6f574d;
    font-weight: 900;
}

.dashboard-balance-footer b {
    color: var(--text);
    font-size: 1.25rem;
}

.contabil-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    gap: 14px;
    overflow: hidden;
}

.ops-shell--cozinha .ops-main.contabil-page {
    box-sizing: border-box;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.contabil-sticky-top {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: grid;
    gap: 8px;
}

.contabil-page .contabil-date-header {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(65, 45, 37, 0.10);
}

.contabil-page .dashboard-day-overview {
    width: 100%;
    gap: 8px;
}

.contabil-page .dashboard-day-rail {
    width: 100%;
    max-width: 760px;
    grid-template-columns: 210px 160px 210px;
    justify-content: center;
    gap: 10px;
}

.contabil-page .dashboard-side-day {
    min-height: 58px;
    padding: 9px 12px;
    border-radius: 14px;
    overflow: hidden;
}

.contabil-page .dashboard-side-day small,
.contabil-page .dashboard-side-day strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contabil-page .dashboard-date-center {
    width: 160px;
    gap: 3px;
}

.contabil-page .dashboard-weekday {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.contabil-page .dashboard-date-current {
    min-width: 74px;
    min-height: 48px;
    border-radius: 16px;
    font-size: 1.55rem;
}

.contabil-page .dashboard-date-center h1 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.05;
    white-space: nowrap;
}

.contabil-page .dashboard-date-summary {
    max-width: 160px;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contabil-page .dashboard-date-tools {
    gap: 6px;
}

.contabil-page .dashboard-date-tool {
    min-width: 64px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.7rem;
}

.contabil-page .ops-session-actions {
    position: static;
    align-self: start;
    gap: 8px;
    white-space: nowrap;
}

.contabil-page .ops-user-chip,
.contabil-page .ops-logout {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
}

.contabil-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 46px;
    padding: 6px;
    border: 1px solid rgba(216, 193, 183, 0.70);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 10px 26px rgba(65, 45, 37, 0.08);
}

.contabil-tab-summary {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex: 1 1 360px;
    min-width: 280px;
    max-width: 620px;
    margin-left: 2px;
}

.contabil-tab-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.contabil-icon-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fffdfa;
    font: inherit;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(65, 45, 37, 0.06);
}

.contabil-icon-action--entrada {
    background: #16834a;
}

.contabil-icon-action--saida {
    background: #b42318;
}

.contabil-icon-action:hover,
.contabil-icon-action:focus-visible {
    filter: brightness(0.94);
    color: #fffdfa;
    outline: none;
}

.contabil-tab-summary-item {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 34px;
    padding: 3px 10px;
    border-left: 1px solid rgba(216, 193, 183, 0.70);
}

.contabil-tab-summary-item small,
.contabil-tab-summary-item b {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contabil-tab-summary-item small {
    color: rgba(95, 75, 66, 0.72);
    font-size: 0.6rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.contabil-tab-summary-item b {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
}

.contabil-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(216, 193, 183, 0.78);
    border-radius: 999px;
    background: #fffdfa;
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.contabil-tab.is-active {
    color: #fffdfa;
    border-color: var(--text);
    background: var(--text);
}

.contabil-tab--settings {
    margin-left: auto;
    border-style: dashed;
}

.contabil-tab:disabled {
    color: rgba(95, 75, 66, 0.64);
    cursor: default;
    opacity: 0.82;
}

.contabil-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 46px;
}

.contabil-ledger-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.contabil-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(216, 193, 183, 0.58);
}

.contabil-card-account-summary {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    max-width: min(760px, 66%);
    margin-left: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.contabil-card-account-summary .contabil-tab-summary-item {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 32px;
    border-left: 1px solid rgba(216, 193, 183, 0.70);
}

.contabil-card-head h3 {
    margin: 0;
    color: var(--text);
}

.contabil-ledger-table {
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
}

.contabil-ledger-row {
    display: grid;
    grid-template-columns: 72px 132px 94px 180px 150px minmax(220px, 1fr) 126px;
    align-items: center;
    gap: 14px;
    min-width: 1010px;
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(216, 193, 183, 0.46);
}

.contabil-ledger-row--pedidos {
    grid-template-columns: 72px 132px 118px 210px 170px minmax(220px, 1fr) 126px;
}

.contabil-ledger-row > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contabil-ledger-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fffdfa;
    box-shadow: 0 1px 0 rgba(216, 193, 183, 0.46);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contabil-ledger-item {
    color: var(--text);
    text-decoration: none;
}

.contabil-ledger-item:hover,
.contabil-ledger-item:focus-visible {
    background: rgba(255, 106, 0, 0.06);
}

.contabil-ledger-item strong,
.contabil-ledger-item b {
    color: var(--text);
}

.contabil-ledger-item.is-entrada b {
    color: #16834a;
}

.contabil-ledger-item.is-saida b {
    color: #b42318;
}

.contabil-empty {
    min-height: 104px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--muted);
}

.contabil-ledger-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-width: 760px;
    min-height: 86px;
    border-top: 1px solid rgba(216, 193, 183, 0.76);
    background: #fff8f2;
}

.contabil-ledger-footer span {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-right: 1px solid rgba(216, 193, 183, 0.58);
    overflow: hidden;
}

.contabil-ledger-footer span:last-child {
    border-right: 0;
}

.contabil-ledger-footer small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contabil-ledger-footer b {
    color: var(--text);
    font-size: 1.18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contabil-modal-card {
    width: min(620px, 100%);
}

.contabil-modal-secondary-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 193, 183, 0.58);
}

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

.contabil-settings-grid h3 {
    margin: 0 0 10px;
    color: var(--text);
}

.contabil-settings-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contabil-settings-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(216, 193, 183, 0.58);
    border-radius: 12px;
    background: #fffdfa;
}

.contabil-settings-list b {
    color: var(--muted);
    font-size: 0.82rem;
}

.contabil-settings-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    width: 100%;
}

.contabil-settings-edit--category {
    grid-template-columns: minmax(0, 1fr) 128px auto;
}

.contabil-settings-edit .field {
    min-width: 0;
    margin: 0;
}

.contabil-settings-edit input,
.contabil-settings-edit select {
    min-height: 42px;
}

.contabil-settings-edit b {
    align-self: center;
    white-space: nowrap;
}

.contabil-settings-edit .ped-btn {
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .contabil-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .contabil-card-account-summary {
        justify-content: flex-start;
        max-width: none;
        margin-left: 0;
    }

    .contabil-modal-secondary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contabil-tab-summary {
        order: 2;
        flex-basis: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contabil-tab-actions {
        margin-left: 0;
    }

    .contabil-tab--settings {
        margin-left: 0;
    }

    .contabil-ledger-footer,
    .contabil-settings-grid {
        grid-template-columns: 1fr;
    }

    .contabil-ledger-footer span {
        border-right: 0;
        border-bottom: 1px solid rgba(216, 193, 183, 0.58);
    }

    .contabil-ledger-footer span:last-child {
        border-bottom: 0;
    }
}

.ops-kpi-card,
.ops-card,
.ops-insight {
    background: rgba(255, 253, 250, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(34, 19, 17, 0.07);
}

.ops-kpi-card {
    min-height: 0;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.dashboard-kpi-quadrants .ops-kpi-card.is-wide {
    grid-column: 1 / -1;
}

.ops-kpi-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ops-kpi-card strong {
    font-size: 2.65rem;
    line-height: 1;
    color: var(--text);
}

.ops-kpi-card .dashboard-kpi-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-kpi-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(216, 193, 183, 0.58);
}

.dashboard-kpi-split > div {
    min-width: 0;
}

.dashboard-kpi-split > div + div {
    padding-left: 14px;
    border-left: 1px solid rgba(216, 193, 183, 0.58);
}

.ops-kpi-card .dashboard-kpi-cost {
    color: #d43d3d;
    font-size: 1.05rem;
    font-weight: 900;
    white-space: nowrap;
}

.ops-kpi-card strong.is-down {
    color: #7b3023;
}

.ops-kpi-card strong.is-up {
    color: #2f6f4f;
}

.ops-kpi-card span {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.metrics-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-kpi-card .metrics-channel-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(255, 106, 0, 0.22);
    border-radius: 999px;
    background: #fff7ef;
    color: #7b3023;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.ops-kpi-card .metrics-channel-tag b {
    color: #221311;
    font-size: 0.9rem;
}

.ops-kpi-card .dashboard-card-detail {
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    color: var(--text-soft);
    font-weight: 700;
}

.dashboard-card-detail b {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-card-detail.is-muted {
    color: #8a766d;
    font-weight: 700;
}

.dashboard-card-detail.is-muted b {
    color: #6f574d;
    font-size: 0.94rem;
}

.dashboard-card-detail-values {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.dashboard-metric-pair {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    border: 1px solid rgba(216, 193, 183, 0.7);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.78);
    padding: 4px;
}

.dashboard-metric-pair span {
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 0;
    color: #6f574d;
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-metric-pair span + span {
    border-left: 1px solid rgba(216, 193, 183, 0.62);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.dashboard-metric-pair b {
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
}

.dashboard-card-detail-values small {
    color: #7b675d;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-card-detail-values em {
    color: #9b877d;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-card-footer {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(216, 193, 183, 0.58);
}

.dashboard-card-footer > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #6f574d;
    font-weight: 900;
}

.dashboard-card-footer b {
    color: var(--text);
    font-size: 1.08rem;
}

.dashboard-card-footer small {
    color: #9b877d;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.ops-kpi-card--discreet {
    background: rgba(255, 253, 250, 0.82);
    box-shadow: 0 8px 18px rgba(34, 19, 17, 0.045);
}

.ops-kpi-card--discreet .dashboard-kpi-value {
    color: #6f574d;
    font-size: 2rem;
}

.ops-kpi-card--discreet p,
.ops-kpi-card--discreet span {
    color: #7b675d;
}

.ops-kpi-card--fulfillment {
    position: relative;
    overflow: hidden;
    border-color: rgba(96, 68, 54, 0.18);
}

.ops-kpi-card--fulfillment::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--fulfillment-accent, #7b3023);
}

.ops-kpi-card--delivery {
    --fulfillment-accent: #2f6f4f;
    background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(240, 249, 244, 0.94));
}

.ops-kpi-card--pickup {
    --fulfillment-accent: #8c5a2b;
    background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(250, 242, 232, 0.94));
}

.metrics-fulfillment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.metrics-fulfillment-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--fulfillment-accent, var(--text));
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(96, 68, 54, 0.12);
}

.metrics-fulfillment-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.ops-kpi-card .metrics-fulfillment-caption {
    color: var(--text-soft);
}

.metrics-fulfillment-share {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(96, 68, 54, 0.12);
}

.metrics-fulfillment-share b {
    color: var(--fulfillment-accent, var(--text));
    font-size: 1.05rem;
    line-height: 1;
}

.metrics-fulfillment-share small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.ops-goal-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eae3dd;
    overflow: hidden;
}

.ops-goal-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff6a00, #ff9a3d);
}

.ops-chart-wrap {
    padding: 16px;
}

.ops-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ops-chart-head h3,
.ops-insight h3,
.ops-card h3 {
    margin: 8px 0 8px;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ops-chart-head p:last-child,
.ops-card > p:last-of-type {
    margin: 0;
    color: var(--text-soft);
}

.clientes-list-card {
    overflow-x: auto;
}

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

.clientes-table-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(80px, 0.45fr) minmax(150px, 0.8fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 760px;
    padding: 12px 0;
    border-bottom: 1px solid #eaded6;
    color: #5f4b42;
}

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

.clientes-table-row strong {
    color: #221311;
    font-weight: 900;
}

.clientes-table-head {
    padding-top: 0;
    color: #8b756b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cliente-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
    gap: 16px;
}

.cliente-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
}

.cliente-facts div,
.cliente-address-item {
    border: 1px solid #eaded6;
    border-radius: 14px;
    background: #fffdfa;
    padding: 12px;
}

.cliente-facts dt {
    color: #8b756b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cliente-facts dd {
    margin: 4px 0 0;
    color: #221311;
    font-size: 18px;
    font-weight: 900;
}

.cliente-name-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
}

.cliente-token-list,
.cliente-address-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.cliente-token-list code {
    display: block;
    overflow-wrap: anywhere;
    border-radius: 10px;
    background: #f8f0ec;
    padding: 8px 10px;
    color: #4e342e;
    font-size: 12px;
}

.cliente-address-item {
    display: grid;
    gap: 4px;
}

.cliente-address-item strong {
    color: #221311;
    font-weight: 900;
}

.cliente-address-item small,
.cliente-address-item span {
    color: #6f5a50;
}

.cliente-conflict-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.cliente-conflict-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #eaded6;
    border-radius: 16px;
    background: #fffdfa;
    padding: 14px;
}

.cliente-conflict-card strong,
.cliente-conflict-customers a {
    color: #221311;
    font-weight: 900;
}

.cliente-conflict-card span,
.cliente-conflict-card small {
    display: block;
    color: #6f5a50;
}

.cliente-conflict-customers {
    display: grid;
    gap: 6px;
}

.ops-period-pill {
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #fffdfa;
    padding: 10px 14px;
    min-width: 170px;
}

.ops-period-pill p {
    margin: 0;
    color: #8b6357;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.ops-period-pill strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    line-height: 1;
}

.ops-period-pill span {
    color: var(--text-soft);
}

.ops-chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-soft);
    margin: 10px 0 8px;
    font-weight: 600;
}

.ops-chart-legend i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.ops-chart-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff6a00;
}

.ops-chart-legend .line {
    width: 26px;
    border-top: 2px solid #ff6a00;
}

.ops-chart-stage {
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.9), rgba(246, 240, 237, 0.72));
    padding: 8px;
}

.ops-chart-stage svg {
    width: 100%;
    height: 280px;
    display: block;
}

.ops-chart-stage.is-compact svg {
    height: 220px;
}

.ops-insight {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, rgba(246, 240, 237, 0.75), rgba(255, 253, 250, 0.95));
}

.ops-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

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

.ops-order-card {
    background: rgba(255, 253, 250, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: grid;
    gap: 16px;
    position: relative;
}

.ops-order-topline,
.ops-order-header,
.ops-order-footer,
.ops-order-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ops-order-topline-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    padding-right: 260px;
}

.ops-order-code {
    margin: 0;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 800;
}

.ops-order-header h3,
.ops-order-total strong {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.ops-order-header p,
.ops-order-total span,
.ops-order-note p:last-child,
.ops-order-hint {
    margin: 0;
    color: var(--text-soft);
}

.ops-order-total {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.ops-order-total span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.ops-order-total strong {
    color: var(--brand);
}

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

.ops-order-meta-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.9), rgba(246, 240, 237, 0.82));
    padding: 12px 13px;
    display: grid;
    gap: 5px;
}

.ops-order-meta-card span {
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.ops-order-meta-card strong {
    font-size: 0.97rem;
    line-height: 1.4;
}

.ops-order-meta-card--wide {
    grid-column: 1 / -1;
}

.ops-order-block,
.ops-order-note {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(246, 240, 237, 0.58);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.ops-order-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ops-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ops-order-item {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216, 193, 183, 0.5);
}

.ops-order-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ops-order-item strong,
.ops-order-item span {
    font-size: 0.96rem;
}

.ops-order-item small {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
}

.ops-order-links {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.ops-order-hint {
    max-width: 220px;
    text-align: right;
    font-size: 0.84rem;
}

.ops-order-empty {
    grid-column: 1 / -1;
}

.ops-card {
    padding: 18px;
}

.ops-card h3 {
    margin-top: 5px;
    font-size: 1.18rem;
    line-height: 1.2;
}

.ops-ranking-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ops-ranking-list li {
    border: 1px solid rgba(216, 193, 183, 0.72);
    border-radius: 13px;
    background: linear-gradient(180deg, #fffdfa 0%, #fbf6f1 100%);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.ops-ranking-list li span {
    color: #ff6a00;
    font-weight: 800;
    min-width: 0;
}

.ops-ranking-list li strong {
    color: #5f4b42;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ops-ranking-list li b {
    min-width: 40px;
    font-size: 1.45rem;
    line-height: 1;
    color: #221311;
    text-align: right;
}

.ops-ranking-list li.is-empty {
    grid-template-columns: 1fr;
    color: var(--text-soft);
}

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

.dashboard-channel-grid--kpi {
    margin-top: 0;
}

.dashboard-channel-label {
    color: #7b675d;
    font-size: 0.78rem;
    font-weight: 900;
}

.dashboard-channel-mini-card {
    border: 1px solid rgba(216, 193, 183, 0.72);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdfa 0%, #fbf6f1 100%);
    padding: 8px 10px;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-channel-mini-card.is-primary {
    border-color: rgba(255, 106, 0, 0.72);
    background: linear-gradient(180deg, #fff7ef 0%, #fffdfa 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.14);
}

.dashboard-channel-mini-card span {
    color: #ff6a00;
    font-size: 0.78rem;
    font-weight: 900;
}

.dashboard-channel-mini-card strong {
    color: #221311;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-sales-card {
    position: relative;
    grid-template-columns: minmax(112px, 0.58fr) minmax(190px, 1.42fr);
    gap: 7px;
    padding: 10px 12px 12px;
    min-height: unset;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 247, 239, 0.86) 0%, rgba(255, 253, 250, 0.98) 44%, rgba(251, 246, 241, 0.96) 100%);
    border-color: rgba(216, 193, 183, 0.86);
    box-shadow: 0 18px 44px rgba(34, 19, 17, 0.1);
}

.dashboard-sales-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #ff6a00 0%, rgba(255, 106, 0, 0.16) 72%, transparent 100%);
}

.dashboard-sales-head,
.dashboard-sales-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-sales-head {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-bottom: -4px;
}

.dashboard-sales-kicker {
    color: #2a1a17 !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

.dashboard-sales-head span,
.dashboard-sales-section-title small {
    color: #8c786d;
    font-size: 0.66rem;
    font-weight: 800;
}

.dashboard-sales-section-title small {
    display: none;
}

.dashboard-sales-hero {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    justify-content: center;
    gap: 0;
    min-height: unset;
    padding: 8px 10px;
    border: 1px solid rgba(255, 106, 0, 0.16);
    border-radius: 13px;
    background: linear-gradient(135deg, #fffdfa 0%, #fff3e7 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.dashboard-sales-value {
    display: block !important;
    color: #221311 !important;
    font-size: clamp(3rem, 4.4vw, 4rem) !important;
    font-weight: 950;
    line-height: 0.9 !important;
}

.dashboard-sales-hero span {
    color: #7b3023;
    margin-top: 2px;
    font-size: 0.64rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-sales-section {
    display: grid;
    gap: 4px;
    min-height: unset;
    padding: 7px 9px;
    border: 1px solid rgba(216, 193, 183, 0.7);
    border-radius: 11px;
    background: rgba(255, 253, 250, 0.72);
}

.dashboard-sales-section--channels {
    grid-column: 1 / -1;
}

.dashboard-sales-section-title span {
    color: #2a1a17;
    font-size: 0.72rem;
    font-weight: 950;
}

.dashboard-sales-meal-list {
    display: grid;
    gap: 0;
}

.dashboard-sales-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 19px;
    padding: 1px 0;
    border-top: 1px solid rgba(234, 223, 217, 0.8);
}

.dashboard-sales-row:first-child {
    border-top: 0;
}

.dashboard-sales-row span {
    color: #6f5a50;
    font-size: 0.72rem;
    font-weight: 850;
}

.dashboard-sales-row b {
    color: #221311;
    font-size: 0.94rem;
    font-weight: 950;
}

.dashboard-sales-row--produced {
    margin-bottom: 3px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-radius: 9px;
    background: linear-gradient(90deg, #fff3e7 0%, rgba(255, 253, 250, 0.92) 100%);
}

.dashboard-sales-row--produced span,
.dashboard-sales-row--out span {
    color: #2a1a17;
    font-weight: 950;
}

.dashboard-sales-row--produced b {
    color: #7b3023;
    font-size: 1.04rem;
}

.dashboard-sales-row--out {
    min-height: 22px;
    margin-top: 1px;
    border-top-color: rgba(216, 193, 183, 0.92);
}

.dashboard-sales-row--out b {
    font-size: 1rem;
}

.dashboard-sales-row--nested {
    position: relative;
    padding-left: 20px;
    border-top-color: rgba(234, 223, 217, 0.52);
}

.dashboard-sales-row--nested::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.34);
}

.dashboard-sales-row--nested span {
    color: #806b60;
    font-size: 0.68rem;
}

.dashboard-sales-row--nested b {
    font-size: 0.86rem;
}

.dashboard-sales-row--closing {
    margin-top: 4px;
    border-top-color: rgba(216, 193, 183, 0.92);
}

.dashboard-sales-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.dashboard-sales-order-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-width: 0;
    min-height: unset;
    padding: 5px 7px;
    border: 1px solid rgba(216, 193, 183, 0.72);
    border-radius: 10px;
    background: #fbf6f1;
}

.dashboard-sales-order-pill small {
    color: #7c675c;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.15;
}

.dashboard-sales-order-pill b {
    color: #221311;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1;
}

.dashboard-sales-channel-grid {
    gap: 5px;
}

.dashboard-sales-channel {
    min-height: 34px;
    padding: 5px 7px;
    border-radius: 10px;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.dashboard-sales-channel span {
    color: #6f5a50;
    font-size: 0.58rem;
    font-weight: 950;
}

.dashboard-sales-channel strong {
    font-size: 1.08rem;
    font-weight: 950;
}

.dashboard-sales-channel.is-primary {
    border-color: rgba(255, 106, 0, 0.54);
    background: linear-gradient(180deg, #fff5ea 0%, #fffdfa 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.12), 0 10px 22px rgba(255, 106, 0, 0.08);
}

.dashboard-orders-card {
    gap: 8px;
    padding: 10px 12px 12px;
    overflow: hidden;
}

.dashboard-orders-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(216, 193, 183, 0.7);
    border-radius: 11px;
    background: linear-gradient(135deg, #fffdfa 0%, #fbf6f1 100%);
}

.dashboard-orders-hero strong {
    color: #221311;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 950;
    line-height: 0.9;
}

.dashboard-orders-hero span {
    color: #7b3023;
    font-size: 0.66rem;
    font-weight: 950;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.dashboard-production-card .checkout-form {
    margin-top: 14px;
    gap: 12px;
}

.dashboard-production-card .field {
    gap: 7px;
}

.dashboard-production-card .field span {
    color: #6f574d;
    font-size: 0.84rem;
    font-weight: 800;
}

.dashboard-production-card .field input {
    min-height: 48px;
    border-color: rgba(216, 193, 183, 0.92);
    border-radius: 13px;
    background: #fffdfa;
    font-size: 1.02rem;
    font-weight: 700;
}

.dashboard-production-card .field input:focus {
    border-color: #ff8a2a;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
    outline: none;
}

.dashboard-production-card .primary-button {
    min-height: 50px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(78, 52, 46, 0.18);
}

.dashboard-production-card .primary-button:hover,
.dashboard-production-card .primary-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(78, 52, 46, 0.22);
}

.hidden {
    display: none;
}

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

    .quality-marquee-track {
        justify-content: center;
        transform: translateX(0);
    }
}

@media (max-width: 1180px) {
    .ops-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-balance-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .ops-orders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    [data-page="cardapio"] .menu-feature-band {
        --menu-feature-safe-right: clamp(56px, 9vw, 88px);
        grid-template-columns: 138px 156px;
        gap: 10px;
        padding: 18px var(--menu-feature-safe-right) 18px 0;
    }

    [data-page="cardapio"] .menu-feature-title {
        width: 138px;
        min-width: 138px;
        padding-left: 14px;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: clamp(1.7rem, 6vw, 2.6rem);
    }

    [data-page="cardapio"] .dish-card {
        flex-basis: 156px;
        width: 156px;
    }

    [data-page="cardapio"] .dish-body {
        padding: 12px;
    }

    [data-page="cardapio"] .dish-body p {
        font-size: 0.8rem;
    }

    [data-page="cardapio"] .dish-qty-badge {
        min-height: 20px;
        padding: 1px 2px;
        gap: 2px;
    }

    [data-page="cardapio"] .dish-qty-badge button {
        width: 13px;
        height: 13px;
        font-size: 0.56rem;
    }

    [data-page="cardapio"] .dish-qty-badge strong {
        min-width: 8px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-price-badge {
        min-height: 20px;
        padding: 2px 5px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-top-badges {
        top: 5px;
        left: 5px;
        right: 5px;
        gap: 3px;
    }

    .ops-shell {
        grid-template-columns: 1fr;
    }

    .ops-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .ops-main {
        padding: 14px;
    }

    .ops-heatmap-layout {
        grid-template-columns: 1fr;
    }

    .ops-session,
    .ops-heatmap-head,
    .ops-chart-head,
    .ops-insight,
    .ops-order-header,
    .ops-order-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .dashboard-sales-head,
    .dashboard-sales-section--channels {
        grid-column: auto;
    }

    .dashboard-sales-hero {
        grid-row: auto;
    }

    .dashboard-day-header {
        gap: 12px;
        min-height: 0;
        padding-top: 18px;
    }

    .dashboard-day-rail {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-date-center {
        order: -1;
    }

    .dashboard-side-day,
    .dashboard-side-day:last-child {
        text-align: center;
    }

    .ops-session-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .dashboard-day-header .ops-session-actions {
        position: static;
        right: auto;
        top: auto;
    }

    .ops-order-total,
    .ops-order-links {
        justify-items: start;
    }

    .ops-order-hint {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 1180px) {
    .contabil-page .contabil-date-header {
        grid-template-columns: 1fr;
    }

    .contabil-page .dashboard-day-rail {
        grid-template-columns: minmax(170px, 1fr) 150px minmax(170px, 1fr);
        max-width: none;
    }

    .contabil-page .ops-session-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 940px) {
    .contabil-sticky-top {
        position: static;
    }

    .contabil-page .dashboard-day-rail {
        grid-template-columns: 1fr;
    }

    .contabil-page .dashboard-date-center {
        order: -1;
        width: 100%;
    }

    .contabil-page .dashboard-date-summary {
        max-width: 100%;
    }

    .contabil-page .dashboard-side-day,
    .contabil-page .dashboard-side-day:last-child {
        text-align: center;
    }

    .contabil-page .ops-session-actions {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .dashboard-kpi-quadrants {
        grid-template-columns: 1fr;
    }

    .dashboard-sales-card {
        padding: 10px;
        gap: 7px;
    }

    .dashboard-sales-head {
        display: grid;
        gap: 2px;
    }

    .dashboard-sales-hero {
        padding: 9px 10px;
    }

    .dashboard-sales-order-grid,
    .dashboard-sales-channel-grid {
        grid-template-columns: 1fr;
    }

    [data-page="cardapio"] .menu-feature-band {
        --menu-feature-safe-right: 34px;
        --menu-feature-safe-left: 22px;
        grid-template-columns: 106px minmax(0, 136px);
        gap: 8px;
        padding: 12px var(--menu-feature-safe-right) 12px var(--menu-feature-safe-left);
        width: 100%;
        max-width: 100%;
        align-items: center;
        overflow: hidden;
        justify-content: start;
    }

    [data-page="cardapio"] .menu-feature-shape {
        left: 0;
        right: auto;
        width: auto;
        height: 100%;
        object-fit: initial;
        object-position: initial;
    }

    [data-page="cardapio"] .menu-feature-title {
        width: 106px;
        padding-left: 0;
        align-self: center;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: clamp(1.05rem, 4.9vw, 1.38rem);
        line-height: 0.92;
    }

    [data-page="cardapio"] .menu-feature-card-wrap {
        width: 136px;
        max-width: 136px;
        overflow-x: visible;
        overflow-y: visible;
        align-self: center;
        justify-self: start;
    }

    [data-page="cardapio"] .dish-card {
        flex-basis: 136px;
        width: 136px;
    }

    [data-page="cardapio"] .dish-media {
        aspect-ratio: 1.18 / 0.62;
    }

    [data-page="cardapio"] .dish-body {
        padding: 8px;
        gap: 5px;
    }

    [data-page="cardapio"] .dish-body h2 {
        font-size: 0.8rem;
    }

    [data-page="cardapio"] .dish-body p {
        font-size: 0.68rem;
        line-height: 1.28;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    [data-page="cardapio"] .dish-qty-badge {
        min-height: 20px;
        padding: 1px;
        gap: 2px;
    }

    [data-page="cardapio"] .dish-qty-badge button {
        width: 13px;
        height: 13px;
        font-size: 0.56rem;
    }

    [data-page="cardapio"] .dish-qty-badge strong {
        min-width: 8px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-price-badge {
        min-height: 20px;
        padding: 2px 5px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-top-badges {
        top: 5px;
        left: 5px;
        right: 5px;
        gap: 3px;
    }

    [data-page="cardapio"] .dish-add-button--footer {
        min-height: 34px;
        font-size: 0.78rem;
    }

    .checkout-stage-actions--capsule {
        padding: 5px;
    }

    .checkout-stage-actions--capsule .primary-button,
    .checkout-stage-actions--capsule .secondary-pill {
        min-height: 52px;
        padding-inline: 10px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .checkout-stage-actions--capsule .checkout-mode-button svg {
        width: 18px;
        height: 18px;
    }

    [data-page="carrinho"] {
        padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    }

    [data-page="carrinho"] .checkout-fixed-actions {
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        width: min(calc(100% - 24px), 390px);
    }

    .ops-nav {
        grid-template-columns: 1fr;
    }

    .ops-kpis {
        grid-template-columns: 1fr;
    }

    .ops-chart-stage svg {
        height: 240px;
    }

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

@media (max-width: 420px) {
    [data-page="cardapio"] .menu-feature-band {
        --menu-feature-safe-left: 18px;
        --menu-feature-safe-right: 24px;
        grid-template-columns: 92px minmax(0, 128px);
        gap: 8px;
        padding: 10px var(--menu-feature-safe-right) 10px var(--menu-feature-safe-left);
    }

    [data-page="cardapio"] .menu-feature-title {
        width: 92px;
        padding-left: 0;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: 0.96rem;
        line-height: 0.94;
    }

    [data-page="cardapio"] .dish-card {
        flex-basis: 128px;
        width: 128px;
    }

    [data-page="cardapio"] .menu-feature-card-wrap {
        width: 128px;
        max-width: 128px;
    }

    [data-page="cardapio"] .dish-body {
        padding: 7px;
    }

    [data-page="cardapio"] .dish-body h2 {
        font-size: 0.76rem;
    }

    [data-page="cardapio"] .dish-body p {
        font-size: 0.64rem;
        line-height: 1.24;
    }

    [data-page="cardapio"] .dish-add-button--footer {
        min-height: 32px;
        font-size: 0.74rem;
    }
}

@media (min-width: 720px) {
    .hero {
        padding: 12px 22px;
        min-height: 82px;
    }

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

    .bebidas-grid {
        grid-template-columns: repeat(3, minmax(0, 117px));
    }

    .checkout-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

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

    .address-grid {
        grid-template-columns: 0.38fr 0.62fr;
    }

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

    .management-grid {
        grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
        align-items: start;
    }

    .checkout-item {
        padding: 14px;
    }

    .checkout-item-media {
        width: 94px;
        min-width: 94px;
        height: 94px;
    }

    .checkout-summary-panel {
        padding: 20px 20px 18px;
    }
}

@media (min-width: 1040px) {
    .layout {
        width: min(1160px, calc(100% - 72px));
        padding: 12px 0 48px;
    }

    .layout.public-layout {
        width: min(1160px, calc(100% - 72px));
    }

    [data-page="checkout"] {
        padding-top: 4px;
        padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
    }

    [data-page="checkout"] .context-header,
    [data-page="carrinho"] .context-header {
        min-height: 52px;
    }

    [data-page="checkout"] .brand-header-logo img,
    [data-page="carrinho"] .brand-header-logo img {
        width: 60px;
    }

    [data-page="checkout"] .panel {
        padding: 14px;
    }

    .layout.narrow {
        width: min(1040px, calc(100% - 72px));
    }

    .layout.wide {
        width: min(1240px, calc(100% - 72px));
    }

    .site-topbar {
        padding-top: 14px;
    }

    .site-topbar-logo {
        width: 58px;
        height: 58px;
    }

    .site-topbar-logo img {
        width: 30px;
        height: 30px;
    }

    .hero,
    .simple-header {
        padding: 22px 24px;
    }

    .hero,
    .brand-header {
        padding: 10px 24px;
        min-height: 48px;
    }

    .profile-chip {
        left: 24px;
    }

    .hero-logo {
        width: 228px;
    }

    .brand-header-logo img {
        width: 78px;
        height: auto;
    }

    .context-header-label {
        font-size: 0.92rem;
    }

    .cart-dock {
        width: min(380px, calc(100% - 44px));
        bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }

    .menu-intro {
        padding: 8px 4px 2px;
        max-width: 760px;
    }

    .display-title,
    .menu-intro h1,
    .simple-header h1,
    .success-card h1 {
        font-size: clamp(2.35rem, 3vw, 3rem);
    }

    .menu-intro p:last-child,
    .simple-header p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .menu-promo-card {
        width: min(680px, 100%);
        gap: 8px;
        padding: 13px 15px;
        border-radius: 18px;
    }

    .menu-promo-copy p:last-child {
        font-size: 0.9rem;
    }

    .dish-media {
        aspect-ratio: 1.24 / 1;
    }

    .dish-body {
        padding: 18px;
        gap: 14px;
    }

    .dish-body h2,
    .panel h2,
    .success-summary h2,
    .kitchen-card h2,
    .modal-content h2 {
        font-size: 1.08rem;
    }

    .dish-body p,
    .kitchen-meta p,
    .kitchen-note,
    .summary-list p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .primary-button,
    .cart-chip,
    .secondary-pill,
    .status-button {
        font-size: 0.95rem;
    }

    .panel,
    .success-summary,
    .kitchen-card {
        padding: 20px;
        border-radius: 22px;
    }

    .field input,
    .field textarea {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .primary-button {
        padding: 13px 18px;
        border-radius: 16px;
    }

    .order-modal-card .modal-content h2 {
        font-size: 0.98rem;
    }

    .order-modal-card .field textarea {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .order-modal-card .primary-button {
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    .cart-chip,
    .secondary-pill {
        padding: 10px 14px;
    }

    .menu-grid,
    .kitchen-grid,
    .checkout-grid {
        gap: 18px;
        margin-top: 20px;
    }

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

    .bebidas-grid {
        grid-template-columns: repeat(4, minmax(0, 117px));
    }

    [data-page="cardapio"] .menu-grid {
        justify-items: start;
    }

    [data-page="cardapio"] .bebidas-grid {
        justify-items: stretch;
    }

    [data-page="cardapio"] .menu-feature-band {
        grid-template-columns: 220px 180px;
        gap: 16px;
        --menu-feature-safe-right: clamp(120px, 10vw, 172px);
        padding: 24px var(--menu-feature-safe-right) 24px 0;
        width: fit-content;
        max-width: 100%;
    }

    [data-page="cardapio"] .menu-feature-title {
        width: 220px;
        min-width: 220px;
        padding-left: 22px;
        align-self: center;
    }

    [data-page="cardapio"] .dish-card {
        width: 180px;
    }

    [data-page="cardapio"] .dish-media {
        aspect-ratio: 1.1 / 0.86;
    }

    [data-page="cardapio"] .dish-body {
        padding: 12px;
        gap: 8px;
    }

    [data-page="cardapio"] .dish-add-combo {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    [data-page="cardapio"] .dish-body h2 {
        font-size: 0.88rem;
    }

    [data-page="cardapio"] .dish-body p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    [data-page="cardapio"] {
        padding-bottom: 120px;
    }

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

    .simple-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
    }

    .brand-header {
        padding: 0;
    }

    .simple-header > div {
        max-width: 700px;
    }

    .management-form-panel {
        position: sticky;
        top: 24px;
    }

    .checkout-grid {
        grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
        align-items: start;
    }

    .checkout-grid > .panel:first-child {
        position: sticky;
        top: 24px;
    }

    .checkout-summary-panel {
        padding: 20px 20px 18px;
    }

    .checkout-summary-panel .checkout-item {
        padding: 16px;
    }

    .checkout-item {
        padding: 16px;
        gap: 14px;
    }

    .checkout-item-body {
        padding-bottom: 6px;
    }

    .checkout-item-media {
        width: 96px;
        min-width: 96px;
        height: 96px;
    }

    .checkout-item-note-wrap {
        margin-left: 110px;
    }

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

    .address-grid {
        grid-template-columns: 0.34fr 0.66fr;
    }

    .status-actions {
        gap: 10px;
    }

    .status-button {
        padding: 9px 12px;
    }

    .checkout-item {
        padding: 16px;
    }

    .checkout-item-title {
        font-size: 1.04rem;
    }

    .checkout-grid {
        grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
    }

    .checkout-summary-panel .checkout-total strong { font-size: 1.68rem; }
}

@media (min-width: 1280px) {
    .layout {
        width: min(1220px, calc(100% - 88px));
    }

    .layout.narrow {
        width: min(1080px, calc(100% - 88px));
    }

    .layout.wide {
        width: min(1320px, calc(100% - 88px));
    }

    .hero {
        padding: 10px 28px;
        min-height: 88px;
    }

    .profile-chip {
        left: 28px;
    }

    .hero-logo {
        width: 244px;
    }

    .menu-grid {
        gap: 20px;
    }

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

/* Cozinha - layout operacional premium */
.ops-shell.ops-shell--cozinha {
    min-height: 100dvh;
    background: linear-gradient(180deg, #fbfaf8 0%, #f4f1ee 100%);
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    overflow: visible;
}

.ops-shell--cozinha .ops-sidebar {
    position: sticky;
    top: 0;
    width: 250px;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px;
    background: linear-gradient(180deg, #5d3a32 0%, #3c241f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
}

.ops-shell--cozinha .ops-brand {
    margin-bottom: 22px;
}

.ops-shell--cozinha .ops-brand img {
    width: 96px;
    max-width: 100%;
    height: auto;
}

.ops-shell--cozinha .ops-nav {
    gap: 8px;
    align-content: start;
    grid-auto-rows: max-content;
}

.ops-shell--cozinha .ops-nav-item {
    position: relative;
    gap: 9px;
    border-radius: 14px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.84);
    background: transparent;
    font-weight: 650;
}

.ops-shell--cozinha .ops-nav-item .ops-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    flex: 0 0 auto;
}

.ops-shell--cozinha .ops-nav-item .ops-nav-icon {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 0;
    color: currentColor;
}

.ops-shell--cozinha .ops-nav-item .ops-nav-icon svg path { fill: currentColor; }

.ops-shell--cozinha .ops-nav-item:hover,
.ops-shell--cozinha .ops-nav-item:focus-visible {
    background: rgba(255, 253, 250, 0.12);
    color: #fffdfa;
}

.ops-shell--cozinha .ops-nav-item.is-active {
    background: #fffdfa;
    color: #3d2621;
    box-shadow: 0 8px 20px rgba(34, 19, 17, 0.16);
}

.ops-shell--cozinha .ops-nav-item.is-active .ops-nav-dot { background: #ff6a00; }

.ops-shell--cozinha .ops-main {
    min-height: 100dvh;
    padding: 18px 24px 30px;
    overflow: visible;
    background: transparent;
    gap: 16px;
}

.ops-shell--cozinha .ops-session {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #eae3dd;
    background: linear-gradient(180deg, #fffdfa 0%, #fbf6f1 100%);
    box-shadow: 0 14px 32px rgba(34, 19, 17, 0.07);
}

.ops-shell--cozinha .ops-session-kicker,
.ops-shell--cozinha .ops-kicker {
    color: #7c675c;
    letter-spacing: 0.22em;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-shell--cozinha .ops-session h1 {
    margin: 0;
    color: #221311;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ops-shell--cozinha .ops-session-description {
    color: #5f4b42;
    font-size: 14px;
}

.ops-shell--cozinha .ops-session--catalog {
    min-height: 0;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
}

.ops-shell--cozinha .ops-session--catalog h1 {
    max-width: 860px;
    font-size: 26px;
}

.ops-shell--cozinha .ops-session--catalog .ops-session-description {
    max-width: 760px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
}

.ops-shell--cozinha .ops-user-chip,
.ops-shell--cozinha .ops-logout {
    border-radius: 999px;
    border: 1px solid #d6cbc2;
    background: #fffdfa;
    color: #5f4b42;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
}

.ops-shell--cozinha .ops-logout:hover,
.ops-shell--cozinha .ops-logout:focus-visible {
    border-color: #4e342e;
    color: #4e342e;
}

.ops-shell--cozinha .ops-headline { margin-top: 16px; margin-bottom: 6px; }

.ops-shell--cozinha .ops-headline h2 {
    color: #221311;
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    margin-top: 8px;
}

.ops-shell--cozinha .ops-headline p:last-child {
    margin-top: 8px;
    max-width: 900px;
    color: #5f4b42;
    font-size: 15px;
    line-height: 1.52;
}

.ops-shell--cozinha .ops-orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ops-shell--cozinha .ops-order-card {
    border-radius: 24px;
    border: 1px solid #eae3dd;
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
    padding: 18px;
    gap: 16px;
}

.ops-shell--cozinha .ops-order-code {
    color: #4e342e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ops-shell--cozinha .status-badge {
    border-radius: 999px;
    background: #f6f0ed;
    border: 1px solid #d6cbc2;
    color: #3d2621;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.ops-shell--cozinha .ops-order-header h3 {
    color: #221311;
    font-size: 25px;
    font-weight: 800;
}

.ops-shell--cozinha .ops-order-header p { color: #5f4b42; font-size: 13px; }

.ops-shell--cozinha .ops-order-total { text-align: right; }

.ops-shell--cozinha .ops-order-total span {
    color: #7c675c;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.ops-shell--cozinha .ops-order-total strong {
    color: #4e342e;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
}

.ops-shell--cozinha .ops-order-meta-grid { gap: 10px; }

.ops-shell--cozinha .ops-order-meta-card {
    border-radius: 16px;
    padding: 12px 13px;
    border: 1px solid #eae3dd;
    background: linear-gradient(180deg, #fffdfa 0%, #f9f2ee 100%);
}

.ops-shell--cozinha .ops-order-meta-card span {
    color: #7c675c;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

.ops-shell--cozinha .ops-order-meta-card strong {
    margin-top: 5px;
    color: #221311;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.ops-shell--cozinha .ops-order-block,
.ops-shell--cozinha .ops-order-note {
    border-radius: 18px;
    border: 1px solid #e4dbd5;
    background: #f6f0ed;
    padding: 14px;
}

.ops-shell--cozinha .ops-order-items { margin-top: 8px; }

.ops-shell--cozinha .ops-order-item {
    padding: 10px 0;
    border-bottom: 1px solid #dfd2ca;
}

.ops-shell--cozinha .ops-order-item:last-child { border-bottom: 0; }

.ops-shell--cozinha .ops-order-item strong {
    color: #221311;
    font-size: 14px;
    font-weight: 800;
}

.ops-shell--cozinha .ops-order-item span {
    color: #3d2621;
    font-size: 14px;
    font-weight: 800;
}

.ops-shell--cozinha .ops-order-item small { color: #6b544a; margin-top: 4px; font-size: 12px; }

.ops-shell--cozinha .ops-order-note p:last-child { font-size: 13px; line-height: 1.45; }

.ops-shell--cozinha .ops-order-footer { align-items: flex-end; }

.ops-shell--cozinha .status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-shell--cozinha .status-button {
    border-radius: 999px;
    border: 1px solid #d9ccc2;
    background: #fffdfa;
    color: #302621;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 11px;
}

.ops-shell--cozinha .status-button.is-active {
    border-color: #4e342e;
    background: #4e342e;
    color: #fffdfa;
}

.ops-shell--cozinha .ops-order-links { align-items: flex-end; }

.ops-shell--cozinha .secondary-pill.compact {
    border-radius: 999px;
    border: 1px solid #d6cbc2;
    background: #fffdfa;
    color: #4a342d;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 13px;
}

.ops-shell--cozinha .secondary-pill.compact:hover,
.ops-shell--cozinha .secondary-pill.compact:focus-visible {
    border-color: #4e342e;
    color: #4e342e;
}

.ops-shell--cozinha .ops-order-hint { color: #7c675c; font-size: 11px; }

@media (max-width: 1180px) {
    .ops-shell.ops-shell--cozinha { grid-template-columns: 220px minmax(0, 1fr); }
    .ops-shell--cozinha .ops-orders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    .ops-shell.ops-shell--cozinha {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ops-shell--cozinha .ops-sidebar {
        position: static;
        height: auto;
        min-height: 0;
        overflow: visible;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ops-shell--cozinha .ops-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) and (min-width: 941px) {
    [data-page="cardapio"] .menu-feature-band {
        --menu-feature-safe-right: 152px;
        grid-template-columns: 168px 168px;
        gap: 12px;
        padding: 18px var(--menu-feature-safe-right) 18px 0;
    }

    [data-page="cardapio"] .menu-feature-title {
        width: 168px;
        padding-left: 18px;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: 2.7rem;
    }

    [data-page="cardapio"] .dish-card {
        flex-basis: 168px;
        width: 168px;
    }

    [data-page="cardapio"] .dish-qty-badge {
        min-height: 22px;
        padding: 1px 3px;
        gap: 2px;
    }

    [data-page="cardapio"] .dish-qty-badge button {
        width: 14px;
        height: 14px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-qty-badge strong {
        min-width: 8px;
        font-size: 0.58rem;
    }

    [data-page="cardapio"] .dish-price-badge {
        min-height: 22px;
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    [data-page="cardapio"] .dish-top-badges {
        top: 6px;
        left: 6px;
        right: 6px;
        gap: 3px;
    }
}

@media (max-width: 640px) {
    .ops-shell--cozinha .ops-main { padding: 14px; }

    .ops-shell--cozinha .ops-session {
        padding: 14px;
    }

    .ops-shell--cozinha .ops-session h1 {
        font-size: 25px;
    }

    .dashboard-day-rail {
        width: 100%;
    }

    .dashboard-side-day {
        min-height: 64px;
        padding: 9px 10px;
    }

    .dashboard-side-day strong {
        font-size: 0.72rem;
    }

    .dashboard-date-current {
        min-width: 112px;
        min-height: 58px;
        font-size: 1.8rem;
    }

    .dashboard-week-strip {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        grid-template-columns: repeat(7, minmax(74px, 1fr));
    }

    .closed-date-panel {
        margin-inline: -2px;
        padding: 10px;
        border-radius: 14px;
    }

    .closed-date-main {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 7px;
    }

    .closed-date-arrow,
    .closed-date-today,
    .closed-date-picker button,
    .closed-date-picker input {
        min-height: 44px;
        border-radius: 12px;
    }

    .closed-date-current {
        min-height: 64px;
        padding: 8px 10px;
        border-radius: 13px;
    }

    .closed-date-current strong {
        font-size: 1.25rem;
    }

    .closed-date-summary {
        grid-template-columns: 1fr 1fr;
    }

    .ops-kpis {
        grid-template-columns: 1fr;
    }

    .ops-kpi-card {
        min-height: 128px;
    }

    .ops-ranking-list li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ops-ranking-list li strong {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .catalog-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .ops-shell--cozinha .ops-session,
    .ops-shell--cozinha .ops-order-header,
    .ops-shell--cozinha .ops-order-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ops-shell--cozinha .ops-order-total,
    .ops-shell--cozinha .ops-order-links {
        width: 100%;
        text-align: left;
        align-items: flex-start;
    }

    .ops-shell--cozinha .ops-order-meta-grid { grid-template-columns: 1fr; }
}

/* Cozinha live */
.cozinha-live {
    gap: 12px;
    align-content: start !important;
    align-items: start !important;
    grid-auto-rows: max-content !important;
}

.coz-live-top {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr) 144px;
    gap: 12px;
    align-items: stretch;
    grid-auto-rows: 142px !important;
}

.coz-live-metric,
.coz-live-clock,
.coz-live-board {
    background: #fffdfa;
    border: 1px solid #eae3dd;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
}

.coz-live-metric {
    min-height: 142px !important;
    height: 142px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    overflow: hidden;
}

.coz-live-metric p {
    font-size: 11px !important;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    color: #7c675c;
    width: 100%;
    text-align: center;
}

.coz-live-metric strong {
    font-size: 48px !important;
    line-height: 1;
    color: #221311;
    font-weight: 800;
    width: 100%;
    text-align: center;
}

#coz-producao,
#coz-producao + *,
#coz-producao-label {
    text-align: center !important;
}

.coz-live-clock {
    min-height: 142px !important;
    height: 142px !important;
    display: grid;
    place-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 18px;
    overflow: hidden;
    position: relative;
}

.coz-fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #dfd3cc;
    background: #f8f2ef;
    color: #4e342e;
    cursor: pointer;
}

.coz-fullscreen-toggle span,
.coz-fullscreen-toggle span::before,
.coz-fullscreen-toggle span::after {
    position: absolute;
    inset: 9px;
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
}

.coz-fullscreen-toggle span::before,
.coz-fullscreen-toggle span::after {
    inset: 3px;
    border-width: 0;
    background: currentColor;
}

.coz-fullscreen-toggle span::before {
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.coz-fullscreen-toggle span::after {
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.coz-live-clock p {
    color: #7c675c;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.coz-live-clock strong {
    margin-top: 6px;
    font-size: clamp(52px, 4.6vw, 68px) !important;
    line-height: 0.98;
    color: #221311;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    margin-bottom: 0;
}

.coz-live-board {
    min-height: 300px;
    padding: 14px;
    margin-top: 0;
    min-width: 0;
}

#coz-lista {
    min-width: 0;
}

.coz-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.coz-live-item {
    border: 1px solid #e3d8d1;
    border-radius: 16px;
    background: #f8f2ef;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.coz-live-item span {
    color: #221311;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.coz-live-item strong {
    color: #4e342e;
    font-size: 22px;
    font-weight: 800;
}

.coz-live-orders-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.coz-prod-card {
    border: 1px solid #e6ddd7;
    border-radius: 24px;
    background: #fffdfa;
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
    padding: 16px;
    position: relative;
    min-width: 0;
}

.coz-prod-card-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-right: 160px;
}

.coz-prod-card-head .ped-client {
    min-width: 0;
}

.coz-prod-card-head .ped-client > div:last-child {
    min-width: 0;
}

.coz-prod-card-head .ped-client h2 {
    margin-top: 0;
    font-size: clamp(19px, 1.15vw, 25px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coz-prod-card-head .ped-time {
    font-size: 13px;
    line-height: 1.2;
}

.coz-prod-card-head .ped-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.coz-prod-item-list {
    padding-right: 2px;
}

.coz-prod-item-list li {
    font-size: clamp(15px, 0.92vw, 18px);
    line-height: 1.32;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.coz-prod-item-list--stage {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6px;
}

.coz-prod-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.coz-prod-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.coz-prod-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    border: 1px solid #e2d7d0;
    background: #fffdfa;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.coz-prod-icon svg {
    width: 38px;
    height: 38px;
    fill: #221311;
}

.coz-prod-title-wrap h3 {
    margin: 0;
    color: #302621;
    font-size: clamp(28px, 2.6vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.coz-prod-pratos {
    border: 1px solid #dfd3cc;
    border-radius: 22px;
    background: #fffdfa;
    min-width: 96px;
    text-align: center;
    padding: 10px 12px 8px;
}

.coz-prod-pratos span {
    display: block;
    color: #7c675c;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 10px;
    font-weight: 800;
}

.coz-prod-pratos strong {
    display: block;
    margin-top: 2px;
    color: #221311;
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.coz-prod-priority-head {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coz-prod-priority-head span {
    color: #7c675c;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 800;
}

.coz-prod-priority-head strong {
    color: #302621;
    font-size: 31px;
    font-weight: 800;
}

.coz-prod-priority-track {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.coz-prod-priority-track i {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: #d9d1ca;
}

.coz-prod-priority-track i.is-active {
    background: #11b777;
}

.coz-prod-priority-track i.is-active:nth-child(3) {
    background: #8dcf4f;
}

.coz-prod-priority-track i.is-active:nth-child(4) {
    background: #f2c94c;
}

.coz-prod-priority-track i.is-active:nth-child(5) {
    background: #f08a24;
}

.coz-prod-priority-track i.is-active:nth-child(6) {
    background: #d94b3d;
}

.coz-prod-priority-scale {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.coz-prod-priority-scale span {
    text-align: center;
    color: #a38f83;
    font-size: 9px;
    font-weight: 700;
}

.coz-prod-stage {
    color: #7c675c;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
}

.coz-prod-card-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coz-prod-order-number {
    color: #7c675c;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 900;
}

.ops-shell--cozinha.is-kitchen-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    height: 100vh;
    background: #f8f2ef;
}

.ops-shell--cozinha.is-kitchen-fullscreen .ops-sidebar {
    display: none;
}

.ops-shell--cozinha.is-kitchen-fullscreen .ops-main {
    width: 100%;
    height: 100vh;
    overflow: auto;
    padding: 18px;
}

.coz-prod-number {
    margin: 8px 0 0;
    color: #302621;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.coz-live-empty {
    min-height: 280px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 10px;
}

.coz-live-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #f1e9e5;
    display: grid;
    place-items: center;
    margin: 0 auto 6px;
}

.coz-live-empty-icon svg {
    width: 28px;
    height: 28px;
    fill: #4e342e;
}

.coz-live-empty h3 {
    color: #221311;
    font-size: 30px;
    font-weight: 700;
}

.coz-live-empty p {
    color: #7c675c;
    font-size: 16px;
    max-width: 760px;
}
@media (max-width: 1180px) {
    .coz-live-top {
        grid-template-columns: 1fr;
        grid-auto-rows: auto !important;
    }

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

    .coz-live-orders-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }

    .coz-prod-title-wrap h3 { font-size: clamp(24px, 4vw, 34px); }
    .coz-prod-pratos strong { font-size: 38px; }
    .coz-prod-priority-head strong { font-size: 24px; }
    .coz-prod-number { font-size: 32px; }
}

@media (max-width: 760px) {
    .coz-live-grid {
        grid-template-columns: 1fr;
    }

    .coz-live-orders-grid {
        grid-template-columns: 1fr;
    }

    .coz-live-metric strong {
        font-size: 34px !important;
    }

    .coz-live-clock p {
        font-size: 12px !important;
    }

    .coz-live-clock strong {
        font-size: clamp(40px, 10vw, 52px) !important;
    }

    .coz-prod-card { padding: 14px; border-radius: 18px; }
    .coz-prod-card-head { padding-right: 212px; }
    .kitchen-type-counts { gap: 6px; }
    .kitchen-type-counts span {
        min-width: 62px;
        height: 48px;
        border-radius: 15px;
        font-size: 23px;
    }
    .kitchen-type-counts svg {
        width: 24px;
        height: 24px;
    }
    .kitchen-type-counts i { font-size: 29px; }
    .coz-prod-card .kitchen-type-counts,
    .ops-order-card .kitchen-type-counts {
        top: 12px;
        right: 12px;
    }
    .ops-order-topline-right { padding-right: 212px; }
    .coz-prod-top { align-items: flex-start; }
    .coz-prod-icon { width: 56px; height: 56px; border-radius: 16px; }
    .coz-prod-icon svg { width: 28px; height: 28px; }
    .coz-prod-title-wrap h3 { font-size: 22px; }
    .coz-prod-pratos { min-width: 74px; border-radius: 14px; padding: 8px 8px 6px; }
    .coz-prod-pratos strong { font-size: 28px; }
    .coz-prod-priority-head strong { font-size: 20px; }
    .coz-prod-priority-scale span { font-size: 8px; }
    .coz-prod-stage { font-size: 11px; }
    .coz-prod-number { font-size: 24px; }
}

/* Pedidos admin */
.pedidos-admin-page {
    width: 100%;
    padding-top: 0;
    align-content: start;
}
.pedidos-workspace {
    width: min(1480px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 24px;
    padding: 24px 0 0;
    min-height: calc(100dvh - 44px);
}
.pedidos-workspace--dated {
    grid-template-rows: auto auto 1fr;
}
.pedidos-content-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 590px;
}
.ped-headline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.ped-route-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: 66px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 0 12px;
    background: linear-gradient(180deg, #fbfaf8 0%, rgba(251, 250, 248, 0.94) 86%, rgba(251, 250, 248, 0));
}
.ped-route-nav .ped-btn,
.ped-route-nav .ped-add-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ped-route-nav .ped-btn {
    min-width: 170px;
}
.ped-route-nav .ped-nav-actions {
    min-width: 260px;
    margin-left: auto;
}
.ped-route-nav .ped-add-btn {
    width: 100%;
}
.ped-nav-actions {
    display: grid;
    gap: 4px;
    justify-items: stretch;
}
.ped-delivery-lookup-link {
    border: 0;
    background: transparent;
    color: #6f5a50;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.ped-delivery-lookup-link:hover,
.ped-delivery-lookup-link:focus-visible {
    color: #221311;
}
.ped-route-nav .ped-btn.is-active {
    border-color: #4e342e;
    color: #221311;
    box-shadow: 0 10px 22px rgba(34, 19, 17, 0.12);
}
.closed-date-panel {
    position: sticky;
    top: 66px;
    z-index: 18;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eadfd9;
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: 0 18px 42px rgba(34, 19, 17, 0.08);
    backdrop-filter: blur(12px);
}
.closed-date-main {
    display: grid;
    grid-template-columns: 54px minmax(220px, 1fr) 54px minmax(260px, auto) auto;
    gap: 10px;
    align-items: center;
}
.closed-date-arrow,
.closed-date-today,
.closed-date-picker button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8c7bd;
    border-radius: 14px;
    background: #fffdfa;
    color: #221311;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.closed-date-arrow {
    font-size: 1.2rem;
}
.closed-date-arrow:hover,
.closed-date-arrow:focus-visible,
.closed-date-today:hover,
.closed-date-today:focus-visible,
.closed-date-picker button:hover,
.closed-date-picker button:focus-visible,
.closed-day-pill:hover,
.closed-day-pill:focus-visible {
    border-color: #4e342e;
    box-shadow: 0 10px 22px rgba(34, 19, 17, 0.12);
    outline: none;
}
.closed-date-current {
    min-height: 72px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 16px;
    background: #4e342e;
    color: #fffdfa;
    text-align: center;
}
.closed-date-current span,
.closed-date-current small,
.closed-date-picker label,
.closed-date-summary span,
.closed-day-pill span,
.closed-day-pill small {
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}
.closed-date-current strong {
    font-size: 1.55rem;
    line-height: 1;
}
.closed-date-current small {
    color: #eadfd9;
}
.closed-date-picker {
    display: grid;
    gap: 5px;
}
.closed-date-picker label {
    color: #6f5a50;
}
.closed-date-picker div {
    display: flex;
    gap: 6px;
}
.closed-date-picker input {
    min-height: 48px;
    min-width: 158px;
    border: 1px solid #d8c7bd;
    border-radius: 14px;
    padding: 0 12px;
    background: #fffdfa;
    color: #221311;
    font: inherit;
    font-weight: 800;
}
.closed-date-picker button,
.closed-date-today {
    padding: 0 16px;
}
.closed-day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(104px, 1fr));
    gap: 8px;
}
.closed-day-pill {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid #eadfd9;
    border-radius: 14px;
    background: #fbf7f4;
    color: #221311;
    text-align: center;
    text-decoration: none;
}
.closed-day-pill strong {
    font-size: 1.45rem;
    line-height: 1;
}
.closed-day-pill small {
    color: #6f5a50;
}
.closed-day-pill small em {
    display: block;
    color: #b14b43;
    font-style: normal;
}
.closed-day-pill.is-selected {
    border-color: #4e342e;
    background: #221311;
    color: #fffdfa;
}
.closed-day-pill.is-selected small,
.closed-day-pill.is-selected small em {
    color: #eadfd9;
}
.closed-day-pill.is-today:not(.is-selected) {
    border-color: #4e342e;
}
.closed-date-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
}
.closed-date-summary div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #eadfd9;
    border-radius: 14px;
    background: #fffdfa;
}
.closed-date-summary span {
    color: #6f5a50;
}
.closed-date-summary strong {
    color: #221311;
    font-size: 1.08rem;
}
.ped-live-list {
    display: grid;
    gap: 12px;
}
.pedidos-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 16px 18px;
    border: 1px solid #eae3dd;
    border-radius: 18px;
    background: #fffdfa;
    color: #5f4b42;
    font-weight: 700;
}
.pedidos-list-footer strong {
    color: #221311;
    font-size: 1.4rem;
}
.ped-headline h1 {
    margin: 6px 0 4px;
    font-family: "Poppins", sans-serif;
    color: #221311;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 700;
}
.ped-headline p:last-child { color: #5f4b42; font-size: 15px; margin: 0; }
.ped-add-btn {
    background: #4e342e;
    color: #fffdfa;
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(34, 19, 17, 0.16);
}
.ped-action-btn {
    position: relative;
}
.ped-action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    border: 2px solid #fffdfa;
    background: #d43d3d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 14px rgba(212, 61, 61, 0.26);
}
.ped-action-badge.is-hidden {
    display: none;
}
.ped-card {
    position: relative;
    background: #fffdfa;
    border: 1px solid #eae3dd;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
    padding: 14px 16px;
}
.ped-card--clickable {
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.ped-card--clickable:hover,
.ped-card--clickable:focus-visible {
    transform: translateY(-1px);
    border-color: #d8c7bd;
    box-shadow: 0 18px 42px rgba(34, 19, 17, 0.12);
    outline: none;
}
.ped-card-top {
    display: grid;
    grid-template-columns: minmax(280px, auto) minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
}
.ped-client { display: flex; gap: 12px; }
.ped-card-tools { display: grid; justify-items: end; gap: 10px; }
.ped-card-tools--approval { padding-top: 0; align-content: start; }
.kitchen-type-counts {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0.84;
    pointer-events: none;
    z-index: 2;
}
.kitchen-type-counts span {
    min-width: 76px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #eadfd9;
    border-radius: 18px;
    background: #fbf7f4;
    color: #6a554b;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}
.kitchen-type-counts svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}
.kitchen-type-counts i {
    font-style: normal;
    font-size: 34px;
    line-height: 1;
}

.coz-prod-card .kitchen-type-counts {
    position: absolute;
    top: 18px;
    right: 18px;
}

.coz-prod-card .kitchen-type-counts {
    gap: 5px;
}

.coz-prod-card .kitchen-type-counts span {
    min-width: 46px;
    height: 40px;
    gap: 5px;
    border-radius: 13px;
    font-size: 19px;
}

.coz-prod-card .kitchen-type-counts svg {
    width: 20px;
    height: 20px;
}

.coz-prod-card .kitchen-type-counts i {
    font-size: 23px;
}

.ops-order-card .kitchen-type-counts {
    position: absolute;
    top: 14px;
    right: 18px;
}
.ped-card-more {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dfd1c8;
    background: #fffdfa;
    color: #302621;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(34, 19, 17, 0.06);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.ped-card-more-dots { font-size: 22px; line-height: 1; letter-spacing: 0.08em; transform: translateY(-2px); }
.ped-card-more-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.ped-card-more:hover,
.ped-card-more:focus-visible {
    transform: translateY(-1px);
    border-color: #4e342e;
    box-shadow: 0 12px 20px rgba(34, 19, 17, 0.12);
}
.ped-icon {
    width: 46px;
    height: 46px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2d6cf;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.ped-icon svg,
.ped-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.ped-icon svg { fill: #221311; }
.ped-client h2 { margin: 2px 0 0; color: #302621; font-size: 33px; line-height: 1.1; }
.ped-client h2 span { color: #302621; }
.ped-time {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    color: #7c675c;
    font-size: 13px;
}
.ped-channel-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding-left: 8px;
    color: #3f2923;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}
.ped-channel-tag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 999px;
    background: #4e342e;
}
.ped-channel-tag--site { color: #00545d; }
.ped-channel-tag--site::before { background: #006d77; }
.ped-channel-tag--ifood { color: #8f1c14; }
.ped-channel-tag--ifood::before { background: #b42318; }
.ped-channel-tag--balcao { color: #3f2923; }
.ped-channel-tag--balcao::before { background: #4e342e; }
.ped-recurring-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid #14936f;
    border-radius: 999px;
    background: #e6fff5;
    color: #075f49;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(20, 147, 111, 0.16);
}
.ped-recurring-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #14936f;
    box-shadow: 0 0 0 3px rgba(20, 147, 111, 0.16);
}
.ped-item-line { margin: 8px 0 0; color: #5f4b42; font-size: 16px; }
.ped-item-line--top {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #5f4b42;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ped-item-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ped-item-list--top {
    min-width: 0;
    max-height: 54px;
    overflow-y: auto;
    overflow-x: hidden;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
    padding: 0 8px 0 0;
    color: #5f4b42;
    scrollbar-width: thin;
    align-content: start;
}
.ped-item-list--top li {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ped-item-list--top li::before {
    content: "- ";
    color: #8d776c;
}
.ped-stats { display: flex; gap: 10px; }
.ped-chip-box {
    min-width: 148px; border: 1px solid #dfd1c8; border-radius: 16px; padding: 8px 10px; background: #fffdfa;
}
.ped-chip-box span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: #8d776c; }
.ped-chip-box strong { display: block; margin-top: 2px; font-size: 28px; color: #2a1a17; line-height: 1; }
.ped-card-note {
    margin-top: 10px; border: 1px solid #ddd1ca; border-radius: 14px; padding: 9px 12px; font-size: 14px; color: #3d2b26;
    background: #faf7f5;
    font-weight: 700;
}
.ped-flow { margin-top: 12px; }
.ped-flow > p { margin: 0 0 6px; color: #5f4b42; font-size: 14px; }
.ped-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ped-stage {
    border: 1px solid #dfd1c8; border-radius: 14px; background: #f8f4f1; padding: 8px 9px; display: flex; align-items: center; gap: 7px;
    min-height: 48px;
}
.ped-stage i {
    width: 20px; height: 20px; border-radius: 999px; background: #e6ddd8; color: #7c675c; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11px;
}
.ped-stage span { color: #6a554b; font-size: 13px; font-weight: 700; }
.ped-stage.is-active { background: linear-gradient(180deg, #d4f1e6 0%, #c5eadb 100%); border-color: #7fdab7; }
.ped-stage.is-active i { background: #00a66d; color: #fff; }
.ped-stage.is-active span { color: #21342d; }
.ped-actions { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ped-actions-left,
.ped-actions-right { display: flex; gap: 8px; align-items: center; }
.ped-actions-left {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.ped-actions-right {
    justify-content: flex-end;
    margin-left: auto;
}
.ped-btn {
    border-radius: 14px; border: 1px solid #dfd1c8; background: #fffdfa; color: #302621; padding: 8px 12px; font-size: 14px; font-weight: 800;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.ped-btn:hover,
.ped-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(34, 19, 17, 0.12);
}
.ped-btn-danger { color: #d43d3d; border-color: #efc3c3; background: #fff7f7; }
.ped-btn-primary { background: #4e342e; border-color: #4e342e; color: #fffdfa; }
.ped-btn-soft { background: #f7efea; }
.ped-btn-toggle.is-active {
    border-color: #91c7a6;
    background: #e8f7ee;
    color: #17643c;
}
.ped-btn-copy {
    white-space: nowrap;
}
.ped-actions-left .ped-btn {
    position: relative;
    overflow: hidden;
    min-height: 32px;
    border-radius: 11px;
    padding: 5px 9px;
    background: #fbf7f4;
    color: #6a554b;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}
.ped-actions-left .ped-btn.is-next-action {
    border-color: #d6b46b;
    color: #513a17;
    box-shadow: inset 0 0 0 1px rgba(214, 180, 107, 0.34), 0 5px 12px rgba(91, 65, 22, 0.10);
}
.ped-actions-left .ped-btn.is-next-action::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255, 226, 143, 0.48), rgba(255, 250, 228, 0.16));
    pointer-events: none;
}
.ped-actions-left .ped-btn.is-next-action::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    pointer-events: none;
}
.ped-actions-left .ped-btn.is-next-action > * {
    position: relative;
    z-index: 1;
}
.ped-actions-left .ped-btn-toggle.is-active {
    border-color: #b8d8c4;
    background: #edf8f1;
    color: #25704b;
}

.ped-actions-left .ped-btn-payment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ped-actions-left .ped-btn-payment svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ped-actions-left .ped-btn-payment small {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    opacity: 0.78;
}

.ped-actions-left .ped-btn-payment:not(.is-active) {
    position: relative;
    overflow: hidden;
    border-color: #e0c5c0;
    background: #fff8f6;
    color: #8a3d34;
}
.ped-actions-left .ped-btn-payment:not(.is-active)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 34%,
        rgba(255, 236, 176, 0.22) 42%,
        rgba(255, 190, 74, 0.72) 49%,
        rgba(255, 96, 80, 0.42) 55%,
        transparent 66%,
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-130%);
    animation: unpaid-light-pass 18s ease-in-out infinite;
    pointer-events: none;
}
.ped-actions-left .ped-btn-payment:not(.is-active)::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 178, 64, 0.88);
    box-shadow: 0 0 0 1px rgba(255, 226, 143, 0.24), 0 0 14px rgba(255, 113, 80, 0.28);
    opacity: 0;
    animation: unpaid-border-glow 18s ease-in-out infinite;
    pointer-events: none;
}
.ped-actions-left .ped-btn-payment:not(.is-active) > * {
    position: relative;
    z-index: 1;
}

@keyframes unpaid-light-pass {
    0% { opacity: 0; transform: translateX(-130%); }
    2% { opacity: 1; }
    8% { opacity: 1; transform: translateX(130%); }
    10%, 100% { opacity: 0; transform: translateX(130%); }
}

@keyframes unpaid-border-glow {
    0%, 10% { opacity: 1; }
    14%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ped-actions-left .ped-btn-payment:not(.is-active)::before,
    .ped-actions-left .ped-btn-payment:not(.is-active)::after {
        animation: none;
    }
}

.ped-chip-box--unpaid {
    border-color: #efb7b0;
    background: #fff0ee;
    box-shadow: inset 0 0 0 1px rgba(212, 61, 61, 0.08);
}

.ped-chip-box--unpaid span {
    color: #9a3b33;
}

.ped-chip-box--unpaid strong {
    color: #b6261f;
}
.ped-confirm-modal {
    z-index: 1300;
}
.ped-confirm-card {
    width: min(420px, calc(100vw - 32px));
    border-radius: 22px;
}
.ped-confirm-content {
    padding: 22px;
    gap: 14px;
}
.ped-confirm-content strong {
    color: #221311;
    font-size: 24px;
    line-height: 1.1;
}
.ped-confirm-content p {
    margin: 0;
    color: #6a554b;
    font-size: 15px;
    line-height: 1.45;
}
.ped-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
.ped-collapse {
    background: #fffdfa; border: 1px solid #eae3dd; border-radius: 18px; box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08); padding: 8px 14px;
}
.ped-collapse summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 6px 2px;
}
.ped-collapse summary::-webkit-details-marker { display: none; }
.ped-collapse h3 { margin: 0; font-size: 28px; color: #2a1a17; }
.ped-collapse p { margin: 2px 0 0; font-size: 16px; color: #7c675c; }
.ped-badge {
    min-width: 40px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.ped-badge.done { background: #dbf2e7; color: #0b8d60; border: 1px solid #a9dfc6; }
.ped-badge.cancel { background: #fdeaea; color: #d43d3d; border: 1px solid #f2bcbc; }

.pedido-detail-page { align-content: start; }
.ped-detail-hero,
.ped-detail-card {
    background: #fffdfa;
    border: 1px solid #eae3dd;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(34, 19, 17, 0.08);
}
.ped-detail-hero {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.ped-detail-hero h1 {
    margin: 8px 0 0;
    color: #2a1a17;
    font-size: 42px;
    line-height: 1.04;
}
.ped-detail-hero p:last-child {
    margin: 10px 0 0;
    max-width: 760px;
    color: #5f4b42;
    font-size: 15px;
    line-height: 1.5;
}
.ped-detail-hero-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
}
.ped-detail-status,
.ped-audit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 14px;
    border: 1px solid #d6cbc2;
    background: #f6f0ed;
    color: #3d2621;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ped-audit-badge.is-ok {
    background: #edf8f1;
    border-color: #b7dfc4;
    color: #16663c;
}
.ped-audit-badge.is-warn {
    background: #fff2e8;
    border-color: #efc9ac;
    color: #9e4d12;
}
.ped-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ped-detail-card { padding: 16px; }
.ped-detail-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.ped-detail-card h2 {
    margin: 6px 0 0;
    color: #2a1a17;
    font-size: 28px;
    line-height: 1.08;
}
.ped-detail-kpis {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ped-detail-kpi {
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #f9f2ee 100%);
    padding: 14px;
}
.ped-detail-kpi span,
.ped-detail-info dt,
.ped-detail-audit-list dt {
    display: block;
    color: #7c675c;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}
.ped-detail-kpi strong {
    display: block;
    margin-top: 6px;
    color: #2a1a17;
    font-size: 28px;
    line-height: 1;
}
.ped-detail-info,
.ped-detail-audit-list {
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ped-detail-info > div,
.ped-detail-audit-list > div {
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #f8f4f1;
    padding: 13px 14px;
}
.ped-detail-info > div.is-wide { grid-column: 1 / -1; }
.ped-detail-info dd,
.ped-detail-audit-list dd {
    margin: 6px 0 0;
    color: #2a1a17;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}
.ped-detail-items {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.ped-detail-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #f8f4f1;
    padding: 13px 14px;
}
.ped-detail-items li.is-empty {
    color: #7c675c;
    font-size: 14px;
}
.ped-detail-items strong {
    display: block;
    color: #221311;
    font-size: 15px;
}
.ped-detail-items small {
    display: block;
    margin-top: 5px;
    color: #6b544a;
    font-size: 12px;
}
.ped-detail-items span {
    color: #3d2621;
    font-size: 15px;
    font-weight: 800;
}
.ped-detail-items li.ped-detail-discount {
    background: #f1f7f3;
    border-color: #d6e6db;
}
.ped-detail-items li.ped-detail-discount span {
    color: #2f7b57;
}
.ped-detail-note,
.ped-detail-audit-note {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid #e4dbd5;
    background: #f6f0ed;
    padding: 14px;
}
.ped-detail-note p:last-child,
.ped-detail-audit-note p {
    margin: 6px 0 0;
    color: #5f4b42;
    font-size: 14px;
    line-height: 1.5;
}
.ped-detail-audit-list dd.is-ok { color: #16663c; }
.ped-detail-audit-list dd.is-warn { color: #9e4d12; }

.ped-detail-modal {
    padding: 20px;
}
.ped-detail-modal-card {
    width: min(920px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 22px;
}
.ped-detail-modal-content {
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px;
}
.ped-items-editor-modal {
    padding: 20px;
}
.ped-delivery-editor-modal {
    padding: 20px;
}
.ped-items-editor-modal-card {
    width: min(980px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 22px;
}
.ped-delivery-editor-modal-card {
    width: min(760px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 22px;
}
.ped-delivery-lookup-card {
    width: min(420px, 96vw);
    border-radius: 20px;
}
.ped-items-editor-modal-content {
    max-height: 86vh;
    overflow-y: auto;
    padding: 22px;
}
.ped-delivery-editor-modal-content {
    max-height: 86vh;
    overflow-y: auto;
    padding: 22px;
}
.ped-delivery-lookup-content {
    padding: 22px;
}
.ped-delivery-lookup-content h2 {
    margin: 4px 0 16px;
    color: #221311;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    line-height: 1.15;
}
.delivery-lookup-form {
    display: grid;
    gap: 12px;
}
.delivery-lookup-form .field {
    display: grid;
    gap: 6px;
}
.delivery-lookup-form .field span {
    color: #7a6257;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.delivery-lookup-form input {
    width: 100%;
    border: 1px solid #eadbd4;
    border-radius: 12px;
    padding: 12px 13px;
    color: #2a1a17;
    font: inherit;
    font-size: 15px;
    background: #fffdfa;
}
.delivery-lookup-result {
    margin-top: 14px;
    display: grid;
    gap: 4px;
    border: 1px solid #eadbd4;
    border-radius: 14px;
    padding: 12px;
    background: #fbfaf8;
}
.delivery-lookup-result span,
.delivery-lookup-result small,
.delivery-lookup-result p {
    margin: 0;
    color: #6f5a50;
}
.delivery-lookup-result strong {
    color: #221311;
    font-size: 30px;
    line-height: 1;
}
.delivery-lookup-result.is-error {
    border-color: #f1c3a3;
    background: #fff6ef;
}
.ped-items-editor-head {
    margin-bottom: 16px;
    padding-right: 36px;
}
.ped-items-editor-head h2 {
    margin: 4px 0 0;
    color: #221311;
    font-size: 30px;
    line-height: 1.05;
}
.ped-new-finalize-form {
    display: flex;
    justify-content: flex-end;
    margin: 14px 38px 0 0;
}
.ped-items-editor-form {
    display: grid;
    gap: 14px;
}
.ped-items-editor-layout {
    display: grid;
    grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: start;
}
.ped-items-editor-add,
.ped-items-editor-current {
    border: 1px solid #e7ddd6;
    border-radius: 18px;
    background: #fffdfa;
    padding: 14px;
}
.ped-items-editor-add h3,
.ped-items-editor-current h3 {
    margin: 0 0 10px;
    color: #221311;
    font-size: 18px;
}
.ped-editor-shortcuts {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}
.ped-editor-shortcuts[hidden] {
    display: none;
}
.ped-editor-shortcuts-title {
    color: #7b675d;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.ped-editor-shortcuts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ped-editor-shortcut-group {
    display: contents;
}
.ped-editor-shortcut {
    border: 1px solid rgba(255, 106, 0, 0.24);
    border-radius: 999px;
    background: #fff7ef;
    color: #221311;
    min-height: 34px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.ped-editor-shortcut::before {
    content: "+";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ff6a00;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}
.ped-editor-shortcut:hover,
.ped-editor-shortcut:focus-visible {
    border-color: rgba(255, 106, 0, 0.56);
    background: #fff1e4;
    transform: translateY(-1px);
}
.ped-editor-shortcut span {
    color: inherit;
    font-size: 0.86rem;
}
.ped-editor-shortcut small {
    color: #8a6a5b;
    font-size: 0.72rem;
    font-weight: 800;
}
.ped-items-editor-footer {
    position: sticky;
    bottom: -22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0 0;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0), #fffdfa 28%);
}
.ped-autosave-status {
    margin-right: auto;
    color: #7b675e;
    font-size: 12px;
    font-weight: 800;
}
.ped-modal-loading,
.ped-modal-error {
    color: #5f4b42;
    font-size: 15px;
    font-weight: 700;
}
.ped-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-right: 36px;
}
.ped-modal-kicker-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.ped-modal-status-form {
    display: inline-flex;
    margin: 0;
}
.ped-print-queue-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.ped-modal-cancel-link {
    border: 0;
    background: transparent;
    color: #b83232;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    cursor: pointer;
}
.ped-modal-cancel-link:hover,
.ped-modal-cancel-link:focus-visible {
    color: #7b1f1f;
    outline: none;
}
.ped-modal-kicker {
    display: block;
    color: #8d776c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ped-modal-head h2 {
    margin: 4px 0 2px;
    color: #221311;
    font-size: 30px;
    line-height: 1.05;
}
.ped-modal-head p {
    margin: 0;
    color: #6a554b;
    font-size: 14px;
}
.ped-modal-total {
    min-width: 142px;
    border: 1px solid #dfd1c8;
    border-radius: 16px;
    padding: 10px 12px;
    text-align: right;
}
.ped-modal-total span {
    display: block;
    color: #8d776c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.ped-modal-total strong {
    color: #221311;
    font-size: 28px;
    line-height: 1;
}
.ped-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 12px;
    margin-top: 16px;
}
.ped-modal-section {
    border: 1px solid #e7ddd6;
    border-radius: 18px;
    background: #fffdfa;
    padding: 14px;
}
.ped-modal-section h3 {
    margin: 0 0 10px;
    color: #221311;
    font-size: 18px;
}
.ped-modal-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.ped-modal-section-head h3 { margin: 0; }
.ped-editor-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    border-top: 1px solid #efe4de;
    padding-top: 12px;
}
.ped-editor-panel.hidden { display: none; }
.ped-item-editor-controls,
.ped-delivery-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ped-item-editor-controls {
    grid-template-columns: 1fr;
}
.ped-editor-panel input,
.ped-editor-panel select,
.ped-editor-panel textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dfd1c8;
    border-radius: 12px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}
.ped-editor-panel label {
    display: grid;
    gap: 4px;
    color: #8d776c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ped-delivery-editor-grid .is-wide { grid-column: 1 / -1; }
.ped-item-editor-list {
    display: grid;
    gap: 6px;
}
.ped-item-editor-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: 1px solid #efe4de;
    border-radius: 12px;
    padding: 8px 10px;
    color: #2a1a17;
    font-size: 13px;
    font-weight: 800;
}
.ped-item-editor-row.is-courtesy {
    border-color: #f0b35a;
    background: #fff8eb;
}
.ped-item-editor-row button {
    border: 0;
    background: transparent;
    color: #d43d3d;
    font-weight: 900;
}
.ped-item-editor-row .ped-item-classification-toggle {
    border: 1px solid #e6d7ce;
    border-radius: 999px;
    background: #fff;
    color: #5d4038;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ped-item-editor-row .ped-item-classification-toggle[aria-pressed="true"] {
    border-color: #f0a63a;
    background: #f0a63a;
    color: #2a1a17;
}
.ped-item-classification {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f3eee9;
    color: #5d4038;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ped-item-classification.is-cortesia {
    background: #fff0cf;
    color: #8a4b00;
}
.ped-item-classification.is-promocao {
    background: #e7f0ff;
    color: #2450a4;
}
.ped-modal-items {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ped-modal-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0e7e1;
    padding-bottom: 8px;
}
.ped-modal-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.ped-modal-items strong,
.ped-modal-items span {
    color: #2a1a17;
    font-size: 14px;
}
.ped-modal-items small {
    display: block;
    margin-top: 3px;
    color: #6a554b;
    font-size: 12px;
}
.ped-modal-items .is-discount span { color: #0b8d60; }
.ped-modal-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}
.ped-modal-facts div {
    border-bottom: 1px solid #f0e7e1;
    padding-bottom: 8px;
}
.ped-modal-facts div:last-child { border-bottom: 0; }
.ped-modal-facts dt,
.ped-modal-audit-list dt,
.ped-modal-note span {
    color: #8d776c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ped-modal-facts dd,
.ped-modal-audit-list dd {
    margin: 2px 0 0;
    color: #2a1a17;
    font-size: 14px;
    font-weight: 800;
}
.ped-modal-audit-list dd small {
    display: block;
    margin-top: 3px;
    color: #8d776c;
    font-size: 11px;
    font-weight: 800;
}
.ped-modal-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ped-modal-inline-form select {
    min-height: 38px;
    flex: 1 1 auto;
    border: 1px solid #dfd1c8;
    border-radius: 12px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 0 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}
.ped-modal-inline-form .ped-btn {
    min-height: 38px;
    padding: 7px 12px;
}
.ped-linked-client-name {
    display: block;
    margin: 0 0 3px;
    color: #8d776c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.ped-inline-edit {
    cursor: pointer;
    border-bottom: 1px dashed #b49e92;
}
.ped-inline-edit:hover,
.ped-inline-edit:focus-visible {
    color: #4e342e;
}
.ped-inline-edit--block {
    display: block;
    min-height: 42px;
    border: 1px dashed #dfd1c8;
    border-radius: 14px;
    padding: 10px 12px;
    color: #5f4b42;
    font-weight: 800;
}
.ped-inline-edit-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ped-inline-edit-form input,
.ped-inline-edit-form select,
.ped-inline-edit-form textarea {
    min-height: 38px;
    flex: 1 1 auto;
    border: 1px solid #dfd1c8;
    border-radius: 12px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}
.ped-inline-edit-form textarea {
    min-height: 70px;
}
.ped-modal-observation {
    margin-top: 12px;
}
.ped-modal-side-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}
.ped-modal-side-row .ped-modal-observation,
.ped-modal-side-row .ped-modal-coupon {
    margin-top: 0;
}
.ped-modal-route {
    margin-top: 12px;
    width: 100%;
}
.ped-address-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ped-address-row span {
    min-width: 0;
}
.ped-icon-edit {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfd1c8;
    border-radius: 10px;
    background: #fffdfa;
    color: #5b3932;
    cursor: pointer;
}
.ped-icon-edit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.ped-icon-edit:hover,
.ped-icon-edit:focus-visible {
    border-color: #c39f90;
    background: #f8f0ec;
}
.ped-modal-facts.is-pickup > div:has(.ped-address-row) {
    display: none;
}
.ped-delivery-modal-form {
    display: grid;
    gap: 14px;
}
.ped-delivery-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ped-delivery-modal-grid label {
    display: grid;
    gap: 5px;
    color: #8d776c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ped-delivery-modal-grid input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dfd1c8;
    border-radius: 12px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}
.ped-delivery-modal-grid .is-wide {
    grid-column: 1 / -1;
}
.ped-free-delivery-form {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}
.ped-free-delivery-form.hidden {
    display: none;
}
.delivery-free-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    border: 1px solid #dfd1c8;
    border-radius: 14px;
    background: #fffdfa;
    padding: 10px 12px;
    color: #221311;
    letter-spacing: 0;
    text-transform: none;
}
.delivery-free-toggle input {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: #1f8f53;
}
.delivery-free-toggle span {
    font-size: 14px;
    font-weight: 900;
}
.delivery-free-toggle small {
    grid-column: 2;
    color: #7a6257;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.ped-modal-note {
    margin-top: 12px;
    border-radius: 14px;
    background: #f8f4f1;
    padding: 10px 12px;
}
.ped-modal-note p {
    margin: 4px 0 0;
    color: #3d2b26;
    font-size: 14px;
}
.ped-modal-audit {
    margin-top: 12px;
}
.ped-print-queue-link {
    border: 0;
    background: transparent;
    color: #8d776c;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 3px;
    text-transform: uppercase;
    cursor: pointer;
}
.ped-print-queue-link:hover,
.ped-print-queue-link:focus-visible {
    color: #4e342e;
    outline: none;
}
.ped-print-queue-feedback {
    color: #6a554b;
    font-size: 12px;
    font-weight: 700;
}
.ped-modal-audit-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.ped-modal-audit-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
}
.ped-coupon-box {
    display: grid;
    gap: 10px;
    margin-top: 0;
    border: 1px solid #efe4de;
    border-radius: 14px;
    background: #fffdfa;
    padding: 10px;
}
.ped-coupon-box span {
    display: block;
    color: #8d776c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ped-coupon-box strong {
    display: block;
    margin-top: 2px;
    color: #2a1a17;
    font-size: 14px;
}
.ped-coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.ped-coupon-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dfd1c8;
    border-radius: 12px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}
.ped-coupon-remove-form {
    margin: 0;
}
.ped-modal-audit-list div {
    border: 1px solid #efe4de;
    border-radius: 14px;
    padding: 9px 10px;
    background: #fffdfa;
}

@media (max-width: 1180px) {
    .ped-headline { flex-direction: column; }
    .pedidos-workspace {
        gap: 14px;
        padding-top: 14px;
        min-height: auto;
    }
    .pedidos-content-panel {
        min-height: 0;
    }
    .ped-modal-grid--create {
        grid-template-columns: 1fr;
    }
    .ped-route-nav {
        justify-content: flex-start;
        gap: 10px;
        top: 0;
    }
    .ped-route-nav .ped-btn,
    .ped-route-nav .ped-nav-actions {
        min-width: 0;
        flex: 1 1 180px;
    }
    .ped-route-nav .ped-nav-actions {
        margin-left: 0;
    }
    .closed-date-panel {
        position: static;
    }
    .closed-date-main {
        grid-template-columns: 48px minmax(170px, 1fr) 48px;
    }
    .closed-date-picker,
    .closed-date-today {
        grid-column: 1 / -1;
    }
    .closed-date-picker div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .closed-date-picker input {
        width: 100%;
        min-width: 0;
    }
    .closed-day-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
    }
    .closed-day-pill {
        min-width: 112px;
        scroll-snap-align: start;
    }
    .closed-date-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ped-card-top { grid-template-columns: 1fr; align-items: start; }
    .ped-item-line--top,
    .ped-item-list--top li { white-space: normal; }
    .ped-item-list--top { grid-template-columns: 1fr; }
    .ped-card-tools { padding-top: 0; }
    .ped-stages { grid-template-columns: 1fr; }
    .ped-actions { flex-direction: column; align-items: flex-start; }
    .ped-actions-left,
    .ped-actions-right { flex-wrap: wrap; }
    .ped-actions-right { justify-content: flex-start; margin-left: 0; }
    .ped-headline h1 { font-size: 34px; }
    .ped-detail-grid { grid-template-columns: 1fr; }
    .ped-detail-hero { flex-direction: column; }
    .ped-detail-hero-actions { justify-items: start; }
}

@media (max-width: 640px) {
    .closed-date-panel {
        margin-inline: -2px;
        padding: 10px;
        border-radius: 14px;
    }
    .closed-date-main {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 7px;
    }
    .closed-date-arrow,
    .closed-date-today,
    .closed-date-picker button,
    .closed-date-picker input {
        min-height: 44px;
        border-radius: 12px;
    }
    .closed-date-current {
        min-height: 64px;
        padding: 8px 10px;
        border-radius: 13px;
    }
    .closed-date-current strong {
        font-size: 1.25rem;
    }
    .closed-date-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .ped-detail-kpis,
    .ped-detail-info,
    .ped-detail-audit-list {
        grid-template-columns: 1fr;
    }

    .ped-detail-items li,
    .ped-detail-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .ped-modal-head,
    .ped-modal-items li {
        flex-direction: column;
    }
    .ped-modal-total {
        width: 100%;
        text-align: left;
    }
    .ped-modal-grid,
    .ped-modal-side-row,
    .ped-modal-audit-list {
        grid-template-columns: 1fr;
    }
    .ped-coupon-form {
        grid-template-columns: 1fr;
    }
    .ped-items-editor-layout {
        grid-template-columns: 1fr;
    }
    .ped-item-editor-controls,
    .ped-delivery-editor-grid,
    .ped-delivery-modal-grid {
        grid-template-columns: 1fr;
    }
    .ped-detail-modal-content {
        padding: 18px;
    }
}

/* Ajustes */
.ajustes-page {
    align-content: start;
}

.ajustes-hero h1 {
    margin-top: 8px;
}

.ajustes-tabs {
    display: flex;
    gap: 10px;
}

.ajustes-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfd1c8;
    border-radius: 999px;
    background: #f6f0ed;
    color: #5f4b42;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.ajustes-tab.is-active {
    background: #fffdfa;
    color: #2a1a17;
    box-shadow: 0 8px 18px rgba(34, 19, 17, 0.08);
}

.ajustes-feedback {
    border-radius: 16px;
    border: 1px solid #b7dfc4;
    background: #edf8f1;
    color: #16663c;
    padding: 13px 16px;
    font-weight: 700;
}

.ajustes-feedback.is-error {
    border-color: #efc9ac;
    background: #fff2e8;
    color: #9e4d12;
}

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

.ajustes-guide-grid {
    display: grid;
    gap: 14px;
}

.ajustes-card {
    display: grid;
    gap: 14px;
}

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

.ajustes-map-stack {
    display: grid;
    gap: 12px;
}

.ajustes-map-shell .address-map-canvas {
    height: 300px;
}

.ajustes-map-shell.is-origin-locked {
    border-color: rgba(47, 111, 79, 0.34);
    box-shadow: 0 0 0 4px rgba(47, 111, 79, 0.06);
}

.ajustes-map-shell.is-origin-locked .address-map-pin {
    filter: drop-shadow(0 8px 14px rgba(47, 111, 79, 0.24));
}

.ajustes-map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ajustes-map-actions .secondary-pill,
.ajustes-map-actions .primary-button {
    min-width: 200px;
}

.ajustes-origin-official-label {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ajustes-resolved-inline {
    padding-top: 0;
}

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

.ajustes-field {
    margin: 0;
}

.ajustes-field--wide {
    grid-column: 1 / -1;
}

.ajustes-closed-dates {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ajustes-closed-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eaded5;
    border-radius: 12px;
    background: #fffdfa;
}

.ajustes-closed-date-row small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.ajustes-closed-date-row.is-inactive {
    opacity: 0.62;
}

.ajustes-field input,
.ajustes-frete-row input,
.ajustes-frete-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ded2ca;
    border-radius: 14px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 0 14px;
    font-size: 14px;
}

.ajustes-note {
    border-radius: 16px;
    border: 1px solid #e4dbd5;
    background: #f6f0ed;
    padding: 14px;
    color: #5f4b42;
    line-height: 1.5;
}

.ajustes-note p {
    margin: 0;
}

.ajustes-guide-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #4d3b34;
    line-height: 1.55;
}

.ajustes-guide-list strong,
.ajustes-guide-list code {
    color: #2a1a17;
}

.ajustes-google-status {
    display: grid;
    gap: 6px;
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #fffdfa;
    padding: 14px;
}

.ajustes-google-status.is-success {
    border-color: #b7dfc4;
    background: #edf8f1;
}

.ajustes-google-status.is-error {
    border-color: #efc9ac;
    background: #fff2e8;
}

.ajustes-google-status strong {
    color: #2a1a17;
    font-size: 14px;
}

.ajustes-google-status p {
    margin: 0;
    color: #5f4b42;
    line-height: 1.5;
}

.ajustes-google-test-list {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.ajustes-google-test-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid #eadfd8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px;
}

.ajustes-google-test-row > span {
    min-width: 42px;
    border-radius: 999px;
    padding: 4px 8px;
    text-align: center;
    color: #fffdfa;
    background: #7f6c63;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.ajustes-google-test-row.is-ok > span {
    background: #2b7a55;
}

.ajustes-google-test-row.is-error > span {
    background: #b85634;
}

.ajustes-google-test-row strong {
    display: block;
    margin-bottom: 2px;
}

.ajustes-google-map {
    min-height: 240px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfd1c8;
}

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

.usuarios-page {
    display: grid;
    gap: 16px;
}

.usuarios-permission-alert {
    margin: 0;
}

.usuarios-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.usuarios-dashboard-head h2,
.usuarios-panel-head h2 {
    margin: 2px 0 0;
    color: #2a1a17;
    font-size: 24px;
    line-height: 1.15;
}

.usuarios-dashboard-head p:last-child,
.usuarios-panel-copy {
    margin: 8px 0 0;
    color: #7c675c;
    font-size: 14px;
    line-height: 1.45;
}

.usuarios-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.usuarios-metric {
    min-width: 0;
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #fffdfa;
    padding: 14px;
}

.usuarios-metric span,
.usuarios-count,
.usuarios-toolbar span,
.usuarios-class-field legend,
.usuarios-admin-main .field span,
.usuarios-class-row label > span {
    color: #7c675c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.usuarios-metric strong {
    display: block;
    margin-top: 5px;
    color: #2a1a17;
    font-size: 28px;
    line-height: 1;
}

.usuarios-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

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

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

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

.usuarios-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.35fr) minmax(150px, 0.35fr);
    gap: 10px;
    margin-bottom: 14px;
}

.usuarios-search,
.usuarios-filter {
    display: grid;
    gap: 6px;
}

.usuarios-search input,
.usuarios-filter select,
.usuarios-admin-main input,
.usuarios-class-row input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ded2ca;
    border-radius: 14px;
    background: #fffdfa;
    color: #2a1a17;
    padding: 0 12px;
    font-size: 14px;
}

.usuarios-admin-list,
.usuarios-class-list,
.usuarios-create-form {
    display: grid;
    gap: 12px;
}

.usuarios-user-card {
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #fffdfa;
    overflow: hidden;
}

.usuarios-user-card.is-inactive {
    background: #f8f4f1;
}

.usuarios-user-details {
    display: block;
}

.usuarios-user-summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    list-style: none;
}

.usuarios-user-summary::-webkit-details-marker {
    display: none;
}

.usuarios-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #2a1a17;
    color: #fffdfa;
    font-weight: 900;
}

.usuarios-user-main {
    display: grid;
    min-width: 0;
}

.usuarios-user-main strong {
    color: #2a1a17;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.usuarios-user-main small {
    color: #7c675c;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.usuarios-badges,
.usuarios-check-grid,
.usuarios-admin-flags,
.usuarios-admin-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usuarios-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #ded2ca;
    border-radius: 999px;
    padding: 0 10px;
    color: #5f4b42;
    background: #f8f4f1;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.usuarios-badge.is-success {
    color: #27633f;
    border-color: #b8dac6;
    background: #eef8f2;
}

.usuarios-badge.is-danger {
    color: #9f2929;
    border-color: #efc3c3;
    background: #fff7f7;
}

.usuarios-badge.is-muted {
    color: #7c675c;
    background: #eee8e3;
}

.usuarios-edit-label {
    color: #5f4b42;
    font-size: 12px;
    font-weight: 900;
}

.usuarios-edit-trigger {
    white-space: nowrap;
}

.usuarios-user-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #eadfd8;
    padding: 10px 14px 12px 70px;
    color: #7c675c;
    font-size: 12px;
}

.usuarios-modal {
    width: min(920px, calc(100vw - 28px));
    max-height: min(86vh, 760px);
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    color: #2a1a17;
}

.usuarios-modal::backdrop {
    background: rgba(42, 26, 23, 0.48);
    backdrop-filter: blur(2px);
}

.usuarios-modal-shell {
    display: grid;
    gap: 16px;
    max-height: min(86vh, 760px);
    overflow: auto;
    border: 1px solid #e4dbd5;
    border-radius: 18px;
    background: #fffdfa;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(42, 26, 23, 0.24);
}

.legacy-import-modal {
    width: min(1180px, calc(100vw - 28px));
}

.legacy-import-modal-shell {
    max-height: min(88vh, 820px);
}

.legacy-import-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-import-table-wrap {
    overflow: auto;
    border: 1px solid #e4dbd5;
    border-radius: 14px;
    background: #fffdfa;
}

.legacy-import-table {
    width: 100%;
    min-width: 1060px;
    border-collapse: collapse;
    font-size: 13px;
}

.legacy-import-table th,
.legacy-import-table td {
    border-bottom: 1px solid #eadfd8;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legacy-import-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f0ed;
    color: #7c675c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-import-table tr:last-child td {
    border-bottom: 0;
}

.legacy-import-table tr.is-duplicate {
    color: #7c675c;
    background: #f8f4f1;
}

.legacy-import-table small {
    display: block;
    margin-top: 2px;
    color: #9e4d12;
    font-size: 11px;
    font-weight: 800;
}

.usuarios-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.usuarios-modal-head h2 {
    margin: 2px 0 0;
    color: #2a1a17;
    font-size: 24px;
    line-height: 1.15;
}

.usuarios-modal-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ded2ca;
    border-radius: 12px;
    background: #f8f4f1;
    color: #2a1a17;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.usuarios-edit-form {
    display: grid;
    gap: 14px;
}

.usuarios-self-note,
.usuarios-empty-filter {
    border: 1px solid #e6d8ba;
    border-radius: 14px;
    background: #fff8e5;
    color: #735b20;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
}

.usuarios-admin-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.usuarios-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
    gap: 14px;
}

.usuarios-class-field {
    display: grid;
    gap: 8px;
    border: 0;
    padding: 0;
    min-inline-size: 0;
}

.usuarios-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    color: #7c675c;
    font-size: 12px;
}

.usuarios-class-create {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.usuarios-class-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #fffdfa;
}

.usuarios-class-row label {
    display: grid;
    gap: 6px;
}

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

.ajustes-check--danger {
    border-color: #efc3c3;
    color: #9f2929;
    background: #fff7f7;
}

.ped-btn:disabled,
.usuarios-admin-main input:disabled,
.usuarios-class-row input:disabled,
.usuarios-modal input:disabled,
.ajustes-field input:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

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

.ajustes-preview-card {
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #f9f2ee 100%);
    padding: 14px;
}

.ajustes-preview-card span {
    display: block;
    color: #7c675c;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

.ajustes-preview-card strong {
    display: block;
    margin-top: 6px;
    color: #2a1a17;
    font-size: 18px;
    line-height: 1.3;
}

.ajustes-preview-card small {
    display: block;
    margin-top: 6px;
    color: #6b544a;
    font-size: 12px;
    line-height: 1.45;
}

.ajustes-frete-table {
    display: grid;
    gap: 8px;
}

.ajustes-frete-save {
    justify-self: end;
}

.ajustes-frete-head,
.ajustes-frete-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.85fr 0.8fr 0.8fr;
    gap: 10px;
    align-items: center;
}

.ajustes-frete-head {
    color: #7c675c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 4px;
}

.ajustes-frete-row {
    border: 1px solid #e4dbd5;
    border-radius: 16px;
    background: #f8f4f1;
    padding: 10px;
}

.ajustes-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border: 1px dashed #d8cbc3;
    border-radius: 14px;
    padding: 0 12px;
    color: #5f4b42;
    font-size: 13px;
    font-weight: 700;
}

.ajustes-check input {
    width: 16px;
    min-height: 16px;
    height: 16px;
    padding: 0;
}

@media (max-width: 1180px) {
    .ajustes-grid,
    .ajustes-preview-grid,
    .legacy-import-summary {
        grid-template-columns: 1fr;
    }

    .usuarios-layout,
    .usuarios-edit-grid {
        grid-template-columns: 1fr;
    }

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

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

    .ajustes-frete-head {
        display: none;
    }

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

@media (max-width: 720px) {
    .ajustes-form-grid,
    .ajustes-frete-row,
    .usuarios-admin-main,
    .usuarios-toolbar,
    .usuarios-class-row {
        grid-template-columns: 1fr;
    }

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

    .usuarios-user-summary {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .usuarios-badges,
    .usuarios-edit-label {
        grid-column: 2;
    }

    .usuarios-card-footer,
    .usuarios-panel-head,
    .usuarios-panel-actions,
    .usuarios-modal-head {
        align-items: stretch;
        flex-direction: column;
    }

    .usuarios-user-meta {
        padding-left: 14px;
    }

    .usuarios-modal {
        width: calc(100vw - 18px);
        max-height: 90vh;
    }

    .usuarios-modal-shell {
        max-height: 90vh;
        padding: 14px;
    }

    .ajustes-frete-save {
        width: 100%;
        justify-self: stretch;
    }
}

[data-page="cardapio"] .menu-feature-band {
    width: min(100%, 560px);
    max-width: 100%;
    margin-top: 18px;
    aspect-ratio: 1698 / 1064;
    box-sizing: border-box;
    padding: clamp(18px, 5.6vw, 34px) clamp(56px, 13vw, 92px) clamp(20px, 5.8vw, 36px) clamp(26px, 7vw, 46px);
    display: grid;
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
    gap: clamp(26px, 7vw, 54px);
    align-items: center;
    justify-content: start;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

[data-page="cardapio"] .menu-feature-shape {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: left center;
    z-index: 0;
    pointer-events: none;
    transform-origin: left center;
    animation: menuFeatureShapeIn 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-page="cardapio"] .menu-feature-title,
[data-page="cardapio"] .menu-feature-card-wrap {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    align-self: center;
    position: relative;
    z-index: 1;
}

[data-page="cardapio"] .menu-feature-title {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    animation: menuFeatureTextIn 620ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}

[data-page="cardapio"] .menu-feature-card-wrap {
    justify-self: start;
    width: 100%;
    animation: menuFeatureCardIn 620ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

[data-page="cardapio"] .menu-feature-title h1 {
    max-width: 100%;
    font-size: clamp(1.36rem, 4.4vw, 2.45rem);
    line-height: 0.92;
    overflow-wrap: normal;
}

[data-page="cardapio"] .menu-feature-title h1 span {
    white-space: normal;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-card {
    width: min(100%, 210px);
    flex: 0 0 auto;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-media {
    aspect-ratio: 1.35 / 0.7;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-body {
    padding: 5px 10px 4px;
    gap: 1px;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-body h2 {
    font-size: 0.82rem;
    line-height: 1.05;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-body p {
    font-size: 0.76rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-add-button--footer {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.78rem;
}

[data-page="cardapio"] .context-header {
    animation: menuHeaderIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-page="cardapio"] .reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 620ms ease,
        transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-order, 0) * 58ms);
}

[data-page="cardapio"] .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-page="cardapio"] .extras-section.reveal-on-scroll {
    transform: translateY(22px);
}

[data-page="cardapio"] .bebidas-grid .dish-card.reveal-on-scroll {
    transform: translateY(30px) scale(0.96);
}

[data-page="cardapio"] .bebidas-grid .dish-card.reveal-on-scroll.is-visible {
    transform: translateY(0) scale(1);
}

@keyframes menuHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuFeatureShapeIn {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuFeatureCardIn {
    from {
        opacity: 0;
        transform: translateX(-26px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuFeatureTextIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 520px) {
    [data-page="cardapio"] .menu-feature-band {
        width: min(100%, 430px);
        grid-template-columns: 154px minmax(0, 1fr);
        gap: 8px;
        padding: 20px 34px 18px 22px;
        border-radius: 0 28px 28px 0;
    }

    [data-page="cardapio"] .menu-feature-card-wrap {
        width: 154px;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: clamp(1.12rem, 6.2vw, 1.58rem);
    }

    [data-page="cardapio"] .menu-feature-card-wrap .dish-card {
        width: 154px;
    }
}

@media (max-width: 360px) {
    [data-page="cardapio"] .menu-feature-band {
        grid-template-columns: 138px minmax(0, 1fr);
        gap: 7px;
        padding: 16px 26px 15px 16px;
    }

    [data-page="cardapio"] .menu-feature-card-wrap {
        width: 138px;
    }

    [data-page="cardapio"] .menu-feature-card-wrap .dish-card {
        width: 138px;
    }

    [data-page="cardapio"] .menu-feature-title h1 {
        font-size: 1.04rem;
    }
}

[data-page="cardapio"] .dish-qty-badge--footer {
    min-height: 40px;
    padding: 7px 12px;
    gap: 14px;
}

[data-page="cardapio"] .dish-qty-badge--footer button {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
}

[data-page="cardapio"] .dish-qty-badge--footer strong {
    min-width: 20px;
    font-size: 0.9rem;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-qty-badge--footer button[data-card-qty-change="1"] {
    animation: featurePlusPulse 2800ms ease-in-out infinite;
}

[data-page="cardapio"] .menu-feature-card-wrap .dish-qty-badge--footer button[data-card-qty-change="1"]:active,
[data-page="cardapio"] .menu-feature-card-wrap .dish-qty-badge--footer.is-qty-active button[data-card-qty-change="1"] {
    animation: none;
}

@keyframes featurePlusPulse {
    0%,
    72%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 253, 250, 0);
        transform: translateY(0) scale(1);
    }
    84% {
        box-shadow: 0 0 0 7px rgba(255, 253, 250, 0.14);
        transform: translateY(-1px) scale(1.06);
    }
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer {
    min-height: 30px;
    padding: 5px 8px;
    gap: 9px;
    border-radius: 0 0 14px 14px;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer button {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer strong {
    min-width: 16px;
    font-size: 0.74rem;
}

[data-page="cardapio"] .dish-qty-badge--footer {
    width: 118px;
    min-height: 42px;
    margin: auto auto 10px;
    padding: 6px;
    align-self: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid rgba(255, 253, 250, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.12), rgba(255, 253, 250, 0) 45%),
        linear-gradient(135deg, #65443a 0%, #4e342e 54%, #321f1a 100%);
    box-shadow: 0 14px 26px rgba(34, 19, 17, 0.2), inset 0 1px 0 rgba(255, 253, 250, 0.2);
    transition:
        width 340ms cubic-bezier(0.18, 0.9, 0.22, 1),
        min-height 340ms cubic-bezier(0.18, 0.9, 0.22, 1),
        padding 340ms cubic-bezier(0.18, 0.9, 0.22, 1),
        gap 340ms cubic-bezier(0.18, 0.9, 0.22, 1),
        border-radius 340ms cubic-bezier(0.18, 0.9, 0.22, 1),
        box-shadow 240ms ease,
        transform 240ms ease;
}

[data-page="cardapio"] .dish-qty-badge--footer button,
[data-page="cardapio"] .dish-qty-badge--footer strong {
    transition:
        width 280ms cubic-bezier(0.18, 0.9, 0.22, 1),
        min-width 280ms cubic-bezier(0.18, 0.9, 0.22, 1),
        opacity 180ms ease,
        transform 280ms cubic-bezier(0.18, 0.9, 0.22, 1),
        background-color 180ms ease,
        color 180ms ease;
}

[data-page="cardapio"] .dish-qty-badge--footer button {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 16px rgba(34, 19, 17, 0.14);
}

[data-page="cardapio"] .dish-qty-badge--footer button[data-card-qty-change="1"] {
    color: transparent;
    font-size: 0;
}

[data-page="cardapio"] .dish-qty-badge--footer button[data-card-qty-change="1"]::before {
    content: "+";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand-strong);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-0.5px);
}

[data-page="cardapio"] .dish-qty-badge--footer strong {
    min-width: 22px;
    font-size: 0.94rem;
    transform-origin: center;
}

[data-page="cardapio"] .dish-qty-badge--footer.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(34, 19, 17, 0.18), inset 0 1px 0 rgba(255, 253, 250, 0.22);
}

[data-page="cardapio"] .dish-qty-badge--footer.is-empty button[data-card-qty-change="-1"],
[data-page="cardapio"] .dish-qty-badge--footer.is-empty strong {
    display: none;
    pointer-events: none;
}

[data-page="cardapio"] .dish-qty-badge--footer.is-empty button[data-card-qty-change="1"] {
    position: static;
    width: 30px;
    height: 30px;
    margin: 0;
    transform: none;
    animation: none;
}

[data-page="cardapio"] .dish-qty-badge--footer.is-morphing {
    animation: qtyMorphGlow 520ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

[data-page="cardapio"] .dish-qty-badge--footer.is-morphing strong {
    animation: qtyRevealPremium 420ms cubic-bezier(0.18, 0.9, 0.22, 1) 70ms both;
}

[data-page="cardapio"] .dish-qty-badge--footer.is-morphing button[data-card-qty-change="-1"] {
    animation: qtySideReveal 360ms cubic-bezier(0.18, 0.9, 0.22, 1) 60ms both;
}

[data-page="cardapio"] .dish-variation-quick-controls {
    width: min(126px, calc(100% - 18px));
    margin: auto auto 5px;
    display: grid;
    gap: 2px;
    align-self: center;
}

[data-page="cardapio"] .dish-variation-quick-row {
    display: grid;
    justify-items: center;
    gap: 1px;
}

[data-page="cardapio"] .dish-variation-quick-title {
    max-width: 100%;
    overflow: hidden;
    color: var(--brand-strong);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 0.9;
    text-align: center;
    text-overflow: ellipsis;
    visibility: hidden;
    white-space: nowrap;
}

[data-page="cardapio"] .dish-variation-quick-row.has-quantity .dish-variation-quick-title {
    visibility: visible;
}

[data-page="cardapio"] .dish-variation-qty.dish-qty-badge--footer {
    width: 88px;
    min-height: 28px;
    margin: 0;
    padding: 3px;
    gap: 6px;
}

[data-page="cardapio"] .dish-variation-qty [data-card-variation-qty-value] {
    min-width: 18px;
    color: #fffdfa;
    font-size: 0.78rem;
    text-align: center;
}

[data-page="cardapio"] .dish-variation-empty-label {
    display: none;
}

[data-page="cardapio"] .dish-variation-qty button {
    width: 21px;
    height: 21px;
}

[data-page="cardapio"] .dish-variation-qty button[data-card-variation-qty-change="1"] {
    color: transparent;
    font-size: 0;
}

[data-page="cardapio"] .dish-variation-qty button[data-card-variation-qty-change="1"]::before {
    content: "+";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand-strong);
    font-size: 0.86rem;
    font-weight: 900;
}

[data-page="cardapio"] .dish-variation-qty.is-empty {
    width: 100%;
    height: 28px;
    min-height: 28px;
    padding: 3px 4px 3px 8px;
    justify-content: space-between;
    gap: 6px;
}

[data-page="cardapio"] .dish-variation-qty.is-empty button[data-card-variation-qty-change="-1"],
[data-page="cardapio"] .dish-variation-qty.is-empty [data-card-variation-qty-value] {
    display: none;
}

[data-page="cardapio"] .dish-variation-qty.is-empty .dish-variation-empty-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fffdfa;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-page="cardapio"] .dish-variation-qty.is-empty button[data-card-variation-qty-change="1"] {
    width: 22px;
    height: 22px;
    order: 1;
}

[data-page="cardapio"] .dish-qty-badge--footer.hidden {
    display: none;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer {
    width: 106px;
    min-height: 36px;
    margin-bottom: 8px;
    padding: 5px;
    gap: 9px;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer button {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer strong {
    min-width: 18px;
    font-size: 0.78rem;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer.is-empty {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

[data-page="cardapio"] .bebidas-grid .dish-qty-badge--footer.is-empty button[data-card-qty-change="1"] {
    width: 26px;
    height: 26px;
}

@keyframes qtyMorphGlow {
    0% {
        transform: scale(0.96);
        box-shadow: 0 10px 20px rgba(34, 19, 17, 0.16), 0 0 0 0 rgba(255, 253, 250, 0);
    }
    44% {
        transform: translateY(-1px) scale(1.035);
        box-shadow: 0 18px 30px rgba(34, 19, 17, 0.24), 0 0 0 7px rgba(255, 253, 250, 0.16);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes qtyRevealPremium {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.74);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes qtySideReveal {
    0% {
        opacity: 0;
        transform: translateX(10px) scale(0.62);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

[data-page="cardapio"] .dish-media {
    display: block;
    position: relative;
}

[data-page="cardapio"] .dish-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: cover;
    object-position: center center;
}

[data-page="cardapio"] {
    padding-bottom: 220px;
}

.metrics-funnel-card,
.metrics-bars-card {
    display: grid;
    gap: 18px;
}

.metrics-live-chip {
    min-width: 132px;
    justify-content: center;
}

.metrics-live-chip.is-error {
    border-color: rgba(123, 48, 35, 0.35);
    color: #7b3023;
}

.metrics-active-users {
    gap: 8px;
    border-color: rgba(25, 135, 84, 0.28);
    color: #176b45;
}

.metrics-active-users svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.metrics-active-users strong {
    color: #176b45;
    font-size: 1rem;
}

.metrics-funnel {
    display: grid;
    gap: 12px;
}

.metrics-funnel-step {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(160px, 2fr) 64px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(78, 52, 46, 0.12);
    border-radius: 18px;
    background: #fffdfa;
}

.metrics-funnel-step div:first-child {
    display: grid;
    gap: 2px;
}

.metrics-funnel-step span {
    color: #7c675c;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metrics-funnel-step strong {
    color: #221311;
    font-size: 2rem;
    line-height: 1;
}

.metrics-funnel-step b {
    color: #4e342e;
    font-size: 1rem;
    text-align: right;
}

.metrics-funnel-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece7e2;
}

.metrics-funnel-track span {
    display: block;
    height: 100%;
    min-width: 3px;
    background: linear-gradient(90deg, #ff6a00, #ff9940);
}

.metrics-bars {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    align-items: end;
    gap: 10px;
    padding-top: 14px;
}

.metrics-bar {
    min-height: 230px;
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    gap: 6px;
    text-align: center;
}

.metrics-bar span {
    width: 100%;
    min-height: 4px;
    display: block;
    align-self: end;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, #ff6a00, #6f4033);
}

.metrics-bar small {
    color: #7c675c;
    font-size: 11px;
}

.metrics-bar b {
    color: #221311;
    font-size: 12px;
}

.metrics-history-card {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.metrics-history-table-wrap {
    overflow-x: auto;
}

.metrics-history-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.metrics-history-table th,
.metrics-history-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(78, 52, 46, 0.12);
    text-align: left;
    vertical-align: top;
}

.metrics-history-table th {
    color: #8c7a70;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metrics-history-table td {
    color: #4d3b35;
    font-size: 14px;
    font-weight: 700;
}

.metrics-history-table time,
.metrics-history-table strong {
    display: block;
    color: #221311;
    font-weight: 900;
}

.metrics-history-table small {
    display: block;
    margin-top: 3px;
    color: #8c7a70;
    font-size: 12px;
    font-weight: 700;
}

.metrics-history-table code {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f5eee8;
    color: #6f4033;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
}

.metrics-history-empty {
    color: #8c7a70;
    text-align: center;
}

@media (max-width: 760px) {
    .context-header {
        min-height: 92px;
        padding-inline: 18px;
    }

    .context-header-group {
        width: min(100%, 176px);
    }

    .menu-status-tag {
        top: 30px;
        right: 22px;
        transform: none;
        padding-left: 9px;
    }

    .menu-status-label {
        font-size: 0.54rem;
        letter-spacing: 0.12em;
    }

    .menu-status-time {
        font-size: 0.75rem;
    }

    .quality-signature {
        width: min(calc(100% - 36px), 540px);
        margin-top: 0;
        margin-bottom: 18px;
        padding-top: 2px;
    }

    .quality-signature-text {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .whatsapp-float {
        right: 16px;
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        width: 58px;
        min-height: 58px;
        justify-content: center;
        padding: 9px;
    }

    .whatsapp-float-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .whatsapp-float.is-cart-visible {
        bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    }

    .orders-float {
        right: 84px;
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        min-width: 64px;
        min-height: 54px;
        padding: 8px 10px;
    }

    .orders-float.is-cart-visible {
        bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    }

    .metrics-funnel-step {
        grid-template-columns: 1fr;
    }

    .metrics-funnel-step b {
        text-align: left;
    }
}

.layout.public-layout.order-closed-page {
    width: min(560px, calc(100% - 32px));
    padding: 32px 0;
}
