/* Scoped to Food; preserves native contact actions and manual sequences in other products. */
html.food-app-layout .fr-automation> :not(.fr-message-page){display:none!important}
.fr-message-page,.fr-contacts-wrap{max-width:1100px;margin:auto;color:#332d30;font-family:var(--fluxo-font-ui,Inter,system-ui)}
.fr-heading{margin:0 0 22px}.fr-heading h2{font-size:24px;line-height:1.2;letter-spacing:-.7px;font-weight:750;margin:0 0 8px}.fr-heading p,.fr-connection p,.fr-trigger,.fr-footnote{font-size:13px;line-height:1.5;color:#82767b;margin:4px 0}
.fr-connection{background:#fff;border:1px solid #eadfe3;border-radius:20px;padding:20px;display:grid;grid-template-columns:1fr auto;gap:18px;margin-bottom:22px}.fr-switch{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650;cursor:pointer}.fr-switch input{accent-color:var(--ff-accent,var(--food-ui-action,#bd123d));width:19px;height:19px}.fr-number{grid-column:1/-1;font-size:12px;font-weight:650;display:grid;gap:8px}.fr-number select{width:100%;min-height:44px;border:1px solid #e5dce0;border-radius:12px;background:#fcfafb;padding:10px 12px;color:#44383e;font:inherit}
.fr-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fr-template{min-width:0;border:1px solid #eadfe3;border-radius:18px;background:#fff;padding:18px;display:flex;flex-direction:column}.fr-template-heading{display:flex;align-items:center;gap:10px}.fr-step{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--food-ui-surface,#fff0f4);color:var(--ff-accent,var(--food-ui-action,#bd123d));font-size:12px;font-weight:750;flex-shrink:0}.fr-template h3{font-size:15px;font-weight:700;flex:1;line-height:1.3;margin:0}.fr-badge{border-radius:30px;background:#f4f1f2;padding:5px 8px;font-size:10px;white-space:nowrap;color:#85767c}.fr-badge.is-on{background:#eaf5ef;color:#31734e}.fr-trigger{margin:12px 0;font-size:12px;min-height:36px}.fr-excerpt{white-space:pre-line;overflow-wrap:anywhere;background:#faf7f8;border-radius:12px;padding:12px;font-size:13px;line-height:1.55;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}.fr-template button{display:flex;justify-content:space-between;align-items:center;min-height:42px;font-size:13px;font-weight:700;color:var(--ff-accent,var(--food-ui-action,#bd123d));border:0;background:none;text-align:left}
.fr-save{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0 10px;flex-wrap:wrap}.fr-save p{flex:1;font-size:13px;min-width:180px;color:#796a70}.fr-primary{border:0!important;color:white!important;background:var(--ff-accent,var(--food-ui-action,#bd123d))!important;font-weight:700!important;padding:12px 18px;border-radius:12px;min-height:44px;font-size:14px}.fr-primary:disabled{opacity:.55}.fr-save .is-error{color:var(--food-ui-action,#a62b35)}.fr-footnote{font-size:11px}.fr-history{border-top:1px solid #e7dfe2;margin-top:22px;padding-top:16px;font-size:13px}.fr-history summary{cursor:pointer;font-weight:650;padding:8px 0}.fr-history p{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid #eee6e9}.fr-history span,.fr-history small{color:#81737a}
.fr-dialog{padding:0;border:1px solid #eee4e8;border-radius:24px;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 36px);color:#382e33;background:#fff;box-shadow:0 22px 90px #32212c30;font-family:var(--fluxo-font-ui,Inter,system-ui)}.fr-dialog::backdrop{background:#23151f66;backdrop-filter:blur(5px)}.fr-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 38px)}.fr-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid #eee6e9}.fr-dialog h2{font-size:20px;font-weight:750;margin:3px 0 0;line-height:1.3}.fr-dialog small{font-size:11px;color:#867780}.fr-dialog [aria-label=Fechar]{width:40px;height:40px;flex-shrink:0;border:1px solid #ede4e8;border-radius:50%;font-size:26px;color:#786771;background:#faf7f8}.fr-dialog-body{padding:18px 22px;overflow-y:auto;min-height:0}.fr-dialog-body>p{font-size:13px;color:#887780;margin:0 0 15px;line-height:1.5}.fr-dialog-body>label{display:flex;font-size:13px;font-weight:650;margin-bottom:10px}.fr-dialog-body>.fr-switch{margin-bottom:20px}.fr-dialog textarea{width:100%;box-sizing:border-box;background:#fff;border:1px solid #dfd3d9;border-radius:12px;padding:12px;font:14px/1.5 var(--fluxo-font-ui,Inter,system-ui);resize:vertical;min-height:130px}.fr-dialog textarea:focus{outline:2px solid color-mix(in srgb, var(--food-ui-action,rgb(198 30 81)) 25.098%, transparent);border-color:var(--ff-accent,var(--food-ui-action,#bd123d))}.fr-variables{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.fr-variables button{background:var(--food-ui-surface,#f9f3f5);color:var(--food-ui-action,#9e2850);border:1px solid var(--food-ui-soft,#ecdce3);border-radius:8px;font-size:11px;min-height:34px;padding:6px 8px}.fr-preview{margin-top:20px;background:#f5f6f3;padding:14px;border-radius:14px}.fr-preview span{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#7f857a}.fr-preview p{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.55}.fr-dialog footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #eee6e9;padding:14px 22px}.fr-dialog footer button{min-height:44px;padding:10px 14px;font-size:13px;font-weight:650;border-radius:12px;background:#faf7f8;color:#776770}.fr-dialog button:focus-visible,.fr-message-page button:focus-visible{outline:2px solid var(--ff-accent,var(--food-ui-action,#bd123d));outline-offset:3px}
html.food-app-layout .fr-contacts>.ff-tab-heading{display:none!important}.fr-contacts .fr-contact-heading{margin-bottom:18px!important}.fr-contacts .fr-contact-heading h2{font-size:24px;letter-spacing:-.6px}.fr-contacts .fr-contact-heading>div:last-child{display:none}/* Legacy import/export controls are placeholders, not working actions. */
.fr-contacts .fr-contact-filters{background:#fff!important;border:1px solid #eadfe3!important;border-radius:18px!important;padding:16px!important;gap:12px!important}.fr-contacts .fr-contact-filters>.fr-fields{display:grid!important;grid-template-columns:minmax(160px,2fr) repeat(3,minmax(100px,1fr));gap:8px!important}.fr-contacts .fr-contact-filters input:not([type=checkbox]),.fr-contacts .fr-contact-filters select{min-width:0!important;width:100%;min-height:42px;border-radius:10px!important;background:#fcfafb!important;font-size:13px!important}.fr-contacts .fr-contact-filters button{min-height:40px;border-radius:10px;font-size:12px}.fr-contacts .fr-contact-filters label{font-size:12px;line-height:1.4}.fr-contacts #contacts-no-response-filter{accent-color:var(--ff-accent,var(--food-ui-action,#bd123d))}.fr-contacts .fr-contact-list{border-radius:16px!important;border:1px solid #eadfe3!important;box-shadow:none!important}.fr-contacts table{min-width:0!important;width:100%;table-layout:fixed}.fr-contacts th:first-child{width:34%}.fr-contacts th:last-child{width:95px}.fr-contacts td{overflow-wrap:anywhere}.fr-contacts td:nth-child(4){white-space:normal!important;max-width:none!important}.fr-contacts td button{min-height:40px}.fr-contacts td:first-child .flex>div:last-child{min-width:0}.fr-contacts td:first-child .flex>div:first-child{flex-shrink:0}
@media(max-width:699px){.fr-connection{grid-template-columns:1fr;padding:16px;gap:14px}.fr-templates{grid-template-columns:1fr;gap:10px}.fr-template{padding:15px}.fr-trigger{min-height:0;margin:9px 0}.fr-excerpt{-webkit-line-clamp:2;font-size:12px}.fr-heading h2{font-size:22px}.fr-save{align-items:stretch;gap:10px}.fr-save .fr-primary{width:100%}.fr-contacts .fr-contact-filters>.fr-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fr-contacts #contacts-search{grid-column:1/-1}.fr-contacts #contacts-period-filter{grid-column:1/-1}.fr-contacts #contacts-custom-period>div{flex:1;min-width:0}.fr-contacts .fr-contact-filters>div:last-child{gap:10px}.fr-contacts .fr-contact-filters>div:last-child label{width:100%;margin:3px 0}.fr-contacts .fr-contact-list{border:0!important;overflow:visible!important}.fr-contacts table,.fr-contacts tbody{display:block}.fr-contacts thead{display:none}.fr-contacts tr{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:15px;margin:0 0 10px;border:1px solid #eadfe3!important;border-radius:16px;background:#fff!important}.fr-contacts td{padding:0!important;min-width:0;border:0!important}.fr-contacts td:first-child{grid-column:1/-1;margin-bottom:4px}.fr-contacts td:nth-child(2){grid-column:2;grid-row:2;text-align:right}.fr-contacts td:nth-child(3){grid-column:1;grid-row:2;font-size:12px}.fr-contacts td:nth-child(4){grid-column:1;grid-row:3;font-size:11px}.fr-contacts td:nth-child(5){grid-column:2;grid-row:3}.fr-contacts td:nth-child(3)::before,.fr-contacts td:nth-child(4)::before{content:attr(data-label);display:block;font-size:9px;color:#97888f;font-weight:500;margin-bottom:3px}.fr-contacts td[colspan]{grid-column:1/-1;padding:16px!important}.fr-dialog header,.fr-dialog-body{padding:16px}.fr-dialog footer{padding:12px 16px}.fr-dialog h2{font-size:18px}}
@media(prefers-reduced-motion:no-preference){.fr-template button,.fr-primary{transition:filter .18s}.fr-template button:hover,.fr-primary:hover{filter:brightness(.94)}}

.fr-contacts .fr-contact-filters:not(.fr-expanded) .fr-fields{grid-template-columns:minmax(0,1fr) auto!important}
.fr-contacts .fr-contact-filters:not(.fr-expanded) #contacts-search{grid-column:auto!important}
.fr-contacts [data-contact-filters]{border:1px solid #e7dce1;padding:8px 12px;background:#faf6f8;font-weight:650;color:var(--ff-accent)}
.fr-contacts .fr-contact-filters:not(.fr-expanded) select,.fr-contacts .fr-contact-filters:not(.fr-expanded) .fr-filter-actions,.fr-contacts .fr-contact-filters:not(.fr-expanded) #contacts-custom-period{display:none!important}
.fr-contacts .fr-contact-filters.fr-expanded [data-contact-filters]{grid-column:1/-1;justify-self:end}
.fr-contacts #contacts-status-filter{font-size:12px!important}
.fr-history [data-refresh]{min-height:40px;font-weight:650;color:var(--ff-accent)}
.fr-excerpt{display:block;max-height:5.5em;overflow:hidden;flex:none}
