/* Fluxo Food — marca vermelha exclusiva (#E11D48 / #BE123C / #fff1f2) */
html.fluxo-food-app {
    --flux-brand: var(--food-ui-action,#E11D48);
    --flux-brand-hover: var(--food-ui-hover,#BE123C);
    --flux-brand-muted: var(--food-ui-surface,#fff1f2);
    --flux-food-red: var(--food-ui-action,#E11D48);
    --flux-food-red-hover: var(--food-ui-hover,#BE123C);
    --flux-food-red-muted: var(--food-ui-surface,#fff1f2);
    --flux-food-red-rgb: var(--food-ui-action-rgb,225, 29, 72);
}

/* Home — destaques decorativos do dashboard restaurante */
html.fluxo-food-app #tab-dashboard[data-flux-accent="resto"],
html.fluxo-food-app #tab-dashboard:has([data-flux-accent="resto"]) {
    --flux-dash-accent: var(--food-ui-action,#E11D48);
    --flux-dash-accent-rgb: var(--food-ui-action-rgb,225, 29, 72);
    --flux-dash-accent-soft: color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 12.000%, transparent);
    --flux-dash-glow: color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 24.000%, transparent);
}

html.fluxo-food-app #dashboard-panel-segment [data-flux-accent="resto"] .text-emerald-600,
html.fluxo-food-app #dashboard-panel-segment [data-flux-accent="resto"] .text-emerald-700 {
    color: var(--flux-food-red) !important;
}

html.fluxo-food-app #dashboard-panel-segment [data-flux-accent="resto"] .bg-emerald-50.text-emerald-700 {
    background-color: var(--flux-food-red-muted) !important;
    color: var(--food-ui-action,#BE123C) !important;
}

/* Controles roxos de marca → vermelho (exceto WhatsApp oficial em #tab-channels) */
html.fluxo-food-app #app-container .text-\[\#6E42FF\],
html.fluxo-food-app #app-container .text-\[\#6e42ff\],
html.fluxo-food-app #app-container .hover\:text-\[\#6E42FF\]:hover,
html.fluxo-food-app #app-container .text-violet-600,
html.fluxo-food-app #app-container .text-violet-700 {
    color: var(--flux-food-red) !important;
}

html.fluxo-food-app #app-container .bg-\[\#6E42FF\],
html.fluxo-food-app #app-container .bg-\[\#6e42ff\],
html.fluxo-food-app #app-container button.bg-\[\#6E42FF\],
html.fluxo-food-app #app-container .hover\:bg-\[\#6E42FF\]:hover {
    background-color: var(--flux-food-red) !important;
}

html.fluxo-food-app #app-container .hover\:bg-\[\#5a36e6\]:hover {
    background-color: var(--flux-food-red-hover) !important;
}

html.fluxo-food-app #app-container .border-\[\#6E42FF\],
html.fluxo-food-app #app-container .hover\:border-\[\#6E42FF\]:hover,
html.fluxo-food-app #app-container .focus\:border-\[\#6E42FF\]:focus {
    border-color: var(--flux-food-red) !important;
}

html.fluxo-food-app #app-container .focus\:ring-\[\#6E42FF\]\/20:focus,
html.fluxo-food-app #app-container .ring-\[\#6E42FF\]\/20:focus {
    --tw-ring-color: rgba(var(--flux-food-red-rgb), 0.22) !important;
}

html.fluxo-food-app #app-container .shadow-\[\#6E42FF\]\/20,
html.fluxo-food-app #app-container .shadow-\[\#6E42FF\]\/25 {
    --tw-shadow-color: rgba(var(--flux-food-red-rgb), 0.28) !important;
}

html.fluxo-food-app #app-container .bg-\[\#f0ebff\],
html.fluxo-food-app #app-container .from-\[\#f0ebff\],
html.fluxo-food-app #app-container .bg-violet-50,
html.fluxo-food-app #app-container .bg-violet-100,
html.fluxo-food-app #app-container .hover\:bg-violet-50:hover {
    background-color: var(--flux-food-red-muted) !important;
}

html.fluxo-food-app #app-container .from-\[\#f0ebff\]\/80 {
    --tw-gradient-from: rgb(255 241 242 / 0.8) !important;
    --tw-gradient-to: rgb(255 241 242 / 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html.fluxo-food-app #app-container .accent-\[\#6E42FF\],
html.fluxo-food-app #app-container [class*="accent-\[\#6E42FF\]"] {
    accent-color: var(--flux-food-red) !important;
}

/* Conta */
html.fluxo-food-app #tab-profile .garage-acct__tabs [data-profile-tab].bg-white {
    color: var(--flux-food-red) !important;
}

html.fluxo-food-app #tab-profile .garage-acct__tabs .garage-acct__tab--link:hover {
    color: var(--flux-food-red) !important;
}

/* PDV — controles primários e preços */
html.fluxo-food-app #rest-pdv-mount [data-rest-type].bg-emerald-600,
html.fluxo-food-app #rest-pdv-mount #rest-pdv-checkout.bg-emerald-600 {
    background-color: var(--flux-food-red) !important;
}

html.fluxo-food-app #rest-pdv-mount #rest-pdv-checkout.bg-emerald-600:hover {
    background-color: var(--flux-food-red-hover) !important;
}

html.fluxo-food-app #rest-pdv-mount [data-rest-add]:hover {
    border-color: rgba(var(--flux-food-red-rgb), 0.55) !important;
}

html.fluxo-food-app #rest-pdv-mount .text-emerald-600 {
    color: var(--flux-food-red) !important;
}

/* Cardápio — primários e destaques (mantém “Pronto para copiar” em verde de sucesso) */
html.fluxo-food-app #rest-menu-mount #rest-pub-save.bg-emerald-600,
html.fluxo-food-app #rest-menu-mount #rest-add-prod.bg-emerald-600 {
    background-color: var(--flux-food-red) !important;
}

html.fluxo-food-app #rest-menu-mount #rest-pub-save:hover,
html.fluxo-food-app #rest-menu-mount #rest-add-prod:hover {
    background-color: var(--flux-food-red-hover) !important;
}

html.fluxo-food-app #rest-menu-mount .rest-pub-card .text-emerald-600,
html.fluxo-food-app #rest-menu-mount ol .text-emerald-600,
html.fluxo-food-app #rest-menu-mount #rest-pub-enabled.text-emerald-600 {
    color: var(--flux-food-red) !important;
}

html.fluxo-food-app #rest-menu-mount #rest-pub-enabled.text-emerald-600 {
    accent-color: var(--flux-food-red) !important;
}

/* Estoque e configurações — botões primários de ação */
html.fluxo-food-app #rest-stock-mount #rest-stock-save.bg-emerald-600,
html.fluxo-food-app #rest-settings-mount #rest-shop-save.bg-emerald-600 {
    background-color: var(--flux-food-red) !important;
}

html.fluxo-food-app #rest-stock-mount #rest-stock-save.bg-emerald-600:hover,
html.fluxo-food-app #rest-settings-mount #rest-shop-save.bg-emerald-600:hover {
    background-color: var(--flux-food-red-hover) !important;
}

html.fluxo-food-app #rest-settings-mount #rest-ifood-autoconfirm.text-emerald-600 {
    accent-color: var(--flux-food-red) !important;
    color: var(--flux-food-red) !important;
}

/* Kanban — preços em vermelho; mantém avançar/atualizar em verde semântico */
html.fluxo-food-app #rest-kanban-mount .text-emerald-600.font-bold {
    color: var(--flux-food-red) !important;
}

/* Elementos de marca fora de #app-container e gradientes da conta. */
html.fluxo-food-app #support-fab,
html.fluxo-food-app #genius-guide-fab,
html.fluxo-food-app #profile-avatar-preview-inner,
html.fluxo-food-app #header-profile-avatar {
    background: linear-gradient(135deg, var(--food-ui-action,#E11D48), var(--food-ui-action,#BE123C)) !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 28.000%, transparent) !important;
}

html.fluxo-food-app #support-fab:hover,
html.fluxo-food-app #genius-guide-fab:hover {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 36.000%, transparent) !important;
}

html.fluxo-food-app #login-card .remember-me-toggle__input:checked + .remember-me-toggle__box {
    background: var(--flux-food-red) !important;
    border-color: var(--flux-food-red) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 15.000%, transparent) !important;
}

html.fluxo-food-app #login-card .remember-me-toggle__input:focus-visible + .remember-me-toggle__box {
    outline: 2px solid var(--flux-food-red-hover);
    outline-offset: 3px;
}
