/* Aveltrim 30.4 - Atividades fiscais modulares (escopo somente desta central) */
[data-view="fx-tax-profiles"] .fxm-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:0 0 18px}
[data-view="fx-tax-profiles"] .fxm-kicker{display:block;color:#24783e;letter-spacing:.09em;font-size:.68rem;font-weight:750;margin-bottom:5px}
[data-view="fx-tax-profiles"] .fxm-overview h2{font-size:1.4rem;line-height:1.25;font-weight:750;margin:0 0 6px;color:#17251e}
[data-view="fx-tax-profiles"] .fxm-overview p{font-size:.84rem;color:#657469;margin:0;line-height:1.45;max-width:650px}
[data-view="fx-tax-profiles"] .fxm-overview-actions{display:flex;gap:8px}
[data-view="fx-tax-profiles"] .fxm-new{min-height:39px;border:1px solid #187b35;border-radius:9px;background:#187b35;color:#fff;font-size:.82rem;font-weight:700;cursor:pointer;padding:8px 15px;white-space:nowrap}
[data-view="fx-tax-profiles"] .fxm-new:hover{background:#14692e}
[data-view="fx-tax-profiles"] .fxm-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 26px}
[data-view="fx-tax-profiles"] .fxm-summary>div{display:grid;gap:5px;border:1px solid #e2e9e4;padding:14px 16px;background:#fff;border-radius:11px}
[data-view="fx-tax-profiles"] .fxm-summary strong{font-size:1.48rem;font-weight:750;color:#15251e;line-height:1.12}
[data-view="fx-tax-profiles"] .fxm-summary span{font-size:.78rem;color:#677970}
[data-view="fx-tax-profiles"] .fxm-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
[data-view="fx-tax-profiles"] .fxm-section-head h3{font-size:1rem;font-weight:750;margin:0 0 4px}
[data-view="fx-tax-profiles"] .fxm-section-head p{margin:0;color:#6b7a70;font-size:.77rem}
[data-view="fx-tax-profiles"] .fxm-archived-toggle{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;color:#5b6a61;cursor:pointer;font-weight:500}
[data-view="fx-tax-profiles"] .fxm-archived-toggle input{width:16px;height:16px;accent-color:#167b38;margin:0}
[data-view="fx-tax-profiles"] .fxm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
[data-view="fx-tax-profiles"] .fxm-card{border:1px solid #dce7e0;border-radius:12px;background:#fff;padding:17px 18px;min-width:0;display:flex;flex-direction:column;gap:14px;box-shadow:0 1px 2px #13251806}
[data-view="fx-tax-profiles"] .fxm-card[data-state="archived"]{opacity:.74}
[data-view="fx-tax-profiles"] .fxm-card-head{display:flex;align-items:center;gap:11px;min-width:0;flex-wrap:wrap}
[data-view="fx-tax-profiles"] .fxm-card-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef6ef;color:#1f7b38;flex:none;font-size:20px}
[data-view="fx-tax-profiles"] .fxm-card-title{min-width:0;flex:1 1 150px;display:grid;gap:3px}
[data-view="fx-tax-profiles"] .fxm-card-title h4{margin:0;color:#17251e;font-size:.97rem;line-height:1.35;font-weight:750;overflow-wrap:anywhere}
[data-view="fx-tax-profiles"] .fxm-card-title span{color:#708176;font-size:.75rem;line-height:1.4;overflow-wrap:anywhere}
[data-view="fx-tax-profiles"] .fxm-state{border-radius:999px;padding:4px 9px;font-weight:700;font-size:.68rem;white-space:nowrap;border:1px solid #e2e7e3;background:#f2f4f3;color:#59685f}
[data-view="fx-tax-profiles"] .fxm-state[data-status="approved"]{background:#eaf7ed;border-color:#cbe9d2;color:#12682e}
[data-view="fx-tax-profiles"] .fxm-state[data-status="ready"]{background:#fff7e8;border-color:#eddbb2;color:#865a0f}
[data-view="fx-tax-profiles"] .fxm-state[data-status="draft"]{background:#eaf3fa;border-color:#d1e3ee;color:#246080}
[data-view="fx-tax-profiles"] .fxm-card-brief{flex:1;min-height:44px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:.81rem}
[data-view="fx-tax-profiles"] .fxm-card-brief>span{display:grid;gap:3px;color:#1b2e24;min-width:90px;font-weight:700}
[data-view="fx-tax-profiles"] .fxm-card-brief b{font-size:.69rem;font-weight:600;color:#708075}
[data-view="fx-tax-profiles"] .fxm-card-brief>p{color:#657368;line-height:1.45;margin:0}
[data-view="fx-tax-profiles"] .fxm-card-foot{padding-top:13px;border-top:1px solid #edf0ed;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
[data-view="fx-tax-profiles"] .fxm-card-footnote{color:#728078;font-size:.73rem;line-height:1.4;flex:1 1 170px;overflow-wrap:anywhere}
[data-view="fx-tax-profiles"] .fxm-card-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
[data-view="fx-tax-profiles"] .fxm-card-actions button{border:1px solid #dce5dd;background:#fff;color:#294135;border-radius:7px;min-height:34px;padding:7px 10px;font-size:.75rem;font-weight:650;white-space:nowrap;cursor:pointer}
[data-view="fx-tax-profiles"] .fxm-card-actions button:hover{border-color:#b2d2ba;background:#f7fbf8}
[data-view="fx-tax-profiles"] .fxm-card-actions button.fxm-action-primary{background:#198138;border-color:#198138;color:#fff}
[data-view="fx-tax-profiles"] .fxm-guidance{font-size:.75rem;line-height:1.5;color:#728075;margin:17px 2px 0}
[data-view="fx-tax-profiles"] .fxm-empty{padding:16px;color:#748077;background:#f7f9f7;border:1px dashed #dce7e0;border-radius:9px}
.fxm-dialog{width:min(660px,calc(100vw - 32px));max-width:660px;max-height:86dvh;border:0;padding:0;background:#fff;border-radius:14px;box-shadow:0 24px 80px #07120d5c;color:#15271c;overflow:auto}
.fxm-dialog::backdrop{background:#0d1819a6}
.fxm-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:19px 22px 15px;border-bottom:1px solid #e5ebe6}
.fxm-dialog-head h2{margin:0;font-size:1.18rem;line-height:1.3;font-weight:750}
.fxm-dialog-head p{margin:4px 0 0;color:#64766a;font-size:.82rem}
.fxm-dialog .fxm-close{width:33px;height:33px;flex:none;border:1px solid #e2e8e3;border-radius:8px;font-size:21px;color:#66756a;background:#fff;cursor:pointer}
.fxm-dialog-body{padding:18px 22px 22px;display:grid;gap:15px;font-size:.85rem;line-height:1.48}
.fxm-approval-copy{color:#586b5f}
.fxm-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #e1e8e2;background:#f7f9f7;border-radius:9px}
.fxm-rule{display:grid;gap:4px;min-width:0}
.fxm-rule span{font-size:.72rem;color:#687a6d}
.fxm-rule strong{font-size:.87rem;color:#1b2d21;overflow-wrap:anywhere}
.fxm-audit-meta{display:flex;gap:10px;flex-wrap:wrap}
.fxm-audit-meta span{display:grid;gap:2px;flex:1 1 120px}
.fxm-audit-meta small{color:#6f7f73}
.fxm-audit-meta b{color:#293c2f;font-size:.83rem;overflow-wrap:anywhere}
.fxm-note{margin:0;background:#fffaf1;border-left:3px solid #dba83a;padding:10px 12px;color:#775916;font-size:.78rem}
.fxm-error:not([hidden]){color:#a02b2b;background:#fff4f2;padding:10px;border:1px solid #f1c9c5;border-radius:8px}
.fxm-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:5px}
.fxm-dialog-actions button{border:1px solid #dce5dd;background:#fff;color:#24342b;border-radius:8px;min-height:38px;padding:8px 13px;font-size:.82rem;font-weight:650;cursor:pointer}
.fxm-dialog-actions button.fxm-action-primary{background:#187d35;border-color:#187d35;color:#fff}
.fxm-dialog-actions button:disabled{opacity:.55;cursor:wait}
.fxm-history-wrap{display:grid;gap:10px;min-width:0}
.fxm-history-wrap>p{color:#667669;margin:0 0 8px;font-size:.82rem}
.fxm-timeline{display:grid;gap:0;max-height:440px;overflow-y:auto;padding:2px 3px 3px 3px}
.fxm-timeline-entry{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;position:relative;min-width:0}
.fxm-timeline-entry:not(:last-child):before{content:"";position:absolute;left:11px;top:23px;bottom:0;width:2px;background:#e3ebe5}
.fxm-timeline-dot{display:block;border:3px solid #dce8df;background:#f2f7f3;width:16px;height:16px;box-sizing:border-box;border-radius:50%;margin:7px 0 0 4px;z-index:1}
.fxm-timeline-entry[data-event="activated"] .fxm-timeline-dot,.fxm-timeline-entry[data-event="restored"] .fxm-timeline-dot{background:#3d9c57;border-color:#d4ead9}
.fxm-timeline-entry[data-event="deactivated"] .fxm-timeline-dot,.fxm-timeline-entry[data-event="archived"] .fxm-timeline-dot{background:#c18a25;border-color:#f6e9c7}
.fxm-timeline-content{border:1px solid #e1e7e2;border-radius:9px;padding:12px 13px;margin:0 0 10px;min-width:0}
.fxm-timeline-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.fxm-timeline-heading strong{font-size:.86rem;color:#243629}
.fxm-timeline-heading time{color:#708176;font-size:.73rem}
.fxm-timeline-content p{margin:5px 0 9px;color:#66786b;font-size:.75rem}
.fxm-timeline-content details{font-size:.76rem}
.fxm-timeline-content summary{cursor:pointer;color:#237d40;font-weight:650}
.fxm-timeline-content .fxm-rules{margin:10px 0 5px}
.fxm-load-more{justify-self:center;min-height:36px;border:1px solid #d8e4db;border-radius:8px;background:#fff;color:#246c3b;padding:7px 14px;font-size:.8rem;cursor:pointer}
.fxm-load-more[hidden]{display:none}
@media(max-width:1050px){[data-view="fx-tax-profiles"] .fxm-cards{grid-template-columns:1fr}}
@media(max-width:640px){[data-view="fx-tax-profiles"] .fxm-summary{gap:7px}[data-view="fx-tax-profiles"] .fxm-summary>div{padding:11px}[data-view="fx-tax-profiles"] .fxm-summary span{font-size:.67rem}[data-view="fx-tax-profiles"] .fxm-overview{gap:10px}[data-view="fx-tax-profiles"] .fxm-card{padding:13px}[data-view="fx-tax-profiles"] .fxm-card-actions{justify-content:flex-start}.fxm-dialog-head{padding:15px 15px 12px}.fxm-dialog-body{padding:14px 15px}.fxm-rules{gap:9px;padding:10px}}
@media(max-width:390px){[data-view="fx-tax-profiles"] .fxm-summary{grid-template-columns:1fr}.fxm-rules{grid-template-columns:1fr}}
