:root{--bg:#121212;--panel:#121212;--border:#494239;--cyan:#705a35;--text:#eee9dd}
body{font:14px "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif}
header{background:#705a35}.brand img{object-fit:contain}
nav{height:76px;background:#121212}nav button{flex:0 0 79px;gap:2px}nav .nav-icon{display:block;width:32px;height:32px;background-image:url('navigation.png');background-repeat:no-repeat}
.workspace,.home{height:calc(100vh - 119px)}.workspace{gap:11px;padding-right:11px}.sidebar{width:153px;padding:30px 10px}.side-btn{height:30px;margin-bottom:18px;padding:4px 2px}.panel,.content{background:#121212}
th{background:#312e29;height:39px}td,th{border:1px solid #494239}.tabs{gap:6px;padding-bottom:0}.tabs button{background:#312e29;padding:8px 16px}.tabs .active{color:#ddbf80}
.tabs,.toolbar{row-gap:6px;flex-wrap:wrap}.game-config td{padding:5px}.game-config input,.game-config select{width:100%;max-width:180px;text-align:center}.game-config input[type=number]{min-width:54px}
[data-view] .toolbar input[type=date]{max-width:155px}.report-empty{border:1px solid var(--border);padding:32px;text-align:center}.report-empty h3{font-size:15px}.local-lines,.promo-local{max-width:680px;margin:30px auto}.local-lines>div{padding:20px;border-bottom:1px solid var(--border)}.local-lines>div span{float:right;color:var(--muted)}
.sort-row{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--border);padding:12px;max-width:620px}.sort-row b{flex:1}.sort-row[draggable]{cursor:grab}.thumb{width:80px;height:42px;object-fit:contain}
.reference-dialog{color-scheme:light;width:500px;max-width:calc(100vw - 24px);min-width:0;color:#494239;background:white;border:1px solid #eee9dd;border-radius:6px}.reference-dialog .modal-head{background:#eee9dd;padding:5px 12px;height:30px;border:0}.reference-dialog .modal-head h2{font-size:14px}.reference-dialog .modal-head button{font-size:20px}.reference-dialog #modal-body{padding:12px 10px 9px}.edit-field{display:grid;grid-template-columns:112px minmax(0,286px);gap:15px;align-items:start;margin:0 0 13px}.edit-field>span{text-align:right;padding-top:6px}
.edit-field input,.edit-field select,.edit-field textarea{color:#494239;background:#f3f7f8;border:1px solid #eee9dd;border-radius:4px;width:100%;height:32px}.edit-field textarea{height:100px}.edit-field input[type=file]{height:auto}
.reference-dialog .modal-actions{margin:22px -10px 0;padding:10px 10px 0;border-top:1px solid #e8eaec;gap:8px}.reference-dialog .secondary{background:#beb5a5}.reference-dialog button[type=submit]{background:#705a35}.reference-dialog .error{color:#bc2638}
#rule-form .field{max-width:560px;margin:12px 0}#rule-form .table-wrap{margin:15px 0}#rule-form .table-wrap input{width:100%;max-width:150px}
.table-wrap .empty{height:170px;background:url('empty.png') no-repeat center 32%;font-size:0}
@media(max-width:1400px){body{min-width:0}header,nav,.workspace,.home{min-width:0}nav{overflow-x:auto}nav button{flex:0 0 5.85vw}nav .audit-toggle{min-width:65px;margin-right:5px}.home{grid-template-columns:minmax(190px,24%) minmax(230px,31%) minmax(0,1fr)}.data-panel .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace,.home{min-height:0}.sidebar{width:132px}.remote-layout{grid-template-columns:minmax(290px,38%) minmax(0,1fr)}.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr))}.monitor-grid{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))}.field{grid-template-columns:minmax(90px,42%) minmax(0,1fr)}header .brand{min-width:95px}.segments button{padding:7px 10px}.online{padding:8px}}

.game-icon.observed-icon{background:transparent url('games.png') var(--icon-left) 0 no-repeat;font-size:0;border:0;box-shadow:none;width:48px;height:48px;flex-shrink:0}
.monitor-columns{display:flex;overflow:auto;border:1px solid var(--border)}.monitor-columns section{flex:1;min-width:90px;border-right:1px solid var(--border);padding:3px}.monitor-columns h3{font-size:13px;font-weight:normal;text-align:center;margin:5px}
.monitor-columns label{display:flex;align-items:center;justify-content:space-around;gap:3px;height:29px;font-size:12px}.monitor-columns input{min-width:0;width:65%;height:24px;min-height:24px;padding:2px;text-align:center}.monitor-columns label span{width:25px;text-align:center}.monitor-num{border-radius:3px;line-height:23px;color:white}.n0{background:#e7c520}.n1{background:#1088cf}.n2{background:#555}.n3{background:#e67d16}.n4{background:#69c9c2}.n5{background:#674bb9}.n6{background:#999}.n7{background:#d72329}.n8{background:#85222e}.n9{background:#268738}
.local-upload{display:inline-flex;align-items:flex-start;gap:8px;flex-direction:column;max-width:100%;position:relative;cursor:pointer}.local-upload img{width:100%;max-width:407px;max-height:149px;object-fit:contain}.local-upload input{opacity:0;position:absolute;inset:0;cursor:pointer;width:100%;height:100%}.local-upload:focus-within{outline:2px solid #ddbf80}.picture-place{display:grid;place-items:center;width:94px;height:88px;border:1px dashed #494239;border-radius:4px}.radio-label{margin-right:10px}.radio-label input{width:auto;min-height:0;margin:0 5px 0 0;accent-color:#705a35}#rule-form .field{grid-template-columns:123px minmax(0,410px)}#rule-form .field label::before{content:none}
.labeled-switch{position:relative;display:inline-block;width:57px;height:24px}.labeled-switch input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:1}.labeled-switch span{display:block;border-radius:14px;background:#999;color:white;font-size:12px;line-height:24px}.labeled-switch span::before{content:'关闭';padding-left:14px}.labeled-switch span::after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%}.labeled-switch input:checked+span{background:#705a35}.labeled-switch input:checked+span::before{content:'开启';padding-left:0;padding-right:18px}.labeled-switch input:checked+span::after{left:auto;right:3px}.labeled-switch input:focus-visible+span{outline:2px solid #ddbf80}
.game-config tbody tr:first-child{background:#312e29}.game-config input[type=checkbox][data-bulk]{width:18px}
main[data-view] #result-filter-form+div.table-wrap{height:calc(100% - 114px)}#result-filter-form button[data-action=refresh]{margin-left:auto}
.external-window{min-width:0;padding:20px}.line-choice{display:flex;width:100%;justify-content:space-between;padding:15px 18px;margin-bottom:12px}.local-lines h3{margin-top:26px}
.user-more{position:relative}.user-more summary{cursor:pointer;background:#168045;color:white;border-radius:3px;padding:5px 8px}.user-more[open] div{display:grid;grid-template-columns:repeat(2,max-content);gap:3px;margin-top:4px}.user-more button{font-size:12px;padding:5px 8px}.private-history{max-height:170px;overflow:auto}
.external-window{padding:0}.external-window .local-lines{margin:0 auto;max-width:712px}.lines-page{color-scheme:light;background:#fff;color:#312e29}.line-header,.number-header{display:block;width:100%;height:auto}.line-notice{padding:8px;text-align:center;background:#f1a19a;color:white}.lines-page .line-choice{width:88%;margin:3.6% auto;padding:3.4% 5%;border-radius:12px;color:#48505c;background:linear-gradient(#e6edf4,#fff);font-size:clamp(16px,3.3vw,23px);box-shadow:0 3px 12px #d2dce44f}.lines-page .line-choice:first-of-type{background:linear-gradient(#ee3333,#ff8465);color:white}.lines-page #check{display:block;margin:8% auto;border-radius:50%;width:150px;height:150px;background:#f04e47;border:5px double white;font-size:21px}.lines-page [role=status],.number-page [role=status]{text-align:center}.number-page{color-scheme:light;background:#fff8e4;color:#504531}.number-query{padding:28px 18px 60px}.number-query form{display:grid}.number-query form input,.number-query form button{width:100%;height:48px}.number-query button{background:#b48c4e}.number-query p{line-height:1.8}
.sort-hint{border:1px solid #748367;border-radius:3px;padding:9px 12px;margin:0 0 8px}.wallet-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:12px}.wallet-columns aside{border:1px solid var(--border);padding:8px 16px}.wallet-columns h3{color:#705a35;margin:4px 0;font-size:15px}tr[draggable]{cursor:grab}#filters+.subfilters button{background:#288e43}.content[data-view="上下分申请"] #filters button[type=submit]{margin-left:0}.content[data-view="上下分申请"] #filters:before{content:none}.content[data-view="上下分申请"] .toolbar button[type=submit]{break-before:always}.content[data-view="优惠活动"] .tabs,.content[data-view="轮播图管理"] .tabs{margin-bottom:10px}@media(max-width:1150px){.wallet-columns{grid-template-columns:minmax(0,1fr)}.wallet-columns aside{order:2}}

/* Dimensions measured from the archived 1920px reference. */
[data-view="收款方式"] .sort-hint,[data-view="出款方式"] .sort-hint{padding-block:4px;margin-bottom:7px}
.wallet-columns{grid-template-columns:minmax(0,2.08fr) minmax(220px,1fr)}
.wallet-columns aside{background:#312e29;align-self:start}
[data-view="上下分申请"] .subfilters{margin-bottom:6px}
[data-view="总报表"] .subfilters{margin-bottom:2px}
[data-view="上下分申请"] th,[data-view="总报表"] th,.wallet-columns th{height:36px;padding:5px 3px}
[data-view="上下分申请"] table,[data-view="总报表"] table,.wallet-columns table{table-layout:fixed}
[data-view="上下分申请"] table{min-width:1460px}

.wallet-columns table{min-width:860px}
[data-page="现场监控"] .monitor-columns label{height:31px}
[data-page="现场监控"] .monitor-columns input{width:58%;height:26px;border-color:#494239}
[data-page="现场监控"] .monitor-columns section{min-width:119px}
@media(max-width:1150px){.wallet-columns{grid-template-columns:minmax(0,1fr)}}

nav button[data-action="navigate"]{padding-top:3px;padding-bottom:13px}
nav button.active{background:#312e29}
.sidebar{padding-inline:13px;padding-top:31px}
[data-page="现场监控"] .monitor-columns label{justify-content:flex-end;gap:12px;padding-right:11px}
[data-page="现场监控"] .monitor-columns label span{flex:0 0 25px}
[data-page="现场监控"] .monitor-num{font-weight:bold;text-shadow:0 1px 1px #393c41}
.monitor-num.n0{background:#f5e01b;color:#524f19}
@media(max-width:1400px){.sidebar{padding-inline:9px}.pagination{flex-wrap:wrap}.pagination .count{white-space:nowrap}}

/* Column proportions measured from the archived header. */
[data-view="总报表"] th:nth-child(1){width:9.770%}
[data-view="总报表"] th:nth-child(2){width:10.830%}
[data-view="总报表"] th:nth-child(3){width:9.888%}
[data-view="总报表"] th:nth-child(4){width:8.240%}
[data-view="总报表"] th:nth-child(5){width:10.124%}
[data-view="总报表"] th:nth-child(6){width:8.593%}
[data-view="总报表"] th:nth-child(7){width:9.653%}
[data-view="总报表"] th:nth-child(8){width:5.180%}
[data-view="总报表"] th:nth-child(9){width:9.417%}
[data-view="总报表"] th:nth-child(10){width:9.064%}
[data-view="总报表"] th:nth-child(11){width:9.241%}

/* Column proportions measured from the archived header. */
[data-view="上下分申请"] th:nth-child(1){width:4.884%}
[data-view="上下分申请"] th:nth-child(2){width:4.765%}
[data-view="上下分申请"] th:nth-child(3){width:4.765%}
[data-view="上下分申请"] th:nth-child(4){width:4.765%}
[data-view="上下分申请"] th:nth-child(5){width:4.765%}
[data-view="上下分申请"] th:nth-child(6){width:4.765%}
[data-view="上下分申请"] th:nth-child(7){width:11.078%}
[data-view="上下分申请"] th:nth-child(8){width:4.765%}
[data-view="上下分申请"] th:nth-child(9){width:4.765%}
[data-view="上下分申请"] th:nth-child(10){width:4.765%}
[data-view="上下分申请"] th:nth-child(11){width:4.765%}
[data-view="上下分申请"] th:nth-child(12){width:4.765%}
[data-view="上下分申请"] th:nth-child(13){width:4.765%}
[data-view="上下分申请"] th:nth-child(14){width:5.360%}
[data-view="上下分申请"] th:nth-child(15){width:5.658%}
[data-view="上下分申请"] th:nth-child(16){width:4.169%}
[data-view="上下分申请"] th:nth-child(17){width:4.527%}
[data-view="上下分申请"] th:nth-child(18){width:11.912%}

/* Column proportions measured from the archived header. */
.wallet-columns th:nth-child(1){width:4.837%}
.wallet-columns th:nth-child(2){width:17.678%}
.wallet-columns th:nth-child(3){width:9.675%}
.wallet-columns th:nth-child(4){width:9.587%}
.wallet-columns th:nth-child(5){width:9.763%}
.wallet-columns th:nth-child(6){width:9.675%}
.wallet-columns th:nth-child(7){width:9.587%}
.wallet-columns th:nth-child(8){width:9.763%}
.wallet-columns th:nth-child(9){width:9.675%}
.wallet-columns th:nth-child(10){width:9.763%}

/* Align text baselines inside the measured header bands. */
[data-view="上下分申请"] table{width:calc(100% - 12px)}
[data-view="上下分申请"] th{padding-top:1px;padding-bottom:9px}
[data-view="总报表"] th{padding-top:1px;padding-bottom:9px}
.wallet-columns th{padding-top:0;padding-bottom:13px}
.wallet-columns aside{padding-left:12px}.wallet-columns h3{margin-top:0}
[data-page="现场监控"] .monitor-columns label{padding-right:18px}

[data-view="上下分申请"] .filter-actions{display:flex;gap:10px;flex-basis:100%;flex-wrap:wrap}
