* { box-sizing: border-box; }
:root {
  --bg: #eef3f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e1ef;
  --brand: #0f4c81;
  --brand-2: #1572a1;
  --accent: #ffc857;
  --danger: #b91c1c;
  --ok: #166534;
}
body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, #f7fbff 0, #e8f1fc 40%, #ddeaf8 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
.container {
  width: min(1120px, 92%);
  margin: 26px auto;
}
.topbar {
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px rgba(15, 76, 129, .25);
}
.brand { font-size: 1.1rem; font-weight: 700; letter-spacing: .4px; }
.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}
.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
}
.card h3 { margin: 4px 0 10px; }
.muted { color: var(--muted); }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #c9d7ea;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .95rem;
}
textarea { min-height: 78px; resize: vertical; }
.btn {
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
}
.alert.error { background: #fee2e2; color: var(--danger); }
.alert.ok { background: #dcfce7; color: var(--ok); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 10px; border-bottom: 1px solid #e5edf8; text-align: left; }
th { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .5px; }
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #dae6f7;
}
.id-card {
  width: 336px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #c4d6ee;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  background: #fff;
}
.id-top {
  background: linear-gradient(130deg, #0f4c81, #1666a2);
  color: #fff;
  padding: 12px;
  text-align: center;
}
.id-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin: 12px auto 8px;
  display: block;
}
.id-body { padding: 12px 14px 14px; }
.id-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #d6e4f7;
  padding: 5px 0;
  font-size: .88rem;
}
.id-footer {
  text-align: center;
  padding: 10px;
  background: #f2f7fe;
  color: #46658a;
  font-size: .83rem;
}
.actions a { margin-right: 8px; color: #0f4c81; text-decoration: none; font-weight: 600; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(760px, 95%);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #dce8f8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
@media print {
  body { background: #fff; }
  .topbar, .no-print { display: none !important; }
  .container { width: 100%; margin: 0; }
}
