/* Document List Specific Styles */
.document-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top:10px;
}

.document-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 8px rgb(16 103 157 / 42%);
  border-left: 4px solid #10669c;
  transition: all 0.3s;
  position: relative;
}

.document-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.document-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.document-stt {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10669c 0%, #205fa0 100%);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(76,175,80,0.3);
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-code {
  display: inline-block;
  padding: 4px 10px;
  background: #e3f2fd;
  color: #1976D2;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.document-code:hover {
  background: #bbdefb;
}

.document-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.document-date:before {
  content: "📅";
  font-size: 14px;
}

.document-title {
  margin-bottom: 12px;
}

.document-title a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  transition: color 0.2s;
}

.document-title a:hover {
  color: #10669c;
}

.document-intro {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Files Section */
.document-files {
  border-top: 1px dashed #e0e0e0;
  padding-top: 12px;
  margin-top: 12px;
}

.files-header {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.files-header:before {
  content: "📎";
  font-size: 16px;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
}

.file-item:hover {
  background: #e9ecef;
}

.file-item a {
  flex: 1;
  color: #1976D2;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-item a:hover {
  color: #0d47a1;
}

.file-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2196F3;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
}

.file-icon:before {
  content: "⬇";
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pagination */
.generate_page {
  margin-top: 25px;
  padding: 20px 0;
  text-align: center;
  border-top: 2px solid #e0e0e0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state:before {
  content: "📄";
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 480px) {
  .document-card {
    padding: 10px;
  }
  
  .document-stt {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .document-code {
    font-size: 12px;
    padding: 3px 8px;
  }
  
  .document-title a {
    font-size: 14px;
  }
  
  .document-intro {
    font-size: 13px;
  }
  
  .file-item {
    padding: 6px 10px;
  }
  
  .file-item a {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .document-container {
    gap: 15px;
  }
  
  .document-card {
    padding: 10px;
  }
  
  .document-header {
    gap: 10px;
  }
  
  .document-stt {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .document-title a {
    font-size: 16px;
  }
  
  .files-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .file-item {
    flex: 1;
    min-width: 200px;
  }
}

@media (min-width: 1024px) {
  .document-intro {
    -webkit-line-clamp: 2;
  }
}

/* Hide old table */
.table-responsive {
  display: none;
}