*{box-sizing:border-box}body{margin:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,sans-serif;background:#f8fafc;color:#0f172a}.app{max-width:560px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}header{background:#0f766e;color:#fff;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2}header h1{margin:0;font-size:18px}header small{font-size:12px;opacity:.9}header small.bad{color:#fecaca}button{font:inherit;cursor:pointer}button.icon{background:#fff3;color:#fff;border:0;border-radius:50%;width:40px;height:40px;font-size:20px}main{flex:1;padding:12px 16px 90px}nav{position:fixed;bottom:0;left:0;right:0;max-width:560px;margin:0 auto;display:flex;background:#fff;border-top:1px solid #e2e8f0;padding-bottom:env(safe-area-inset-bottom)}nav button{flex:1;padding:14px 0;background:none;border:0;color:#64748b;font-weight:600}nav button.active{color:#0f766e;box-shadow:inset 0 3px #0f766e}.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.card{background:#fff;border-radius:12px;padding:14px;box-shadow:0 1px 3px #00000014;display:flex;flex-direction:column;gap:6px}.card span{color:#64748b;font-size:13px}.card b{font-size:18px}.search{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;margin-bottom:10px;font-size:16px}.list{list-style:none;margin:0;padding:0;background:#fff;border-radius:12px;box-shadow:0 1px 3px #00000014}.list li{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #f1f5f9}.list li:last-child{border-bottom:0}.list li div{display:flex;flex-direction:column;min-width:0}.list li small{color:#64748b}.list li span{white-space:nowrap;font-weight:600}.list li.pending{background:#fffbeb}.muted{color:#64748b;text-align:center}.error{color:#b91c1c}.note{background:#fffbeb;border:1px solid #fde68a;padding:10px;border-radius:10px}.error-box{background:#fef2f2;border:1px solid #fecaca;padding:10px;border-radius:10px;margin-top:10px;font-size:14px}.error-box button{margin-top:6px}.toast{position:fixed;top:70px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;padding:8px 14px;border-radius:20px;font-size:14px;z-index:5}.form{display:flex;flex-direction:column;gap:12px}.form label{display:flex;flex-direction:column;gap:4px;font-size:14px;color:#475569}.form input,.form select{padding:12px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px;background:#fff}.seg{display:flex;gap:6px}.seg button{flex:1;padding:10px 0;border:1px solid #cbd5e1;background:#fff;border-radius:10px}.seg button.active{background:#0f766e;color:#fff;border-color:#0f766e}.primary{background:#0f766e;color:#fff;border:0;border-radius:10px;padding:14px;font-weight:600}.actions{display:flex;gap:8px}.login{max-width:360px;margin:20vh auto 0;padding:0 16px}.login h1{color:#0f766e;text-align:center}.print-actions{display:flex;justify-content:space-between;margin-bottom:10px}.print-actions button{padding:10px 14px;border-radius:10px;border:1px solid #cbd5e1;background:#fff}.print-actions .primary{background:#0f766e;color:#fff;border:0}.sheet{background:#fff;padding:18px;border:1px solid #cbd5e1;font-size:14px;line-height:1.45}.sheet-head{text-align:center;border-bottom:2px solid #0f172a;padding-bottom:8px}.sheet-head h2{margin:0 0 4px;font-size:20px}.sheet-title{text-align:center;margin:12px 0;letter-spacing:.5px;text-transform:uppercase}.meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.meta small,.sheet small{color:#64748b;display:inline-block;margin-right:4px}.meta .right{text-align:right}.sheet table{width:100%;border-collapse:collapse;margin:8px 0 12px}.sheet th,.sheet td{border:1px solid #94a3b8;padding:6px 8px;text-align:left}.sheet th.num,.sheet td.num{text-align:right;white-space:nowrap}.sheet tfoot td{font-weight:700}.signs{display:flex;justify-content:space-between;margin-top:48px;text-align:center}.signs div{border-top:1px solid #0f172a;padding-top:6px;min-width:40%}.voucher-row{display:flex;align-items:center;gap:8px}.print-btn{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:4px 8px;font-size:12px;color:#0f766e}@media print{header,nav,.no-print,.toast{display:none!important}body{background:#fff}main{padding:0!important}.app{max-width:none}.sheet{border:0;padding:0;font-size:13pt}}.list li .voucher-row{flex-direction:row;align-items:center}.nowrap{white-space:nowrap}.field{display:flex;flex-direction:column;gap:4px}.field-label{font-size:14px;color:#475569}.combo-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:16px;color:#0f172a;text-align:left}.combo-trigger.placeholder{color:#94a3b8}.combo-trigger:focus-visible{outline:2px solid #0f766e;outline-offset:1px}.combo-trigger svg{flex:none;color:#64748b}.combo-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;z-index:20;display:flex;align-items:flex-end;justify-content:center}.combo-sheet{background:#fff;width:100%;max-width:560px;max-height:80vh;border-radius:16px 16px 0 0;padding:14px 14px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;animation:slide-up .18s ease-out}@keyframes slide-up{0%{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}.combo-head{display:flex;justify-content:space-between;align-items:center}.combo-close{border:0;background:#f1f5f9;border-radius:50%;width:32px;height:32px;color:#475569}.combo-search{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px}.combo-search:focus{outline:2px solid #0f766e;outline-offset:0;border-color:#0f766e}.combo-list{list-style:none;margin:0;padding:0;overflow-y:auto;border:1px solid #e2e8f0;border-radius:10px}.combo-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #f1f5f9;cursor:pointer}.combo-list li:last-child{border-bottom:0}.combo-list li small{color:#64748b}.combo-list li.active{background:#f0fdfa}.combo-list li.selected{color:#0f766e;font-weight:600}.combo-list li.selected:after{content:"✓"}.combo-list li.combo-empty{color:#64748b;justify-content:center;cursor:default}.credit{text-align:center;font-size:12px;color:#64748b;margin:18px 0 0}.credit a{color:#0f766e;font-weight:600;text-decoration:none}.credit a:hover{text-decoration:underline}.sheet .credit{margin-top:24px}
