/* WebC01 — bám CSS DNN Standard + PoliceTruyNaToiPham (truyna.bocongan.gov.vn) */

/* Nền + font body như DNN Standard (Arial; menu/title dùng Roboto Condensed) */
body {
  margin: 0;
  font-family: Arial, Helvetica, Tahoma, sans-serif;
  font-size: 13px;
  color: #333;
  background-color: rgb(245, 229, 179);
}
a, a:link, a:visited { color: #122061; text-decoration: none; }
a:hover { text-decoration: underline; }

.c01-page { width: 100%; min-height: 100vh; }
.c01-wrap {
  width: 1170px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.12);
}

/* Header: bnpc + logo.png ĐÚNG từ truyna.bocongan.gov.vn (711×129) */
.c01-header {
  position: relative;
  min-height: 129px;
  background: transparent url('/skin/images/bnpc.png') no-repeat center top;
  background-size: cover;
}
.c01-header-banner {
  padding: 6px 12px 2px;
  text-align: left;
  box-sizing: border-box;
}
.c01-header-banner a { display: inline-block; }
.c01-header-banner img {
  display: block;
  height: 129px;
  width: auto;
  max-width: 711px;
  object-fit: contain;
  object-position: left center;
}
.c01-utils {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 13px;
  color: #333;
  text-align: right;
  z-index: 2;
  font-family: Roboto, Arial, Tahoma, sans-serif;
}
.c01-utils a { color: #333; margin-left: 12px; font-weight: 400; }
.c01-search-top { margin-top: 4px; }
.c01-search-form {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.c01-search-form input {
  width: 160px;
  height: 24px;
  border: 0;
  padding: 0 8px;
  color: #666;
  outline: none;
  font-size: 12px;
}
.c01-search-form button {
  width: 28px;
  border: 0;
  cursor: pointer;
  background: #f5f5f5 url('/skin/images/btn-search.gif') no-repeat center;
}

/* Nav DNN .bannermenu: nền đỏ, mục chọn nền trắng chữ đỏ */
.c01-nav {
  background-color: #d71920;
  box-shadow: 1px 0 2px rgba(0,0,0,.5);
  min-height: 36px;
  margin-bottom: 3px;
}
.c01-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.c01-nav li { margin: 0; }
.c01-nav a {
  display: block;
  padding: 8px 16px;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  text-decoration: none !important;
  letter-spacing: .2px;
  line-height: 1.2;
}
.c01-nav a:hover {
  background: rgba(255,255,255,.12);
}
.c01-nav li.selected a,
.c01-nav a.active {
  background: #fff !important;
  color: #d71920 !important;
}

/* ===== Body 2 cột (DNN TwoColRight ~706 + 250) ===== */
.c01-body {
  display: flex;
  gap: 20px;
  padding: 16px 12px 28px;
  min-height: 480px;
  background: #fff;
}
.c01-main { flex: 1; min-width: 0; max-width: 860px; }
.c01-body.full .c01-main { max-width: none; }
.c01-side { width: 260px; flex-shrink: 0; }

.c01-side h3 {
  margin: 0;
  background: #c30209;
  color: #fff;
  font-size: 14px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  padding: 8px 12px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 700;
}
.nb-card {
  border: 1px solid #eee;
  border-top: 0;
  padding: 8px;
  background: #fff;
  display: flex;
  gap: 8px;
  font-size: 12px;
  clear: both;
}
.nb-card img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  object-position: center top;
  background: #e8e8e8;
  border: 1px solid #ddd;
  flex-shrink: 0;
}
.nb-card .name { font-weight: bold; }
.nb-card .name a { color: #122061; font-weight: bold; }
.nb-card .toi { color: #333; margin-top: 4px; line-height: 1.35; }

.side-portal {
  display: block;
  margin: 14px 0 12px;
}
.side-portal img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.side-moi { margin-top: 4px; background: #f7f3e6; }
.side-moi-head {
  background: #c30209;
  color: #fff;
  font: 700 14px/1.3 "Roboto Condensed", Arial, sans-serif;
  text-transform: uppercase;
  padding: 8px 12px;
}
.moi-list { list-style: none; margin: 0; padding: 8px 8px 4px; }
.moi-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e6e0d0;
}
.moi-item:last-child { border-bottom: 0; }
.moi-thumb {
  position: relative;
  display: block;
  width: 60px;
  height: 70px;
  flex-shrink: 0;
}
.moi-thumb img {
  width: 60px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #e8e8e8;
}
.moi-rank {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #d71920;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.3;
}
.moi-meta { min-width: 0; flex: 1; font-size: 12px; }
.moi-name { font-weight: 700; margin-bottom: 2px; }
.moi-name a { color: #122061; }
.moi-ns, .moi-toi { color: #444; line-height: 1.35; }

h1.page-title, .c01-main > h1 {
  color: #de1c1c;
  font-size: 20px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 3px solid #efefef;
}

/* ===== Ô tìm kiếm (module.css / standard-skin .block-search) ===== */
.block-search {
  padding: 16px;
  background: #fff;
  position: relative;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.16);
  border-radius: 1px;
  margin-bottom: 15px;
  border: 0;
}
.form_rows {
  position: relative;
  margin-bottom: 15px;
  display: block;
}
.inputsearch-keypress, .inputsearch {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: solid 1px #ccc;
  background: #fafafa;
  padding: 0 130px 0 10px;
  font-size: 14px;
  border-radius: 2px;
}
.btn_search_myluat, .btn_search {
  background: #a67942;
  height: 40px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  border-radius: 0 2px 2px 0;
  position: absolute;
  right: 0;
  top: 0;
  padding: 0 16px;
  border: none;
  cursor: pointer;
}
.btn_search_myluat:hover, .btn_search:hover { background: #8e6636; }
.form_rows2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 13px;
}
.form_rows2 label { cursor: pointer; user-select: none; margin-right: 0; }
.form_antv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}
.form_antv input[type=text] {
  width: 120px;
  height: 32px;
  padding: 0 8px;
  border: solid 1px #eaeaea;
  border-radius: 2px;
}
.link-nangcao {
  color: #0d6be4;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  padding: 0;
  margin-left: auto;
}
.nangcao {
  display: none;
  background: #fff;
  border-top: 2px solid #f5efef;
  padding: 12px 0 0;
  margin-top: 12px;
}
.nangcao.open { display: block; }
.nangcao-table { width: 100%; border-collapse: collapse; }
.nangcao td { padding: 6px 8px; vertical-align: top; }
.nangcao .lbl { width: 130px; white-space: nowrap; padding-top: 12px; }
.nangcao input, .nangcao select {
  width: 100%;
  box-sizing: border-box;
  height: 32px;
  border: solid 1px #eaeaea;
  border-radius: 2px;
  padding: 0 10px;
}
.nangcao .hint { font-size: 11px; color: #888; margin-top: 3px; }

.count { margin: 8px 0 10px; display: block; }
.table-view { width: 100%; border-collapse: collapse; background: #fff; }
.table-view th {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  background: #f7f7f7;
  white-space: nowrap;
}
.table-view td {
  border: 1px solid #ddd;
  padding: 3px 5px;
  vertical-align: top;
}
.table-view a { color: #122061; font-weight: bold; }
.icon-photo, .icon-antv {
  font-size: 10px;
  margin-left: 4px;
  padding: 1px 4px;
  color: #fff;
  border-radius: 2px;
}
.icon-photo { background: #1565c0; }
.icon-antv { background: #2e7d32; }

.pager { margin-top: 12px; text-align: right; }
.pager a, .pager span {
  display: inline-block;
  min-width: 28px;
  padding: 0 10px;
  margin-left: 5px;
  border: 1px solid #eaeaea;
  text-align: center;
  line-height: 28px;
  height: 28px;
}
.pager span.current {
  background: #d71920;
  color: #fff;
  border-color: #d71920;
}

/* Footer DNN: đỏ #d71920, trái tên CQ, giữa địa chỉ, phải chứng nhận */
.c01-footer {
  clear: both;
  display: flex;
  align-items: stretch;
  background: #d71920;
  color: #fff;
  min-height: 70px;
  margin-top: 8px;
}
.c01-footer .footer-main {
  flex: 1 1 80%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  box-sizing: border-box;
}
.c01-footer .footer__left {
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  line-height: 25px;
}
.c01-footer .footer__right {
  opacity: .95;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  line-height: 25px;
  text-align: left;
}
.c01-footer .footer-cert {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d71920;
  padding: 6px 8px;
}
.c01-footer .footer-cert img {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Chi tiết DNN DoiTuongTruyNa.ascx ===== */
.detail-page .back { margin: 0 0 10px; }
.detail-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  margin: 5px 0;
  padding: 10px 8px 16px;
  box-sizing: border-box;
  overflow: hidden;
}
.anh-truyna {
  width: 160px;
  float: left;
  margin-right: 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}
.anh-truyna img {
  width: 155px;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border: 1px solid #ddd;
  margin-bottom: 6px;
  background: #f0f0f0;
}
.anh-truyna .btn-baotin,
a.btn-baotin {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  background: #eee;
  border: 1px solid #bbb;
  color: #222 !important;
  text-decoration: none !important;
  font-weight: bold;
  cursor: pointer;
}
.detail-center {
  width: 560px;
  float: left;
}
.table-detail {
  width: 100%;
  border-collapse: collapse;
}
.table-detail td,
.table-detail th {
  border: 1px solid #ddd;
  padding: 5px 6px;
  vertical-align: top;
  font-size: 13px;
}
.table-detail th {
  background: #efefef;
  font-weight: normal;
  text-align: left;
  width: 140px;
  white-space: nowrap;
}
.table-detail .noborder {
  border: none !important;
  font-size: 16pt;
  font-weight: bold;
  padding: 10px 0 6px;
  background: transparent;
}
.btn-back {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid #bbb;
  background: #f5f5f5;
  color: #222 !important;
  text-decoration: none !important;
  font-weight: bold;
}
.detail-cungtoi {
  width: 245px;
  float: right;
  margin-left: 5px;
  padding-bottom: 10px;
  background: #efefef;
}
.cungtoi-title {
  margin: 7px 3px 5px 5px;
  padding-bottom: 5px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
}
.truyna-boxsmaill {
  clear: both;
  padding: 5px;
  overflow: hidden;
  font-size: 12px;
}
.truyna-boxsmaill img {
  width: 80px;
  height: 80px;
  float: left;
  margin-right: 6px;
  border: 1px solid #ddd;
  object-fit: cover;
  background: #e8e8e8;
}
.truyna-boxsmaill div a { font-weight: bold; color: #122061; }

@media (max-width: 1200px) {
  .c01-wrap { width: 100%; }
}
@media (max-width: 1100px) {
  .detail-center { width: calc(100% - 180px); }
  .detail-cungtoi { width: 100%; float: none; clear: both; margin-top: 12px; }
}
@media (max-width: 900px) {
  .c01-body { flex-direction: column; }
  .c01-main { max-width: none; }
  .c01-side { width: 100%; }
  .c01-utils { position: static; text-align: center; padding: 8px; }
  .anh-truyna, .detail-center { float: none; width: 100%; }
  .c01-footer { flex-direction: column; }
  .c01-footer .footer-cert { flex-basis: auto; }
}
