:root{--navy:#092845;--deep:#061c30;--teal:#00998f;--teal-dark:#007d76;--ink:#102b46;--soft:#6a7d8d;--line:#dfebf2;--bg:#f0f5f9;--card:#fff;--amber:#d48a21}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;min-height:100%;-webkit-tap-highlight-color:transparent}.app-shell{max-width:1000px;margin:0 auto;min-height:100vh}.topbar{background:linear-gradient(140deg,#061b31 1%,#0a2c49 56%,#165172 130%);color:#fff;padding:calc(env(safe-area-inset-top) + 20px) 20px 28px;border-radius:0 0 28px 28px;box-shadow:0 10px 25px #0c2b4330}.topline{display:flex;gap:11px;align-items:center}.brand-badge{width:42px;height:42px;display:grid;place-items:center;color:white;font-weight:800;letter-spacing:-1px;border:1px solid #ffffff44;background:#ffffff1b;border-radius:13px}.brand-title{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2}.brand-title strong{font-size:17px}.brand-title small{color:#bcd4df;font-size:11px;margin-top:5px}.icon-button{border:1px solid #ffffff33;color:#fff;background:#ffffff17;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;cursor:pointer}.icon-button svg,.bottom-nav svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.hero-label{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#a0cec9;margin:28px 0 8px}.hero-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#21bfaf;margin:0 7px;vertical-align:middle}h1{font-size:29px;letter-spacing:-.8px;line-height:1.15;margin:0}.hero-sub{color:#c2d6e1;font-size:13px;margin:10px 0 0}main{padding:16px 15px calc(110px + env(safe-area-inset-bottom));max-width:850px;margin:0 auto}.banner{padding:12px 14px;background:#e3f0f8;border-radius:12px;color:#35516a;margin:3px 0 16px;font-size:13px;border:1px solid #ccdfed}.banner.ok{display:none}.banner.error{background:#fff1ee;color:#a4432c;border-color:#ffd6ca}.screen{display:none;animation:fade .16s ease-in}.screen.active{display:block}@keyframes fade{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:21px 1px 11px}.section-heading h2{font-size:17px;letter-spacing:-.3px;margin:0}.section-heading .muted{font-size:11px}.muted{color:var(--soft)}.section-heading input{max-width:150px;font-size:13px;padding:8px;min-height:auto;border-radius:10px;background:#fff}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.stat{position:relative;background:#fff;padding:17px;border-radius:17px;border:1px solid #e5edf2;box-shadow:0 5px 15px #0b31500a;overflow:hidden}.stat>span{display:block;color:#5f7489;font-size:12px;font-weight:650}.stat strong{display:block;font-size:33px;letter-spacing:-1.4px;color:#0c3555;margin:5px 0 0}.stat small{font-size:11px;color:#8295a5}.stat.full{grid-column:1/-1;background:linear-gradient(105deg,#0c394f,#0a5965);border:none;color:#fff;padding:20px}.stat.full strong{color:white;font-size:30px}.stat.full>span,.stat.full small{color:#cee5e9}.stat-decor{position:absolute;right:-38px;top:-43px;width:180px;height:180px;border:29px solid #ffffff0a;border-radius:50%}.floor-cards{display:grid;gap:10px}.floor-card{width:100%;border:1px solid #e2eaf1;border-radius:16px;background:#fff;padding:16px;display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer;color:var(--ink);box-shadow:0 4px 12px #0b315008}.floor-icon{background:#e9f2f6;color:#184765;display:grid;place-items:center;border-radius:13px;width:43px;height:43px;flex-shrink:0;font-weight:800;font-size:17px}.floor-main{flex:1;min-width:0}.floor-main strong{display:block;font-size:15px}.floor-main small{display:block;font-size:12px;color:#7a8b98;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{font-size:11px;font-weight:750;padding:7px 10px;border-radius:50px;white-space:nowrap}.status.paid{background:#def6ec;color:#078269}.status.pending{background:#fff1df;color:#a56918}.history-list{display:grid;gap:10px}.history-item{background:#fff;border:1px solid #e4edf3;border-radius:14px;padding:14px 15px}.history-head{display:flex;gap:10px;justify-content:space-between;align-items:center}.history-head strong{font-size:14px}.history-head small{color:#007e79;font-weight:800}.history-sub{font-size:12px;color:#6c8393;margin:6px 0 10px}.history-buttons{display:flex;gap:8px}.history-buttons button{flex:1;background:#e9f5f4;color:#006f6d;border:0;border-radius:10px;font-size:12px;font-weight:800;padding:10px 8px}.history-buttons button:last-child{background:#f0f3f7;color:#506478}.empty{padding:24px 15px;text-align:center;border:1px dashed #cbdce5;color:#7d8e9b;border-radius:14px;background:#ffffff8f;font-size:13px}.panel{background:#fff;border:1px solid #e2ebf2;border-radius:19px;padding:20px 17px;box-shadow:0 6px 20px #0b31500b}.panel-heading{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:14px}.panel-heading h2{font-size:18px;margin:0}.panel-heading p{font-size:12px;color:#7e8b99;margin:4px 0 0}.panel-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;font-size:24px;background:#e1f4f1;color:#007e79}.panel-icon.doc{font-size:24px}label{display:block;margin:15px 0 6px;color:#284963;font-size:12px;font-weight:800}input,select{display:block;width:100%;min-width:0;height:45px;border:1px solid #cfdee9;border-radius:10px;padding:10px 12px;font:14px system-ui,-apple-system,sans-serif;background:#fff;color:#13314a;outline-offset:2px}input:focus,select:focus{outline:2px solid #6ccac3;border-color:#008f88}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.payment-preview,.payer-preview{background:#f3f8fb;border-radius:11px;margin-top:10px;padding:11px 13px;color:#52718a;font-size:12px;line-height:1.7}.payment-preview b{color:#0c3e58}.payer-preview{background:#f3fbf9;color:#21695f}.primary-btn,.secondary-btn{width:100%;border:0;border-radius:12px;min-height:45px;padding:12px 15px;font:800 14px system-ui,-apple-system,sans-serif;cursor:pointer}.primary-btn{background:linear-gradient(110deg,#007d7b,#00a398);color:white;box-shadow:0 5px 12px #009b8824;margin-top:20px;display:flex;align-items:center;justify-content:center;gap:10px}.primary-btn span{font-size:20px}.secondary-btn{color:#205371;background:#eaf1f6}.secondary-btn.compact{margin:14px 0 8px;font-size:12px;min-height:37px}.primary-btn:disabled,.secondary-btn:disabled{opacity:.55;cursor:wait}.inline-feedback{color:#007b73;min-height:1em;font-size:12px;font-weight:700;margin:10px 0 0;overflow-wrap:anywhere}.inline-feedback.error{color:#b74c37}.context-note{font-size:12px;color:#738796;line-height:1.6;padding:2px 5px}.list-space{margin-top:15px}.text-link{background:none;border:none;color:#00857c;font-weight:800;font-size:12px;cursor:pointer}.bottom-nav{z-index:50;position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #dfebf2;padding:9px 10px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #0a2c4512;max-width:1000px;margin:auto}.nav-item{display:grid;justify-items:center;gap:4px;align-content:center;color:#83919f;background:none;border:none;padding:5px 3px;font:650 10px system-ui,sans-serif;cursor:pointer}.nav-item.selected{color:#007e78}.nav-item.selected svg{stroke-width:2.3}.settings-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;padding:15px 0;border-bottom:1px solid #e9eef2}.settings-line strong{color:#0b3c58;text-align:right}.overlay[hidden],.signature-overlay[hidden],.toast[hidden],[hidden]{display:none!important}.overlay{position:fixed;inset:0;background:#061a2abb;z-index:100;display:grid;place-items:end center;padding:0;overflow:auto}.dialog{width:100%;max-width:600px;max-height:94dvh;background:#fff;border-radius:24px 24px 0 0;padding:20px;overflow:auto;overscroll-behavior:contain;box-shadow:0 -10px 40px #0003}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font-size:20px;margin:0}.close{border:0;background:#ecf2f6;color:#2a4c62;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;cursor:pointer}.dialog .context-note{padding-left:0}.receipt-detail{margin:17px 0;background:#f2f8fa;border-radius:13px;padding:14px;font-size:13px;line-height:1.8}.receipt-detail strong{font-size:18px}.receipt-dialog h3{font-size:15px;margin-top:20px}.signature-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.signature-card{display:flex;flex-direction:column;justify-content:center;gap:7px;align-items:center;min-height:115px;background:#fafdff;border:1px dashed #bcced8;border-radius:14px;color:#21465c;cursor:pointer;padding:10px;text-align:center}.signature-card span{font-size:12px;font-weight:750}.signature-card img{max-width:100%;height:50px;object-fit:contain}.signature-card small{font-size:11px;color:#668a9b}.actions{margin-top:13px}.actions .primary-btn{margin-top:0}.signature-overlay{position:fixed;z-index:200;inset:0;background:#f2f7fa;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));gap:12px;height:100dvh}.sign-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.sign-head strong{display:block;font-size:18px}.sign-head small{display:block;color:#728695;font-size:12px;margin-top:3px}.sign-surface{flex:1;min-height:80px;position:relative;border:2px dashed #97b8c9;border-radius:16px;overflow:hidden;background:#fff}.sign-surface canvas{display:block;width:100%;height:100%;touch-action:none}.sign-actions{display:flex;gap:10px}.sign-actions .primary-btn{margin:0;flex:1}.sign-actions .secondary-btn{flex:.7}.toast{z-index:250;position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#183f52;color:#fff;border-radius:12px;padding:12px 20px;box-shadow:0 10px 24px #102b4640;min-width:160px;max-width:90vw;text-align:center;font-size:13px}@media(min-width:650px){.topbar{padding-left:35px;padding-right:35px}.floor-cards{grid-template-columns:repeat(3,1fr)}.floor-card{flex-wrap:wrap}.floor-card .status{margin-left:auto}.dialog{border-radius:24px;max-height:90dvh}.overlay{place-items:center;padding:25px}.stats-grid{grid-template-columns:1fr 1fr 1.6fr}.stat.full{grid-column:auto}.bottom-nav{max-width:1000px}}@media(max-width:390px){.two-col{grid-template-columns:1fr}.hero-label{font-size:9px}.stat strong{font-size:28px}h1{font-size:26px}}
