/* Referências independentes: a faixa temporal é o eixo visual da edição. */
/* tbl também é usada nas séries auxiliares da gestão. Sem esta base, o
   navegador encolhia as tabelas ao conteúdo, deixando o restante vazio. */
.socio-gestao table.tbl{width:100%;border-collapse:collapse;margin:0;font-size:14px;font-variant-numeric:tabular-nums}
.socio-gestao table.tbl th{padding:14px 16px;text-align:left;vertical-align:middle;background:#0A2342;color:#fff;font-family:var(--font-label);font-weight:600;line-height:1.5}
.socio-gestao table.tbl thead .hint{color:#dce8f3!important}
.socio-gestao table.tbl td{padding:12px 16px;border-bottom:1px solid #d4dee9;vertical-align:middle}
.socio-gestao table.tbl tbody tr:last-child td{border-bottom:0}
.socio-gestao table.tbl :is(input,select){width:100%;box-sizing:border-box}
.socio-gestao table.tbl .btn{white-space:nowrap}
.socio-gestao .sg-annual-table{table-layout:fixed;min-width:620px}
.socio-gestao .sg-annual-table th:first-child{width:50%}
.socio-gestao .sg-annual-table :is(th,td):last-child{width:160px}
.socio-gestao .sg-ipca-table{table-layout:fixed;min-width:760px}
.socio-gestao .sg-ipca-table th:first-child{width:34%}
.socio-gestao .sg-ipca-table :is(th,td):last-child{width:90px;min-width:90px}
.socio-gestao .sg-selic-table{table-layout:fixed;min-width:520px}
.socio-gestao .sg-selic-table th:first-child{width:45%;min-width:0}
.socio-gestao .sg-selic-table :is(th,td):last-child{width:90px;min-width:90px}
.socio-gestao .sg-macro-workspace .sg-series-toolbar{margin-top:0}
.sg-series-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}
.sg-series-head h2,.sg-series-head h3{margin:4px 0 8px;color:#0A2342;font-family:var(--font-heading,var(--font-label,Arial));font-size:clamp(22px,3vw,30px)}
.sg-series-head p{margin:0;color:#526579;line-height:1.6}
#ju-editor .sg-series-head h3{font-size:24px}
.socio-gestao :is(#t-jucerja,.sg-macro-workspace) :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #b9c9d7;border-radius:6px;background:white;color:#24364B;font-family:var(--font-body);font-size:16px;max-width:100%}
.socio-gestao :is(#t-jucerja,.sg-macro-workspace) textarea{resize:vertical;line-height:1.5}
.sg-series-kicker{font-family:var(--font-label,Arial);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#175A83}
.sg-grain{display:inline-block;padding:9px 12px;border-left:3px solid #175A83;background:#F3F6FA;color:#175A83;font-size:13px;font-weight:700;white-space:nowrap}
.sg-annual-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.sg-year-rail{position:sticky;top:20px}
.sg-year-rail h3{margin-top:0}.sg-year-rail>label{display:block;margin-top:24px}.sg-year-rail>input{width:100%;margin:8px 0}.sg-year-rail>.btn{width:100%}
.sg-year-choice{display:block;width:100%;text-align:left;border:0;border-left:3px solid transparent;border-bottom:1px solid #d8e1ea;background:white;color:#0A2342;padding:14px 12px;font-size:24px;font-weight:700;cursor:pointer}
.sg-year-choice span{display:block;font-size:12px;color:#526579;font-weight:400;margin-top:4px}
.sg-year-choice[aria-pressed=true]{border-left-color:#175A83;background:#F3F6FA}.sg-year-choice:hover{background:#F3F6FA}
.sg-series-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.sg-series-fields label,.sg-block{font-size:14px;font-weight:600;color:#24364B;display:block}
.sg-series-fields input,.sg-block textarea{display:block;width:100%;margin-top:8px}
.sg-coverage{border-left:3px solid #176348;background:#F3F6FA;padding:12px 16px;font-size:14px;line-height:1.5;color:#24364B}
.sg-series-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0}
.sg-series-toolbar h3{margin:0;color:#0A2342;font-size:20px}.sg-series-toolbar label{display:flex;align-items:center;gap:12px;font-weight:600}
.sg-annual-table{min-width:570px}.sg-annual-table input{width:100%;min-width:100px}.sg-annual-table td:last-child{width:110px}
.sg-paste{padding:16px 0;border-bottom:1px solid #d8e1ea;margin:16px 0}.sg-paste summary{color:#175A83;font-weight:700;cursor:pointer}.sg-paste textarea{display:block;width:100%;margin:8px 0 12px}
.sg-publicar{display:flex;align-items:center;gap:10px;padding:18px 0;color:#0A2342;font-weight:700}.sg-publicar input{width:20px;height:20px;accent-color:#176348}
.sg-series-save{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:20px;padding-top:20px;border-top:1px solid #d8e1ea}.sg-series-save .hint{max-width:550px}
.sg-series-section{padding:8px 0 24px;border-top:2px solid #d8e1ea}.sg-macro-workspace>h2{font-size:28px;color:#0A2342;margin-top:0}.sg-macro-workspace .sg-periodo{min-width:210px}
.socio-gestao .sg-macro-workspace{padding:24px;border:1px solid #d8e1ea;border-radius:10px;background:#fff;box-sizing:border-box}
.socio-gestao .sg-ipca-table td{vertical-align:top}.sg-macro-workspace .tbl tbody tr[hidden]{display:none}
.sg-macro-workspace .sg-series-section:last-of-type .tbl{max-width:100%}
#t-jucerja [hidden]{display:none!important}
.ju-public-controls{display:flex;gap:20px;align-items:end;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #d8e1ea;margin-bottom:20px}
.ju-public-controls label{display:grid;gap:6px;color:#0A2342;font-weight:700;font-size:14px}.ju-public-controls select{padding:10px 36px 10px 12px;min-width:155px;border:1px solid #b9c9d7;border-radius:6px;color:#0A2342;background:#fff}
#panel-jucerja{color:#24364B;min-width:0;max-width:1180px;margin:auto}#panel-jucerja table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}#panel-jucerja td,#panel-jucerja th{padding:14px;text-align:right;border-bottom:1px solid #d8e1ea}#panel-jucerja th:first-child,#panel-jucerja td:first-child{text-align:left}#panel-jucerja thead{background:#0A2342;color:white}#panel-jucerja th small{display:block;font-weight:400;font-size:11px;margin-top:5px}#panel-jucerja caption{text-align:left;padding:0 0 12px;color:#526579}
#panel-jucerja .ju-marica{background:#F3F6FA;color:#0A2342;font-weight:700}#panel-jucerja .ju-marica th{border-left:3px solid #175A83}#ju-public-fontes{font-size:13px;line-height:1.6;color:#526579;white-space:pre-line;margin-top:18px}
#ju-public-tabela{overflow:auto;max-width:100%}#ju-public-tabela table{min-width:650px}
.sg-series-head button:focus-visible,.sg-year-choice:focus-visible,#panel-jucerja :focus-visible{outline:3px solid #175A83;outline-offset:3px}
@media(max-width:760px){.sg-annual-layout{grid-template-columns:minmax(0,1fr);gap:16px}.sg-year-rail{position:static}#ju-anos{display:flex;gap:10px;overflow:auto}.sg-year-choice{min-width:150px;width:auto}.sg-series-head{flex-direction:column;gap:12px}.sg-series-fields{grid-template-columns:minmax(0,1fr)}.sg-series-save{align-items:stretch;flex-direction:column}.sg-series-toolbar label{flex-wrap:wrap}.sg-macro-workspace{padding:16px}.ju-public-controls{gap:12px}#panel-jucerja tr>th:first-child{position:sticky;left:0;background:#F3F6FA;min-width:150px;z-index:1}#panel-jucerja thead th:first-child{background:#0A2342}}
@media(max-width:760px){.socio-gestao .sg-macro-workspace{padding:16px}}
@media print{.ju-public-controls{display:none}#ju-public-tabela{overflow:visible}#ju-public-tabela table{min-width:0;font-size:9pt}#panel-jucerja th,#panel-jucerja td{padding:5px}}
