:root{--ink: #232c29;--muted: #5c665f;--accent: #397568;--line: #e5e9e6;--ground: #f5f7f5}*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:7px;padding:8px 15px;color:inherit}button:hover{background:#eef1ee}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.primary:hover{background:#39433f}aside{position:fixed;width:214px;height:100vh;background:#eef1ee;padding:34px 22px;display:flex;flex-direction:column}.brand{font-size:19px;font-weight:650;letter-spacing:-.6px;margin-bottom:48px}nav{display:grid;gap:8px}nav button{background:none;border:0;text-align:left;padding:11px 16px;color:var(--muted)}nav button.active{background:#e1e7e2;color:var(--ink);font-weight:600}.account{margin-top:auto;border-top:1px solid #d9dfda;padding-top:20px}.muted,small{color:var(--muted)}small{font-size:13px}.preview{font-size:12px;margin-bottom:8px}.account select{width:100%;margin:8px 0}main{margin-left:214px;padding:40px 48px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}h1{font-size:26px;margin:0 0 5px;font-weight:600}h2{font-size:17px;font-weight:600;margin:0 0 20px}h3{font-size:15px;margin:0 0 14px}p{margin:0}select,input,textarea{border:1px solid #cdd5ce;background:#fff;border-radius:7px;padding:9px 12px;color:var(--ink);min-width:0}input[type=search]{width:230px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:28px;overflow:auto}.tabs button{border:0;border-radius:0;background:none;white-space:nowrap;padding:12px 0;color:var(--muted)}.tabs button.active{border-bottom:2px solid var(--ink);color:var(--ink);font-weight:600}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:20px 0 34px}.metric{border-right:1px solid var(--line);padding-right:20px}.metric:last-child{border:0}.metric span{display:block;color:var(--muted);margin-bottom:8px}.metric strong{font-size:30px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums}.metric small{display:block;margin-top:7px}.grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head h2{margin:0}.chart{width:100%;height:240px;display:block;margin-top:24px}.task{padding:20px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between}.task:last-child{border:0;padding-bottom:0}.task p{font-size:14px}.task small{display:block;margin-top:4px}.toolbar{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:12px;color:var(--muted);font-weight:500;text-align:left;padding:16px}td{padding:20px 16px;border-bottom:1px solid #eff1ef}tr:last-child td{border:0}tbody tr{cursor:pointer}tbody tr:hover{background:#f7f9f7}.num{text-align:right;font-variant-numeric:tabular-nums}td small{display:block;font-family:ui-monospace,monospace;margin-top:4px}.badge{display:inline-block;background:#edf2ee;border-radius:5px;padding:3px 9px;font-size:12px;color:#466352}.warning{background:#f8f0df;color:#83621b}.negative{color:#a93f3f}.foot{margin-top:20px;font-size:12px;color:var(--muted)}.link{border:0;padding:0;background:none;color:var(--accent)}dialog{width:min(920px,calc(100vw - 40px));max-height:88vh;padding:0;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 90px #18271d30;color:var(--ink)}dialog::backdrop{background:#19272060}.modal-head{padding:28px 32px 20px;display:flex;justify-content:space-between;align-items:start}.modal-head h2{font-size:22px;margin:0 0 5px}.modal-body{padding:0 32px 30px;overflow:auto;max-height:65vh}.modal-footer{padding:18px 32px;background:#f7f9f7;border-top:1px solid var(--line);display:flex;gap:12px;justify-content:flex-end}.facts{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.facts label{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.facts strong{font-weight:500;font-size:16px}.notice{background:#f2f5f2;padding:16px 20px;border-radius:8px;margin:20px 0}.form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form label{display:grid;gap:7px}.form .wide{grid-column:1/-1}.bars{display:grid;gap:24px;margin-top:28px}.barrow{display:grid;grid-template-columns:140px 1fr 60px;gap:15px;align-items:center}.bar{height:10px;background:#e8ede9;border-radius:3px;overflow:hidden}.bar i{display:block;height:100%;background:var(--accent)}.empty{padding:70px;text-align:center;color:var(--muted)}.mobile-title{display:none}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%);background:var(--ink);color:#fff;border-radius:8px;padding:12px 24px;z-index:20}@media(max-width:1000px){main{padding:30px 24px;margin-left:180px}aside{width:180px;padding:28px 16px}.grid{grid-template-columns:1fr}.chart{height:210px}}@media(max-width:640px){aside{position:static;width:auto;height:auto;padding:18px 20px}.brand{margin:0 0 18px}.account{margin-top:14px;padding-top:12px;display:flex;align-items:center;gap:12px}.account select{width:auto;max-width:190px}.account .muted{display:none}nav{display:flex;overflow:auto;gap:0}nav button{padding:9px 12px;white-space:nowrap;font-size:13px}main{margin:0;padding:26px 20px}header{align-items:start;flex-wrap:wrap;margin-bottom:20px}h1{font-size:24px}.metrics{gap:14px}.metric{padding-right:8px}.metric strong{font-size:23px}.metric small{font-size:11px}.tabs{gap:24px}.panel{padding:20px}.grid{gap:20px}.chart{height:190px}.tablewrap table th:nth-child(3),.tablewrap table td:nth-child(3),.tablewrap table th:nth-child(4),.tablewrap table td:nth-child(4){display:none}td{padding:18px 8px}th{padding:12px 8px}dialog{width:calc(100vw - 24px);max-height:92vh}.modal-head{padding:22px 20px}.modal-body{padding:0 20px 24px;max-height:65vh}.modal-footer{padding:16px 20px}.form{grid-template-columns:1fr}.facts{gap:20px}.barrow{grid-template-columns:110px 1fr 42px}.toolbar input{width:100%}.foot{line-height:1.8}}.data-panel{padding:0 6px;overflow:hidden}.business-table{font-size:13px}.business-table th{padding:16px 12px;background:#fafbf9}.business-table td{padding:18px 12px;cursor:default}.business-table td small{font-family:inherit;font-size:12px;line-height:1.65}.business-table .serial{font-family:ui-monospace,monospace;letter-spacing:.1px}.business-table td .pending-text{color:#83621b}.cell-link{border:0;padding:0;background:none;text-align:left;font-weight:550}.cell-link:hover{color:#397568;background:none}.summary-line{display:flex;flex-wrap:wrap;gap:12px 30px;margin:0 0 24px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.summary-line b{font-weight:550;color:var(--ink);font-variant-numeric:tabular-nums}.table-footer{display:flex;gap:16px;justify-content:space-between;margin:16px 0;color:var(--muted);font-size:12px}.toolbar{align-items:center}.toolbar-note,.scope-caption{font-size:12px;color:var(--muted)}.toolbar-note{margin-left:auto}.selected-filter{background:#e1e7e2;border-color:#cdd5ce}.settlement-metrics strong{font-size:28px}.modal-body .data-panel{margin-bottom:24px}.modal-body .metrics{gap:20px}.modal-body .metrics strong{font-size:24px}.business-table td:nth-last-child(1){white-space:nowrap}main{max-width:1800px}@media(min-width:1100px){main{padding-left:36px;padding-right:36px}}@media(max-width:640px){.business-table{min-width:850px}.machine-table{min-width:1030px}.business-table th:nth-child(3),.business-table td:nth-child(3),.business-table th:nth-child(4),.business-table td:nth-child(4){display:table-cell!important}.business-table th:first-child,.business-table td:first-child{position:sticky;left:0;background:#fff;z-index:1;max-width:190px;white-space:normal}.business-table th:first-child{background:#fafbf9}.business-table td{padding:17px 12px}.summary-line{gap:10px 20px}.table-footer{flex-direction:column;gap:6px}.toolbar-note{margin-left:0;width:100%}.settlement-metrics{grid-template-columns:1fr;gap:16px}.settlement-metrics .metric{border:0;border-bottom:1px solid var(--line);padding-bottom:16px;display:grid;grid-template-columns:1fr auto}.settlement-metrics small{grid-column:1/-1}.settlement-metrics strong{font-size:25px}.toolbar button{padding:9px 12px}.modal-body .metrics{grid-template-columns:1fr}.modal-body .metric{border:0}.scope-caption{display:block}}.staff-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.staff-metrics strong{font-size:25px}@media(max-width:1100px){.staff-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.data-panel{padding:0}.business-table th:first-child,.business-table td:first-child{min-width:155px}.modal-body .business-table{min-width:560px}.staff-metrics{grid-template-columns:1fr}.modal-head h2{overflow-wrap:anywhere}.summary-line b{white-space:nowrap}}.tab-count{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}.tabs .active .tab-count{color:var(--ink)}.footer-totals{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:flex-end}.footer-totals span{white-space:nowrap}.footer-totals b{color:var(--ink);font-weight:550;font-variant-numeric:tabular-nums}.table-footer{flex-wrap:wrap;align-items:baseline}.overview-totals{justify-content:flex-start;gap:12px 30px;margin-top:24px}.detail-totals{gap:12px 24px;justify-content:flex-start;margin:20px 0 28px}.section-navigation{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);margin-bottom:28px}.section-navigation>.tabs{flex:1;min-width:0;margin:0;border:0}.view-control,.filter-control{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);white-space:nowrap}.view-control select{width:140px;font-size:13px;padding:8px 12px;margin-bottom:7px}.filter-control select{min-width:170px;font-size:13px}.settlement-toolbar{justify-content:flex-end}@media(max-width:640px){.section-navigation{gap:14px}.section-navigation .tabs{gap:20px}.view-control{gap:6px}.view-control select{width:122px;padding:8px}.view-control{font-size:0}.view-control select{font-size:12px}.footer-totals{justify-content:flex-start;gap:8px 16px}.overview-totals{gap:8px}.settlement-toolbar{justify-content:flex-start}.tab-count{font-size:12px}}body{min-width:320px}main{min-width:0}.account small{display:block}.account{display:grid;gap:12px}.account .link{justify-self:start}.version{color:var(--muted);font-size:12px;margin-top:40px}.login{width:min(440px,calc(100% - 40px));margin:12vh auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:32px}.login .brand{margin-bottom:30px}.login .form{margin-top:30px}.login .form-actions button{width:100%}.boot{max-width:800px;margin:80px auto;padding:24px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin:28px -32px -30px;padding:18px 32px;background:#f7f9f7;border-top:1px solid var(--line);position:sticky;bottom:-30px;z-index:2}.modal-body:has(.form){padding-bottom:30px}.form input,.form select,.form textarea{width:100%}.form textarea{min-height:85px;resize:vertical}.form label{align-content:start}.form .check,.check{display:flex;align-items:center;gap:8px}.check input{width:auto;flex:none}.machine-lines{display:grid;gap:20px}.machine-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr) auto;gap:16px;align-items:end;padding:18px;background:#f7f9f7;border-radius:8px}.machine-line select{width:100%}.machine-line button{align-self:end}.attachment{display:grid;gap:10px}.attachment label{display:grid;gap:8px}.attachment-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.attachment-preview img{width:100%;max-width:300px;max-height:220px;object-fit:contain}.form-error{background:#f8eeec;color:#923c35;padding:14px;border-radius:7px}.form-error .link{margin-left:12px}.permission-row{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.permission-row span{font-size:12px}.audit{padding:18px 0;border-bottom:1px solid var(--line)}.audit small{display:block;margin-top:6px}.audit details{margin-top:8px}.audit pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f5;padding:12px}.section-gap{margin-top:24px}.return-section,.commission-section{margin:24px 0;padding:22px;background:#f7f9f7;border-radius:8px}.metric-link{padding:0;border:0;background:none;text-align:left}.metric-link:hover{background:none;color:var(--accent)}.overview-totals{display:flex;gap:12px 30px;flex-wrap:wrap;margin-top:24px;align-items:center}.overview-totals button{background:none;border:0;padding:0;text-align:left;color:var(--muted)}.overview-totals b{color:var(--ink);font-weight:500}.chart-note{margin-top:14px}.legend{display:inline-block;width:12px;height:4px;vertical-align:middle;background:var(--accent)}.legend.profit{background:#858d88}.channel-title{display:flex;justify-content:space-between;gap:14px;margin-bottom:8px;font-size:13px}.channel .bar{margin-bottom:6px;height:8px}.bar.profit i{background:#858d88}.bar.profit .negative-bar{background:#a93f3f}.barrow{grid-template-columns:minmax(90px,160px) 1fr 50px}.dual-balance{font-size:18px;line-height:1.65;letter-spacing:0}.settlement-toolbar select{max-width:220px}.period label,.toolbar>label:not(.filter-control){display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.void-filter{float:right;font-size:12px;color:var(--muted);margin-bottom:6px}.more-filters{position:relative;font-size:13px}.more-filters summary{cursor:pointer;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:7px}.expanded-filters{position:absolute;top:40px;left:0;z-index:5;background:#fff;padding:20px;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px #18271d20;width:320px;display:grid;gap:12px}.expanded-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.expanded-filters select,.expanded-filters input{width:100%}.skeleton{height:32px;margin-top:20px;background:#eef1ee;border-radius:5px}.business-table small{white-space:normal;max-width:300px}.facts{overflow-wrap:anywhere}.tablewrap:focus-visible{outline:2px solid var(--accent)}button:disabled{cursor:wait;opacity:.6}a{color:var(--accent)}@media(max-width:640px){main{padding:26px 20px}.account{display:flex;justify-content:space-between}.account small{display:block;font-size:12px}.brand{font-size:19px}.business-table th,.business-table td{display:table-cell!important}.business-table td:first-child{min-width:155px}.business-table{min-width:850px}.machine-table{min-width:1030px}.form-actions{margin-left:-20px;margin-right:-20px;padding:16px 20px}.machine-line{grid-template-columns:1fr;gap:14px}.machine-line button{justify-self:end}.permission-row{grid-template-columns:1fr;gap:6px}.period{gap:10px}.period label{flex:1;display:grid!important;min-width:120px}.period input,.period select{width:100%}.toolbar>label:not(.filter-control){display:grid;flex:1;min-width:120px}.metrics:not(.settlement-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}.metrics:not(.settlement-metrics) .metric:nth-child(2){border:0}.metrics:not(.settlement-metrics) .metric:last-child:nth-child(odd){grid-column:1/-1}.metric small{font-size:12px}.expanded-filters{position:fixed;top:25%;left:20px;right:20px;width:auto;max-height:60vh;overflow:auto}.modal-body .tabs{gap:18px}.modal-head h2{font-size:20px;line-height:1.5}.void-filter{float:none;justify-content:flex-end;margin-bottom:8px}.channel-title{display:grid;gap:4px}.barrow{grid-template-columns:100px 1fr 40px}.form-actions button{min-height:44px}button,input,select{min-height:40px}nav button{min-height:44px}.login{margin:7vh auto;padding:26px}.login .form-actions{margin:24px 0 0;padding:0;background:none;border:0}.facts{grid-template-columns:1fr 1fr}.form .wide{grid-column:1}.attachment-preview img{max-width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.form-field{display:grid;gap:7px;align-content:start;min-width:0}.form-field>label{display:block}.form-field>div:empty{display:none}.form-field small{display:block}.business-table td:first-child>.link{color:var(--ink);font-weight:550;text-align:left}.business-table td:first-child>.link:hover{color:var(--accent)}@media(max-width:640px){.panel-head{flex-wrap:wrap}.panel-head h2{flex:1 0 100%}.panel-head>.actions{flex-wrap:nowrap;gap:8px}.panel-head>.actions select{min-height:40px}.toolbar-note{display:none}}.serial{overflow-wrap:anywhere;word-break:break-all}@media(max-width:640px){.business-table td.empty{text-align:left;padding:30px 16px}.empty-message{display:inline-block}.modal-body{scroll-padding-bottom:90px}dialog{top:calc(var(--visible-top, 0px) + var(--visible-height, 100dvh) / 2);left:50%;bottom:auto;margin:0;transform:translate(-50%,-50%);max-height:calc(var(--visible-height, 100dvh) * .92)}.modal-body{max-height:calc(var(--visible-height, 100dvh) * .65)}.form input,.form select,.form textarea{scroll-margin-bottom:90px}}
