:root{font-family:Tahoma,Arial,sans-serif;color:#152675;background:#f4f6fc;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{min-height:38px;border:1px solid #bac4e2;border-radius:6px;padding:7px 12px;background:#fff;color:#152675;cursor:pointer}button:hover{background:#e9effc}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #ef293c;outline-offset:2px}button.primary{background:#152675;color:white}.draft-strip{padding:7px 16px;background:#fff4d5;border-bottom:2px solid #ef293c;font-size:13px}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:calc(100vh - 34px)}aside{background:#152675;color:white;padding:8px 10px;overflow:auto}aside h1{font-size:16px;margin:14px 4px}aside a{color:white}.brand{display:flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;white-space:nowrap;font-size:14px}.brand img{width:40px;height:32px;object-fit:contain;background:white;border-radius:4px}nav h2{font-size:13px;margin:16px 6px 5px;color:#c8d3f2}nav button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;color:white;margin-bottom:4px}nav button[aria-current=true]{background:white;color:#152675;border-left:4px solid #ef293c}nav .nav-icon{width:30px;height:30px;flex:0 0 30px;background:#dff3ed;border-radius:8px;color:#167c65;padding:5px}nav .nav-icon svg{width:100%;height:100%}main{min-width:0}.top{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 14px;background:white;border-bottom:1px solid #dae0f0;font-size:13px}.top #actor-state{flex:1}#content{padding:14px;min-width:0}h2{font-size:19px;margin:0 0 10px}h3{font-size:15px;margin:0 0 10px}.notice{margin:0 0 12px;padding:10px 12px;border-left:3px solid #152675;background:#eaf0fc;font-size:13px;line-height:1.6}.card{background:white;border:1px solid #c2ccec;border-radius:8px;margin-bottom:12px;padding:14px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.identity{color:#66749f;font-size:12px}.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.field{min-width:0;display:flex;flex-direction:column;gap:5px}.field>span{font-weight:bold;font-size:14px}.field small{color:#5d6c96;font-size:11px;line-height:1.45}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;min-height:38px;border:1px solid #b4c1e4;border-radius:5px;padding:8px;background:white;color:#142665}input[type=checkbox]{width:20px;height:20px}.directions{display:flex;gap:12px;flex-wrap:wrap;color:#677496;font-size:13px}.table-scroll{max-width:100%;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}td,th{padding:9px;text-align:left;border-bottom:1px solid #dce3f4}th{background:#152675;color:white;white-space:nowrap}tr:nth-child(even){background:#f5f7fd}.count{font-size:13px;color:#69749b}.table-scroll td input{min-width:112px}.table-scroll th:first-child{min-width:70px}dialog{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #b5c2e7;border-radius:8px;padding:12px;color:#152675}dialog header,dialog footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 0}dialog header h2{flex:1;font-size:17px;margin:0}dialog .table-scroll{max-height:60dvh}dialog footer{justify-content:flex-end}dialog::backdrop{background:#15267566}#message{position:fixed;right:12px;bottom:10px;max-width:calc(100vw - 24px);background:#152675;color:white;border-radius:6px;padding:8px 12px;empty-cells:hide}#message:empty{display:none}body.folded .shell{grid-template-columns:minmax(0,1fr)}body.folded aside{display:none}@media(max-width:899px){.shell{grid-template-columns:210px minmax(0,1fr)}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.shell{display:block}aside{max-height:44vh}.field-grid{grid-template-columns:minmax(0,1fr)}button{min-height:44px}#content{padding:10px}.top{padding:8px}.top #actor-state{flex-basis:50%}.card{padding:11px}.draft-strip{font-size:11px}.table-scroll{overflow-x:auto}.field small{font-size:12px}dialog{width:calc(100vw - 12px);padding:8px}dialog header button{min-width:44px;min-height:44px}}@media print{.draft-strip,aside,.top,.actions,#message,dialog{display:none!important}.shell{display:block}#content::before{content:'ทะเบียนทดลอง SW ไม่ใช่เอกสารภาษีหรือคำสั่งลงบัญชี';display:block;color:#152675}button{display:none}}

/* Finance compact mark: approved SW artwork, left SW glyphs fit64x32. */
.brand{font-size:13px}.brand img{width:64px;height:32px;object-fit:cover;object-position:left center;background:#fff}
