:root{color-scheme:light;--ink:#173e2c;--muted:#52705c;--accent:#165c26;--line:#ffffffad;--glass:#f5faf1b8;--surface:#f9fcf5;--field:#fbfdf9;--fieldline:#a4bba3;--soft:#dfead9;--gold:#967129;--divider:#b5c9ae66;--highlight:#e8efe2;--shadow:#123f2314}
:root[data-theme=dark]{color-scheme:dark;--ink:#e4efdf;--muted:#adbead;--accent:#a3d5a0;--line:#a8c4a92b;--glass:#172d24d9;--surface:#192f26;--field:#10291f;--fieldline:#536e58;--soft:#294738;--gold:#ddc47e;--divider:#92b59b38;--highlight:#283f2f;--shadow:#0005}
body{background:radial-gradient(ellipse at 0 0,#dce7c7,transparent 55%),radial-gradient(ellipse at 95% 75%,#a3b77b66,transparent 50%),linear-gradient(135deg,#aec3a4,#6a8f6b 65%,#8d9c61);color:var(--ink)}body:before{background:linear-gradient(145deg,transparent 30%,#fff1 30%,#fff1 34%,transparent 34%,transparent 68%,#9b7d2612 68%)}[data-theme=dark] body{background:radial-gradient(ellipse at 0 0,#244a33,transparent 50%),radial-gradient(ellipse at 90% 90%,#69602a22,transparent 50%),linear-gradient(130deg,#0c1c15,#10271b 65%,#17281b)}.ambient{background:radial-gradient(ellipse at 68% 25%,#e4e7b92c,transparent 40%)}.glass{border-color:var(--line);background:var(--glass);box-shadow:0 12px 28px var(--shadow),inset 0 1px 0 #fff2}main{background:#f0f5e27d}[data-theme=dark] main{background:#0f251bb3}.mark{background:linear-gradient(140deg,#337345,#165c26);color:#f5e9bb;border:1px solid #d7c48388;box-shadow:0 7px 20px #143f252b}.nav a:first-child{color:var(--ink)}.nav a[aria-current=page]{color:#fffae8;background:linear-gradient(120deg,#326e40,#165c26);box-shadow:0 8px 24px #123d2533;border:1px solid #d4c07e66}.nav a:not([aria-current=page]):hover{background:var(--soft)}header p,footer{color:var(--muted)}.refresh,.replay,.headercontrol{border:1px solid var(--fieldline);background:var(--field);color:var(--ink);border-radius:12px;box-shadow:0 4px 12px var(--shadow)}.refresh svg{color:var(--accent)}.replay{font-size:12px}.headercontrol{display:flex;gap:7px;align-items:center;padding:11px 13px;font-size:12px;white-space:nowrap;transition:transform .15s,background .15s}.headercontrol svg{width:18px;height:18px}.headercontrol:hover{transform:translateY(-2px);background:var(--highlight)}.headercontrol:active{transform:scale(.97)}.headerbuttons{flex-wrap:wrap;justify-content:flex-end}.scope select,input,select{background:var(--field);color:var(--ink);border-color:var(--fieldline)}input::placeholder{color:var(--muted)}.search svg{color:var(--muted)}.ico{background:linear-gradient(130deg,#d5e5be,#c1d7ab88);color:#165c26}[data-theme=dark] .ico{background:linear-gradient(130deg,#31593a,#294633);color:#c0dca4}.ribbon{background:linear-gradient(110deg,#337449,#165c26);border-color:#d1c38e99;color:#fffcf0;box-shadow:inset 0 1px 0 #fff3,0 12px 26px #153d2414}.ring circle{stroke:#ffffff40}.ring .ringvalue{stroke:#e4d19a}.modebar button{background:var(--glass);border-color:var(--line);color:var(--ink)}.modebar button[aria-pressed=true]{background:var(--field);border-color:var(--gold);color:var(--accent);box-shadow:0 3px 12px var(--shadow)}.track{background:var(--soft)}.tie-summary,.leader,.eventcard details{border-color:var(--divider)}.tie-summary strong,.textbutton,.tie-summary summary,.eventcard summary,.persondetail summary{color:var(--accent)}.avatar,.dept{background:var(--soft);color:var(--ink)}.leader .score{background:var(--highlight);color:var(--ink)}.rankingnote,.quality{background:var(--highlight);border-color:var(--fieldline);color:var(--ink)}.rankingnote strong,.rankcell{color:var(--gold)}.notice{background:#fff3d1;color:#634c18;border-color:#ac9149}[data-theme=dark] .notice{background:#3b331a;color:#f1daa0;border-color:#867847}.datebox{background:linear-gradient(145deg,#d8dfb5,#b9ca9d);color:#31572b;border-color:#c9d8b2}[data-theme=dark] .datebox{background:linear-gradient(145deg,#35563a,#29412f);color:#d9e5bb;border-color:#658562}.detailperson{background:var(--highlight)}.countzero{color:var(--muted)}.tablewrap table{color:var(--ink)}thead{background:var(--soft)}td{background:var(--surface);border-color:var(--divider);color:var(--ink)}td:nth-child(2){color:var(--ink)}tbody tr:hover td{background:var(--highlight)}.asidefoot,.legend small,.mininote,.stat small,.caption,.leader small,.eventcontent>p,.eventcount span,.detailperson small,.result,.scope span,.deptline,.barunit,.emptyblock,.loading p{color:var(--muted)}.dot{background:#a18a50}.ok .dot,.sheeticon{background:#3c8050}[data-theme=dark] .ok .dot,[data-theme=dark] .sheeticon{background:#97d3a0}.bad .dot{background:#ca6155}.loader{border-color:var(--soft);border-top-color:var(--accent)}.tablewrap:focus-visible{outline-color:var(--accent)}.positioncol{color:var(--muted)!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.headercontrol,.modebar button{transition:transform .15s}.printdialog{border:1px solid var(--line);border-radius:20px;padding:25px;max-width:470px;width:calc(100% - 32px);background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #0005}.printdialog::backdrop{background:#06231388;backdrop-filter:blur(4px)}.printdialog h2{margin-bottom:8px;font-size:21px}.printdialog p{font-size:12px;line-height:1.9;color:var(--muted)}.printdialog label{display:block;margin:15px 0 7px;font-size:13px;font-weight:600}.printdialog select{width:100%}.dialogactions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.dialogactions button{padding:10px 18px;border-radius:10px;font-size:13px;border:1px solid var(--fieldline);background:var(--field);color:var(--ink)}.dialogactions .primary{background:#165c26;color:#fff;border-color:#165c26}.printstatus{min-height:24px;font-size:11px!important}.print-only{display:none!important}
@media(max-width:1250px){header{flex-wrap:wrap;gap:12px}.headerbuttons{gap:6px}.headercontrol{font-size:11px;padding:10px 12px}}@media(max-width:650px){header{align-items:flex-start}.headerbuttons{width:100%;justify-content:flex-start;gap:7px}.headercontrol{padding:10px 12px;font-size:11px}.refresh{font-size:11px;padding:10px}.refresh svg{width:18px}.replay{padding:10px 12px}.headerbuttons .replay span{display:inline;font-size:11px}.headerbuttons .replay{font-size:11px}.printdialog{padding:20px}}
@media print{
 :root,:root[data-theme=dark]{color-scheme:light!important}html,body{background:#fff!important;color:#111!important;padding:0!important;margin:0!important;overflow:visible!important}body>.app,body>.ambient,body:before,dialog{display:none!important}.print-only{display:block!important}#printreport{font-family:'Noto Sans Thai',Tahoma,sans-serif;color:#111!important;background:#fff!important;font-size:9pt;line-height:1.65;overflow:visible;width:auto;max-width:none}#printreport *{animation:none!important;transition:none!important;transform:none!important;box-shadow:none!important;text-shadow:none!important;color:#111!important;backdrop-filter:none!important}#printreport h1{font-size:16pt;text-align:center;margin:0 0 3mm;letter-spacing:0}#printreport h2{font-size:12pt;margin:5mm 0 2mm;break-after:avoid}#printreport h3{font-size:10pt;margin:3mm 0 1mm;break-after:avoid}#printreport p{font-size:9pt;margin:1mm 0 2mm}#printreport .reportheader{text-align:center;border-bottom:1pt solid #333;padding-bottom:3mm;margin-bottom:4mm}#printreport .reportmeta{font-size:8pt}#printreport .reportstats{display:flex;gap:4mm;justify-content:space-between;border:1px solid #777;padding:3mm;margin:3mm 0;break-inside:avoid}#printreport .reportstats div{flex:1}#printreport .reportstats strong{display:block;font-size:14pt}#printreport .reportstats span{font-size:8pt}#printreport table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:8pt;line-height:1.6;text-align:left;margin:2mm 0 4mm}#printreport thead{display:table-header-group;position:static;background:#eee!important}#printreport tr{break-inside:avoid;page-break-inside:avoid}#printreport td,#printreport th{background:transparent!important;border:0.5pt solid #999;padding:1.2mm 2mm!important;font-size:8pt;width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top}#printreport th{font-weight:700;background:#eee!important}#printreport td:nth-child(2){color:#111!important}#printreport .reportfoot{border-top:0.5pt solid #777;padding-top:2mm;font-size:7pt;margin-top:4mm;overflow-wrap:anywhere}#printreport .reportwarning{border:1px solid #555;padding:2mm;margin:3mm 0}#printreport .reportevent{break-inside:auto}#printreport .reportnote{font-size:8pt}#printreport ul{padding-left:5mm;margin:2mm 0}#printreport .reporttable-name{width:28%}#printreport .reporttable-count{width:12%}
}

@media print{#printreport[data-orientation="portrait"][data-scope="all"] .reportevents,#printreport[data-orientation="portrait"][data-scope="all"] .reportpeople{break-before:page}}


/* Official logo and the office name kept on exactly two lines. */
.brand{gap:10px;font-size:13px;line-height:1.85;max-width:none}.office-name{min-width:0}.office-name span{display:block;white-space:nowrap;word-break:keep-all;overflow-wrap:normal}.mark{width:56px;height:64px;flex-shrink:0;background:none;border:0;box-shadow:none;border-radius:0}.mark img{width:100%;height:100%;object-fit:contain;display:block}.nav a span{white-space:normal;word-break:normal;overflow-wrap:normal}.headerbuttons{flex-shrink:0}header{flex-wrap:wrap}
@media(min-width:1101px){.app{grid-template-columns:300px minmax(0,1fr)}}
@media(min-width:901px) and (max-width:1100px){.app{grid-template-columns:270px minmax(0,1fr)}.brand{font-size:11.5px;gap:8px}.mark{width:45px;height:54px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overviewgrid{grid-template-columns:1fr}}
@media(max-width:900px){.brand{font-size:12px;gap:8px;max-width:none}.mark{width:44px;height:52px}}
@media(max-width:650px){.brand{font-size:10px;gap:6px;max-width:none}.mark{width:34px;height:42px}.nav{gap:2px}.nav a{padding:9px}.nav svg{width:18px}.office-name{line-height:1.8}h1{font-size:20px;line-height:1.6}}
@media(max-width:360px){aside{flex-wrap:wrap}.brand{font-size:11px}.nav{margin-left:auto;flex-basis:100%;justify-content:flex-end}.scope select{flex-basis:100%}.stats .stat{padding:12px 8px}.stats .stat .ico{width:30px}.stats .stat h2{font-size:10px}}

header .fiscal-year{font-size:17px;font-weight:600;line-height:1.7;color:var(--ink);margin:3px 0 5px}@media(max-width:650px){header .fiscal-year{font-size:14px}}
.staff-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;max-width:100%}
.staff-photo-button{background:var(--field);border:1px solid var(--fieldline);border-radius:7px;color:var(--accent);padding:3px 8px;font:inherit;font-size:11px;white-space:nowrap}
.staff-photo-button:hover{background:var(--highlight)}
.staff-photo-list{padding-inline-start:0;list-style:none}
.staff-photo-list li{margin:4px 0}
.staff-photo-dialog{width:min(500px,calc(100% - 24px));max-height:90dvh;padding:18px;border:1px solid var(--fieldline);border-radius:16px;background:var(--surface);color:var(--ink)}
.staff-photo-dialog::backdrop{background:#062313aa}
.staff-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.staff-photo-heading h2{margin:0;font-size:17px}
.staff-photo-body{text-align:center}
.staff-photo-body img{width:100%;height:auto;max-height:68dvh;object-fit:contain;border-radius:10px}
@media print{.staff-photo-dialog,.staff-photo-button{display:none!important}}
