:root {
  --navy:#101d36;
  --blue:#1768d1;
  --green:#17a36b;
  --red:#d94b4b;
  --gold:#f3b544;
  --bg:#f3f6fb;
  --ink:#18243a;
  --muted:#718096;
  --line:#e5eaf2;
  --white:#fff}
* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial}
.top {
  background:linear-gradient(120deg,#0d1930,#173e75);
  color:white;
  padding:22px max(18px,calc((100% - 1200px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px}
.brand {
  display:flex;
  gap:13px;
  align-items:center}
.crest {
  width:52px;
  height:52px;
  border-radius:15px;
  background:#fff;
  color:#153b70;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:18px;
  border:3px solid #f4bd48}
.crest-logo {
  width:60px;
  height:60px;
  border-radius:14px;
  object-fit:cover;
  background:#000;
  border:2px solid #f4bd48;
  display:block}
.top h1 {
  font-size:21px;
  margin:0}
.top p {
  margin:3px 0 0;
  color:#d4e2f5;
  font-size:13px}
.tag {
  background:#ffffff1c;
  padding:7px 11px;
  border-radius:20px;
  font-size:12px}
.wrap {
  max-width:1200px;
  margin:22px auto;
  padding:0 16px}
.tabs {
  display:flex;
  gap:8px;
  overflow:auto;
  margin-bottom:18px}
.tab {
  border:1px solid var(--line);
  background:white;
  color:#536176;
  border-radius:10px;
  padding:10px 15px;
  cursor:pointer;
  font-weight:650;
  white-space:nowrap}
.tab.active {
  background:var(--navy);
  color:white;
  border-color:var(--navy)}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
  margin-bottom:18px}
.stat,.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  padding:17px;
  box-shadow:0 3px 12px #1a31500a}
.stat small {
  color:var(--muted);
  display:block}
.stat strong {
  font-size:25px;
  display:block;
  margin-top:5px}
.stat span {
  font-size:12px;
  color:var(--muted)}
.panel {
  margin-bottom:16px}
.panel-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px}
.panel h2 {
  font-size:17px;
  margin:0}
.muted {
  color:var(--muted)}
.grid2 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px}
.formgrid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px}
.field label {
  display:block;
  font-size:12px;
  color:#5d6b80;
  font-weight:700;
  margin-bottom:5px}
.field input,.field select,.field textarea,.search {
  width:100%;
  border:1px solid #dce3ed;
  border-radius:9px;
  padding:10px 11px;
  font:inherit;
  background:#fff;
  color:var(--ink);
  min-width:0}
.field input:focus,.field select:focus,.search:focus {
  outline:2px solid #b8d4fa;
  border-color:var(--blue)}
.full {
  grid-column:1/-1}
.btn {
  border:0;
  border-radius:9px;
  padding:10px 14px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  background:var(--blue);
  color:white}
.btn.secondary {
  background:#edf3fb;
  color:#24466f}
.btn.green {
  background:var(--green)}
.btn.red {
  background:#fff0f0;
  color:#b63232}
.btn.small {
  padding:7px 10px;
  font-size:12px}
.actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap}
.tablewrap {
  overflow:auto}
table {
  width:100%;
  border-collapse:collapse;
  white-space:nowrap}
th,td {
  text-align:left;
  padding:11px 10px;
  border-bottom:1px solid var(--line);
  font-size:13px}
th {
  color:#68778c;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:#fafbfd}
td strong {
  font-size:13px}
.pill {
  display:inline-block;
  border-radius:30px;
  padding:4px 9px;
  font-size:11px;
  font-weight:800}
.paid {
  background:#e5f7ee;
  color:#138252}
.pending {
  background:#fff3db;
  color:#996300}
.late {
  background:#ffebeb;
  color:#b63131}
.hidden {
  display:none!important}
.notice {
  padding:12px;
  border-radius:10px;
  background:#edf5ff;
  color:#31557f;
  font-size:13px}
.empty {
  text-align:center;
  padding:30px;
  color:var(--muted)}
.right {
  display:flex;
  gap:8px;
  align-items:center}
.summaryline {
  display:flex;
  justify-content:space-between;
  padding:9px 0;
  border-bottom:1px solid var(--line)}
.summaryline:last-child {
  border:0}
.footer {
  text-align:center;
  color:#8a96a8;
  font-size:12px;
  padding:20px}
.dangertext {
  color:#b63131}
.filelabel {
  display:inline-flex;
  align-items:center;
  gap:7px}
.toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#15243d;
  color:white;
  padding:12px 18px;
  border-radius:10px;
  box-shadow:0 6px 24px #0003;
  z-index:5;
  display:none}


@media(max-width:760px) {
  .stats {
  grid-template-columns:repeat(2,1fr)}
.grid2 {
  grid-template-columns:1fr}
.top {
  align-items:flex-start}
.tag {
  display:none}
.formgrid {
  grid-template-columns:1fr}
.full {
  grid-column:auto}
.stat strong {
  font-size:22px}
.panel {
  padding:14px}
}

