:root {
    --ifood-red: #ea1d2c;
    --ifood-red-hover: #d01826;
    --ifood-red-soft: #fff5f6;
    --ifood-red-border: #ffcdd2;
    --ifood-bg: #f5f5f5;
    --ifood-surface: #ffffff;
    --ifood-text: #3e3e3e;
    --ifood-muted: #717171;
    --ifood-border: #ebebeb;
    --ifood-sidebar-w: 260px;
    --ifood-radius: 12px;
    --ifood-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ifood-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

.ifood-panel-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ifood-font);
    font-size: 14px;
    color: var(--ifood-text);
    background: var(--ifood-bg);
}

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

.ifood-sidebar {
    display: none;
    width: var(--ifood-sidebar-w);
    flex-shrink: 0;
    flex-direction: column;
    background: var(--ifood-surface);
    border-right: 1px solid var(--ifood-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .ifood-sidebar {
        display: flex;
    }
}

.ifood-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--ifood-border);
}

.ifood-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ifood-red);
    letter-spacing: -0.02em;
}

.ifood-brand-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ifood-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.ifood-brand-sub {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ifood-text);
    line-height: 1.35;
}

.ifood-brand-tag {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ifood-muted);
}

.ifood-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.625rem;
}

.ifood-nav-section {
    margin-bottom: 0.5rem;
}

.ifood-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ifood-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.ifood-nav-toggle:hover {
    background: #f9f9f9;
}

.ifood-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: var(--ifood-text);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.ifood-nav-link:hover {
    background: #f9f9f9;
    color: var(--ifood-text);
}

.ifood-nav-link.is-active,
.ifood-nav-sublink.is-active {
    background: var(--ifood-red-soft);
    color: var(--ifood-red);
    font-weight: 600;
}

.ifood-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.ifood-nav-link.is-active .ifood-nav-icon,
.ifood-nav-sublink.is-active .ifood-nav-icon {
    opacity: 1;
}

.ifood-nav-chevron {
    font-size: 0.65rem;
    color: var(--ifood-muted);
    transition: transform 0.2s;
}

.ifood-nav-chevron.is-open {
    transform: rotate(180deg);
}

.ifood-nav-sub {
    margin: 0.25rem 0 0.5rem 2rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--ifood-border);
}

.ifood-nav-sublink {
    display: block;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    color: var(--ifood-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}

.ifood-nav-sublink:hover {
    color: var(--ifood-text);
    background: #fafafa;
}

.ifood-sidebar-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ifood-border);
    font-size: 0.75rem;
    color: var(--ifood-muted);
}

.ifood-sidebar-foot email,
.ifood-sidebar-foot .ifood-user-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifood-btn-ghost {
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--ifood-red);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.ifood-btn-ghost:hover {
    text-decoration: underline;
}

.ifood-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.ifood-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--ifood-surface);
    border-bottom: 1px solid var(--ifood-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.ifood-topbar-title {
    font-weight: 600;
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifood-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ifood-border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--ifood-text);
}

@media (min-width: 1024px) {
    .ifood-menu-btn {
        display: none;
    }
}

.ifood-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.ifood-drawer .ifood-menu-btn {
    display: inline-flex !important;
}

.ifood-content {
    flex: 1;
    padding: 0;
    width: 100%;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ifood-page-sheet {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem;
}

@media (min-width: 768px) {
    .ifood-page-sheet {
        padding: 1.25rem 1.5rem 2rem;
    }
}

@media (min-width: 1280px) {
    .ifood-page-sheet {
        padding: 1.5rem 2rem 2.5rem;
    }
}

.ifood-alert {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--ifood-radius);
    font-size: 0.875rem;
}

.ifood-alert-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.ifood-alert-info {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #6d4c00;
}

.ifood-alert-error {
    background: var(--ifood-red-soft);
    border: 1px solid var(--ifood-red-border);
    color: #b71c1c;
}

.ifood-drawer-wrap {
    position: fixed;
    inset: 0;
    z-index: 40;
}

@media (min-width: 1024px) {
    .ifood-drawer-wrap {
        display: none !important;
    }
}

.ifood-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 40;
}

.ifood-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 88vw);
    z-index: 50;
    background: var(--ifood-surface);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.ifood-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ifood-border);
}

.ifood-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ifood-border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    color: var(--ifood-text);
}

.ifood-notif-btn:hover {
    background: #fafafa;
}

.ifood-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ifood-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifood-notif-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 60;
    overflow: hidden;
}

.ifood-notif-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ifood-border);
    font-size: 0.75rem;
    color: var(--ifood-muted);
}

.ifood-notif-menu-head a {
    color: var(--ifood-red);
    font-weight: 600;
    text-decoration: none;
}

.ifood-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.ifood-notif-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ifood-border);
    font-size: 0.8125rem;
}

.ifood-notif-list li.is-read {
    opacity: 0.65;
}

.ifood-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ifood-text);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.ifood-page-sub {
    color: var(--ifood-muted);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
}

.ifood-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ifood-stat-card {
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    padding: 1.25rem;
    box-shadow: var(--ifood-shadow);
}

.ifood-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ifood-muted);
}

.ifood-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ifood-red);
    margin-top: 0.35rem;
}

.ifood-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 1280px) {
    .ifood-shortcut-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .ifood-stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.ifood-shortcut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.125rem;
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    text-decoration: none;
    color: var(--ifood-text);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--ifood-shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ifood-shortcut:hover {
    border-color: var(--ifood-red-border);
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.08);
    color: var(--ifood-red);
}

.ifood-shortcut span:last-child {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--ifood-muted);
}

.ifood-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--ifood-red);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.ifood-btn-primary:hover {
    background: var(--ifood-red-hover);
}

.ifood-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--ifood-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ifood-text) !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.ifood-btn-secondary:hover {
    background: #fafafa;
}

/* Compat: telas internas ainda com classes Tailwind escuras */
.ifood-panel-content [class*="text-stone-100"],
.ifood-panel-content [class*="text-stone-200"],
.ifood-panel-content [class*="text-white"]:not(.ifood-btn-primary *) {
    color: var(--ifood-text) !important;
}

.ifood-panel-content [class*="text-stone-300"] {
    color: var(--ifood-text) !important;
}

.ifood-panel-content [class*="text-stone-400"],
.ifood-panel-content [class*="text-stone-500"],
.ifood-panel-content [class*="text-stone-600"] {
    color: var(--ifood-muted) !important;
}

.ifood-panel-content [class*="bg-stone-950"],
.ifood-panel-content [class*="bg-stone-900"],
.ifood-panel-content [class*="bg-stone-900/"],
.ifood-panel-content [class*="bg-stone-800"] {
    background-color: var(--ifood-surface) !important;
}

.ifood-panel-content button[class*="bg-stone-800"] {
    background-color: #f5f5f5 !important;
    color: var(--ifood-text) !important;
}

.ifood-panel-content [class*="text-violet"],
.ifood-panel-content [class*="bg-violet"] {
    color: var(--ifood-red) !important;
}

.ifood-panel-content [class*="bg-violet"] {
    background-color: var(--ifood-red-soft) !important;
    border-color: var(--ifood-red-border) !important;
}

.ifood-panel-content [class*="border-stone-800"],
.ifood-panel-content [class*="border-stone-700"],
.ifood-panel-content [class*="border-stone-600"] {
    border-color: var(--ifood-border) !important;
}

.ifood-panel-content input[class*="bg-stone"],
.ifood-panel-content select[class*="bg-stone"],
.ifood-panel-content textarea[class*="bg-stone"] {
    background-color: #fff !important;
    color: var(--ifood-text) !important;
}

.ifood-panel-content a[class*="bg-amber-500"],
.ifood-panel-content button[class*="bg-amber-500"] {
    background-color: var(--ifood-red) !important;
    color: #fff !important;
}

.ifood-panel-content a[class*="bg-amber-500"]:hover,
.ifood-panel-content button[class*="bg-amber-500"]:hover {
    background-color: var(--ifood-red-hover) !important;
}

.ifood-panel-content [class*="text-amber-400"],
.ifood-panel-content [class*="text-amber-200"] {
    color: var(--ifood-red) !important;
}

.ifood-panel-content [class*="hover:bg-stone-800"]:hover,
.ifood-panel-content tr[class*="hover:bg-stone"]:hover {
    background-color: #fafafa !important;
}

.ifood-panel-content [class*="divide-stone"] > * + * {
    border-color: var(--ifood-border) !important;
}

/* Login estilo iFood */
.ifood-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--ifood-bg);
    font-family: var(--ifood-font);
}

.ifood-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ifood-surface);
    border-radius: 16px;
    border: 1px solid var(--ifood-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.ifood-login-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--ifood-bg);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.ifood-login-tab {
    flex: 1;
    padding: 0.625rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ifood-muted);
    cursor: pointer;
}

.ifood-login-tab.is-active {
    background: #fff;
    color: var(--ifood-red);
    box-shadow: var(--ifood-shadow);
}

.ifood-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ifood-muted);
    margin-bottom: 0.35rem;
}

.ifood-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ifood-border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9375rem;
}

.ifood-field input:focus {
    outline: none;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.ifood-portal-page {
    min-height: 100vh;
    background: var(--ifood-bg);
    font-family: var(--ifood-font);
    padding: 2rem 1.25rem;
}

.ifood-portal-hero {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.ifood-portal-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ifood-red);
    margin: 0;
    letter-spacing: -0.03em;
}

.ifood-portal-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ifood-border);
    padding: 1.75rem;
    box-shadow: var(--ifood-shadow);
}

[x-cloak] {
    display: none !important;
}

/* ——— Responsividade das páginas internas ——— */
.ifood-panel-body {
    overflow-x: hidden;
}

.ifood-panel-content {
    min-width: 0;
    max-width: 100%;
}

.ifood-panel-content img,
.ifood-panel-content video,
.ifood-panel-content iframe {
    max-width: 100%;
    height: auto;
}

.ifood-page-sheet,
.ifood-page-sheet .rp-page-full {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Tailwind max-width nos conteúdos → largura total do painel */
.ifood-panel-content [class*="max-w-lg"]:not(.ifood-card-list-item *),
.ifood-panel-content [class*="max-w-xl"],
.ifood-panel-content [class*="max-w-2xl"],
.ifood-panel-content [class*="max-w-3xl"],
.ifood-panel-content [class*="max-w-4xl"],
.ifood-panel-content [class*="max-w-5xl"] {
    max-width: 100% !important;
    width: 100%;
}

.ifood-panel-content .mx-auto.max-w-2xl,
.ifood-panel-content .mx-auto.max-w-3xl,
.ifood-panel-content .mx-auto.max-w-lg {
    margin-left: 0;
    margin-right: 0;
}

.ifood-panel-content .rounded-2xl.border.divide-y,
.ifood-panel-content .overflow-x-auto.rounded-2xl {
    width: 100%;
}

.ifood-panel-content .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.ifood-panel-content table {
    border-collapse: collapse;
}

.ifood-panel-content section.rounded-2xl,
.ifood-panel-content details.rounded-2xl {
    background: var(--ifood-surface) !important;
    border: 1px solid var(--ifood-border) !important;
    box-shadow: var(--ifood-shadow);
    max-width: 100%;
}

.ifood-panel-content .rounded-2xl.border.border-stone-800,
.ifood-panel-content .rounded-xl.border {
    background: var(--ifood-surface) !important;
    border-color: var(--ifood-border) !important;
    box-shadow: var(--ifood-shadow);
}

.ifood-panel-content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ifood-panel-content textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ifood-panel-content select,
select.ifood-select {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--ifood-text);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.ifood-panel-content select:focus,
select.ifood-select:focus {
    outline: none;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.ifood-filter-bar select {
    width: auto;
    flex: 0 1 14rem;
    min-width: 10rem;
}

.ifood-panel-content input[type="number"].w-24,
.ifood-panel-content input.w-24 {
    max-width: 8rem;
}

@media (max-width: 639px) {
    .ifood-page-sheet {
        padding: 0.875rem;
    }

    .ifood-topbar {
        padding: 0.75rem 0.875rem;
    }

    .ifood-page-title {
        font-size: 1.25rem;
    }

    .ifood-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .ifood-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ifood-panel-content .flex.flex-wrap.items-center.gap-3.text-sm,
    .ifood-panel-content li.flex.items-center.gap-3 {
        flex-wrap: wrap;
        align-items: flex-start !important;
    }

    .ifood-panel-content li.flex.items-center.gap-3 > .flex-1 {
        flex: 1 1 100%;
        min-width: 0;
    }

    .ifood-panel-content input[type="number"].w-24,
    .ifood-panel-content input.w-24 {
        width: 100%;
        max-width: none;
    }

    .ifood-panel-content form.flex.flex-wrap,
    .ifood-panel-content .flex.flex-col.sm\:flex-row {
        width: 100%;
    }

    .ifood-panel-content button.w-full,
    .ifood-panel-content .ifood-btn-primary[style*="width:100%"] {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .ifood-stat-grid {
        grid-template-columns: 1fr;
    }
}

.rp-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rp-page-form {
    width: 100%;
    max-width: 100%;
}

.rp-section form,
form.rp-section {
    display: block;
    visibility: visible;
}

.rp-page-wide {
    width: 100%;
    max-width: 100%;
}

.rp-page-full {
    width: 100%;
    max-width: 100%;
}

.daily-menu-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    width: 100%;
}

.daily-menu-head-actions form {
    margin: 0;
}

.daily-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .daily-menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.daily-menu-span-2 {
    grid-column: 1 / -1;
}

.daily-menu-grid {
    align-items: stretch;
}

.ifood-card {
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    box-shadow: var(--ifood-shadow);
    padding: 1.25rem 1.5rem;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ifood-card {
        padding: 1.5rem 1.75rem;
    }
}

.ifood-card-step {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ifood-red);
    margin: 0;
}

.ifood-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.25rem 0 0;
    color: var(--ifood-text);
    letter-spacing: -0.02em;
}

.ifood-card-desc {
    font-size: 0.8125rem;
    color: var(--ifood-muted);
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.ifood-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ifood-card-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ifood-card-fields.ifood-card-fields-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.ifood-field-block label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ifood-muted);
    margin-bottom: 0.35rem;
}

.ifood-field-block input,
.ifood-field-block select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    background: #fff;
    color: var(--ifood-text);
    box-sizing: border-box;
}

.ifood-field-block input:focus,
.ifood-field-block select:focus {
    outline: none;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

.ifood-field-hint {
    font-size: 0.6875rem;
    color: var(--ifood-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.ifood-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 8rem;
    max-height: min(440px, 55vh);
    overflow-y: auto;
}

.ifood-card-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    background: #fafafa;
}

.ifood-card-list-item-name {
    flex: 1 1 10rem;
    min-width: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.ifood-card-list-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--ifood-border);
    border-radius: 10px;
    color: var(--ifood-muted);
    font-size: 0.875rem;
}

.ifood-card-add-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .ifood-card-add-row {
        flex-direction: row;
        align-items: stretch;
    }

    .ifood-card-add-row select {
        flex: 1;
        min-width: 0;
    }
}

.ifood-card details.ifood-card {
    height: auto;
    padding: 0;
    overflow: hidden;
}

.ifood-card details.ifood-card > summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--ifood-text);
}

.ifood-card details.ifood-card > summary:hover {
    background: #fafafa;
}

.ifood-card details.ifood-card > div {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--ifood-border);
}

.ifood-btn-save {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--ifood-red);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.ifood-btn-save:hover {
    background: var(--ifood-red-hover);
}

.ifood-btn-add,
a.ifood-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: var(--ifood-red);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

a.ifood-btn-add:hover {
    background: var(--ifood-red-hover);
}

.ifood-btn-publish {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: #2e7d32;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.ifood-btn-outline,
a.ifood-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--ifood-text) !important;
    text-decoration: none;
}

.rp-section {
    border-radius: var(--ifood-radius);
    border: 1px solid var(--ifood-border);
    background: var(--ifood-surface);
    padding: 1rem 1.125rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ifood-shadow);
}

@media (min-width: 640px) {
    .rp-section {
        padding: 1.25rem 1.5rem;
    }
}

.rp-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rp-item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--ifood-border);
    background: #fff;
}

.rp-item-row .rp-item-name {
    flex: 1 1 12rem;
    min-width: 0;
    font-weight: 600;
    word-break: break-word;
}

.rp-item-row .rp-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

@media (max-width: 479px) {
    .rp-item-row .rp-item-meta,
    .rp-item-row .rp-item-name {
        flex: 1 1 100%;
    }
}

.ifood-panel-content a:hover[class*="hover:text-white"] {
    color: var(--ifood-red) !important;
}

.ifood-panel-content details > summary {
    list-style: none;
}

.ifood-panel-content details > summary::-webkit-details-marker {
    display: none;
}

.ifood-panel-content .scrollbar-thin,
.ifood-panel-content .overflow-x-auto.scrollbar-thin {
    scrollbar-width: thin;
}

.ifood-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ifood-page-head a {
    color: var(--ifood-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.ifood-page-head a:hover {
    text-decoration: underline;
}

.ifood-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

/* Campos de formulário (não depende de type="text" no HTML) */
.ifood-input,
.ifood-panel-content .ifood-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--ifood-border) !important;
    border-radius: 10px;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--ifood-text);
    background: #fff !important;
}

.ifood-input:focus {
    outline: none;
    border-color: var(--ifood-red) !important;
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.ifood-input-number {
    width: 100%;
    max-width: 5.5rem;
}

.ifood-inline-form .ifood-input {
    flex: 1 1 12rem;
    min-width: 0;
    width: auto;
}

.ifood-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ifood-category-item {
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    box-shadow: var(--ifood-shadow);
    padding: 1rem 1.25rem;
}

.ifood-category-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ifood-category-form .ifood-input-name {
    flex: 1 1 100%;
    min-width: min(100%, 14rem);
}

@media (min-width: 640px) {
    .ifood-category-form .ifood-input-name {
        flex: 1 1 12rem;
    }
}

.ifood-category-form .ifood-category-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.ifood-category-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ifood-border);
    font-size: 0.75rem;
    color: var(--ifood-muted);
}

.ifood-category-meta button {
    color: var(--ifood-red);
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
}

.ifood-category-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ifood-muted);
    background: var(--ifood-surface);
    border: 1px dashed var(--ifood-border);
    border-radius: var(--ifood-radius);
}

.ifood-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--ifood-muted);
    white-space: nowrap;
}

.ifood-check-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--ifood-red);
    cursor: pointer;
}

.ifood-category-form input[type="text"],
.ifood-category-form input[type="number"] {
    min-height: 2.75rem;
}

.ifood-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ifood-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.ifood-filter-bar input[type="search"] {
    flex: 1 1 10rem;
    min-width: 0;
    padding: 0.625rem 1rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    font: inherit;
    font-size: 0.875rem;
    background: #fff;
}

.ifood-details-box {
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    padding: 0.75rem 1rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ifood-shadow);
}

.ifood-details-box summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ifood-text);
    list-style: none;
}

.ifood-details-box summary::-webkit-details-marker {
    display: none;
}

.ifood-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    background: var(--ifood-surface);
    box-shadow: var(--ifood-shadow);
}

.ifood-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ifood-table thead {
    background: #fafafa;
    color: var(--ifood-muted);
    text-align: left;
}

.ifood-table th {
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--ifood-border);
}

.ifood-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--ifood-border);
    vertical-align: middle;
    color: var(--ifood-text);
}

.ifood-table tbody tr:last-child td {
    border-bottom: none;
}

.ifood-table tbody tr:hover {
    background: #fffafa;
}

.ifood-table td.ifood-table-actions {
    text-align: right;
    white-space: nowrap;
}

.ifood-product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ifood-product-cell img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ifood-product-name {
    font-weight: 600;
    margin: 0;
}

.ifood-product-meta {
    font-size: 0.6875rem;
    color: var(--ifood-muted);
    font-family: ui-monospace, monospace;
    margin: 0.15rem 0 0;
}

.ifood-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.ifood-badge-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.ifood-badge-warn {
    background: #fff8e1;
    color: #e65100;
}

.ifood-badge-low {
    color: #e65100;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ifood-badge-danger {
    background: #ffebee;
    color: #c62828;
}

.ifood-platform-banner {
    background: var(--ifood-red-soft);
    border-bottom: 1px solid rgba(234, 29, 44, 0.2);
    color: var(--ifood-text);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.ifood-platform-banner a {
    color: var(--ifood-red);
    font-weight: 600;
}

.ifood-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ifood-form-section {
    margin-bottom: 2rem;
}

.ifood-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.ifood-form-section-desc {
    font-size: 0.8125rem;
    color: var(--ifood-muted);
    margin: 0 0 1rem;
}

.ifood-card.ifood-card-highlight {
    border-color: rgba(234, 29, 44, 0.25);
    background: var(--ifood-red-soft);
}

.ifood-btn-danger {
    border: 1px solid #ef9a9a;
    background: #fff;
    color: #c62828;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
}

.ifood-btn-danger:hover {
    background: #ffebee;
}

.ifood-back-link {
    font-size: 0.8125rem;
    color: var(--ifood-muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ifood-back-link:hover {
    color: var(--ifood-red);
}

.ifood-link-action {
    color: var(--ifood-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8125rem;
}

.ifood-link-action:hover {
    text-decoration: underline;
}

.ifood-link-danger {
    color: var(--ifood-red);
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0;
}

.ifood-table-empty {
    text-align: center;
    padding: 2.5rem 1rem !important;
    color: var(--ifood-muted);
}

.ifood-pagination {
    margin-top: 1rem;
}

.ifood-pagination nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.ifood-pagination a,
.ifood-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--ifood-border);
    border-radius: 8px;
    font-size: 0.8125rem;
    text-decoration: none;
    color: var(--ifood-text);
    background: #fff;
}

.ifood-pagination span[aria-current="page"] span,
.ifood-pagination .bg-white {
    background: var(--ifood-red-soft) !important;
    border-color: var(--ifood-red-border) !important;
    color: var(--ifood-red) !important;
    font-weight: 700;
}

/* Mapa de mesas — tiles compactos (não esticar na tela inteira) */
.ifood-table-room {
    background: var(--ifood-surface);
    border: 1px solid var(--ifood-border);
    border-radius: var(--ifood-radius);
    box-shadow: var(--ifood-shadow);
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.ifood-table-room-title {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ifood-muted);
    margin: 0 0 1rem;
}

.ifood-table-room-empty {
    text-align: center;
    color: var(--ifood-muted);
    font-size: 0.875rem;
    padding: 2rem 1rem;
}

.ifood-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 5.75rem));
    gap: 0.625rem;
    justify-content: center;
    max-width: 100%;
}

.ifood-table-cell {
    position: relative;
    width: 5.75rem;
    max-width: 100%;
}

.ifood-table-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    height: 5.75rem;
    padding: 0.35rem;
    border: 2px solid var(--ifood-border);
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    font: inherit;
    color: var(--ifood-text);
}

.ifood-table-tile:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.ifood-table-tile-dot {
    font-size: 0.75rem;
    line-height: 1;
}

.ifood-table-tile-code {
    font-size: 1.125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ifood-table-tile--free {
    background: #e8f5e9;
    border-color: #81c784;
}

.ifood-table-tile--occupied {
    background: #ffebee;
    border-color: #e57373;
}

.ifood-table-tile--waiting {
    background: #fff8e1;
    border-color: #ffd54f;
}

.ifood-table-tile--billing {
    background: #fff3e0;
    border-color: #ffb74d;
}

.ifood-table-tile--reserved {
    background: #e3f2fd;
    border-color: #64b5f6;
}

.ifood-table-popover {
    position: absolute;
    z-index: 30;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 0.35rem);
    width: 13rem;
    max-width: 90vw;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--ifood-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ifood-table-popover-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ifood-muted);
    padding: 0.25rem 0.5rem;
    margin: 0;
}

.ifood-table-popover-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    color: var(--ifood-text);
}

.ifood-table-popover-btn:hover,
.ifood-table-popover-btn.is-active {
    background: #fafafa;
}

.ifood-table-popover-divider {
    border-top: 1px solid var(--ifood-border);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.ifood-table-popover-edit {
    color: var(--ifood-red);
    font-weight: 600;
}

.ifood-table-popover-edit-panel {
    padding: 0.35rem 0.25rem 0;
}

.ifood-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--ifood-border);
    border-radius: 12px;
    background: #fafafa;
}

.ifood-tab {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--ifood-muted);
}

.ifood-tab.is-active {
    background: var(--ifood-red);
    color: #fff;
    box-shadow: var(--ifood-shadow);
}

.ifood-back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--ifood-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.ifood-back-link:hover {
    text-decoration: underline;
}

.ifood-payment-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .ifood-payment-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.ifood-payment-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ifood-split-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.ifood-split-row .ifood-field-block {
    flex: 1 1 8rem;
    min-width: 0;
}

.ifood-split-row .ifood-field-block.ifood-field-narrow {
    flex: 0 0 7rem;
}

.ifood-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--ifood-red-soft);
    border: 1px solid var(--ifood-red-border);
    font-size: 0.875rem;
}

.ifood-payment-total strong {
    font-size: 1.125rem;
    color: var(--ifood-red);
    font-variant-numeric: tabular-nums;
}

.ifood-item-pay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 12rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ifood-item-pay-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--ifood-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
}

.ifood-item-pay-list label:has(input:checked) {
    border-color: var(--ifood-red);
    background: var(--ifood-red-soft);
}

.ifood-item-pay-list input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--ifood-red);
    flex-shrink: 0;
}

.ifood-item-pay-list .ifood-item-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--ifood-red);
    font-variant-numeric: tabular-nums;
}

.ifood-btn-remove-line {
    border: none;
    background: transparent;
    color: #c62828;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-bottom: 0.35rem;
}

.ifood-btn-remove-line:hover {
    text-decoration: underline;
}

.ifood-btn-link {
    border: none;
    background: transparent;
    color: var(--ifood-red);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.ifood-btn-link:hover {
    text-decoration: underline;
}

.ifood-saldo-highlight {
    color: var(--ifood-red);
    font-weight: 700;
}

.ifood-report-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ifood-report-preset {
    border: 1px solid var(--ifood-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ifood-text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.875rem;
    cursor: pointer;
}

.ifood-report-preset.is-active,
.ifood-report-preset:hover {
    border-color: var(--ifood-red);
    color: var(--ifood-red);
    background: var(--ifood-red-soft);
}

.ifood-report-custom-dates {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: end;
}

@media (max-width: 640px) {
    .ifood-report-custom-dates {
        grid-template-columns: 1fr;
    }
}

.ifood-report-channels {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ifood-report-channels li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ifood-border);
}

.ifood-report-channels li:last-child {
    border-bottom: none;
}
