.cf-root{--cf-bg:var(--bg-secondary,#111c2d);--cf-border:var(--border-color,#2b3a50);--cf-muted:var(--text-secondary,#a5b4c8);color:var(--text-primary,#e7edf5);font-size:14px}
.cf-root[data-cf-view=decisions] #cf-kpis{display:none}.cf-decision-hero{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:26px;border:1px solid #3b6d60;border-radius:14px;background:linear-gradient(115deg,#123936,#162a3b);margin:18px 0 28px}.cf-decision-hero h3{margin:10px 0;color:#b9d7d0;font-size:15px}.cf-decision-hero strong{font-size:38px;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}.cf-decision-hero p{font-size:12px;line-height:1.6;max-width:390px;color:#a5bec7}.cf-decision-breakdown{display:grid;gap:12px;align-content:center}.cf-decision-breakdown>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#b4c8d4}.cf-decision-breakdown b{color:#e4f6ed;font-variant-numeric:tabular-nums}.cf-decision-breakdown button{margin-top:6px;justify-self:end}.cf-root td.cf-balance-cell{background:#1c45402e;border-left:1px solid #305950;min-width:130px}.cf-balance-cell strong{color:#b3e5d4;font-size:13px}.cf-balance-cell small{font-size:10px;color:var(--cf-muted)}@media(max-width:750px){.cf-decision-hero{grid-template-columns:1fr;padding:18px;gap:16px}.cf-decision-hero strong{font-size:30px}.cf-decision-breakdown button{justify-self:stretch}}
.cf-root[data-cf-view="reconciliation"] #cf-kpis,.cf-root[data-cf-view="reconciliation"] #cf-notices,.cf-root[data-cf-view="reconciliation"] .cf-header .cf-filters{display:none}
.cr-upload{display:grid;gap:16px;padding:22px;border:1px dashed #527b83;background:#17363844;border-radius:12px;margin-bottom:22px}.cr-upload>button{justify-self:start}.cr-toolbar{margin:18px 0}.cr-sources{display:flex;flex-wrap:wrap;gap:10px 25px;color:var(--cf-muted);font-size:12px;line-height:1.7;margin:15px 0}.cr-sources span{flex:1;min-width:260px}.cr-workspace{display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,1fr);gap:20px;align-items:start;margin-top:26px}.cr-operations{min-width:0}.cr-detail{padding:22px;background:var(--cf-bg);border:1px solid var(--cf-border);border-radius:12px;min-width:0;max-height:850px;overflow:auto}.cr-detail>h3{font-size:30px;margin:9px 0}.cr-detail p{line-height:1.6;overflow-wrap:anywhere}.cr-detail h4{margin:12px 0}.cr-proposal{border:1px solid #345668;border-radius:10px;margin:12px 0;padding:16px;background:#17334255}.cr-proposal button{width:100%;margin-top:10px}.cr-targets,.cr-reasons{padding-left:19px;line-height:1.6}.cr-targets li{margin:9px 0}.cr-targets small,.cr-candidate small{display:block;color:var(--cf-muted);font-size:11px}.cr-reasons{color:var(--cf-muted);font-size:12px}.cr-evidence{margin-top:12px;font-size:12px;line-height:1.6}.cr-evidence article{border-top:1px solid var(--cf-border);margin-top:12px;padding-top:10px}.cr-detail form{display:grid;gap:12px;margin:16px 0}.cr-detail hr{border:0;border-top:1px solid var(--cf-border)}.cf-root .cr-check{display:flex;flex-direction:row;align-items:center;gap:10px;line-height:1.5;margin:14px 0}.cr-check input,.cr-candidate input{min-height:auto;flex-shrink:0}.cf-root .cr-candidate{display:flex;flex-direction:row;align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid var(--cf-border)}#cr-candidates{max-height:300px;overflow:auto}#cr-rows{max-height:850px}.cf-root td.cr-bank-concept{white-space:normal;min-width:210px;max-width:330px;padding:0;position:static}.cr-bank-concept button{background:transparent!important;border:0!important;text-align:left;width:100%;padding:14px!important;line-height:1.5}.cr-bank-concept strong{display:block;font-weight:500;margin-top:8px;font-size:12px;overflow-wrap:anywhere}.cr-bank-concept button>span{font-size:11px;color:var(--cf-muted)}#cr-rows .cr-selected td{background:#20504755}#cr-rows td small{display:block;margin-top:5px;font-size:10px}.cr-success{border:1px solid #3d9479;background:#1b514144;padding:18px;border-radius:10px}#cr-message:not(:empty){padding:13px;border:1px solid #527c99;border-radius:8px;margin:12px 0}#cr-confirm-error{color:#ff979d}.cr-detail summary{line-height:1.6}#cr-confirm-body{line-height:1.7}
@media(max-width:1100px){.cr-workspace{grid-template-columns:1fr}.cr-detail{max-height:none}#cr-rows{max-height:480px}}
.cf-header,.cf-section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}.cf-header{padding:22px;background:linear-gradient(115deg,#142d39,#17243d);border:1px solid var(--cf-border);border-radius:14px}.cf-header h2{font-size:27px;margin:6px 0;color:#f4f8fb}.cf-header p,.cf-section-title p{color:var(--cf-muted);margin:5px 0;line-height:1.5}.cf-eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#73dfbf}
.cf-root button,.cf-root input,.cf-root select,.cf-root textarea{font:inherit;border:1px solid var(--cf-border);border-radius:7px;background:var(--cf-bg);color:inherit;padding:8px 11px;min-height:37px;max-width:100%}.cf-root button{cursor:pointer}.cf-root button:hover{border-color:#72ddbc}.cf-root button:disabled{opacity:.5;cursor:wait}.cf-root input:focus,.cf-root select:focus,.cf-root button:focus-visible{outline:2px solid #6de0c0;outline-offset:2px}.cf-root .cf-primary{background:#146950;border-color:#389b7b;color:#fff}.cf-root label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--cf-muted)}
.cf-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.cf-filters input[type=number]{width:90px}.cf-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:17px 0}.cf-kpi{border:1px solid var(--cf-border);border-radius:11px;padding:16px;background:var(--cf-bg);min-width:0}.cf-kpi span{display:block;color:var(--cf-muted);font-size:12px;line-height:1.5}.cf-kpi strong{display:block;font-size:24px;margin:7px 0;overflow-wrap:anywhere}.cf-kpi small{display:block;color:var(--cf-muted);line-height:1.5}
.cf-tabs{display:flex;gap:6px;border-bottom:1px solid var(--cf-border);margin:22px 0;overflow-x:auto;padding-bottom:10px}.cf-tabs button{white-space:nowrap;border-color:transparent}.cf-tabs button.active{color:#8cf0cc;background:#1b433d;border-color:#3b6d60}.cf-root h3{margin:0;font-size:18px}.cf-muted{color:var(--cf-muted);font-size:12px;line-height:1.6}.cf-notices:empty{display:none}.cf-notices{padding:10px 15px;background:#6b451824;border:1px solid #a17c39;border-radius:8px;margin:12px 0}.cf-notices p{margin:5px 0}.cf-table-wrap{overflow:auto;border:1px solid var(--cf-border);border-radius:9px;max-height:590px;margin:13px 0 24px}.cf-root table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.cf-root th,.cf-root td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--cf-border);white-space:nowrap;font-variant-numeric:tabular-nums}.cf-root thead th{position:sticky;top:0;background:#19273c;z-index:2;color:#b9cadd;font-weight:600}.cf-root th:first-child,.cf-root td:first-child{text-align:left;position:sticky;left:0;background:var(--cf-bg);z-index:1}.cf-root thead th:first-child{z-index:3;background:#19273c}.cf-root td.cf-concept{text-align:left;white-space:normal;min-width:260px;max-width:380px}.cf-root td.cf-concept small{display:block;color:var(--cf-muted);margin-top:4px}.cf-negative{color:#ff979d}.cf-positive{color:#82e1b2}.cf-badge{font-size:11px;padding:4px 7px;border-radius:5px;background:#233753;display:inline-block}.cf-badge.paid{color:#82e1b2;background:#163d32}.cf-badge.pending{color:#e6c075;background:#443718}.cf-badge.cancelled{color:#b3b3b3}.cf-charge-filters{margin-bottom:14px}.cf-root footer{margin:20px 0}.cf-root details{padding:12px;border:1px solid var(--cf-border);border-radius:8px}.cf-root summary{cursor:pointer}
.cf-root dialog{color:#e7edf5;background:#142033;border:1px solid #49617c;border-radius:14px;padding:24px;width:min(700px,calc(100vw - 36px));max-height:90vh;overflow:auto}.cf-root dialog::backdrop{background:#020914b5}.cf-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cf-dialog-actions{display:flex;gap:10px;justify-content:end;margin-top:24px}#cf-form-error{color:#ff979d;white-space:pre-wrap}#cf-message:not(:empty){padding:12px;border:1px solid #526e8c;border-radius:8px;margin:10px 0}#cf-openings{display:flex;flex-wrap:wrap;gap:10px;padding-top:12px}.cf-root [hidden]{display:none!important}
#cf-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.cf-root dialog{box-sizing:border-box}.cf-form-grid>*{min-width:0}
.cf-monthly-heading{margin-bottom:10px}.cf-monthly-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.cf-outline-levels{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.cf-outline-levels>span{color:var(--cf-muted);font-size:12px;margin-right:5px}.cf-outline-levels button[aria-pressed=true]{background:#1b433d;border-color:#4d947e;color:#a8f3d5}.cf-monthly-help{margin:10px 0}.cf-budget-settings>.cf-section-title{margin-top:20px}.cf-sheet-wrap:focus-visible{outline:2px solid #6de0c0;outline-offset:3px}.cf-root .cf-sheet-wrap{position:relative;isolation:isolate;max-height:68vh;margin-bottom:12px;scrollbar-color:#526f8c #0e1b2b;overscroll-behavior:contain}
.cf-root .cf-sheet{table-layout:fixed;width:max-content;min-width:100%;font-size:12px}.cf-sheet-concept{width:310px}.cf-sheet-amount{width:124px}.cf-root .cf-sheet th,.cf-root .cf-sheet td{box-sizing:border-box;padding:9px 12px;border-bottom:1px solid #293c51;line-height:18px;white-space:nowrap}.cf-root .cf-sheet td{min-width:124px}.cf-root .cf-sheet td.cf-sheet-projected{background:#18283c;border-left:2px solid #344c65}.cf-root .cf-sheet td.cf-sheet-real{background:#111c2d}.cf-root .cf-sheet thead th{background:#152e47;text-align:center;color:#dceaf6;position:sticky;z-index:4}.cf-root .cf-sheet thead tr:first-child th{height:36px;top:0;padding:8px 12px;border-left:2px solid #344c65}.cf-root .cf-sheet thead tr:nth-child(2) th{height:34px;top:36px;padding:7px 12px;left:auto}.cf-root .cf-sheet thead tr:nth-child(2) th:first-child{left:auto;z-index:4}.cf-root .cf-sheet thead .cf-sheet-projected{background:#263b53;color:#d1def0;border-left:2px solid #344c65}.cf-root .cf-sheet thead .cf-sheet-real{background:#172b3e;color:#a5e9d0}.cf-root .cf-sheet thead .cf-sheet-corner{left:0;z-index:6;border-left:0;text-align:left;white-space:normal;min-width:310px}.cf-sheet-corner span{display:block;color:#94afc7;font-size:11px;font-weight:400}.cf-root .cf-sheet thead .cf-sheet-current{box-shadow:inset 0 3px #70d8b6;color:#a5f0d4}.cf-root .cf-sheet tbody th{position:sticky;left:0;z-index:2;max-width:310px;white-space:normal;background:#111c2d;color:#cfdae8;text-align:left;font-weight:400;box-shadow:4px 0 6px #06112044}
.cf-outline-label{display:flex;align-items:center;gap:7px;padding-left:calc(var(--cf-level)*12px)}.cf-root .cf-outline-toggle{min-height:22px;height:22px;width:22px;flex:0 0 22px;padding:0;font-size:17px;line-height:18px;border-radius:4px;border-color:#4d7189;background:#142c40;color:#afdbef}.cf-outline-spacer{width:22px;flex:0 0 22px}.cf-outline-code{font-size:10px;color:#8fa8bf;flex:0 0 38px}.cf-outline-code:empty{display:none}.cf-outline-name{min-width:0;overflow-wrap:anywhere;line-height:1.4}.cf-root .cf-sheet .cf-sheet-section>th,.cf-root .cf-sheet .cf-sheet-section>td{font-weight:700;background:#15384c;color:#e1f0fa;border-top:2px solid #42647b}.cf-root .cf-sheet .cf-sheet-section>td.cf-sheet-projected{background:#1b4259}.cf-sheet-section .cf-outline-code{flex-basis:18px;color:#b5dbea}.cf-root .cf-sheet .cf-sheet-group>th,.cf-root .cf-sheet .cf-sheet-group>td{font-weight:600;background:#182b3b;color:#cedfea}.cf-root .cf-sheet .cf-sheet-group>td.cf-sheet-projected{background:#20354b}.cf-root .cf-sheet .cf-sheet-result>th,.cf-root .cf-sheet .cf-sheet-result>td{background:#153f3b;border-top-color:#4c897d;color:#c3f2df}.cf-root .cf-sheet .cf-sheet-result>td.cf-sheet-projected{background:#1b4b43}.cf-root .cf-sheet .cf-sheet-zero{color:#8198ad}.cf-root .cf-sheet .cf-negative{color:#ff999f}.cf-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cf-root[data-cf-view=control] #cf-kpis .cf-kpi{padding:12px 14px}.cf-root[data-cf-view=control] #cf-kpis .cf-kpi strong{font-size:21px;margin:5px 0}.cf-root[data-cf-view=control] #cf-kpis .cf-kpi small{display:none}
@media(max-width:900px){.cf-sheet-concept{width:230px}.cf-root .cf-sheet thead .cf-sheet-corner{min-width:230px}.cf-root .cf-sheet tbody th{max-width:230px}.cf-outline-label{gap:5px;padding-left:calc(var(--cf-level)*6px)}.cf-outline-code{flex-basis:32px}}
@media(max-width:750px){.cf-sheet-concept{width:230px}.cf-root .cf-sheet thead .cf-sheet-corner{min-width:230px}.cf-root .cf-sheet tbody th{max-width:230px}.cf-root .cf-sheet th,.cf-root .cf-sheet td{padding-left:8px;padding-right:8px}.cf-outline-label{gap:5px;padding-left:calc(var(--cf-level)*6px)}.cf-outline-code{flex-basis:32px}.cf-root .cf-sheet-wrap{max-height:72vh}.cf-monthly-toolbar>button{font-size:12px}.cf-outline-levels button{font-size:12px;padding:7px}}
.cf-actions{display:flex;gap:8px;flex-wrap:wrap}.cf-purchase-picker{border:1px solid #3b6d60;background:#102b2c55;padding:18px;border-radius:12px;margin:18px 0}.cf-purchase-picker .cf-table-wrap{max-height:410px;margin-bottom:0}.cf-purchase-picker td small{display:block;white-space:normal;max-width:280px;margin-top:4px;color:var(--cf-muted)}.cf-purchase-summary,.cf-wide{grid-column:1/-1}.cf-purchase-summary{background:#102c32;border:1px solid #396369;border-radius:8px;padding:14px;line-height:1.6}.cf-purchase-summary p{margin:5px 0}.cf-purchase-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:12px 0}.cf-purchase-summary dt{font-size:11px;color:var(--cf-muted)}.cf-purchase-summary dd{margin:0;overflow-wrap:anywhere}.cf-purchase-summary h4{margin:0;font-size:17px}
@media(max-width:1100px){#cf-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.cf-header{padding:16px}.cf-header h2{font-size:23px}.cf-filters{width:100%}.cf-filters label{flex:1;min-width:110px}.cf-kpis{grid-template-columns:1fr 1fr}.cf-kpi{padding:12px}.cf-kpi strong{font-size:19px}.cf-form-grid{grid-template-columns:1fr}.cf-root th,.cf-root td{padding:9px}.cf-tabs button{padding:8px}.cf-section-title h3{font-size:16px}}
#cf-charges td small{display:block;font-size:10px;color:var(--cf-muted);margin-top:4px}#cf-charges td.cf-concept{min-width:220px;max-width:290px}#cf-charges td.cf-row-actions{min-width:130px;white-space:normal}#cf-charges .cf-row-actions button{display:block;font-size:11px;width:100%;margin:4px 0;min-height:31px;padding:5px 8px}
.cf-root td.cf-balance-cell strong.cf-negative{color:#ff979d}
.cf-purchase-picker td.cf-concept small{max-height:4.8em;overflow:hidden;line-height:1.6}
.cf-root[data-cf-view=charges] #cf-kpis{display:none}
.cf-root[data-cf-view=reserves] #cf-kpis{display:none}.cf-closing-reserve{padding:14px;border:1px solid var(--cf-border);border-radius:10px;background:var(--cf-bg)}.cf-closing-reserve p{margin:6px 0 12px;color:var(--cf-muted)}
.cf-bank-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 12px;max-width:680px}
.cf-root .cf-bank-selector button{text-align:left;padding:14px 18px;border-radius:12px;background:var(--cf-bg);border:1px solid var(--cf-border)}
.cf-bank-selector span{display:block;font-weight:650;font-size:16px}.cf-bank-selector small{display:block;margin-top:5px;color:var(--cf-muted);font-size:12px}
.cf-root .cf-bank-selector button[aria-pressed=true]{border-color:var(--pv-accent-cyan,#22d3ee);box-shadow:inset 3px 0 0 var(--pv-accent-cyan,#22d3ee)}
.cf-bank-selector button[aria-pressed=true] span{color:var(--pv-accent-cyan,#22d3ee)}
@media(max-width:480px){.cf-bank-selector{grid-template-columns:1fr}.cf-root .cf-bank-selector button{padding:12px 14px}}

.cf-notice-action{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:10px 0}.cf-notice-action>span{flex:1;min-width:200px}.cf-notice-action>button{flex-shrink:0}.cf-aux-notice{padding:10px 0;border-top:1px solid var(--cf-border)}#cf-review-rows small{display:block;margin-top:5px;color:var(--cf-muted)}#cf-review-rows table{table-layout:fixed}#cf-review-rows td,#cf-review-rows th{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;vertical-align:top}#cf-review-rows th:first-child{width:22%}#cf-review-rows th:nth-child(2){width:31%}#cf-review-rows th:nth-child(3){width:20%}#cf-review-rows th:last-child{width:27%}#cf-review-rows button{display:block;width:100%;white-space:normal;margin-bottom:6px}#cf-aux-notices{margin:15px 0}.cf-root[data-cf-view="accounts"] #cf-notices,.cf-root[data-cf-view="review"] #cf-notices,.cf-root[data-cf-view="review"] #cf-kpis{display:none}
/* Blue is a suggestion awaiting approval; green remains a saved reconciliation. */
.cr-batch-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px;margin-top:20px;background:var(--cf-bg);border:1px solid var(--cf-border);border-radius:12px}.cr-batch-toolbar p{margin:5px 0;font-size:12px}.cr-batch-toolbar>.cf-muted{flex-basis:100%}.cf-root .cr-batch-select{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 14px 0;color:var(--cf-muted);font-size:11px}.cr-batch-select input{min-height:16px;width:16px}.cf-root #cr-batch-dialog{width:min(1200px,calc(100vw - 36px))}#cr-batch-rows{max-height:52vh;margin:18px 0}#cr-batch-rows table{table-layout:fixed}#cr-batch-rows th,#cr-batch-rows td{text-align:left;white-space:normal;overflow-wrap:anywhere;vertical-align:top}#cr-batch-rows th:first-child{width:28%}#cr-batch-rows th:nth-child(2){width:42%}#cr-batch-rows th:last-child{width:9%}#cr-batch-rows td:first-child{position:static}#cr-batch-rows select{width:100%;min-width:0}#cr-batch-rows small{display:block;color:var(--cf-muted);margin-top:5px}#cr-batch-rows p{margin:6px 0}#cr-batch-message:not(:empty){padding:12px;border:1px solid var(--cf-border);border-radius:8px}#cr-batch-message[role=alert]{color:var(--pv-amber,#e6c075)}@media(max-width:750px){#cr-batch-rows table{min-width:700px}.cr-batch-toolbar .cf-actions{width:100%}.cr-batch-toolbar button{flex:1}}
#cr-rows .cr-preidentified-note{color:var(--pv-accent-cyan,#22d3ee);font-size:11px}.cr-preidentified{border:1px solid var(--pv-accent,#3b82f6);background:var(--pv-card-surface,rgba(18,24,40,.75));padding:18px;border-radius:10px}.cr-preidentified>strong{color:var(--pv-accent-cyan,#22d3ee)}.cr-preidentified button{margin:6px 8px 0 0}

/* Keep approval visible while the batch table scrolls. */
#cr-batch-form{display:flex;flex-direction:column;max-height:calc(90vh - 50px)}#cr-batch-form> :not(#cr-batch-rows){flex-shrink:0}#cr-batch-form #cr-batch-rows{flex:1;min-height:100px}#cr-batch-form .cf-dialog-actions{margin-top:12px}#cr-batch-rows button[data-cr-batch-remove]{white-space:nowrap;padding:8px 6px;font-size:11px}

.cr-purchases{padding:16px;border:1px solid var(--pv-accent-cyan,#22d3ee);border-radius:10px;margin:18px 0;background:var(--cf-bg)}.cr-purchases h4{color:var(--pv-accent-cyan,#22d3ee)}.cr-purchase-card{padding:14px;margin:12px 0;border:1px solid var(--cf-border);border-radius:8px}.cr-purchase-card strong,.cr-purchase-card p{overflow-wrap:anywhere}.cr-purchase-card form select{width:100%;min-width:0}.cr-purchase-sync{align-items:center;margin:12px 0}.cr-purchase-sync span{font-size:12px;color:var(--cf-muted);flex:1;min-width:230px}#cr-purchase-message:not(:empty){padding:10px;border:1px solid var(--cf-border);border-radius:8px}
.cr-cfdi-uuid { overflow-wrap:anywhere; }

.cf-root #cr-create-batch-dialog{width:min(960px,calc(100vw - 36px))}
#cr-create-batch-form>label:not(.cr-check){margin:12px 0}
#cr-create-batch-form>p{line-height:1.5}
#cr-create-batch-rows:empty{display:none}
#cr-create-batch-rows{max-height:32vh;margin:16px 0}
#cr-create-batch-rows table{table-layout:fixed}
#cr-create-batch-rows th,#cr-create-batch-rows td{white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top}
#cr-create-batch-rows th:first-child{width:44%}
#cr-create-batch-rows td:first-child{position:static}
#cr-create-batch-rows th:nth-child(2){width:16%}
#cr-create-batch-rows small{color:var(--cf-muted)}
#cr-create-batch-rows p{margin:6px 0}
#cr-create-batch-rows ul{padding-left:18px;line-height:1.5}
#cr-create-batch-message[role=alert]{color:var(--pv-amber,#e6c075)}

/* Cash decisions, monthly planning and the bank ledger share the same records. */
.cf-root{--cf-incoming:var(--pv-accent-green,#83e5bd);--cf-outgoing:var(--pv-amber,#ffd28a);--cf-result:var(--pv-accent-cyan,#67def3);--cf-surface:var(--pv-bg-secondary,#111c2d);--cf-heading:var(--pv-text-primary,#f1f6fc)}
.cf-cash-overview{display:grid;grid-template-columns:1.05fr 1fr;gap:16px;margin:18px 0}
.cf-root .cf-tabs{flex-wrap:wrap;overflow-x:visible}
.cf-cash-overview article{padding:24px;border:1px solid var(--cf-border);border-radius:14px;background:var(--cf-surface)}
.cf-cash-overview .cf-cash-now{border-left:4px solid var(--cf-result)}
.cf-cash-overview strong{display:block;font-size:clamp(26px,3vw,38px);font-variant-numeric:tabular-nums;letter-spacing:-1px;margin:12px 0;color:var(--cf-heading)}
.cf-cash-overview strong.cf-negative{color:var(--pv-danger,#ff979d)}
.cf-cash-overview .cf-eyebrow{font-size:10px;letter-spacing:1px;color:var(--cf-result)}
.cf-cash-overview p{margin:8px 0;font-size:14px;line-height:1.6}.cf-cash-overview small{color:var(--cf-muted);font-size:12px}
.cf-cash-outlook button{margin-top:8px}
.cf-income-detail{margin-top:18px}.cf-income-detail summary{color:var(--cf-result);font-weight:600}.cf-income-detail .cf-table-wrap{margin-bottom:0}.cf-income-detail td small{font-size:11px}.cf-income-detail td.cf-concept{min-width:160px}
/* One row combines the monthly balance and its recurring schedule. */
.cf-root[data-cf-view=schedules] #cf-kpis{display:none}
.cf-planning-toolbar{margin-top:26px}.cf-planning-toolbar label{min-width:170px}
#cf-schedules{max-height:65vh;scrollbar-color:var(--cf-muted) var(--cf-surface)}
#cf-schedules table{table-layout:fixed;min-width:890px;font-size:13px}
#cf-schedules th,#cf-schedules td{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;padding:13px 10px}
#cf-schedules thead th{color:var(--cf-heading)}
#cf-schedules thead th:nth-child(1){width:28%}#cf-schedules thead th:nth-child(2){width:13%}#cf-schedules thead th:nth-child(3){width:13%}#cf-schedules thead th:nth-child(4){width:14%}#cf-schedules thead th:nth-child(5){width:18%}#cf-schedules thead th:nth-child(6){width:14%}
#cf-schedules td{vertical-align:top;background:var(--cf-surface);font-variant-numeric:tabular-nums}
#cf-schedules tr:nth-child(even) td{background:var(--pv-bg-base,#0d1728)}
#cf-schedules td.cf-concept{position:static;text-align:left;line-height:1.5;border-left:3px solid var(--cf-outgoing)}
#cf-schedules .income td.cf-concept{border-left-color:var(--cf-incoming)}
#cf-schedules .inactive td.cf-concept{border-left-color:var(--cf-muted)}
#cf-schedules td small{display:block;color:var(--cf-muted);font-size:11px;line-height:1.5;margin-top:5px}
#cf-schedules td small.cf-positive{color:var(--cf-incoming)}
#cf-schedules .cf-plan-amount>strong{white-space:nowrap;font-size:14px}#cf-schedules .cf-plan-remaining>strong{color:var(--cf-outgoing)}#cf-schedules .income .cf-plan-remaining>strong{color:var(--cf-incoming)}
#cf-schedules .settled .cf-plan-remaining>strong{color:var(--cf-incoming)}
#cf-schedules .cf-plan-dates{text-align:left;font-size:12px}
#cf-schedules .cf-planning-state{display:inline-block;font-size:10px;border:1px solid var(--cf-border);border-radius:5px;padding:2px 6px;margin-top:7px;color:var(--cf-muted)}
#cf-schedules .cf-row-actions button{display:block;width:100%;font-size:12px;margin:0 0 6px;padding:8px 6px;white-space:normal;min-height:34px}
#cf-schedules .cf-row-actions button:first-child{border-color:var(--cf-result)}
#cf-schedules .cf-planning-group th{position:static;text-align:left;background:var(--pv-card-surface,#1e3245);color:var(--cf-result);font-size:13px;padding:13px 15px}
#cf-schedules .cf-planning-group span{font-weight:400;color:var(--cf-muted);font-size:11px;margin-left:14px}
#cf-schedules .cf-planning-payments{margin-top:10px;padding:0;border:0;font-size:11px}
#cf-schedules .cf-planning-payments summary{color:var(--cf-result)}#cf-schedules .cf-planning-payments p{padding:8px 0;border-top:1px solid var(--cf-border);margin:8px 0}
.cf-root .cf-planning-reserves{padding:0;margin:24px 0;border:1px solid var(--cf-border);border-radius:12px;background:var(--cf-surface)}
.cf-planning-reserves>summary{padding:20px;font-weight:600;color:var(--cf-heading)}.cf-planning-reserves>summary span{display:inline-block;font-size:12px;font-weight:400;color:var(--cf-muted);margin-left:12px}
.cf-planning-reserve-content{padding:0 20px 20px;border-top:1px solid var(--cf-border)}
.cf-edit-month{padding:12px 16px;border:1px solid var(--cf-border);border-radius:8px;background:var(--cf-surface)}.cf-edit-month p{margin:0 0 10px}
.cf-tone-income{--cf-bar:var(--cf-incoming)}.cf-tone-expense{--cf-bar:var(--cf-outgoing)}.cf-tone-reserve{--cf-bar:var(--pv-purple,#c5b1ff)}.cf-tone-negative{--cf-bar:var(--pv-danger,#ff979d)}
#cf-decision-months{max-height:none}#cf-decision-months table{font-size:13px}
#cf-decision-months th{color:var(--cf-heading);padding:14px 12px;white-space:normal}
#cf-decision-months td{padding:15px 12px;background:var(--cf-surface)}
#cf-decision-months td small{display:block;font-size:11px;margin-top:5px;color:var(--cf-muted)}
#cf-decision-months .cf-month-flow strong{display:block;color:var(--cf-bar);font-size:14px}
#cf-decision-months button{background:transparent;border:0;padding:4px 0;min-height:30px;font-weight:600;text-align:left}
#cf-decision-months .cf-month-selected td{box-shadow:inset 0 1px var(--cf-result),inset 0 -1px var(--cf-result)}
#cf-decision-months .cf-month-selected td:first-child{border-left:3px solid var(--cf-result)}
#cf-decision-months .cf-month-available{background:var(--pv-card-surface,#182d3d);border-left:1px solid var(--cf-border);font-size:15px;font-weight:700}
#cf-charges{max-height:72vh;scrollbar-color:var(--cf-muted) var(--cf-surface)}
#cf-charges table{font-size:13px;min-width:870px;table-layout:fixed}
#cf-charges thead th:nth-child(1){width:13%}#cf-charges thead th:nth-child(2){width:29%}#cf-charges thead th:nth-child(3){width:12%}#cf-charges thead th:nth-child(4){width:14%}#cf-charges thead th:nth-child(5){width:16%}#cf-charges thead th:nth-child(6){width:16%}
#cf-charges th,#cf-charges td.cf-balance-cell,#cf-charges td.cf-row-actions{min-width:0;white-space:normal}
#cf-charges thead th{padding:14px 12px;color:var(--cf-heading)}
#cf-charges .cf-movement td{padding:16px 12px;vertical-align:top;background:var(--cf-surface)}
#cf-charges .cf-movement:nth-child(even) td{background:var(--pv-bg-base,#0d1728)}
#cf-charges .cf-movement td:first-child{border-left:3px solid var(--cf-incoming);font-weight:600}
#cf-charges .cf-movement.pending td:first-child{border-left-color:var(--cf-outgoing)}
#cf-charges .cf-movement.cancelled td:first-child{border-left-color:var(--cf-muted)}
#cf-charges td.cf-concept{min-width:0;max-width:none;line-height:1.55;overflow-wrap:anywhere}
#cf-charges td small{font-size:11px;line-height:1.5;margin-top:5px}
#cf-charges td small.cf-positive{color:var(--cf-incoming)}
#cf-charges .cf-movement-amount strong{font-size:14px;color:var(--cf-bar)}
#cf-charges .cf-balance-cell strong{font-size:14px}
#cf-charges .cf-row-actions button{font-size:12px;min-height:34px;margin:0 0 6px}
#cf-charges .cf-movement-receipt{padding:0;border:0;margin-top:8px}
#cf-charges .cf-movement-receipt summary{font-size:11px;color:var(--cf-result)}
#cf-charges .cf-movement-group th{position:static;text-align:left;background:var(--pv-card-surface,#1e3245);padding:13px 15px;color:var(--cf-incoming);font-size:13px}
#cf-charges .cf-movement-group.pending th{color:var(--cf-outgoing)}
#cf-charges .cf-movement-group.cancelled th{color:var(--cf-muted)}
#cf-charges .cf-movement-group span{color:var(--cf-muted);font-size:11px;font-weight:400;margin-left:15px}
@media(max-width:750px){.cf-cash-overview{grid-template-columns:1fr}.cf-cash-overview article,.cf-cash-bridge{padding:18px}.cf-root .cf-tabs{flex-wrap:wrap;overflow-x:visible}.cf-tabs button{white-space:normal}.cf-cash-bridge .cf-section-title h3{font-size:16px}}
#ctrl-efectivo-sub [data-cf-company]{white-space:normal;line-height:1.45;text-align:left}
#cr-doc-panel{grid-template-columns:minmax(0,1fr);min-width:0}#cr-doc-panel>form,#cr-doc-panel>.cf-filters{min-width:0}#cr-doc-panel .cf-table-wrap{min-width:0;max-width:100%}
.cf-root .cr-document-rows { min-width: 1100px; }
.cf-root .cr-document-rows input, .cf-root .cr-document-rows select { width: 100%; min-width: 110px; }
.cf-root .cr-document-rows [data-field="description"] { min-width: 220px; }
.cf-root .cr-document-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
.cf-root #cr-doc-batch td{overflow-wrap:anywhere;white-space:normal}
.cf-root #cr-doc-batch small{display:block;color:var(--cf-muted);margin-top:5px}
.cf-root #cr-doc-batch .cr-doc-active{outline:1px solid var(--pv-accent-cyan,var(--cf-border));outline-offset:-1px}
.cf-root .cr-receipts-wrap{max-height:55vh;margin:16px 0}
.cf-root .cr-receipts-table{min-width:1380px;table-layout:fixed}
.cf-root .cr-receipts-table th,.cf-root .cr-receipts-table td{white-space:normal;min-width:0;text-align:left;vertical-align:top;padding:12px}
.cf-root .cr-receipts-table th:first-child{width:230px}
.cf-root .cr-receipts-table th:nth-child(2){width:148px}
.cf-root .cr-receipts-table th:nth-child(3),.cf-root .cr-receipts-table th:nth-child(4){width:210px}
.cf-root .cr-receipts-table th:nth-child(5){width:130px}
.cf-root .cr-receipts-table th:nth-child(6),.cf-root .cr-receipts-table th:nth-child(7){width:120px}
.cf-root .cr-receipts-table th:last-child{width:190px}
.cf-root .cr-receipts-table input:not([type=checkbox]),.cf-root .cr-receipts-table select{width:100%;min-width:0;font-size:13px}
.cf-root .cr-receipts-table td:first-child{overflow-wrap:anywhere;font-size:12px}
.cf-root .cr-receipts-table .cr-check{margin:0 0 8px;align-items:flex-start}
.cf-root .cr-receipts-table details{font-size:11px;margin-top:8px}
.cf-root .cr-receipts-table details p{max-height:120px;overflow:auto}
.cf-root .cr-receipt-status{font-size:12px;color:var(--cf-muted)}
.cf-root .cr-receipt-done .cr-receipt-status{color:var(--cf-incoming)}
.cf-root .cr-receipt-error .cr-receipt-status{color:var(--pv-danger,#ff979d)}
.cf-root .cr-receipt-error td{border-bottom:2px solid var(--pv-danger,#ff979d)}
#cr-nd{display:block;min-width:0}#cr-nd[hidden]{display:none}#cr-nd .cf-table-wrap{max-width:100%;margin-bottom:16px}#cr-nd-count{font-weight:600;padding:12px 0;color:var(--cf-incoming)}#cr-nd-message[role=alert]{color:var(--pv-amber,#e6c075)}#cr-nd table{table-layout:fixed;min-width:550px}#cr-nd th,#cr-nd td{text-align:left;white-space:normal;overflow-wrap:anywhere;vertical-align:top}#cr-nd td:first-child{position:static}#cr-nd-rows th:first-child{width:82px}#cr-nd-rows th:nth-child(3){width:115px}#cr-nd-rows td:nth-child(3){white-space:nowrap;text-align:right;font-weight:600}#cr-nd-rows input[type=checkbox]{min-height:18px;width:18px;cursor:pointer}#cr-nd small{display:block;color:var(--cf-muted);margin-top:6px}#cr-nd td p{line-height:1.6}#cr-nd td button{margin-top:8px;font-size:11px}#cr-nd-selected{max-height:320px}#cr-nd-selected th:first-child{width:110px}#cr-nd-selected td:first-child{white-space:nowrap}#cr-nd-selected th:last-child{width:115px}#cr-nd-selected td:last-child{text-align:right;white-space:nowrap}#cr-nd-total{font-weight:600;font-size:15px}
#cf-daily-report{margin:20px 0;padding:16px;border:1px solid var(--cf-border);border-radius:12px;background:var(--cf-bg)}#cf-daily-report[hidden],#cf-daily-copy-fallback[hidden]{display:none}#cf-daily-rows{max-height:440px}#cf-daily-rows table{min-width:440px;font-variant-numeric:tabular-nums}#cf-daily-rows th,#cf-daily-rows td{text-align:right;white-space:nowrap}#cf-daily-rows th:first-child,#cf-daily-rows td:first-child{text-align:left;width:120px}#cf-daily-copy-text{width:100%;font-family:monospace}#cr-nd .cr-nd-day-detail{margin-top:10px}#cr-nd .cr-nd-day-item{padding:12px 0;border-bottom:1px solid var(--cf-border)}#cr-nd .cr-nd-day-item label{display:block;font-size:13px;line-height:1.6}#cr-nd .cr-nd-day-item input{margin-right:6px}

#cf-movement-detail[hidden]{display:none}#cf-daily-summary{font-weight:600;line-height:1.8}#cf-daily-rows td:last-child:not(.cf-negative){font-weight:700;color:var(--accent-cyan,#22d3ee)}

/* Bank evidence and editable treasury registration share the same row. */
.cf-root .cr-workspace{display:block}
#cr-detail-store[hidden]{display:none}
#cr-rows:has(.cr-editable-table){max-height:78vh}
.cf-root .cr-editable-table{table-layout:fixed;min-width:1080px}
.cf-root .cr-editable-table th,.cf-root .cr-editable-table td{vertical-align:top}
.cf-root .cr-editable-table th{white-space:normal;text-align:left;line-height:1.5}
.cf-root .cr-editable-table th:first-child{width:25%;left:auto}
.cf-root .cr-editable-table th:nth-child(2),.cf-root .cr-editable-table th:nth-child(3){width:10%;text-align:right}
.cf-root .cr-editable-table th:nth-child(4){width:22%}
.cf-root .cr-editable-table th:nth-child(5){width:18%}
.cf-root .cr-editable-table th:nth-child(6){width:15%}
.cf-root .cr-editable-table .cr-bank-concept{max-width:none;min-width:0;position:static}
.cf-root .cr-editable-table td:not(:first-child){padding:12px 10px}
.cf-root .cr-editable-table td:nth-child(2),.cf-root .cr-editable-table td:nth-child(3){white-space:nowrap;font-weight:600}
.cf-root .cr-editable-table td.cr-grid-registration,.cf-root .cr-editable-table td.cr-grid-documents,.cf-root .cr-editable-table td.cr-grid-actions{white-space:normal;text-align:left;overflow-wrap:anywhere}
.cr-grid-registration label,.cr-grid-actions label{margin-bottom:9px}
.cr-grid-registration input,.cr-grid-registration select,.cr-grid-actions select{width:100%;min-width:0;font-size:12px}
.cr-grid-actions>button{width:100%;margin-bottom:8px;font-size:12px}
.cr-grid-actions .cr-check{font-size:11px;line-height:1.4;margin:8px 0}
.cf-root .cr-grid-document{padding:8px;margin-bottom:8px;font-size:11px;line-height:1.5}
.cr-grid-document summary{font-weight:600}
.cr-grid-document ul{padding-left:15px}
.cr-grid-document button{font-size:11px;width:100%}
.cr-grid-approval{padding:10px;border:1px solid var(--pv-accent-cyan,var(--cf-border));border-radius:8px;margin:8px 0}
.cr-grid-approval strong{display:block;font-size:12px}
.cf-root .cr-editable-table .cr-grid-expanded>td{position:static;padding:0;text-align:left;white-space:normal}
.cr-grid-expanded .cr-detail{max-height:none;border-radius:0;border:0;border-left:3px solid var(--pv-accent-cyan,var(--cf-border))}
.cr-grid-expanded .cr-detail>h3{font-size:20px}
.cr-grid-actions [role=alert]{color:var(--pv-amber,var(--text-primary));font-size:12px}
.cf-root .cr-editable-table td.cr-balance-cell{white-space:normal;font-weight:400}
.cr-balance-cell>strong{white-space:nowrap}
.cf-root .cr-balance-evidence{padding:6px;margin-top:8px;font-size:11px;text-align:left;overflow-wrap:anywhere;line-height:1.5}
.cr-balance-evidence p{margin:7px 0}
.cr-balance-summary{padding:12px;border:1px solid var(--cf-border);border-radius:8px;background:var(--cf-bg);margin:8px 0}
.cr-balance-summary>strong{color:var(--cf-incoming)}
.cf-root #cf-policy-dialog{width:min(1440px,calc(100vw - 32px));max-height:94vh}
#cf-policy-dialog .cf-policy-card{border:1px solid var(--cf-border);border-radius:10px;padding:16px;margin:18px 0;background:var(--cf-bg)}
#cf-policy-dialog .cf-policy-card>summary{font-weight:700;cursor:pointer;color:var(--cf-accent,#50d3c2)}
#cf-policy-dialog .cf-policy-edit{display:grid;grid-template-columns:160px 130px minmax(180px,1fr);gap:12px;margin:14px 0}
#cf-policy-dialog .cf-policy-reference{grid-column:1/-1}
#cf-policy-dialog .cf-policy-invoice{padding:14px;margin:14px 0;border:1px solid #39766c;border-radius:8px}
#cf-policy-dialog .cf-policy-invoice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#cf-policy-dialog label{display:flex;flex-direction:column;gap:6px;text-align:left;font-size:12px}
#cf-policy-dialog input,#cf-policy-dialog select,#cf-policy-dialog textarea{max-width:100%;box-sizing:border-box}
#cf-policy-dialog .cf-policy-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:10px 0}
#cf-policy-dialog .cf-policy-check input{width:18px;min-height:18px;flex-shrink:0}
#cf-policy-dialog small{display:block;font-size:11px;color:var(--cf-muted);overflow-wrap:anywhere;margin-top:5px}
#cf-policy-dialog .cf-table-wrap{margin:14px 0;max-height:360px}
#cf-policy-dialog table{table-layout:fixed;width:100%;min-width:650px}
#cf-policy-dialog td,#cf-policy-dialog th{position:static;white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top}
#cf-policy-dialog .cf-policy-lines th:first-child{width:45%}
#cf-policy-dialog .cf-policy-lines th:last-child{width:90px}
#cf-policy-dialog .cf-policy-lines button{white-space:nowrap;padding:9px 10px}
#cf-policy-dialog .cf-policy-lines input{width:100%}
#cf-policy-dialog .cf-policy-options{display:flex;flex-wrap:wrap;gap:20px}
#cf-policy-dialog .cf-policy-docs{padding:12px;border:1px solid var(--cf-border);border-radius:8px}
#cf-policy-dialog .cf-dialog-actions{position:sticky;bottom:-24px;background:var(--cf-bg);padding:16px;z-index:3;border-top:1px solid var(--cf-border)}
#cf-policy-message{padding:12px;border:1px solid var(--cf-border);border-radius:8px;white-space:pre-wrap}
@media(max-width:800px){#cf-policy-dialog .cf-policy-edit{grid-template-columns:1fr 1fr}#cf-policy-dialog .cf-policy-concept{grid-column:1/-1}#cf-policy-dialog .cf-dialog-actions{flex-wrap:wrap}}

/* Annual decisions share the monthly table and its outline controls. */
.cf-root[data-cf-view=decisions] #cf-monthly-card{border:1px solid var(--cf-border);border-radius:14px;padding:20px;background:var(--cf-surface);margin:20px 0}
.cf-root .cf-year-wrap{max-height:72vh;margin-bottom:14px}
.cf-root .cf-year-sheet{font-size:11px}
.cf-year-sheet .cf-sheet-concept{width:280px}.cf-year-sheet .cf-sheet-amount{width:112px}
.cf-root .cf-year-sheet th,.cf-root .cf-year-sheet td{padding:8px 9px}.cf-root .cf-year-sheet td{min-width:112px}
.cf-root .cf-year-sheet thead .cf-sheet-corner{min-width:280px}.cf-root .cf-year-sheet tbody th{max-width:280px}
.cf-root .cf-year-sheet thead tr:first-child th{height:32px;top:0;padding:6px 9px}
.cf-root .cf-year-sheet thead tr:nth-child(2) th{height:34px;top:32px;padding:7px 9px}
.cf-root .cf-year-sheet thead tr:nth-child(3) th{height:32px;top:66px;padding:6px 9px;left:auto}
.cf-root .cf-year-sheet thead tr:nth-child(3) th:first-child{left:auto;z-index:4}
.cf-root .cf-year-sheet .cf-year-phases th{font-size:10px;letter-spacing:.6px;text-transform:uppercase}
.cf-root .cf-year-sheet thead .cf-year-past{background:#193244;color:#b9cfdd}
.cf-root .cf-year-sheet thead .cf-year-present{background:#174d43;color:#c0f6df}
.cf-root .cf-year-sheet thead .cf-year-future{background:#293853;color:#cbd5fa}
.cf-root .cf-year-sheet td.cf-year-present{box-shadow:inset 1px 0 #568e7d,inset -1px 0 #568e7d}
.cf-decision-summary{margin:20px 0}.cf-decision-summary summary{color:var(--cf-muted);font-weight:600}
@media(max-width:750px){.cf-root[data-cf-view=decisions] #cf-monthly-card{padding:12px}.cf-year-sheet .cf-sheet-concept{width:230px}.cf-root .cf-year-sheet thead .cf-sheet-corner{min-width:230px}.cf-root .cf-year-sheet tbody th{max-width:230px}}
