/* ARCE CAJA — UI/UX 2.0 · Responsive financial workspace */
:root{color-scheme:light;--navy:#101d36;--navy-2:#14284c;--blue:#245bd9;--blue-light:#eaf0ff;--text:#17243a;--muted:#6f7c91;--line:#e6eaf1;--bg:#f6f8fc;--white:#fff;--green:#178669;--amber:#ae7316;--radius:20px;--shadow:0 12px 38px rgba(19,36,72,.045);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.hidden,[hidden]{display:none!important}
h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,3.1vw,34px);letter-spacing:-.055em;line-height:1.17;font-weight:810}h2{font-size:17px;letter-spacing:-.027em;margin-bottom:14px;font-weight:760}p{margin:8px 0 14px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #86acff;outline-offset:2px}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(17px,3vw,43px);background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:var(--text)}.brandmark{width:43px;height:43px;background:linear-gradient(145deg,#377cfc,#14336e);color:white;border-radius:14px;display:grid;place-items:center;font-weight:900;font-size:24px;box-shadow:0 5px 14px #245bd927;flex-shrink:0}.brand span:last-child{display:flex;flex-direction:column}.brand b{font-size:17px;letter-spacing:-.035em}.brand small{font-size:11px;color:var(--muted)}.user-area{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:12px}.user-area a{font-weight:750;color:#344867}.top-actions{display:flex;align-items:center;gap:12px}.top-date{border:1px solid #e8edf4;border-radius:10px;padding:8px 12px;font-size:12px;color:#6c7c91;font-weight:650;background:#fbfcfe}.user-avatar{height:35px;width:35px;background:#eef2fb;border:1px solid #e3e9f5;display:grid;place-items:center;border-radius:50%;font-weight:800;color:#2858ad}
.app-layout{display:flex;min-height:calc(100vh - 76px)}.sidebar{width:248px;flex-shrink:0;background:var(--navy);padding:25px 13px 21px;position:sticky;top:76px;height:calc(100vh - 76px);display:flex;flex-direction:column;gap:4px;overflow-y:auto}.aside-caption{font-size:10px;letter-spacing:.15em;font-weight:850;color:#8396b9;margin:17px 13px 9px}.aside-caption:first-child{margin-top:7px}.nav-item{display:flex;gap:13px;align-items:center;min-height:44px;padding:10px 13px;border-radius:11px;font-weight:630;color:#b8c7df;transition:.18s;background:transparent;font-size:13px;position:relative}.nav-item:hover{background:#203456;color:white}.nav-item.active{background:#315caa;color:white;box-shadow:inset 0 0 0 1px #ffffff15}.nav-item.active::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;background:#a9c9ff;border-radius:3px}.nav-ico{display:grid;place-items:center;line-height:1;width:22px;height:22px;flex-shrink:0}.nav-ico svg{width:19px;height:19px;stroke-width:1.9}.aside-foot{margin-top:auto;border-radius:13px;padding:16px 14px;color:#c2d1e6;font-size:11px;line-height:1.65;background:#203353;border:1px solid #324766}.aside-foot b{color:white}.sidebar-indicator{display:flex;align-items:center;gap:7px;color:#afdcce;margin-bottom:8px;font-size:10px;font-weight:750;letter-spacing:.03em}.live-dot{width:7px;height:7px;background:#40d6a8;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #40d6a81a}
.content{flex:1;min-width:0;max-width:1500px;margin:0 auto;padding:28px clamp(17px,3.2vw,49px) 110px;width:100%}.page-head{margin-bottom:22px;display:flex;align-items:start;justify-content:space-between;gap:13px}.page-head p{color:var(--muted);max-width:780px;font-size:13px;line-height:1.65}.eyebrow{font-size:10px;letter-spacing:.13em;color:#778baf;font-weight:850;text-transform:uppercase;margin-bottom:7px}.page-chip{background:white;border:1px solid var(--line);color:#60718a;font-size:11px;padding:8px 11px;border-radius:99px;font-weight:760;white-space:nowrap}
/* Dashboard */
.cash-hero{border-radius:24px;background:linear-gradient(117deg,#101f3b 0%,#173b77 61%,#285fc9 100%);box-shadow:0 18px 38px #173b7730;color:white;position:relative;overflow:hidden;padding:26px clamp(22px,3vw,36px);display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;isolation:isolate;margin:7px 0 20px;min-height:194px}.cash-hero::before,.cash-hero::after{content:"";position:absolute;z-index:-1;border:1px solid #ffffff24;border-radius:50%;aspect-ratio:1}.cash-hero::before{width:360px;right:-100px;top:-185px;box-shadow:0 0 0 70px #ffffff09,0 0 0 130px #ffffff04}.cash-hero::after{width:140px;right:180px;bottom:-120px;box-shadow:0 0 0 38px #ffffff05}.hero-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.09em;font-weight:800;text-transform:uppercase;color:#b5cef7}.hero-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#66edc6;box-shadow:0 0 0 4px #66edc622}.hero-value{font-size:clamp(35px,4.1vw,58px);letter-spacing:-.066em;line-height:1.2;margin:9px 0 7px;font-weight:860;font-variant-numeric:tabular-nums}.hero-detail{color:#c7d9f6;font-size:12px}.hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:171px}.btn.hero-button{background:#fff;border-color:white;color:#1743a0;font-weight:800}.btn.hero-ghost{background:#ffffff14;border-color:#ffffff50;color:white}.btn.hero-ghost:hover{background:#ffffff25}.hero-side-note{font-size:10px;color:#d4e2f8;text-align:center;margin-top:2px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 21px}.stat{display:flex;flex-direction:column;gap:8px;background:white;border:1px solid var(--line);border-radius:17px;padding:17px 17px 15px;min-height:137px;box-shadow:var(--shadow);position:relative;min-width:0}.stat::before{content:"↗";position:absolute;right:17px;top:14px;width:28px;height:28px;background:#f0f3f8;color:#647792;display:grid;place-items:center;border-radius:9px;font-size:17px}.stat.blue::before{content:"＋";background:#e9efff;color:#285bcd}.stat.amber::before{content:"◷";background:#fff1d6;color:#b37a16}.stat-label{font-weight:650;font-size:11px;color:#758298;max-width:calc(100% - 27px);line-height:1.45}.stat strong{font-size:clamp(20px,2.05vw,28px);font-weight:835;letter-spacing:-.05em;white-space:nowrap;margin-top:11px;font-variant-numeric:tabular-nums}.stat small{color:#8793a5;font-size:10px;line-height:1.45}.stat.blue{background:#fff}.stat.amber{background:#fff9ee;border-color:#f2e2c8}.stat.amber strong{color:#a56a08}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0 24px}.quick-action{display:flex;align-items:center;gap:11px;padding:15px 14px;border-radius:14px;border:1px solid var(--line);background:white;color:var(--text);font-weight:720;min-width:0;box-shadow:var(--shadow);font-size:12px}.quick-action:hover{border-color:#a6bcf2;background:#fafcff}.quick-action .action-icon{width:34px;height:34px;border-radius:10px;background:#ebf1ff;display:grid;place-items:center;color:#2e60cd;font-size:20px;flex-shrink:0}.quick-action:nth-child(2) .action-icon{background:#e4f7ef;color:#16866a}.quick-action:nth-child(3) .action-icon{background:#fff3e4;color:#b17720}.quick-action:nth-child(4) .action-icon{background:#f1eafe;color:#784cc8}.quick-action small{font-size:10px;color:#92a0af;display:block;font-weight:500;margin-top:2px}.quick-action .action-copy{min-width:0}
.split-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:17px;margin:18px 0}.panel{background:#fff;border:1px solid var(--line);border-radius:19px;padding:23px;margin:18px 0;box-shadow:var(--shadow);min-width:0}.split-grid .panel{margin:0}.panel h2{margin-bottom:13px}.panel-subtitle{font-size:11px;color:#91a0b2;margin:-5px 0 11px}.metricline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:14px 0;gap:12px;font-size:12px}.metricline:last-child{border:0}.metricline b{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}.actionbar{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.btn{background:#fff;color:#30466b;border:1px solid #dbe2ec;display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:10px 16px;border-radius:11px;font-weight:750;text-align:center;transition:background .15s,border-color .15s,transform .15s;gap:7px}.btn:hover{background:#f4f7fd;border-color:#afc4e5}.btn:active,.quick-action:active{transform:scale(.985)}.btn.primary{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 4px 12px #245bd92b}.btn.primary:hover{background:#1748b4}.btn.subtle{background:#eef3ff;border-color:#d9e6ff;color:#1f55bb}
.listrow{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #edf0f5;padding:13px 0;color:var(--text);font-size:12px}.listrow:hover{background:#fbfcff}.listrow:last-child{border:0}.listrow span{display:flex;flex-direction:column;gap:3px}.listrow small,.muted,.hint{color:var(--muted)}.listrow strong{white-space:nowrap;font-variant-numeric:tabular-nums}.listrow b{font-weight:750}.listrow small{font-size:10px}.listrow b:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#59b79b;margin-right:7px}
.form-panel{max-width:860px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid label{font-weight:670;font-size:12px;display:flex;flex-direction:column;gap:7px;min-width:0;color:#4b5d77}.form-grid label.wide,.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea,.inline-form input,textarea{width:100%;border:1px solid #dce3ed;padding:13px 14px;background:#fcfdff;border-radius:11px;outline:none;color:var(--text);font-size:14px;min-height:46px}.form-grid input:hover,.form-grid select:hover{border-color:#bdcbe2}input:focus,select:focus,textarea:focus{border-color:#356feb;box-shadow:0 0 0 3px #2c6aec1a;background:white}.form-grid button.wide{margin-top:5px;min-height:49px}.summary-input{border:1px solid #cddcf8;background:#f3f7ff;padding:18px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.summary-input div{font-weight:750;font-size:15px}.summary-input b{color:#245bd9;font-size:20px}.summary-input span{font-size:11px;color:#637da7}.summary-input span b{font-size:inherit}.inline-form{display:flex;gap:10px}.inline-form input{flex:1;min-width:0}.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:12px}.person{display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--text);gap:3px;box-shadow:var(--shadow);transition:.16s}.person:hover{border-color:#90adeb;transform:translateY(-2px);box-shadow:0 14px 30px #16395c12}.avatar{background:linear-gradient(135deg,#e9f0ff,#dceaff);color:#2056ba;border-radius:12px;width:42px;height:42px;font-weight:800;display:grid;place-items:center;font-size:19px;margin-bottom:8px}.person small{color:var(--muted);font-size:11px}.person-metrics{display:flex;gap:9px;justify-content:space-between;width:100%;border-top:1px solid var(--line);margin-top:13px;padding-top:13px;font-size:10px;color:var(--muted)}.person-metrics strong{font-size:13px;color:var(--text)}
.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th,td{padding:14px 12px;border-bottom:1px solid #edf0f5}th{color:#8995a8;font-weight:800;font-size:11px;background:#fbfcff}td{font-size:12px}tbody tr:hover{background:#fafcff}tr:last-child td{border-bottom:0}tr.sum td{background:#eff4fd;font-weight:800}.tag{font-weight:760;font-size:10px;border-radius:99px;display:inline-flex;padding:4px 8px}.tag.ok{background:#e7f6ed;color:#19785a}.tag.wait{background:#fff1d9;color:#9d6510}.periods{display:flex;align-items:center;gap:7px;margin-bottom:19px;flex-wrap:wrap}.chip{border:1px solid #e2e7ef;border-radius:10px;padding:8px 13px;color:#75829a;font-size:12px;font-weight:735;background:white}.chip:hover{border-color:#bdcbe4}.chip.selected{background:#213b6c;border-color:#213b6c;color:white}.highlight-balance{display:flex;flex-direction:column;gap:8px;background:linear-gradient(120deg,#102343,#1b4c98);border-radius:22px;padding:28px;color:white;max-width:860px;position:relative;overflow:hidden}.highlight-balance::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;border:1px solid #ffffff28;right:-70px;top:-90px;box-shadow:0 0 0 53px #ffffff08}.highlight-balance span{font-size:11px;font-weight:800;letter-spacing:.1em;opacity:.8}.highlight-balance strong{font-size:clamp(32px,6vw,50px);letter-spacing:-.06em}.highlight-balance small{opacity:.85}.notice{border-radius:11px;padding:13px 16px;margin-bottom:20px;background:#e7f8ef;color:#226846;border:1px solid #cfe9d9}.notice.error{background:#fff0f0;color:#a33535;border-color:#f3d5d5}.smallnotice{border:1px solid #e5eaf2;color:#78849b;background:#f8fafd;border-radius:11px;padding:12px 14px;font-size:11px;margin:17px 0}.footer-notice{margin-top:34px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.section-head h2{margin-bottom:0}.voicebox{display:flex;flex-direction:column;align-items:flex-start;gap:13px}.voicebox textarea{min-height:125px;resize:vertical}.voicebox .notice{margin:0;width:100%}.voicebox .hint{max-width:100%}
.auth-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:radial-gradient(ellipse at 15% 7%,#d7e5fd 0%,#f5f8ff 54%,#f2f4f8 100%)}.auth-card{max-width:485px;width:100%;background:white;border:1px solid var(--line);box-shadow:0 20px 60px #123c7e17;padding:clamp(24px,5vw,42px);border-radius:23px}.auth-card .brandmark{margin-bottom:23px}.auth-card p{color:var(--muted);margin:11px 0 23px}.auth-card .form-grid{margin-bottom:15px}.auth-card .hint{display:block;font-size:11px}.printpage{background:#edf0f4;padding:30px}.printcard{max-width:810px;margin:auto;background:white;padding:45px;box-shadow:0 5px 32px #19325519;border-radius:12px}.receipt-logo{display:flex;align-items:center;gap:12px;margin-bottom:23px}.receipt-logo span:last-child{display:flex;flex-direction:column}.receipt-logo b{font-size:24px}.receipt-logo small{font-size:10px;color:var(--muted);letter-spacing:.08em}.printcard h1{font-size:23px;margin:18px 0}.printcard table{margin:22px 0}.signature{display:flex;justify-content:space-between;gap:35px;margin:85px 0 30px}.signature span{border-top:1px solid #93a2b7;flex:1;padding-top:8px;color:var(--muted);font-size:12px}.mobile-nav{display:none}
@media(max-width:1250px){.sidebar{width:214px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1020px){.split-grid{grid-template-columns:1fr}.content{padding-left:22px;padding-right:22px}}
@media(max-width:750px){.topbar{height:67px;padding:0 15px}.brandmark{width:37px;height:37px;font-size:22px}.brand b{font-size:16px}.brand small{font-size:10px}.user-area span,.top-date,.top-actions>.btn{display:none}.sidebar{display:none}.content{padding:20px 14px 112px}.page-head{margin-bottom:17px}.page-chip{display:none}.cash-hero{padding:22px;grid-template-columns:1fr;gap:19px;min-height:unset;border-radius:20px}.hero-value{font-size:clamp(36px,9vw,48px)}.hero-actions{flex-direction:row;min-width:0}.hero-actions .btn{flex:1;padding:9px 8px;font-size:12px}.hero-side-note{display:none}.stat-grid{gap:10px}.stat{min-height:118px;padding:14px}.stat strong{font-size:clamp(19px,5vw,24px)}.stat-label{font-size:10px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-action{padding:11px;gap:8px}.quick-action .action-icon{height:30px;width:30px}.quick-action small{display:none}.panel{padding:17px}.form-grid{grid-template-columns:1fr}.form-grid label.wide,.form-grid .wide{grid-column:auto}.summary-input{align-items:flex-start}.mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;background:white;z-index:20;border-top:1px solid #e8edf5;box-shadow:0 -6px 24px #163c720f;justify-content:space-around;padding:9px 6px calc(10px + env(safe-area-inset-bottom))}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#8491a4;font-size:20px;line-height:1.2;min-width:50px}.mobile-nav a.current{color:#245bd9}.mobile-nav a small{font-size:10px;font-weight:760}.mobile-nav .nav-ico{height:24px;width:24px}.mobile-nav .nav-ico svg{height:22px;width:22px}.inline-form{flex-direction:column}.printpage{padding:8px}.printcard{padding:20px}.signature{gap:20px}}
@media(max-width:400px){.quick-action{font-size:11px}.stat strong{font-size:19px}.stat{padding:12px}.hero-value{font-size:36px}.content{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.topbar,.sidebar,.mobile-nav,.no-print{display:none!important}.printpage{padding:0;background:white}.printcard{margin:0;padding:0;max-width:none;box-shadow:none;border-radius:0}body{background:white}}

/* v1.2: user profile, easy-to-find access on desktop and iPhone */
.profile-link{display:flex;flex-direction:column;justify-content:center;color:#334968;text-align:right;line-height:1.25;font-size:12px;font-weight:760;max-width:170px;overflow:hidden}
.profile-link small{font-size:10px;font-weight:500;color:#8293aa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-link:hover{color:#245bd9}
a.user-avatar:hover{background:#dce8ff;color:#174ab5}
.profile-panel{margin-top:12px}
.profile-intro{display:flex;align-items:center;gap:16px;padding-bottom:19px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.profile-intro h2{margin:0 0 5px;font-size:19px}
.profile-intro p{margin:0}
.profile-icon{width:57px;height:57px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(130deg,#2468e6,#102a62);color:#fff;font-size:26px;font-weight:850;box-shadow:0 6px 15px #245bd92c}
.form-grid label .hint{font-weight:450;font-size:11px;line-height:1.4}
@media(max-width:750px){.topbar .profile-link{display:flex;max-width:95px;min-width:55px}.user-area{gap:7px}.user-area .user-avatar{display:none}.topbar .profile-link span{font-size:11px;display:block}.topbar .profile-link small{font-size:9px}}

/* ARCE CAJA v1.3 · Recaudos por medio de pago, comparativos y exportaciones */
.section-compare-title{margin:22px 0 13px}.section-compare-title h2{margin:0}
.period-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.period-tile{display:flex;flex-direction:column;gap:7px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:17px 18px;color:var(--text);box-shadow:var(--shadow);min-width:0;transition:box-shadow .2s,transform .2s,border-color .2s}
.period-tile:hover{border-color:#9fbafa;box-shadow:0 14px 30px #16395c12;transform:translateY(-2px)}
.period-tile-title{display:flex;justify-content:space-between;color:var(--muted);font-weight:750;font-size:12px}
.period-tile>strong{font-size:clamp(21px,2.3vw,27px);line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.period-tile>small{font-size:11px;color:var(--muted)}
.trend{display:inline-flex;gap:4px;max-width:100%;white-space:normal;align-items:center;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:750;line-height:1.45}
.trend.up{background:#e6f5ee;color:#107954}.trend.down{background:#fff0ed;color:#b94940}.trend.flat{background:#eef1f5;color:#6d7890}
.compare-panel{margin:12px 0 19px}.compare-panel .section-head{align-items:flex-start}.compare-panel .section-head h2{margin-bottom:2px}
.compare-panel .panel-subtitle{margin:0;color:var(--muted)}.comparison-bars{display:grid;gap:16px;margin:18px 0 15px}
.compare-descriptor{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-bottom:8px}
.compare-descriptor strong{font-variant-numeric:tabular-nums}.compare-descriptor span{color:#5e6e87}
.compare-track{height:13px;background:#edf2f9;border-radius:10px;overflow:hidden}.compare-bar{display:block;height:100%;border-radius:10px;min-width:0}.compare-bar.now{background:linear-gradient(90deg,#235ee2,#6b9ff5)}.compare-bar.before{background:#a5b3c9}
.report-method,.report-help{font-size:11px;color:#6e7d91;line-height:1.7}
.report-help{padding:16px 18px;margin:18px 0;border:1px solid #d6e4fa;background:#f4f8ff;border-radius:13px}
.export-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:15px 17px;border-radius:15px;margin:13px 0 18px;box-shadow:var(--shadow)}
.export-toolbar>div:first-child{display:flex;flex-direction:column;gap:3px}.export-toolbar b{font-size:13px}.export-toolbar small{font-size:10px;color:var(--muted)}
.export-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.export-buttons .btn{font-size:11px;min-height:35px;padding:7px 11px}
.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:750px;margin-top:12px}.pending-top{margin-bottom:17px;max-width:100%}.pending-amount{color:#a5690a}
.form-header{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:14px}.form-header h2{margin-bottom:3px}
.money-method{border-radius:14px;padding:15px;border:1px solid #d5e2f5;background:#f5f9ff;gap:9px!important}
.money-method input{background:white}.money-method small{color:#64768e;font-weight:450;font-size:11px;line-height:1.5}
.money-method.cash-method{border-color:#efdfbd;background:#fffbf1}.money-method.transfer-method{border-color:#cfe5df;background:#f3fbf8}
.method-name{font-size:11px;font-weight:850;color:#28446d;letter-spacing:.01em;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.money-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.break-item{min-width:0;background:#fff;border:1px solid #e1e8f2;padding:14px 13px;border-radius:13px;display:flex;flex-direction:column;gap:6px}
.break-item>span{font-size:11px;color:#5b6b82;font-weight:750}.break-item>strong{font-size:clamp(18px,2.4vw,25px);letter-spacing:-.045em;color:var(--text);font-variant-numeric:tabular-nums}
.break-item>small{color:#8795a8;font-size:10px;line-height:1.45}.break-item.combined{background:#eaf1ff;border:1px solid #bdd3ff}.break-item.combined>span,.break-item.combined>strong{color:#1c54c1}
@media(max-width:1050px){.period-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.money-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.break-item.combined{grid-column:1/-1}}
@media(max-width:750px){.period-tiles{grid-template-columns:1fr;gap:9px}.period-tile{padding:14px 15px}.period-tile>strong{font-size:24px}.compare-panel .section-head{align-items:flex-start}.compare-panel .trend{margin-top:5px}.export-toolbar{align-items:stretch}.export-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}.export-buttons .btn:last-child{grid-column:1/-1}.money-breakdown{grid-template-columns:1fr}.break-item.combined{grid-column:auto}.form-header{align-items:flex-start}.method-name{align-items:flex-start}.compare-descriptor{align-items:flex-start}}
.ledger-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:8px 0 12px}
.ledger-line{background:#f5f7fb;border:1px solid #edf0f4;border-radius:11px;padding:12px;min-width:0;display:flex;flex-direction:column;gap:7px}
.ledger-line span{font-size:10px;color:#6f7f95;font-weight:700}.ledger-line strong{font-size:clamp(14px,1.6vw,19px);font-variant-numeric:tabular-nums;letter-spacing:-.03em;white-space:normal;overflow-wrap:anywhere}
.ledger-line:last-child{background:#eaf1ff;border-color:#d3e3ff;color:#1555c0}
@media(max-width:1100px){.ledger-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.ledger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ARCE CAJA v1.4 — cartera clara, abonos de un toque, comprobantes dentro del panel */
.last-doc{margin-top:10px}.last-doc .btn{min-height:35px;padding:7px 12px;font-size:12px}
.cash-vs-credit{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0 18px}
.cash-vs-credit>div{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border-radius:14px;padding:16px;border:1px solid #dfebf8;background:#f7fbff}
.cash-vs-credit>div+div{border-color:#f0dfb9;background:#fffaf0}
.cash-vs-credit b{font-size:12px;color:#1d3c69}.cash-vs-credit span{font-size:11px;color:#667791}.cash-vs-credit .btn{font-size:11px;min-height:35px}
.debt-banner{border:1px solid #efd5a4;border-radius:17px;background:linear-gradient(110deg,#fff9ed,#fff2d8);padding:20px 24px;display:flex;flex-direction:column;gap:5px;margin:15px 0 18px;color:#7a521b}
.debt-banner span{font-size:10px;letter-spacing:.065em;font-weight:850}.debt-banner strong{font-size:clamp(28px,3.3vw,40px);letter-spacing:-.05em;font-variant-numeric:tabular-nums;line-height:1.2}
.debt-banner small{font-size:11px;color:#977444}.debt-overview{background:linear-gradient(110deg,#11274a,#2454a6);border-color:#234b88;color:#fff}.debt-overview small{color:#d7e5ff}
.debtor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.debtor-item{display:flex;justify-content:space-between;gap:10px;padding:12px 13px;border-radius:11px;background:#f7f9fd;border:1px solid #e9edf4;align-items:center}.debtor-item span{display:flex;flex-direction:column;gap:4px;min-width:0}.debtor-item b{font-size:12px}.debtor-item small{color:var(--muted);font-size:10px}.debtor-item strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.full-payment-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 20px}.full-payment-actions .btn{font-size:12px}
.payment-check{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.payment-check>div{padding:13px;background:#f2f6fd;border:1px solid #dce8f9;border-radius:11px;display:flex;flex-direction:column;gap:5px}.payment-check span{font-size:10px;color:#6d7d94}.payment-check strong{font-size:18px;letter-spacing:-.04em}.payment-mismatch .payment-check{outline:1px solid #f1d3a6;border-radius:12px}
.btn-mini{min-height:30px;padding:6px 10px;font-size:11px;white-space:nowrap}
.document-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 15px}.document-toolbar h1{font-size:26px}.document-toolbar p{margin:5px 0}.document-toolbar .actionbar{margin:0}
.document-page{background:#eaf0f8;padding:20px;border-radius:19px;border:1px solid #dae4f1;max-width:100%}
.document-page .printcard{box-shadow:0 10px 28px #1a39631a;border-radius:9px;padding:35px;max-width:850px}
.document-page .printcard table{width:100%}.voice-steps{margin:10px 0 15px;padding-left:23px;display:grid;gap:9px;font-size:12px;color:#546780;line-height:1.65}
@media(max-width:750px){.cash-vs-credit{grid-template-columns:1fr}.debt-banner{padding:19px}.debtor-grid{grid-template-columns:1fr}.payment-check{grid-template-columns:1fr}.document-toolbar{flex-direction:column;align-items:stretch}.document-toolbar .actionbar{flex-wrap:wrap}.document-page{padding:8px}.document-page .printcard{padding:17px}.document-page .printcard h1{font-size:20px}.document-page .printcard .signature{margin-top:45px}}
@media print{
 @page{size:auto;margin:12mm}
 body:has(.document-screen){background:white!important}
 body:has(.document-screen) .topbar,body:has(.document-screen) .sidebar,body:has(.document-screen) .mobile-nav,body:has(.document-screen) .document-toolbar,body:has(.document-screen) .footer-notice,body:has(.document-screen) .content>.notice{display:none!important}
 body:has(.document-screen) .app-layout{display:block;min-height:0}
 body:has(.document-screen) .content{padding:0!important;width:100%;max-width:100%;margin:0}
 body:has(.document-screen) .document-page{padding:0;border:0;background:white}
 body:has(.document-screen) .printcard{padding:0!important;box-shadow:none!important;max-width:none;border-radius:0}
}

/* ARCE CAJA v1.5: cartera asignada a personas y método de pago Otros */
.person-debt{border-top:1px solid #e4ebf3;margin-top:12px;padding-top:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#66758a}
.person-debt strong{color:#b56a16;font-size:14px}
.info-strip{background:#f0f5ff;color:#3b547d;border:1px solid #dbe7fc;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.6}
.debtor-item a{color:#1854bc;text-decoration:none;font-weight:750}
.debtor-item a:hover{text-decoration:underline}
.full-payment-actions{flex-wrap:wrap}
@media (max-width:640px){.person-debt{align-items:flex-start;flex-direction:column}.full-payment-actions>.btn{flex:1 1 100%}}

/* v1.6 - buscador y paginación de recibos, abonos y salidas */
.history-panel{scroll-margin-top:90px}
.history-panel .section-head{margin-bottom:16px}
.history-subtitle{font-size:12px;line-height:1.55;margin:6px 0 0}
.history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:15px 0 19px;padding:15px;border:1px solid #e0e8f4;background:#f6f9ff;border-radius:14px;align-items:end}
.history-filters label{display:flex;flex-direction:column;gap:5px;font-weight:750;color:#476080;font-size:11px;min-width:0}
.history-filters input,.history-filters select{width:100%;height:40px;border:1px solid #d9e3f2;border-radius:9px;background:#fff;padding:8px 9px;color:#17243a;font-size:12px;min-width:0}
.history-filter-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.history-filter-actions .btn{min-height:40px;padding:8px 11px;font-size:11px}
.history-table th{font-size:10px;white-space:normal;line-height:1.45}
.history-table td{font-size:11px;white-space:normal;vertical-align:middle}
.history-code{font-weight:750;white-space:nowrap}
.history-doc-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:155px}
.history-doc-actions .btn{white-space:normal;text-align:center}
.history-empty{color:#71829b;font-size:12px!important;padding:22px 15px!important}
.history-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px;font-size:11px;color:#75849a}
.history-page-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.history-page-links .btn{min-width:31px;min-height:32px;padding:6px 9px;font-size:11px}
.history-page-links a[aria-current="page"]{pointer-events:none}
.history-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}
.history-overview>div{display:flex;flex-direction:column;gap:7px;padding:15px;background:#fff;border:1px solid #e3eaf4;border-radius:13px}
.history-overview span{font-size:11px;color:#6d7f98;font-weight:700}
.history-overview strong{font-size:22px;color:#163d7d;font-variant-numeric:tabular-nums;letter-spacing:-.04em;overflow-wrap:anywhere}
@media(max-width:1100px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){
 .history-panel{scroll-margin-top:74px}
 .history-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px}
 .history-filter-actions{grid-column:1/-1}
 .history-filters .history-filter-actions .btn{flex:1}
 .history-overview{grid-template-columns:1fr}
 .history-overview>div{padding:11px 14px;flex-direction:row;align-items:center;justify-content:space-between}
 .history-overview strong{font-size:18px}
 .history-table{width:100%;white-space:normal}
 .history-table thead{display:none}
 .history-table tbody{display:grid;gap:11px}
 .history-table tbody tr{display:block;border:1px solid #e3e9f3;border-radius:13px;padding:10px 12px;background:#fff}
 .history-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border:0;border-bottom:1px solid #edf1f6;font-size:12px;overflow-wrap:anywhere;text-align:right}
 .history-table tbody td:last-child{border:0}
 .history-table tbody td::before{content:attr(data-label);font-size:10px;font-weight:770;color:#7d8a9d;text-align:left;min-width:92px;flex-shrink:0}
 .history-table tbody td.history-empty{display:block!important;text-align:left}
 .history-table tbody td.history-empty::before{content:none}
 .history-doc-actions{justify-content:flex-end;min-width:0;flex-wrap:wrap}
 .history-pagination{flex-direction:column;align-items:stretch;gap:8px}
 .history-page-links{justify-content:center}
}
@media(max-width:400px){.history-filters{grid-template-columns:1fr}.history-filter-actions{grid-column:auto}}

/* v1.7: valor no monetario de envases claramente diferenciado */
.money-breakdown .break-item:not(.combined){min-width:0}
.money-method input[name="envases"],label input[name="envases"]{border-color:#c5d6c0;background:#fbfefa}
[data-payment-form] .payment-check{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:620px){[data-payment-form] .payment-check{grid-template-columns:1fr}}

/* ARCE CAJA v1.9 - Químicos: interfaz y libro completamente separados */
.chem-notice{background:#eff7ff;border:1px solid #cde1fb;border-radius:12px;padding:14px 16px;color:#264a76;font-size:12px;line-height:1.6;margin-bottom:15px}
.chem-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:19px}
.chem-tabs .btn{min-width:100px}
.chem-hero{border-radius:18px;padding:25px 28px;margin-bottom:18px;background:linear-gradient(130deg,#153764,#116cb0);color:white;box-shadow:0 12px 25px #173c6a19}
.chem-hero>span{font-size:11px;font-weight:800;letter-spacing:1.3px;opacity:.78}
.chem-hero>strong{display:block;font-size:38px;font-weight:850;letter-spacing:-1.3px;line-height:1.4;font-variant-numeric:tabular-nums}
.chem-hero>p{color:#d9ecff;font-size:12px;margin:0 0 18px}
.chem-hero .btn.primary{background:white;color:#17437c;border-color:white}
.chem-hero .btn.subtle{color:white;border-color:#abcbe3;background:#ffffff18}
.chem-shortcut{margin:14px 0 17px;background:#f1f8ff;border:1px solid #cde4fa;padding:14px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:14px}
.chem-shortcut b{display:block;font-size:13px;color:#193b67}
.chem-shortcut small{display:block;font-size:11px;color:#6c829d;margin-top:4px}
@media(max-width:680px){.chem-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chem-tabs .btn{min-width:0}.chem-hero{padding:19px}.chem-hero>strong{font-size:31px}.chem-shortcut{align-items:stretch;flex-direction:column}.chem-shortcut .btn{width:100%;text-align:center}}
