/* Contabilidad comparte los colores y marcos corporativos del sistema. */
html.ocp-gl-open,html.ocp-gl-open body{overflow:hidden!important;overscroll-behavior:none}
.gl-dialog[open]{display:flex;flex-direction:column}.gl-dialog .gl-dialog-body{min-height:0;flex:1 1 auto;max-height:none;box-sizing:border-box}
html body dialog.gl-dialog>header.gl-dialog-header{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;position:static!important;min-height:0!important;color:var(--gl-text)!important;flex:0 0 auto!important}
html body dialog.gl-dialog>header.gl-dialog-header h2{color:var(--gl-text)!important;text-align:left!important;min-width:0!important;width:auto!important;flex:1 1 0!important;line-height:1.35;margin:0!important}
html body dialog.gl-dialog>header.gl-dialog-header .gl-close{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;padding:8px!important;margin:0!important;font-size:24px!important}
.gl-source-list .gl-net{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:space-between}.gl-source-list .gl-net b{font-size:1.2rem}
.gl-nav{display:flex;align-items:center;gap:8px;margin:16px 0;flex-wrap:wrap}.gl-nav button{display:flex;align-items:center;gap:9px;min-height:44px}.gl-nav button[aria-pressed=true]{background:var(--primary,#0b5471);color:#fff;border-color:var(--primary,#0b5471)}
.gl-nav small{margin-left:auto;color:var(--muted,#536b78)}
#app.gl-active>:not(.toolbar):not(#glNav):not(#glPanel){display:none!important}
html body #app.gl-active>.toolbar .work-tools :is(.primary-actions,.data-actions){display:none!important}
.gl-panel{--gl-bg:#fff;--gl-subtle:#f1f7fa;--gl-text:#17384b;--gl-muted:#506a79;--gl-border:#bed7e4;background:var(--gl-bg);color:var(--gl-text);border:1px solid var(--gl-border);border-radius:7px;min-width:0;overflow:clip;margin:0 0 28px}
[data-theme=dark] .gl-panel,[data-theme=dark] .gl-dialog{--gl-bg:#101416;--gl-subtle:#1b2429;--gl-text:#e7f2f8;--gl-muted:#afc6d3;--gl-border:#3b535f}
.gl-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:24px;background:var(--gl-subtle);border-bottom:1px solid var(--gl-border)}.gl-heading h2{margin:6px 0;font-size:1.7rem;color:var(--gl-text)}.gl-heading p{margin:0;color:var(--gl-muted)}.gl-eyebrow{font-weight:750;letter-spacing:.1em;font-size:.72rem;color:var(--gl-muted)}.gl-heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.gl-filters{display:flex;gap:12px;align-items:end;padding:18px 24px;flex-wrap:wrap}.gl-filters label{display:grid;gap:5px;color:var(--gl-muted);font-size:.84rem}.gl-filters input{width:170px;min-width:0}.gl-panel input,.gl-panel select,.gl-dialog input,.gl-dialog select,.gl-dialog textarea{background:var(--gl-bg);color:var(--gl-text);border:1px solid var(--gl-border);min-width:0;max-width:100%;font:inherit;border-radius:6px;min-height:42px;padding:8px 11px}
.gl-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 24px 20px;border:1px solid var(--gl-border);border-radius:6px;overflow:hidden}.gl-kpis>div{padding:15px;border-right:1px solid var(--gl-border);min-width:0}.gl-kpis>div:last-child{border:0}.gl-kpis small,.gl-kpis strong{display:block}.gl-kpis small{color:var(--gl-muted);font-size:.8rem}.gl-kpis strong{font-size:1.3rem;margin-top:5px;overflow-wrap:anywhere}
.gl-tabs{display:flex;gap:4px;padding:0 24px;border-bottom:1px solid var(--gl-border);overflow-x:auto}.gl-tabs button{border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--gl-muted);padding:12px 14px;white-space:nowrap;min-height:44px}.gl-tabs button[aria-selected=true]{background:var(--gl-subtle);color:var(--gl-text);box-shadow:inset 0 -3px #0b89ac}
.gl-content{padding:22px 24px;min-height:160px}.gl-status{margin:0 24px 14px;line-height:1.5;white-space:pre-wrap;color:var(--gl-muted)}.gl-status:empty{display:none}.gl-error{color:#a81d35!important;background:#fff0f2;padding:12px;border:1px solid #f4b2be;border-radius:6px}[data-theme=dark] .gl-error{color:#ffb6c4!important;background:#351b23}
.gl-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}.gl-section-head h3{margin:0}.gl-section-head p{margin:4px 0;color:var(--gl-muted);font-size:.85rem}.gl-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gl-empty{display:grid;gap:12px;justify-items:start;padding:26px;background:var(--gl-subtle);border:1px dashed var(--gl-border);border-radius:6px}.gl-empty p{margin:0;max-width:650px;color:var(--gl-muted)}
.gl-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--gl-border);border-radius:6px}.gl-table{width:100%;border-collapse:collapse;margin:0;background:var(--gl-bg);font-size:.88rem}.gl-table th{background:var(--gl-subtle);text-align:left;color:var(--gl-muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.035em}.gl-table th,.gl-table td{padding:12px;border-bottom:1px solid var(--gl-border);vertical-align:top}.gl-table td small{display:block;color:var(--gl-muted);margin-top:4px}.gl-table tbody tr:last-child td{border-bottom:0}.gl-table .gl-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.gl-table tfoot{font-weight:750;background:var(--gl-subtle)}.gl-table button{padding:8px 10px;min-height:36px;font-size:.83rem}.gl-badge{display:inline-flex;padding:4px 8px;background:var(--gl-subtle);color:var(--gl-text);border:1px solid var(--gl-border);border-radius:4px;font-size:.74rem;white-space:nowrap}.gl-badge.posted{background:#d6f3e8;color:#135342;border-color:#8ed1ba}.gl-badge.void{background:#ffe3e8;color:#8d2638;border-color:#f5aebc}.gl-badge.draft{background:#fff1c5;color:#775700;border-color:#ebd489}
.gl-note{background:var(--gl-subtle);color:var(--gl-muted);border:1px solid var(--gl-border);padding:12px 14px;border-radius:6px;font-size:.87rem;line-height:1.55;margin:14px 0}.gl-source-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gl-source-list>div{border:1px solid var(--gl-border);padding:12px;border-radius:6px}.gl-source-list span,.gl-source-list b{display:block}.gl-source-list span{font-size:.8rem;color:var(--gl-muted)}.gl-source-list b{margin-top:5px}.gl-source-list .gl-net{background:#0b5471;color:#fff}.gl-source-list .gl-net span{color:#d9f0fa}
.gl-dialog{--gl-bg:#fff;--gl-subtle:#f1f7fa;--gl-text:#17384b;--gl-muted:#506a79;--gl-border:#bed7e4;border:1px solid var(--gl-border);border-radius:8px;background:var(--gl-bg);color:var(--gl-text);padding:0;width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:hidden;box-shadow:0 24px 100px #0005}.gl-dialog::backdrop{background:#071a258f}.gl-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid var(--gl-border);background:var(--gl-subtle)}.gl-dialog-header h2{margin:0;font-size:1.25rem}.gl-dialog-header .gl-close{flex:0 0 42px;padding:8px;min-height:42px}.gl-dialog-body{padding:22px 24px;overflow-y:auto;max-height:calc(100dvh - 130px);overscroll-behavior:contain}.gl-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gl-form-grid label{display:grid;gap:6px;font-size:.86rem;color:var(--gl-muted);align-content:start}.gl-full{grid-column:1/-1}.gl-dialog input:not([type=checkbox]),.gl-dialog select,.gl-dialog textarea{width:100%;box-sizing:border-box}.gl-dialog [type=checkbox]{width:18px;min-height:18px;accent-color:#0b5471}.gl-dialog label.gl-check{display:flex;align-items:start;gap:10px;line-height:1.5;margin:16px 0}.gl-check input{flex:0 0 18px;margin-top:3px}.gl-form-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;border-top:1px solid var(--gl-border);padding-top:18px;margin-top:20px}.gl-form-message{white-space:pre-wrap}.gl-line-editor{display:grid;grid-template-columns:minmax(170px,1fr) minmax(100px,1fr) 105px 105px 40px;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--gl-border)}.gl-line-editor label{display:grid;gap:5px;font-size:.75rem;color:var(--gl-muted)}.gl-line-editor button{padding:8px;min-height:42px}.gl-entry-total{display:flex;justify-content:flex-end;gap:22px;margin-top:14px;flex-wrap:wrap}.gl-entry-total span{display:grid;gap:4px;font-size:.85rem}.gl-entry-total strong{font-size:1.1rem}
.gl-panel button:not(:disabled):hover,.gl-dialog button:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 3px 8px #0b547116}.gl-panel button,.gl-dialog button{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;overflow-wrap:anywhere}.gl-panel button:focus-visible,.gl-dialog button:focus-visible{outline:3px solid #6dbbe0;outline-offset:3px}
@media(max-width:700px){.gl-heading{padding:18px;display:block}.gl-heading-actions{margin-top:15px}.gl-heading-actions button{flex:1}.gl-heading h2{font-size:1.4rem}.gl-filters{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.gl-filters input{width:100%;box-sizing:border-box}.gl-filters button{grid-column:1/-1}.gl-kpis{margin:0 16px 16px;grid-template-columns:1fr 1fr}.gl-kpis>div{padding:12px;border-bottom:1px solid var(--gl-border)}.gl-kpis>div:nth-child(2){border-right:0}.gl-kpis>div:nth-child(n+3){border-bottom:0}.gl-kpis strong{font-size:1.1rem}.gl-tabs{padding:0 12px}.gl-content{padding:18px 14px}.gl-status{margin:0 16px 14px}.gl-nav small{display:none}.gl-nav button{flex:1;justify-content:center}.gl-dialog-header{padding:16px}.gl-dialog-body{padding:16px;max-height:calc(100dvh - 112px)}.gl-form-grid{grid-template-columns:1fr}.gl-source-list{grid-template-columns:1fr 1fr}.gl-line-editor{grid-template-columns:1fr 1fr 40px;gap:8px}.gl-line-editor label:first-child{grid-column:1/-1}.gl-line-editor label:nth-child(2){grid-column:1/-1}.gl-line-editor button{grid-column:3;grid-row:3}.gl-form-footer>*{flex:1;min-width:0}.gl-entry-total{justify-content:space-between;gap:10px}.gl-table th,.gl-table td{padding:10px}.gl-table .gl-description{min-width:140px}.gl-filters label{min-width:0}}
@media(prefers-reduced-motion:reduce){.gl-panel button,.gl-dialog button{transition:none;transform:none!important}}
@media(max-width:700px){.gl-panel input,.gl-panel select,.gl-dialog input,.gl-dialog select,.gl-dialog textarea{font-size:16px}}

/* v303 · Navegación individual, con estado activo y movimiento discreto. */
#glPanel .gl-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:14px 24px;background:var(--gl-subtle);overflow:visible;border-bottom:0}
#glPanel .gl-tabs button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:58px;padding:10px 12px;margin:0;border:1px solid var(--gl-border);border-radius:6px;background:var(--gl-bg);color:var(--gl-text);box-shadow:none;white-space:normal;text-align:left;line-height:1.25;font-size:13px;font-weight:700;position:relative;isolation:isolate;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
#glPanel .gl-tab-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:32px;border-radius:5px;background:var(--gl-subtle);color:#0b6788;transition:background-color .18s ease,color .18s ease,transform .18s ease}
#glPanel .gl-tab-icon svg{display:block;width:21px;height:21px;overflow:visible}
#glPanel .gl-tab-label{min-width:0;overflow-wrap:normal}
#glPanel .gl-tabs button[aria-selected=true]{background:#0b5471;color:#fff;border-color:#0b5471;box-shadow:none}
#glPanel .gl-tabs button[aria-selected=true] .gl-tab-icon{background:#ffffff20;color:#fff}
#glPanel .gl-tabs button:not(:disabled):hover{background:#eaf5fb;border-color:#79b3ce;box-shadow:none;transform:translateY(-1px);filter:none}
#glPanel .gl-tabs button:not(:disabled):hover .gl-tab-icon{transform:translateY(-1px);background:#d8edf7}
#glPanel .gl-tabs button[aria-selected=true]:hover{background:#126782;border-color:#126782;color:#fff}
#glPanel .gl-tabs button[aria-selected=true]:hover .gl-tab-icon{background:#ffffff2b}
#glPanel .gl-tabs button:active{transform:translateY(0)!important;box-shadow:none}
#glPanel .gl-tabs button:focus-visible{outline:3px solid #54b9e5;outline-offset:3px;z-index:1}
html[data-theme=dark] #glPanel .gl-tab-icon{color:#a9dff4}
html[data-theme=dark] #glPanel .gl-tabs button:not([aria-selected=true]):hover{background:#223843;border-color:#6ca9c6}
html[data-theme=dark] #glPanel .gl-tabs button:not([aria-selected=true]):hover .gl-tab-icon{background:#2d4a58;color:#d3f1ff}
html[data-theme=dark] #glPanel .gl-tabs button[aria-selected=true]{background:#0e6686;border-color:#58a3c2;color:#fff}
html[data-theme=dark] #glPanel .gl-tabs button[aria-selected=true] .gl-tab-icon{color:#fff}
@media(max-width:1050px){#glPanel .gl-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 16px}#glPanel .gl-tabs button{justify-content:center}}
@media(max-width:560px){#glPanel .gl-tabs{gap:7px;padding:12px}#glPanel .gl-tabs button{flex-direction:column;gap:6px;min-height:75px;padding:9px 5px;font-size:12px;text-align:center}#glPanel .gl-tab-icon{flex:0 0 28px;width:29px;height:28px}#glPanel .gl-tab-icon svg{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){#glPanel .gl-tabs button,#glPanel .gl-tab-icon{transition:none!important;transform:none!important}}
/* El estado se expresa por el relleno; no hay subrayado ni acento inferior. */
#glPanel .gl-tabs button,#glPanel .gl-tabs button:hover,#glPanel .gl-tabs button[aria-selected=true]{box-shadow:none!important;border-bottom-width:1px}
#glPanel .gl-tabs button::before,#glPanel .gl-tabs button::after{display:none!important}

/* Accesos principales: la misma forma corporativa, con jerarquía de módulo. */
#glNav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:min(100%,540px);max-width:100%;margin:16px 0}
#glNav .gl-module-button{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-width:0;min-height:68px;padding:12px 14px;border:1px solid #bed7e4;border-radius:6px;background:#fff;color:#17384b;white-space:normal;text-align:left;box-shadow:none!important;transition:background-color .18s ease,border-color .18s ease,transform .18s ease;line-height:1.25}
#glNav .gl-module-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:36px;border-radius:5px;background:#edf5f9;color:#0b6788}
#glNav .gl-module-icon svg{width:23px;height:23px;display:block}
#glNav .gl-module-copy{display:block;min-width:0}
#glNav .gl-module-copy strong{display:block;font-size:14px;font-weight:750;color:inherit}
#glNav .gl-module-copy small{display:block;margin:4px 0 0;color:inherit;opacity:.76;font-size:11px;line-height:1.3}
#glNav .gl-module-button[aria-pressed=true]{background:#0b5471;border-color:#0b5471;color:#fff}
#glNav .gl-module-button[aria-pressed=true] .gl-module-icon{background:#ffffff20;color:#fff}
#glNav .gl-module-button:hover{transform:translateY(-1px);background:#eaf5fb;border-color:#79b3ce;box-shadow:none!important;filter:none}
#glNav .gl-module-button[aria-pressed=true]:hover{background:#126782;border-color:#126782}
#glNav .gl-module-button:focus-visible{outline:3px solid #54b9e5;outline-offset:3px}
#glNav .gl-module-button:active{transform:translateY(0)}
#glNav .gl-module-button::before,#glNav .gl-module-button::after{display:none!important}
html[data-theme=dark] #glNav .gl-module-button{background:#101416;color:#e7f2f8;border-color:#3b535f}
html[data-theme=dark] #glNav .gl-module-icon{background:#1b2d36;color:#a9dff4}
html[data-theme=dark] #glNav .gl-module-button:not([aria-pressed=true]):hover{background:#223843;border-color:#6ca9c6}
html[data-theme=dark] #glNav .gl-module-button[aria-pressed=true]{background:#0e6686;border-color:#58a3c2;color:#fff}
html[data-theme=dark] #glNav .gl-module-button[aria-pressed=true] .gl-module-icon{background:#ffffff20;color:#fff}
@media(max-width:700px){#glNav .gl-module-button{gap:8px;padding:11px 10px;min-height:64px}#glNav .gl-module-copy strong{font-size:13px}#glNav .gl-module-copy small{display:none}#glNav .gl-module-icon{flex:0 0 28px;width:28px;height:32px}#glNav .gl-module-icon svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){#glNav .gl-module-button{transition:none!important;transform:none!important}}
