.o_logo {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  flex: 0 0 auto;
  flex-basis: auto;
}
.san_tensan {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap;
}
.san_tensan strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--PrimaryColor);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.san_tensan span {
  font-size: 1.25rem;
  color: var(--color-2);
}
@media (max-width: 767px) {
  .san_tensan span {
    display: none;
  }
  .o_logo {
    flex: 1 1 auto;
  }
  .san_tensan {
    white-space: normal;
    max-width: calc(100vw - 20rem);
  }
  .san_tensan strong {
    font-size: 1.3rem;
    line-height: 1.3;
  }
}
.kn_overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  box-sizing: border-box;
  overflow: auto;
  z-index: 99999;
}
.kn_overlay.show {
  display: flex;
}
.kn_box {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.kn_head {
  background: #dc6330;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kn_head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.kn_head .kn_close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.kn_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kn_info {
  background: #fdf1ea;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}
.kn_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}
.kn_field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kn_field label,
.kn_legend {
  font-size: 13px;
  font-weight: 500;
}
.kn_field label span,
.kn_legend span {
  color: #c94e1b;
}
.kn_field input,
.kn_field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0 12px;
  height: 44px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.kn_field textarea {
  height: 96px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.kn_field input:focus,
.kn_field textarea:focus {
  border-color: #c94e1b;
  box-shadow: 0 0 0 3px rgba(201, 78, 27, 0.15);
}
.kn_fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.kn_legend {
  padding: 0;
}
.kn_checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  margin-top: 8px;
}
.kn_check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.kn_check input {
  width: 18px;
  height: 18px;
  accent-color: #c94e1b;
  margin: 0;
}
.kn_check.on {
  border-color: #c94e1b;
  background: #fdf1ea;
}
.kn_act {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.kn_btn {
  height: 46px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #222;
}
.kn_btn.main {
  background: #c94e1b;
  border-color: #c94e1b;
  color: #fff;
}
.kn_btn.main:hover {
  background: #a93d12;
}
.kn_note {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.kn_error {
  background: #fdecec;
  color: #d32f2f;
  border: 1px solid #f5c2c0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.khung {
  display: flex;
  min-height: 100vh;
}
.menu_trai {
  width: 240px;
  flex: 0 0 240px;
  background: #1e2530;
  color: #cbd5e1;
  padding: 16px 0;
}
.menu_trai .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 18px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.menu_trai .logo i {
  color: #003f98;
  font-size: 22px;
}
.menu_trai h6 {
  margin: 14px 18px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.menu_trai ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu_trai li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.menu_trai li a i {
  width: 18px;
  text-align: center;
  color: #94a3b8;
}
.menu_trai li a:hover {
  background: #273040;
  color: #fff;
}
.menu_trai li.active a {
  background: #2d3748;
  color: #fff;
  border-left-color: #3b82f6;
}
.menu_trai li.active a i {
  color: #fff;
}
.badge {
  background: #e11d48;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 4px;
}
.phai {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.thanh_tren {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.thanh_tren .vitri {
  font-size: 13px;
  color: #64748b;
}
.thanh_tren .tk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.thanh_tren .tk span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #003f98;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.noidung {
  padding: 20px;
}
.tieude_trang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}
.tieude_trang i {
  color: #003f98;
}
.ghi_demo {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .menu_trai {
    display: none;
  }
}
/* ===== CSS RIÊNG CỦA TRANG ===== */
.kn2_ten a {
  color: inherit;
}
.kn2_ten a:hover {
  color: #003f98;
}
.kn2_dem {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kn2_dem a {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  border-top: 3px solid var(--m);
}
.kn2_dem a.chon {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--m) 35%, transparent);
}
.kn2_dem b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}
.kn2_dem span {
  font-size: 12px;
  color: #475569;
}
.kn2_thanh {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.kn2_thanh form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.kn2_thanh input,
.kn2_thanh select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
}
.kn2_thanh input {
  min-width: 240px;
}
.kn2_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.kn2_btn.chinh {
  background: #003f98;
  border-color: #003f98;
  color: #fff;
}
.kn2_ds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kn2_the {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--m);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px 18px;
}
.kn2_dau {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.kn2_pill {
  display: inline-block;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.kn2_tag {
  display: inline-block;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}
.kn2_moi {
  background: #e11d48;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.kn2_ten {
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 6px;
}
.kn2_ten a:hover {
  color: #003f98;
}
.kn2_hai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  font-size: 13px;
  color: #334155;
}
.kn2_hai small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kn2_hai a {
  color: var(--PrimaryColor);
  white-space: nowrap;
}
.kn2_trich {
  font-size: 13px;
  color: #475569;
  margin-top: 6px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 10px;
}
.kn2_nhanh {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kn2_nhanh select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  width: 100%;
}
.kn2_nhanh .kn2_btn {
  justify-content: center;
}
.kn2_trang {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 16px 0;
}
.kn2_trang a,
.kn2_trang span {
  min-width: 34px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 13px;
  background: #fff;
}
.kn2_trang span {
  background: #003f98;
  border-color: #003f98;
  color: #fff;
}
/* Chi tiết: mở bằng #chi-tiet (CSS :target) */
#chi-tiet {
  display: none;
}
#chi-tiet:target {
  display: block;
}
#chi-tiet:target ~ .kn2_dsach {
  display: none;
}
.kn2_ct {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.kn2_hop {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.kn2_hop h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.kn2_ttin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 13px;
}
.kn2_ttin > div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kn2_ttin small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.kn2_ttin a {
  color: var(--PrimaryColor);
  white-space: nowrap;
}
.kn2_chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kn2_tin {
  max-width: 78%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  align-self: flex-start;
}
.kn2_tin.ban {
  align-self: flex-end;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.kn2_tin.qt {
  align-self: center;
  background: #fff7ed;
  border-color: #fed7aa;
  max-width: 90%;
}
.kn2_tin small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 600;
}
.kn2_gui textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  margin-top: 10px;
}
.kn2_form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}
.kn2_form select,
.kn2_form input,
.kn2_form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  width: 100%;
}
.kn2_ls {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #e5e7eb;
  font-size: 12px;
}
.kn2_ls li {
  position: relative;
  padding: 0 0 10px 8px;
  color: #475569;
}
.kn2_ls li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #003f98;
}
@media (max-width: 1000px) {
  .kn2_the,
  .kn2_ct {
    grid-template-columns: 1fr;
  }
  .kn2_ttin {
    grid-template-columns: 1fr;
  }
}
.kn_badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 0px;
  border-radius: 10px;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.search_hea form {
  display: flex;
  width: 100%;
}

.search_hea form select {
  border: 0.1rem solid #e1e1e1;
  padding: 0 34px 0 10px; /* chừa chỗ bên phải cho icon */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.ipt_search_hea {
  border-radius: 0 0.8rem 0.8rem 0 !important;
  -webkit-border-radius: 0 0.8rem 0.8rem 0 !important;
}

@media (max-width: 480px) {
  .search_hea form select {
    width: 150px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.8rem 0 0 0.8rem;
    -webkit-border-radius: 0.8rem 0 0 0.8rem;
    border: 1px solid #e1e1e1;
    background-color: #fff;
    padding-left: 20px;
  }
}
