/* Acceso y banner de demo: esta puerta solo se activa en host local desde app.js. */
[hidden]{display:none!important}
.auth-demo-button{min-height:43px;padding:10px 14px;border:1px solid #3b6e50;border-radius:7px;background:#12281a;color:#b8e7c8;font-family:inherit;font-size:14px;font-weight:650;line-height:1.4;text-align:left;cursor:pointer}
.auth-demo-button:hover{border-color:#63c68c;background:#163221;color:#e2f6e8}
.auth-demo-hint{margin:0;color:#88a794;font-size:12px;line-height:1.5}
.local-demo-notice{display:flex;align-items:center;gap:12px;margin:10px 20px 0;padding:10px 13px;border:1px solid #94cfae;border-radius:8px;background:#edf9f1;color:#416d51;font-size:11px;line-height:1.45}
.local-demo-mark{flex:none;padding:5px 7px;border-radius:4px;background:#d7f1df;color:#236443;font-size:9px;font-weight:850;letter-spacing:.1em}
.local-demo-notice>span:nth-child(2){flex:1}.local-demo-notice button{flex:none;padding:5px 8px;border:1px solid #b6d9c1;border-radius:5px;background:#f8fffa;color:#356448;font-size:10px;font-weight:650;cursor:pointer}
.local-demo-notice button:hover{border-color:#6ab584;background:#e4f7e9}
body.demo-local .cloud-status{color:#24714a}
body.demo-local .cloud-status i{background:#39ae6a;box-shadow:0 0 7px #39ae6a66}

/* Workbench de procesos: más ficha y ciclo; la lista queda como bandeja secundaria. */
.apr-flow-callout{display:flex;align-items:center;gap:12px;margin:3px 0 12px;padding:12px 14px;border:1px solid #cce7df;border-radius:9px;background:linear-gradient(100deg,#eff9f7,#f6fbfd);color:#2a6170}
.apr-flow-callout-mark{width:31px;height:31px;flex:none;display:grid;place-items:center;border:1px solid #c4e3d8;border-radius:8px;background:#fff;color:#17958a;font-size:17px}
.apr-flow-callout>div{min-width:0;flex:1}.apr-flow-callout strong{color:#215668;font-size:12px}.apr-flow-callout p{margin:3px 0 0;color:#62818c;font-size:9px;line-height:1.5}.apr-flow-local-tag{flex:none;padding:5px 7px;border:1px solid #c8e6d3;border-radius:5px;background:#f7fffa;color:#39805a;font-size:7px;font-weight:850;letter-spacing:.12em}
.apr-flow-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}
.apr-flow-summary>div{min-width:0;display:grid;gap:5px;padding:10px 12px;border:1px solid #dce9ed;border-radius:8px;background:#fff}
.apr-flow-summary small,.apr-flow-section-head small,.apr-flow-queue-head small{color:#8298a1;font-size:7px;font-weight:850;letter-spacing:.12em}
.apr-flow-summary strong{overflow:hidden;color:#164b63;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.apr-flow-workspace{display:grid;grid-template-columns:minmax(245px,.76fr) minmax(0,1.55fr);align-items:start;gap:11px}
.apr-flow-queue,.apr-flow-detail{min-width:0;border:1px solid #d9e7ec;border-radius:9px;background:#fff;box-shadow:0 2px 7px #15394b08}
.apr-flow-queue{overflow:hidden}
.apr-flow-queue-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px 10px;border-bottom:1px solid #e6eef1}
.apr-flow-queue-head h2{margin:4px 0 0;color:#204d61;font-size:13px}.apr-flow-total{min-width:22px;height:22px;display:grid;place-items:center;border:1px solid #d8e9ed;border-radius:50%;background:#f2f9fb;color:#2d7890;font-size:9px;font-weight:800}
.apr-flow-filters{display:flex;gap:5px;padding:9px 10px;border-bottom:1px solid #eaf0f2;background:#f9fcfd}
.apr-flow-filters button{padding:5px 7px;border:1px solid transparent;border-radius:5px;background:transparent;color:#66818d;font-size:8px;font-weight:650;white-space:nowrap;cursor:pointer}
.apr-flow-filters button:hover,.apr-flow-filters button.is-active{border-color:#c7e3e9;background:#eaf6f9;color:#147899}
.apr-flow-record-list{display:grid;gap:0;max-height:670px;overflow:auto}
.apr-flow-record{width:100%;display:grid;gap:7px;padding:12px 13px;border:0;border-bottom:1px solid #edf2f4;background:#fff;color:inherit;text-align:left;cursor:pointer}
.apr-flow-record:last-child{border-bottom:0}.apr-flow-record:hover{background:#f7fbfc}.apr-flow-record.is-selected{position:relative;background:#f0f8fa;box-shadow:inset 3px 0 #168caf}
.apr-flow-record-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.apr-flow-record-top>strong{color:#1384a4;font:750 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}
.apr-flow-badge{max-width:58%;overflow:hidden;padding:4px 6px;border-radius:5px;font-size:7px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.apr-flow-badge.is-open{background:#eaf5fb;color:#287a99}.apr-flow-badge.is-closed{background:#edf5ef;color:#4b7f5a}.apr-flow-badge.is-blocked{background:#fff4df;color:#9a6b1a}
.apr-flow-record-title{color:#264f60;font-size:10px;font-weight:700;line-height:1.35}.apr-flow-record-sub{overflow:hidden;color:#78909b;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.apr-flow-record-next{display:grid;gap:3px;padding:7px 8px;border:1px solid #e5eef1;border-radius:6px;background:#fbfdfe}.apr-flow-record-next small{color:#91a2a8;font-size:6px;font-weight:850;letter-spacing:.12em}.apr-flow-record-next span{color:#507383;font-size:8px;line-height:1.35}
.apr-flow-queue-foot{padding:9px 12px;border-top:1px solid #eaf0f2;background:#fafcfd;color:#8599a2;font-size:8px;line-height:1.4}
.apr-flow-detail-wrap{min-width:0}
.apr-flow-detail{padding:16px 17px 12px}
.apr-flow-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.apr-flow-detail-head>div{min-width:0}.apr-flow-ref{color:#1484a2;font:800 8px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em}.apr-flow-detail-head h2{margin:5px 0 5px;color:#163f53;font-size:17px;line-height:1.25;letter-spacing:-.025em}.apr-flow-detail-head p{margin:0;color:#718792;font-size:9px;line-height:1.55}
.apr-flow-steps{display:grid;grid-auto-columns:minmax(78px,1fr);grid-auto-flow:column;gap:0;margin:15px 0 7px;overflow:auto;min-width:0;max-width:100%}
.apr-flow-step{position:relative;min-width:75px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#879ba3;font-size:7px;line-height:1.3;text-align:center}
.apr-flow-step::before{content:"";position:absolute;top:11px;left:0;right:0;height:2px;background:#e3ecef}.apr-flow-step:first-child::before{left:50%}.apr-flow-step:last-child::before{right:50%}
.apr-flow-step-mark{position:relative;z-index:1;width:22px;height:22px;display:grid;place-items:center;border:1px solid #dce8ec;border-radius:50%;background:#fff;color:#8298a1;font-size:7px;font-weight:800}
.apr-flow-step.is-done{color:#36885e}.apr-flow-step.is-done .apr-flow-step-mark{border-color:#bfe2cb;background:#eaf7ee;color:#268052}.apr-flow-step.is-current{color:#157a9a;font-weight:750}.apr-flow-step.is-current .apr-flow-step-mark{border-color:#5bb6cf;background:#e7f6fa;color:#087da0;box-shadow:0 0 0 3px #dff2f7}
.apr-flow-progress{height:3px;overflow:hidden;margin-bottom:14px;border-radius:5px;background:#eaf0f2}.apr-flow-progress span{height:100%;display:block;border-radius:5px;background:linear-gradient(90deg,#43b9cf,#179a9b);transition:width .2s ease}
.apr-flow-next{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:11px 12px;border:1px solid #cfe6ea;border-radius:8px;background:linear-gradient(100deg,#f0f9fb,#f8fcfd)}
.apr-flow-next>div{min-width:0;display:grid;gap:4px}.apr-flow-next small{color:#5891a0;font-size:7px;font-weight:850;letter-spacing:.12em}.apr-flow-next strong{color:#215c6e;font-size:10px;line-height:1.35}.apr-flow-next span{color:#7e949e;font-size:8px;line-height:1.4}.apr-flow-next .button{flex:none;height:auto;min-height:31px;padding:7px 10px;font-size:8px}.apr-flow-next .button:disabled{border-color:#d5e1e5;background:#eef3f4;color:#899ba2;opacity:.9;cursor:not-allowed}
.apr-flow-lock{display:grid;gap:3px;margin:0 0 12px;padding:9px 11px;border:1px solid #cde6d4;border-radius:7px;background:#f1faf3;color:#4e755a;font-size:8px;line-height:1.45}.apr-flow-lock strong{color:#37734d;font-size:9px}.apr-flow-lock.is-warning{border-color:#efddb4;background:#fff9ea;color:#81682f}.apr-flow-lock.is-warning strong{color:#906b1e}
.apr-flow-section{min-width:0;margin-top:11px;padding:12px;border:1px solid #e2ecef;border-radius:8px;background:#fff}
.apr-flow-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.apr-flow-section-head h3{margin:4px 0 0;color:#285466;font-size:11px}.apr-flow-context-chip{flex:none;padding:4px 6px;border-radius:5px;background:#eff6f8;color:#688894;font-size:7px;font-weight:700}
.apr-flow-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.apr-flow-fact{min-width:0;display:grid;gap:4px;padding:8px;border-radius:6px;background:#f7fafb}.apr-flow-fact dt{overflow:hidden;color:#899ba2;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.apr-flow-fact dd{overflow:hidden;margin:0;color:#365e6e;font-size:9px;font-weight:680;text-overflow:ellipsis;white-space:nowrap}
.apr-flow-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.apr-flow-detail-grid .apr-flow-section{min-width:0}
.apr-flow-doc-list{display:grid;gap:5px}.apr-flow-doc{width:100%;min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;padding:7px;border:1px solid #e4edf0;border-radius:6px;background:#fbfdfe;color:#52717f;text-align:left;cursor:pointer}.apr-flow-doc:hover{border-color:#b7dce5;background:#f3fafc}.apr-flow-doc>span:first-child{color:#1888a6}.apr-flow-doc>span:nth-child(2){overflow:hidden;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.apr-flow-doc b{color:#1685a3;font-size:7px}
.apr-flow-control{display:grid;gap:7px}.apr-flow-control>span{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #edf2f4}.apr-flow-control small{color:#8a9ca3;font-size:7px}.apr-flow-control strong{color:#43697a;font-size:8px;text-align:right}
.apr-flow-text-button{padding:7px 0 0;border:0;background:transparent;color:#1283a3;font-size:8px;font-weight:700;text-align:left;cursor:pointer}.apr-flow-text-button:hover{color:#075e7d;text-decoration:underline}
.apr-flow-history ol{display:grid;gap:0;margin:0;padding:0;list-style:none}.apr-flow-event{position:relative;display:grid;grid-template-columns:11px minmax(0,1fr);gap:8px;padding:0 0 10px}.apr-flow-event:last-child{padding-bottom:0}.apr-flow-event-dot{position:relative;width:8px;height:8px;margin:3px 0 0 1px;border:2px solid #85c7d1;border-radius:50%;background:#fff}.apr-flow-event:not(:last-child) .apr-flow-event-dot::after{content:"";position:absolute;top:6px;left:1px;width:2px;height:30px;background:#e0edf0}.apr-flow-event strong{display:block;color:#4b6b79;font-size:8px;line-height:1.4}.apr-flow-event small{display:block;margin-top:2px;color:#93a2a8;font-size:7px}.apr-flow-event p{margin:4px 0 0;color:#6c8792;font-size:8px;line-height:1.45}
.apr-flow-inline-form{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px solid #d3e7ec;border-radius:7px;background:#f5fbfc}.apr-flow-inline-form label{color:#456d7c;font-size:8px;font-weight:700}.apr-flow-inline-form textarea{width:100%;min-height:62px;resize:vertical;padding:8px;border:1px solid #cadfe5;border-radius:6px;background:#fff;color:#284e60;font-family:inherit;font-size:12px;line-height:1.45}.apr-flow-inline-form textarea::placeholder{color:#96a8af}.apr-flow-inline-form>div{display:flex;justify-content:flex-end;gap:7px}.apr-flow-inline-form .button{height:auto;min-height:29px;padding:6px 9px;font-size:8px}
.apr-flow-detail-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:9px;border-top:1px solid #edf2f4;color:#8b9da4;font-size:7px;line-height:1.4}.apr-flow-detail-foot .apr-flow-text-button{padding:3px 0}
.apr-flow-safety{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;padding:9px 11px;border:1px solid #e7edf0;border-radius:7px;background:#f8fafb;color:#768b94}.apr-flow-safety>span{width:15px;height:15px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e8f4f6;color:#167e9c;font-size:9px;font-weight:800}.apr-flow-safety p{margin:0;font-size:8px;line-height:1.5}.apr-flow-safety strong{color:#4f6d79}
.apr-flow-empty{padding:24px 12px;color:#8298a1;font-size:9px;line-height:1.5;text-align:center}.apr-flow-muted{color:#879ba3;font-size:8px}
.apr-flow-postponed{display:grid;gap:10px;max-width:760px;margin:20px 0;padding:20px;border:1px solid #eddcae;border-radius:9px;background:#fff9e9;color:#806c3d}.apr-flow-postponed>span{width:max-content;padding:5px 7px;border-radius:4px;background:#f6edcf;color:#967727;font-size:8px;font-weight:850;letter-spacing:.12em}.apr-flow-postponed h2{margin:0;color:#6b592e;font-size:17px;line-height:1.35}.apr-flow-postponed p{max-width:600px;margin:0;color:#84754e;font-size:10px;line-height:1.65}
.apr-demo-chart-head{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.apr-demo-chart-head strong{color:#214c60;font-size:19px}.apr-demo-chart-head span{color:#879ba3;font-size:8px}.apr-demo-chart{height:112px;display:flex;align-items:flex-end;justify-content:space-around;gap:10px;padding:0 14px;border-bottom:1px solid #dbe8ed;background:repeating-linear-gradient(to bottom,transparent 0,transparent 26px,#edf3f5 27px)}.apr-demo-chart i{position:relative;width:min(42px,15%);min-height:10px;display:block;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#69c9bb,#168ca4);font-style:normal}.apr-demo-chart i:nth-child(2n){background:linear-gradient(180deg,#7dcab2,#38977f)}.apr-demo-chart i:last-child{background:linear-gradient(180deg,#69bfcf,#127a9f)}.apr-demo-chart b{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);color:#8298a1;font-size:7px;font-weight:600}.apr-demo-chart-note{display:block;margin-top:24px;color:#8a9ba2;font-size:7px;line-height:1.45}

@media(max-width:950px){.apr-flow-workspace{grid-template-columns:minmax(220px,.8fr) minmax(0,1.3fr)}.apr-flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.apr-flow-detail-grid{grid-template-columns:1fr}}
@media(max-width:700px){.local-demo-notice{align-items:flex-start;flex-wrap:wrap;margin:8px 10px 0;padding:8px}.local-demo-notice>span:nth-child(2){min-width:180px;font-size:9px}.local-demo-notice button{margin-left:auto}.apr-flow-callout{align-items:flex-start;padding:10px}.apr-flow-local-tag{display:none}.apr-flow-summary{gap:6px}.apr-flow-summary>div{padding:8px}.apr-flow-summary strong{font-size:10px}.apr-flow-workspace{grid-template-columns:minmax(0,1fr)}.apr-flow-queue,.apr-flow-detail-wrap,.apr-flow-detail{min-width:0;width:100%;max-width:100%}.apr-flow-record-list{max-height:300px}.apr-flow-detail{padding:12px}.apr-flow-detail-head h2{font-size:15px}.apr-flow-steps{grid-auto-columns:72px;margin-right:0}.apr-flow-step{min-width:72px;font-size:6.5px}.apr-flow-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.apr-flow-next{align-items:flex-start;flex-direction:column}.apr-flow-next .button{width:100%}.apr-flow-detail-foot{align-items:flex-start;flex-direction:column}.apr-flow-inline-form>div{flex-wrap:wrap}.apr-flow-inline-form .button{flex:1}.apr-flow-postponed{margin:12px 0;padding:15px}.apr-flow-postponed h2{font-size:15px}}


/* Caja y boletas: listado primero, detalle individual al abrir una fila. */
.apr-cash-single-view.is-list{display:block}
.apr-cash-single-view.is-list .apr-flow-queue{width:100%;max-width:none}
.apr-cash-single-view.is-list .apr-flow-detail-wrap{display:none}
.apr-cash-single-view.is-list .apr-flow-record-list{max-height:none;overflow:visible}
.apr-cash-single-view.is-list .apr-flow-record.is-selected{background:#fff;box-shadow:none}
.apr-cash-single-view.is-list .apr-flow-record{gap:8px;padding:15px 16px}
.apr-cash-single-view.is-detail{display:block}
.apr-cash-single-view.is-detail .apr-flow-queue{display:none}
.apr-cash-single-view.is-detail .apr-flow-detail-wrap{width:100%;max-width:1080px;margin:0 auto}
.apr-cash-record-action{justify-self:start;padding:6px 0 0;color:#117d9d;font-size:11px;font-weight:750}
.apr-cash-back,.apr-bill-back{width:max-content;max-width:100%;min-height:40px;margin:0 0 10px;padding:9px 12px;border:1px solid #c6e1e9;border-radius:7px;background:#f3fafc;color:#176f89;font:inherit;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer}
.apr-bill-state.is-closed{background:#eaf7f0;color:#2c8058}
.apr-cash-back:hover,.apr-bill-back:hover{border-color:#75bdcf;background:#e7f6fa;color:#0b6684}
.apr-bills-list-screen{width:100%;margin:0 0 12px}
.apr-bills-list-screen .apr-bills-queue{width:100%;max-width:none}
.apr-bills-list-screen .apr-bill-rows{max-height:none;overflow:visible}
.apr-bill-row-action{display:flex;align-items:center;gap:7px;padding-top:2px;color:#117d9d;font-size:11px;font-weight:750}
.apr-bill-row-action b{font-size:14px;font-weight:600}
.apr-bill-detail-screen{width:100%;max-width:1240px;margin:0 auto}
.apr-bill-generated-document{overflow:hidden;padding:clamp(16px,3vw,30px);border:1px solid #cfe1e7;border-radius:9px;background:#fff;color:#284f61}
.apr-bill-generated-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:2px solid #d8e9ee;color:#23697e;font-size:11px;font-weight:850;letter-spacing:.1em}
.apr-bill-generated-top strong{padding:7px 9px;border:1px solid #c8e3eb;border-radius:5px;background:#eff9fb;font-size:9px}
.apr-bill-generated-document h3{margin:18px 0 4px;color:#174960;font-size:clamp(18px,2vw,25px)}
.apr-bill-generated-document>p{margin:0 0 15px;color:#6c8792;font-size:12px;line-height:1.5}
.apr-bill-generated-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.apr-bill-generated-grid>div{display:grid;gap:5px;padding:10px;border:1px solid #e1ebef;border-radius:6px;background:#f8fbfc}
.apr-bill-generated-grid small{color:#7b919a;font-size:9px;font-weight:800;letter-spacing:.08em}
.apr-bill-generated-grid strong{color:#2b586b;font-size:12px}
.apr-bill-generated-line{display:flex;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 0;border-bottom:1px solid #e3ecef;color:#65818d;font-size:12px}
.apr-bill-generated-line strong{color:#315f72}
.apr-bill-generated-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:15px;border-radius:7px;background:linear-gradient(100deg,#1386a3,#22a5b2);color:#e9fcff}
.apr-bill-generated-total span{font-size:11px}
.apr-bill-generated-total strong{font-size:clamp(19px,3vw,28px)}
.apr-bill-generated-payment{display:grid;gap:5px;margin-top:10px;padding:12px;border:1px solid #cfe5da;border-radius:7px;background:#f1faf4}
.apr-bill-generated-payment span{color:#6d8b78;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.apr-bill-generated-payment strong{color:#36734e;font-size:12px}
.apr-bill-generated-payment small{color:#799182;font-size:10px;line-height:1.4}
.apr-bill-output{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid #d1e2ec;border-radius:9px;background:#f7fbff;color:#284f61}
.apr-bill-output-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.apr-bill-output-head>div{display:grid;gap:4px}.apr-bill-output-head small{color:#54819b;font-size:9px;font-weight:850;letter-spacing:.1em}.apr-bill-output-head strong{color:#174b6a;font-size:14px}.apr-bill-output-head>span{flex:none;padding:5px 7px;border:1px solid #c5dfed;border-radius:5px;background:#edf7fc;color:#17688d;font-size:8px;font-weight:850;letter-spacing:.08em}
.apr-bill-output>p,.apr-bill-email-preview>p{margin:0;color:#5c788b;font-size:12px;line-height:1.5}.apr-bill-output-actions{display:flex;flex-wrap:wrap;gap:7px}.apr-bill-output-actions .button,.apr-bill-email-actions .button{min-height:42px;padding:9px 12px;font-size:12px}.apr-bill-output-actions .button-quiet{border-color:#c5d9e6;background:#fff;color:#245c7c}.apr-bill-output-actions .button-quiet:hover{border-color:#80b3cd;background:#edf7fc}
.apr-bill-email-preview{display:grid;gap:10px;padding:12px;border:1px solid #c9dce8;border-radius:7px;background:#fff}.apr-bill-email-fields{display:grid;gap:7px}.apr-bill-email-fields>div{display:grid;gap:3px;padding:8px 9px;border-radius:5px;background:#f5f9fc}.apr-bill-email-fields small{color:#6d8797;font-size:8px;font-weight:850;letter-spacing:.08em}.apr-bill-email-fields strong{overflow-wrap:anywhere;color:#315a71;font-size:11px}.apr-bill-email-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.apr-bill-email-status{color:#36734e;font-size:11px;font-weight:700;line-height:1.45}.apr-bill-email-status:focus{outline:2px solid #5d9fc1;outline-offset:3px}.apr-bill-output-foot{padding-top:8px;border-top:1px solid #e0eaf0;color:#758c99;font-size:10px;line-height:1.45}
@media(max-width:700px){
  .apr-cash-single-view.is-list .apr-flow-record{padding:13px 12px}
  .apr-cash-record-action{font-size:12px}
  .apr-bill-row-action{font-size:12px}
  .apr-bill-generated-grid{grid-template-columns:1fr}
  .apr-bill-generated-total{align-items:flex-start;flex-direction:column}
  .apr-bill-output{padding:12px}.apr-bill-output-actions{display:grid;grid-template-columns:minmax(0,1fr)}.apr-bill-output-actions .button{width:100%;min-height:44px}.apr-bill-email-actions{align-items:stretch;flex-direction:column}.apr-bill-email-actions .button{width:100%;min-height:44px}.apr-bill-email-status{font-size:12px}
  .apr-cash-back,.apr-bill-back{min-height:42px;font-size:13px}
}

/* Caja simple: lista → resumen de pagos → cartola. Estas reglas no afectan otros módulos. */
.apr-cash-page{width:100%;max-width:1180px;margin:0 auto;color:#173d59;font-size:15px;line-height:1.5}
.apr-cash-page button{font-family:inherit;cursor:pointer}
.apr-cash-heading{margin:0 0 24px}.apr-cash-eyebrow{color:#39759f;font-size:12px;font-weight:800;letter-spacing:.1em}
.apr-cash-heading h1{margin:6px 0 8px;color:#123e61;font-size:clamp(25px,3vw,32px);font-weight:750;line-height:1.2;letter-spacing:-.025em}.apr-cash-heading h1:focus{outline:none}
.apr-cash-heading p{max-width:760px;margin:0;color:#486a83;font-size:15px;line-height:1.6}
.apr-cash-list{display:grid;gap:14px}.apr-cash-box{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border:1px solid #cbddea;border-radius:12px;background:#fff;color:#173d59;text-align:left;box-shadow:0 3px 12px #173d5905;transition:border-color .15s,background .15s}
.apr-cash-box:hover{border-color:#73a9d2;background:#f5faff}.apr-cash-box-main{min-width:0;display:grid;gap:8px}.apr-cash-box-top{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.apr-cash-ref{color:#376b93;font:700 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.035em}
.apr-cash-box-main>strong{color:#153f60;font-size:19px;line-height:1.4}.apr-cash-box-meta{color:#4b6c84;font-size:14px;line-height:1.5}.apr-cash-box-action{flex:none;display:flex;align-items:center;gap:18px;color:#1662a1;font-size:14px;font-weight:750}.apr-cash-box-action b{font-size:23px;font-weight:500}
.apr-cash-status{width:max-content;display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid #b8d9f0;border-radius:99px;background:#eaf5ff;color:#175d91;font-size:12px;font-weight:750;white-space:nowrap}.apr-cash-status.is-closed{border-color:#d1dfeb;background:#f1f5fa;color:#506b84}
.apr-cash-nav{display:inline-flex;align-items:center;min-height:44px;margin:0 0 20px;padding:9px 14px;border:1px solid #bfd5e7;border-radius:8px;background:#f7fbff;color:#245d8b;font-size:14px;font-weight:700;text-align:left}.apr-cash-nav:hover{border-color:#78acd2;background:#eaf4ff}
.apr-cash-context{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px;padding:19px 21px;border:1px solid #d2e1ed;border-radius:11px;background:#f8fbff}.apr-cash-context h2{margin:5px 0;color:#153f60;font-size:20px;line-height:1.4}.apr-cash-context p{margin:0;color:#4b6c84;font-size:14px}
.apr-cash-summary-link{display:block;width:100%;padding:0;overflow:hidden;border:1px solid #b9d2e8;border-radius:12px;background:#fff;color:#173d59;text-align:left;box-shadow:0 3px 12px #173d5905}.apr-cash-summary-link:hover{border-color:#4d95cc;box-shadow:0 4px 18px #2565a112}.apr-cash-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px}.apr-cash-amount{min-width:0;display:grid;align-content:center;gap:10px;min-height:128px;padding:18px;border:1px solid #d9e5ef;border-radius:9px;background:#f8fbff}.apr-cash-amount>span{color:#416781;font-size:15px;font-weight:650}.apr-cash-amount strong{color:#143f62;font-size:clamp(21px,2.2vw,28px);font-weight:750;line-height:1.2;white-space:nowrap;letter-spacing:-.035em}.apr-cash-amount.is-total{border-color:#a9cdeb;background:#e9f3ff}.apr-cash-amount.is-total>span,.apr-cash-amount.is-total strong{color:#104f86}
.apr-cash-summary-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 22px;border-top:1px solid #dce7f0;background:#f5faff}.apr-cash-summary-foot>span{color:#4b6c84;font-size:13px}.apr-cash-summary-foot>strong{display:flex;align-items:center;gap:12px;color:#165f9a;font-size:15px;font-weight:750}.apr-cash-summary-foot b{font-size:21px;font-weight:500}
.apr-cash-ledger{overflow:hidden;border:1px solid #cbddea;border-radius:11px;background:#fff}.apr-cash-ledger table{width:100%;border-collapse:collapse;color:#244b68;text-align:left;font-size:14px}.apr-cash-ledger caption{padding:16px 20px;color:#426881;font-size:14px;text-align:left}.apr-cash-ledger thead{background:#eff5fc}.apr-cash-ledger th{padding:13px 20px;border-top:1px solid #dce7f0;border-bottom:1px solid #dce7f0;color:#426581;font-size:13px;font-weight:750;text-align:left}.apr-cash-ledger td{padding:14px 20px;border-bottom:1px solid #e2ebf3;color:#244b68;font-size:14px;vertical-align:middle}.apr-cash-ledger td>strong{display:block;color:#204c6d;font-size:14px;font-weight:650}.apr-cash-ledger td small{display:block;margin-top:2px;color:#57728a;font-size:12px}.apr-cash-ledger tbody tr:hover{background:#f7fbff}.apr-cash-ledger .apr-cash-money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.apr-cash-method{display:inline-flex;padding:4px 9px;border:1px solid #d0e2f1;border-radius:6px;background:#f1f7ff;color:#285e8a;font-size:13px;font-weight:650}.apr-cash-ledger tfoot{background:#edf5ff}.apr-cash-ledger tfoot th,.apr-cash-ledger tfoot td{padding-top:18px;padding-bottom:18px;border-bottom:0;color:#164e7c;font-size:17px;font-weight:750}
.apr-cash-demo-note{margin:20px 0 0;color:#55728a;font-size:12px;line-height:1.6}.apr-cash-empty{padding:28px 20px;color:#486a83;font-size:15px;text-align:center}
.apr-cash-page button:focus-visible{outline:3px solid #337fc0;outline-offset:4px}
@media(max-width:1050px){.apr-cash-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.apr-cash-amount strong{font-size:27px}}
@media(max-width:700px){.apr-cash-page{font-size:15px}.apr-cash-heading{margin-bottom:20px}.apr-cash-heading h1{font-size:25px}.apr-cash-heading p{font-size:14px}.apr-cash-box{flex-direction:column;align-items:stretch;gap:14px;padding:18px}.apr-cash-box-main>strong{font-size:18px}.apr-cash-box-meta{font-size:14px}.apr-cash-box-action{justify-content:space-between;padding-top:10px;border-top:1px solid #e0eaf3;font-size:14px}.apr-cash-context{padding:16px;gap:10px}.apr-cash-context h2{font-size:18px}.apr-cash-context p{font-size:14px}.apr-cash-context .apr-cash-status{font-size:12px}.apr-cash-totals{gap:10px;padding:12px}.apr-cash-amount{min-height:110px;gap:10px;padding:14px 11px}.apr-cash-amount>span{font-size:14px}.apr-cash-amount strong{font-size:clamp(20px,5.5vw,26px)}.apr-cash-summary-foot{align-items:flex-start;flex-direction:column;gap:10px;padding:16px}.apr-cash-summary-foot>strong{width:100%;justify-content:space-between;font-size:14px;line-height:1.5}.apr-cash-nav{font-size:14px}.apr-cash-ledger{padding:12px;background:#f7fbff}.apr-cash-ledger table,.apr-cash-ledger tbody{display:block}.apr-cash-ledger caption{display:block;padding:2px 2px 14px;font-size:13px}.apr-cash-ledger thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.apr-cash-ledger tbody{display:grid;gap:10px}.apr-cash-ledger tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;padding:15px;border:1px solid #d7e4ef;border-radius:9px;background:#fff}.apr-cash-ledger tbody td{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:0;border:0;font-size:14px}.apr-cash-ledger tbody td::before{content:attr(data-label);color:#5a7388;font-size:12px;font-weight:600}.apr-cash-ledger tbody td:first-child{grid-column:1}.apr-cash-ledger tbody td:nth-child(2){grid-column:2;grid-row:1}.apr-cash-ledger tbody td.apr-cash-money{align-items:flex-end;font-size:17px}.apr-cash-ledger td small{font-size:12px}.apr-cash-ledger td>strong{font-size:14px}.apr-cash-ledger tbody td.apr-cash-empty{grid-column:1/-1;align-items:center;padding:15px;white-space:normal}.apr-cash-ledger tfoot{display:block;margin-top:12px;border-radius:8px}.apr-cash-ledger tfoot tr{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.apr-cash-ledger tfoot th,.apr-cash-ledger tfoot td{display:block;padding:0;border:0;font-size:17px}.apr-cash-demo-note{font-size:12px}}

.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-nav{min-height:40px;margin-bottom:12px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-heading{margin-bottom:18px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-heading h1{font-size:clamp(25px,2.6vw,28px);margin-top:4px;margin-bottom:6px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-heading p{font-size:14px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-context{padding:14px 18px;margin-bottom:14px}
.apr-cash-context .apr-cash-ref{display:none}.apr-cash-context h2{margin:0 0 4px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-totals{padding:14px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-amount{min-height:106px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-summary-foot{padding:14px 18px}
.apr-cash-page:not([data-cash-screen="list"]) .apr-cash-demo-note{margin-top:16px}

/* Flujo común de navegación: listado de registros → ficha individual → regreso al listado. */
.apr-flow-full-list{width:100%;max-width:none;margin:0 0 12px}
.apr-flow-full-list .apr-flow-record-list{max-height:none;overflow:visible}
.apr-flow-full-list .apr-flow-record{gap:8px;padding:15px 16px}
.apr-flow-full-list .apr-flow-record.is-selected{background:#fff;box-shadow:none}
.apr-flow-record-open{display:flex;align-items:center;gap:7px;padding-top:2px;color:#146b9b;font-size:12px;font-weight:750}
.apr-flow-record-open b{font-size:16px;font-weight:500}
.apr-flow-back{width:max-content;max-width:100%;min-height:42px;margin:0 0 12px;padding:9px 12px;border:1px solid #bfd5e7;border-radius:8px;background:#f4f9ff;color:#245d8b;font:inherit;font-size:13px;font-weight:700;line-height:1.4;text-align:left;cursor:pointer}
.apr-flow-back:hover{border-color:#78acd2;background:#eaf4ff;color:#164f7e}
.apr-flow-back:focus-visible,.apr-flow-full-list button:focus-visible{outline:3px solid #337fc0;outline-offset:3px}
.apr-flow-detail-single{width:100%;max-width:1120px;margin:0 auto}
.apr-siss-reference{max-width:1000px;padding:18px;border:1px solid #d9e7ec;border-radius:10px;background:#fff;box-shadow:0 2px 9px #15394b08}
.apr-siss-reference .apr-flow-facts{margin-top:16px}
.apr-siss-reference .apr-flow-postponed{max-width:none;margin:18px 0 0}
@media(max-width:700px){.apr-flow-full-list .apr-flow-record{padding:14px 12px}.apr-flow-back{min-height:44px;font-size:14px}.apr-siss-reference{padding:14px}}


/* Listados compactos tipo planilla para navegación rápida en todos los módulos. */
.apr-flow-list-panel{overflow:hidden;margin:0 0 12px;padding:0;border:1px solid #d8e6ec;border-radius:9px;background:#fff;box-shadow:0 2px 8px #15394b08}
.apr-flow-list-panel .apr-flow-queue-head{padding:10px 13px 8px;border-bottom:1px solid #e6eef1}
.apr-flow-list-panel .apr-flow-queue-head h2{margin:3px 0 0;color:#204d61;font-size:13px}
.apr-flow-list-panel .apr-flow-filters,.apr-flow-list-panel .apr-bills-filters{display:flex;gap:4px;padding:6px 9px;border-bottom:1px solid #e7eef1;background:#f8fbfc}
.apr-flow-list-panel .apr-flow-filters button,.apr-flow-list-panel .apr-bills-filters button{padding:5px 8px;border:1px solid transparent;border-radius:5px;background:transparent;color:#557383;font:inherit;font-size:10px;font-weight:650;white-space:nowrap;cursor:pointer}
.apr-flow-list-panel .apr-flow-filters button:hover,.apr-flow-list-panel .apr-flow-filters button.is-active,.apr-flow-list-panel .apr-bills-filters button:hover,.apr-flow-list-panel .apr-bills-filters button.is-active{border-color:#c8e2e9;background:#eaf6f9;color:#117a98}
.apr-record-table-scroll{width:100%;max-height:min(62vh,640px);overflow:auto;overscroll-behavior:contain;scrollbar-color:#b8cbd4 #f4f8f9;scrollbar-width:thin}
.apr-record-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;background:#fff;color:#294d5d;text-align:left;font-size:11px;line-height:1.3}
.apr-record-table thead{position:sticky;top:0;z-index:2;background:#eef5f8;box-shadow:0 1px 0 #dce8ed}
.apr-record-table th{padding:7px 10px;color:#557181;font-size:9px;font-weight:800;letter-spacing:.035em;white-space:nowrap}
.apr-record-table td{padding:6px 10px;border-bottom:1px solid #edf2f4;vertical-align:middle}
.apr-record-table tbody tr:last-child td{border-bottom:0}
.apr-record-table tbody tr[data-flow-action],.apr-record-table tbody tr[data-bill-action]{cursor:pointer;transition:background .12s ease}
.apr-record-table tbody tr[data-flow-action]:hover,.apr-record-table tbody tr[data-bill-action]:hover{background:#f1f8fa}
.apr-record-table tbody tr[data-flow-action]:focus-visible,.apr-record-table tbody tr[data-bill-action]:focus-visible{position:relative;outline:2px solid #1689ab;outline-offset:-2px;background:#edf8fb}
.apr-record-table td strong{color:#31596a;font-size:11px;font-weight:700}
.apr-record-table td small{display:block;margin-top:2px;color:#718894;font-size:9px;line-height:1.25}
.apr-record-table .apr-table-code{color:#167b9a;font:750 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
.apr-record-table .apr-table-open{color:#147997;font-size:10px;font-weight:750;white-space:nowrap}
.apr-record-table .apr-table-open b{font-size:13px;font-weight:500}
.apr-record-table .apr-flow-badge{max-width:180px;padding:3px 6px;font-size:8px}
.apr-flow-list-panel .apr-flow-queue-foot{padding:7px 11px;border-top:1px solid #e8eff2;background:#fafcfd;color:#7a909a;font-size:9px;line-height:1.4}
.apr-member-list-panel{margin-bottom:12px}
.apr-member-table{min-width:760px;table-layout:fixed}
.apr-member-table th:nth-child(1),.apr-member-table td:nth-child(1){width:19%}
.apr-member-table th:nth-child(2),.apr-member-table td:nth-child(2){width:20%}
.apr-member-table th:nth-child(3),.apr-member-table td:nth-child(3){width:23%}
.apr-member-table th:nth-child(4),.apr-member-table td:nth-child(4){width:38%}
.apr-member-table td{height:34px;padding-top:5px;padding-bottom:5px;white-space:nowrap}
.apr-member-detail{width:100%;max-width:1120px;margin:0 auto}
.apr-member-detail .apr-flow-section{margin-top:0;margin-bottom:11px;padding:14px}
.apr-member-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}
.apr-member-profile>div{min-width:0;padding:8px 9px;border-radius:6px;background:#f6fafb}
.apr-member-profile dt{color:#7d929b;font-size:9px}
.apr-member-profile dd{overflow:hidden;margin:3px 0 0;color:#31596a;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.apr-member-demo-status{flex:none;padding:4px 7px;border-radius:5px;background:#eaf6ef;color:#34764e;font-size:9px;font-weight:750}
.apr-member-ledger .apr-record-table{min-width:680px}
.apr-member-ledger .apr-record-table td{font-variant-numeric:tabular-nums}
.apr-member-ledger-status{display:inline-block;padding:3px 6px;border-radius:5px;background:#fff4e6;color:#95621b;font-size:8px;font-weight:750;white-space:nowrap}
.apr-member-ledger-status.is-paid{background:#eaf6ef;color:#34764e}
.apr-member-demo-note{margin:9px 0 0;color:#768d97;font-size:9px;line-height:1.45}
.apr-bill-table-scroll{max-height:min(62vh,640px)}
.apr-cash-page .apr-flow-list-panel{margin:0}
.apr-cash-page .apr-record-table{min-width:740px}
@media(max-width:700px){
  .apr-flow-list-panel .apr-flow-queue-head{padding:9px 10px 7px}
  .apr-flow-list-panel .apr-flow-filters,.apr-flow-list-panel .apr-bills-filters{overflow-x:auto}
  .apr-record-table-scroll{max-height:58vh}
  .apr-record-table th{padding:7px 8px;font-size:9px}
  .apr-record-table td{padding:6px 8px;font-size:10px}
  .apr-record-table td strong{font-size:10px}
  .apr-member-profile{grid-template-columns:repeat(2,minmax(0,1fr))}
  .apr-member-detail .apr-flow-section{padding:11px}
  .apr-flow-list-panel .apr-flow-queue-foot{font-size:8px}
}
