:root{font-family:Leelawadee UI,Tahoma,Noto Sans Thai,system-ui,sans-serif;color:#193935;background:#f7f8f5;line-height:1.58;--forest: #164c46;--ink: #193935;--muted: #556b64;--line: #d6dfd8;--paper: #fff}*{box-sizing:border-box}body{margin:0;min-width:320px}a{color:var(--forest);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ac7d32;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.8rem,3.2vw,2.65rem);line-height:1.32;letter-spacing:-.045em}h2{font-size:1.55rem;line-height:1.4;letter-spacing:-.025em}.app{min-height:100vh;display:flex;flex-direction:column}.masthead{background:#fff;border-top:4px solid var(--forest);border-bottom:1px solid var(--line)}.masthead-inner,.site-footer{width:min(1140px,90vw);margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:1rem}.masthead-inner{min-height:80px}.masthead-actions{display:flex;align-items:center;gap:clamp(10px,2vw,24px);white-space:nowrap;font-size:.93rem}.service-home{width:min(1000px,90vw);margin:clamp(42px,9vh,96px) auto}.service-home h1{margin-bottom:clamp(22px,4vw,38px)}.service-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.4vw,28px)}.service-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(26px,4vw,46px);border-radius:16px;border:1px solid #c8d6cb;background:#fff;color:var(--ink)}.service-choice:hover{text-decoration:none;border-color:var(--forest);box-shadow:0 5px 20px #173a3012}.service-choice h2{font-size:clamp(1.55rem,3vw,2.2rem)}.service-choice p{color:var(--muted);margin:14px 0 32px;max-width:27em}.service-arrow{display:grid;place-items:center;height:42px;width:42px;border-radius:50%;background:#e9f0e9;color:var(--forest);font-size:1.4rem;margin-top:auto}.cgd-choice{background:var(--forest);border-color:var(--forest);color:#fff}.cgd-choice p{color:#deebe2}.cgd-choice .service-arrow{color:#fff;background:#ffffff20}@media(min-width:701px)and (max-width:1010px){.service-choice{padding:24px 18px}.service-choice h2{font-size:1.5rem}}.brand{display:flex;align-items:center;gap:13px;color:var(--ink);font-size:1rem;font-weight:700}.brand:hover{text-decoration:none}.brand img,.document-head img{object-fit:contain;background:#fff}.brand small,.staff-row small{display:block;font-size:.8rem;font-weight:400;color:var(--muted)}.site-footer{border-top:1px solid var(--line);padding-block:16px 24px;font-size:.8rem;color:var(--muted);margin-top:auto}.login-layout{width:min(1030px,90vw);margin:clamp(32px,7vh,78px) auto;display:grid;grid-template-columns:1fr 1.05fr}.intro{isolation:isolate;position:relative;overflow:hidden;background:#174e47;color:#fff;border-radius:18px 0 0 18px;min-height:480px}.intro-copy{position:relative;z-index:1;padding:clamp(30px,4.3vw,62px)}.intro h1{font-size:clamp(3rem,4.4vw,4.25rem);font-weight:650;line-height:1.12;letter-spacing:-.055em}.intro p{max-width:21em;color:#e5eee8;margin-top:1.2rem;font-size:1.03rem}.paper-art{position:absolute;right:-38px;bottom:-40px;width:295px;height:245px;transform:rotate(-13deg)}.paper-back,.paper-front{position:absolute;width:215px;height:270px;border-radius:5px;border:1px solid #abcdbe}.paper-back{top:0;left:3px;background:#719b89;transform:rotate(-10deg)}.paper-front{left:38px;background:#e6e9d8;padding:28px 20px;box-shadow:-8px 10px #123e3720}.paper-front i,.paper-front b,.paper-front span{display:block;background:#6c8e80;height:5px;width:52%;border-radius:1px}.paper-front b{width:30%;height:3px;margin-top:9px;background:#a1b3a3}.paper-lines{margin-top:25px;height:112px;border-block:2px solid #789a87;background:linear-gradient(90deg,transparent 63%,#8fa58f 63.5%,transparent 64.5%),repeating-linear-gradient(0deg,transparent 0 17px,#a9b9a6 17px 18px)}.paper-front span{margin:12px 0 0 auto;width:26%}.login-panel{background:#fff;border:1px solid var(--line);border-left:0;border-radius:0 18px 18px 0;padding:clamp(28px,4vw,56px)}.login-panel h2{font-size:2rem}.subtle{color:var(--muted);margin:.4rem 0 1.5rem}.field{margin-bottom:1rem}label{display:block;font-size:.9rem;font-weight:650;margin-bottom:.35rem}input,select{display:block;width:100%;min-width:0;min-height:46px;border:1px solid #adbbb1;border-radius:7px;padding:8px 12px;background:#fff;color:var(--ink)}.password-field{position:relative}.password-field input{padding-right:66px}.password-field button{position:absolute;top:50%;right:4px;transform:translateY(-50%);border:0;background:transparent;color:var(--forest);padding:8px;font-size:.83rem;font-weight:600}.primary,.secondary,.logout{display:inline-flex;justify-content:center;align-items:center;border-radius:7px;padding:9px 17px;min-height:42px;font-weight:600;text-align:center}.primary{background:var(--forest);border:1px solid var(--forest);color:#fff}.primary:hover{background:#0c3c36}.secondary,.logout{border:1px solid #bac8bf;color:var(--forest);background:#fff}.secondary:hover,.logout:hover{background:#edf3ef;text-decoration:none}.logout{flex-shrink:0;white-space:nowrap}.wide{width:100%;justify-content:space-between;margin-top:6px}.wide span{font-size:1.2rem}.help{color:var(--muted);font-size:.85rem;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.problem,.notice{padding:10px 13px;border-radius:6px;margin:12px 0}.problem{color:#7e332f;background:#f9ece9}.notice{color:#245241;background:#e8f2e9}.text-button,.plain{border:0;background:transparent;padding:0}.text-button{color:inherit;text-decoration:underline;margin-left:12px}.content,.action-error{width:min(1000px,90vw);margin:38px auto 60px}.action-error{margin-block:8px 0}.narrow{width:min(620px,90vw)}.card,.period-card,.certificate{background:#fff;border:1px solid var(--line);border-radius:12px}.card{padding:clamp(18px,3vw,32px);margin-top:18px}.card h2{margin-bottom:16px}.person-heading,.list-heading,.period-link,.staff-row,.slip-tools,.entry-picker,.actions,.account-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-actions,.actions{flex-wrap:wrap;justify-content:flex-start}.eyebrow{font-size:.9rem;font-weight:600;margin-bottom:5px;color:#426851}.person-heading{margin-bottom:20px}.person-heading .subtle{margin-bottom:0}.list-heading{padding:20px 24px;border-bottom:1px solid var(--line);flex-wrap:wrap}.list-heading h2{font-size:1.2rem}.list-heading small{color:var(--muted);font-size:.82rem;font-weight:400;margin-left:.4rem}.year-filter,.search-form>div{display:flex;align-items:center;gap:10px}.year-filter label,.entry-picker label{margin-bottom:0;white-space:nowrap}.year-filter select,.entry-picker select{width:auto;min-height:38px}.periods{list-style:none;margin:0;padding:0}.periods li+li,.staff-row+.staff-row{border-top:1px solid #e5ebe5}.period-link{padding:14px 24px;justify-content:flex-start;color:var(--ink)}.period-link:hover{background:#f1f6ef}.period-link strong{font-weight:500}.month-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:9px;background:#e5efe8;color:var(--forest);font-variant-numeric:tabular-nums;font-weight:650}.open-slip{margin-left:auto;font-size:.88rem;color:var(--forest)}.back{font-size:.9rem;font-weight:600;display:inline-block;margin-bottom:16px;color:var(--forest)}.slip-tools .back{margin:0}.staff-row{padding:12px 0}.loading,.empty{padding:25px;color:var(--muted)}.empty h3{color:var(--ink)}.empty p{margin-top:5px}.slip-page{max-width:850px}.slip-tools,.entry-picker{margin-bottom:16px}.entry-picker{justify-content:flex-end}.certificate{padding:clamp(16px,4vw,45px);position:relative;isolation:isolate;overflow:hidden}.document-head{display:flex;align-items:center;justify-content:center;gap:15px;text-align:center}.document-head h1{font-size:clamp(1.1rem,2.4vw,1.6rem);line-height:1.4}.document-head p,.document-period{font-weight:600}.document-period{text-align:center;border-bottom:2px solid var(--forest);padding:10px 0 16px}.details{display:grid;grid-template-columns:1fr 1fr;margin:16px 0;gap:7px}.details div{display:flex;flex-wrap:wrap;column-gap:8px}.details dt{color:var(--muted);font-size:.9rem}.details dd{margin:0;font-weight:600;overflow-wrap:anywhere}.amounts{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.93rem}.amounts th,.amounts td{border-bottom:1px solid var(--line);padding:7px 9px;text-align:left;overflow-wrap:anywhere}.amounts thead th{background:#e9f0e9;color:#224b3c}.amounts:not(.numbered-amounts) :is(th,td):nth-child(2n),.numbered-amounts :is(thead,tbody) :is(th,td):is(:nth-child(3),:nth-child(5)),.numbered-amounts tfoot td{text-align:right;font-variant-numeric:tabular-nums;width:18%}.amounts:not(.numbered-amounts) :is(th,td):nth-child(3),.numbered-amounts :is(thead,tbody) :is(th,td):nth-child(4){border-left:1px solid var(--line)}.numbered-amounts :is(thead,tbody) :is(th,td):first-child{text-align:center;width:6%;padding-inline:2px}.print-time{margin-top:5px;text-align:right;font-size:.8rem;color:var(--muted)}.amounts tfoot{font-weight:650}.net{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:2px solid var(--forest);padding:10px;margin-top:16px;background:#f0f5ed}.net span{font-size:1.5rem;font-weight:650;font-variant-numeric:tabular-nums}.net small{font-size:.85rem}.document-note{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:14px;font-size:.9rem}.watermark{position:absolute;z-index:1;left:50%;top:56%;transform:translate(-50%,-50%) rotate(-20deg);text-align:center;pointer-events:none;color:#3a4c4124;font-size:clamp(1.6rem,3.8vw,2.8rem);line-height:1.22;font-weight:800;white-space:nowrap}.direct-amounts{width:100%;border-collapse:collapse;font-size:.91rem;margin-block:12px}.period-sources{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}.period-sources a{padding:8px 14px;border:1px solid var(--line);border-radius:7px;background:#fff}.period-sources a[aria-current]{background:var(--forest);border-color:var(--forest);color:#fff;font-weight:600}.direct-amounts th,.direct-amounts td{padding:4px 9px;border-bottom:1px solid var(--line)}.direct-amounts thead{background:#eff3ee}.direct-amounts th{text-align:left}.direct-amounts td:first-child{width:9%;text-align:center}.direct-amounts td:last-child,.direct-amounts th:last-child,.direct-amounts tfoot th{text-align:right;font-variant-numeric:tabular-nums}.direct-amounts td:last-child{white-space:nowrap}.direct-amounts tfoot{font-weight:650}.payer-signature{display:flex;justify-content:flex-end;align-items:flex-end;gap:8px;margin-top:20px}.signature-line{width:120px;height:35px;border-bottom:1px dotted var(--ink);text-align:center}.signature-line img{height:100%;max-width:100%;object-fit:contain}@media(max-width:700px){.service-choices{grid-template-columns:1fr}.service-home{margin-block:32px}.service-choice{padding:23px 56px 23px 24px}.service-choice p{margin-bottom:0}.service-arrow{position:absolute;top:24px;right:14px;width:32px;height:32px}.direct-amounts{font-size:.8rem}.direct-amounts td,.direct-amounts th{padding:4px 3px}.masthead-actions{font-size:.8rem;flex-wrap:wrap;justify-content:flex-end}.masthead-inner{min-height:68px}.brand{font-size:.85rem;gap:8px}.brand img{width:34px;height:42px}.logout{font-size:.78rem;padding-inline:8px}.login-layout{display:block;margin-block:20px 28px}.intro{min-height:0;border-radius:12px 12px 0 0}.intro-copy{padding:22px 24px}.intro h1{font-size:2rem}.intro h1 br{display:none}.intro p{font-size:.85rem;margin-top:6px;max-width:72%}.paper-art{transform:rotate(-13deg) scale(.44);transform-origin:right bottom;right:-4px;bottom:-35px}.login-panel{border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;padding:22px 24px}.login-panel h2{font-size:1.5rem}.person-heading{align-items:flex-start;flex-direction:column}.period-link,.list-heading{padding-inline:15px}.content{margin-top:24px}.site-footer{font-size:.7rem;flex-wrap:wrap;gap:4px}.staff-row{flex-wrap:wrap}.amounts{font-size:.76rem}.amounts th,.amounts td{padding:5px 3px}.amounts:not(.numbered-amounts) :is(th,td):nth-child(2n),.numbered-amounts :is(thead,tbody) :is(th,td):is(:nth-child(3),:nth-child(5)){width:20%}.details{grid-template-columns:1fr;font-size:.85rem}.entry-picker{flex-wrap:wrap}}@media(max-width:480px){.intro h1 br{display:initial}.intro p{max-width:none}.paper-art{display:none}}@page{size:A4 portrait;margin:12mm}@media print{.direct-amounts{font-size:9.5pt;line-height:1.2;margin-block:2mm}.direct-amounts td,.direct-amounts th{padding:.7mm 2mm}.direct-amounts thead{display:table-header-group}.direct-amounts tfoot{display:table-row-group}.payer-signature{margin-top:3mm;font-size:10pt;break-inside:avoid}:root,body,.app{background:#fff;color:#000;min-height:0;display:block}.masthead,.site-footer,.slip-tools,.entry-picker,.action-error{display:none!important}.content.slip-page,.certificate{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0}.certificate{overflow:visible}.document-head h1{font-size:17pt}.document-head img{height:15mm;width:12mm}.details{grid-template-columns:1fr 1fr;font-size:10pt;margin:3mm 0}.amounts{font-size:10pt}.amounts th,.amounts td{padding:1mm 2mm}.amounts thead{display:table-header-group}.amounts tfoot{display:table-row-group}tr,.net,.document-note{break-inside:avoid}.net{margin-top:3mm;padding:2mm}.net span{font-size:15pt}.watermark{color:#ddd;opacity:.7;font-size:30pt}.certificate{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
