/* ===== Minh bạch công đức (Phase 3) ===== */
.dt-scope { background: #fbf7ee; border: 1px solid #e8dcc2; border-radius: 14px; padding: 22px 26px; }
.dt-scope__head h3 { font-family: 'Noto Serif', serif; font-size: 22px; color: #5c0f17; margin: 0 0 4px; }
.dt-scope__head p { color: #7a6a52; font-size: 14px; margin: 0 0 14px; }
.dt-scope__bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dt-scope__all { background: #7a1620; color: #fff; border: none; border-radius: 8px; padding: 11px 20px; font-weight: 700; cursor: pointer; font-size: 14px; }
.dt-scope__all.is-active { background: #5c0f17; box-shadow: inset 0 0 0 2px #d9ae4b; }
.dt-scope.is-loading { opacity: 0.65; pointer-events: none; }
.dt-scope__bar select { padding: 11px 14px; border: 1px solid #d9c9a8; border-radius: 8px; font-size: 14px; min-width: 260px; background: #fff; }

.dt-bangvang { background: #fffdf8; border: 1px solid #e8dcc2; border-radius: 14px; overflow: hidden; }
.dt-bangvang__head { background: linear-gradient(100deg, #8a5a16, #b5893f); color: #fff; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.dt-bangvang__eyebrow { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.dt-bangvang__head h3 { font-family: 'Noto Serif', serif; font-size: 23px; margin: 4px 0 0; }
.dt-bangvang__total { text-align: right; }
.dt-bangvang__total span { display: block; font-size: 12px; opacity: .85; }
.dt-bangvang__total strong { font-family: 'Noto Serif', serif; font-size: 26px; }
.dt-bangvang__list { list-style: none; margin: 0; padding: 8px 0; }
.dt-bangvang__row { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-bottom: 1px solid #f1e8d6; }
.dt-bangvang__row:last-child { border-bottom: none; }
.dt-bangvang__rank { width: 36px; height: 36px; border-radius: 50%; background: #f3e7c8; color: #8a5a16; display: flex; align-items: center; justify-content: center; font-family: 'Noto Serif', serif; font-weight: 700; flex: none; }
.dt-bangvang__who { flex: 1; }
.dt-bangvang__who strong { display: block; color: #2a2018; }
.dt-bangvang__who span { font-size: 13px; color: #8a7a62; }
.dt-bangvang__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dt-bangvang__method { font-size: 12px; color: #7a6a52; white-space: nowrap; }
.dt-bangvang__date {
  font-size: 11.5px; color: #9a6f22; background: #f8efd8; border: 1px solid #ecdcb4;
  border-radius: 999px; padding: 2px 10px 2px 8px; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 5px;
}
.dt-bangvang__date::before {
  content: ""; width: 11px; height: 11px; flex: none;
  background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 7v10H5V9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 7v10H5V9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dt-bangvang__amount { font-family: 'Noto Serif', serif; font-weight: 700; color: #5c0f17; white-space: nowrap; min-width: 104px; text-align: right; }
.dt-bangvang__more { text-align: center; color: #8a7a62; font-size: 13px; padding: 14px; font-style: italic; }
@media (max-width: 560px) {
  .dt-bangvang__row { gap: 10px; padding: 12px 16px; }
  .dt-bangvang__amount { min-width: 0; }
}

.dt-thuchi { background: #fffdf8; border: 1px solid #e8dcc2; border-radius: 14px; padding: 22px 26px; }
.dt-thuchi__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dt-thuchi__eyebrow { font-size: 12px; color: #a8762a; text-transform: uppercase; letter-spacing: .05em; }
.dt-thuchi__head h3 { font-family: 'Noto Serif', serif; font-size: 22px; color: #5c0f17; margin: 4px 0 0; }
.dt-thuchi__balance { text-align: right; }
.dt-thuchi__balance span { display: block; font-size: 12px; color: #8a7a62; }
.dt-thuchi__balance strong { font-family: 'Noto Serif', serif; font-size: 22px; color: #2a2018; }
.dt-thuchi__table { width: 100%; border-collapse: collapse; }
.dt-thuchi__table th { text-align: left; font-size: 11px; text-transform: uppercase; color: #a8762a; padding: 10px 12px; border-bottom: 2px solid #ecdcb8; }
.dt-thuchi__table th:not(:first-child), .dt-thuchi__table td:not(:first-child) { text-align: right; }
.dt-thuchi__table td { padding: 12px; border-bottom: 1px solid #f1e8d6; font-size: 14px; }
.dt-thuchi__table tfoot td { font-weight: 700; background: #faf5ea; }
.dt-thuchi__thu { color: #1f6b3a; }
.dt-thuchi__chi { color: #9a3520; }
.dt-thuchi__note { font-size: 12.5px; color: #8a7a62; margin: 14px 0 0; font-style: italic; }

/* Minh bạch: tìm kiếm, bộ lọc, phân trang, danh sách thu–chi */
.dt-searchbar { padding: 14px 26px 4px; }
.dt-thuchi .dt-searchbar { padding: 0 0 12px; }
.dt-searchbar__input,
.dt-filterbar__search,
.dt-filterbar__select,
.dt-filterbar__month { padding: 10px 14px; border: 1px solid #d9c9a8; border-radius: 8px; font-size: 14px; background: #fff; color: #2a2018; }
.dt-searchbar__input { width: 100%; }
.dt-filterbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 26px; border-bottom: 1px solid #f1e8d6; }
.dt-thuchi .dt-filterbar { padding: 14px 0; }
.dt-filterbar__search { flex: 1 1 240px; }
.dt-filterbar__select,
.dt-filterbar__month { flex: 0 0 auto; }
.dt-empty { text-align: center; color: #8a7a62; font-size: 14px; padding: 26px; font-style: italic; }
.dt-viewmore { text-align: center; padding: 14px 26px 18px; }
.dt-thuchi .dt-viewmore { padding: 14px 0 4px; }
.dt-viewmore__link { display: inline-block; color: #7a1620; font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 18px; border: 1px solid #e0caa0; border-radius: 999px; transition: background .15s, color .15s; }
.dt-viewmore__link:hover { background: #7a1620; color: #fff; }
.dt-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 26px; }
.dt-pager__btn { background: #fff; border: 1px solid #d9c9a8; border-radius: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; color: #5c0f17; font-weight: 600; }
.dt-pager__btn:disabled { opacity: .45; cursor: default; }
.dt-pager__info { font-size: 13.5px; color: #7a6a52; }
.dt-scope--single .dt-scope__head { margin-bottom: 0; }
.dt-tclist { display: flex; flex-direction: column; }
.dt-tc-row { display: flex; align-items: center; gap: 14px; padding: 13px 26px; border-bottom: 1px solid #f1e8d6; }
.dt-thuchi .dt-tc-row { padding: 13px 0; }
.dt-tc-row:last-child { border-bottom: none; }
.dt-tc-row__main { flex: 1; min-width: 0; }
.dt-tc-row__main strong { display: block; color: #2a2018; font-weight: 600; }
.dt-tc-row__main span { font-size: 12.5px; color: #8a7a62; }
.dt-tc-row__type { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dt-tc-row--thu .dt-tc-row__type { background: #e6f4ec; color: #1f6b3a; }
.dt-tc-row--chi .dt-tc-row__type { background: #f7e7e2; color: #9a3520; }
.dt-tc-row__amount { font-family: 'Noto Serif', serif; font-weight: 700; white-space: nowrap; }
.dt-tc-row--thu .dt-tc-row__amount { color: #1f6b3a; }
.dt-tc-row--chi .dt-tc-row__amount { color: #9a3520; }

.dt-qr { background: #fffdf8; border: 1px solid #e8dcc2; border-radius: 14px; padding: 22px 26px; text-align: center; }
.dt-qr__head h3 { font-family: 'Noto Serif', serif; font-size: 22px; color: #5c0f17; margin: 0 0 6px; }
.dt-qr__head p { color: #7a6a52; font-size: 14px; max-width: 560px; margin: 0 auto 18px; }
.dt-qr__cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.dt-qr__card { display: flex; gap: 14px; align-items: center; background: #fbf7ee; border: 1px solid #e8dcc2; border-radius: 12px; padding: 16px; text-align: left; }
.dt-qr__img img, .dt-qr__placeholder { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }
.dt-qr__placeholder { background: #ecdcb8; color: #8a5a16; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Noto Serif', serif; }
.dt-qr__info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #5a4636; }
.dt-qr__info strong { color: #2a2018; font-size: 15px; }
.dt-qr__acc { font-family: 'IBM Plex Mono', monospace; color: #5c0f17; font-weight: 600; }
.dt-qr__empty { color: #8a7a62; font-size: 14px; padding: 18px; }
.dt-qr__online { margin-top: 18px; background: #7a1620; color: #fff; border: none; border-radius: 8px; padding: 12px 26px; font-weight: 700; font-size: 14px; cursor: pointer; }
.dt-qr__online:hover { background: #5c0f17; }

/* Modal công đức trực tuyến */
.dt-donate-modal[hidden] { display: none; }
.dt-donate-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.dt-donate-modal__backdrop { position: absolute; inset: 0; background: rgba(20,10,8,.55); }
.dt-donate-modal__panel { position: relative; background: #fffdf8; border-radius: 16px; padding: 26px 28px; width: 92%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.3); text-align: center; max-height: 92vh; overflow-y: auto; }
.dt-donate-modal__x { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: #8a7a62; cursor: pointer; }
.dt-donate-modal h4 { font-family: 'Noto Serif', serif; font-size: 20px; color: #5c0f17; margin: 0 0 6px; }
.dt-donate-modal__sub { font-size: 13px; color: #7a6a52; margin: 0 0 16px; }
.dt-donate-field { display: block; text-align: left; margin-bottom: 12px; }
.dt-donate-field span { display: block; font-size: 12.5px; font-weight: 600; color: #5a4636; margin-bottom: 5px; }
.dt-donate-field input { width: 100%; padding: 10px 12px; border: 1px solid #d9c9a8; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.dt-donate-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dt-donate-chips button { flex: 1; min-width: 70px; padding: 8px 6px; border: 1px solid #d9c9a8; background: #fbf7ee; border-radius: 8px; font-size: 13px; font-weight: 600; color: #7a1620; cursor: pointer; }
.dt-donate-chips button:hover { border-color: #c79a36; }
.dt-donate-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5a4636; margin-bottom: 16px; text-align: left; }
.dt-donate-error { color: #9a3520; font-size: 13px; margin-top: 10px; }
.dt-donate-qr { display: flex; justify-content: center; margin: 8px 0 14px; }
.dt-donate-qr img { width: 220px; height: 220px; border: 1px solid #e8dcc2; border-radius: 12px; padding: 8px; background: #fff; }
.dt-donate-amount { font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 700; color: #5c0f17; }
.dt-donate-countdown { font-size: 13px; color: #8a7a62; margin-top: 6px; }
.dt-donate-hint { font-size: 12.5px; color: #8a7a62; margin-top: 12px; font-style: italic; }
.dt-donate-done { width: 64px; height: 64px; border-radius: 50%; background: #eaf4ec; color: #1f6b3a; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 4px auto 14px; }

