#tax[data-census] > :not(#fiscalHost){display:none!important}.fx-shell{padding:20px}.fx-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.fx-heading h2{font-size:1.2rem;margin:0;color:#102e50}.fx-heading p{color:#61738b;margin:6px 0 18px}.fx-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #dbe5f1;padding:16px 0;margin-bottom:20px}.fx-tabs button[aria-pressed=true]{background:#12385e;color:white;border-bottom:3px solid #d4ab3f}.fx-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fx-cards article{border:1px solid #dbe5f1;border-left:3px solid #caa235;padding:16px;border-radius:12px;background:#fff}.fx-cards span{display:block;color:#5b6e83;font-size:.85rem}.fx-cards strong{font-size:1.7rem;color:#12385e}.fx-badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#eef3fa;color:#234870;font-size:.78rem;white-space:normal}.fx-pending,.fx-review,.fx-preparing{background:#fff4cc;color:#755000}.fx-verified,.fx-active,.fx-paid,.fx-resolved{background:#e6f4ec;color:#155e36}.fx-open{background:#fde8e6;color:#97362d}.fx-external,.fx-historical{background:#eaf1ff;color:#214e89}.fx-notice,.fx-empty{padding:16px;border-radius:10px;background:#f3f7fc;color:#526882}.fx-profile,.fx-proposal{border:1px solid #dbe5f1;border-radius:12px;margin:14px 0;padding:16px}.fx-proposal{border-left:3px solid #d5ac38}.fx-profile h3{font-size:1rem;color:#173856}.fx-table-wrap{overflow:auto;margin:14px 0}.fx-shell table{min-width:580px;width:100%}.fx-shell td{vertical-align:top;overflow-wrap:anywhere}.fx-shell td small{display:block;color:#63748b;margin-top:5px}.fx-shell td button,.fx-proposal button{margin:3px}.fx-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#63748b;font-size:.85rem}.fx-dialog{border:1px solid #ccd9e9;border-radius:16px;padding:24px;max-width:920px;width:min(920px,94vw);max-height:90vh;overflow:auto;color:#16324f;box-shadow:0 18px 70px #092a4f44}.fx-dialog::backdrop{background:#09213e77}.fx-dialog header,.fx-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.fx-dialog h3{font-size:1.15rem}.fx-dialog footer{justify-content:flex-end;padding-top:18px}.fx-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fx-form>p,.fx-form>[data-attributes],.fx-form>datalist,.fx-form>dl{grid-column:1/-1}.fx-form label{display:flex;flex-direction:column;gap:6px;font-size:.86rem}.fx-form input,.fx-form select{width:100%;min-width:0}.fx-form input[type=checkbox]{width:auto;align-self:flex-start}.fx-attribute{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:8px;align-items:end;border-bottom:1px solid #dbe5f1;padding:12px 0}.fx-dialog [role=alert]{color:#9a312a;overflow-wrap:anywhere}.fx-confirm{background:#fff4d7;border-radius:10px;padding:16px}.fx-confirm button{margin-right:8px}.fx-dialog dd{margin:5px 0 16px;overflow-wrap:anywhere}.fx-dialog dt{font-weight:600}.fx-identity{font-weight:600;color:#193f68}.fx-shell [data-selector]{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.fx-shell [data-selector] label{min-width:240px;max-width:100%}.fx-shell [data-selector] select{width:100%}@media(max-width:650px){.fx-shell{padding:12px}.fx-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fx-cards article{padding:10px}.fx-form{grid-template-columns:1fr}.fx-attribute{grid-template-columns:1fr 1fr}.fx-heading{align-items:flex-start}.fx-dialog{padding:16px}.fx-tabs button{flex:1 1 100px}.fx-shell [data-selector] label{min-width:0;width:100%}}

.fx-dialog form>div[role=group]{display:flex;justify-content:space-between;align-items:center;gap:12px}#fiscalHost .fx-tabs button[aria-pressed=true],#ownFiscalHost .fx-tabs button[aria-pressed=true]{color:#fff!important}.fx-heading{background:none!important;padding:0!important;box-shadow:none!important;min-height:0!important}

/* Phase 0 is scoped to Fiscal clientes; shared Mi fiscal metrics stay intact. */
.fx-phase0{--fx0-border:#cfdded;--fx0-navy:#12385e;--fx0-soft:#f4f8fd}
.fx-shell.fx-phase0{padding:16px}
.fx-phase0 .fx-heading p{margin:5px 0 12px}
.fx-phase0 .fx-tabs{gap:3px;padding:12px 0 0;margin-bottom:14px}
.fx-phase0 .fx-tabs button{border:0;border-bottom:3px solid transparent;border-radius:5px 5px 0 0;padding:8px 10px;font-size:inherit;line-height:1.3;background:transparent;color:#315578}
.fx-phase0 .fx-tabs button[aria-pressed=true]{background:#e8f1ff;color:#154f93!important;border-bottom-color:#2563b6}
#fiscalHost .fx-phase0 .fx-tabs button[aria-pressed=true]{color:#154f93!important}
.fx-phase0 .fx-cards{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--fx0-border);border-radius:8px;background:#fff}
.fx-phase0 .fx-cards article{flex:1 1 130px;border:0;border-right:1px solid #e1e9f3;padding:10px 14px;border-radius:0}
.fx-phase0 .fx-cards strong{font-size:1.35rem}
.fx-phase0 .fx-cards span{font-size:inherit}
.fx-phase0 .fx-badge{padding:3px 7px;border-radius:5px;font-size:.85em}
.fx-phase0 .fx-review{background:#ffebe8;color:#a23436}
.fx-phase0 .fx-ended,.fx-phase0 .fx-inactive{background:#edf0f4;color:#5d6979}
.fx-phase0 .fx-notice,.fx-phase0 .fx-empty,.fx-phase0 .fx0-callout{padding:10px 12px;margin:10px 0;border:1px solid #dce6f2;border-radius:6px;background:var(--fx0-soft);color:#496580;font-size:inherit}
.fx-phase0 .fx0-callout p{margin:4px 0}
.fx-phase0 .fx-profile,.fx-phase0 .fx-proposal{padding:12px;border-radius:8px;margin:12px 0}
.fx-phase0 .fx-profile h3{margin:0 0 5px}
.fx-phase0 .fx-table-wrap{margin:12px 0;border:1px solid var(--fx0-border);border-radius:6px}
.fx-phase0 table{border-collapse:collapse}
.fx-phase0 table th{background:#eaf1fa;color:#244b74;padding:9px 10px;font-weight:600}
.fx-phase0 table td{padding:9px 10px;border-bottom:1px solid #e2eaf4}
.fx-phase0 table tr:last-child td{border-bottom:0}
.fx-phase0 table button{white-space:nowrap}
.fx-phase0 .fx0-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.fx-phase0 .fx0-profile-grid dt{color:#61778f;font-size:.9em}
.fx-phase0 .fx0-profile-grid dd{margin:3px 0;color:#163c65;overflow-wrap:anywhere}
.fx-phase0 .fx0-profile-grid small,.fx-phase0 .fx0-field small,.fx-phase0 .fx0-muted{color:#62788e;font-size:.88em}
.fx-phase0 .fx0-references{margin:12px 0;padding:10px 12px;border:1px solid var(--fx0-border);border-radius:6px}
.fx-phase0 .fx0-calendar-flow{display:flex;flex-wrap:wrap;gap:8px;color:#24568b;font-weight:600}
.fx-phase0 .fx0-calendar-flow span{padding:8px 12px;background:#edf4fc;border-radius:5px}
.fx-phase0 .fx0-year{display:flex;align-items:center;gap:8px;margin:12px 0}
.fx-phase0 .fx0-year input{width:100px}
.fx-dialog.fx-phase0{padding:0;border-radius:10px;max-height:92vh;width:min(920px,94vw)}
.fx-dialog.fx-phase0 form>div[role=group]{position:sticky;top:0;z-index:2;padding:14px 18px;background:var(--fx0-navy);color:white}
.fx-dialog.fx-phase0 form>div[role=group] h3{margin:0;color:white}
.fx-dialog.fx-phase0 .fx-form{padding:16px;gap:12px}
.fx-dialog.fx-phase0 footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--fx0-border);padding:12px 16px;z-index:2}
.fx-dialog.fx-phase0 [role=alert]:not(:empty){padding:0 16px}
.fx-phase0 .fx0-section,.fx-phase0 .fx0-callout,.fx-phase0 .fx0-check{grid-column:1/-1;min-width:0}
.fx-phase0 .fx0-section{margin:0;padding:12px;border:1px solid var(--fx0-border);border-radius:7px}
.fx-phase0 .fx0-section legend{padding:0 6px;font-size:inherit;font-weight:600;color:var(--fx0-navy)}
.fx-phase0 .fx0-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:start}
.fx-phase0 .fx0-fields label{font-size:inherit;color:#345675;gap:5px}
.fx-phase0 .fx0-fields input,.fx-phase0 .fx0-fields select{min-height:34px;padding:6px 9px;border:1px solid #bccfe7;border-radius:5px;color:#163c65;background:#fff;font:inherit;box-sizing:border-box}
.fx-phase0 input:read-only{background:#f1f6fc;color:#466586}
.fx-phase0 .fx0-field{min-width:0}
.fx-phase0 .fx0-field small{display:block;margin-top:4px}
.fx-phase0 label.fx0-check{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:inherit}
.fx-phase0 .fx0-review{display:flex;flex-direction:column;gap:5px;color:#526d87;overflow-wrap:anywhere}
.fx-phase0 [hidden]{display:none!important}
@media(max-width:1000px){.fx-phase0 .fx0-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fx-phase0 .fx0-fields,.fx-phase0 .fx0-profile-grid{grid-template-columns:1fr}.fx-dialog.fx-phase0 .fx-form{padding:12px}.fx-phase0 .fx-tabs button{flex:0 1 auto}.fx-phase0 .fx0-calendar-flow{font-size:.9em}}

.ui-polished #fiscalHost .fx-phase0,.ui-polished dialog.fx-dialog.fx-phase0{font-size:14px;line-height:1.4}
.ui-polished dialog.fx-dialog.fx-phase0{padding:0;background:#fff}
.ui-polished dialog.fx-phase0 .fx0-section{background:#fff}
.ui-polished dialog.fx-phase0 .fx-form input:not([type=checkbox]),.ui-polished dialog.fx-phase0 .fx-form select{min-height:34px;padding:6px 9px;font-size:14px}
.ui-polished dialog.fx-phase0 button.primary{background:#185ba5;border:1px solid #185ba5;color:#fff;box-shadow:0 2px 5px #144a8020}
.ui-polished dialog.fx-phase0 button.primary:hover{background:#124a89;border-color:#124a89}
.ui-polished dialog.fx-phase0 form>div[role=group] .ui-icon{color:#c5ddff}
/* Model 303 only: compact bands and source tables, no global layout changes. */
.fx-phase0 .f303-shell{display:grid;gap:14px;color:#153c60}
.fx-phase0 .f303-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.fx-phase0 .f303-heading h3,.fx-phase0 .f303-heading p,.fx-phase0 .f303-shell h4{margin:0 0 6px}
.fx-phase0 .f303-heading [data-actions]{display:flex;gap:6px;flex-wrap:wrap}
.fx-phase0 .f303-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid #cddff3;border-radius:6px;overflow:hidden;background:#f4f8fd}
.fx-phase0 .f303-metrics button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:transparent;border:0;border-right:1px solid #dbe6f3;border-radius:0;padding:10px;color:#153c60;min-width:0}
.fx-phase0 .f303-metrics button strong{font-size:18px;font-variant-numeric:tabular-nums}
.fx-phase0 .f303-metrics button span{font-size:11px}
.fx-phase0 .f303-metrics .f303-pay{background:#fff0f3;color:#ab2440}
.fx-phase0 .f303-metrics .f303-credit{background:#fff7df;color:#8d6500}
.fx-phase0 .f303-result,.fx-phase0 .f303-note{margin:0;font-size:12px}
.fx-phase0 .f303-table{overflow-x:auto;border:1px solid #dbe6f3;border-radius:5px}
.fx-phase0 .f303-table table{width:100%;border-collapse:collapse;font-size:12px}
.fx-phase0 .f303-table th{background:#eaf2fc;color:#17456f;text-align:left}
.fx-phase0 .f303-table td,.fx-phase0 .f303-table th{padding:7px 9px;border-bottom:1px solid #e5edf8;vertical-align:top}
.fx-phase0 .f303-table small{display:block;color:#657b94;font-size:11px;margin-top:3px;overflow-wrap:anywhere}
.fx-phase0 .f303-filed{border-left:3px solid #be2d45;background:#fff0f3;padding:10px;color:#982139}
.fx-phase0 .f303-compensation p{margin:4px 0;font-size:12px}
.fx-phase0 .f303-period-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.fx-phase0 .f303-shell .f303-heading{background:#f1f6fc;border:1px solid #cddff3;border-radius:6px;padding:12px;color:#153c60}
.fx-phase0 .f303-shell .f303-heading h3,.fx-phase0 .f303-shell .f303-heading p{color:#153c60}
.fx-phase0 .f303-shell .f303-pending{border-left:3px solid #b18108;background:#fff8e5;padding:8px 10px;color:#755400;margin:0 0 6px}
.fx-phase0 .f303-shell .fx-reviewed{color:#17734f;background:#e7f5ee}
.fx-dialog.fx-phase0 .f303-table,.fx-dialog.fx-phase0 .f303-table+p{grid-column:1/-1;min-width:0}
.fx-dialog.fx-phase0 .f303-table table{table-layout:auto}
.fx-phase0 .f303-table td{overflow-wrap:anywhere}
.fx-phase0 .f303-metrics .f303-pay strong{color:#ab2440}
.fx-phase0 .f303-metrics .f303-credit strong{color:#8d6500}
.fx-dialog.fx-phase0 .fs-origin{grid-column:1/-1;min-width:0;white-space:normal;font:inherit}
.fx-dialog.fx-phase0 .fs-origin .f303-table{margin-top:10px}
@media(max-width:1000px){.fx-phase0 .f303-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.fx-phase0 .f303-heading{align-items:flex-start;flex-direction:column}}

/* A proposal to offset is amber, never the green of a confirmed refund.
   Keep the global amount painter from shrinking the numeric metric. */
.fx-phase0 .f303-metrics button strong span{font:inherit}
.ui-polished .fx-phase0 .f303-shell .amount-favorable{color:#8d6500!important}
.ui-polished .fx-phase0 .f303-table time{white-space:nowrap}

/* Census provenance and obligation confirmation: presentation only. */
.fx-human-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.fx-human-details dt{font-size:.78rem;color:#60758e}.fx-human-details dd{margin:4px 0 0;font-size:.86rem;overflow-wrap:anywhere}.fx-audit-readable,.fx-inherited,.fx-inherited-edit,.fx-profile-provenance,.fx-technical{grid-column:1/-1;min-width:0}.fx-audit-entry{padding:8px 0;border-bottom:1px solid #dbe5f1}.fx-inherited{border:1px solid #dbe5f1;border-radius:8px;background:#f4f8fd;padding:12px 14px;color:#244c78;font-size:.84rem}.fx-inherited p{margin:6px 0}.fx-inherited-edit>summary,.fx-profile-provenance>summary,.fx-technical>summary{cursor:pointer;color:#285a91;font-weight:600;font-size:.82rem;padding:9px 0}.fx-inherited-edit[open]>summary,.fx-profile-provenance[open]>summary{margin-bottom:8px}.fx-technical{border-top:1px solid #dbe5f1;margin-top:10px}.fx-technical pre{font-size:.75rem;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;padding:12px}.fx-profile-provenance{margin-bottom:12px}.fx-profile-provenance button{font-size:.8rem;margin:3px 4px 3px 0;text-align:left;overflow-wrap:anywhere}.fx-inherited-edit .fx0-fields>label:last-child{grid-column:1/-1}@media(max-width:650px){.fx-human-details{grid-template-columns:1fr}}

/* Resolution stays within the approved Fiscal palette and compact dialog. */
.fx-dialog.f303-resolution{width:min(680px,94vw)}
.f303-resolution .f303-resolution-summary,.f303-resolution .f303-resolution-alternatives,.f303-resolution .f303-note,.f303-resolution [data-progress]{grid-column:1/-1}
.f303-resolution .f303-resolution-alternatives{padding:9px 12px;background:#f2f7fe;border:1px solid #d4e2f5;border-radius:6px;font-size:13px}
.f303-resolution .f303-resolution-summary p{margin:5px 0}
.f303-resolution label:has(textarea),.f303-resolution label:has([type=checkbox]){grid-column:1/-1}
.f303-resolution [data-other][hidden]{display:none}
.f303-resolution textarea{min-height:64px;resize:vertical}
.f303-shell [data-loading]{font-size:12px;color:#476987}

/* Read-only Fiscal details; existing palette and metrics retained. */
.fx-readable-dialog{width:min(780px,94vw)}
.fx-period-readable,.fx-readable-history,.fx-detail-note{grid-column:1/-1;min-width:0}
.fx-period-readable h4{color:#173e64;margin:12px 0 8px}
.fx-readable-history{list-style:none;padding:0;margin:8px 0}
.fx-readable-history li{padding:9px 0;border-bottom:1px solid #dbe5f1}
.fx-readable-history small{display:block;color:#60758e;margin-top:4px}
.fx-readable-history p{white-space:pre-line;margin:5px 0;overflow-wrap:anywhere}
.fx-detail-note{font-size:.82rem;color:#60758e}

/* Modelo 115: local presentation only. */
.fx-phase0 .f115-origin{grid-column:1/-1;min-width:0}
.fx-phase0 .f115-origin>.fx-table-wrap{margin:10px 0}
.fx-phase0 .f115-shell [data-115-totals]{display:flex;flex-wrap:wrap;gap:12px 24px;padding:10px 12px;background:#f4f8fd;border:1px solid #cddff3;border-radius:6px}
.fx-phase0 .f115-shell [data-115-actions]{display:flex;gap:6px}
.fx-phase0 .f115-shell .fx-table-wrap{max-height:none}

