*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,system-ui,sans-serif;font-size:1rem;line-height:1.5;background:#f4f2ee;color:#1d1d1b}.app{max-width:720px;margin:0 auto;padding:12px 16px calc(24px + env(safe-area-inset-bottom))}header{display:flex;justify-content:space-between;align-items:center;gap:8px}h1{font-size:clamp(1.25rem,5vw,1.75rem);line-height:1.25;margin:8px 0}h2{font-size:1.25rem;line-height:1.3;margin:0 0 8px}h3{font-size:1.125rem;line-height:1.3;margin:4px 0 8px}nav{display:flex;gap:8px;margin:8px 0}nav button{flex:1}.card{background:#fff;border-radius:12px;padding:16px;margin:12px 0;box-shadow:0 1px 2px #0000000f}.info{font-size:.9375rem}.who{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:.875rem;color:#444}.tag{background:#1d1d1b;color:#fff;padding:2px 8px;border-radius:6px;margin-left:8px;font-size:.75rem}label{display:block;font-size:.875rem;color:#555;margin:8px 0}input,select{display:block;width:100%;font-size:1.125rem;min-height:48px;padding:10px 12px;margin-top:4px;border:1px solid #ccc;border-radius:8px;background:#fff}input[type=checkbox]{display:inline;width:22px;min-height:22px;height:22px;margin:0 10px 0 0}button{font-size:1rem;min-height:48px;padding:10px 14px;border:1px solid #ccc;border-radius:10px;background:#fff;cursor:pointer;color:inherit}button.on{background:#1d1d1b;color:#fff;border-color:#1d1d1b}button.big{background:#2f6f4e;color:#fff;border-color:#2f6f4e;font-weight:600;font-size:1.0625rem}button.warn{background:#8a3b12;color:#fff;border-color:#8a3b12}button.small{font-size:.875rem;min-height:36px;padding:6px 12px;margin-left:8px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.actions .big{flex:1;min-width:140px}.choice{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.choice button{flex:1 1 calc(50% - 8px)}.part{border-left:3px solid #2f6f4e;padding:6px 0 6px 12px;margin:12px 0}.row2,.row3{display:grid;gap:8px}.row2{grid-template-columns:1fr 1fr}.row3{grid-template-columns:1fr 1fr 1fr}@media (max-width: 380px){.row3{grid-template-columns:1fr 1fr}}.summary{font-size:1.125rem;margin:12px 0}.err{background:#fbebeb;color:#8a1c1c;padding:12px;border-radius:8px;margin:8px 0;font-size:.9375rem}.okmsg{background:#e5f4e4;color:#1f5131;padding:12px;border-radius:8px;margin:8px 0;font-size:.9375rem}.hint{color:#666;font-size:.875rem}table{width:100%;border-collapse:collapse;font-size:.9375rem}th,td{text-align:left;padding:8px 6px;border-bottom:1px solid #eee;white-space:nowrap}.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.bad{color:#b3261e;font-weight:600}.over{color:#8a6d00;font-weight:600}.ok{color:#2f6f4e}.totals{font-size:.875rem;color:#444;margin-top:12px;line-height:1.6}.rec{font-size:.9375rem;padding:10px 0;border-bottom:1px solid #f0f0f0}.rec .n{font-weight:700}.rec .time{color:#777}.rec.voided{text-decoration:line-through;color:#999}.rec.t-void,.rec.t-open,.rec.t-close{color:#555;font-style:italic}.tick{display:flex;align-items:center;min-height:44px;font-size:.9375rem;color:#1d1d1b}@media (min-width: 768px){.choice button{flex:1}}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin:4px 0 8px;-webkit-overflow-scrolling:touch}button.chip{flex:0 0 auto;min-height:40px;padding:6px 14px;border-radius:999px;font-size:.875rem}input.search{margin:0 0 8px}button.more{width:100%;margin-top:12px}.rowtools{display:grid;grid-template-columns:minmax(110px,2fr) 3fr;gap:8px;margin:8px 0 16px;padding-bottom:16px;border-bottom:1px solid #eee}.rowtools select,.rowtools input{margin:0;font-size:1rem}.subhead{margin:-4px 0 4px}@media (max-width: 340px){.rowtools{grid-template-columns:1fr}}.stickybar{position:sticky;bottom:0;z-index:5;background:#fff;margin:12px -16px -16px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #eee;border-radius:0 0 12px 12px;box-shadow:0 -4px 12px #0000000f}.stickybar .summary{margin:0 0 8px;font-size:1.125rem}.stickybar .summary:empty{display:none}.stickybar .actions{margin:0}.actions.stickybar{margin:12px -16px -16px}button.checkbtn{flex:1}.checkhead,.checkline{display:grid;grid-template-columns:1fr 1fr 44px;gap:8px;align-items:center}.checkhead{font-size:.875rem;color:#555;margin-top:8px}.checkline input{margin:4px 0}.checkline button.small{margin:0;min-height:44px}textarea{display:block;width:100%;font-size:1rem;padding:10px 12px;margin-top:4px;border:1px solid #ccc;border-radius:8px;font-family:ui-monospace,Menlo,monospace}.checksection h4{margin:16px 0 4px;font-size:1rem}.pastchecks{margin-top:20px;padding-top:12px;border-top:1px solid #eee}.chainbox{background:#efedff;border-radius:8px;padding:8px 10px;margin-bottom:8px;font-size:.875rem}.chaintotal{font-size:1.125rem;margin-top:2px}.groupbox{border:1px solid #d9d4f7;background:#f7f6ff;border-radius:10px;padding:4px 10px;margin:8px 0}.groupbox .rec:last-child{border-bottom:none}.grouphead{font-size:.9375rem;padding:6px 0;border-bottom:1px solid #e6e2fb}.fab{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));width:60px;height:60px;min-height:60px;border-radius:50%;border:none;background:#1d1d1b;color:#ffd84d;font-size:1.75rem;box-shadow:0 6px 18px #00000040;z-index:20;padding:0}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:30;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:720px;max-height:88vh;overflow-y:auto;background:#111511;color:#d8f5d8;border-radius:16px 16px 0 0;padding:12px 14px calc(14px + env(safe-area-inset-bottom));font-family:ui-monospace,SF Mono,Menlo,monospace}.term-head{display:flex;align-items:center;gap:8px;font-weight:700;color:#ffd84d}.term-head span{flex:1}.term-head select{width:auto;min-height:40px;margin:0;background:#1f261f;color:#d8f5d8;border-color:#334033;font-size:1rem}button.term-x{min-height:40px;background:transparent;color:#d8f5d8;border-color:#334033}.term-help{font-size:.8125rem;color:#8fae8f;margin:6px 0}textarea.term-input{background:#0b0e0b;color:#e8ffe8;border:1px solid #334033;font-size:1rem;line-height:1.6}.term-out{margin:8px 0;font-size:.875rem;line-height:1.6;word-break:break-word}.term-ok{color:#8dee8d}.term-bad{color:#ff8a80}.term-warn{color:#ffd84d}.term-dim{color:#6f8a6f}.term-msg{padding:6px 0}.term-foot{position:sticky;bottom:0;background:#111511;border-top:1px solid #334033;padding-top:8px;display:grid;gap:8px;font-size:.9375rem}.term-same{display:flex;align-items:center;gap:8px;color:#d8f5d8;margin:0}.term-same input{width:22px;height:22px;min-height:22px;margin:0}.term-foot button.big:disabled{opacity:.45}.term-toggle{display:flex;border:1px solid #334033;border-radius:10px;overflow:hidden}.term-toggle button{min-height:40px;padding:6px 10px;border:none;border-radius:0;background:#1f261f;color:#8fae8f;font-family:inherit}.term-toggle button.on{background:#ffd84d;color:#111511;font-weight:700}.keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}button.key{min-height:52px;font-size:1.375rem;font-family:inherit;background:#1f261f;color:#e8ffe8;border:1px solid #334033;border-radius:10px;padding:0;touch-action:manipulation}button.key:active{background:#2d382d}button.key-op{color:#ffd84d}.filelist{display:grid;gap:6px;margin:8px 0}.filelist button{text-align:left;font-size:.875rem;min-height:44px;word-break:break-all}.fixrow.off{opacity:.5}.fixrow .tick{align-items:flex-start}.fixrow .tick input{margin-top:3px}.fixopts{display:flex;gap:8px;align-items:center;margin:4px 0 0 32px;flex-wrap:wrap}.fixopts select{width:auto;min-height:40px;font-size:.875rem;margin:0}.feebox{display:flex;align-items:center;gap:6px;margin:0}.feebox input{width:80px;min-height:40px;margin:0;font-size:1rem}.term-hint{font-size:.8125rem;color:#8fae8f;margin:4px 0 0;min-height:1.2em}.term-hint b{color:#ffd84d;font-weight:600}.chips{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin:8px 0 0}button.chip{min-height:44px;padding:0;font-family:inherit;font-size:1.0625rem;font-weight:700;border-radius:10px;background:#1f261f;border:2px solid var(--wc, #334033);color:var(--wc, #ffd84d)}button.chip.on{background:var(--wc, #ffd84d);color:#111511}button.chip:active{filter:brightness(1.3)}.w-G{--wc: #4da3ff}.w-T{--wc: #c08cff}.w-M{--wc: #3ddc84}.w-B{--wc: #ff9f43}.w-L{--wc: #ffd84d}.term-out .w-G,.term-out .w-T,.term-out .w-M,.term-out .w-B,.term-out .w-L{border-left:3px solid var(--wc);padding-left:6px}.term-group{border:1px dashed #5d7a5d;border-radius:8px;padding:2px 6px 4px;margin:6px 0}.term-group-tag{font-size:.6875rem;text-transform:uppercase;letter-spacing:.05em;color:#8fae8f}@media (min-width: 768px){.sheet{max-width:1040px}.term-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.term-right{position:sticky;top:0;max-height:60vh;overflow-y:auto}}textarea.term-input::placeholder{color:#4d604d;font-style:italic}.term-left.nokeys textarea.term-input{min-height:220px}@media (min-width: 768px){.sheet-backdrop{align-items:center}.sheet{height:90vh;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border-radius:16px}.term-head,.term-foot{flex-shrink:0}.term-body{flex:1;min-height:0;margin-top:6px}.term-left,.term-right{height:100%;overflow-y:auto;padding-right:4px}.term-right{position:static;max-height:none;border-left:1px solid #334033;padding-left:14px}.term-foot{position:static}.term-left.nokeys textarea.term-input{min-height:0;height:calc(90vh - 330px)}}@media (min-width: 768px) and (max-height: 920px){.keypad{gap:5px;margin:6px 0}button.key{min-height:42px;font-size:1.125rem}button.chip{min-height:40px}textarea.term-input{line-height:1.45}}@media (min-width: 768px) and (max-height: 760px){.term-help{display:none}button.key{min-height:34px;font-size:1rem}button.chip{min-height:34px}.keypad{gap:4px;margin:4px 0 0}}.offlinebar{background:#fff6d6;border:1px solid #e8c75a;border-radius:10px;padding:10px 12px;margin:8px 0;font-size:.9375rem}.offlinebar.off{background:#ffe9e3;border-color:#e59a85}.offlinebar .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.rec.pending{border-left:3px dashed #d4a21a;background:#fffbea}.filepick{display:block;border:2px dashed #b9c4b9;border-radius:10px;padding:12px;margin:8px 0;cursor:pointer;font-weight:600}.filepick input{display:block;margin-top:8px;font-weight:400}.card.holds{background:#fff8e1;border:1px solid #f0d27a}.card.holds h3{margin:0 0 4px}.holdrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 0;border-top:1px dashed #ecd9a0}.holdrow button.small{margin-left:auto}.summary b.bigpeso,.chaintotal b.bigpeso{font-size:1.5em;line-height:1.2}
