@font-face{font-family:FactorsNoto;src:url(noto-sans-thai.ttf) format('truetype');font-weight:100 500;font-display:swap}
:root{--fi-plum:#153f40;--fi-primary:#187a78;--fi-ink:#274242;--fi-muted:#788f8e;--fi-gold:#dbbf82;--fi-line:#dfeae9;--fi-bg:#f4f8f7;--gr-border:#dfeae9;--gr-green:#187a78;--gr-navy:#153f40}
body.grstaff-app{font-family:FactorsNoto,Tahoma,sans-serif;color:var(--fi-ink);background:var(--fi-bg);font-size:15px;line-height:1.7}
.factors-app h1,.factors-app h2,.factors-app h3,.factors-app button,.factors-app input,.factors-app select,.factors-app textarea{font-family:inherit}
.factors-app a{color:#46817f}.fi-icon{width:21px;height:21px;flex:0 0 auto;vertical-align:middle}.fi-skip{position:fixed;top:-100px;left:300px;z-index:1600;background:#fff;padding:12px 20px}.fi-skip:focus{top:12px}
.factors-app .fi-topbar{position:fixed;left:274px;right:0;top:0;z-index:1000;height:84px;background:#fff;border-bottom:1px solid var(--fi-line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 30px}
.fi-topbar-brand,.fi-topbar-actions{display:flex;align-items:center;gap:22px}.fi-topbar-brand strong{font-size:17px;color:#153f40;font-weight:700}.fi-topbar-brand small{display:block;color:#889f9e;font-size:11px;margin-top:3px}.fi-header-user{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.fi-header-user>.fi-icon{box-sizing:content-box;padding:10px;background:#ecf7f6;border-radius:50%}.fi-header-logout{display:flex;gap:8px;align-items:center;font-size:12px}.fi-menu-toggle,.fi-sidebar-close{display:none;border:0;background:transparent;color:inherit;width:40px;height:40px;padding:8px;align-items:center;justify-content:center}
.factors-app .gr-lang-switch.fi-language{display:flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid #d5e7e6;border-radius:999px;background:#fff;margin:0;position:static}.fi-language button{display:flex;align-items:center;gap:6px;padding:5px 7px;border:0;border-radius:999px;font-size:11px;min-width:0;background:transparent;color:#789b9a}.fi-language button.is-active{color:#377371;background:#ebf6f5;font-weight:700}.fi-language img{object-fit:cover;width:21px;height:14px;border-radius:2px}.fi-language>span{color:#c9dede}.fi-flag-th{display:inline-block;width:21px;height:14px;border-radius:2px;background:linear-gradient(#bb2134 0 16.66%,#fff 16.66% 33.33%,#27336c 33.33% 66.66%,#fff 66.66% 83.33%,#bb2134 83.33%)}
.factors-app .fi-page-heading{margin:84px 0 0 274px;padding:27px 30px 21px;background:transparent}.fi-breadcrumb{font-size:12px;color:#809f9e;margin-bottom:18px}.fi-breadcrumb>span:first-child{margin:0 15px}.fi-eyebrow{font-size:10px;letter-spacing:2px;color:#749e9d;font-weight:600;display:flex;align-items:center;gap:12px}.fi-eyebrow:before{content:'';width:27px;height:3px;background:var(--fi-gold)}.fi-page-heading h1{font-size:28px;font-weight:700;color:#153f40;margin:12px 0 6px}.fi-page-heading p{font-size:13px;color:var(--fi-muted);margin:0}
body.factors-app .gr-shell.gr-layout{display:block!important;width:auto!important;margin:0 30px 0 304px;padding:0 0 28px}.factors-app .gr-main{padding:24px;border:1px solid var(--fi-line);border-radius:18px;background:#fff;box-shadow:0 5px 18px #1e4d4b05;overflow-wrap:normal}.factors-app .gr-aside-col{display:contents}
.factors-app .gr-sidebar.fi-sidebar{position:fixed;inset:0 auto 0 0;width:274px;height:100dvh;z-index:1100;background:linear-gradient(155deg,#285654,#1f4644);border:0;border-radius:0;box-shadow:none;color:#dbeeee;padding:0;display:flex;flex-direction:column;overflow:hidden}.fi-sidebar-scroll{padding:30px 18px 22px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent}.fi-logo{display:block;padding:0 10px;margin:0 0 28px}.fi-logo img{width:220px;height:auto;max-width:100%}.fi-sidebar-brand{padding:0 12px 24px}.fi-sidebar-brand>span{font-size:9px;letter-spacing:2px;color:#a2cac8}.fi-sidebar-brand strong{display:block;font-size:16px;color:#fff;margin:7px 0}.fi-sidebar-brand small{font-size:11px;color:#a0c4c3}.factors-app .gr-user{display:flex;gap:10px;align-items:center;padding:14px 11px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff08;margin-bottom:24px}.factors-app .gr-user strong{font-size:13px;font-weight:600;color:#fff}.factors-app .gr-user small{display:block;font-size:11px;color:#a8c6c5}.factors-app .gr-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#ffffff15;color:#ead09b}.factors-app .gr-menu-title{font-size:11px;color:#94bfbe;font-weight:500;padding:0 12px;margin:0 0 12px}.factors-app .gr-side-links{display:flex;flex-direction:column;gap:6px}.factors-app .gr-side-links a{display:flex;align-items:center;gap:12px;border:0;border-left:3px solid transparent;border-radius:11px;padding:12px 11px;min-height:48px;color:#d1e8e7;background:transparent;font-weight:500;font-size:14px;text-decoration:none}.factors-app .gr-side-links a.is-active{background:#ffffff16;border-left-color:#dec287;color:#fff;font-weight:700}.factors-app .gr-side-links a:hover{background:#ffffff0d;color:#fff}.fi-sidebar-note{display:flex;align-items:flex-start;gap:10px;margin:28px 12px 0;padding-top:22px;border-top:1px solid #ffffff16;font-size:11px;color:#96c0bf}.fi-fixed-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 auto;border-top:1px solid #ffffff20;background:#1d4140}.fi-fixed-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:12px 3px;border-right:1px solid #ffffff12;color:#dbf0ef!important;font-size:10px;line-height:1.5;font-weight:600;text-align:center;text-decoration:none}.fi-fixed-tabs a:hover{background:#ffffff16}.fi-fixed-tabs a:last-child{border-right:0}.fi-fixed-tabs svg{width:23px;height:23px}
.factors-app .gr-footer{background:transparent;border:0;margin-left:274px;padding:0 30px}.factors-app .gr-footer .gr-shell{width:100%;border-top:1px solid var(--fi-line);font-size:11px;color:#869f9e;padding:20px 0}.factors-app .gr-footer strong{color:#658281;font-size:12px}.factors-app .gr-footer span{font-size:11px}
.factors-app .gr-main .container,.factors-app .gr-main .container-fluid{width:100%!important;max-width:100%;padding:0}.factors-app .gr-main .breadcrumbs{background:transparent;border:0;margin-bottom:20px}.factors-app .gr-main .breadcrumbs h1{font-size:20px!important;color:#285654!important;font-weight:700}.factors-app .gr-main .panel{border:1px solid var(--fi-line);border-radius:14px;box-shadow:none;overflow:visible}.factors-app .gr-main .panel-heading{background:#eef8f7!important;color:#336664!important;border-color:var(--fi-line)!important;border-radius:14px 14px 0 0;font-weight:700;padding:15px 18px}.factors-app .gr-main .panel-title{font-size:17px!important;font-weight:700}.factors-app .gr-main .panel-body{padding:20px}
.factors-app .gr-main .fi-table-scroll{overflow-x:auto;border:1px solid var(--fi-line);border-radius:12px;margin:16px 0;scrollbar-width:thin}.factors-app .gr-main table{width:100%!important;max-width:100%;border-collapse:collapse;font-size:14px;line-height:1.7;background:#fff}.factors-app .gr-main th{background:#ecf7f6!important;color:#3d7472!important;font-size:14px;font-weight:700;padding:13px 14px!important;border:1px solid #deeded!important}.factors-app .gr-main td{padding:12px 14px;border-color:#deeded!important;vertical-align:top}.factors-app .gr-main .fi-table-scroll table{margin:0;min-width:640px}.factors-app .gr-main .gr-record-group td{font-size:17px;font-weight:700;background:#ecf7f6!important;color:#366867!important}.factors-app .gr-main tr:hover>td{background-color:#f6fbfb}.fi-table-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;font-size:12px;color:#83a09f}.fi-table-search{display:grid;grid-template-columns:19px minmax(0,1fr);align-items:center;gap:9px;border:1px solid #d0e3e3;border-radius:10px;padding:0 12px;width:min(340px,100%);margin-left:auto;background:#fff}.fi-table-search .fi-icon{width:18px;height:18px;color:#86b2b1}.factors-app .gr-main .fi-table-search input[type=search]{border:0!important;background:transparent!important;padding:10px 0!important;min-height:42px;box-shadow:none!important;border-radius:0!important;width:100%;min-width:0}
.factors-app .gr-main input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),.factors-app .gr-main select,.factors-app .gr-main textarea{width:100%;max-width:100%;border:1px solid #cbe3e2!important;border-radius:10px!important;background:#fff!important;padding:10px 13px!important;min-height:44px;height:auto;color:#2f5453;font:inherit;line-height:1.6;box-shadow:none!important}.factors-app .gr-main textarea{min-height:120px}.factors-app .gr-main input[type=radio],.factors-app .gr-main input[type=checkbox]{width:20px;height:20px;accent-color:#187a78;vertical-align:middle}.factors-app .gr-main input[type=file]{border-style:dashed!important;padding:18px!important;background:#f8fcfc!important}.factors-app .gr-main input[type=file]::file-selector-button{background:#dff2f2;border:0;border-radius:999px;padding:8px 14px;margin-right:12px;color:#396e6c;font:inherit;font-weight:600}.factors-app :focus-visible{outline:3px solid #d5b16d;outline-offset:3px}
.factors-app .gr-main .btn,.factors-app .gr-main .btn-u,.factors-app .gr-main button:not(.fi-icon-only),.factors-app .gr-main input[type=submit],.factors-app .gr-main input[type=button],.factors-app .gr-main input[type=reset],.factors-app .fi-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 15px!important;border:1px solid #187a78!important;border-radius:999px!important;background:#187a78!important;color:#fff!important;font:600 13px/1.6 FactorsNoto,Tahoma,sans-serif!important;box-shadow:none;text-decoration:none;cursor:pointer;vertical-align:middle;white-space:normal;width:auto;max-width:100%;height:auto!important}.factors-app .fi-action svg{width:17px;height:17px;flex:0 0 17px}.factors-app .gr-main .fi-action.fi-action-edit{background:#fff6e9!important;border-color:#ead1a8!important;color:#8e5b17!important}.factors-app .gr-main .fi-action.fi-action-danger{background:#fff0f2!important;border-color:#edbdc6!important;color:#ab3349!important}.factors-app .gr-main .fi-action.fi-action-approve{background:#edf8f1!important;border-color:#b9dcc6!important;color:#26714a!important}.factors-app .gr-main .fi-action.fi-action-view{background:#eff4ff!important;border-color:#c8d7ed!important;color:#365c9a!important}.factors-app .gr-main .fi-action.fi-action-back{background:#f0f6f6!important;border-color:#cfe1e0!important;color:#5c7978!important}.factors-app .gr-main .fi-action.fi-action-published{background:#eef8f9!important;border-color:#bcdee0!important;color:#1d747c!important}.factors-app .gr-main .fi-action:hover{filter:brightness(.94)}.factors-app .fi-text-action{display:inline-flex!important;align-items:flex-start!important;text-align:left;gap:7px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#46817f!important;font-weight:600}.fi-text-action svg{margin-top:3px;width:17px;height:17px;flex:0 0 17px}.fi-text-action span{min-width:0}.fi-text-action:hover span{text-decoration:underline}
.gr-back-to-top{background:#fff!important;color:#187a78!important;box-shadow:0 5px 20px #153f4024!important;border:0!important}.gr-back-to-top .gr-progress-track{stroke:#dcebeb}.gr-back-to-top .gr-progress-value{stroke:#d6ad57;transition:none}.gr-back-to-top .gr-scroll-percent{display:none}.gr-back-to-top .gr-up-arrow{width:21px;height:21px;left:50%;top:50%;transform:translate(-50%,-50%)}
.fi-backdrop[hidden]{display:none!important}.fi-backdrop{position:fixed;inset:0;background:#281f3880;border:0;z-index:1090}.factors-app.fi-menu-open{overflow:hidden}
/* Survey retains the existing rating fields and save workflow. */
.gr-survey-page{background:#f3f9f9!important}.gr-survey-header h1{color:#153f40}.gr-survey-kicker{color:#187a78}.gr-survey-question{border-color:#d9ecec!important;border-radius:16px!important}.gr-survey-number{background:#187a78!important}.gr-survey-choice{border-radius:12px!important;border-color:#d0e7e6!important;padding:18px 12px!important;min-height:100px}.gr-survey-choice:has(input:checked){background:#e8f7f7!important;border-color:#187a78!important;box-shadow:0 0 0 1px #187a78!important}.gr-survey-choice input{accent-color:#187a78}.gr-survey-notes textarea{width:100%;border-radius:12px!important;min-height:130px;border:1px solid #cbe3e2!important}.gr-survey-actions input{border-radius:999px!important;background:#187a78!important;color:#fff!important;min-height:46px;padding:11px 24px!important;border:0!important;font:700 15px FactorsNoto,Tahoma,sans-serif}
@media(max-width:1100px){.fi-header-user span{display:none}.fi-topbar-actions{gap:14px}.factors-app .gr-main{padding:18px}.fi-topbar-brand strong{font-size:15px}}
@media(max-width:900px){.factors-app .gr-sidebar.fi-sidebar{transform:translateX(-100%);transition:transform .2s}.factors-app.fi-menu-open .fi-sidebar{transform:translateX(0)}.fi-menu-toggle,.fi-sidebar-close{display:flex}.fi-sidebar-close{position:absolute;top:6px;right:4px;color:#fff}.factors-app .fi-topbar{left:0;padding:12px 18px}.factors-app .fi-page-heading{margin-left:0;padding:22px 18px}.fi-topbar-brand{gap:8px}body.factors-app .gr-shell.gr-layout{margin:0 18px!important}.factors-app .gr-footer{margin-left:0;padding:0 18px}.fi-sidebar-scroll{padding-top:48px}.fi-sidebar-scroll .fi-logo{margin-bottom:22px}.fi-header-logout span{display:none}}
@media(max-width:600px){.factors-app .fi-topbar{height:76px;padding:10px 12px}.fi-topbar-brand strong{font-size:13px}.fi-topbar-brand small{font-size:9px;max-width:170px}.fi-topbar-actions{gap:10px}.fi-header-user{display:none}.fi-language button{font-size:10px!important;padding:5px!important}.factors-app .fi-page-heading{margin-top:76px;padding:22px 14px}.fi-page-heading h1{font-size:24px}.fi-page-heading p{font-size:12px}body.factors-app .gr-shell.gr-layout{margin:0 12px!important}.factors-app .gr-main{padding:14px}.fi-table-tools{align-items:flex-start;flex-wrap:wrap;gap:8px}.fi-table-search{width:100%}.fi-table-tools>span{width:100%}.factors-app .gr-footer-inner{display:block}.factors-app .gr-footer-inner>div+div{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.factors-app .fi-sidebar{transition:none!important}}

*{box-sizing:border-box}
body.grstaff-app{margin:0!important;font-family:FactorsNoto,Tahoma,sans-serif!important}
.factors-app .gr-side-links a.is-active{color:#fff!important}
.gr-back-to-top:before{background:#fff!important}
.gr-back-to-top .gr-up-arrow{color:#187a78!important;stroke:#187a78!important}
@font-face{font-family:FactorsNoto;src:url(noto-sans-thai-bold.ttf) format('truetype');font-weight:600 900;font-display:swap}
body.grstaff-app.factors-app *,body.grstaff-app.factors-app *:before,body.grstaff-app.factors-app *:after,body.grstaff-app.gr-survey-page *{font-family:FactorsNoto,Tahoma,sans-serif!important}
body.factors-app #factors-sidebar{border-radius:0!important}
body.factors-app #factors-sidebar .gr-side-links a{border-radius:11px!important;color:#d1e8e7!important}
body.factors-app #factors-sidebar .gr-side-links a.is-active{color:#fff!important;border-left-color:#dec287!important}
body.factors-app #factors-sidebar .gr-side-links svg{color:inherit!important}
.fi-language button:before,.fi-language button:after{content:none!important;display:none!important}
.factors-app #main-content .fi-table-search{border:1px solid #d0e3e3!important;border-radius:10px!important;padding:0 12px!important;background:#fff!important}
.factors-app #main-content .fi-table-search input[type=search]{border:0!important;border-radius:0!important;padding:10px 0!important;font-size:13px!important;outline:none!important;box-shadow:none!important;background:transparent!important}
.fi-table-search:focus-within{outline:2px solid #d5b16d;outline-offset:2px}
/* Keep legacy hover rules from changing the sidebar to a pale background. */
body.grstaff-app.factors-app #factors-sidebar .gr-side-links a:hover,body.grstaff-app.factors-app #factors-sidebar .gr-side-links a:focus-visible{background:#356966!important;color:#fff!important;box-shadow:none!important}
body.grstaff-app.factors-app #factors-sidebar .gr-side-links a.is-active{background:#ffffff19!important;color:#fff!important;border-left-color:#dec287!important;box-shadow:none!important}
body.grstaff-app.factors-app #factors-sidebar .gr-side-links a:hover *,body.grstaff-app.factors-app #factors-sidebar .gr-side-links a:focus-visible *{color:inherit!important}
/* Independent circular control: centered arrow, white center, blue ring and gold progress. */
body.grstaff-app.factors-app button.gr-back-to-top,body.grstaff-app.factors-app button.gr-back-to-top:hover,body.grstaff-app.factors-app button.gr-back-to-top:focus{position:fixed!important;right:24px!important;bottom:24px!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;padding:0!important;border:0!important;border-radius:50%!important;display:block!important;background:#fff!important;color:#293478!important;box-shadow:0 5px 20px #153f4026!important;isolation:isolate;cursor:pointer}
body.grstaff-app.factors-app button.gr-back-to-top:before,body.grstaff-app.factors-app button.gr-back-to-top:after{content:none!important}
body.grstaff-app.factors-app button.gr-back-to-top .gr-progress{position:absolute!important;inset:0!important;width:56px!important;height:56px!important;margin:0!important;transform:rotate(-90deg)!important;pointer-events:none}
body.grstaff-app.factors-app button.gr-back-to-top .gr-progress circle{fill:none!important;stroke-width:2.8!important}
body.grstaff-app.factors-app button.gr-back-to-top .gr-progress-track{stroke:#293478!important}
body.grstaff-app.factors-app button.gr-back-to-top .gr-progress-value{stroke:#e1b544!important;stroke-dasharray:100!important;stroke-linecap:round;transition:none!important}
body.grstaff-app.factors-app button.gr-back-to-top .gr-up-arrow{position:absolute!important;left:50%!important;top:50%!important;width:22px!important;height:22px!important;margin:0!important;transform:translate(-50%,-50%)!important;color:#293478!important;stroke:#293478!important;pointer-events:none}
body.grstaff-app.factors-app button.gr-back-to-top .gr-scroll-percent{display:none!important}
@media(max-width:600px){body.grstaff-app.factors-app button.gr-back-to-top,body.grstaff-app.factors-app button.gr-back-to-top:hover,body.grstaff-app.factors-app button.gr-back-to-top:focus{right:15px!important;bottom:18px!important}}
body.grstaff-app.factors-app .fi-header-user{display:flex!important;align-items:center;gap:10px;min-width:0;text-decoration:none!important}
body.grstaff-app.factors-app .fi-header-user .fi-header-user-badge{display:grid!important;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px!important;background:#e8f5f3;color:#187a78;overflow:hidden}
body.grstaff-app.factors-app .fi-header-user-badge svg{width:22px;height:22px;padding:0;margin:0;background:none}
body.grstaff-app.factors-app .fi-header-user .fi-header-user-copy{display:flex!important;flex-direction:column;min-width:0;max-width:240px;line-height:1.5}
body.grstaff-app.factors-app .fi-header-user-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;color:#153f40}
body.grstaff-app.factors-app .fi-header-user-copy small{display:block;color:#537977;font-size:12px;font-weight:500}
@media(min-width:601px) and (max-width:1100px){body.grstaff-app.factors-app .fi-header-user .fi-header-user-copy{max-width:165px}.fi-topbar-brand{min-width:0}.fi-topbar-brand>div{min-width:0}.fi-topbar-brand strong{font-size:14px}}
@media(max-width:600px){
 body.grstaff-app.factors-app .fi-topbar{height:124px;flex-wrap:wrap;gap:8px 10px;align-content:center}
 body.grstaff-app.factors-app .fi-topbar-brand{order:1;flex:1 1 calc(100% - 142px);gap:6px;min-width:0}
 body.grstaff-app.factors-app .fi-topbar-actions{display:contents}
 body.grstaff-app.factors-app .fi-topbar .fi-language{order:2;flex:0 0 auto;gap:2px}
 body.grstaff-app.factors-app .fi-header-user{order:3;flex:1 1 calc(100% - 50px)}
 body.grstaff-app.factors-app .fi-header-user .fi-header-user-badge{width:36px;height:36px;flex-basis:36px;border-radius:10px!important}
 body.grstaff-app.factors-app .fi-header-user .fi-header-user-copy{max-width:calc(100vw - 110px)}
 body.grstaff-app.factors-app .fi-header-user-copy strong{font-size:13px}
 body.grstaff-app.factors-app .fi-header-user-copy small{font-size:11px}
 body.grstaff-app.factors-app .fi-header-logout{order:4;flex:0 0 32px;justify-content:center}
 body.grstaff-app.factors-app .fi-page-heading{margin-top:124px}
}
