*{box-sizing:border-box}
:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#112c40;background:#f5f3ef;line-height:1.55;--navy:#122f44;--orange:#f8ac7d;--line:#d6dfe4}
body{margin:0}
a{color:#245772;text-underline-offset:3px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ae4f1d;outline-offset:3px}
header{background:#fff;border-bottom:1px solid var(--line)}
.shell{width:min(1120px,calc(100% - 40px));margin:auto}
.bar,.intro,.actions,.search,nav,.checkbox{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bar,.intro{justify-content:space-between}
.bar{min-height:74px;padding:12px 0}
nav{gap:8px}
.brand{display:inline-flex;align-items:center}
.brand img{display:block;width:180px;height:auto}
nav .secondary:hover,.search .secondary:hover{background:#f1f5f7}
main{padding:40px 0 64px}
.intro{margin-bottom:20px}
h1,h2,p,dl{margin-top:0}
h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;margin-bottom:0}
h2{font-size:1.25rem}
.intro p{margin:8px 0 0;color:#526675}
.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:clamp(16px,4vw,32px);margin-bottom:20px;box-shadow:0 4px 16px #182e3d07}
.login{max-width:420px;margin:clamp(16px,8vh,80px) auto 0}
.login img{display:block;width:min(225px,88%);height:auto;max-height:144px;object-fit:contain;margin:0 auto 17px}
.login h1{text-align:center;font-size:1.65rem;margin-bottom:24px}
.login button{width:100%}
label{display:block;font-size:.94rem;font-weight:650;margin-bottom:16px}
input,select{display:block;width:100%;margin-top:6px;min-height:42px;padding:8px 10px;border:1px solid #aabdc9;border-radius:8px;color:var(--navy);background:#fff;font:inherit}
input:focus,select:focus{outline:2px solid #b96132;outline-offset:1px}
button,.button,summary{font:inherit;font-size:.94rem;font-weight:650;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 14px;border:1px solid #ad582e;border-radius:9px;color:var(--navy);background:var(--orange);text-decoration:none;cursor:pointer;white-space:nowrap}
button:hover,.button:hover{filter:brightness(.96)}
.secondary,summary{border-color:#8099ab;background:#fff}
.danger{border-color:#ae5856;background:#fae4e1;color:#8b2626}
details[open]{display:flex}
details[open] button{margin-left:6px}
.checkbox{width:fit-content}
.checkbox input{width:auto;min-height:0;margin:0;accent-color:#96512f}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
dl.fields{gap:18px}
dd{margin:3px 0 0;overflow-wrap:anywhere}
dt{font-weight:650}
.search{align-items:end;gap:10px;margin-bottom:18px}
.search label{flex:0 1 330px;min-width:0;margin:0}
.search-actions{display:flex;gap:8px}
.search-actions > *{min-width:68px}
.scroll{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:.94rem}
th,td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
th{background:#f1f5f7;white-space:nowrap}
td{overflow-wrap:anywhere;min-width:82px}
td:first-child,td:last-child{min-width:max-content}
td a{white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
.pagination{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:16px;color:#526675}
.empty{padding:22px 0;text-align:center;color:#526675}
.notice{padding:12px 16px;border:1px solid #edc3be;border-radius:10px;background:#fff1ee;color:#832e21}
@media(max-width:560px){.shell{width:calc(100% - 24px)} main{padding-top:24px}.fields{grid-template-columns:1fr}nav{gap:10px;font-size:.88rem}.bar{align-items:flex-start}.intro{align-items:flex-start}}

@media(max-width:560px){
    .brand img{width:156px}
    .bar nav{width:100%;gap:6px}
    .bar nav .button,.bar nav button{padding-inline:9px;font-size:.85rem}
}
.sticky-table{max-height:clamp(16rem,58vh,44rem);border:1px solid var(--line);border-radius:10px}
.sticky-table th{position:sticky;top:0;z-index:2;box-shadow:inset 0 -1px var(--line)}
.sticky-table table{border-collapse:separate;border-spacing:0}
.row-select{width:18px;height:18px;min-height:0;margin:0;accent-color:#96512f}
.row-actions{display:flex;gap:6px}
.row-actions .button{min-height:36px;padding:5px 10px}
.people-toolbar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.panel:has(> .people-toolbar){padding:clamp(12px,2vw,22px)}
main:has(.people-toolbar){padding-top:24px}
.people-toolbar .search{flex:1 1 26rem;min-width:0;flex-wrap:nowrap;margin:0}
.people-toolbar .search-actions{flex-shrink:0}
.people-toolbar > .danger{margin-inline-start:auto}
@media(max-width:560px){.people-toolbar .search{flex-basis:100%}}
.delete-confirm{max-width:420px;margin-top:20px}

.sticky-table table{min-width:1050px}
.sticky-table th,.sticky-table td{white-space:nowrap;overflow-wrap:normal}
/* NRC starts the ten data columns, followed by the action column. */
.sticky-table tr > :nth-last-child(11){position:sticky;left:0;box-shadow:1px 0 var(--line)}
.sticky-table td:nth-last-child(11){z-index:1;background:#fff}
.sticky-table th:nth-last-child(11){z-index:3;box-shadow:1px 0 var(--line),inset 0 -1px var(--line)}
input[type="file"]::file-selector-button{font:inherit;color:var(--navy);background:#fff;border:1px solid #8099ab;border-radius:6px;padding:4px 9px;margin-inline-end:10px;cursor:pointer}

body:has(.login-home){position:relative;min-height:100svh}
.login-home{position:absolute;inset-inline-end:20px;bottom:12px;padding:10px 0;color:inherit;text-decoration:none}
.login-home:hover,.login-home:focus-visible{text-decoration:underline}
