@font-face{font-family:SuwitSolid;src:url(/assets/SW%20SuwitUPC-CZe2M3nt.otf) format("opentype")}@font-face{font-family:SuwitDot;src:url(/assets/SW%20Suwit_DotUPC-Cl56pZ0u.otf) format("opentype")}:root{color:#17202a;background:#f4f7fa;font-family:Tahoma,Noto Sans Thai,Leelawadee UI,sans-serif;font-synthesis:none;text-rendering:geometricPrecision}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(90deg,rgba(32,95,86,.06) 1px,transparent 1px),linear-gradient(rgba(20,33,61,.045) 1px,transparent 1px),#f4f7fa;background-size:36px 36px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}.app-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:24px 0 40px}.topbar,.table-section,.modal,.confirm-dialog{border:1px solid #d7dee6;background:#fffffff5;box-shadow:0 14px 40px #3741511f}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-radius:8px}.eyebrow{margin:0 0 4px;color:#27665f;font-size:.88rem;font-weight:700}h1,h2{margin:0;color:#14213d}h1{font-family:SuwitSolid,Tahoma,sans-serif;font-size:3.5rem;line-height:.95}h2{font-size:1.2rem}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:8px;border:1px solid transparent;font-weight:700;white-space:nowrap}.primary-button{background:#1f6f64;color:#fff;border-color:#1a5f56}.primary-button:hover:not(:disabled){background:#185a52}.secondary-button{background:#f7f9fb;color:#20343f;border-color:#cbd5df}.secondary-button:hover:not(:disabled){background:#edf2f6}.danger-button{background:#b3292f;color:#fff;border-color:#9e2228}.danger-button:hover:not(:disabled){background:#921b21}.table-section{margin-top:18px;border-radius:8px;overflow:hidden}.section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #dde5ee}.section-header span{color:#5b6572;font-size:.94rem}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:15px 18px;text-align:left;border-bottom:1px solid #e5ebf1;vertical-align:middle}th{color:#52606b;background:#f6f8fb;font-size:.88rem;font-weight:700}td strong{display:block;color:#14213d;font-weight:800}td small{display:block;width:min(420px,60vw);margin-top:4px;overflow:hidden;color:#66727f;text-overflow:ellipsis;white-space:nowrap}tr:last-child td{border-bottom:0}.actions-column{width:230px}.row-actions,.header-actions,.confirm-actions{display:flex;align-items:center;gap:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cbd5df;border-radius:8px;background:#f7f9fb;color:#20343f}.icon-button:hover{background:#edf2f6}.icon-button.danger{color:#ab1f27}.empty-row{height:210px;color:#697482;text-align:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:22px;background:#121c2680}.modal{display:flex;width:min(1120px,100%);max-height:min(860px,calc(100vh - 44px));flex-direction:column;border-radius:8px;overflow:hidden}.view-modal{height:min(860px,calc(100vh - 44px))}.confirm-dialog{width:min(440px,100%);padding:20px;border-radius:8px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dde5ee;background:#f7f9fb}.modal-body{display:grid;grid-template-columns:minmax(300px,390px) 1fr;min-height:0}.form-panel{display:flex;min-height:0;flex-direction:column;gap:14px;padding:18px;border-right:1px solid #dde5ee}.field{display:grid;gap:7px}.field.grow{flex:1;min-height:220px}.field span{color:#344250;font-size:.92rem;font-weight:700}input,select,textarea{width:100%;border:1px solid #cbd5df;border-radius:8px;background:#fff;color:#14213d;outline:none}input,select{height:42px;padding:0 12px}textarea{min-height:220px;resize:vertical;padding:12px;line-height:1.7}input:focus,select:focus,textarea:focus{border-color:#1f6f64;box-shadow:0 0 0 3px #1f6f6429}.validation{display:flex;min-height:22px;flex-wrap:wrap;gap:8px}.validation span{color:#9a3412;font-size:.86rem}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.preview-panel{min-height:0;padding:18px;background:#eef4f7}.pdf-frame,.preview-placeholder{width:100%;height:100%;min-height:560px;border:1px solid #cbd5d9;border-radius:8px;background:#fff}.preview-placeholder{display:grid;place-items:center;color:#5f6e77;font-weight:700}.confirm-copy{margin:18px 0 22px;color:#4b5563}.confirm-actions{justify-content:flex-end}@media(max-width:820px){.topbar{align-items:stretch;flex-direction:column}.topbar .primary-button{width:100%}.modal-body{grid-template-columns:1fr;overflow-y:auto}.form-panel{border-right:0;border-bottom:1px solid #dde5ee}.preview-panel{min-height:620px}}@media(max-width:520px){.app-shell{width:min(100% - 20px,1180px);padding-top:12px}h1{font-size:2.75rem}.section-header,.modal-header{align-items:stretch;flex-direction:column}.header-actions{justify-content:flex-end}.modal-actions,.confirm-actions{flex-direction:column}.modal-actions button,.confirm-actions button{width:100%}}
