:root{font-family:"Segoe UI",system-ui,sans-serif;color:#142d25;background:#f2f6f4;font-size:15px;line-height:1.45}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
h1,h2,p{margin:0}
button,input,select{font:inherit}
button{cursor:pointer;border:1px solid #c9dbd2;border-radius:8px;padding:.6rem .85rem;background:white;color:#17372a;font-weight:650}
button:hover:not(:disabled){background:#e7f2ec}
button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:3px solid #27a672;outline-offset:2px}
.primary{background:#126b48;color:white;border-color:#126b48}
.primary:hover:not(:disabled){background:#0e593c}
#login{min-height:100dvh;display:grid;place-items:center;padding:1.5rem;background:radial-gradient(ellipse at 18% 5%,#dcefe4,#f2f6f4 62%)}
.login-card{width:min(100%,445px);background:white;border:1px solid #d6e3dc;border-radius:18px;padding:2rem;display:grid;gap:1rem;box-shadow:0 12px 34px #163a2912}
.login-card h1{font-size:1.85rem}
.login-card p,.eyebrow,#connection{color:#476259}
#login-error{color:#a02a34}
#login-error:empty{display:none}
label{display:grid;gap:.35rem;font-weight:650}
input,select{min-width:0;padding:.62rem .75rem;border:1px solid #b8cfc2;border-radius:8px;background:white;color:#142d25}
#workspace{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100dvh}
aside{background:#102f24;color:#f0f8f3;padding:1.35rem;display:flex;flex-direction:column;gap:1.15rem}
.brand{background:white;padding:.55rem;border-radius:9px;width:fit-content;display:flex;align-items:center}
aside h2{font-size:1.08rem}
nav{display:grid;gap:.4rem}
nav button{color:#e8f6ed;text-align:left;background:transparent;border-color:transparent}
nav button:hover:not(:disabled),nav button[aria-current]{background:#225a43}
.account{display:grid;gap:.45rem;margin-top:auto;overflow-wrap:anywhere}
.account small{color:#badbc9}
.content{min-width:0;padding:clamp(1rem,3vw,2.5rem)}
header,.pagination,.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.eyebrow{font-size:.86rem;font-weight:650;margin-bottom:.35rem}
#connection{margin:.65rem 0;min-height:1.5em}
.surface{background:white;border:1px solid #d6e3dc;border-radius:13px;overflow:hidden}
.filters{display:flex;align-items:end;gap:.8rem;padding:1rem}
.filters label:first-child{flex:1}
.filters label:last-child{min-width:145px}
.table-shell{overflow:auto;max-height:65vh}
table{border-collapse:separate;border-spacing:0;width:100%}
th,td{text-align:left;padding:.68rem .82rem;border-bottom:1px solid #e5eee8;white-space:nowrap}
th{position:sticky;top:0;background:#e7f2eb}
th button{border:0;background:transparent;padding:0}
tbody tr:nth-child(even){background:#f7faf8}
td:last-child button{padding:.3rem .55rem}
.pagination{padding:.8rem 1rem}
.pagination div{display:flex;gap:.4rem}
dialog{width:min(780px,calc(100% - 2rem));max-height:85vh;padding:0;border:1px solid #bed0c5;border-radius:14px;color:inherit}
dialog::backdrop{background:#102f247c}
.dialog-header{position:sticky;top:0;background:white;padding:1rem 1.3rem;border-bottom:1px solid #d6e3dc}
#detail-body{padding:1rem 1.3rem}
#detail-body section+section{margin-top:1.1rem;border-top:1px solid #d6e3dc;padding-top:.7rem}
dl{display:grid;grid-template-columns:minmax(7rem,1fr) 2fr;gap:.4rem .8rem;margin:.65rem 0}
dt{font-weight:650}dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:730px){#workspace{grid-template-columns:1fr}aside{padding:1rem;gap:.65rem}nav{grid-template-columns:repeat(3,1fr)}nav button{text-align:center;padding:.4rem} .account{grid-template-columns:1fr auto;align-items:center}.account small{grid-row:2}.account button{grid-column:2;grid-row:1 / span 2}.filters{flex-wrap:wrap}.filters label:first-child{min-width:10rem}}
.approval-form{display:grid;gap:.7rem;border-top:1px solid #d6e3dc;padding-top:1rem}
.approval-form h3{margin:0}
.approval-form textarea{font:inherit;color:inherit;border:1px solid #b8cfc2;border-radius:8px;padding:.6rem;resize:vertical}
.approval-form button{justify-self:start}
.approval-form p:empty{display:none}
