* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; color: #111; background: #f7f7f8; }
.container { max-width: 900px; margin: 10px auto; padding: 0 16px; }

/* Logo Banner */
.logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  /*padding: 30px 20px;*/
  gap: 30px;
  background: #f0f9ff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(18, 101, 161, 0.1);
  /*border: 1px solid rgba(18, 101, 161, 0.15);*/
}

.logo-section {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo {
  max-width: 120px;
  height: auto;
  display: block;
}

.title-section {
  text-align: center;
  max-width: 400px;
}

.org-name {
  font-size: 22px;
  font-weight: 800;
  color: #1265a1;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.center-name {
  font-size: 20px;
  font-weight: 700;
  color: #0e4a8a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

h1 { 
  font-size: 22px; 
  margin: 0 0 16px; 
  color: #7f1d1d;
  text-align: center;
  font-weight: 700;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.combo { position: relative; /*max-width: 520px;*/ }
.input { width: 100%; padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 8px; background: #fff; font-size: 16px; outline: none; }
.input:focus { border-color: #0969da; box-shadow: 0 0 0 3px rgba(9,105,218,0.15); }

.listbox { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow: auto; list-style: none; margin: 0; padding: 6px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(140,149,159,0.2); }
.listbox li { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.listbox li:hover, .listbox li[aria-selected="true"] { background: #f0f7ff; }

/* Tree styles */
.tree-item { display: flex; align-items: center; gap: 6px; }
.tree-toggle { width: 22px; height: 22px; border: 1px solid #d0d7de; background: #fff; color: #111; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.tree-toggle[aria-expanded="true"] { background: #eef6ff; border-color: #b6d4fe; }
.tree-label { flex: 1; }
.tree-children { margin: 6px 0 0 28px; padding: 0; list-style: none; }
.tree-children li { padding: 6px 8px; border-radius: 6px; cursor: pointer; }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); display: grid; place-items: center; z-index: 9999; }
.overlay-card { background: #fff; width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 16px; display: grid; gap: 10px; }
.overlay-card h2 { margin: 0 0 4px; font-size: 18px; }
.overlay-card input { padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 8px; font-size: 14px; }
.overlay-card button { padding: 10px 12px; border: 1px solid #d0d7de; background: #111827; color: #fff; border-radius: 8px; cursor: pointer; }
.overlay-card button:hover { background: #111; }
.overlay-error { color: #b91c1c; font-size: 13px; }
.overlay-hint { color: #6b7280; font-size: 12px; margin: 4px 0 0; }

.results { margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }

.table th, .table td { padding: 10px 12px; font-size: 16px; border-bottom: 1px solid #f0f2f5; }

.table thead th { background: #f8fafc; text-align: left; }

/* Tô màu họ tên thành màu xanh dương */
.table tbody td:first-child { 
  color: #0969da; 
  font-weight: 600; 
}

/* Xen kẽ màu giữa các dòng */
.table tbody tr:nth-child(even) { 
  background: #f8fafc; 
}
.table tbody tr:nth-child(odd) { 
  background: #ffffff; 
}

.table tbody tr:hover { 
  background: #f0f7ff !important; 
  border-left: 3px solid #0969da;
}

.empty { padding: 16px; color: #6b7280; }
