:root{--navy:#292e35;--navy2:#1c2025;--deep:#242930;--teal:#b48a23;--teal2:#d5a32b;--blue:#7b8088;--bg:#f5f6f8;--white:#fff;--text:#292f36;--muted:#6b7280;--line:#e3e6eb;--shadow:0 11px 35px rgba(19,48,76,.075);--danger:#ae3c54;--focus:#c49a33;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font:15px/1.53 'Segoe UI',Inter,system-ui,-apple-system,sans-serif;color:var(--text)}.ico{width:22px;height:22px;flex-shrink:0;vertical-align:middle}a{text-decoration:none;color:#85641c}button,.btn,input,select,textarea{font:inherit}button,.btn{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:11px 20px;border-radius:12px;border:1px solid transparent;background:var(--teal);color:#fff;font-weight:730;transition:background .15s,transform .15s,box-shadow .15s}.btn:hover,button:hover{background:#9a771e;box-shadow:0 4px 15px rgba(21,88,80,.13);text-decoration:none}.btn:active,button:active,.module-primary:active,.action-card:active{transform:scale(.985)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dbab30;outline-offset:2px}.btn.secondary,button.secondary{background:#f3f4f6;border-color:#e1e3e7;color:#292e35}.btn.secondary:hover,button.secondary:hover{background:#e7e9ed}.btn.danger,button.danger{background:var(--danger);color:#fff}.btn.sm,button.sm{min-height:42px;font-size:13px;padding:8px 12px}.shell{min-height:100vh;display:flex}.side{width:266px;flex:0 0 266px;background:linear-gradient(177deg,#252a30,#1e2227 46%,#171b20);color:#fff;padding:24px 17px;display:flex;flex-direction:column;gap:11px;box-shadow:4px 0 24px rgba(7,30,55,.09);position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin}.brand-logo{display:grid;place-items:center;width:100%;background:#fff;border-radius:16px;min-height:92px;padding:11px 10px}.brand-logo img{display:block;object-fit:contain;width:100%;height:77px}.brand-note{text-align:center;color:#b8bbc0;font-size:10px;font-weight:800;letter-spacing:.23em;padding:8px 0 11px}.nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;min-height:47px;padding:11px 12px;border-radius:11px;color:#d9dcdf;font-size:13px;font-weight:640;transition:background .15s,color .15s}.nav-link .ico{width:19px;height:19px}.nav-link:hover,.nav-link.on{background:rgba(36,145,140,.35);color:#fff;text-decoration:none}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff22;padding-top:12px}.main{width:100%;min-width:0;max-width:1760px;margin:0 auto;padding:0 28px 20px}.top{min-height:94px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;background:#f8f9fb}.top-main{display:flex;align-items:center;gap:13px}.page-kicker{font-size:11px;letter-spacing:.13em;color:var(--teal);font-weight:830;text-transform:uppercase}.top h1{font-size:25px;font-weight:850;line-height:1.18;letter-spacing:-.03em;margin:4px 0}.top-user{display:flex;align-items:center;gap:10px}.user-avatar{width:42px;height:42px;background:#e8eaec;border-radius:50%;display:grid;place-items:center;color:#454b54}.user-label{display:flex;flex-direction:column;font-size:13px;white-space:nowrap}.user-label small{font-size:11px;color:var(--muted)}.logout-form{margin-left:9px}.logout-btn{min-width:70px;min-height:42px!important;padding:9px 12px!important}.logout-btn .ico{width:19px;height:19px}.mobile-brand{display:none}.page-content{min-height:70vh}.eyebrow{margin:0;color:var(--teal);font-size:11px;font-weight:830;letter-spacing:.17em;text-transform:uppercase}.welcome-hero{border-radius:22px;padding:26px 33px;display:flex;align-items:center;justify-content:space-between;min-height:175px;background:linear-gradient(115deg,#fcfcfd 5%,#f7f4eb 67%,#e9e3d5);box-shadow:var(--shadow);overflow:hidden}.welcome-hero h2{font-size:29px;letter-spacing:-.035em;margin:11px 0 5px;color:#292e35}.welcome-hero p:not(.eyebrow){margin:0;color:#65707d}.hero-symbol{color:#dfc784;transform:scale(3.3);margin-right:74px;opacity:.42}.hero-stats{margin:18px 0 23px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.hero-stat{min-height:129px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:3px}.hero-stat-icon{color:var(--teal);margin-bottom:3px}.hero-stat small{color:var(--muted);font-size:13px}.hero-stat strong{font-size:25px;letter-spacing:-.035em;line-height:1.2;white-space:nowrap}.section-caption{display:flex;align-items:flex-end;justify-content:space-between;margin:20px 0 13px}.section-caption h2{font-size:21px;margin:3px 0 0}.section-caption>span{font-size:13px;color:var(--muted)}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.module-tile{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:19px;min-width:0;overflow:hidden}.module-primary{display:flex;align-items:center;gap:14px;padding:17px 16px 15px;min-height:96px;color:var(--text)}.module-primary:hover{text-decoration:none;background:#f8fafc}.module-glyph{width:60px;height:60px;border-radius:15px;display:grid;place-items:center;flex-shrink:0;color:#fff}.module-glyph .ico{width:30px;height:30px}.module-glyph.mint{background:linear-gradient(135deg,#a78025,#795d1c)}.module-glyph.blue{background:linear-gradient(135deg,#91752e,#6c6f75)}.module-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.module-copy strong{font-size:17px;line-height:1.18}.module-copy small{color:var(--muted);font-size:12px}.chevron{width:18px;height:18px;color:#626b76}.tile-actions{border-top:1px solid #eef1f6;padding:11px 13px 13px;display:flex;gap:8px;flex-wrap:wrap}.tile-action,.tile-upcoming{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 11px;border-radius:10px;background:#f3f4f6;color:#454950;font-size:12px;min-height:42px;font-weight:700}.tile-action .ico{width:16px;height:16px}.tile-action:hover{background:#f7f0df}.tile-upcoming{color:#7b8e9b;cursor:default}.module-heading{display:flex;align-items:center;gap:20px;background:linear-gradient(112deg,#fff,#faf7ef);border:1px solid var(--line);border-radius:20px;padding:24px;margin:0 0 23px}.module-heading .module-glyph{width:78px;height:78px}.module-heading .module-glyph .ico{width:40px;height:40px}.module-heading h2{margin:4px 0;font-size:25px}.module-heading p:not(.eyebrow){margin:0;color:var(--muted)}.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:12px;margin:15px 0 28px}.action-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);padding:16px;border-radius:16px;min-height:83px;color:var(--text);font-weight:750;box-shadow:var(--shadow)}.action-card .chevron{margin-left:auto}.action-card .action-icon{color:var(--teal)}.action-card:hover{background:#fbf8f0}.action-card.upcoming{background:#f6f8fb;color:#8c98a6;box-shadow:none;cursor:default}.action-card.upcoming small{margin-left:auto;font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);margin-bottom:17px;overflow:hidden}.panel-heading{border-bottom:1px solid #edf0f4;padding:19px 23px;display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:18px;letter-spacing:-.015em;margin:0}.panel-body{padding:21px 23px}.panel p{margin-top:4px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:13px;margin-bottom:19px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px}.stat .num{font-size:25px;font-weight:830;line-height:1.2;margin-top:8px}.muted,.small,.notice{color:var(--muted)}.small,.notice{font-size:13px}.tag{display:inline-flex;padding:7px 10px;border-radius:9px;background:#eef3f7;color:#645a42;font-size:11px;letter-spacing:.03em;font-weight:800;text-transform:uppercase}.divider{border-top:1px solid var(--line);margin:17px 0}.row{display:flex;gap:11px;align-items:center;flex-wrap:wrap}.spaced{justify-content:space-between}.form{display:grid;gap:18px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;min-width:0;gap:7px}.field label{font-size:13px;color:#454c56;font-weight:750}.field input,.field select,.field textarea,input.control,form input,form select{width:100%;max-width:100%;min-height:50px;border:1px solid #d6dae0;background:#fff;color:var(--text);padding:11px 13px;border-radius:11px;font-size:15px;box-shadow:inset 0 1px 2px #f2f5f8}.field input:focus,.field select:focus,.field textarea:focus,form input:focus,form select:focus{outline:none;border-color:#bc9227;box-shadow:0 0 0 3px #d4aa3d33}.field input[type=date]{font-variant-numeric:tabular-nums}.field select,form select{cursor:pointer}.form button[type=submit]{justify-self:start;min-width:205px}.form-note{background:#fbf7ec;color:#6f5e32;border:1px solid #eee4c6;padding:12px 15px;border-radius:12px;font-size:13px}.form-summary{border-top:1px solid var(--line);padding:16px 0 0;display:flex;justify-content:space-between;gap:16px;align-items:center}.form-summary b{font-size:20px}.quick-select{display:flex;gap:10px;flex-wrap:wrap}.pill-option{display:flex;align-items:center;justify-content:center;min-height:55px;padding:11px 16px;border-radius:12px;border:1px solid #cbdbe8;background:#f8fafc;font-weight:760;cursor:pointer}.pill-option input{position:absolute;opacity:0;width:1px;height:1px}.pill-option:has(input:checked){background:#f8f3e8;border-color:#bc9227;color:#87681b}.tablewrap{overflow:auto;border:1px solid #e5eaf0;border-radius:12px}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f5f6f7;color:#626b76;text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:780;text-align:left}td,th{padding:13px 12px;border-bottom:1px solid #ebeff3;white-space:normal;vertical-align:middle}tr:hover td{background:#fafbfc}tr:last-child td{border-bottom:0}.right{text-align:right}.center{text-align:center}.money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.alert{margin-bottom:18px;padding:14px 16px;border-radius:11px;border:1px solid #f0c7cc;background:#fff1f3;color:#9e3c4b}.alert.success{display:flex;align-items:center;gap:9px;border-color:#b9e1d4;background:#ebf8f3;color:#197969}.ok{border-color:#b9e1d4;background:#ebf8f3;color:#197969}.badge{display:inline-block;padding:6px 10px;border-radius:9px;background:#f2f3f5;color:#4f5861;font-size:11px;font-weight:800}.badge.posted{background:#e2f6eb;color:#197451}.badge.draft{background:#fff3dc;color:#96691a}.journalrow{display:grid;grid-template-columns:2fr 1.4fr .9fr .9fr 1.4fr;gap:8px;align-items:center;margin-bottom:9px}.journalrow input,.journalrow select{min-width:0;width:100%;padding:9px;min-height:49px;border-radius:10px;border:1px solid #ccdbe5;background:#fff}.journalrow .muted{display:none}.totals{margin:13px 0;border-radius:12px;padding:17px;background:#fbf8f2;text-align:right;font-variant-numeric:tabular-nums;font-weight:830;color:#716037}.account-header{font-weight:800;letter-spacing:.02em;color:var(--navy)}.account-level-1{padding-left:8px}.account-level-2{padding-left:18px}.account-level-3,.account-level-4{padding-left:27px}.account-level-1,.account-level-2,.account-level-3,.account-level-4{display:inline-block}footer{padding:20px 0 10px;font-size:11px;color:#8094a4}.login{max-width:500px;margin:8vh auto 0}.login .brand{font-size:26px;color:var(--teal);font-weight:900}.login .panel{padding:4px}.login .panel h2{margin:0}.login .panel>.field{margin:18px}.noprint{}@media(max-width:1250px){.side{flex-basis:215px;width:215px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:0 20px 20px}.nav-link{font-size:12px;padding:10px}.brand-logo{min-height:74px}.brand-logo img{height:60px}}@media(max-width:900px){.shell{display:block}.side{position:static;width:100%;height:auto;padding:9px 13px 5px;overflow:visible;display:block}.brand-logo,.brand-note,.sidebar-bottom{display:none}.nav{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;scrollbar-width:thin;margin:0}.nav-link{white-space:nowrap;min-height:52px;padding:10px 14px}.top{min-height:84px}.mobile-brand{display:block}.mobile-brand img{height:45px;width:90px;object-fit:contain;background:#fff;border-radius:9px}.main{padding:0 13px 20px}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-symbol{margin-right:38px;transform:scale(2)}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.top{align-items:flex-start;padding:14px 3px;gap:7px}.top h1{font-size:20px}.top-main{align-items:flex-start}.top-user{gap:6px}.user-avatar,.user-label{display:none}.welcome-hero{padding:24px 18px;min-height:140px}.welcome-hero h2{font-size:23px}.hero-symbol{display:none}.hero-stats,.module-grid{grid-template-columns:1fr}.hero-stat{min-height:100px}.hero-stat strong{font-size:23px}.module-tile{border-radius:15px}.fields{grid-template-columns:1fr}.panel-heading{padding:17px}.panel-body{padding:17px}.module-heading{padding:18px}.module-heading .module-glyph{width:58px;height:58px}.module-heading h2{font-size:21px}.journalrow{grid-template-columns:1fr 1fr}.journalrow>select:first-child,.journalrow input[data-field=memo]{grid-column:1/-1}.tablewrap{max-width:100%}.section-caption>span{display:none}}@media print{.side,.top .logout-form,.noprint,button,.module-grid,.module-heading{display:none!important}body{background:#fff;color:#000}.main{max-width:none;padding:0}.panel,.stat{box-shadow:none;border:1px solid #ccc;break-inside:avoid}th{background:#eee;color:#222}.page-content{min-height:0}}
/* Touch controls and denomination grid */
.denom-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:11px;margin:18px 0}.denom-item{border:1px solid #dce6eb;border-radius:13px;padding:13px;background:#f7fafb;display:flex;flex-direction:column;gap:6px}.denom-item label{font-weight:800;color:var(--navy)}.denom-item input{min-height:50px;padding:10px;font-size:19px;text-align:center;border:1px solid #bed2df;background:#fff;border-radius:9px;width:100%}.denom-item small{color:var(--muted)}.denom-totals{padding:18px;border-radius:14px;background:#e6f4f0;font-size:21px;font-weight:860;color:#146b61;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.operation-type{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 15px}.operation-type label{flex:1;min-width:165px;display:flex;align-items:center;justify-content:center;border:1px solid #cbdbe8;background:#f5f8fb;border-radius:13px;padding:14px;font-weight:790;cursor:pointer;min-height:66px}.operation-type label:has(input:checked){border-color:var(--teal);background:#ddf4ef;color:#086c61}.operation-type input{width:auto;min-height:0;margin-right:10px}.workflow-header{display:flex;gap:12px;align-items:center;background:#f1f8fa;border:1px solid #e0ebf0;padding:16px;border-radius:13px;margin-bottom:19px}.workflow-header .ico{color:var(--teal);height:28px;width:28px}.workflow-header strong{display:block}.workflow-header small{display:block;color:var(--muted)}
.rule-item{border-bottom:1px solid #ebeff3;padding:14px 0}.rule-item:last-child{border-bottom:0}.rule-form{display:grid;grid-template-columns:minmax(170px,1fr) minmax(240px,2fr) auto;gap:16px;align-items:center}.rule-form strong{font-size:14px}.rule-form .field label{font-size:11px}.rule-form button{align-self:end}@media(max-width:750px){.rule-form{grid-template-columns:1fr}.rule-form button{width:100%}}
.login-logo{width:255px;max-width:100%;margin:0 auto 13px;padding:13px 18px;background:#fff;border-radius:16px;box-shadow:var(--shadow);display:grid;place-items:center}.login-logo img{width:100%;max-height:150px;object-fit:contain}.login-overline{letter-spacing:.15em;text-align:center;color:var(--teal);font-weight:850;font-size:11px;margin-bottom:20px}.login .panel{border-radius:18px}.login .panel-body>p{margin-bottom:21px}.login .form button{width:100%}.login>p{text-align:center}.panel .action-grid{margin:4px 0}.panel .action-card{box-shadow:none;border-color:#dfe9f1}.panel .action-card .ico:last-child{margin-left:auto}
.journal-head{display:grid;grid-template-columns:2fr 1.4fr .9fr .9fr 1.4fr;gap:8px;margin:15px 0 9px;padding:10px 8px;background:#edf4f8;border-radius:9px;color:#5b7287;text-transform:uppercase;font-weight:820;letter-spacing:.06em;font-size:10px}@media(max-width:640px){.journal-head{display:none}}

/* Formularios táctiles de documentos de Caja. Hereda controles originales del ERP. */
.cash-doc-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:15px 0 24px}
.cash-doc-tab{display:flex;align-items:center;gap:11px;border:1px solid #d5e5e8;background:white;border-radius:16px;padding:17px 15px;text-decoration:none;color:#234456;min-height:95px}
.cash-doc-tab .ico{color:#147f80}.cash-doc-tab span{display:flex;flex-direction:column;gap:3px}.cash-doc-tab b{font-size:16px}.cash-doc-tab small{font-size:11px;color:#718594}
.cash-doc-tab.current{border-color:#138b83;background:#e7f6f3;box-shadow:0 0 0 2px #118a821a}.cash-doc-tab:focus-visible{outline:3px solid #13a696}
.cash-doc-actions{padding:17px 0 0;border-top:1px solid #e3eaed}.cash-doc-actions button{min-height:56px;font-size:15px}
.cash-doc-foot{margin-top:24px;padding:15px 0;border-top:1px solid #e3eaed}
@media(max-width:1000px){.cash-doc-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cash-doc-tabs{gap:7px}.cash-doc-tab{padding:11px;min-height:80px}.cash-doc-tab b{font-size:14px}.cash-doc-tab small{font-size:10px}.cash-doc-actions button{width:100%}}

/* V2.3.9: detalle fiscal táctil por partida, adaptable a pantallas pequeñas */
.fiscal-lines{overflow-x:auto;width:100%;margin:12px 0;border:1px solid var(--border,#dce3e9);border-radius:12px;padding:8px}
.fiscal-lines table{width:100%;min-width:640px;border-collapse:collapse}
.fiscal-lines th,.fiscal-lines td{padding:6px 5px;text-align:left;vertical-align:middle}
.fiscal-lines input,.fiscal-lines select{min-width:75px;width:100%;padding:10px 8px;font-size:14px;box-sizing:border-box}
.fiscal-lines td:first-child{min-width:175px}
.fiscal-lines [data-line-total]{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.fiscal-lines [data-vat-totals]{font-weight:700;font-variant-numeric:tabular-nums;margin:12px 6px}
/* NEXO V2.4 - formulario de facturación adaptable y táctil */
.billing-workspace {display:grid;gap:1rem}
.billing-columns {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.billing-panel {background:var(--card,#fff);border:1px solid #d7e2df;border-radius:14px;padding:14px;min-width:0}
.billing-panel h3 {margin:0 0 .8rem;font-size:1.05rem}
.billing-search {display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.billing-search input {flex:1 1 160px;min-width:125px}
.billing-search button,.billing-workspace button {min-height:42px}
.billing-info {display:grid;gap:4px;margin:10px 0 0;font-size:.9em;overflow-wrap:anywhere}
.billing-suggestions {position:relative;max-height:210px;overflow-y:auto;border:1px solid #d3dedc;border-radius:8px}
.billing-choice {display:block;width:100%;padding:9px 12px;text-align:left;background:#fff;color:#243c38;border:0;border-bottom:1px solid #e5ece9;cursor:pointer}
.billing-choice:hover,.billing-choice:focus {background:#e5f3ed}
.billing-items {width:100%;min-width:670px;border-collapse:collapse}
.billing-items th,.billing-items td {padding:7px;border-bottom:1px solid #e4e8e7;text-align:left}
.billing-items input,.billing-items select {width:100%;min-width:65px}
.billing-items td:nth-child(2) {min-width:190px}
.billing-totals {display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:flex-end;text-align:right}
.billing-totals p {font-size:.97rem}
.billing-dialog {border:1px solid #cbd8d5;border-radius:14px;min-width:min(620px,90vw);max-width:95vw;max-height:85vh;padding:22px}
.billing-dialog::backdrop {background:rgb(7 35 30 / 60%)}
.billing-dialog-items {overflow:auto;max-height:50vh;margin:12px 0}
.billing-dialog input[type=search] {width:100%}
@media print {.sidebar,.topbar,.billing-workspace button,.billing-workspace dialog {display:none!important}}

/* NEXO V2.4.1: descripción de servicios compacta pero flexible. */
.billing-items .billing-description{display:block;width:100%;min-width:240px;min-height:65px;max-height:145px;resize:vertical;line-height:1.4;padding:9px 10px;overflow-y:auto;box-sizing:border-box}
.billing-items td:nth-child(2){min-width:260px;max-width:570px}
.billing-workspace #invoice_note{display:block;width:100%;box-sizing:border-box;min-height:64px;max-height:140px;resize:vertical}
.billing-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.billing-pay-dialog{max-width:440px;width:min(440px,95vw)}
.billing-pay-dialog label{display:block;margin:12px 0 6px;font-weight:600}
.billing-pay-dialog input,.billing-pay-dialog textarea{width:100%;box-sizing:border-box}
.billing-pay-amount{display:flex;justify-content:space-between;align-items:center;padding:15px;margin:12px 0;background:#f0f7f5;border-radius:10px;font-weight:650}
.billing-pay-amount strong{font-size:1.5rem}
.billing-pay-result{font-weight:700;padding:8px 0;min-height:25px}
.billing-pay-actions{display:flex;gap:12px;flex-wrap:wrap}
.billing-items textarea{font-family:inherit;font-size:inherit}
@media print{.billing-pay-dialog{display:none!important}.billing-actions{display:none!important}}

/* NEXO V2.4.6: comprobantes de tesorería, impresos desde JS externo bajo CSP. */
.voucher-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 15px}
.print-voucher{max-width:900px;margin:10px auto 22px;padding:26px 30px;background:#fff;border:1px solid #d6e1e6;border-radius:14px;color:#152d39;box-shadow:0 5px 15px rgba(0,0,0,.05)}
.print-voucher .voucher-heading{display:flex;justify-content:space-between;gap:18px;border-bottom:2px solid #60583e;padding-bottom:13px;align-items:flex-start}
.print-voucher h2{font-size:24px;margin:6px 0}
.print-voucher .voucher-number{font-size:15px;white-space:nowrap;color:#7a6125}
.voucher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 22px;margin:20px 0}
.voucher-field{border-bottom:1px solid #e5e8e9;padding:8px 0;overflow-wrap:anywhere}
.voucher-field>span{display:block;font-size:11px;color:#657583;margin-bottom:4px}
.voucher-field>strong{font-size:14px;line-height:1.5;font-weight:650;white-space:pre-wrap}
.voucher-amount{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:10px;background:#f8f4e9;margin:16px 0;gap:12px}
.voucher-amount strong{font-size:24px;font-variant-numeric:tabular-nums}
.voucher-note{font-size:12px;border-left:3px solid #8d805c;padding:5px 12px}
.voucher-signatures{display:flex;justify-content:space-between;gap:30px;margin-top:60px}
.voucher-signatures span{width:43%;text-align:center;border-top:1px solid #5d6a70;padding-top:8px;font-size:12px}
@media(max-width:600px){.voucher-grid{grid-template-columns:1fr}.print-voucher{padding:16px}.print-voucher h2{font-size:18px}}
@media print{
 @page{size:letter;margin:14mm}
 .voucher-actions,.print-voucher button,.print-voucher form,.print-voucher .noprint{display:none!important}
 .print-voucher{max-width:none;width:100%;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;break-inside:auto}
 .voucher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .voucher-amount{background:#f5f5f5!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .page-content:has(.print-voucher)>section.panel{border:0;box-shadow:none}
}

@media print{body:has(.print-voucher) .top,body:has(.print-voucher) footer{display:none!important}body:has(.print-voucher) .page-content{padding:0!important}}

/* V2.4.7: Caja inicial y arqueo imprimible tamaño carta */
.cash-tally{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px;margin:12px 0 18px}
.cash-tally>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dbe5e8;padding:12px 10px;min-width:0}
.cash-tally>div:nth-last-child(1){background:#f7f1e2;color:#5b512d;font-weight:800;border-radius:8px}
.cash-tally span{font-size:13px;color:#656c76}.cash-tally strong{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cash-opening-ack{display:flex;gap:10px;align-items:flex-start;line-height:1.5;font-weight:650}
.cash-opening-ack input{width:20px;min-width:20px;min-height:20px;margin:2px 0}
.cash-audit-document h3{font-size:15px;margin:16px 0 10px}
.cash-signatures{gap:15px}.cash-signatures span{width:33%;font-size:11px}
@media(max-width:640px){.cash-tally{grid-template-columns:1fr}}
@media print{.cash-audit-document{font-size:11px}.cash-audit-document .cash-tally{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-audit-document .cash-tally>div{padding:5px 7px}.cash-audit-document .cash-tally strong{font-size:12px}.cash-audit-document th,.cash-audit-document td{padding:6px 8px}.cash-audit-document .voucher-grid{margin:10px 0}.cash-audit-document .voucher-field{padding:3px 0}.cash-audit-document .voucher-signatures{margin-top:45px;break-inside:avoid}}

.cash-audit-logo{width:145px;height:65px;object-fit:contain;display:block;margin-bottom:9px}
@media print{.cash-audit-logo{width:115px;height:46px}}

/* NEXO V2.4.9 - remisiones, tres firmas en papel carta */
.print-voucher .voucher-signatures--triple{gap:20px;flex-wrap:nowrap}
.print-voucher .voucher-signatures--triple span{width:30%;min-width:0;overflow-wrap:anywhere}
@media print{.print-voucher .voucher-signatures--triple{break-inside:avoid}}

/* NEXO V2.5.2: libros e informes contables para imprimir en tamaño carta. */
.accounting-print-heading{display:flex;align-items:center;gap:20px;border-bottom:2px solid #2a3036;padding:9px 0 19px;margin-bottom:20px}
.accounting-print-heading img{width:126px;max-height:72px;object-fit:contain}
.accounting-print-heading h2{margin:5px 0;font-size:23px;color:#2a3036}
.accounting-print-heading p{margin:0;color:#55697c}
.report-filters>.field{min-width:150px;flex:1}.report-filters>button{align-self:end}
.report-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:95px 5px 25px}
.report-signatures span{border-top:1px solid #333;text-align:center;padding-top:8px;font-size:12px}
@page{size:letter portrait;margin:12mm}
@media print{
 body:has(.accounting-print) .side,body:has(.accounting-print) .top,body:has(.accounting-print) footer{display:none!important}
 body:has(.accounting-print) .main,body:has(.accounting-print) .page-content{margin:0!important;padding:0!important;max-width:none!important}
 .accounting-print{font-size:10px;color:#000}
 .accounting-print-heading{margin-bottom:9px;padding:5px 0 12px;gap:14px}
 .accounting-print-heading img{width:105px;max-height:62px}
 .accounting-print-heading h2{font-size:18px}
 .accounting-print .panel{border:0;box-shadow:none;overflow:visible;break-inside:auto;margin:0 0 12px}
 .accounting-print .panel-heading{padding:7px 0}
 .accounting-print .panel-body{padding:7px 0}
 .accounting-print .panel-heading h2{font-size:12px}
 .accounting-print .tablewrap{overflow:visible;border:0}
 .accounting-print table{font-size:9px;table-layout:auto}
 .accounting-print th,.accounting-print td{padding:4px 5px;border-bottom:1px solid #ddd}
 .accounting-print thead{display:table-header-group}
 .accounting-print tr{break-inside:avoid}
 .accounting-print a{color:#000;text-decoration:none}
 .accounting-print .notice{background:none;border:0;color:#444;font-size:9px;padding:5px 0}
 .report-signatures{break-inside:avoid}
}

/* Facturas de compra simplificadas V2.5.8 */
.fiscal-lines .tablewrap{overflow-x:auto}.fiscal-lines table{width:100%;min-width:680px}.fiscal-lines input,.fiscal-lines select{width:100%;min-width:90px;box-sizing:border-box}
.fiscal-lines td:first-child input{min-width:210px}.fiscal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.purchase-line{border-bottom:1px solid var(--line,#dce2e8);padding:12px 0}.purchase-line:last-child{border-bottom:0}
input[data-money]{font-variant-numeric:tabular-nums;text-align:right}

.company-print-header{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #cbd5e1;line-height:1.6}
.company-print-header strong{font-size:1.12em}

/* V2.5.16 - impresión documental limpia en todo NEXO. La barra de acciones
   pertenece a la pantalla, nunca al cheque, factura, voucher o informe. */
.cheque-sheet{width:min(100%,816px);max-width:816px;margin:16px auto;background:#fff;padding:14px 21px}
.cheque-paper{min-height:90mm;padding:8mm 7mm 5mm;border:1.6px solid #1c3852;display:flex;flex-direction:column;gap:8mm}
.cheque-paper-header{display:flex;justify-content:space-between;gap:12mm;align-items:flex-start}
.cheque-enterprise{font-size:18px;color:#13364f}.cheque-paper-header p{margin:2px 0;font-size:11px}
.cheque-paper-number{display:grid;grid-template-columns:auto auto;gap:4px 9px;font-size:11px;text-align:right;align-items:center}
.cheque-paper-number strong{font-size:15px}
.cheque-bank-head{display:flex;justify-content:space-between;gap:10mm;border-bottom:1px solid #627686;padding-bottom:5px;font-size:11px}
.cheque-payee,.cheque-value{display:flex;gap:6mm;align-items:center;justify-content:space-between}
.cheque-payee>span,.cheque-value span{font-size:10px;white-space:nowrap}
.cheque-payee strong{font-size:15px;flex:1;border-bottom:1px solid #617889;padding:4px 2px}
.cheque-value>div{flex:1;min-width:0}.cheque-value>div strong{display:block;font-size:13px;line-height:1.5;min-height:16mm;border-bottom:1px solid #617889}
.cheque-amount{font-size:20px;border:1px solid #172e45;padding:9px;white-space:nowrap}
.cheque-firma{align-self:end;margin-top:auto;margin-bottom:0;border-top:1px solid #39566b;text-align:center;width:60mm;padding-top:4px;font-size:10px}
.cheque-voucher{margin-top:7mm;border-top:2px dashed #546e7f;padding:5mm 4mm 0;font-size:11px}
.cheque-voucher h2{text-align:center;margin:3mm 0;font-size:15px}.cheque-voucher p{margin:3px 0;overflow-wrap:anywhere}
.cheque-voucher-meta{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:3mm 0 4mm}
.cheque-accounting{width:100%;border-collapse:collapse;margin-top:4mm;font-size:10px;table-layout:fixed}
.cheque-accounting td,.cheque-accounting th{border:1px solid #96a2af;padding:5px 6px;white-space:normal;overflow-wrap:anywhere}
.cheque-accounting th{background:#eef3f7;color:#203e59}.cheque-accounting th:first-child{width:20%}
.cheque-accounting th:nth-child(2){width:42%}.cheque-accounting th:nth-child(3),.cheque-accounting th:nth-child(4){width:19%}
.cheque-accounting .amount{text-align:right;font-variant-numeric:tabular-nums}.cheque-accounting tfoot th{text-align:right}
.cheque-signatures{display:grid;grid-template-columns:repeat(4,1fr);gap:7mm;margin:20mm 0 2mm;break-inside:avoid}
.cheque-signatures span{text-align:center;border-top:1px solid #58677a;padding-top:4px;font-size:10px}
.cheque-void{font-size:12px;color:#9d233c}.cheque-fx{border-top:1px solid #dce3eb;padding-top:4px}

@media print{
 @page{size:letter portrait;margin:11mm}
 html,body{background:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 /* La navegación y TODOS los controles de aplicación jamás van al papel. */
 .side,.top,footer,.noprint,.voucher-actions,.actions,.tile-actions,.report-filters,
 nav,button,.btn,form,input,select,textarea,dialog,[role="navigation"],[data-print],
 .pagination,.breadcrumb,.no-print,.print-controls{display:none!important}
 .shell,.main,.page-content{display:block!important;width:100%!important;max-width:none!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}
 .panel:has(.cheque-sheet),.panel:has(.print-voucher),.panel:has(.accounting-print),
 .panel:has(.cheque-sheet)>.panel-body,.panel:has(.print-voucher)>.panel-body{
  border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;
  margin:0!important;padding:0!important;max-width:none!important;overflow:visible!important}
 .print-voucher,.accounting-print{box-shadow:none!important}
 .print-voucher a,.accounting-print a,.company-print-header a{color:inherit!important;text-decoration:none!important}
 .cheque-sheet{width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
 .cheque-paper{min-height:90mm;padding:7mm 6mm 5mm;gap:6mm;break-inside:avoid}
 .cheque-voucher{margin-top:6mm;padding-top:4mm}
 .cheque-signatures{margin-top:16mm}
 .cheque-accounting thead{display:table-header-group}
 .cheque-accounting tr{break-inside:avoid}
}

@media print{.panel:has(.cheque-sheet)>.panel-heading{display:none!important}.panel:has(.cheque-sheet)>.panel-body{padding:0!important}}


/* V2.5.17 — Ticket térmico comercial: diseño monoespaciado sin secciones fiscales.
   El tipo de papel (80 mm o 58 mm) se elige en el controlador de impresora. */
.ticket-print{max-width:80mm;width:min(100%,80mm);margin:12px auto 20px;padding:5mm 4mm;
  border:1px solid #e4e4e4;border-radius:0;box-shadow:none;color:#111;background:#fff}
.ticket-paper{font:11px/1.38 "Courier New",Consolas,monospace;color:#111;overflow-wrap:anywhere}
.ticket-heading{text-align:center;margin-bottom:7px}
.ticket-business{display:block;font:bold 15px/1.25 "Courier New",Consolas,monospace;
  text-transform:uppercase;overflow-wrap:anywhere;margin-bottom:5px}
.ticket-meta{margin:2px 0;overflow-wrap:anywhere}
.ticket-meta>span{font-weight:bold}
.ticket-heading .ticket-meta{text-align:center}
.ticket-dashes{border-top:1px dashed #111;margin:10px 0}
.ticket-document-title{text-align:center;font-weight:bold;font-size:13px;margin:8px 0}
.ticket-items{width:100%;font-family:inherit;font-size:10px;border-collapse:collapse;table-layout:fixed}
.ticket-items th{font-size:10px;color:#111;background:transparent;border-bottom:1px dashed #555;
  letter-spacing:0;text-transform:none;text-align:left;padding:3px 2px}
.ticket-items th:nth-child(1){width:12%}.ticket-items th:nth-child(2){width:42%}
.ticket-items th:nth-child(3){width:22%;text-align:right}.ticket-items th:nth-child(4){width:24%;text-align:right}
.ticket-items td{padding:5px 2px;border:0;vertical-align:top;background:transparent!important;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ticket-items tr:hover td{background:transparent}
.ticket-items .ticket-number{text-align:right;white-space:nowrap;overflow:visible;font-size:9.5px}
.ticket-items .ticket-qty{white-space:nowrap}.ticket-items .ticket-description{hyphens:auto}
.ticket-total-row{display:flex;justify-content:space-between;gap:5px;margin:4px 0;font-variant-numeric:tabular-nums}
.ticket-grand-total{font-size:14px;border-top:1px dashed #111;padding-top:6px;margin-top:8px}
.ticket-void{text-align:center;font-size:18px;font-weight:bold;border:2px solid #111;margin:8px 0;padding:5px}
.ticket-thanks{text-align:center;font-weight:bold;margin:14px 0 4px}
.ticket-screen-only{max-width:900px;margin:15px auto}.ticket-screen-only>summary{cursor:pointer;font-weight:700}
@page castellano-ticket{size:auto;margin:3mm}
@media print{
 .ticket-print{page:castellano-ticket;width:72mm!important;max-width:72mm!important;
   min-width:0!important;margin:0 auto!important;padding:0!important;border:0!important;
   border-radius:0!important;box-shadow:none!important;break-inside:auto!important}
 .ticket-paper{font-size:10px!important}
 .ticket-print .ticket-items th,.ticket-print .ticket-items td{padding:3px 1px!important}
 .ticket-screen-only,.page-content:has(.ticket-print)>.panel>.panel-heading,
 .panel:has(.ticket-print)>.panel-heading{display:none!important}
 .panel:has(.ticket-print),.panel:has(.ticket-print)>.panel-body{
    border:0!important;margin:0!important;padding:0!important;box-shadow:none!important}
 .ticket-print .ticket-dashes{border-color:#111!important}
}

/* R3 - Gerencia: tarjetas financieras y gráficas sin dependencias externas. */
.mg-banner{background:linear-gradient(118deg,#25292f,#3b4149 65%,#6b603b);color:#fff;border-radius:22px;padding:27px 32px;display:flex;gap:24px;align-items:center;justify-content:space-between;box-shadow:var(--shadow);margin-bottom:18px}
.mg-banner .eyebrow{color:#f1d57d}.mg-banner h2{font-size:clamp(21px,2.3vw,30px);margin:6px 0;line-height:1.2;letter-spacing:-.035em}.mg-banner p:not(.eyebrow){color:#dedfe2;max-width:650px;margin:0}
.mg-date{color:#dbccaa;font-size:11px;letter-spacing:.09em;white-space:nowrap}.mg-date strong{color:white;display:block;font-size:20px;letter-spacing:0}
.mg-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:15px 19px;border-radius:16px;background:#fff;border:1px solid var(--line);margin:13px 0 18px}
.mg-filter>.field{min-width:250px;flex:1}.mg-filter .field{margin:0}
.mg-filterfields{display:flex;flex:1;flex-wrap:wrap;gap:12px;align-items:end}.mg-filterfields>.field{min-width:190px;flex:1}
.mg-filter button,.mg-filter .btn{min-height:42px}
.mg-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:13px 0 22px}
.mg-kpi{display:flex;flex-direction:column;min-width:0;gap:6px;padding:19px 20px 16px;border:1px solid #e6e8ec;background:#fff;box-shadow:var(--shadow);border-radius:16px}
.mg-kpi>span{font-size:13px;font-weight:650;color:#69717c}.mg-kpi strong{font-size:clamp(19px,2vw,26px);letter-spacing:-.045em;line-height:1.22;overflow-wrap:anywhere;color:#292e35;font-variant-numeric:tabular-nums}
.mg-kpi small{color:#7a828d;font-size:12px}.mg-kpi>a{font-size:12px;font-weight:750;color:#97711d;margin-top:auto;padding-top:7px}.mg-kpi.alert{border-color:#eac2c9;background:#fff7f7}.mg-kpi.alert strong,.mg-loss{color:#b0364e}
.mg-win{color:#16745c}.mg-track{background:#e7e9eb;border-radius:12px;height:9px;margin:7px 0;overflow:hidden;min-width:115px}.mg-fill{height:100%;border-radius:12px;background:#ae8424;min-width:0}.mg-fill.blue{background:#727985}.mg-fill.amber{background:#d7a344}.mg-empty{color:#777e88;font-size:13px}.mg-monthly{display:grid;gap:10px}.mg-month{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #e7edf3}.mg-month>span{font-weight:750;color:#444c58}.mg-month>div{min-width:0}.mg-month .mg-track{margin:2px 0;height:12px}.mg-month small{display:block;margin:0 0 8px;color:#656e78}
.mg-kpi a:hover{text-decoration:underline}.mg-filter .btn{align-self:end}
@media(max-width:1040px){.mg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-banner{padding:22px}.mg-date{display:none}}
@media(max-width:600px){.mg-kpis{grid-template-columns:1fr}.mg-filter{display:block}.mg-filter>*{margin-bottom:10px}.mg-banner{padding:20px}.mg-month{grid-template-columns:60px 1fr}}
@media print{.mg-banner{color:#16364d;background:#fff;border:1px solid #d2dde4;padding:12px}.mg-banner p:not(.eyebrow){color:#333}.mg-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-kpi{padding:8px;border:1px solid #ddd;box-shadow:none}.mg-kpi strong{font-size:15px}.mg-kpi>a{display:none}.mg-fill{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* R4: operación múltiple por cliente/proveedor, accesos restaurados */
.mg-modules{margin-top:24px}.portfolio-filter .fields{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.portfolio-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:15px 0}
.portfolio-checks{max-height:720px;overflow:auto}.portfolio-checks table{min-width:930px}
.portfolio-checks input[type=checkbox]{width:18px;height:18px;accent-color:#b89129}
.portfolio-checks input[type=text]{max-width:148px;min-width:110px;padding:9px}
.portfolio-note{background:rgba(28,123,148,.08);padding:12px 15px;border-radius:12px;margin:15px 0}
.portfolio-summary{font-size:1.03rem;font-weight:650;padding:12px 0}.portfolio-statement-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media print{.portfolio-actions,.portfolio-filter,.noprint,.side,.top-user{display:none!important}.portfolio-checks{max-height:none;overflow:visible}}

.mg-quicklinks{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:11px 1px 18px;scrollbar-width:thin}
.mg-quicklinks a{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 14px;border:1px solid var(--line,#ced9de);border-radius:11px;background:var(--surface,#fff);text-decoration:none;color:inherit;font-weight:600;scroll-snap-align:start}
.mg-quicklinks .ico{width:19px;height:19px}.mg-quicklinks a:hover{transform:translateY(-2px);box-shadow:0 5px 15px #122d4a10}


/* R5 recibos y pagos multifactura */
.receipt-preview{margin:1.2rem 0;border:1px solid #dddfe4;background:#f9fafb;border-radius:14px;padding:1.05rem 1.15rem;color:#333940}
.receipt-preview h3{margin:0 0 .7rem;font-size:1.08rem;font-weight:750}
.receipt-preview-line{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;border-bottom:1px solid #e0e3e8;padding:.43rem 0}
.receipt-preview-line strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.receipt-preview-net{background:#f6eed6;border:1px solid #e7d6a4;border-radius:9px;padding:.8rem;margin-top:.45rem;font-weight:800}
.receipt-preview-net strong{font-size:1.2rem;color:#6b531e}
.receipt-preview-invalid{border-color:#d88b71}
.receipt-preview-invalid [data-preview-message]{color:#9a3412}
@media print{.receipt-preview{display:none!important}}

/* R6.3 · Eliminación de partidas en formularios sin alterar los documentos guardados. */
.journalrow,.journal-head{grid-template-columns:2fr 1.4fr .85fr .85fr 1.35fr auto}
.journalrow .line-remove{min-height:44px;padding:8px 11px;white-space:nowrap}
.line-remove{background:#fff4f2!important;border-color:#f2b5ad!important;color:#9d2c26!important;font-size:12px;min-height:38px;padding:7px 12px;white-space:nowrap}
.line-remove:hover:not(:disabled){background:#ffe8e4!important;box-shadow:none}
.line-remove:disabled{opacity:.4;cursor:not-allowed}
.purchase-line,.direct-check-line{position:relative}
.purchase-line .line-remove,.direct-check-line .line-remove{justify-self:start;align-self:end;margin:4px 0}
.direct-check-line{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}
.direct-check-line .field{flex:1;min-width:170px}
.fiscal-lines .line-remove,.billing-items .line-remove{min-width:72px}
@media(max-width:640px){.journalrow{grid-template-columns:1fr 1fr}.journalrow .line-remove{grid-column:1/-1;justify-self:end}}
@media print{.line-remove{display:none!important}}
/* R6.4: mantener ocultos los formularios de alta rápida hasta pulsar Crear. */
[data-direct-purchase] [hidden] {display:none!important}
[data-direct-purchase] table input {min-width:115px}
[data-direct-purchase] table [data-product-label] {min-width:260px}

/* R6.6: comprobante contable de cheque en filas, compacto y adaptable. */
.bank-voucher-scroll{overflow-x:auto;width:100%;}
.bank-voucher-table{width:100%;border-collapse:collapse;min-width:790px;}
.bank-voucher-table th,.bank-voucher-table td{padding:7px 5px;vertical-align:middle;border-bottom:1px solid var(--border,#e1e5e9);}
.bank-voucher-table input[type=number]{width:100%;min-width:95px;text-align:right;}
.bank-voucher-table select{max-width:100%;width:100%;min-width:155px;}
.bank-voucher-table td:first-child{min-width:230px;}
.bank-voucher-table td .field{margin:0;}
.bank-voucher-table td .field label{display:none;}
.bank-voucher-table tfoot{font-weight:700;}
@media(max-width:800px){.bank-voucher-scroll{margin:0;}.bank-voucher-table{min-width:720px;}}

/* R6.7: cuentas bancarias en primer plano */
.bank-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.bank-accounts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1rem;margin-top:1rem}
.bank-account-card{border:1px solid var(--line,#dce4eb);background:var(--surface,#fff);border-radius:16px;padding:1.1rem;box-shadow:0 2px 8px rgba(18,40,70,.05)}
.bank-account-meta{display:flex;flex-direction:column;gap:.3rem}.bank-account-label{font-weight:750}.bank-account-meta small{color:var(--muted,#687589)}
.bank-account-balance{font-size:clamp(1.45rem,2.5vw,2rem);font-weight:800;margin:.5rem 0;font-variant-numeric:tabular-nums}
.bank-totals{display:flex;flex-wrap:wrap;gap:.8rem}.bank-total-box{background:var(--soft,#f4f7fb);border:1px solid var(--line,#e2e8f0);padding:.9rem 1.15rem;border-radius:12px;display:flex;flex-direction:column;gap:.4rem;min-width:170px}
.bank-total-box strong{font-size:1.4rem;font-variant-numeric:tabular-nums}
.bank-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.6rem}.bank-actions-grid .btn{text-align:center;display:flex;align-items:center;justify-content:center;white-space:normal;min-height:45px}

/* CASTELLANO: identidad cromática corporativa homogénea en todos los módulos. */
:root{--navy:#24272c;--teal:#b4862b;--accent:#d6a72d}
.side{background:linear-gradient(170deg,#1f2328 0%,#30343a 100%)}
.nav-link.current,.nav-link.active{border-left-color:#d6a72d}
.login-overline{color:#9a761f}
.brand-logo img{width:100%;height:auto;max-height:94px;object-fit:contain}
.login-logo{background:#262b31;padding:6px}
.login-logo img{max-height:145px;object-fit:contain}

/* CASTELLANO R4.4 — acta de arqueo con todos los egresos identificables. */
.cash-expense-total{text-align:right;border-top:2px solid #d7d3c6;padding:10px 4px;font-variant-numeric:tabular-nums}
.cash-audit-document table{width:100%;border-collapse:collapse}
.cash-audit-document td{overflow-wrap:anywhere;vertical-align:top}
@media print{.cash-audit-document h3{break-after:avoid}.cash-audit-document thead{display:table-header-group}.cash-audit-document tr{break-inside:avoid}.cash-audit-document .cash-expense-total{break-inside:avoid}.cash-audit-document .voucher-note{break-inside:avoid}}
