* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d232b; background: #f6f7f9; }
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 24px; background: #1d2f4a; color: #fff; }
.top a { color: #fff; text-decoration: none; }
.top nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 600; }
.who { opacity: 0.8; }
.signout { margin: 0; }
.signout button { padding: 0; background: none; color: #fff; }
main { padding: 16px 24px 48px; max-width: 1400px; }
h1 { font-size: 1.5rem; }
a { color: #1d4f91; }
.button, button { display: inline-block; padding: 8px 14px; border: 0; border-radius: 4px; background: #1d4f91; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
button.danger { background: #a3262a; padding: 4px 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 6px 8px; border-bottom: 1px solid #dde1e6; text-align: left; vertical-align: top; font-size: 0.9rem; }
th { background: #eef1f4; white-space: nowrap; }
.error-cell { color: #a3262a; max-width: 24rem; overflow-wrap: anywhere; }
.status { padding: 2px 6px; border-radius: 3px; background: #dde1e6; white-space: nowrap; }
.status-pending { background: #fff1c2; }
.status-submitted { background: #d6e8ff; }
.status-filed { background: #d4f0d9; }
.status-failed { background: #f8d3d4; }
form.stacked { display: flex; flex-direction: column; gap: 6px; max-width: 36rem; }
form.stacked label { font-weight: 600; margin-top: 10px; }
input[type=text], input[type=number], select, textarea { padding: 6px 8px; font: inherit; border: 1px solid #b8bfc8; border-radius: 4px; width: 100%; }
fieldset { border: 1px solid #dde1e6; border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
form.stacked button { margin-top: 16px; align-self: flex-start; }
.hint { margin: 0; color: #5a6470; font-size: 0.85rem; }
.warning { padding: 8px 12px; background: #fff1c2; border-left: 4px solid #c99a00; }
.errors { padding: 8px 12px; background: #f8d3d4; border-left: 4px solid #a3262a; }
.flash { padding: 8px 12px; background: #d6e8ff; }
input.link { font-family: ui-monospace, Consolas, monospace; max-width: 48rem; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dl.summary dt { font-weight: 600; }
dl.summary dd { margin: 0; }
pre.wrap { white-space: pre-wrap; }
[hidden] { display: none !important; }
.optional { font-weight: 400; color: #5a6470; }
label.file-pick { font-weight: 400; margin-top: 0; font-size: 0.85rem; color: #5a6470; display: flex; flex-direction: column; gap: 4px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
input[type=password], input[type=date] { padding: 6px 8px; font: inherit; border: 1px solid #b8bfc8; border-radius: 4px; width: 100%; }
button:disabled { opacity: 0.6; cursor: default; }
/* Client-facing pages. Department stylesheets load after this file and can override these rules. */
body.client { min-height: 100vh; background: #1d2f4a linear-gradient(135deg, #1d2f4a 0%, #1d4f91 55%, #3d7fc4 100%) fixed; }
.client-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
main.client-card { width: 100%; max-width: 560px; padding: 32px 36px 24px; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(10, 20, 40, 0.35); }
.client-logo { display: block; max-width: 220px; max-height: 72px; margin: 0 auto 20px; }
.client-heading { margin: 0 0 16px; text-align: center; font-size: 1.4rem; }
.client-card form.stacked { max-width: none; }
.client-card form.stacked button { align-self: stretch; padding: 10px 14px; }
.client-foot { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid #dde1e6; text-align: center; font-size: 0.8rem; color: #5a6470; }
.client-staff-link { text-align: center; margin: 20px 0 0; }
@media (max-width: 480px) {
  .client-wrap { align-items: flex-start; padding: 12px 8px; }
  main.client-card { padding: 20px 16px 16px; border-radius: 8px; }
}
