:root{font-family:Tahoma,system-ui,sans-serif;color:#20243f;background:#f4f5f9;font-size:16px;line-height:1.65}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{padding:22px max(5vw,20px);display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #dce0eb;background:white}a{color:#11116b;text-underline-offset:4px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:30px;font-weight:800;letter-spacing:2px}.brand>.brand-word{font-size:18px;letter-spacing:2px;line-height:1.3}.brand small{display:block;font-size:10px;letter-spacing:2.7px;color:#68728a;margin-top:5px}nav{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}main{max-width:1200px;margin:auto;min-height:65vh;padding:48px 24px}h1{font-size:clamp(28px,4vw,42px);line-height:1.3;margin:8px 0 16px;letter-spacing:-1px}h2{font-size:21px;margin:0 0 12px}h3{font-size:18px}.eyebrow{font-size:12px;font-weight:bold;letter-spacing:2px;color:#6a7289}.muted{color:#636d82;font-size:14px}.account{max-width:660px;margin:auto}.panel,.card{padding:26px;background:white;border:1px solid #dce0eb;border-radius:14px;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.card{margin:0;display:flex;flex-direction:column}.card p{font-size:14px;color:#636d82}.card .actions{margin-top:auto;padding-top:12px}.badge{display:inline-block;font-size:12px;border-radius:20px;background:#ededfa;color:#24246e;padding:3px 10px;width:fit-content;margin-bottom:12px}.badge.wait{background:#f0f1f5;color:#636d82}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px}.note{border-left:3px solid #e4342c;background:#fff2f1;padding:14px 18px;margin:24px 0;font-size:14px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.button,button{font:inherit;font-size:14px;font-weight:bold;display:inline-block;background:#11116b;color:white;text-decoration:none;border:1px solid #11116b;border-radius:8px;padding:11px 18px;cursor:pointer}.secondary{background:white;color:#11116b;border-color:#cbd3e1}button:disabled{opacity:.55;cursor:wait}label{display:block;font-size:14px;margin:16px 0 6px}input,select{display:block;width:100%;padding:12px;border:1px solid #bbc3d3;border-radius:7px;font:inherit;background:white;color:#20243f;margin-top:7px}label.check{display:flex;gap:10px;align-items:flex-start}input[type=checkbox]{width:18px;flex-shrink:0;margin-top:4px}fieldset{border:1px solid #dce0eb;margin:20px 0;border-radius:8px}legend{font-size:14px}.search{max-width:500px;margin-top:24px}.status{margin-bottom:16px}.error{color:#b42318}dl{display:grid;grid-template-columns:160px 1fr;font-size:14px;gap:8px}dt{color:#68728a}dd{margin:0;overflow-wrap:anywhere}.staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}footer{max-width:1200px;margin:auto;padding:24px;color:#68728a;font-size:12px;border-top:1px solid #dce0eb;display:flex;justify-content:space-between;gap:15px}dialog{max-width:500px;width:calc(100% - 32px);border:1px solid #dce0eb;border-radius:14px;padding:28px;color:#20243f}dialog::backdrop{background:#11113b70}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e4342c;outline-offset:3px}@media(max-width:850px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-grid{grid-template-columns:1fr}header{align-items:flex-start;flex-direction:column;gap:15px}}@media(max-width:540px){main{padding:30px 18px}.cards{grid-template-columns:1fr}.panel,.card{padding:21px}.intro{display:block}nav{gap:16px}footer{margin:0 18px;flex-direction:column}dl{grid-template-columns:1fr;gap:2px}dd{margin-bottom:9px}.actions .button{max-width:100%}.brand>.brand-word{font-size:17px}}

/* Veevara Group: original supplied logo, display crop only; original image unchanged. */
:root{--brand-navy:#11116b;--brand-red:#e4342c;--brand-gray:#acadad}
header{border-top:3px solid var(--brand-red)}
.brand{color:var(--brand-navy);gap:14px}.brand-mark{display:block;position:relative;width:46px;height:62px;overflow:hidden;flex:none;line-height:0}.brand-mark img{position:absolute;width:224px;max-width:none;height:auto;left:-88px;top:-83px}.brand-word{white-space:nowrap}.brand small{color:#68728a}h1,h2,h3{color:var(--brand-navy)}.card{border-top:3px solid var(--brand-navy)}.eyebrow{color:var(--brand-navy)}input[type=checkbox]{accent-color:var(--brand-navy)}.button:hover,button:hover{background:#08084f;border-color:#08084f;color:white}.secondary:hover{background:#ededfa;color:var(--brand-navy);border-color:#aeb7cf}nav a:hover{color:var(--brand-red)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--brand-navy)}@media(max-width:540px){.brand{gap:10px}.brand-mark{width:42px;height:58px}.brand-mark img{width:210px;left:-82px;top:-78px}}

.company-picker .company-choice{display:flex;align-items:flex-start;gap:10px;margin:10px 0}.company-choice input[type=checkbox]{margin-top:5px;min-height:18px;padding:0;accent-color:var(--brand-navy)}.company-picker{padding:12px}.company-choice span{min-width:0;overflow-wrap:anywhere}

/* /staff: grouped compact rows (pending orange · active blue · suspended gray) */
.staff-page{max-width:1100px}.staff-page .status{position:sticky;top:10px;z-index:5;background:white;border:1px solid #dce0eb;border-left:4px solid #1f7a4d;border-radius:10px;padding:10px 14px;box-shadow:0 6px 18px #11113b1f}.staff-page .status.error{border-left-color:#b42318}
.staff-stats{font-size:15px;margin:0 0 4px}.staff-stats b{color:var(--brand-navy)}.staff-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;margin:8px 0 22px}.staff-toolbar .search{margin:0;flex:1 1 320px}.staff-toolbar .search input{margin-bottom:0}
.staff-group{background:white;border:1px solid #dce0eb;border-left:4px solid #2f5fd0;border-radius:12px;margin:0 0 18px;overflow:hidden}.staff-group.pending{border-left-color:#e07b12}.staff-group.suspended{border-left-color:#9aa1b2}
.staff-group>summary,.staff-row>summary{list-style:none;cursor:pointer}.staff-group>summary::-webkit-details-marker,.staff-row>summary::-webkit-details-marker{display:none}
.staff-group>summary{display:flex;align-items:center;gap:10px;padding:14px 18px;font-weight:bold;color:var(--brand-navy)}.staff-group>summary::before{content:'▸';display:inline-block;transition:transform .15s}.staff-group[open]>summary::before{transform:rotate(90deg)}
.staff-group .count{font-size:12px;border-radius:20px;padding:1px 9px;background:#e8eefc;color:#1d4bb8}.staff-group.pending .count{background:#fff1e0;color:#9a4d00}.staff-group.suspended .count{background:#f0f1f5;color:#636d82}
.staff-row{border-top:1px solid #edf0f5}.staff-row>summary{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:4px 14px;align-items:center;padding:11px 18px}.staff-row>summary:hover{background:#f8f9fc}.staff-row[open]>summary{background:#f1f4fb}
.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:bold;background:#e8eefc;color:#1d4bb8}.staff-row.pending .avatar{background:#fff1e0;color:#9a4d00}.staff-row.suspended .avatar{background:#f0f1f5;color:#636d82}
.who{min-width:0}.who strong,.who span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.who span{font-size:13px;color:#636d82}
.row-tags{display:flex;flex-wrap:wrap;gap:6px 10px;justify-content:flex-end;align-items:center}.row-tags .badge{margin:0}.badge.warn{background:#fff1e0;color:#9a4d00}.badge.off{background:#f0f1f5;color:#636d82}.grant-sum{font-size:13px;color:#636d82}.dirty{font-size:12px;font-weight:bold;color:#b45309}
.staff-body{padding:6px 18px 18px;background:#f7f8fc;border-top:1px solid #e3e7ef}.staff-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px;margin-top:12px}.staff-cols>section{background:white;border:1px solid #dce0eb;border-radius:10px;padding:16px 18px;min-width:0}.staff-cols h3{margin:0 0 8px;font-size:16px}.staff-cols dl{grid-template-columns:100px 1fr}
.staff-body>.actions{margin-top:14px}.grant-list{margin:0 0 6px;padding-left:20px;font-size:14px}.danger{color:#b42318;border-color:#efc5c1}.danger:hover{background:#fff2f1;color:#b42318;border-color:#e4a59f}
@media(max-width:850px){.staff-cols{grid-template-columns:1fr}.staff-row>summary{grid-template-columns:40px minmax(0,1fr)}.row-tags{grid-column:2;justify-content:flex-start}}

/* Home: one icon tile per module · #app=<id> opens the module panel (links as rows) */
.icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin-top:24px}
.tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 12px 18px;background:white;border:1px solid #dce0eb;border-radius:14px;text-align:center;text-decoration:none;color:#20243f;transition:border-color .15s,box-shadow .15s,transform .15s}
.tile:hover{border-color:#aeb7cf;box-shadow:0 6px 18px #11113b14;transform:translateY(-2px)}
.tile .icon,.app-head .icon{width:30px;height:30px;padding:14px;box-sizing:content-box;border-radius:16px;background:#ededfa;color:var(--brand-navy)}
.tile strong{font-size:15px;line-height:1.35;color:var(--brand-navy)}.tile small{font-size:12px;color:#636d82}
.tile.wait .icon{background:#f0f1f5;color:#5f697c}.tile.wait strong{color:#4a5168}
.back{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:bold;text-decoration:none;margin-bottom:16px}.back .icon{width:20px;height:20px}
.app-panel{max-width:760px;margin:0 auto}.app-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}.app-head .icon{width:28px;height:28px;padding:12px}.app-head h1{margin:0;font-size:clamp(24px,3.4vw,32px)}
.app-panel .actions{flex-direction:column;align-items:stretch;gap:8px;margin:14px 0 4px;padding-top:0}
.app-panel .actions .button{display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;color:var(--brand-navy);border-color:#dce0eb;padding:14px 16px;font-size:15px}
.app-panel .actions .button::after{content:'›';font-size:24px;line-height:1;color:#9aa1b2}.app-panel .actions .button[target=_blank]::after{content:none}
.app-panel .actions .button:hover{background:#f1f4fb;border-color:#aeb7cf;color:var(--brand-navy)}
.app-panel .note{margin:18px 0 0}.clock-status{margin-top:22px;padding-top:18px;border-top:1px solid #e3e7ef}.clock-status h2{font-size:18px}.clock-status h3{font-size:16px;margin:12px 0 6px}
@media(max-width:540px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{padding:18px 8px 14px}.tile strong{font-size:14px}.tile .icon{width:26px;height:26px;padding:12px}}

/* registration: address textarea matches inputs */
label>textarea{display:block;width:100%;padding:12px;border:1px solid #bbc3d3;border-radius:7px;font:inherit;background:white;color:#20243f;margin-top:7px;resize:vertical}label>textarea:focus-visible{outline:3px solid var(--brand-navy);outline-offset:3px}

/* staff face photo: preview in forms and /staff, avatar thumbnail */
.photo-field{padding:12px}.photo-field .actions{margin:8px 0}.photo-preview{display:block;width:150px;height:190px;object-fit:cover;border-radius:10px;border:1px solid #dce0eb;background:#f4f5f9;margin:8px 0 12px}img.avatar{object-fit:cover;display:block}

/* UI refresh 2 ธ.ค. 2569 (มายด์): ปุ่ม/พื้นที่กดใหญ่ขึ้น · หัวกรมท่านุ่ม · สีประจำกลุ่มงาน (แบบ A ลดความเข้มน้ำเงิน) */
:root{--navy-soft:#3d4a8c;--navy-ink:#2f3a6e;--red-soft:#e8574f;--eyebrow-red:#b8332d}
body{background:linear-gradient(180deg,#f1f3f9,#eaedf6);min-height:100vh}
body>header{background:linear-gradient(135deg,#3d4a8c 0%,#44539a 60%,#4a5aa0 100%);border-top:0;border-bottom:4px solid var(--red-soft);color:#fff}
body>header .brand,body>header .brand-word,body>header .brand small{color:#fff}
body>header .brand-mark{background:#fff;border-radius:12px}
body>header nav{gap:6px 8px}
body>header nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;font-size:15px;font-weight:600;text-decoration:none;color:#fff;background:#ffffff24;border-radius:22px}
body>header nav a:hover{color:var(--navy-soft);background:#fff}
body>header nav a[aria-current],body>header nav a.on,body>header nav a.active{background:#fff;color:var(--navy-soft)}
h1,h2,h3,.tile strong,.eyebrow{color:var(--navy-ink)}
.eyebrow{color:var(--eyebrow-red)}
.muted,.card p,.tile small{color:#4a5368}
.brand small{color:#4a5368}
.button,button{min-height:44px;font-size:15px;padding:0 20px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}
input,select{min-height:44px}
.card{border-radius:18px;border-top:0;box-shadow:0 6px 18px #3d4a8c1f}
.tile{border:0;border-radius:18px;box-shadow:0 4px 14px #3d4a8c1a;position:relative;overflow:hidden}
.tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--gc,#566074)}
.tile:hover{border-color:transparent;box-shadow:0 8px 22px #3d4a8c2e}
.tile .icon,.app-head .icon{background:var(--gb,#ededfa);color:var(--gc,var(--navy-soft))}
.tile.wait::before{background:#c3c9d8}.tile.wait .icon{background:#f0f1f5;color:#5f697c}
.g-sales{--gc:#0e7a3d;--gb:#e3f6ea}.g-ops{--gc:#a85700;--gb:#fff0d9}.g-data{--gc:#1857c4;--gb:#e2edff}.g-people{--gc:#7a3fc0;--gb:#f0e6fb}.g-site{--gc:#0b6e75;--gb:#e0f3f4}.g-other{--gc:#566074;--gb:#eceef4}
.app-panel{position:relative;overflow:hidden;padding-left:26px}
.app-panel::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--gc,var(--navy-soft))}
.app-panel .button:not(.secondary),.app-panel button:not(.secondary){background:var(--gc,var(--navy-soft));border-color:var(--gc,var(--navy-soft))}
.app-panel .actions .button:not(.secondary),.app-panel .actions .button:not(.secondary):hover{background:var(--gc,var(--navy-soft));border-color:var(--gc,var(--navy-soft));color:#fff}
.app-panel .actions .button:not(.secondary)::after{color:#fff}
.app-panel .actions .button:not(.secondary):hover{filter:brightness(.9)}
.badge{background:var(--gb,#ededfa);color:var(--gc,#24246e);font-weight:700}
@media(max-width:540px){input,select,textarea{font-size:16px}.tiles{gap:12px}body>header nav a{padding:0 14px}}
