/* Giao diện SEST — phông hệ thống, dùng được trên điện thoại, không thư viện ngoài */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f3f4f6;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.thanh-tren {
  background-color: #1e3a8a;
  color: #ffffff;
  padding: 0.75rem 1rem;
}

.khung-thanh-tren {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.thuong-hieu {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.dieu-huong a {
  color: #dbeafe;
  font-weight: 500;
}

.dieu-huong a:hover {
  color: #ffffff;
}

.khung-chinh {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.khoi {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.khoi h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.khoi h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.duong-dan-quay-lai {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.bo-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.truong-loc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.truong-loc input,
.truong-loc select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
  background-color: #ffffff;
}

.hop-chon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  font-size: 0.95rem;
}

.nut-loc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nut-loc button {
  padding: 0.48rem 0.95rem;
  background-color: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nut-loc button:hover {
  background-color: #1e40af;
}

.nut-phu {
  padding: 0.45rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #374151;
  background-color: #ffffff;
  font-size: 0.9rem;
}

.dem-ket-qua {
  margin: 0.5rem 0 0.75rem;
}

.bang-cuon {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bang-du-lieu {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bang-du-lieu th,
.bang-du-lieu td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.bang-du-lieu th {
  background-color: #f9fafb;
  font-weight: 600;
  white-space: nowrap;
}

.bang-du-lieu tbody tr:hover {
  background-color: #f9fafb;
}

.can-phai {
  text-align: right !important;
  white-space: nowrap;
}

.rong {
  color: #6b7280;
  font-style: italic;
}

.nhom-cong {
  display: inline-flex;
  gap: 0.3rem;
  white-space: nowrap;
}

.o-cong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.o-dat {
  background-color: #15803d;
  color: #ffffff;
}

.o-dang {
  background-color: #facc15;
  color: #1f2937;
}

.o-chua {
  background-color: #e5e7eb;
  color: #374151;
  border: 1px solid #9ca3af;
}

.o-tre {
  background-color: #dc2626;
  color: #ffffff;
}

.can-xac-nhan {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ghi-chu-cxn {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #92400e;
}

.thong-tin-chi-tiet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.thong-tin-chi-tiet dt {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}

.thong-tin-chi-tiet dd {
  margin: 0.15rem 0 0;
}

.khoi-5-cong {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.the-cong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f9fafb;
}

.chu-cong {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
}

.chu-cong span {
  color: #4b5563;
  font-size: 0.82rem;
}

.thong-tin-nguoi-dung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.ten-nguoi-dung {
  color: #e0e7ff;
  font-weight: 500;
}

.bieu-mau-dang-xuat {
  margin: 0;
}

.nut-dang-xuat {
  padding: 0.32rem 0.7rem;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  background-color: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.nut-dang-xuat:hover {
  background-color: #1e40af;
}

.khung-dang-nhap {
  max-width: 420px;
  margin: 1.5rem auto;
}

.bieu-mau-dang-nhap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.truong-nhap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.truong-nhap input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
  background-color: #ffffff;
}

.nut-chinh {
  width: 100%;
  padding: 0.6rem 1rem;
  background-color: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nut-chinh:hover {
  background-color: #1e40af;
}

.thong-bao-loi {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  background-color: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .khung-chinh {
    padding: 0.65rem;
  }

  .khung-dang-nhap {
    margin: 0.75rem auto;
  }

  .bo-loc {
    flex-direction: column;
    align-items: stretch;
  }

  .truong-loc input,
  .truong-loc select {
    width: 100%;
  }
}

/* Đăng nhập bằng Google (T08c) */
.nut-google {
  display: block;
  text-align: center;
  text-decoration: none;
  margin: 0.5rem 0;
}
.ghi-chu-dang-nhap {
  font-size: 0.9em;
  opacity: 0.8;
  margin: 0.25rem 0 1rem;
}
.dang-nhap-du-phong summary {
  cursor: pointer;
  margin: 0.75rem 0;
  opacity: 0.85;
}
