/* Кадры, Сборники предприятия, Акты выполненных работ (NIPI-017) */
.rec-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 150px; }
.rec-files li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rec-files a { overflow-wrap: break-word; min-width: 0; }
.rec-file-del { border: none; background: none; color: var(--danger); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }

.staff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-bottom: 24px; }
.staff-grid .card { margin-bottom: 0; }
.staff-subtitle { margin: 20px 0 10px; font-size: 14px; }
.staff-add-doc { margin-top: 10px; }
#staff-card > .card, #acts-page > .card { margin-bottom: 24px; }
.card-title .pill { margin-left: 8px; vertical-align: middle; }
td .pill + .pill { margin-left: 4px; }

.library-tabs { margin-bottom: 18px; }
.library-attention { margin-left: 6px; padding: 0 7px; }
.library-archived td { color: var(--muted); }
.library-desc { max-width: 420px; }

.acts-totals { margin-bottom: 12px; }
.acts-totals:empty { display: none; }
.acts-page-filters { flex: 1; }
label.acts-period { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
label.acts-period > input[type=date] { width: auto; }
td.num, th.num { text-align: right; white-space: nowrap; }

@media (max-width: 720px) {
  .staff-grid { grid-template-columns: 1fr; }
  #staff-card .profile-list { grid-template-columns: 1fr; gap: 2px 0; }
  #staff-card .profile-list dd { margin-bottom: 8px; }
}
