.htdm-documents-wrap{
  display:flex;
  flex-direction:column;
  gap:34px;
}

.htdm-group{
  display:block;
}

.htdm-table-card{
  border:1px solid #bfe3c7;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:
    0 10px 24px rgba(16, 24, 40, 0.06),
    0 2px 8px rgba(16, 24, 40, 0.04);
}

.htdm-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  background:var(--htdm-primary);
  color:var(--htdm-primary-text);
}

.htdm-card-header-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.htdm-card-header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-shrink:0;
}

.htdm-card-header-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.14);
  flex-shrink:0;
}

.htdm-card-header-icon img{
  width:18px;
  height:18px;
  display:block;
  filter:brightness(0) invert(1);
}

.htdm-card-header-text{
  min-width:0;
}

.htdm-card-header-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  opacity:.9;
  margin-bottom:2px;
  color:rgba(255,255,255,.85);
}

.htdm-card-header .htdm-group-title{
  margin:0;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
  color:var(--htdm-primary-text) !important;
}

.htdm-group-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 14px;
  border-radius:999px;
  background:var(--htdm-badge-bg);
  color:var(--htdm-badge-text);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.htdm-table-wrap{
  overflow-x:auto;
}

.htdm-documents-table{
  width:100%;
  min-width:820px;
  border-collapse:collapse;
}

.htdm-documents-table thead th{
  padding:16px 18px;
  background:#f4fbf6;
  border-bottom:1px solid #d9efe0;
  color:#1b6a34;
  font-size:14px;
  font-weight:700;
  text-align:left;
  white-space:nowrap;
}

.htdm-documents-table tbody td{
  padding:16px 18px;
  border-bottom:1px solid #edf5ef;
  vertical-align:middle;
  background:#fff;
}

.htdm-documents-table tbody tr:last-child td{
  border-bottom:none;
}

.htdm-row:hover td{
  background:#fbfefc;
}

.htdm-col-stt{
  width:72px;
  text-align:center;
}

.htdm-col-title{
  min-width:280px;
}

.htdm-col-date{
  width:160px;
}

.htdm-col-downloads{
  width:110px;
  text-align:center;
}

.htdm-col-action{
  width:150px;
  text-align:center;
}

.htdm-stt-badge{
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#d9f4dd;
  color:#17823b;
  font-size:13px;
  font-weight:700;
}

.htdm-document-main{
  display:flex;
  align-items:center;
  gap:12px;
}

.htdm-file-icon{
  width:32px;
  min-width:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.htdm-file-icon img{
  width:28px;
  height:32px;
  object-fit:contain;
  display:block;
}

.htdm-document-text{
  min-width:0;
}

.htdm-document-title{
  font-size:16px;
  line-height:1.45;
  font-weight:600;
  color:#1f2937;
  word-break:break-word;
}

.htdm-document-desc{
  margin-top:4px;
  font-size:13px;
  line-height:1.5;
  color:#6b7280;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.htdm-date-inline,
.htdm-download-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#64748b;
  font-size:14px;
  font-weight:500;
}

.htdm-download-inline{
  justify-content:center;
  color:#17823b;
  font-weight:700;
}

.htdm-date-icon,
.htdm-download-icon{
  font-size:13px;
  line-height:1;
}

.htdm-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:108px;
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  background:var(--htdm-accent);
  color:var(--htdm-accent-text) !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  transition:all .2s ease;
}

.htdm-download-btn:hover,
.htdm-download-btn:focus,
.htdm-download-btn:active,
.htdm-download-btn:visited{
  color:var(--htdm-accent-text) !important;
  text-decoration:none !important;
}

.htdm-col-action .htdm-download-btn,
.htdm-col-action .htdm-download-btn span{
  color:var(--htdm-accent-text) !important;
}

.htdm-download-btn:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.htdm-download-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  line-height:1;
  color:var(--htdm-accent-text) !important;
  transform:translateY(-1px);
}

.htdm-download-btn-text{
  color:var(--htdm-accent-text) !important;
  line-height:1;
}

.htdm-empty{
  padding:14px 16px;
  border:1px dashed #d6e6d8;
  border-radius:14px;
  color:#64748b;
  background:#fbfefc;
}

@media (max-width: 767px){
  .htdm-documents-wrap{
    gap:24px;
  }

  .htdm-card-header{
    padding:18px 16px;
    flex-wrap:wrap;
  }

  .htdm-card-header-left{
    width:100%;
  }

  .htdm-group-count{
    margin-left:auto;
  }

  .htdm-card-header .htdm-group-title{
    font-size:18px;
  }

  .htdm-documents-table{
    min-width:700px;
  }
}