/* Bảng Niêm Yết TTHC - UBND xã Vĩnh Bảo */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c41e3a;
  --red-dark: #9b1830;
  --gold: #f5c518;
  --bg: #f8f5f0;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e8e0d5;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
}

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 12px rgba(196,30,58,0.3);
}
.header-inner { max-width: 1200px; margin: 0 auto; }
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-align: center;
}
.logo-hcc {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}
.titles h1 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.titles p {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  opacity: 0.95;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Nav */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  justify-content: center;
}
.nav-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  font-family: inherit;
}
.nav-btn:hover { background: #f0ebe3; color: var(--text); }
.nav-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,30,58,0.25);
}

/* Main */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Filter bar */
.filter-bar {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  box-shadow: var(--shadow);
  gap: 0.75rem;
}
.search-icon { font-size: 1.1rem; opacity: 0.6; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
}
.search-box input::placeholder { color: #999; }
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.filter-select {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  max-width: 100%;
  min-width: 180px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow: var(--shadow);
}
.filter-check input { accent-color: var(--red); cursor: pointer; }
.btn-clear-search {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.search-result-count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.active-filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.active-filters[hidden] { display: none !important; }
.active-filter-chip {
  border-radius: 999px;
  background: #fff4d6;
  color: #7a4d00;
  padding: 0.25rem 0.55rem;
}
.footer-sync {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.85;
}
.btn-clear {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.btn-clear:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fde8ec;
}

/* Dashboard */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-card.accent {
  border-color: #a5d6a7;
  background: linear-gradient(180deg, #f1f8f2 0%, #fff 100%);
}
.stat-logo {
  width: 40px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}
.stat-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 500;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.dash-panel h3 {
  font-size: 0.95rem;
  color: var(--red-dark);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.dash-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}
.dash-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.88rem;
}
.dash-list li:last-child { border-bottom: none; }
.dash-list li:hover { background: #fdf6f7; }
.dash-list .rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fde8ec;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-list .lv-name, .dash-list .tt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-list .lv-count {
  font-weight: 600;
  color: var(--red);
  background: #fde8ec;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.dash-list .empty { color: var(--muted); cursor: default; justify-content: center; }
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.btn-dash {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(196,30,58,0.25);
  transition: transform 0.15s, background 0.15s;
}
.btn-dash:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--red-dark);
}
.badge {
  background: #fde8ec;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.badge-nhanh {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.field-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.field-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(196,30,58,0.12);
}
.field-card.is-active {
  border-color: var(--red);
  background: #fff5f6;
  box-shadow: 0 6px 20px rgba(196,30,58,0.15);
}
.field-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.field-card .icon img {
  width: 34px;
  height: auto;
  object-fit: contain;
}
.field-card .name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.6em;
}
.field-card .count {
  display: inline-block;
  background: #fde8ec;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr:hover { background: #fdf6f7; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table code {
  font-size: 0.8rem;
  background: #f5f0ea;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--red-dark);
}

/* Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.placeholder {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: #2c1810;
  color: #e8d5c4;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.footer-brand img {
  width: 40px;
  height: auto;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.site-footer strong { color: var(--gold); }
.site-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.site-footer p + p { margin-top: 0.25rem; opacity: 0.9; }
.footer-note { margin-top: 0.5rem !important; opacity: 0.8 !important; font-size: 0.8rem; }

/* Thủ tục cards */
.thu-tuc-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-back {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #2c3e50;
  color: #fff;
  cursor: pointer;
}
.btn-back.light {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.tt-filter-inline {
  margin-bottom: 1rem;
}
.tt-filter-inline input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  outline: none;
}
.tt-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tt-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tt-card:hover {
  border-color: #f0b4bd;
  box-shadow: 0 6px 20px rgba(196,30,58,0.1);
}
.tt-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}
.tt-stt {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fde8ec;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tt-card-body { flex: 1; min-width: 0; }
.tt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.tag-ma { background: #f3e8ff; color: #6b21a8; }
.tag-dvc { background: #dcfce7; color: #166534; }
.tag-ok { background: #dcfce7; color: #166534; }
.tag-phi { background: #f3e8ff; color: #7c3aed; }
.tag-lv { background: #ffedd5; color: #c2410c; }
.tag-nganh { background: #dbeafe; color: #1d4ed8; }
.tag-nhanh { background: #e8f5e9; color: #2e7d32; }
.tag-verified { background: #dcfce7; color: #166534; }
.tag-unverified { background: #fff4d6; color: #8a4b00; }
.data-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e7c76c;
  border-radius: var(--radius);
  background: #fff9e8;
  color: #664700;
  font-size: 0.88rem;
}
.data-notice strong { display: block; margin-bottom: 0.2rem; }
.tt-ten {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.tt-arrow {
  color: #bbb;
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 0.2rem;
}
.tt-empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pagination[hidden] { display: none !important; }
.btn-page {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red-dark);
  cursor: pointer;
}
.btn-page:hover:not(:disabled) {
  background: var(--red);
  color: #fff;
}
.btn-page:disabled {
  border-color: var(--border);
  color: #aaa;
  cursor: not-allowed;
}
.page-info {
  min-width: 92px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Detail overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,10,10,0.45);
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}
.detail-overlay[hidden] { display: none !important; }
.detail-sheet {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #f7f4ef;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
}
.detail-topbar {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.detail-topbar h2 {
  flex: 1;
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.btn-x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.detail-body {
  overflow-y: auto;
  padding: 1.25rem 1.25rem 2rem;
  flex: 1;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.detail-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.detail-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.detail-box.info {
  background: #eef4ff;
  border-color: #c7d7fe;
}
.box-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.detail-box.info p {
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.95rem;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
}
.detail-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}
.detail-meta strong {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.step-list {
  list-style: none;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.step-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.step-n {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--red);
  font-size: 0.8rem;
  min-width: 3.5rem;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.link-row:hover { background: #ffe8ea; }
.link-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.link-row strong {
  display: block;
  color: var(--red-dark);
  font-size: 0.92rem;
}
.link-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.link-go {
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.doc-list {
  margin: 0.25rem 0 0.75rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.muted-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.btn-dvc {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.btn-dvc:hover { filter: brightness(1.05); }
.dvc-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.dvc-hint a { color: var(--red); }

/* Docs / QĐ / Phí */
.doc-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.doc-list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.doc-so {
  font-weight: 700;
  color: var(--red-dark);
  font-size: 0.95rem;
}
.doc-ngay {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.2rem 0 0.5rem;
}
.doc-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.doc-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 0.5rem;
}
.doc-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.doc-blocks { display: flex; flex-direction: column; gap: 0.85rem; }
.doc-block {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.doc-block h3 {
  font-size: 1rem;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
}
.doc-block ul {
  margin-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flow-step {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--red-dark);
}
.flow-step p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.45;
}
.sub-h {
  font-size: 1rem;
  color: var(--red-dark);
  margin: 1.25rem 0 0.75rem;
  font-weight: 700;
}
.fee-table td:last-child { white-space: nowrap; color: var(--red-dark); }

/* Responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .field-card { padding: 1rem 0.5rem; }
  .field-card .name { font-size: 0.75rem; }
  .nav-btn { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
  .logo-area { flex-direction: column; gap: 0.5rem; }
  .footer-brand { text-align: center; flex-direction: column; }
  .detail-body { padding: 1rem; }
  .tt-card-main { padding: 0.85rem; }
}


/* Electronic noticeboard, adapted for the verified Vinh Bao dataset. */
.site-header { background: #fff; color: var(--text); border-bottom: 4px solid var(--gold); box-shadow: var(--shadow); }
.titles h1 { color: #bd2028; }
.board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.board-toolbar button { min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #8f1720; cursor: pointer; font: 600 .9rem 'Be Vietnam Pro', sans-serif; }
.board-toolbar button:first-child { background: #bd2028; color: #fff; border-color: #bd2028; }
#boardClock { margin-left: auto; font-weight: 700; color: #bd2028; font-variant-numeric: tabular-nums; }
#linhVucGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
#linhVucGrid .field-card { position: relative; min-width: 0; min-height: 245px; padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; background: #c72029; color: #fff; border: 1px solid #fff; border-radius: 12px; box-shadow: 0 4px 12px #9b183025; font: inherit; cursor: pointer; text-align: center; }
#linhVucGrid .field-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid #ffffffb0; border-radius: 7px; pointer-events: none; }
#linhVucGrid .field-card .icon { align-self: flex-start; width: 42px; height: 42px; margin: 0; padding: 4px; background: #fff; border-radius: 8px; }
#linhVucGrid .field-card .icon img { width: 100%; height: 100%; object-fit: contain; }
#linhVucGrid .field-card .name { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 700; color: inherit; overflow-wrap: anywhere; text-wrap: balance; }
#linhVucGrid .field-card .count { position: absolute; top: 25px; right: 19px; border-radius: 5px; background: #fff; color: #a8141d; padding: 4px 7px; font-size: .8rem; font-weight: 700; }
.field-hint { border-top: 1px dashed #ffffff88; padding-top: 12px; font-size: .78rem; }
#linhVucGrid .field-card:hover { background: #a81922; transform: translateY(-3px); }
.board-white #linhVucGrid .field-card { background: #fff; color: #931620; border-color: #c72029; }
.board-white #linhVucGrid .field-card::before { border-color: #c7202980; }
.board-white #linhVucGrid .field-card .count { background: #fbe9ea; }
.board-white .field-hint { border-color: #c7202950; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #1769aa; outline-offset: 4px; }
.nav-btn, .btn-back, .filter-select { min-height: 44px; }
.search-box input { min-width: 0; min-height: 32px; }
@media (min-width: 1400px) { .header-inner, .nav-inner, .main-content { max-width: 1440px; } #linhVucGrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  #linhVucGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #linhVucGrid .field-card { min-height: 230px; padding: 18px 14px; }
  #linhVucGrid .field-card .name { font-size: .85rem; }
  #linhVucGrid .field-card .icon { width: 32px; height: 32px; }
  #linhVucGrid .field-card .count { top: 23px; right: 13px; font-size: .67rem; padding: 3px 4px; }
  .board-toolbar { gap: .4rem; } .board-toolbar button { font-size: .78rem; padding: .5rem .7rem; }
  #boardClock { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { #linhVucGrid .field-card { transition: none; } #linhVucGrid .field-card:hover { transform: none; } }
