/**
 * U-Home Design System — Trang Tài Liệu & Catalogue Stylesheet
 * Tham khảo cấu trúc Fox-ESS Download (vn.fox-ess.com/download/)
 * Tuân thủ Brand Colors: Đỏ #e4181f, Navy #14202e, Solar Amber #ffa724, Eco Green #12a150
 */

/* ── HERO SECTION: TECHNICAL BLUEPRINT & SCHEMATICS ── */
.uh-hero-docs-section {
  position: relative;
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse at 85% 15%, rgba(228, 24, 31, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 95%, rgba(255, 167, 36, 0.05) 0%, transparent 40%),
    linear-gradient(to right, rgba(20, 32, 46, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 32, 46, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(20, 32, 46, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 32, 46, 0.025) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.uh-hero-docs-section::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -15px;
  width: 580px;
  height: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 580 320' fill='none'%3E%3Cg stroke='%2314202e' stroke-width='1.2' stroke-dasharray='4 3' opacity='0.08'%3E%3Crect x='30' y='30' width='110' height='75' rx='6'/%3E%3Cline x1='140' y1='67' x2='220' y2='67'/%3E%3Ccircle cx='220' cy='67' r='4' fill='%23e4181f'/%3E%3Cline x1='220' y1='67' x2='220' y2='150'/%3E%3Cline x1='220' y1='150' x2='280' y2='150'/%3E%3Crect x='280' y='105' width='140' height='120' rx='8'/%3E%3Cline x1='420' y1='165' x2='510' y2='165'/%3E%3Ccircle cx='510' cy='165' r='4' fill='%23ffa724'/%3E%3Cpath d='M350 225v45h90'/%3E%3Crect x='440' y='245' width='100' height='60' rx='6'/%3E%3C/g%3E%3Cg fill='%2314202e' opacity='0.12' font-family='monospace' font-size='10' font-weight='600'%3E%3Ctext x='45' y='72'%3EPV ARRAY%3C/text%3E%3Ctext x='45' y='88'%3E1500V DC%3C/text%3E%3Ctext x='300' y='145'%3EHYBRID INVERTER%3C/text%3E%3Ctext x='300' y='165'%3EMPPT 98.6%25%3C/text%3E%3Ctext x='455' y='275'%3EBATTERY ESS%3C/text%3E%3Ctext x='455' y='292'%3ELiFePO4%3C/text%3E%3Cpath d='M20 20h12M26 14v12M560 20h12M566 14v12M20 300h12M26 294v12' stroke='%2314202e' stroke-width='1.2'/%3E%3C/g%3E%3Cg stroke='%2314202e' stroke-width='1' opacity='0.07'%3E%3Crect x='160' y='230' width='65' height='26' rx='4'/%3E%3Ctext x='173' y='247' font-family='sans-serif' font-size='10' font-weight='700' fill='%2314202e'%3EIEC 62109%3C/text%3E%3Ccircle cx='95' cy='190' r='20'/%3E%3Ctext x='85' y='194' font-family='sans-serif' font-size='11' font-weight='800' fill='%2314202e'%3ECE%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

.uh-hero-docs-section > .container-1200 {
  position: relative;
  z-index: 1;
}

.uh-hero-docs-section .uh-fact-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 32, 46, 0.08);
  box-shadow: 0 4px 20px rgba(20, 32, 46, 0.04), 0 1px 3px rgba(20, 32, 46, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.uh-hero-docs-section .uh-fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--uh-color-border-subtle, #cbd5e1);
  transition: background 0.2s ease;
}

.uh-hero-docs-section .uh-fact-card:hover {
  border-color: rgba(228, 24, 31, 0.25);
  box-shadow: 0 8px 24px rgba(20, 32, 46, 0.07);
}

.uh-hero-docs-section .uh-fact-card:hover::before {
  background: var(--uh-color-primary, #e4181f);
}

/* ── SEARCH & FILTER CONTROLS ── */
.uh-doc-filter-panel {
  background: #ffffff;
  border: 1px solid #e8ebef;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(20, 32, 46, 0.05);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.uh-doc-search-bar {
  display: flex;
  align-items: center;
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px 6px 20px;
  transition: all 0.25s ease;
}

.uh-doc-search-bar:focus-within {
  background: #ffffff;
  border-color: var(--uh-color-primary, #e4181f);
  box-shadow: 0 0 0 4px rgba(228, 24, 31, 0.12);
}

.uh-doc-search-icon {
  flex: none;
  color: #8996a4;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.uh-doc-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #14202e;
  outline: none;
  min-width: 0;
}

.uh-doc-search-input::placeholder {
  color: #8996a4;
}

.uh-doc-search-clear {
  background: #eef1f4;
  border: none;
  color: #64748b;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  margin-right: 6px;
  transition: all 0.2s;
}

.uh-doc-search-clear:hover {
  background: #fee2e2;
  color: var(--uh-color-primary, #e4181f);
}

/* Category Filter Tabs (Cấp 1) */
.uh-doc-cat-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.uh-doc-cat-tabs::-webkit-scrollbar {
  display: none;
}

.uh-doc-cat-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #eef1f4;
  background: #ffffff;
  color: #4a5a6b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.uh-doc-cat-btn:hover {
  border-color: #cbd5e1;
  color: #14202e;
  background: #f8fafc;
}

/* Active states with custom brand colors for each Document Type */
.uh-doc-cat-btn.active-all {
  background: #14202e;
  border-color: #14202e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 32, 46, 0.25);
}

.uh-doc-cat-btn.active-datasheet {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.uh-doc-cat-btn.active-brochure {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.uh-doc-cat-btn.active-leaflet {
  background: #7e22ce;
  border-color: #7e22ce;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.3);
}

.uh-doc-cat-btn.active-manual {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.uh-doc-cat-btn.active-profile {
  background: #e4181f;
  border-color: #e4181f;
  color: #ffffff;
}

.uh-doc-cat-btn.active-cert {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.uh-doc-cat-btn.active-other {
  background: #475569;
  border-color: #475569;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3);
}

/* Brand Filter Pills with Logos (Chỉ logo to rõ, không kèm text) */
.uh-brand-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.uh-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 105px;
  padding: 6px 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #4a5a6b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.uh-brand-pill.is-all {
  min-width: auto;
  padding: 0 20px;
  font-weight: 700;
  color: #4a5a6b;
}

.uh-brand-pill-logo {
  height: 28px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
  transition: transform 0.2s ease;
}

.uh-brand-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 3px 8px rgba(20, 32, 46, 0.06);
  transform: translateY(-1px);
}

.uh-brand-pill:hover .uh-brand-pill-logo {
  transform: scale(1.05);
}

/* Active State for Brand Pills */
.uh-brand-pill.active {
  border-color: #e4181f;
  background: #ffffff;
}

.uh-brand-pill.active:not(.is-all)::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  background: #e4181f;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.uh-brand-pill.active.is-all {
  background: #14202e;
  border-color: #14202e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 32, 46, 0.25);
}

/* Brand Display in Table (Chỉ logo to rõ, không kèm text) */
.uh-brand-table-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #eef1f4;
  padding: 5px 12px;
  border-radius: 8px;
  height: 42px;
  min-width: 100px;
  box-shadow: 0 1px 3px rgba(20, 32, 46, 0.04);
  transition: all 0.2s ease;
}

.uh-brand-table-cell:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(20, 32, 46, 0.08);
  transform: translateY(-1px);
}

.uh-brand-table-logo {
  max-height: 28px;
  max-width: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Specific Badges for Document Types with Unique Colors */
.uh-badge-dtype {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.uh-badge-dtype-datasheet {
  background: transparent;
  color: #14202e;
  border: 1px solid #cbd5e1;
}

.uh-badge-dtype-brochure {
  background: transparent;
  color: #8a3809;
  border: 1px solid #ffd8a8;
}

.uh-badge-dtype-leaflet {
  background: transparent;
  color: #4a5a6b;
  border: 1px solid #cbd5e1;
}

.uh-badge-dtype-manual {
  background: transparent;
  color: #14202e;
  border: 1px solid #cbd5e1;
}

.uh-badge-dtype-profile {
  background: transparent;
  color: #e4181f;
  border: 1px solid #ffd4d5;
}

.uh-badge-dtype-cert {
  background: transparent;
  color: #12a150;
  border: 1px solid #b7ebd0;
}

.uh-badge-dtype-other {
  background: transparent;
  color: #4a5a6b;
  border: 1px solid #e2e8f0;
}

/* ── DOCUMENT LIST & TABLE ── */
.uh-doc-table-card {
  background: #ffffff;
  border: 1px solid #e8ebef;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(20, 32, 46, 0.05);
  overflow: hidden;
  margin-bottom: 28px;
}

.uh-doc-table {
  width: 100%;
  text-align: left;
}

.uh-doc-thead {
  background: #f8fafc;
  border-bottom: 2px solid #eef1f4;
}

.uh-doc-tr {
  display: grid;
  grid-template-columns: 35% 12% 12% 22% 19%;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.18s ease;
}

.uh-doc-tbody .uh-doc-tr:hover {
  background-color: #fbfcfe;
}

.uh-doc-tbody .uh-doc-tr:last-child {
  border-bottom: none;
}

.uh-doc-th {
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.uh-doc-td {
  padding: 18px 20px;
  display: flex;
  align-items: center;
}

.uh-doc-td.col-main {
  display: block;
}

.uh-doc-td.col-cat {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.uh-doc-th.text-right,
.uh-doc-td.col-actions {
  justify-content: flex-end;
  text-align: right;
}

.uh-empty-state-row {
  width: 100%;
}

/* Doc File Name & Meta Cell */
.uh-doc-file-cell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.uh-doc-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.uh-doc-icon-box.pdf {
  background: #fff1f1;
  color: #e4181f;
  border: 1.5px solid #ffd4d5;
}

.uh-doc-icon-box.zip {
  background: #fffbeb;
  color: #d97706;
  border: 1.5px solid #fde68a;
}

.uh-doc-info {
  min-width: 0;
}

.uh-doc-title {
  font-size: 15px;
  font-weight: 700;
  color: #14202e;
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color 0.18s ease;
}

.uh-doc-title:hover {
  color: var(--uh-color-primary, #e4181f);
}

.uh-doc-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.uh-doc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Cột Phân loại: Text bình thường, xuống dòng mượt mà */
.uh-badge-cat,
.uh-doc-cat-text {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #334155;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.uh-badge-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: #12a150;
  border: 1px solid #b7ebd0;
  white-space: nowrap;
}

.uh-badge-brand {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  color: #4a5a6b;
  border: 1px solid #e2e8f0;
}

/* Action Buttons */
.uh-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.uh-doc-btn-view,
.uh-doc-btn-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.uh-doc-btn-view:hover,
.uh-doc-btn-preview:hover {
  border-color: var(--uh-color-primary, #e4181f);
  background: #fff1f1;
  color: var(--uh-color-primary, #e4181f);
}

.uh-doc-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1.5px solid var(--uh-color-primary, #e4181f);
  background: var(--uh-color-primary, #e4181f);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.uh-doc-btn-download:hover {
  background: #b3141a;
  border-color: #b3141a;
  transform: translateY(-1px);
}

/* ── PAGINATION BAR (Chuẩn Fox-ESS & U-Home) ── */
.uh-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #eef1f4;
  flex-wrap: wrap;
  gap: 16px;
}

.uh-pagination-info {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}

.uh-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uh-pagi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.uh-pagi-btn:hover:not(:disabled) {
  border-color: var(--uh-color-primary, #e4181f);
  color: var(--uh-color-primary, #e4181f);
  background: #fffafa;
}

.uh-pagi-btn.active {
  background: var(--uh-color-primary, #e4181f);
  border-color: var(--uh-color-primary, #e4181f);
  color: #ffffff;
}

.uh-pagi-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* ── PREVIEW MODAL LIGHTBOX ── */
.uh-doc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 46, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.uh-doc-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(20, 32, 46, 0.3);
  border: 1px solid #eef1f4;
  overflow: hidden;
  animation: uh-modal-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes uh-modal-up {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.uh-doc-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.uh-doc-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #14202e;
  margin: 0;
  line-height: 1.35;
}

.uh-doc-modal-close {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: all 0.2s;
}

.uh-doc-modal-close:hover {
  background: #fee2e2;
  color: var(--uh-color-primary, #e4181f);
}

.uh-doc-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.uh-doc-modal-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a5a6b;
  margin-bottom: 20px;
}

.uh-doc-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.uh-doc-spec-item {
  background: #f8fafc;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  padding: 10px 14px;
}

.uh-doc-spec-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.uh-doc-spec-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #14202e;
}

.uh-doc-hl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uh-doc-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
}

.uh-doc-hl-check {
  color: #12a150;
  font-weight: 800;
  flex: none;
}

.uh-doc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eef1f4;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Mobile responsive card list */
@media (max-width: 768px) {
  .uh-doc-table thead,
  .uh-doc-thead {
    display: none;
  }

  .uh-doc-table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .uh-doc-table {
    display: block;
    width: 100%;
  }

  .uh-doc-tbody {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
  }

  .uh-doc-table tbody tr,
  .uh-doc-tbody .uh-doc-tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand type"
      "main main"
      "cat cat"
      "actions actions";
    align-items: center;
    gap: 10px 12px;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(20, 32, 46, 0.05);
    box-sizing: border-box;
    width: 100%;
  }

  .uh-doc-table td,
  .uh-doc-td {
    display: flex;
    width: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Cột 3: Thương hiệu (Góc trên bên trái card) */
  .uh-doc-td.col-brand {
    grid-area: brand;
    justify-content: flex-start;
  }

  .uh-doc-td.col-brand .uh-brand-table-cell {
    height: 38px;
    min-width: 88px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .uh-doc-td.col-brand .uh-brand-table-logo {
    max-height: 24px;
    max-width: 82px;
  }

  /* Cột 2: Loại tài liệu (Góc trên bên phải card) */
  .uh-doc-td.col-type {
    grid-area: type;
    justify-content: flex-end;
  }

  .uh-doc-td.col-type .uh-badge-dtype {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
  }

  /* Cột 1: Tiêu đề tài liệu & Metadata */
  .uh-doc-td.col-main {
    grid-area: main;
    display: block !important;
  }

  .uh-doc-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.42;
    color: #14202e;
    margin-bottom: 8px;
  }

  .uh-doc-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
  }

  /* Cột 4: Phân loại (Thanh tag nằm ngang tinh tế) */
  .uh-doc-td.col-cat {
    grid-area: cat;
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    padding: 8px 12px !important;
  }

  .uh-doc-td.col-cat::before {
    content: "Phân loại:";
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8292a4;
    flex-shrink: 0;
  }

  .uh-doc-cat-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
  }

  /* Cột 5: Nút thao tác Xem & Tải về */
  .uh-doc-td.col-actions {
    grid-area: actions;
    width: 100% !important;
    display: block !important;
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 1px solid #f1f5f9;
  }

  .uh-doc-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: none;
  }

  .uh-doc-btn-view,
  .uh-doc-btn-preview,
  .uh-doc-btn-download {
    width: 100%;
    height: 42px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    justify-content: center;
    box-sizing: border-box;
  }

  .uh-doc-spec-grid {
    grid-template-columns: 1fr;
  }

  .uh-doc-filter-panel {
    padding: 16px;
  }

  .uh-pagination-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── KHỐI CTA HỖ TRỢ KỸ THUẬT & HỒ SƠ DỰ ÁN ── */
.uh-doc-cta-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 10px 30px rgba(20, 32, 46, 0.05);
  margin-top: 36px;
  overflow: hidden;
}

.uh-doc-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #e4181f 0%, #ffa724 100%);
}

.uh-doc-cta-content {
  max-width: 680px;
}

.uh-doc-cta-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.uh-doc-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #14202e;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.uh-doc-cta-desc {
  font-size: 14.5px;
  color: #4a5a6b;
  line-height: 1.6;
  margin: 0;
}

.uh-doc-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Nút Hotline Kỹ Thuật */
.uh-doc-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  color: #14202e;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(20, 32, 46, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.uh-doc-btn-phone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff1f1;
  color: #e4181f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.uh-doc-btn-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.uh-doc-btn-phone-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.uh-doc-btn-phone-main {
  font-size: 15px;
  font-weight: 800;
  color: #14202e;
  letter-spacing: 0.01em;
}

.uh-doc-btn-phone:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(20, 32, 46, 0.08);
}

.uh-doc-btn-phone:hover .uh-doc-btn-phone-icon {
  background: #e4181f;
  color: #ffffff;
  transform: scale(1.05);
}

/* Nút Nhận Báo Giá Dự Án */
.uh-doc-btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: linear-gradient(135deg, #e4181f 0%, #cf131a 100%);
  border: 1.5px solid #e4181f;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.uh-doc-btn-quote:hover {
  background: linear-gradient(135deg, #cf131a 0%, #b3141a 100%);
  border-color: #b3141a;
  color: #ffffff;
}

.uh-doc-btn-quote svg {
  transition: transform 0.2s ease;
}

.uh-doc-btn-quote:hover svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .uh-doc-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .uh-doc-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── EMPTY STATE TRONG BẢNG TÀI LIỆU ── */
.uh-doc-table .uh-empty-state,
.uh-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 60px 24px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.uh-empty-state-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  color: #94a3b8;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 18px !important;
  transition: all 0.3s ease;
}

.uh-empty-state:hover .uh-empty-state-icon {
  background: #fff1f1;
  border-color: #fca5a5;
  color: #e4181f;
  transform: scale(1.06);
}

.uh-empty-state-title {
  font-size: 19px;
  font-weight: 800;
  color: #14202e;
  line-height: 1.35;
  margin: 0 auto 10px !important;
  text-align: center;
}

.uh-empty-state-desc {
  font-size: 14.5px;
  color: #64748b;
  max-width: 460px;
  line-height: 1.6;
  margin: 0 auto 24px !important;
  text-align: center;
}

.uh-empty-state .uh-btn {
  margin: 0 auto !important;
}

