:root{font-family:Arial,Helvetica,sans-serif;color:#1e293b;background:#f7f8fa;font-size:14px;line-height:1.5;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:#042433}button,.button{border:1px solid #cbd5e1;border-radius:8px;padding:9px 14px;background:white;color:#334155;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px}button:hover,.button:hover{background:#f1f5f9}.primary{background:#042433;color:white;border-color:#042433}.primary:hover{background:#0c3a4f}.danger{color:#b91c1c;border-color:#fca5a5}h1{font-size:24px;line-height:32px;margin:0 0 4px}h2{font-size:18px;margin:0 0 16px}h3{font-size:16px;margin:0}p{margin:0 0 14px}.muted{color:#64748b}.portal-header{display:flex;justify-content:space-between;align-items:center;gap:16px;background:white;border-bottom:1px solid #e2e8f0;padding:16px 28px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:12px;align-items:center;color:#0f172a;text-decoration:none;font-weight:700;line-height:20px}.brand small{display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#64748b;font-weight:400}.portal-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.portal-main{max-width:1280px;margin:0 auto;padding:28px}.panel{border:1px solid #e2e8f0;border-radius:12px;background:white;padding:20px;margin-top:20px;box-shadow:0 1px 3px #00000008}.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.toolbar label{flex:1;min-width:140px;max-width:320px}.toolbar .search{flex:2;max-width:420px}label{display:block;color:#475569;font-size:12px;margin-bottom:12px}input,select,textarea{display:block;width:100%;border:1px solid #cbd5e1;border-radius:7px;background:white;padding:9px 10px;min-width:0;margin-top:5px;color:#0f172a}textarea{min-height:80px;resize:vertical}input[type=checkbox],input[type=radio]{display:inline-block;width:auto;margin:0 8px 0 0;accent-color:#042433}input:focus,select:focus,textarea:focus{border-color:#042433}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{border-top:1px solid #e2e8f0;padding:17px 0;display:grid;grid-template-columns:1fr auto;gap:14px}.card p{margin:4px 0}.card .person{font-weight:600;font-size:14px}.badge{display:inline-block;border:1px solid #cbd5e1;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:500;white-space:nowrap}.approved{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.rejected{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.pending{background:#fffbeb;border-color:#fde68a;color:#92400e}.status-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.error{color:#b91c1c;background:#fff1f2;padding:10px 12px;border-radius:8px;margin:12px 0;white-space:pre-line}.error:empty,.success:empty{display:none}.success{color:#166534;background:#f0fdf4;padding:10px 12px;border-radius:8px;margin:12px 0}.overlay{position:fixed;inset:0;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:16px;z-index:60}.dialog{max-width:600px;width:100%;max-height:calc(100dvh - 32px);overflow:auto;background:white;border-radius:12px;box-shadow:0 20px 40px #0003;padding:22px}.dialog header{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:16px}.dialog footer{display:flex;justify-content:end;gap:8px;margin-top:20px}.checkline{font-size:14px;display:flex;align-items:center;margin:12px 0}.audit{border-top:1px solid #e2e8f0;padding:14px 0;overflow-wrap:anywhere}.account{max-width:520px;margin:20px auto}.account input{margin-bottom:15px}.table-wrap{overflow-x:auto}.portal-table{width:100%;border-collapse:collapse;text-align:left}.portal-table th,.portal-table td{padding:12px;border-bottom:1px solid #e2e8f0;vertical-align:top}.portal-table th{font-size:12px;color:#64748b;text-transform:uppercase}.portal-table td:last-child{text-align:right}.system-links{display:flex;gap:6px;flex-wrap:wrap;margin:10px 12px}.system-links a{font-size:12px;padding:5px 8px;color:#475569}.offline-banner{position:sticky;top:0;background:#fff3cd;padding:8px;color:#744210;z-index:90;text-align:center}#local-mode{font:11px Arial,Helvetica,sans-serif}#local-mode.qa-mode{background:#fff3cd}.empty{padding:28px;text-align:center;color:#64748b}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:640px){.portal-header{padding:12px 16px;align-items:start;flex-direction:column;gap:12px}.portal-header nav{width:100%;gap:6px}.portal-header nav a,.portal-header nav button{font-size:12px;padding:7px 10px;min-height:36px}.portal-main{padding:20px 12px 72px}.panel{padding:14px}.grid{grid-template-columns:1fr}.card{grid-template-columns:1fr}.card>button{justify-self:start}.toolbar{gap:8px}.toolbar label{min-width:calc(50% - 8px);max-width:none}.toolbar .search{min-width:100%}.dialog{padding:18px}.overlay{padding:8px}.dialog{max-height:calc(100dvh - 16px)}#local-mode{bottom:8px}.portal-table{min-width:560px}.portal-header .brand small{font-size:10px}}
.account fieldset{min-width:0;margin:16px 0 0;padding:0;border:0}

@font-face {
  font-family: "Source Sans 3";
  src: url("/site/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: #2a2317;
  background: #fffcf4;
}
.portal-header {
  background: #fffefa;
  border-color: #e6d9b9;
}
.portal-header .brand { color: #2a2317; }
.portal-header .brand small { color: #5f5342; }
.portal-header nav { gap: 6px; }
.panel, .dialog {
  background: #fffefa;
  border-color: #e6d9b9;
  border-radius: 14px;
}
.portal-header nav a, .portal-header nav button {
  border-color: #dfd0ac;
  color: #45361c;
}
.portal-header nav a:hover, .portal-header nav button:hover { background: #f9edcf; }
.primary { color: #2a2317; background: #f4c654; border-color: #c58c23; }
.primary:hover { background: #efb836; }
.primary:focus-visible, .portal-header :focus-visible { outline: 2px solid #8a5617; }

@media (max-width: 640px) {
  .portal-header { gap: 7px; }
  .portal-header nav a, .portal-header nav button { min-height: 40px; }
}

.superadmin-more { position: relative; }
.superadmin-more > summary { cursor: pointer; }
.superadmin-more[open] > div {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: max-content;
  max-width: min(19rem, 75vw);
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e2d5af;
  border-radius: 10px;
  background: #fffdf5;
  box-shadow: 0 8px 24px #0002;
}
@media (max-width: 640px) {
  .superadmin-more[open] { position: static; }
  .superadmin-more[open] > div { inset-inline: 12px; top: 100%; max-width: none; width: auto; }
}
