*{box-sizing:border-box}[hidden]{display:none!important}:root{--blue:#070087;--line:#bdc1ce;--pale:#dceafd}body{margin:0;font:18px Arial,'Microsoft YaHei',sans-serif;color:#071240;background:var(--pale)}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid #adb2b5;border-radius:0;background:#fff;padding:7px 13px;color:inherit;box-shadow:1px 2px 1px #bbb}button:hover{filter:brightness(.94)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #4c8fff;outline-offset:2px}.blue{background:var(--blue);color:#fff}.gold{background:#ae791f;color:white}.soft-green{background:#6a9d58;color:#fff}.green-button{background:#278323;color:#fff}.olive{background:#86834e;color:#fff}input{border:1px solid #aeb8c5;background:#e0ecfc;padding:9px;border-radius:4px;color:#0b124b;min-width:0}.orange{color:#db7b00}.red{color:red}.green{color:#137600}.announcement{height:26px;display:flex;align-items:center;background:var(--blue);color:white;font-size:17px;overflow:hidden;white-space:nowrap;gap:30px}.announcement>div{overflow:hidden;text-overflow:clip}.demo-label{font-size:12px;background:#fff;color:#070087;padding:3px 10px;flex-shrink:0}header{height:140px;display:flex;align-items:center;gap:15px;padding:7px 14px;background:#fff;color:var(--blue);overflow:hidden}.brand{font-size:62px;font-weight:bold;letter-spacing:-2px;width:150px;text-align:center;flex-shrink:0}.accounts{display:grid;grid-template-columns:1fr 1fr;gap:2px 20px;width:330px;flex-shrink:0}.accounts fieldset{margin:0;border:1px solid #aaa;border-radius:4px;height:57px;text-align:center;padding:0 8px 5px}.accounts legend{font-size:19px;text-align:left;color:#3b546d;padding:0 4px}.accounts span{font-size:23px}.period{border:2px solid var(--blue);height:130px;min-width:355px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 6px}.period>div{text-align:center;font-size:21px;color:#00008b}.period>span{font-size:22px}.period strong{font-size:23px;white-space:nowrap;color:#00008b}.period b{font-weight:normal;color:#b76400}nav{display:flex;align-items:center;justify-content:space-around;flex:1;gap:16px;height:100%;min-width:900px}nav button{color:var(--blue);background:none;border:0;box-shadow:none;padding:8px 0;white-space:nowrap;font-size:21px}nav svg{display:block;margin:0 auto 10px;width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}nav button.green{color:#087000}nav button.red{color:#b40000}main{display:flex;gap:8px;margin:15px auto 0;width:93%;max-width:1900px;min-height:82vh}.history{width:295px;flex-shrink:0;background:white;min-height:780px}.history-head{display:flex;align-items:center;justify-content:space-around;gap:7px;padding:12px 6px;border-bottom:1px dashed #aaa;height:61px;color:#000;font-size:19px}.history-head>div{text-align:center}.history-head button{padding:5px 10px;font-size:23px;white-space:nowrap}#history-total{color:red}.history-item{background:#fff;padding:2px 4px;color:#000;line-height:18px;cursor:pointer;border-bottom:1px solid #fff;font-size:14px;word-break:break-all;text-align:left}.history-item.cancelled,tr.cancelled td{background:#ffe0e0}.slip-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item:not(.cancelled) .slip-text{background:#a0e5ff}.slip-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.slip-foot button{font-size:14px;padding:1px 8px}.red-button{background:#b92929;color:#fff}.history-head button{font-size:16px;padding:4px 10px}.history-item.selected{box-shadow:inset 4px 0 #070087}.history-item small{color:var(--blue);font-size:16px}.workspace{flex:1;min-width:0}.tabs{display:flex;background:var(--blue);height:57px;align-items:stretch;padding:0 15px;gap:0;margin-bottom:13px}.tabs button{border:0;box-shadow:none;color:#fff;background:none;font-size:17px;padding:10px 13px;border-bottom:4px solid transparent}.tabs button.active{border-color:white}.replacebar{display:flex;align-items:center;gap:7px;background:white;padding:14px 12px;border-bottom:1px dashed #aaa;min-height:71px}.replacebar label{display:flex;align-items:center;gap:10px}.replacebar input{width:280px;height:45px}.replacebar button{font-size:23px}.labelbar{background:white;display:flex;justify-content:space-between;align-items:center;padding:11px 17px;min-height:62px}.labelbar>button{font-size:21px}#entry-labels{display:flex;gap:6px;flex-wrap:wrap}#entry-labels button{border:1px solid #bbb;box-shadow:none;padding:4px 10px;font-size:14px}#entry-labels button.current{background:#e0ecfc;border-color:#080088}.editor{border:1px solid #929aaa;margin-top:12px;background:#e9e8ca}.editor textarea{display:block;height:247px;width:100%;resize:vertical;border:0;background:transparent;padding:10px 15px;color:#0b124b;font-size:21px;line-height:1.5;border-radius:0}.editor textarea::placeholder{color:#878878}.editor-footer{height:48px;display:flex;align-items:center;color:#52657b;background:white;padding:4px 15px;font-size:22px}.editor-footer button{box-shadow:none;border:1px dashed #bbb;background:#fafafa;font-size:25px;padding:0 8px;color:#8d9391;margin-right:5px}.toolbar{display:flex;gap:12px;align-items:center;background:white;margin-top:10px;padding:12px;flex-wrap:wrap;min-height:100px}.primary-buttons{display:flex;gap:22px;align-items:center}.primary-buttons button{padding:5px 12px;font-size:20px}.totals{font-size:18px;min-width:74px;color:#193b73}.totals b{font-weight:normal;color:#cc3e1f}.toolbar fieldset{border:1px solid #aaa;border-radius:5px;height:70px;min-width:114px;flex:1;margin:0;padding:10px 15px 9px}.toolbar legend{white-space:nowrap;font-size:16px;color:#50637d;padding:0 3px}.switch{border:0;border-radius:25px;background:#c6c6c6;box-shadow:none;height:31px;width:61px;padding:0;display:flex;align-items:center;gap:6px;color:white;font-size:16px}.switch i{width:24px;height:24px;border-radius:50%;background:#fff;margin-left:4px}.switch.on{background:#2d913e;flex-direction:row-reverse}.switch.on i{margin:0 4px 0 0}.warning{display:flex;align-items:center;gap:10px;max-width:210px;line-height:1.1}.warning input{width:112px;text-align:center;height:46px}.view{background:white;padding:20px;min-height:500px}.view h2{font-size:24px;font-weight:normal;margin:0 0 18px}.view p{font-size:17px;color:#52657b;line-height:1.7}.view-head{display:flex;justify-content:space-between}.empty{text-align:center;padding:80px 15px;color:#7c8797;font-size:17px}.file-drop{display:flex;align-items:center;justify-content:center;position:relative;border:2px dashed #a3b7d3;height:150px;max-width:650px;cursor:pointer;background:#eef5ff;color:#123b7a}.file-drop input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;background:white;font-size:16px}th,td{border:1px solid #c4cede;padding:10px;text-align:center}th{background:#e5edfb;color:#172778}tr:nth-child(even) td{background:#f7f9fd}.preview-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#fff;border-bottom:1px solid #bbc8dc;margin-top:12px;font-size:18px}.preview-title span{font-size:14px;color:#666}.preview-title button{font-size:15px;padding:5px 8px}#preview .table-wrap{max-height:330px}.demo-note{color:#686c7d!important}.info-grid{display:grid;grid-template-columns:180px 1fr;max-width:800px;border:1px solid #ccd5e2}.info-grid dt,.info-grid dd{padding:15px;margin:0;border-bottom:1px solid #ccd5e2}.info-grid dt{background:#edf2fb}.lottery-balls{display:flex;justify-content:center}.lottery-balls span{border-radius:50%;width:30px;height:30px;background:#070087;color:white;display:grid;place-items:center;font-size:16px}.draw-table{width:100%;border-collapse:collapse;background:#fff}.draw-table th,.draw-table td{border:1px solid #9eb4dc;text-align:center;padding:8px 6px}.draw-table th{background:#070087;color:#fff}.draw-table td.draw-round{color:#00008b;font-weight:700}.draw-table tbody tr:nth-child(odd){background:#f7fbff}.line-list{display:grid;gap:10px;max-width:500px}.line-list button{display:flex;justify-content:space-between}dialog{padding:0;border:1px solid #a5b1c4;border-radius:4px;max-width:700px;width:90%;color:#0b124b;box-shadow:0 12px 60px #0004}dialog::backdrop{background:#0006}.modal-head{display:flex;justify-content:space-between;align-items:center;background:#070087;color:white;padding:10px 15px}.modal-head button{background:none;border:0;color:white;box-shadow:none;font-size:25px;padding:0 4px}#modal-body{padding:22px;font-size:17px;line-height:1.8;max-height:65vh;overflow:auto}#modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:0 22px 18px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#152b51;color:white;border-radius:5px;padding:12px 22px;z-index:100;box-shadow:0 5px 20px #0003;font-size:16px}.invalid{color:#b62020}.info-title{border-bottom:1px dashed #bbb;padding-bottom:12px;margin-bottom:15px}
.siding.view{padding:8px;background:#dceafd;font-size:13px;overflow:auto}.kx{display:flex;gap:8px;align-items:stretch;min-width:920px}.kx-side{width:360px;flex:0 0 360px;display:flex;flex-direction:column;gap:8px}.kx-main{flex:1;min-width:620px;background:#fff;border:1px solid #9eb4dc;display:flex;flex-direction:column}.s-box,.s-send{border:1px solid #9eb4dc;background:#fff}.s-box{flex:1;display:flex;flex-direction:column;min-height:240px}.s-box-title{background:#070087;color:#fff;font-weight:700;padding:4px 8px;font-size:14px}.s-box textarea{flex:1;width:100%;min-height:180px;border:0;resize:none;padding:6px 8px;background:#fff;white-space:pre;overflow:auto;font:13px/1.7 Consolas,"Courier New",monospace}.s-send-body{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;padding:6px 6px;background:#e8f1ff}.s-send-body label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.s-send-stat{margin-left:auto;line-height:1.4;min-width:78px;font-size:13px}.kx-btn{background:#070087;color:#fff;border:1px solid #070087;box-shadow:none;padding:3px 10px;font-size:13px;white-space:nowrap}.kx-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid #b1d0f6}.kx-tabs button{border:0;border-right:1px solid #d5e4f7;box-shadow:none;background:#fff;color:#071240;padding:7px 2px;font-size:14px;white-space:nowrap}.kx-tabs button:last-child{border-right:0}.kx-tabs button.on{background:#070087;color:#fff}.kx-form{padding:0}.kx-split,.kx-line,.kx-center{display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:1px solid #d5e4f7}.kx-line{justify-content:space-between}.kx-line>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.kx-split>div{flex:1;display:flex;justify-content:center;align-items:center;gap:4px;white-space:nowrap}.kx-center{justify-content:center;white-space:nowrap}.kx-line>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.kx-red{color:#d00000}.s-pos-names,.s-pos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;text-align:center;padding:6px 12px}.s-pos{padding-top:0;border-bottom:1px solid #d5e4f7}.s-pos input,.siding .s-mini,.siding .s-mid,.siding .s-tiny,#s-stake{height:26px;padding:1px 4px;background:#e0ecfc;border:1px solid #aeb8c5;border-radius:2px;font-size:13px;color:#0b124b}.s-mini{width:64px}.s-mid{width:72px}.s-tiny{width:32px}#s-stake{width:52px}.s-send-stat{margin-left:auto;line-height:1.35;min-width:64px;font-size:12px}.s-he{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 8px;border-bottom:1px solid #d5e4f7}.s-he-row{display:flex;align-items:center;gap:2px;justify-content:center;white-space:nowrap}.s-he-row .s-mini{width:48px}.kx-actions{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 8px 12px}.kx-btns{display:flex;gap:16px;justify-content:center}#s-status{color:#52657b;font-size:13px;min-height:16px}.siding label{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.siding input[type=checkbox]{width:14px;height:14px;padding:0}
.member{background:#fff;border:1px solid #9eb4dc;min-height:420px}.member-info{display:flex;gap:28px;align-items:center;padding:14px 16px;background:#e8f1ff;border-bottom:1px solid #b1d0f6}.member-info label{color:#52657b;margin-right:8px}.member-info b{color:#071240;font-weight:700}.member-head,.member-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;text-align:center}.member-head{background:#eef5ff;color:#071240;font-weight:700;min-height:42px;border-bottom:1px solid #b1d0f6}.member-head div{white-space:nowrap}.member-row{min-height:40px;border-bottom:1px solid #d5e4f7}.member-row.odd{background:#f7fbff}.member-same{font-weight:400;margin-left:8px}.blue-num{color:#070087}.member select{height:28px;background:#e0ecfc;border:1px solid #aeb8c5;color:#0b124b;max-width:120px}.member-save{padding:16px}.member-save button{min-width:72px}
#modal-body label{display:flex;gap:8px;align-items:center;margin:8px 0}#modal-body input,#modal-body select{flex:1;height:36px}header{overflow:visible}
body:not(.ready) .announcement,body:not(.ready) header,body:not(.ready) main{display:none}
#gate{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(#070087,#12306b 42%,#dceafd);padding:24px}
body.ready #gate{display:none}
.gate-card{width:min(420px,100%);background:#fff;border-radius:8px;padding:28px 26px 22px;box-shadow:0 16px 50px #0004;color:#071240}
.gate-card .brand{width:auto;font-size:54px;line-height:1;margin-bottom:4px}
.gate-card h1{margin:0 0 16px;font-size:22px;font-weight:normal;color:#070087}
.gate-card label{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;color:#3b546d;font-size:15px}
.gate-card input,.gate-card select{height:42px;width:100%}
#gate-msg{min-height:24px;margin:4px 0 10px;color:#b62020;font-size:15px}
#gate-go{width:100%;height:44px;font-size:18px}
#gate-go:disabled{opacity:.6;cursor:wait}.line-list{max-width:720px}
.txt-import{padding:0;background:#fff}.txt-tool{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#e8f1ff;border-bottom:1px solid #b1d0f6;padding:8px 12px}.txt-tool label{display:flex;align-items:center;gap:6px}.txt-tool input{width:88px;height:34px;padding:4px 6px}#txt-file{width:220px;background:#fff}.txt-stat b{color:#c00;font-weight:normal}.txt-help{padding:10px 12px 4px;font-size:18px;line-height:1.7}.txt-help span{color:#b62020}.txt-list{min-height:220px;max-height:460px;overflow:auto;padding:8px 12px}.txt-table{width:max-content;min-width:100%;border-collapse:collapse}.txt-table th,.txt-table td{border:1px solid #d5e4f7;padding:6px 8px;text-align:center;font-size:15px;white-space:nowrap}.txt-table th{background:#f3f8ff;color:#666;font-weight:normal}.txt-table td.bad{color:#888;text-decoration:line-through}.rec-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;padding:12px;background:#eef5ff;border-bottom:1px solid #b1d0f6}.rec-filters label{display:flex;flex-direction:column;gap:4px;font-size:16px}.rec-filters label:last-of-type{flex-direction:row;align-items:center;flex-wrap:wrap}.rec-filters input,.rec-filters select{background:#fff;height:36px}#rec-text{width:220px}#rec-from,#rec-to{width:210px}#rec-search{height:36px;min-width:46px}.rec-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:8px 0;padding:8px;background:#f4f8ff;color:#17315c;font-size:15px}.rec-pager b{font-weight:normal;color:#c00}.rec-pager button{background:#fff;border:1px solid #c5d4ea;box-shadow:none;min-width:32px;height:32px;padding:0 8px;border-radius:4px}.rec-pager button.current{background:#1677ff;color:#fff;border-color:#1677ff}.rec-pager button:disabled{opacity:.4}.rec-pager select{height:32px;background:#fff}.line-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px;padding:10px;background:#eef5ff;border-bottom:1px solid #b1d0f6}.line-filters input,.line-filters select{height:34px;background:#fff}.line-filters input{width:100px}.link{background:none;border:0;box-shadow:none;color:#070087;padding:0;text-decoration:underline}tr.sum-row td{background:#d2f7f7}.report-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 12px;color:#17315c}.report-links button{background:none;border:0;box-shadow:none;color:#070087;padding:0 2px}.report-links button.current{color:#c00}.report-links .sep{color:#9aa6b8}
@media(min-width:1600px){.editor textarea{height:247px}header{gap:15px}nav{gap:14px}}@media(max-width:1550px){header{height:auto;min-height:130px;flex-wrap:wrap;overflow:visible}.brand{width:120px}.accounts{width:310px}.period{min-width:320px;height:112px}nav{width:100%;min-width:0;flex-basis:100%;gap:10px}nav button{font-size:17px}nav svg{width:40px;height:40px;margin-bottom:5px}.toolbar{gap:9px}.primary-buttons{gap:10px}.toolbar fieldset{flex:0 1 auto}.replacebar input{width:220px}}@media(max-width:850px){header{gap:10px;padding:10px}.brand{font-size:45px;width:85px}.accounts{width:240px;gap:2px 10px}.accounts span{font-size:19px}.accounts legend{font-size:16px}.period{flex:1;min-width:260px;height:100px}nav{flex-wrap:wrap;justify-content:flex-start}nav button{width:calc(20% - 10px);font-size:14px}nav svg{width:33px;height:33px}.announcement{font-size:13px}main{width:97%;margin-top:10px;flex-direction:column}.history{width:100%;min-height:0;max-height:180px;overflow:auto}.history-head{height:50px;justify-content:flex-start}.history-head>div{margin-right:auto}.history-item{padding:5px 10px;line-height:1.4}.replacebar{flex-wrap:wrap}.replacebar input{width:180px}.tabs{padding:0 4px;height:50px}.tabs button{padding:8px 10px;font-size:15px}.editor textarea{height:250px}.toolbar{gap:14px}.toolbar fieldset{min-width:100px}.preview-title{flex-wrap:wrap}.history-head button{font-size:18px}.info-grid{grid-template-columns:120px 1fr}body{font-size:16px}}@media(max-width:480px){.period{width:100%;flex-basis:100%;height:75px}.replacebar label{width:100%}.replacebar input{flex:1}.toolbar .warning{max-width:100%}.primary-buttons{gap:10px}.editor textarea{font-size:18px}nav button{width:calc(25% - 10px)}.preview-title button{font-size:14px}}
@media(max-width:760px){
html,body{max-width:100%;overflow-x:hidden}
body{font-size:15px}
.announcement{height:auto;min-height:28px;font-size:13px;gap:8px;padding:4px 8px;white-space:normal}
.announcement>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header{height:auto;min-height:0;flex-wrap:wrap;align-items:stretch;gap:8px;padding:8px;overflow:visible}
.brand{font-size:28px;width:auto;letter-spacing:0;line-height:1}
.accounts{width:100%;flex:1 1 100%;grid-template-columns:1fr 1fr;gap:6px}
.accounts fieldset{height:auto;min-height:46px;padding:0 6px 4px}
.accounts legend{font-size:13px}
.accounts span{font-size:16px}
.period{width:100%;flex:1 1 100%;min-width:0;height:auto;padding:8px 10px;gap:8px}
.period>span,.period>div{font-size:16px}
.period strong{font-size:18px}
nav{min-width:0;width:100%;flex:1 1 100%;height:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px 0;justify-content:stretch}
nav button{width:auto;font-size:12px;line-height:1.2;padding:4px 0;white-space:normal}
nav svg{width:26px;height:26px;margin-bottom:2px}
main{width:100%;max-width:100%;margin:8px 0 0;flex-direction:column;gap:8px;min-height:0}
.history{width:100%;min-height:0;max-height:150px}
.history-head{height:auto;min-height:44px;padding:8px}
.history-head button{font-size:15px}
.workspace{width:100%;min-width:0}
.tabs{height:auto;overflow-x:auto;padding:0;margin-bottom:8px}
.tabs button{flex:0 0 auto;font-size:15px;padding:10px 12px}
.replacebar,.labelbar{flex-wrap:wrap;min-height:0;padding:8px;gap:8px}
.replacebar label{width:100%}
.replacebar input{width:auto;flex:1;min-width:0}
.editor textarea{height:160px;font-size:16px}
.toolbar{padding:8px;gap:8px;min-height:0}
.primary-buttons{width:100%;flex-wrap:wrap;gap:8px}
.primary-buttons button{flex:1 1 auto;font-size:16px}
.toolbar fieldset{min-width:0;flex:1 1 calc(50% - 8px);height:auto;min-height:64px;padding:8px 10px}
.toolbar .warning{width:100%;max-width:100%}
.preview-title{flex-wrap:wrap}
.kx{min-width:0;flex-direction:column}
.kx-side,.kx-main{width:100%;flex:none;min-width:0}
.siding.view{overflow:visible;padding:6px}
.s-send-body{flex-wrap:wrap}
.kx-tabs{overflow-x:auto}
.kx-tabs button{font-size:13px;padding:8px 2px}
.kx-split,.kx-line{flex-wrap:wrap;align-items:flex-start}
.kx-split>div,.kx-line>div{flex:1 1 100%;justify-content:flex-start;white-space:normal}
.s-pos{gap:4px;padding:6px}
.table-wrap,.member{overflow-x:auto}
.member-info{flex-wrap:wrap;gap:8px}
table{font-size:13px}
th,td{padding:6px 4px}
.rec-filters{gap:8px;padding:8px}
.rec-filters input,.rec-filters select{max-width:100%}
.txt-tool{padding:8px;gap:8px}
.txt-help{font-size:14px}
#txt-file{width:100%}
dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
#modal-body{padding:12px;overflow:auto}
#toast{left:8px;right:8px;width:auto;transform:none;text-align:center}
input,select,textarea{font-size:16px}
}
