* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0fdfa;
  color: #1e293b;
  line-height: 1.5;
}
header.top-cuu-chuong-cuu-chuong {
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
  padding: 24px 32px;
}
header.top-cuu-chuong-cuu-chuong h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
header.top-cuu-chuong-cuu-chuong p { margin: 0; opacity: 0.9; font-size: 14px; }
header.top-cuu-chuong-cuu-chuong mark { background: #fef08a; color: #854d0e; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-bottom: 6px; display: inline-block; }
header.top-cuu-chuong-cuu-chuong time { display: inline-block; font-size: 12px; opacity: 0.85; margin-top: 4px; }
nav.crumb-cuu-chuong-cuu-chuong { padding: 12px 32px; background: #ccfbf1; font-size: 13px; border-bottom: 1px solid #cbd5e1; }
nav.crumb-cuu-chuong-cuu-chuong a { color: #0f766e; text-decoration: none; font-weight: 600; }
nav.crumb-cuu-chuong-cuu-chuong a:hover { text-decoration: underline; }
main {
  max-width: 1080px;
  margin: 28px auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.khung-cuu-chuong {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.khung-cuu-chuong h2 { margin-top: 0; margin-bottom: 14px; font-size: 18px; color: #115e59; border-bottom: 2px solid #ccfbf1; padding-bottom: 8px; }
.khung-cuu-chuong h3 { margin-top: 0; margin-bottom: 12px; font-size: 16px; color: #334155; }
fieldset.khung-cuu-chuong { border: 1px solid #cbd5e1; margin: 0; }
fieldset.khung-cuu-chuong legend { font-weight: bold; color: #115e59; padding: 0 8px; }
.san-khau-bar { background: #334155; color: #fff; text-align: center; padding: 8px; border-radius: 6px; margin-bottom: 14px; font-weight: 600; font-size: 13px; }
.hang-nhap-cuu-chuong {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.o-nhap-cuu-chuong { display: flex; flex-direction: column; gap: 5px; }
.o-nhap-cuu-chuong label { font-size: 13px; font-weight: 600; color: #475569; }
.o-nhap-cuu-chuong input, .o-nhap-cuu-chuong select {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  min-width: 160px;
  background: #fff;
  transition: border-color 0.2s;
}
.o-nhap-cuu-chuong input:focus, .o-nhap-cuu-chuong select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}
button.nut-tao-cuu-chuong {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
button.nut-tao-cuu-chuong:hover { background: #115e59; }
button.nut-tao-cuu-chuong:active { transform: scale(0.98); }
.ghi-chu-cuu-chuong, small.ghi-chu-cuu-chuong, p.ghi-chu, .legend-note { font-size: 13px; color: #64748b; margin-top: 8px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
table caption { caption-side: top; font-weight: bold; margin-bottom: 8px; text-align: left; color: #115e59; }
th, td {
  border: 1px solid #e2e8f0;
  padding: 9px 12px;
  text-align: center;
}
thead th { background: #0f766e; color: #fff; font-weight: 600; }
.bang-cuon-cuu-chuong { overflow-x: auto; border-radius: 8px; border: 1px solid #e2e8f0; }
.tin-bao-trong-cuu-chuong {
  padding: 20px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #b45309;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}
.legend, .legend-ca { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; align-items: center; }
.mau-chi-so-cuu-chuong { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.1); }
.danh-sach-chi-so-cuu-chuong, .summary-ul, .summary-ol, .summary-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.khoi-kpi-cuu-chuong, .summary-ul li, .summary-ol li, .summary-dl div {
  background: #ccfbf1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  min-width: 170px;
}
.khoi-kpi-cuu-chuong b, .summary-ul li b, .summary-ol li b, .summary-dl dt {
  display: block;
  font-size: 18px;
  color: #115e59;
  font-weight: 700;
}
.summary-dl dd { margin: 0; color: #475569; }
footer.day-trang-cuu-chuong {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}
footer.day-trang-cuu-chuong a { color: #0f766e; text-decoration: none; margin-left: 8px; }
footer.day-trang-cuu-chuong a:hover { text-decoration: underline; }
td.cell-boi5, td.cell-hoan-thanh, td.cell-hang-dau, td.cell-vip { background: #fef08a; font-weight: 600; color: #854d0e; }
td.cell-chan, td.cell-ngay-thuong, td.cell-thuong, td.cell-dang-lam, td.cell-standard { background: #dcfce7; color: #166534; }
td.cell-le, td.cell-cuoi-tuan, td.cell-chua-bat-dau { background: #fee2e2; color: #991b1b; }
td.cell-sang, td.cell-ca-sang { background: #fef9c3; color: #854d0e; }
td.cell-chieu, td.cell-ca-chieu { background: #dbeafe; color: #1e40af; }
td.cell-toi, td.cell-ca-toi, td.cell-ca-dem { background: #ede9fe; color: #5b21b6; }
td.cell-loi-di { background: #f1f5f9; color: #94a3b8; font-style: italic; }
