:root{--green:#22c55e;--green-d:#16a34a;--ink:#1c1c1e;--muted:#6b7280;--line:#eceef0;--bg:#f7f8f9;--yellow:#fcf6d8;--pink:#fbe4e4;--radius:14px}*{box-sizing:border-box}html,body{color:var(--ink);-webkit-font-smoothing:antialiased;background:#fff;margin:0;font:15px/1.45 -apple-system,Segoe UI,Roboto,system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 14px}.num{font-variant-numeric:tabular-nums}.nav{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:22px;padding:14px 28px;display:flex}.brand{color:var(--green-d);letter-spacing:-.01em;font-size:19px;font-weight:700}.rsel{background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:600;display:inline-flex}.rsel select{background:0 0;border:0;padding:4px 2px;font-weight:700}.tabs{gap:20px;display:flex}.tabs a{color:var(--muted);border-bottom:2px solid #0000;padding:4px 0;font-weight:500}.tabs a.on{color:var(--ink);border-color:var(--ink);font-weight:600}.nav .right{align-items:center;gap:12px;margin-left:auto;display:flex}.sync{color:var(--green-d);background:#eafbf1;border:1px solid #cdeeda;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}.btn-green{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}.btn-out{color:#dc2626;background:#fff;border-color:#f3c5c5;font-weight:700}.btn-ghost{color:var(--green-d);background:#fff;border-color:#bfe6cd;font-weight:600}.page{max-width:1700px;margin:0 auto;padding:24px 28px 48px}.head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.page h1{letter-spacing:-.02em;margin:0;font-size:30px;font-weight:800}.range{align-items:center;gap:8px;display:flex}.range input{border:1px solid var(--line);border-radius:10px;padding:8px 10px}.range .nav-btn{border-radius:10px;place-items:center;width:38px;height:38px;display:grid}.chips{gap:10px;margin-bottom:14px;display:flex}.chip{color:var(--muted);background:#f1f2f4;border:0;border-radius:999px;padding:8px 16px;font-weight:600}.chip .n{opacity:.6;margin-left:6px}.chip.on{background:var(--ink);color:#fff}.chip.on .n{opacity:.8}.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}table{border-collapse:collapse;width:100%;font-size:15px}thead th{background:var(--ink);color:#fff;text-align:left;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;padding:13px 16px;font-size:12.5px;font-weight:600}tbody td{border-bottom:1px solid var(--line);white-space:nowrap;padding:13px 16px}tbody tr:last-child td{border-bottom:0}td.r,th.r{text-align:right}tr.yellow td{background:var(--yellow)}td.pink{background:var(--pink)}tfoot td{border-top:2px solid var(--line);background:#fafbfc;padding:14px 16px;font-weight:800}.open-btn{color:var(--green-d);background:#eafbf1;border:1px solid #cdeeda;border-radius:8px;padding:5px 14px;font-size:13px;font-weight:600}.muted{color:var(--muted)}.tiles{border:1px solid var(--line);border-radius:var(--radius);grid-template-columns:repeat(4,1fr);gap:0;margin-bottom:18px;display:grid;overflow:hidden}.tile{border-right:1px solid var(--line);padding:16px 18px}.tile:last-child{border-right:0}.tile .l{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-size:12px}.tile .v{margin-top:6px;font-size:20px;font-weight:800}.tile .v.neg{color:#dc2626}.grp{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px;overflow:hidden}.grp-h{align-items:center;gap:10px;padding:12px 16px;font-weight:700;display:flex}.grp-h .n{color:var(--green-d);background:#eafbf1;border-radius:999px;padding:1px 9px;font-size:13px;font-weight:700}.sum-bar{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px;padding:12px 16px;font-weight:600}.auth{place-items:center;min-height:100dvh;padding:24px;display:grid}.auth .box{border:1px solid var(--line);border-radius:18px;width:100%;max-width:440px;padding:30px 28px}.auth h1{text-align:center;margin:0 0 4px;font-size:26px;font-weight:800}.auth .sub{text-align:center;color:var(--muted);margin:0 0 22px}.auth label{margin:14px 0 6px;font-weight:700;display:block}.auth input{border:1px solid var(--line);border-radius:12px;width:100%;padding:12px 14px}.auth .btn-green{width:100%;margin-top:22px;padding:12px}.err{color:#dc2626;margin-top:10px;font-size:14px}.center-note{text-align:center;color:var(--muted);padding:60px 20px}.authbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:14px 28px;display:flex}@media (width<=900px){.tiles{grid-template-columns:1fr 1fr}.page{padding:16px}.nav{gap:12px;padding:12px 16px}.page h1{font-size:22px}}.seg{gap:8px;margin:6px 0 4px;display:flex}.seg button{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:12px;flex:1;padding:12px;font-weight:700}.seg button.on.in{color:var(--green-d);background:#eafbf1;border-color:#22c55e}.seg button.on.out{color:#dc2626;background:#fbe4e4;border-color:#dc2626}.okmsg{color:var(--green-d);margin-top:10px;font-weight:700}code{background:#f1f2f4;border-radius:6px;padding:2px 6px;font-family:ui-monospace,Menlo,monospace;font-size:13px}.modal-bg{z-index:50;background:#00000059;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;width:100%;max-width:520px;max-height:85vh;padding:20px;overflow:auto}.modal-h{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.modal-h button{cursor:pointer;background:0 0;border:0;font-size:20px}.mini-t{border-collapse:collapse;width:100%;margin-top:6px}.mini-t td{border-bottom:1px solid var(--line);padding:8px 0}.modal-pay{gap:6px;margin-top:12px;display:grid}.modal-pay>div{color:var(--muted);justify-content:space-between;display:flex}.modal-pay .tot{color:var(--ink);border-top:2px solid var(--line);margin-top:4px;padding-top:8px;font-weight:800}.fld{margin:10px 0 4px;font-weight:700;display:block}.fld input{border:1px solid var(--line);border-radius:12px;width:100%;padding:11px 14px;font-weight:400;display:block}.fld input:disabled{color:var(--muted);background:#f7f8f9}.presets{gap:4px;margin-right:8px;display:flex}.presets button{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}.presets button:hover{color:var(--ink);border-color:var(--line-strong,#ddd)}@media (width<=900px){.presets{flex-wrap:wrap}}.card{-webkit-overflow-scrolling:touch;overflow-x:auto}.card.pad{padding:18px}.card.pad h3{margin:0 0 4px}.hint{margin:0 0 12px;font-size:14px}.two{grid-template-columns:1fr 1fr;gap:20px;display:grid}.checks{flex-wrap:wrap;gap:8px;display:flex}.check{border:1px solid var(--line);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:999px;align-items:center;gap:8px;padding:7px 14px;font-weight:600;display:inline-flex}.check input{accent-color:#dc2626;width:16px;height:16px;margin:0}.check.on{background:var(--pink);color:#b91c1c;border-color:#f3c5c5}.staff{gap:8px;margin-bottom:14px;display:grid}.staff-row{border:1px solid var(--line);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.staff-add{grid-template-columns:1fr 1fr 1fr auto;align-items:end;gap:10px;display:grid}.staff-add .fld{margin:0}.staff-add button{height:44px}@media (width<=640px){html,body{font-size:14px}.nav{border-bottom:1px solid var(--line);grid-template-columns:auto 1fr auto;gap:8px 10px;padding:10px 16px 0;display:grid}.brand{font-size:17px}.rsel{min-width:0}.rsel select{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;overflow:hidden}.nav .right{grid-area:1/3;margin:0}.btn-out{padding:6px 10px;font-size:13px}.tabs{white-space:nowrap;scrollbar-width:none;grid-column:1/-1;gap:18px;margin:0 -16px;padding:0 16px;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tabs a{flex:none;padding:8px 0 10px}.page{padding:14px 16px 40px}.page h1{font-size:22px}.head{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px}.range{flex-wrap:wrap;gap:6px}.presets{scrollbar-width:none;flex-wrap:nowrap;width:100%;margin:0;overflow-x:auto}.presets::-webkit-scrollbar{display:none}.presets button{flex:none}.range input[type=date]{flex:1 1 0;min-width:0;padding:8px 6px}.range .nav-btn{flex:none;width:36px;height:36px;padding:0}.range .btn-ghost{flex:1 0 100%}.chips{scrollbar-width:none;overflow-x:auto}.chip{flex:none;padding:7px 13px}.tiles{grid-template-columns:1fr 1fr}.tile{border-bottom:1px solid var(--line);padding:12px 14px}.tile:nth-child(2n){border-right:0}.tile .v{word-break:break-word;font-size:17px}.sum-bar{padding:10px 14px}thead th{padding:10px 12px;font-size:11.5px}tbody td,tfoot td{padding:10px 12px}table.stack thead{display:none}table.stack,table.stack tbody,table.stack tfoot{display:block}table.stack tr{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr;gap:6px 14px;padding:12px 14px;display:grid}table.stack tbody tr:last-child{border-bottom:0}table.stack td{white-space:normal;text-align:left;background:0 0;border:0;flex-direction:column;min-width:0;padding:0;display:flex}table.stack td:before{content:attr(data-l);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);font-size:11px;font-weight:600}table.stack td.t-main{order:-2;font-size:16px;font-weight:700}table.stack td.t-sum{text-align:right;order:-1;font-size:16px;font-weight:800}table.stack td.t-main:before,table.stack td.t-sum:before,table.stack td.t-act:before{content:none}table.stack td.t-act{text-align:left;grid-column:1/-1}table.stack td.t-act .open-btn{width:100%;padding:8px}table.stack td.pink{background:var(--pink);border-radius:6px;padding:2px 6px}table.stack .m-hide{display:none}table.stack tr.yellow{background:var(--yellow)}table.stack tr.empty{display:block}table.stack tr.empty td{text-align:center;display:block}table.stack tr.empty td:before{content:none}table.stack tfoot tr{border-top:2px solid var(--line);background:#fafbfc}table.stack tfoot td{font-weight:800}table.stack tfoot td:first-child{grid-column:1/-1;font-size:16px}table.stack tfoot td:empty{display:none}.two,.staff-add{grid-template-columns:1fr}.modal-bg{place-items:end center;padding:0}.modal{border-radius:16px 16px 0 0;max-height:88vh}.auth{padding:16px}.auth .box{padding:24px 18px}.authbar{padding:12px 16px}}td.neg{color:#dc2626}
