/* ===== DOCUMENTS ===== */
/* Doc tabs */
.doc-tabs-wrap {
  background: #fff;
  padding: .3rem 1rem .2rem;
  display: flex;
  justify-content: center;
}
.doc-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  margin: .3rem auto .54rem;
  width: fit-content;
  background: #f3f4f6;
  border-radius: 6px;
}
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tab {
  white-space: nowrap;
  padding: .28rem .85rem;
  font-size: .99rem;
  font-weight: 300;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  background: transparent;
  transition: all .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.doc-tab:hover { color: #1a1a2e; }
.doc-tab.active {
  background: #1a1a2e;
  color: #fff;
  font-weight: 300;
}

/* Doc search */
.doc-search-wrap {
  margin: .5rem 0 .75rem;
  display: flex;
  justify-content: center;
}
.doc-search-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .55rem 1.1rem;
  width: 100%;
  max-width: 560px;
}
.doc-search-form i { color: #9ca3af; flex-shrink: 0; }
.doc-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .88rem;
  font-family: 'Mitr', sans-serif;
  font-weight: 300;
  color: #333;
  background: transparent;
  padding: 0;
  line-height: 1;
}

/* Doc table */
.doc-table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-top: .5rem;
  margin-bottom: 1.5rem;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
}
.doc-table thead th {
  padding: .65rem 1.25rem;
  font-size: .9rem;
  font-weight: 400;
  color: #111;
  border-bottom: 1px solid #e5e7eb;
  background: #f8faf8;
  text-align: left;
}
.doc-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.doc-table tbody tr:last-child { border-bottom: none; }
.doc-table tbody tr:hover td { background: #f8faf8; }
.doc-table td { padding: .65rem 1.25rem; font-size: .95rem; color: #555; vertical-align: middle; font-weight: 300; }
.doc-table .col-title { min-width: 200px; color: #333; }
.doc-table .col-date { min-width: 140px; white-space: nowrap; }
.doc-table .col-action { width: 90px; text-align: right; white-space: nowrap; }
.doc-action-btn {
  color: #0284c7;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  width: 32px; height: 32px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s;
}
.doc-action-btn.dl { color: #16a34a; margin-left: -10px; }
.doc-action-btn:hover { background: #f0f4f8; opacity: 1; }

/* Doc pagination */
.doc-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.doc-page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: .82rem;
  font-family: 'Mitr', sans-serif;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .6rem;
}
.doc-page-btn:hover { background: var(--g-100); }
.doc-page-btn:hover,
.doc-page-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
