/* Receita Externa / Duodécimos — estilos compartilhados */
.rext-admin,.rext-public{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;color:#172033}.rext-admin *,.rext-public *{box-sizing:border-box}.rext-toolbar{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.rext-toolbar--between{justify-content:space-between}.rext-card{background:#fff;border:1px solid #dfe7f1;border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,.045)}.rext-grid{display:grid;gap:18px}.rext-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.rext-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.rext-btn,.rext-btn-secondary,.rext-btn-light{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:11px;text-decoration:none;border:1px solid transparent;font-weight:750;cursor:pointer;transition:.18s ease}.rext-btn{background:#2563eb;color:#fff}.rext-btn:hover{background:#1d4ed8;transform:translateY(-1px)}.rext-btn-secondary{background:#172033;color:#fff}.rext-btn-light{background:#fff;color:#334155;border-color:#cbd5e1}.rext-btn-light:hover{border-color:#94a3b8;background:#f8fafc}.rext-alert{padding:14px 16px;border-radius:14px;margin-bottom:16px}.rext-alert--success{background:#ecfdf5;border:1px solid #86efac;color:#166534}.rext-alert--error{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}.rext-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}.rext-field{display:flex;flex-direction:column;gap:6px;min-width:0}.rext-field--12{grid-column:span 12}.rext-field--6{grid-column:span 6}.rext-field--4{grid-column:span 4}.rext-field--3{grid-column:span 3}.rext-field--2{grid-column:span 2}.rext-label{font-weight:750;color:#344256;font-size:13px}.rext-input,.rext-select,.rext-textarea{width:100%;min-height:42px;padding:10px 12px;border-radius:11px;border:1px solid #ccd7e5;background:#fff;color:#172033;box-sizing:border-box;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.rext-input:focus,.rext-select:focus,.rext-textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.rext-textarea{min-height:110px;resize:vertical}.rext-checkbox{display:flex;gap:8px;align-items:center;font-weight:600;color:#334155}.rext-kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed #dbe4f0}.rext-kv:last-child{border-bottom:none}.rext-help p{margin:.5rem 0}.rext-muted{color:#64748b}.rext-table-wrapper{overflow:auto}.rext-table{width:100%;border-collapse:separate;border-spacing:0}.rext-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.rext-pagination a{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:10px;text-decoration:none;color:#0f172a;background:#fff}.rext-pagination a.is-active{background:#2563eb;border-color:#2563eb;color:#fff}

/* Página pública — largura total com margens internas */
.rext-public{--rext-blue:#2563eb;--rext-blue-soft:#eff6ff;--rext-green:#059669;--rext-green-soft:#ecfdf5;--rext-amber:#d97706;--rext-amber-soft:#fffbeb;--rext-violet:#7c3aed;--rext-violet-soft:#f5f3ff;--rext-cyan:#0891b2;--rext-cyan-soft:#ecfeff;--rext-slate:#475569;display:block;width:100%!important;max-width:none!important;margin:0!important;padding:20px!important;background:linear-gradient(180deg,#f8fbff 0,#ffffff 320px);box-sizing:border-box}.rext-public .rext-card,.rext-public .rext-content-grid,.rext-public .rext-table-wrapper,.rext-public .rext-table{width:100%}.rext-public h1,.rext-public h2,.rext-public p{margin-top:0}.rext-public h1{margin-bottom:8px;font-size:clamp(27px,3vw,39px);line-height:1.08;letter-spacing:-.035em}.rext-public h2{margin-bottom:6px;font-size:19px;letter-spacing:-.018em}.rext-public p{color:#64748b;line-height:1.55}.rext-public-fullwidth .container,.rext-public-fullwidth .content,.rext-public-fullwidth .content-area,.rext-public-fullwidth .site-content,.rext-public-fullwidth .site-main,.rext-public-fullwidth .main-content,.rext-public-fullwidth .page-content,.rext-public-fullwidth .wrap,.rext-public-fullwidth .wrapper,.rext-public-fullwidth main,.rext-public-fullwidth section{max-width:100%!important;width:100%!important}.rext-public-fullwidth [class*='col-']{max-width:100%!important}

/* Cabeçalho */
.rext-public-hero{position:relative;display:flex;justify-content:space-between;gap:24px;align-items:flex-start;min-height:190px;margin-bottom:16px;padding:28px 30px;border-radius:22px;overflow:visible;background:linear-gradient(125deg,#0f2e68 0%,#174ca5 48%,#0d7490 100%);box-shadow:0 14px 34px rgba(15,46,104,.16);color:#fff}.rext-public-hero:before{content:"";position:absolute;inset:0;border-radius:22px;pointer-events:none;background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.15),transparent 31%),radial-gradient(circle at 58% 95%,rgba(34,211,238,.16),transparent 32%)}.rext-public-hero__content{position:relative;z-index:1;max-width:820px}.rext-public-hero h1{color:#fff}.rext-public-hero p{max-width:720px;margin-bottom:17px;color:#dbeafe;font-size:15px}.rext-eyebrow,.rext-section-kicker{display:block;margin-bottom:7px;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.12em}.rext-eyebrow{color:#a5f3fc}.rext-section-kicker{color:#4f6b91}.rext-hero-meta{display:flex;flex-wrap:wrap;gap:8px}.rext-chip{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:750}.rext-public-hero .rext-chip--blue{color:#dbeafe;background:rgba(37,99,235,.28);border-color:rgba(191,219,254,.23)}.rext-public-hero .rext-chip--violet{color:#ede9fe;background:rgba(124,58,237,.25);border-color:rgba(221,214,254,.22)}.rext-public-hero .rext-chip--green{color:#d1fae5;background:rgba(5,150,105,.26);border-color:rgba(167,243,208,.22)}

/* Exportações compactas */
.rext-export-menu{position:relative;z-index:8;flex:0 0 auto}.rext-export-menu>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);color:#fff;font-weight:800;cursor:pointer;user-select:none}.rext-export-menu>summary::-webkit-details-marker{display:none}.rext-export-menu>summary:after{content:"▾";font-size:12px;transition:transform .18s ease}.rext-export-menu[open]>summary:after{transform:rotate(180deg)}.rext-export-menu__panel{position:absolute;right:0;top:50px;display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:7px;width:250px;padding:10px;border:1px solid #dbe4ee;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.2)}.rext-export-option{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:800}.rext-export-option--csv{background:#ecfdf5;color:#047857}.rext-export-option--excel{background:#f0fdf4;color:#166534}.rext-export-option--json{background:#fff7ed;color:#c2410c}.rext-export-option--xml{background:#eff6ff;color:#1d4ed8}.rext-export-option--print{background:#f8fafc;color:#334155}.rext-export-option--pdf{background:#fef2f2;color:#b91c1c}

/* Resumo */
.rext-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.rext-summary-card{position:relative;overflow:hidden;min-height:126px;padding:16px 17px;border:1px solid #e3eaf3;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.04)}.rext-summary-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}.rext-summary-card:after{content:"";position:absolute;right:-22px;top:-25px;width:86px;height:86px;border-radius:50%;opacity:.55}.rext-summary-card__label{position:relative;z-index:1;display:block;margin-bottom:9px;color:#526174;font-size:12px;font-weight:800}.rext-summary-card strong{position:relative;z-index:1;display:block;margin-bottom:7px;font-size:clamp(19px,1.9vw,25px);line-height:1.08;letter-spacing:-.03em;color:#172033}.rext-summary-card small{position:relative;z-index:1;display:block;color:#7a889b;font-size:11px;line-height:1.35}.rext-summary-card--blue:before{background:var(--rext-blue)}.rext-summary-card--blue:after{background:#dbeafe}.rext-summary-card--green:before{background:var(--rext-green)}.rext-summary-card--green:after{background:#d1fae5}.rext-summary-card--amber:before{background:var(--rext-amber)}.rext-summary-card--amber:after{background:#fef3c7}.rext-summary-card--violet:before{background:var(--rext-violet)}.rext-summary-card--violet:after{background:#ede9fe}.rext-summary-card--cyan:before{background:var(--rext-cyan)}.rext-summary-card--cyan:after{background:#cffafe}

/* Seções */
.rext-public .rext-card{margin-bottom:16px;padding:19px;border-color:#e2e9f2;border-radius:17px;box-shadow:0 7px 22px rgba(15,23,42,.04)}.rext-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.rext-section-heading p{margin-bottom:0;font-size:13px}.rext-section-heading--compact{align-items:center;margin-bottom:14px}.rext-result-pill{display:inline-flex;flex:0 0 auto;align-items:center;min-height:30px;padding:5px 10px;border-radius:999px;background:#eef4ff;color:#315a9a;font-size:12px;font-weight:800}

/* Filtros */
.rext-filter-card{border-top:3px solid #60a5fa!important}.rext-quick-filters{display:grid;grid-template-columns:130px 150px 150px minmax(230px,1fr) auto;gap:11px;align-items:end}.rext-field--search{min-width:220px}.rext-filter-actions{display:flex;gap:8px;align-items:center}.rext-filter-actions .rext-btn,.rext-filter-actions .rext-btn-light{white-space:nowrap}.rext-advanced-filters{margin-top:13px;border:1px solid #e4eaf2;border-radius:12px;background:#f9fbfd}.rext-advanced-filters>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:10px 12px;color:#475569;font-size:13px;font-weight:800;cursor:pointer}.rext-advanced-filters>summary::-webkit-details-marker{display:none}.rext-advanced-filters>summary:before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:7px;background:#e9f1ff;color:#2563eb;font-size:15px}.rext-advanced-filters[open]>summary:before{content:"−"}.rext-advanced-filters__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:0 12px 12px}

/* Abas de visualização */
.rext-view-card{display:flex;align-items:center;gap:14px;padding:10px 12px!important}.rext-view-card__label{flex:0 0 auto;padding-left:4px;color:#64748b;font-size:12px;font-weight:800}.rext-view-tabs{display:flex;gap:5px;min-width:0;overflow-x:auto;padding:2px}.rext-view-tab{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid transparent;border-radius:9px;color:#526174;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;transition:.16s ease}.rext-view-tab:hover{background:#f1f5f9;color:#1e40af}.rext-view-tab.is-active{background:#eaf2ff;border-color:#bfdbfe;color:#1d4ed8;box-shadow:inset 0 0 0 1px rgba(37,99,235,.04)}

/* Evolução + informações */
.rext-content-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.85fr);gap:16px}.rext-chart-card{border-top:3px solid #8b5cf6!important}.rext-info-card{border-top:3px solid #10b981!important}.rext-chart-legend{display:flex;flex-wrap:wrap;gap:12px;color:#64748b;font-size:11px;font-weight:750}.rext-chart-legend span{display:inline-flex;align-items:center;gap:5px}.rext-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.rext-dot--blue{background:#60a5fa}.rext-dot--green{background:#34d399}.rext-dot--violet{background:#8b5cf6}.rext-bars{display:flex;flex-direction:column;gap:9px}.rext-bar-row{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center}.rext-bar-label{font-weight:850;color:#41516a;font-size:12px;text-transform:uppercase}.rext-bar-stack{display:flex;flex-direction:column;gap:4px}.rext-bar{min-height:24px;border-radius:7px;padding:4px 8px;display:flex;align-items:center;white-space:nowrap;overflow:hidden;box-sizing:border-box;font-size:10px;font-weight:800}.rext-bar--prev{background:linear-gradient(90deg,#bfdbfe,#dbeafe);color:#1e40af}.rext-bar--arr{background:linear-gradient(90deg,#a7f3d0,#d1fae5);color:#047857}.rext-bar--liq{background:linear-gradient(90deg,#c4b5fd,#ede9fe)!important;color:#6d28d9}.rext-empty-state{display:flex;align-items:center;justify-content:center;min-height:150px;padding:20px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;text-align:center}.rext-info-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.rext-info-item{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:9px;border-radius:11px;background:#f8fafc}.rext-info-item strong{display:block;margin-bottom:2px;color:#334155;font-size:12px}.rext-info-item small{display:block;color:#718096;font-size:11px;line-height:1.35}.rext-info-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;font-size:10px;font-weight:900}.rext-info-icon--blue{background:#dbeafe;color:#1d4ed8}.rext-info-icon--green{background:#d1fae5;color:#047857}.rext-info-icon--violet{background:#ede9fe;color:#6d28d9}.rext-info-icon--amber{background:#fef3c7;color:#b45309}

/* Tabela */
.rext-results-card{border-top:3px solid #38bdf8!important}.rext-table-wrapper{border:1px solid #e2e8f0;border-radius:12px;background:#fff}.rext-public .rext-table{min-width:1020px;font-size:12px}.rext-public .rext-table th,.rext-public .rext-table td{padding:10px 11px;border-bottom:1px solid #edf1f6;text-align:left;vertical-align:middle}.rext-public .rext-table th{position:sticky;top:0;z-index:2;background:#f1f6fb;color:#40516b;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}.rext-public .rext-table tbody tr:nth-child(even){background:#fbfdff}.rext-public .rext-table tbody tr:hover{background:#f5f9ff}.rext-public .rext-table tbody tr:last-child td{border-bottom:0}.rext-public .rext-table td:nth-child(3){max-width:320px}.rext-table-badge{display:inline-flex;align-items:center;min-height:25px;padding:4px 7px;border-radius:7px;background:#eef2f7;color:#475569;font-size:10px;font-weight:850}.rext-percent-badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:850}.rext-money{white-space:nowrap;font-weight:800}.rext-money--blue{color:#1d4ed8}.rext-money--green{color:#047857}.rext-money--amber{color:#b45309}.rext-money--violet{color:#6d28d9}.rext-nowrap{white-space:nowrap}.rext-table-empty{padding:28px!important;text-align:center!important;color:#64748b}.rext-results-card .rext-pagination{justify-content:flex-end}.rext-results-card .rext-pagination a:hover{border-color:#93c5fd;color:#1d4ed8}

/* Rodapé */
.rext-public-footer{display:flex;justify-content:flex-end;align-items:flex-end;width:100%;min-height:44px;margin-top:16px;padding:12px 3px 4px;border-top:1px solid #e8eef5;color:#8491a3;font-size:10px;text-align:right}.rext-public-footer__update{margin-left:auto}.rext-public-footer strong{color:#64748b}

@media (max-width:1180px){.rext-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rext-quick-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.rext-field--search{grid-column:span 2}.rext-filter-actions{justify-content:flex-end}.rext-content-grid{grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr)}}
@media (max-width:900px){.rext-public{padding:14px!important}.rext-public-hero{min-height:auto;padding:22px;flex-direction:column}.rext-export-menu{width:100%}.rext-export-menu>summary{width:100%}.rext-export-menu__panel{position:static;width:100%;margin-top:8px}.rext-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rext-quick-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.rext-field--search{grid-column:span 2}.rext-filter-actions{justify-content:flex-start}.rext-advanced-filters__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rext-content-grid{grid-template-columns:1fr}.rext-view-card{display:block}.rext-view-card__label{margin-bottom:6px}.rext-section-heading{align-items:flex-start}.rext-grid--2{grid-template-columns:1fr}.rext-field--6,.rext-field--4,.rext-field--3,.rext-field--2{grid-column:span 12}}
@media (max-width:620px){.rext-public{padding:10px!important}.rext-public-hero{padding:19px;border-radius:17px}.rext-summary-grid{grid-template-columns:1fr}.rext-summary-card{min-height:110px}.rext-public .rext-card{padding:14px;border-radius:14px}.rext-section-heading{display:block}.rext-result-pill{margin-top:8px}.rext-quick-filters{grid-template-columns:1fr}.rext-field--search{grid-column:auto}.rext-filter-actions{display:grid;grid-template-columns:1fr 1fr}.rext-filter-actions .rext-btn,.rext-filter-actions .rext-btn-light{width:100%}.rext-advanced-filters__grid{grid-template-columns:1fr}.rext-chart-legend{margin-top:8px}.rext-bar-row{grid-template-columns:40px 1fr}.rext-public-footer{display:flex;justify-content:flex-end;text-align:right}.rext-public-footer span{display:block;margin-top:0}}
