:root {
  --n1c-blue: #042c5c;
  --n1c-red: #de3b38;
  --n1c-red-dark: #b9312c;
  --n1c-white-soft: rgba(255, 255, 255, 0.08);
  --n1c-white-border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--n1c-blue);
  color: white;
  margin: 0;
  padding: 0;
  text-align: left;
}

.page {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

h1 {
  text-align: center;
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: bold;
  margin: 20px 0;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.search-wrapper input[type="text"] {
  height: 42px;
  padding: 0 12px;
  font-size: 16px;
  border: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.search-button,
button,
.submit-button {
  height: 42px;
  padding: 0 16px;
  font-size: 16px;
  background-color: var(--n1c-red);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover,
button:hover,
.submit-button:hover {
  background-color: var(--n1c-red-dark);
}

table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background: white;
  color: black;
  font-size: 14px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: var(--n1c-red);
  color: white;
  font-size: 18px;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #c7c4bc;
  cursor: pointer;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--n1c-red);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.scroll-top:hover {
  background-color: var(--n1c-red-dark);
}

footer {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 30px;

  color: rgba(255,255,255,0.78);

  font-size: 0.95rem;
  line-height: 1.6;
}

footer p {
  margin: 6px 0;
}

details summary {
  font-size: 28px;
  font-weight: bold;
  color: var(--n1c-red);
  background-color: white;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:hover {
  background-color: #fde4e2;
  color: var(--n1c-red-dark);
}

details tr {
  transition: background-color 0.2s;
}

details tr:hover {
  background-color: #fde4e2;
  cursor: pointer;
}

details table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

details th,
details td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  word-wrap: break-word;
}

details th:nth-child(1),
details td:nth-child(1) {
  width: 15%;
}

details th:nth-child(2),
details td:nth-child(2) {
  width: 15%;
}

details th:nth-child(3),
details td:nth-child(3) {
  width: 20%;
}

details th:nth-child(4),
details td:nth-child(4) {
  width: 20%;
}

details th:nth-child(5),
details td:nth-child(5) {
  width: 20%;
}

details th:nth-child(6),
details td:nth-child(6) {
  width: 10%;
}

.registry-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 44, 92, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.registry-header-inner {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.registry-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.registry-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.menu-button {
  background: var(--n1c-red);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.menu-button:hover {
  background: var(--n1c-red-dark);
  transform: translateY(-1px);
}

.registry-menu {
  display: none;
  position: absolute;
  top: 78px;
  right: 20px;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: white;
  border: 1px solid rgba(4, 44, 92, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  overflow: hidden;
}

.registry-menu.open {
  display: block;
}

.registry-menu-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.registry-menu-inner a {
  display: block;
  color: var(--n1c-blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.registry-menu-inner a:hover,
.registry-menu-inner a.active {
  background: rgba(4, 44, 92, 0.08);
  color: var(--n1c-red);
}

.registry-menu-inner a.patient-link {
  background: rgba(222, 59, 56, 0.12);
  border: 1px solid rgba(222, 59, 56, 0.35);
  color: var(--n1c-red);
}

.registry-menu-inner a.patient-link:hover {
  background: rgba(222, 59, 56, 0.18);
  color: var(--n1c-red-dark);
}

@media (max-width: 900px) {
  .registry-header-inner {
    width: min(100%, calc(100% - 24px));
  }
}

@media (max-width: 700px) {
  .registry-brand span {
    font-size: 1.05rem;
  }
}


