@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;450;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--green:#086b52;--ink:#172b26;--muted:#77847e;--line:#e8edea;--surface:#f6f8f7}*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--ink);font-family:'Inter','IBM Plex Sans Thai',sans-serif;font-size:16px}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible{outline:3px solid #75bfa4;outline-offset:3px}input,select,textarea{min-height:44px;border:1px solid #dfe6e2;border-radius:8px;padding:9px 12px;background:white;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #a5d7c5;border-color:var(--green)}select{appearance:none;padding-right:35px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236e8077' stroke-width='1.5'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center}svg{width:20px;height:20px;flex-shrink:0}i{display:inline-flex}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:23px;letter-spacing:-1px;font-weight:800}.brand-light{font-weight:400}.logo{background:var(--green);color:white;width:39px;height:42px;border-radius:12px;font-size:36px;line-height:42px;text-align:center;position:relative}.logo span{font-size:17px;position:absolute;right:3px;top:-8px}.brand small{font-size:12px;display:block;letter-spacing:0;color:var(--muted);font-weight:400;margin-top:3px}.workspace{margin:33px 0 32px;background:#f7f9f8;border:1px solid var(--line);border-radius:10px;padding:13px 10px;display:flex;gap:10px;align-items:center;font-size:14px;font-weight:600}.workspace small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}.company-mark{background:white;border:1px solid var(--line);border-radius:7px;padding:8px 11px;color:var(--green);font-weight:800}.nav-label{font-size:11px;letter-spacing:1.4px;color:#99a39d;margin:0 12px 14px}nav{display:grid;gap:7px}nav button{border:0;background:transparent;justify-content:flex-start;border-radius:8px;color:#6e7b74;padding:13px 12px;font-size:15px;white-space:nowrap}nav button.active{background:#eaf4ef;color:var(--green);font-weight:600}.nav-count{margin-left:auto;font-size:12px;background:#e8eeea;border-radius:5px;padding:1px 6px}.active .nav-count{background:#d4eadd}.sidebar-bottom{margin-top:auto}.help-card{background:#f0f6f2;border:1px solid #e3eee6;border-radius:12px;padding:18px 15px;margin-top:24px}.help-card>span{font-weight:600;font-size:14px}.help-card p{font-size:13px;color:#77867b;line-height:1.8}.help-lines{display:flex;gap:6px}.help-lines b{height:4px;width:26px;background:#b8d4c2;border-radius:4px}.help-lines b:first-child{background:var(--green)}.reset{border:0;background:none;color:var(--muted);font-size:13px;padding:18px 3px}.reset svg{width:15px}.sidebar-version{border-top:1px solid var(--line);padding-top:19px;font-size:12px;color:#8c9990;display:flex;justify-content:space-between}.sidebar-version span{font-size:10px;letter-spacing:1px}.shell{margin-left:250px}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:14px;color:#9aa49e}.breadcrumb span{margin:0 13px;color:#ccd5ce}.breadcrumb b{color:#52665a;font-weight:500}.top-actions{display:flex;align-items:center;gap:16px}.demo-pill{font-size:12px;color:#7c8663;background:#f6f8ee;border:1px solid #e8edda;padding:5px 9px;border-radius:20px;display:flex;align-items:center;gap:5px}.demo-pill>span{width:5px;height:5px;background:#a1b16b;border-radius:100%}.role-select select{font-size:14px;border:0;background-color:#f7f9f8;min-height:38px}.avatar{height:36px;width:36px;border-radius:50%;background:#e6eee7;color:#5b745d;display:grid;place-items:center;font-weight:600;font-size:14px}main{max-width:1580px;margin:auto;padding:36px 38px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#84958a;margin-bottom:8px}h1{font-size:30px;letter-spacing:-.7px;margin:0;font-weight:600}p{margin:6px 0 0;color:var(--muted);font-size:14px}h2{font-size:16px;font-weight:600;margin:0}.primary{background:var(--green);border:1px solid var(--green);color:white;border-radius:8px;padding:11px 17px;font-size:14px;min-height:44px;font-weight:500}.secondary{background:white;border:1px solid #dfe6e2;color:#43594d;padding:9px 13px;border-radius:8px;font-size:14px;min-height:42px}.secondary svg{width:17px}.intro-banner{display:flex;align-items:center;gap:12px;background:#edf5f0;border:1px solid #dcebe1;border-radius:10px;padding:15px 18px;margin-bottom:24px}.banner-icon{color:var(--green);background:#dcece2;border-radius:8px;padding:9px;display:flex}.intro-banner strong{font-size:14px;font-weight:600;color:#32664e}.intro-banner p{font-size:13px;color:#75907e;line-height:1.7}.local-label{margin-left:auto;font-size:12px;color:#7a9482;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:21px 20px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#6c7e72;font-size:14px}.stat-icon{padding:8px;background:#edf4f0;color:#5e927a;border-radius:8px;display:flex}.stat:nth-child(2) .stat-icon{background:#fff6e7;color:#bd9454}.stat:nth-child(3) .stat-icon{background:#edf2fc;color:#7292c0}.stat strong{display:block;font-size:28px;letter-spacing:-.7px;margin:10px 0 5px;font-weight:600}.stat small{font-size:12px;color:#8a978e}.stat small b{color:#527964;font-weight:500}.panel{background:white;border:1px solid var(--line);border-radius:12px}.overview-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;margin-bottom:26px}.panel-heading{display:flex;justify-content:space-between;padding:22px 24px 0}.panel-heading p{font-size:12px}.quiet-tag{font-size:11px;color:#839288;background:#f7f9f8;border:1px solid var(--line);border-radius:5px;padding:5px 8px;align-self:flex-start}.chart-content{display:flex;align-items:center;justify-content:space-evenly;gap:28px;padding:25px 25px 29px}.donut{width:164px;height:164px;border-radius:50%;position:relative;flex-shrink:0;background:conic-gradient(#0b7558 0 45%,#78ad91 45% 75%,#d6e8d8 75%)}.donut:before{content:'';position:absolute;inset:16px;background:white;border-radius:50%}.donut>div{position:relative;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut span,.donut small{font-size:11px;color:#85958a}.donut strong{font-size:24px;letter-spacing:-.8px;margin:4px 0}.legend{flex:1;max-width:245px}.legend-row{display:flex;align-items:center;gap:9px;font-size:13px;margin:18px 0}.legend-row>span:first-child{height:8px;width:8px;border-radius:2px;flex-shrink:0}.legend-row b{font-size:13px;margin-left:auto;font-weight:600}.workflow .panel-heading>i{color:#91a89a}.steps{padding:15px 24px 20px}.steps>div{display:flex;gap:13px;position:relative;padding:9px 0}.steps>div:not(:last-child):after{content:'';position:absolute;top:48px;bottom:-6px;left:18px;border-left:1px dashed #d9e4dc}.step-icon{height:36px;width:36px;display:flex;align-items:center;justify-content:center;border:1px solid #e0eae3;background:#f7faf8;border-radius:9px;color:#6f9b80}.step-icon svg{width:17px}.steps b{font-size:13px;font-weight:500}.steps p{font-size:12px;margin:3px 0 0}.records-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 24px 20px}.records-heading p{font-size:12px}.records-heading h2 span{font-size:11px;font-weight:400;color:#7e8e82;margin-left:7px;padding:2px 6px;background:#f1f5f2;border-radius:5px}.filters{display:flex;gap:10px;padding:0 24px 20px}.filters select{font-size:13px;min-height:40px}.search{display:flex;align-items:center;flex:1;position:relative}.search svg{position:absolute;left:12px;width:17px;color:#9baaa0}.search input{width:100%;padding-left:38px;min-height:40px;font-size:13px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left;font-size:13px}th{color:#87978d;font-size:12px;font-weight:500;background:#f8faf9;padding:13px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}th:first-child,td:first-child{padding-left:24px}td{padding:17px 20px;border-bottom:1px solid #f0f3f1;color:#607569}td small{display:block;font-size:11px;color:#94a198;margin-top:4px}.claim-name{font-weight:500;color:#304e3d;margin-top:5px;font-size:13px}.claim-id{font-family:'Inter',sans-serif;font-size:11px;color:#95a39a}.person{display:flex;align-items:center;gap:8px}.person-avatar{height:30px;width:30px;background:#eef3ed;border-radius:50%;display:grid;place-items:center;color:#76907a;font-size:12px}.category{font-size:12px}.number{text-align:right;font-variant-numeric:tabular-nums;font-weight:500;color:#2e493a}.badge{font-size:11px;padding:5px 9px;border-radius:20px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.badge:before{content:'';height:5px;width:5px;border-radius:50%;background:currentColor}.badge.pending{color:#b18a3f;background:#fdf6e7}.badge.approved{color:#5d8d76;background:#edf6ef}.badge.waiting{color:#6b88b9;background:#edf3fc}.badge.paid{color:#287b59;background:#e9f4ec}.badge.returned{color:#be7e51;background:#fff1e8}.badge.rejected{color:#b86666;background:#fbeeee}.view-button{border:1px solid #e5eae6;background:white;padding:5px 9px;border-radius:6px;color:#799180;font-size:12px}.table-foot{padding:15px 24px;display:flex;justify-content:space-between;color:#92a096;font-size:11px}footer{display:flex;justify-content:space-between;font-size:11px;color:#99a69d;padding:25px 0}dialog{width:640px;max-width:calc(100vw - 28px);max-height:92vh;border:1px solid var(--line);border-radius:16px;padding:26px;color:var(--ink);box-shadow:0 24px 100px #102c2525}dialog::backdrop{background:#132b2366;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-heading h2{font-size:23px}.icon-button{border:0;background:#f3f6f4;border-radius:7px;min-width:34px;height:34px;font-size:24px;color:#6d8475}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label,.note-label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#62766a}.full{grid-column:1/-1}.line-heading{margin:24px 0 10px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.text-button{border:0;background:none;color:var(--green);font-size:13px;padding:5px}.expense-line{display:flex;gap:8px;margin-bottom:9px}.expense-line input:first-child{flex:1;min-width:0}.expense-line input[type=number]{width:125px}.expense-line input{font-size:14px}.remove-line{border:0;background:#f5f7f5;color:#9c7169;border-radius:7px;width:32px}.form-total{display:flex;justify-content:space-between;align-items:center;background:#eff6f1;border-radius:8px;padding:13px;margin:14px 0 20px;color:#4d7860;font-size:14px}.form-total strong{font-family:Inter,sans-serif;font-size:22px}.file-drop{display:flex;flex-direction:column;align-items:center;gap:7px;padding:19px;border:1px dashed #b8cfc1;border-radius:9px;color:#6f8978;background:#fafcfb;text-align:center;font-size:13px}.file-drop span{font-size:11px;color:#8da091}.file-drop input{font-size:12px;border:0;background:none;width:100%;min-height:0;padding:8px}.note-label{margin-top:16px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px;border-top:1px solid var(--line);padding-top:20px}.attachment-chip{display:flex;align-items:center;gap:7px;font-size:13px;margin-top:8px;padding:8px;background:#f4f7f5;border-radius:6px;word-break:break-all}.detail-summary{display:flex;justify-content:space-between;align-items:center;background:#f2f7f3;border-radius:10px;padding:20px;margin-bottom:20px}.detail-summary strong{font-size:30px;color:var(--green)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin-bottom:23px}.detail-grid small{display:block;color:#8d9d92;font-size:12px;margin-bottom:5px}.detail-grid span{font-size:14px}.detail-lines{width:100%;white-space:normal}.detail-lines td{padding:10px;font-size:14px}.section-title{font-size:14px;margin:23px 0 12px}.history{padding:0;list-style:none}.history li{border-left:2px solid #d7e7dc;padding:0 0 15px 15px;margin-left:5px;font-size:13px;color:#5b7765}.history small{display:block;font-size:11px;color:#96a399;margin-top:4px}.action-note{width:100%;font-size:14px}.payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.payment-fields label{font-size:13px;color:#738879;display:flex;flex-direction:column;gap:5px}.empty{text-align:center;padding:55px 20px;color:#8b9d91}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#173e2d;color:white;padding:14px 25px;border-radius:10px;box-shadow:0 8px 30px #163e3022;opacity:0;pointer-events:none;transition:.2s;z-index:100;font-size:14px}.toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){main{padding-top:43px}.stats{gap:22px}.stat{padding:25px}.chart-content{padding:30px}.steps{padding-top:23px}}
@media(max-width:1200px){.sidebar{width:215px;padding:28px 14px}.brand{font-size:20px}.shell{margin-left:215px}main{padding:27px 24px 0}.topbar{padding:0 24px}.local-label{display:none}.stat{padding:15px}.stat strong{font-size:24px}.overview-grid{grid-template-columns:1fr 1fr;gap:16px}.chart-content{gap:15px;padding:25px 17px}.donut{width:135px;height:135px}.donut strong{font-size:20px}.legend-row{font-size:12px;gap:6px}.legend-row b{font-size:12px}.quiet-tag{display:none}.panel-heading{padding:20px 18px 0}.steps{padding:15px 18px}.filters{padding:0 18px 18px;flex-wrap:wrap}.search{flex-basis:100%}.filters>label:not(.search){flex:1}.filters select{width:100%}}
@media(max-width:850px){.sidebar{width:78px;padding:24px 12px}.brand>span:not(.logo),.workspace,.nav-label,.sidebar-bottom,nav button .nav-count{display:none}.brand{justify-content:center}nav{margin-top:35px}nav button{font-size:0;justify-content:center;padding:15px}.shell{margin-left:78px}.overview-grid{grid-template-columns:1fr}.workflow{display:none}.stats{grid-template-columns:repeat(2,1fr)}.breadcrumb{display:none}.topbar{justify-content:flex-end;height:70px}.chart-content{justify-content:flex-start;gap:40px;padding:22px 30px}.donut{width:150px;height:150px}.legend{max-width:none}.stat strong{font-size:27px}}
@media(max-width:540px){.sidebar{inset:auto 0 0;width:100%;height:64px;z-index:10;padding:0;border-top:1px solid var(--line);border-right:0}.brand{display:none}nav{display:flex;margin:0;height:100%;justify-content:space-around;gap:0}nav button{font-size:10px;padding:8px 10px;gap:4px;flex-direction:column;border-radius:0}nav button svg{width:19px;height:19px}.shell{margin:0}.topbar{height:62px;padding:0 17px}.top-actions{width:100%;gap:10px}.demo-pill{margin-right:auto}.role-select select{font-size:13px}.avatar{height:30px;width:30px}main{padding:24px 16px 65px}.eyebrow{font-size:9px}h1{font-size:24px}.page-heading{gap:8px;margin-bottom:19px}.page-heading p{font-size:12px}.page-heading .primary{padding:9px 11px;font-size:13px}.intro-banner{padding:12px;gap:10px}.intro-banner p{font-size:11px}.intro-banner strong{font-size:12px}.banner-icon{padding:7px}.stats{gap:10px;margin-bottom:16px}.stat{padding:14px}.stat-top{font-size:12px}.stat-icon{padding:6px}.stat-icon svg{width:15px;height:15px}.stat strong{font-size:25px}.stat small{font-size:11px}.chart-content{padding:22px 18px;gap:22px}.donut{width:130px;height:130px}.donut:before{inset:13px}.legend-row{font-size:11px}.legend-row b{font-size:11px}.records-heading{padding:18px 15px;gap:10px;align-items:flex-start}.records-heading h2{font-size:15px}.records-heading p{font-size:11px;max-width:170px}.records-heading .secondary{font-size:11px;padding:7px 9px;white-space:nowrap;min-height:36px}.filters{padding:0 15px 15px;gap:8px}.filters select{font-size:12px}th,td{padding-left:15px;padding-right:15px}.table-foot{padding:12px 15px}.table-foot span:last-child{display:none}footer{font-size:10px;padding:20px 0}footer span{display:none}dialog{padding:20px}.modal-heading h2{font-size:20px}.form-grid{gap:12px}.form-grid input,.form-grid select{width:100%;font-size:14px}.form-grid label{font-size:13px}.expense-line input[type=number]{width:92px}.modal-actions{flex-wrap:wrap}.detail-grid{gap:14px}.detail-summary strong{font-size:27px}.payment-fields{grid-template-columns:1fr}.toast{width:90%;text-align:center;bottom:80px}}
/* Keep working data and controls legible on every device. */
.stat-top,.intro-banner p,.steps b,.legend-row,.legend-row b,.filters select,.search input,table,.claim-name,.category,.badge,.view-button,.form-grid label,.text-button,.expense-line input,.detail-grid span,.history li{font-size:14px}
th{font-size:14px}td small,.claim-id,.panel-heading p,.steps p,.records-heading p,.stat small,.table-foot,.quiet-tag,.intro-banner strong{font-size:13px}
@media(max-width:540px){.records-heading .secondary,.filters select,.intro-banner p,.legend-row,.legend-row b,.stat-top{font-size:14px}.records-heading p{font-size:13px}.chart-content{gap:18px}.donut{width:118px;height:118px}.donut strong{font-size:19px}.legend-row{flex-wrap:wrap}.legend-row b{flex-basis:100%;padding-left:17px;margin-top:3px}}
/* Keep modal feedback in the dialog top layer, including attachment errors. */
dialog .toast{display:none;position:sticky;bottom:0;left:auto;transform:none;width:100%;margin-top:16px;text-align:left;font-size:14px;padding:13px 16px;white-space:normal}
dialog .toast.show{display:block;transform:none}
@media(max-width:540px){.records .table-scroll{overflow:visible}.records table,.records tbody{display:block;width:100%;white-space:normal}.records thead{display:none}.records tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 10px;margin:0 14px 14px;padding:13px;border:1px solid var(--line);border-radius:10px}.records td,.records td:first-child{display:block;border:0;padding:6px 0;min-width:0;overflow-wrap:anywhere}.records td:nth-child(1),.records td:nth-child(2),.records td:nth-child(7),.records td.empty{grid-column:1/-1}.records td:nth-child(3):before{content:'ประเภท';display:block;font-size:12px;color:#8b9c90;margin-bottom:3px}.records td:nth-child(4):before{content:'วันที่ค่าใช้จ่าย';display:block;font-size:12px;color:#8b9c90;margin-bottom:3px}.records td:nth-child(5){text-align:left;font-size:19px;align-self:center}.records td:nth-child(6){text-align:right;align-self:center}.records .claim-name{font-size:15px;line-height:1.8}.records .view-button{width:100%;min-height:40px;margin-top:4px}.records .empty{padding:25px 0!important}.records .table-foot{padding-top:0}}
