/* Portal V3 — directory/table layout, no large merchant cards */

/* Header Sở — logo tỉnh thay A2CTRAVEL */
.portal-v3 .portal-dept-header .brand-dept img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.portal-v3 .portal-dept-header .brand-name-dept {
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 700;
  color: #1e40af;
  letter-spacing: -0.2px;
  line-height: 1.2;
  max-width: min(280px, 52vw);
}

.portal-v3 main { padding-bottom: 48px; }

.portal-v3 .portal-hero { padding: 40px 20px; }

.portal-v3 .portal-section {
  padding: 28px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.portal-v3 .portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.portal-v3 .portal-section h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.portal-v3 .portal-mode-badge {
  display: block;
  max-width: 1140px;
  margin: 16px auto 0;
  padding: 10px 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 0.875rem;
}

.portal-v3 .portal-mode-badge[hidden] { display: none !important; }

.portal-v3 .portal-export-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  cursor: pointer;
}

.portal-v3 .portal-export-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.portal-v3 .portal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.portal-v3 .portal-tabs button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
}

.portal-v3 .portal-tabs button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.portal-v3 .portal-pub-list.news-grid {
  margin-top: 4px;
}

.portal-v3 .portal-pub-list .portal-empty {
  grid-column: 1 / -1;
  color: #64748b;
  text-align: center;
  padding: 24px 12px;
}

.portal-v3 .portal-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.portal-v3 .portal-dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.portal-v3 .portal-dir-table th,
.portal-v3 .portal-dir-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.portal-v3 .portal-dir-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.portal-v3 .portal-dir-table tr:last-child td { border-bottom: none; }

.portal-v3 .portal-dir-table tr:hover td { background: #f8fafc; }

.portal-v3 .portal-dir-table a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.portal-v3 .portal-dir-table a:hover { text-decoration: underline; }

.portal-v3 .portal-empty {
  padding: 20px;
  color: #64748b;
  text-align: center;
}

.portal-v3 .portal-view-all-wrap {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.portal-v3 .portal-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-v3 .portal-view-all-btn:hover {
  background: #eff6ff;
}

.portal-v3 .portal-pub-list .portal-view-all-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
}

.portal-v3 main { padding-bottom: 0; }

.portal-v3 .portal-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.portal-v3 .portal-badge.ok { background: #dcfce7; color: #166534; }
.portal-v3 .portal-badge.warn { background: #fef9c3; color: #854d0e; }
.portal-v3 .portal-badge.danger { background: #fee2e2; color: #991b1b; }

.portal-v3 .portal-contact {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.7;
}

.portal-v3 .portal-contact a.portal-contact-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}
.portal-v3 .portal-contact a.portal-contact-link:hover {
  color: #1d4ed8;
}

.portal-v3 .portal-contact-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.portal-v3 a.portal-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #2563eb;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.portal-v3 a.portal-back-home:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.portal-v3 .portal-intro p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.portal-v3 .portal-col-authority { display: none; }
.portal-v3.portal-authority .portal-col-authority { display: table-cell; }
.portal-v3.portal-authority .portal-dir-table th.portal-col-authority { display: table-cell; }

@media (max-width: 768px) {
  .portal-v3 .portal-dir-table { font-size: 0.8rem; }
  .portal-v3 .portal-dir-table th,
  .portal-v3 .portal-dir-table td { padding: 8px; }
}
