@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root{--green:#17664f;--green-dark:#124b3d;--green-light:#eaf3ee;--ink:#243e35;--muted:#6a7b73;--line:#e3eae5;--bg:#f5f7f5;--white:#fff;--orange:#bb661c;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans Thai',Tahoma,sans-serif;font-size:16px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{text-decoration:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.45;font-weight:700;letter-spacing:-.5px}h2{font-size:19px;font-weight:600;line-height:1.55}h3{font-size:18px;font-weight:600}small{font-size:14px;color:var(--muted)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dbab43;outline-offset:3px}.app{min-height:100vh}.sidebar{width:244px;position:fixed;left:0;top:0;bottom:0;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 17px 17px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 14px;color:var(--green);font-size:29px;font-weight:700;line-height:1.2}.brand>span{display:flex;align-items:center;justify-content:center;width:47px;height:47px;border-radius:15px;background:var(--green);color:white}.brand small{display:block;font-size:10px;letter-spacing:1.5px;font-weight:600;margin-top:8px;color:#7c8a7e}.workspace-label{display:flex;align-items:center;gap:9px;margin:36px 10px 18px;font-size:13px;color:#829086}.sidebar nav{display:flex;flex-direction:column;gap:6px;overflow:auto}.sidebar nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:#65756d;min-height:49px;padding:12px 14px;border-radius:10px;font-size:15px;font-weight:500;flex-shrink:0}.sidebar nav button:hover{background:#f5f8f5}.sidebar nav button.active{background:var(--green);color:white;box-shadow:0 4px 10px #17664f16}.sidebar nav em{font-style:normal;font-size:12px;border-radius:6px;background:#f2e6d1;color:#7b5829;padding:0 6px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:24px}.help-button{display:flex;align-items:center;gap:12px;padding:12px;color:#7b887d;font-size:14px;background:none;border:0}.profile{display:flex;gap:10px;align-items:center;padding:17px 6px 2px;border-top:1px solid var(--line);margin-top:12px}.avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#e2ebde;color:#476637;font-size:18px;font-weight:600;flex-shrink:0}.profile b{font-size:13px;display:block}.profile small{font-size:11px;display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}.main-shell{margin-left:244px}.topbar{height:82px;padding:0 38px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{display:flex;align-items:center;gap:12px;font-size:14px;color:#819084}.crumb b{font-weight:500;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:23px}.font-button{display:flex;align-items:center;gap:7px;border:0;background:transparent;font-size:13px;color:#5f7167}.private{display:flex;align-items:center;gap:6px;color:#5d7867;font-size:12px}.mobile-menu{display:none!important}main{padding:24px 38px 10px;max-width:1650px;margin:0 auto}.modebar{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f9f1df;border:1px solid #eee1bf;border-radius:10px;padding:11px 16px;color:#806026;font-size:13px}.modebar>div:first-child{display:flex;align-items:center;gap:10px}.mode-detail{margin-left:14px;color:#897443}.modebar.real{background:#eaf4ef;border-color:#d7e8dc;color:#1c634d}.modebar.real .mode-detail{color:#537665}.segmented{display:flex;background:#fff8e8;border:1px solid #e6dabc;border-radius:7px;padding:3px;flex-shrink:0}.segmented button{background:transparent;border:0;padding:4px 11px;border-radius:5px;color:#8b783e;font-size:12px}.segmented .selected{background:white;color:#5a4821;box-shadow:0 1px 4px #6143081c}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:29px 0 25px}.eyebrow{color:#88968d;font-size:12px;font-weight:500;margin-bottom:6px}.page-heading p:last-child{color:var(--muted);font-size:14px;margin-top:6px}.heading-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:white;border:1px solid var(--green);border-radius:9px;min-height:44px;padding:10px 17px;font-size:14px;font-weight:500;white-space:normal}.button:hover{background:var(--green-dark)}.button.secondary{background:white;color:var(--ink);border-color:var(--line)}.button.secondary:hover{background:#f3f7f3}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:transparent;border-radius:8px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--green-light)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:21px 22px 17px;background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:#6a7a70}.stat-top svg{color:#899e90;flex-shrink:0}.stat strong{font-size:32px;font-weight:600;display:flex;align-items:baseline;gap:8px;margin:15px 0 9px;line-height:1.1;font-variant-numeric:tabular-nums}.stat strong small{font-size:13px;font-weight:400;color:inherit}.stat p{font-size:12px;color:#8b988f}.stat.primary{background:var(--green);border-color:var(--green);color:white;position:relative}.stat.primary .stat-top,.stat.primary .stat-top svg{color:#d5e8dc}.stat.primary p{color:#b4d3c2}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:22px;overflow:hidden;min-width:0}.card-heading{padding:23px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.card-heading p{font-size:13px;color:var(--muted);margin-top:3px}.card-heading>span{font-size:14px;color:var(--muted)}.pill{display:inline-flex;background:#f3f6f2;color:#63746a!important;font-size:12px!important;border:1px solid #e7ece6;border-radius:7px;padding:4px 10px;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:22px}.collection-body{display:flex;align-items:center;gap:32px;padding:10px 30px 25px}.ring{width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.ring>div{width:125px;height:125px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring strong{font-size:36px;line-height:1.2;font-weight:600}.ring strong small{font-size:20px;color:var(--ink);margin-left:3px}.ring span{font-size:11px;color:#8b988d;margin-top:7px}.collection-numbers{flex:1;font-size:13px;min-width:0}.collection-numbers>div{display:flex;gap:8px;align-items:center;margin:15px 0}.collection-numbers b{margin-left:auto;font-weight:600;white-space:nowrap}.dot{width:8px;height:8px;border-radius:3px;flex-shrink:0}.dot.green{background:#2d8668}.dot.amber{background:#d9b260}.total-line{padding-top:13px;border-top:1px dashed var(--line)}.collection-foot{padding:14px 24px;border-top:1px solid #edf1ec;display:flex;align-items:center;gap:23px;color:#829084;font-size:12px}.collection-foot span{display:flex;align-items:center;gap:7px}.collection-foot button{margin-left:auto}.text-link{display:inline-flex;align-items:center;gap:5px;color:var(--green);background:transparent;border:0;font-size:13px;font-weight:500;padding:5px 0}.task-card .card-heading{padding-bottom:10px}.task-item{display:flex;width:100%;align-items:center;gap:13px;padding:16px 22px;border:0;border-bottom:1px solid #eff2ee;background:white;text-align:left}.task-item:hover{background:#fbfcfa}.task-icon{height:42px;width:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.task-icon svg{width:21px}.task-icon.orange{background:#fff1df;color:#b47b37}.task-icon.mint{background:#edf5ef;color:#4a8268}.task-icon.rose{background:#f8eeee;color:#b57272}.task-item b{display:block;font-size:14px;font-weight:500}.task-item small{display:block;font-size:11px;margin-top:3px;color:#98a097}.task-item strong{margin-left:auto;font-size:22px;font-weight:500}.task-item>svg{color:#bac3ba}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{background:#f9fbf8;color:#89958b;font-size:12px;font-weight:500;padding:11px 24px;white-space:nowrap;border-top:1px solid #edf1ea;border-bottom:1px solid #edf1ea}td{padding:16px 24px;border-bottom:1px solid #edf1ea;vertical-align:middle}tr:last-child td{border-bottom:0}td b{font-weight:500}td small{display:block;font-size:11px;margin-top:4px;color:#94a092}td.num{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-flex;padding:4px 9px;border-radius:6px;font-size:11px;line-height:1.6;white-space:nowrap;background:#f0f3ef;color:#6f7c70}.badge.verified,.badge.active,.badge.paid,.badge.repaid{background:#eaf4ec;color:#397b55}.badge.collected,.badge.approved{background:#eaf1f7;color:#4f7997}.badge.submitted,.badge.pending,.badge.requested,.badge.outstanding{background:#fcf1dc;color:#ae8133}.badge.rejected,.badge.deceased{background:#f8e9e7;color:#a45c55}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.mini{border:1px solid var(--line);background:white;padding:5px 10px;border-radius:6px;font-size:12px;color:#536e5e;white-space:nowrap}.mini.filled{background:var(--green);border-color:var(--green);color:white}.note-strip{display:flex;gap:10px;align-items:center;background:#edf3ed;border:1px solid #e0e9de;padding:13px 19px;border-radius:10px;color:#729078;font-size:12px}.note-strip b{font-weight:500;margin-right:8px}.note-strip svg{flex-shrink:0}.toolbar{padding:17px 23px;display:flex;justify-content:space-between;align-items:center;gap:16px}.search{border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;padding:9px 12px;gap:9px;min-width:220px;width:380px;color:#a0ada1}.search input{border:0;outline:0;width:100%;font-size:14px;background:transparent;color:var(--ink)}.search input::placeholder{color:#97a498}.search.compact{max-width:260px}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tabs button{background:transparent;border:0;padding:7px 12px;border-radius:7px;font-size:13px;color:#8c978b}.tabs button.active{background:var(--green-light);color:var(--green)}.summary-chips{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:22px}.summary-chips span{display:flex;align-items:center;gap:9px;color:#7d8e7c;font-size:14px}.summary-chips b{color:var(--ink)}.person-cell{display:flex;align-items:center;gap:12px}.avatar.soft{background:#f0f5ee;color:#76916b;width:36px;height:36px;font-size:15px}.home-grid{display:grid;grid-template-columns:repeat(3,1fr);padding:0 24px 24px;gap:12px}.home-tile{display:flex;align-items:center;gap:12px;padding:17px;background:#f8faf7;border:1px solid #e5ede1;border-radius:10px;text-align:left}.home-tile>svg:first-child{color:#859e7b}.home-tile b{display:block;font-size:14px;font-weight:500}.home-tile small{font-size:12px}.home-tile>svg:last-child{margin-left:auto;color:#98a892}.balance-tile{border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:flex-start}.balance-tile b{font-size:15px;font-weight:500}.balance-tile small,.balance-tile>span{font-size:12px;color:#7e907e}.balance-tile strong{font-size:25px;font-weight:500;margin-top:12px}.balance-tile button{margin-top:14px}.notice{background:#eaf2ec;color:#47775b;display:flex;align-items:flex-start;gap:11px;border:1px solid #dce8dc;border-radius:10px;padding:16px 19px;font-size:14px;margin-bottom:23px}.notice svg{flex-shrink:0;margin-top:2px}.notice.warning{background:#fff8e9;border-color:#eee3c6;color:#987434}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.case-card{padding:23px}.case-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.case-card h2{font-size:18px}.case-card>p{font-size:13px;color:var(--muted);margin-top:4px}.case-amount{display:flex;flex-direction:column;gap:3px;margin:23px 0 16px}.case-amount>span{font-size:12px;color:var(--muted)}.case-amount strong{font-size:28px;font-weight:600}.progress{height:7px;border-radius:8px;background:#ebf0e8;overflow:hidden}.progress>span{display:block;height:100%;background:#42815c;border-radius:8px}.case-foot{display:flex;justify-content:space-between;margin:12px 0 20px;color:#7f907b;font-size:11px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.report-lines{padding:0 24px 24px}.report-lines>div{padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);font-size:14px}.report-lines>div:last-child{border-bottom:0}.report-lines b{font-weight:500}.group-bars{padding:0 24px 24px;display:flex;flex-direction:column;gap:23px}.group-bars>div>div:first-child{display:flex;justify-content:space-between;font-size:13px;margin-bottom:9px}.group-bars b{font-weight:500}.group-bars small{font-size:11px}.audit-list{padding:0 24px 24px}.audit-list>div{display:flex;align-items:flex-start;gap:13px;padding:15px 0;border-top:1px solid var(--line)}.audit-check{width:30px;height:30px;border-radius:50%;background:#edf5ea;display:flex;align-items:center;justify-content:center;color:#74915c;flex-shrink:0}.audit-list b{font-size:13px;font-weight:500;overflow-wrap:anywhere}.audit-list small{display:block;font-size:11px;margin-top:4px}.empty{text-align:center;padding:40px 20px;color:#73856f}.empty-icon{display:flex;align-items:center;justify-content:center;background:#f3f7f0;width:66px;height:66px;border-radius:18px;margin:0 auto 17px;color:#8ca67c}.empty h3{font-size:17px}.empty p{font-size:14px;margin:5px 0 15px;color:#98a392}.demo-start{background:#edf5ec;border:1px dashed #aec6a8;border-radius:16px;padding:25px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.demo-start p{font-size:14px;color:#71856a;margin-top:6px}.demo-start svg{color:var(--green)}.demo-start h3{margin-top:9px}.demo-start .button svg{color:white}.member-surface{max-width:850px;margin:auto}.house-select{display:block;font-size:15px;color:var(--muted);margin-bottom:24px}.house-select select{display:block;background:white;padding:11px 14px;margin-top:8px;border:1px solid var(--line);border-radius:9px;width:100%}.member-greeting{display:flex;align-items:center;gap:17px;margin-bottom:25px}.avatar.large{width:62px;height:62px}.member-greeting h2{font-size:24px}.member-greeting p{color:var(--muted);font-size:16px}.member-balance{background:var(--green);color:white;border-radius:22px;padding:32px;text-align:center}.member-balance>span{font-size:20px}.member-balance strong{display:block;font-size:54px;line-height:1.3;margin:12px 0}.member-balance strong small{font-size:22px;color:#d6e8db;font-weight:400}.member-balance p{color:#c3ddc8;font-size:18px}.pending-note{margin-top:14px;color:#fbe6a2;font-size:17px}.member-buttons{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}.member-buttons button,.member-buttons a{background:white;border:1px solid var(--line);border-radius:15px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:160px}.member-buttons svg{color:var(--green);width:31px;height:31px}.member-buttons b{font-size:21px;font-weight:600}.member-buttons small{font-size:15px}.member-due{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 25px;border-top:1px solid var(--line);font-size:19px}.member-due small{display:block;font-size:16px}.phone-link{display:flex;justify-content:center;gap:9px;padding:17px;font-size:20px;color:var(--green);margin-bottom:20px}.member-surface table{font-size:17px}.member-surface table small,.member-surface .badge{font-size:14px}.member-surface .mini{font-size:16px;padding:12px}.line-hero{padding:28px;display:flex;align-items:center;gap:20px}.line-hero h2{font-size:28px}.line-hero p:last-child{font-size:14px;color:var(--muted)}.line-hero .button{margin-left:auto}.line-logo{background:#06b84a;color:white;display:flex;align-items:center;justify-content:center;border-radius:17px;width:66px;height:66px;flex-shrink:0}.checklist{padding:0 24px 24px}.checklist>div{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.checklist b{font-size:14px;font-weight:500}.checklist small{display:block;font-size:12px}.checklist>div>span{margin-left:auto}.checklist svg{width:21px;flex-shrink:0}.success-text{color:#4e9263}.muted{color:#adb8a8}.rich-menu{margin:0 24px;display:grid;grid-template-columns:repeat(3,1fr);background:var(--green);gap:1px;border:1px solid #d0e4d4;border-radius:12px;overflow:hidden}.rich-menu>div{background:#eff6ed;padding:23px 6px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;color:#46775b}.rich-menu b{font-size:12px;font-weight:500}.card-caption{font-size:12px;color:#8b9984;padding:18px 24px}.line-guidance{padding:4px 24px 24px}.line-guidance p{font-size:13px;color:var(--muted);margin-top:12px}.line-guidance code{font-size:12px;overflow-wrap:anywhere}.settings-grid{padding:0 24px 25px;display:grid;grid-template-columns:1fr 1fr;gap:25px}.settings-grid small{display:block;margin-bottom:7px;font-size:13px}.settings-grid b{font-size:16px;font-weight:500;overflow-wrap:anywhere}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.help-card{padding:26px}.help-card>span{display:flex;width:35px;height:35px;align-items:center;justify-content:center;background:var(--green-light);color:var(--green);border-radius:10px;margin-bottom:20px}.help-card p{font-size:15px;color:var(--muted);margin-top:12px}.full{grid-column:1/-1}footer{display:flex;justify-content:space-between;gap:20px;padding:30px 0 18px;font-size:11px;color:#9aa696}footer span:first-child{display:flex;align-items:center;gap:7px}.loading{display:flex;gap:10px;align-items:center;justify-content:center;min-height:300px;color:var(--muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert{padding:15px 18px;border-radius:9px;margin:18px 0;display:flex;gap:10px;align-items:center;font-size:14px}.alert.error{background:#fff0eb;color:#a3422a;border:1px solid #f6d3c9}.alert .text-link{margin-left:auto}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:15px 23px;display:flex;align-items:center;gap:10px;background:#164d3c;color:white;border-radius:12px;z-index:100;box-shadow:0 8px 25px #123d3b30;font-size:15px;max-width:90vw}.signin{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:25px;text-align:center}.signin .brand{margin-bottom:15px}.signin p{color:var(--muted)}.signin small{font-size:13px}.signin .button{margin:10px;min-height:54px}dialog{padding:0;border:0;border-radius:20px;width:640px;max-width:calc(100vw - 30px);max-height:90dvh;box-shadow:0 20px 80px #1c3b3140;color:var(--ink);background:white;margin:auto;overflow:auto}dialog::backdrop{background:#173b335b;backdrop-filter:blur(3px)}.dialog-body{padding:28px}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.dialog-header h2{font-size:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{display:flex;flex-direction:column;font-size:14px;font-weight:500;gap:8px}.form-grid input,.form-grid select{width:100%;border:1px solid #d8e2d4;border-radius:8px;background:white;min-height:46px;padding:10px 12px;color:var(--ink);font-size:16px}.form-grid fieldset{border:1px solid var(--line);border-radius:10px;padding:15px}.form-grid legend{font-size:14px;padding:0 7px}.form-grid .check-row{display:flex;flex-direction:row;align-items:center;gap:10px;padding:10px 0;line-height:1.5}.check-row input{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--green)}.check-row b{font-size:13px;margin-left:auto;white-space:nowrap}.form-note{font-size:13px;color:var(--muted);background:#f4f7f1;padding:12px;border-radius:8px}.file-input input{font-size:13px;padding:11px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:27px;border-top:1px solid var(--line);padding-top:22px}.dialog-actions .button{min-height:49px}.confirmation-copy{font-size:17px;line-height:1.8}.receipt-content{text-align:center}.receipt-content>svg{margin:0 auto 12px;color:var(--green)}.receipt-content>p{font-size:13px;overflow-wrap:anywhere;margin:17px 0}.receipt-content .report-lines{text-align:left;padding:0}.receipt-content .report-lines b{overflow-wrap:anywhere}.demo-watermark{display:block;color:#a17b3a;background:#fff6de;padding:10px;margin:15px 0;font-size:14px}.receipt-print>.button{margin-top:20px;width:100%}.large-text{font-size:20px}.large-text main p,.large-text td,.large-text .button,.large-text .sidebar nav button,.large-text .stat-top,.large-text .text-link{font-size:18px}.large-text .stat p,.large-text small,.large-text .badge{font-size:15px}.large-text .stat strong{font-size:37px}.large-text .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.large-text .dashboard-grid{grid-template-columns:1fr}.large-text .sidebar{width:270px}.large-text .main-shell{margin-left:270px}
@media(min-width:1550px){.sidebar{width:264px}.main-shell{margin-left:264px}main{padding-left:45px;padding-right:45px}.stat{padding:24px}.stat strong{font-size:38px}.card-heading h2{font-size:21px}.sidebar nav button{font-size:16px}}
@media(max-width:1250px){.sidebar{width:219px;padding-left:12px;padding-right:12px}.main-shell{margin-left:219px}main{padding:20px 25px}.topbar{padding:0 25px}.sidebar nav button{font-size:14px;gap:9px}.stat{padding:17px 15px}.stat strong{font-size:29px}.stat-top{font-size:12px}.stat p{font-size:11px}.collection-body{gap:17px;padding:10px 20px 25px}.ring{width:125px;height:125px}.ring>div{width:104px;height:104px}.collection-numbers{font-size:11px}.task-item{padding:15px}.task-item b{font-size:13px}.task-item small{font-size:10px}.card-heading{padding:20px}.card-heading h2{font-size:17px}.dashboard-grid{gap:17px}td,th{padding-left:18px;padding-right:18px}.home-grid{grid-template-columns:repeat(2,1fr)}.mode-detail{display:none}.case-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.collection-body{gap:40px;justify-content:center}.collection-numbers{max-width:360px;font-size:14px}.ring{width:145px;height:145px}.ring>div{width:121px;height:121px}.task-item b{font-size:15px}.task-item small{font-size:12px}.report-grid{grid-template-columns:1fr}.help-grid{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.line-hero{flex-wrap:wrap}.line-hero .button{margin-left:0}.top-actions .private{display:none}footer{flex-direction:column;gap:5px}.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.heading-actions .button{font-size:13px}.stats.three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);width:260px;box-shadow:10px 0 35px #183f3320;transition:transform .2s}.sidebar.visible{transform:translateX(0);top:68px;padding-top:20px}.sidebar nav button{min-height:52px;font-size:16px}.sidebar .brand{display:none}.workspace-label{margin-top:7px}.main-shell,.large-text .main-shell{margin-left:0}.topbar{height:68px;padding:0 17px;position:sticky;top:0;z-index:30}.mobile-menu{display:inline-flex!important}.crumb{gap:7px;font-size:13px}.crumb>span,.crumb>svg{display:none}.top-actions{gap:10px}.font-button{font-size:12px;gap:4px}.font-button svg{width:17px}main{padding:15px}.modebar{padding:9px 12px;font-size:12px}.modebar svg{width:17px}.segmented button{font-size:11px;padding:4px 8px}.page-heading{margin:23px 0 21px;flex-wrap:wrap;gap:17px}.page-heading h1{font-size:28px}.page-heading p:last-child{font-size:14px}.page-heading .eyebrow{font-size:11px}.heading-actions{width:100%;justify-content:flex-start}.heading-actions>.button{min-height:49px;font-size:15px}.stats{gap:12px}.stat{padding:18px 15px}.stat-top{font-size:13px;align-items:flex-start;line-height:1.5}.stat-top svg{width:17px}.stat strong{font-size:30px;margin-top:17px}.stat p{font-size:11px;line-height:1.6}.card{margin-bottom:17px;border-radius:13px}.card-heading{padding:19px 18px 15px}.card-heading h2{font-size:18px}.card-heading p{font-size:12px}.card-heading .text-link{font-size:12px}.collection-body{gap:17px;padding:12px 18px 23px}.ring{width:126px;height:126px}.ring>div{width:105px;height:105px}.ring strong{font-size:31px}.ring span{font-size:10px}.collection-numbers{font-size:11px;line-height:1.7}.collection-numbers>div{gap:6px;flex-wrap:wrap}.collection-numbers>div>b{font-size:13px}.collection-numbers span{max-width:125px}.collection-foot{padding:14px 17px;gap:12px;flex-wrap:wrap;font-size:11px}.task-item{padding:18px}.task-item b{font-size:16px}.task-item small{font-size:12px}.task-item strong{font-size:25px}.table-scroll table{min-width:680px}th{font-size:13px}td{font-size:15px;padding:17px}.badge{font-size:12px}.mini{min-height:39px;padding:8px 12px;font-size:13px}.icon-button{min-width:40px;min-height:40px}.note-strip{font-size:12px;align-items:flex-start}.note-strip b{display:block}.summary-chips{gap:12px;font-size:13px}.home-grid{grid-template-columns:1fr;padding:0 18px 18px}.home-tile{min-height:75px}.home-tile b{font-size:16px}.case-grid{grid-template-columns:1fr;gap:0}.case-card{padding:22px}.case-card h2{font-size:21px}.case-card>p{font-size:15px}.case-foot{font-size:13px}.case-card .text-link{font-size:16px}.toolbar{padding:17px;gap:12px}.search,.search.compact{width:100%;max-width:none}.search input{font-size:16px;min-height:29px}.tabs{gap:3px}.tabs button{font-size:13px;padding:9px}.stats.three{grid-template-columns:1fr}.stats.three .stat{display:grid;grid-template-columns:1fr 1fr}.stats.three .stat strong{justify-self:end;margin:5px 0;grid-row:1/3;grid-column:2}.stats.three .stat p{grid-column:1}.demo-start{padding:23px;flex-direction:column;align-items:flex-start}.demo-start .button{width:100%;min-height:52px}.report-lines{padding:0 18px 20px}.report-lines>div{font-size:14px}.member-buttons{gap:12px}.member-buttons button,.member-buttons a{padding:20px 10px;min-height:155px}.member-buttons b{font-size:19px}.member-buttons small{font-size:13px}.member-balance{padding:28px 20px}.member-balance strong{font-size:52px}.member-due{font-size:17px;padding:19px}.member-due small{font-size:14px}.member-greeting h2{font-size:23px}.line-hero{padding:22px;gap:16px}.line-hero h2{font-size:25px}.checklist{padding:0 18px 20px}.checklist>div{gap:9px}.checklist b{font-size:14px}.checklist small{font-size:11px}.settings-grid{padding:0 18px 22px;grid-template-columns:1fr}.help-grid{grid-template-columns:1fr;gap:0}.help-card p{font-size:17px}dialog{max-width:calc(100vw - 20px);max-height:94dvh;border-radius:16px}.dialog-body{padding:22px 19px}.dialog-header h2{font-size:23px}.form-grid{grid-template-columns:1fr;gap:17px}.form-grid label{font-size:17px}.form-grid input,.form-grid select{font-size:18px;min-height:55px}.form-grid .check-row input{min-height:24px;width:24px;height:24px}.check-row span{font-size:16px}.check-row b{font-size:13px}.form-note{font-size:14px}.dialog-actions .button{min-height:55px;font-size:17px;flex:1}.receipt-content .report-lines>div{flex-wrap:wrap}.large-text .stats{grid-template-columns:1fr}.large-text .sidebar{width:280px}.large-text .collection-body{flex-wrap:wrap}.large-text .collection-numbers{font-size:17px}.large-text .member-buttons{grid-template-columns:1fr}.large-text .font-button span{font-size:12px}.large-text h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{body{background:white}.sidebar,.main-shell,.toast{display:none!important}dialog[open]{position:static;display:block!important;max-width:100%;width:100%;max-height:none;margin:0;box-shadow:none;border:0}dialog::backdrop{display:none}.no-print{display:none!important}.dialog-body{padding:10px}.receipt-print{color:black}.dialog-header .eyebrow{display:none}.receipt-content .report-lines{margin-top:25px}}
.receipt-allocations{margin-top:20px;border:1px solid var(--line);border-radius:8px;padding:10px 15px;text-align:left}.receipt-allocations>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;font-size:13px;border-bottom:1px solid var(--line)}.receipt-allocations>div:last-child{border-bottom:0}.receipt-allocations small{display:block;font-size:12px}.receipt-allocations b{white-space:nowrap;font-weight:500}
.home-tile-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-align:left;background:none;border:0;padding:0;color:inherit}.home-tile-main svg{flex-shrink:0;color:#859e7b}.home-tile-main small{display:block}.report-filter{display:flex;align-items:end;gap:20px;margin-bottom:22px;padding:18px 22px;border:1px solid var(--line);background:white;border-radius:12px}.report-filter label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:250px}.report-filter select{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 12px;font-size:16px;min-height:46px;color:var(--ink)}.report-filter>span{font-size:13px;color:var(--muted);padding-bottom:10px}.report-total td{background:#eef5ec;font-weight:600}.group-report th,.group-report td{padding-left:14px;padding-right:14px}.collection-choice{display:flex;flex-direction:column;gap:12px}.form-grid .choice{display:flex;flex-direction:row;align-items:center;gap:13px;padding:15px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.form-grid .choice.chosen{border-color:var(--green);background:var(--green-light)}.form-grid .choice input{width:21px;height:21px;min-height:21px;flex-shrink:0;accent-color:var(--green)}.choice small{display:block;font-size:13px;font-weight:400;margin-top:4px}.choice b{font-weight:500}.form-grid input[readonly]{background:#f5f8f3;color:#64725d}@media(max-width:760px){.report-filter{flex-direction:column;align-items:stretch;padding:17px;gap:8px}.report-filter label{min-width:0}.report-filter>span{font-size:12px;padding:0}.group-report .card-heading{flex-direction:column;align-items:flex-start}.group-report .heading-actions .button{font-size:13px}.form-grid .choice{padding:14px 11px}.choice small{font-size:14px}.home-tile{flex-wrap:wrap}.home-tile-main{min-width:180px}.report-filter select{min-height:54px;font-size:18px}}

@font-face{font-family:BoonThai;src:url('/assets/thai.ttf')}@font-face{font-family:BoonThai;src:url('/assets/thai-bold.ttf');font-weight:700}body,button,input,select,textarea{font-family:BoonThai,system-ui,sans-serif}body{font-size:18px}button,.button,input,select{min-height:48px}.bj-brand{display:flex;align-items:center;gap:12px;color:#39224f;text-decoration:none;font-size:28px;font-weight:700}.bj-brand img{width:68px;height:68px;object-fit:contain}.bj-brand small{display:block;font-size:15px;font-weight:400;color:#52565b}.bj-banner{position:relative;overflow:hidden;border-radius:24px;background:#284b37;margin:20px 0 28px;min-height:280px;display:flex;align-items:center}.bj-banner>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:70% 40%}.bj-banner:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,43,29,.95),rgba(18,43,29,.68) 38%,transparent 72%)}.bj-banner>div{position:relative;z-index:1;color:#fff;padding:32px;max-width:55%}.bj-banner h2{font-size:34px;line-height:1.45;color:white;margin:10px 0}.bj-banner p{font-size:17px;color:#fff}.bj-banner span{font-size:13px;letter-spacing:2px}.bj-login{max-width:1120px;margin:auto;padding:24px}.bj-login-box{max-width:650px;margin:24px auto 60px;text-align:center;background:white;border:1px solid #e4ddd0;border-radius:24px;padding:32px}.bj-login-box .button{font-size:22px;min-height:58px}.bj-portal{max-width:1080px;margin:auto;padding:24px}.bj-portal>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.bj-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.bj-service-grid>a{min-height:112px;padding:20px 10px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:6px;background:#fff;border:2px solid #ddd4e9;border-radius:18px;color:#452360;text-decoration:none;font-size:22px}.bj-service-grid>a[aria-current=page]{background:#eee4f7;border-color:#6d3b91}.bj-service-grid span{font-size:28px}.bj-panel{padding:28px}.bj-panel h1{font-size:30px}.bj-panel h2{font-size:24px;margin-top:22px}.bj-panel p{margin:14px 0;line-height:1.7}.bj-amount{padding:24px;background:#eef5ed;border-radius:16px;margin:20px 0}.bj-amount strong{display:block;font-size:42px;color:#16533e}.bj-amount small{font-size:22px}.bj-history{padding:20px 0;border-bottom:1px solid #e6e1dd}.bj-portal footer{display:flex;align-items:center;font-size:16px;margin:25px 0}.bj-portal footer img{width:52px;height:52px;object-fit:contain}.brand>span:has(img){background:transparent!important;width:60px;height:66px}.brand img{height:64px;width:60px;object-fit:contain}footer img.bj-footer-cat{width:32px;height:32px;object-fit:contain}.bj-status{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid #e4e4e4}.bj-status>div{flex:1}.bj-status p{font-size:16px;margin:4px 0}.bj-status>strong{font-size:15px;white-space:nowrap}.bj-tools{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;background:#faf8f4;padding:10px 20px;margin-left:250px}.bj-tools .button{font-size:15px}.member-greeting img{width:60px;height:60px;object-fit:contain}
@media(max-width:700px){.bj-login,.bj-portal{padding:16px}.bj-banner{min-height:0;display:flex;flex-direction:column}.bj-banner>img{position:relative;height:auto;aspect-ratio:3/2;object-fit:contain}.bj-banner:after{display:none}.bj-banner>div{max-width:none;width:100%;padding:22px}.bj-banner h2{font-size:28px}.bj-banner p{font-size:16px}.bj-banner span{font-size:12px}.bj-service-grid{grid-template-columns:repeat(2,1fr);gap:10px}.bj-service-grid>a{font-size:20px;min-height:108px}.bj-panel{padding:20px}.bj-brand{font-size:24px}.bj-brand small{font-size:13px}.bj-brand img{width:52px;height:58px}.bj-portal>header{align-items:flex-start}.bj-login-box{padding:24px 16px}.bj-tools{margin-left:0;padding:8px}.bj-tools .button{font-size:14px}.bj-status{align-items:flex-start}.bj-status>strong{font-size:13px}}
