/* Tesouraria: composição financeira compartilhada, sem estilos de controles nativos. */
.treasury-view{--finance-gap:24px;gap:var(--finance-gap);min-width:0;padding-bottom:24px;}
.treasury-view .page-head{margin-bottom:0;}
.treasury-view .card{border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.09);overflow:hidden;}
.treasury-view .card-head{padding:18px 24px;min-height:64px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 55%,var(--surface));}
.treasury-view .card-head h3{font:700 23px/1.15 var(--font-title);letter-spacing:.035em;}
.treasury-view .card-body{padding:24px;gap:20px;min-width:0;grid-template-columns:minmax(0,1fr);}
.treasury-view .card-body>*{min-width:0;}
.treasury-view p{font-size:14px;line-height:1.6;}
.treasury-view .btn{font:700 14px/1.3 var(--font-ui);min-height:44px;padding:11px 16px;border-radius:9px;white-space:normal;}
.treasury-view .btn:focus-visible,.treasury-view summary:focus-visible,.treasury-view input:focus-visible{outline:2px solid var(--brass-500);outline-offset:3px;}
.treasury-view .treasury-summary .card-body{padding:0;gap:0;}
.treasury-key-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:22px 0;}
.treasury-key-figures .stat{min-width:0;padding:0 24px;border-right:1px solid var(--line);gap:10px;}
.treasury-key-figures .stat:last-child{border-right:0;}
.treasury-key-figures .stat-label{font-size:12px;letter-spacing:.03em;text-transform:none;line-height:1.4;}
.treasury-key-figures .stat-value{font:700 clamp(23px,2.2vw,31px)/1.15 var(--font-title);font-variant-numeric:tabular-nums;color:var(--brass-text);overflow-wrap:normal;}
.treasury-secondary{display:flex;flex-wrap:wrap;gap:12px 30px;padding:14px 24px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 35%,var(--surface));font-size:13px;color:var(--text-2);}
.treasury-secondary strong{margin-left:8px;color:var(--text);font-weight:600;font-variant-numeric:tabular-nums;}
.fx-workstation{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,1fr);gap:24px;}
.fx-market,.fx-conversion{min-width:0;}
.fx-market{display:flex;flex-direction:column;gap:22px;}
.fx-quote-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;}
.fx-quote-head>div:first-child{display:grid;gap:10px;min-width:0;}
.fx-quote-head span{font-size:12px;color:var(--text-2);line-height:1.4;}
.fx-quote-head strong{font:700 clamp(28px,3vw,40px)/1.1 var(--font-title);color:var(--brass-text);font-variant-numeric:tabular-nums;white-space:nowrap;}
.fx-quote-head strong i{font-family:var(--font-ui);font-weight:400;font-size:.65em;font-style:normal;color:var(--text-3);padding:0 3px;}
.fx-quote-head strong small{font-size:.6em;color:var(--text-2);font-weight:600;}
.fx-quote-change{display:grid;gap:4px;border-left:1px solid var(--line);padding-left:16px;flex-shrink:0;}
.fx-quote-change b{font:700 21px/1.3 var(--font-title);font-variant-numeric:tabular-nums;}
.fx-quote-change small{font-size:11px;color:var(--text-3);}
.fx-quote-change.is-costlier b{color:var(--bad);}.fx-quote-change.is-cheaper b{color:var(--ok);}
.fx-history-empty{flex:1;min-height:160px;padding:22px;background:color-mix(in srgb,var(--surface-2) 45%,var(--surface));border:1px dashed var(--line-strong);border-radius:10px;display:grid;gap:8px;align-content:center;}
.fx-history-empty>.icon{color:var(--brass-text);width:24px;height:24px;margin-bottom:4px;}
.fx-history-empty>strong{font-size:16px;font-weight:600;}
.fx-history-empty>span{font-size:13px;line-height:1.5;max-width:45ch;color:var(--text-2);}
.fx-history-empty>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:8px;font-size:12px;color:var(--text-2);}
.fx-history-empty b{font-variant-numeric:tabular-nums;color:var(--text);}
.fx-history{margin:0;min-width:0;}
.fx-history figcaption{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px;color:var(--text-2);}
.fx-history figcaption strong{font-weight:600;color:var(--text);font-size:14px;}
.fx-history svg{display:block;width:100%;height:auto;margin-top:12px;max-height:225px;}
.fx-history svg line{stroke:var(--line);stroke-width:1;}
.fx-history svg polygon{fill:var(--brass-500);opacity:.09;}
.fx-history svg polyline{fill:none;stroke:var(--brass-400);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.fx-history svg circle{fill:var(--brass-400);stroke:var(--surface);stroke-width:2;}
.fx-history svg text{fill:var(--text-3);font:11px var(--font-ui);font-variant-numeric:tabular-nums;}
.fx-reserve-strip{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:14px;margin:0;padding-top:20px;border-top:1px solid var(--line);}
.fx-reserve-strip>div{display:grid;gap:10px;align-content:start;min-width:0;}
.fx-reserve-strip dt{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--text-2);line-height:1.4;}
.fx-reserve-strip dt .icon{color:var(--brass-text);flex-shrink:0;}
.fx-reserve-strip dd{margin:0;font:700 23px/1.2 var(--font-title);font-variant-numeric:tabular-nums;white-space:nowrap;}
.fx-reserve-strip dd small{font-size:15px;color:var(--text-2);}
.fx-conversion{border-left:1px solid var(--line);padding-left:24px;}
.treasury-view .fx-conversion h4,.treasury-view .fx-section-heading h4,.treasury-view .fx-policies h4{font:700 19px/1.25 var(--font-title);letter-spacing:.025em;margin:0;}
.treasury-view .fx-conversion>p{font-size:13px;margin:8px 0 18px;color:var(--text-2);line-height:1.5;}
.fx-amount-label{display:block;margin:0 0 8px;font-size:12px;color:var(--text-2);font-weight:600;}
.fx-amount-field{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line-strong);border-radius:9px;padding:0 14px;min-height:54px;transition:border-color .15s;}
.fx-amount-field:focus-within{border-color:var(--brass-500);box-shadow:0 0 0 3px color-mix(in srgb,var(--brass-500) 12%,transparent);}
.fx-amount-field>span{color:var(--text-2);font-size:14px;}
.fx-amount-field input{width:100%;min-width:0;padding:12px 0;background:transparent;border:0;border-radius:0;box-shadow:none;font:600 23px/1.2 var(--font-ui);font-variant-numeric:tabular-nums;color:var(--text);outline:0;}
.fx-amount-field input:focus-visible{outline:none;}
.fx-conversion-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:16px 0;}
.fx-conversion-total>span{font-size:12px;color:var(--text-2);}
.fx-conversion-total output{font:700 26px/1.15 var(--font-title);color:var(--brass-text);font-variant-numeric:tabular-nums;white-space:nowrap;}
.fx-conversion-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.treasury-view .fx-conversion>p.fx-order-note{font-size:12px;margin:12px 0 20px;color:var(--text-3);}
.fx-policies{padding-top:20px;border-top:1px solid var(--line);}
.treasury-view .fx-policies h4{margin-bottom:6px;font-size:17px;}
.fx-policy{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:none;padding:14px 0;cursor:pointer;color:var(--text);font-family:var(--font-ui);}
.fx-policy>span:first-child{display:grid;gap:4px;}.fx-policy strong{font-size:13px;font-weight:600;}.fx-policy small{font-size:12px;color:var(--text-2);}
.fx-policy:hover strong{color:var(--brass-text);}.fx-policy:focus-visible{outline:2px solid var(--brass-500);outline-offset:3px;border-radius:4px;}
.fx-policy:disabled{opacity:.5;cursor:default;}
.fx-switch{width:34px;height:20px;border-radius:20px;border:1px solid var(--line-strong);background:var(--surface-2);padding:3px;flex-shrink:0;}
.fx-switch i{display:block;width:12px;height:12px;border-radius:50%;background:var(--text-3);transition:transform .18s;}
.fx-policy[aria-pressed=true] .fx-switch{background:var(--brass-tint);border-color:var(--brass-500);}.fx-policy[aria-pressed=true] .fx-switch i{background:var(--brass-text);transform:translateX(13px);}
.treasury-view .fx-policies>p{font-size:11px;color:var(--text-3);line-height:1.5;margin:12px 0 0;}
.fx-explanation{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;}
.fx-explanation>summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;font-weight:600;list-style:none;}
.fx-explanation>summary::-webkit-details-marker{display:none;}.fx-explanation>summary>.icon:last-child{margin-left:auto;transition:transform .18s;}.fx-explanation[open]>summary>.icon:last-child{transform:rotate(90deg);}
.fx-explanation>div{padding-top:14px;}.treasury-view .fx-explanation p{font-size:13px;color:var(--text-2);margin:0 0 12px;line-height:1.6;max-width:90ch;}.fx-explanation p:last-child{margin-bottom:0;}
.fx-drivers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0;}.fx-drivers dt{font-size:12px;color:var(--text-2);margin-bottom:8px;}.fx-drivers dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums;}.fx-drivers small{display:block;font-size:11px;color:var(--text-3);font-weight:400;margin-top:4px;}
.fx-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:14px;}.fx-section-heading>span{font-size:12px;color:var(--text-3);}
.fx-rates-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px;}
.fx-rates table{width:100%;border-collapse:collapse;font-size:13px;}
.fx-rates thead{background:var(--surface-2);}.fx-rates thead th{padding:12px 16px;font-size:11px;font-weight:600;text-align:right;letter-spacing:.03em;color:var(--text-2);white-space:nowrap;}.fx-rates thead th:first-child{text-align:left;}
.fx-rates tbody th,.fx-rates td{padding:13px 16px;border-top:1px solid var(--line);}.fx-rates tbody th{text-align:left;font-weight:400;display:flex;align-items:center;gap:12px;}.fx-rates tbody th>span:last-child{display:grid;gap:4px;}.fx-rates tbody th strong{font-size:14px;font-weight:600;}.fx-rates tbody th small{font-size:11px;color:var(--text-3);line-height:1.4;max-width:45ch;}
.fx-rates td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;}.fx-rates td>span:not(.fx-delta){font-weight:400;color:var(--text-3);font-size:12px;}
.fx-rates tbody tr:hover{background:color-mix(in srgb,var(--surface-2) 55%,var(--surface));}.fx-rates tr.is-local{background:color-mix(in srgb,var(--brass-tint) 30%,var(--surface));}.fx-rates tr.is-local th{box-shadow:inset 3px 0 var(--brass-500);}
.fx-coin{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface-2);color:var(--brass-text);font-weight:700;font-size:13px;flex-shrink:0;}
.fx-rates .fx-delta{font-size:12px;}.fx-rates .is-positive{color:var(--brass-text);}.fx-rates .is-negative{color:var(--text-2);}
.fx-gold{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding-top:20px;}.fx-gold>div:first-child{display:flex;align-items:center;gap:12px;}.fx-gold>div:first-child>.icon{color:var(--brass-text);width:25px;height:25px;}.fx-gold>div:first-child>span{display:grid;gap:6px;}.fx-gold strong{font-size:14px;font-weight:600;}.fx-gold small{font-size:12px;color:var(--text-2);}.fx-gold>div:last-child{display:flex;gap:10px;flex-wrap:wrap;}
.treasury-view .forecast-card .gov-overview{gap:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);overflow:hidden;}
.treasury-view .forecast-card .gov-overview .stat{padding:16px 18px;min-width:0;border-right:1px solid var(--line);}.treasury-view .forecast-card .stat-label{font-size:11px;}.treasury-view .forecast-card .stat-value{font:700 25px/1.2 var(--font-title);}
.treasury-view .forecast-card .forecast-lead{margin:0;font-size:14px;}.treasury-view .forecast-card .subtle{font-size:12px;line-height:1.6;margin:0;}
.treasury-view .forecast-next{padding:16px 20px;background:var(--surface-2);}.treasury-view .forecast-next h4{font:700 18px var(--font-title);margin-bottom:8px;}.treasury-view .forecast-next p{font-size:13px;}
.treasury-view .forecast-table{max-width:100%;}.treasury-view .forecast-table th,.treasury-view .forecast-table td{font-size:12px;padding:13px 14px;}.treasury-view .forecast-table th{font-weight:600;}.treasury-view .forecast-table thead th{font-size:11px;color:var(--text-2);}
.treasury-view .forecast-assumptions{margin:0;padding:16px 0 0;}.treasury-view .forecast-assumptions summary{font-size:13px;font-weight:600;}.treasury-view .forecast-assumptions p{font-size:13px;margin:12px 0 0;}.treasury-view .forecast-assumptions .input{font-size:14px;min-height:44px;}
.treasury-view .gdp-overview{padding:0 0 20px;gap:24px;}.treasury-view .gdp-overview strong{font:700 28px var(--font-title);}.treasury-view .gdp-overview>div{gap:8px;}
.treasury-view .gdp-sector>div:first-child{font-size:13px;}.treasury-view .gdp-sector{padding:12px 0;border-bottom:1px solid var(--line);}.treasury-view .gdp-sector:last-child{border-bottom:0;}.treasury-view .gdp-sector .map-progress{height:4px;margin-top:10px;}
.treasury-view .gov-details{gap:0;}.treasury-view .gov-details-title{font:700 20px var(--font-title);margin:0 0 14px;}.treasury-view .gov-section{margin:0;}.treasury-view .gov-section-body{padding:16px;}.treasury-view .gov-section-body>.card{box-shadow:none;}
.treasury-view .debt-actions{gap:24px;}.treasury-view .debt-actions h4{font:700 20px var(--font-title);margin:0 0 8px;}.treasury-view .debt-actions p{margin:0 0 16px;font-size:13px;color:var(--text-2);}.treasury-view .finance-buttons{gap:10px;}
.treasury-view .production-link{padding:20px 24px;min-height:82px;border-radius:12px;}.treasury-view .production-link strong{font-size:15px;font-weight:600;}.treasury-view .production-link small{font-size:12px;line-height:1.5;margin-top:6px;}
@media(max-width:1120px){.fx-workstation{grid-template-columns:1fr;}.fx-conversion{border-left:0;border-top:1px solid var(--line);padding:22px 0 0;}.fx-market{gap:20px;}.fx-history-empty{min-height:140px;}.treasury-key-figures .stat{padding:0 18px;}.fx-conversion-actions{max-width:600px;}.fx-policies{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;}.fx-policies h4,.fx-policies>p{grid-column:1/-1;}.fx-gold{align-items:flex-start;flex-direction:column;}}
@media(max-width:600px){.treasury-view{--finance-gap:18px;}.treasury-view .card-head{padding:16px;min-height:58px;}.treasury-view .card-head h3{font-size:21px;}.treasury-view .card-body{padding:16px;gap:18px;}.treasury-key-figures{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;}.treasury-key-figures .stat{padding:18px 16px;gap:8px;border-bottom:1px solid var(--line);}.treasury-key-figures .stat:nth-child(2){border-right:0;}.treasury-key-figures .stat:nth-child(n+3){border-bottom:0;}.treasury-key-figures .stat-value{font-size:24px;}.treasury-secondary{padding:14px 16px;gap:10px 22px;}.fx-quote-head{gap:10px;}.fx-quote-head strong{font-size:28px;}.fx-quote-change{padding-left:10px;}.fx-quote-change b{font-size:19px;}.fx-quote-head span{font-size:11px;}.fx-quote-change small{max-width:90px;line-height:1.3;}.fx-history-empty{padding:16px;}.fx-reserve-strip{grid-template-columns:1fr 1fr;gap:16px;}.fx-reserve-strip>div:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;}.fx-reserve-strip dd{font-size:23px;}.fx-conversion-actions{grid-template-columns:1fr;}.fx-policies{grid-template-columns:1fr;}.fx-section-heading{align-items:flex-start;flex-direction:column;gap:6px;}.fx-rates table{min-width:520px;}.fx-rates tbody th,.fx-rates td{padding:12px;}.fx-rates th small{max-width:180px;}.fx-gold>div:last-child{display:grid;width:100%;grid-template-columns:1fr;}.fx-drivers{grid-template-columns:1fr 1fr;}.treasury-view .forecast-card .gov-overview .stat{padding:14px 12px;border-bottom:1px solid var(--line);}.treasury-view .forecast-card .stat-value{font-size:23px;}.treasury-view .gdp-overview{gap:18px;}.treasury-view .gdp-overview>div{border-bottom:1px solid var(--line);padding-bottom:16px;}.treasury-view .gdp-overview>div:last-child{border-bottom:0;padding-bottom:0;}.treasury-view .production-link{padding:18px;gap:12px;}.treasury-view .gov-section-body{padding:8px;}}
@media(prefers-reduced-motion:reduce){.fx-switch i,.fx-explanation>summary>.icon:last-child{transition:none;}}
