/* ======================================================
   ĐỊNH DẠNG DANH SÁCH UL, OL, LI CHO PLUGIN DANH SÁCH BẦU CỬ
   ====================================================== */
.dsbc-info ul, .dsbc-info ol,
.dsbc-tomtat ul, .dsbc-tomtat ol,
.dsbc-quatrinh ul, .dsbc-quatrinh ol,
.dsbc-chuongtrinh ul, .dsbc-chuongtrinh ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.dsbc-info ul li, .dsbc-info ol li,
.dsbc-tomtat ul li, .dsbc-tomtat ol li,
.dsbc-quatrinh ul li, .dsbc-quatrinh ol li,
.dsbc-chuongtrinh ul li, .dsbc-chuongtrinh ol li {
  list-style: none !important;
  list-style-type: none !important;
  position: relative !important;
  padding-left: 38px !important;
  margin-bottom: 15px !important;
}

.dsbc-info ol li::marker, .dsbc-tomtat ol li::marker,
.dsbc-quatrinh ol li::marker, .dsbc-chuongtrinh ol li::marker {
  content: none !important;
  display: none !important;
}

.dsbc-info ol, .dsbc-tomtat ol,
.dsbc-quatrinh ol, .dsbc-chuongtrinh ol {
  counter-reset: my-custom-counter;
}

/* Icon check cho ul */
.dsbc-info ul li::before, .dsbc-tomtat ul li::before,
.dsbc-quatrinh ul li::before, .dsbc-chuongtrinh ul li::before {
  content: "\f058" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  font-size: 22px !important;
  color: var(--dg-hover-text, #c00) !important;
}

/* Vòng tròn số cho ol */
.dsbc-info ol li, .dsbc-tomtat ol li,
.dsbc-quatrinh ol li, .dsbc-chuongtrinh ol li {
  counter-increment: my-custom-counter;
}
.dsbc-info ol li::before, .dsbc-tomtat ol li::before,
.dsbc-quatrinh ol li::before, .dsbc-chuongtrinh ol li::before {
  content: counter(my-custom-counter) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 24px !important;
  height: 24px !important;
  background-color: var(--dg-hover-text, #c00) !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: bold !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1 !important;
}
.dsbc-detail-page {
  position: relative;
  overflow: visible;
  min-height: 600px;
  background: transparent !important;
}
.dsbc-detail-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  opacity: 0.13;
  pointer-events: none;
}
.dsbc-info {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.dsbc-detail-page {
  position: relative;
  min-height: 600px;
}
.dsbc-detail-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: bottom center;
  opacity: 0.13;
  pointer-events: none;
}
.dsbc-info {
  position: relative;
  z-index: 1;
}
.dsbc-avatar.dsbc-avatar-border {
  border: 4px solid #c00;
  border-radius: 8px;
  box-sizing: border-box;
}
.dsbc-search-form {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.dsbc-search-input {
  width: 100%;
  max-width: 600px;
  padding: 12px 18px;
  font-size: 1.2em;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}
.dsbc-search-btn {
  margin-left: 12px;
  padding: 12px 28px;
  font-size: 1.1em;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.dsbc-search-btn:hover {
  background: #005f8d;
}
/* Grid layout for candidate search */
.dsbc-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.dsbc-search-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  padding: 18px 10px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.dsbc-search-item:hover {
  box-shadow: 0 4px 16px #0002;
}
.dsbc-search-avatar img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.dsbc-search-info {
  text-align: center;
}
.dsbc-search-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
}
.dsbc-search-detail-btn {
  margin-top: 6px;
}
.dsbc-pagination {
  margin-top: 24px;
}
.dsbc-page-btn {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 2px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.dsbc-page-btn:hover {
  background: #0073aa;
  color: #fff;
}
@media (max-width: 900px) {
  .dsbc-search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }
}
@media (max-width: 600px) {
  .dsbc-search-grid {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
}
/* Google Fonts Roboto */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

.dsbc-ui {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
  box-shadow: 0 2px 16px 0 #0002;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Tiêu đề các phần thành H2 */
.dsbc-tomtat-title,
.dsbc-quatrinh-title,
.dsbc-chuongtrinh-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #c00;
  margin: 28px 0 10px 0;
  letter-spacing: 0.01em;
  display: block;
  text-transform: uppercase;
}

/* 2 cột ảnh và thông tin cá nhân */
.dsbc-top-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.dsbc-avatar-col {
  flex: 0 0 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.dsbc-thongtin-col {
  flex: 1 1 0;
  min-width: 0;
}
.dsbc-thongtin {
  font-size: 1.1em;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .dsbc-top-row { flex-direction: column; gap: 10px; }
  .dsbc-avatar-col { justify-content: flex-start; margin-bottom: 10px; }
}
/* Danh sách bầu cử - Giao diện người dùng */
.dsbc-wrap {
  display: flex;
  width: 100%;
  min-height: 500px;
  background: transparent;
}
.dsbc-col {
  padding: 0;
  box-sizing: border-box;
}
.dsbc-col-1 {
  width: 30%;
  background: #c00;
  color: #fff;
  min-width: 200px;
  max-width: 350px;
  padding: 0;
  z-index: 11;
}
.dsbc-list {
  display: flex;
  flex-direction: column;
}
.dsbc-name {
  padding: 18px 20px;
  border-bottom: 1px solid #fff3;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background 0.2s;
}
.dsbc-name.active, .dsbc-name:hover {
  background: #a00;
  color: #fff;
}
.dsbc-col-2 {
  width: 70%;
  position: relative;
  min-height: 500px;
  padding: 0;
  z-index: 11;
}
.dsbc-detail {
  display: none;
  height: 100%;
}
.dsbc-detail[style*="display:block"] {
  display: block;
}
.dsbc-ui .dsbc-bg {
  width: 100%;
  min-height: 100vh;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  padding: 0;
}
.dsbc-ui .dsbc-info {
  position: relative;
  background: rgba(255,255,255,0.85);
  padding: 30px 40px;
  border-radius: 0 0 8px 0;
  min-height: 500px;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.dsbc-info {
  position: relative;
  background: rgba(255,255,255,0.85);
  padding: 30px 40px;
  border-radius: 0 0 8px 0;
  min-height: 500px;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
@media (max-width: 900px) {
  .dsbc-ui {
    max-width: 100%;
    margin: 10px;
    border-radius: 8px;
  }
  .dsbc-wrap { flex-direction: column; }
  .dsbc-col-1, .dsbc-col-2 { width: 100%; }
  .dsbc-info { padding: 15px 10px; }
  .dsbc-avatar { float: none; display: block; margin: 0 auto 10px; }
}

/* ======================================================
   NÚT QUAY LẠI DANH SÁCH & XUẤT FILE ẢNH
   ====================================================== */
.dsbc-detail-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  position: relative !important;
  z-index: 2 !important;
}
.dsbc-detail-btns {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}
.dsbc-back-btn,
.dsbc-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-size: 1em !important;
  font-family: inherit !important;
  cursor: pointer !important;
  border: none !important;
  text-decoration: none !important;
  transition: background 0.2s, opacity 0.2s !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  outline: none !important;
}
.dsbc-back-btn,
.dsbc-back-btn:visited,
.dsbc-back-btn:link {
  background: #0073aa !important;
  color: #fff !important;
}
.dsbc-back-btn:hover,
.dsbc-back-btn:focus {
  background: #005f8d !important;
  color: #fff !important;
}
.dsbc-export-btn {
  background: #2e7d32 !important;
  color: #fff !important;
}
.dsbc-export-btn:hover,
.dsbc-export-btn:focus {
  background: #1b5e20 !important;
  color: #fff !important;
}
.dsbc-export-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* Mobile: chỉ hiện icon, ẩn chữ */
@media (max-width: 600px) {
  .dsbc-back-btn .dsbc-btn-text,
  .dsbc-export-btn .dsbc-btn-text {
    display: none !important;
  }
  .dsbc-back-btn,
  .dsbc-export-btn {
    padding: 10px 14px !important;
    font-size: 1.25em !important;
    gap: 0 !important;
  }
}

/* ======================================================
   SHORTCODE ỨNG VIÊN ĐƠN LẺ [dsbc_ung_vien id="X"]
   ====================================================== */
.dsbc-notice {
  padding: 16px 20px !important;
  background: #fff3cd !important;
  color: #856404 !important;
  border: 1px solid #ffc107 !important;
  border-radius: 6px !important;
  font-size: 1em !important;
  margin: 16px 0 !important;
}
