.responsibility-filter { margin-bottom: 5px; }
.responsibility-filter-action { display: flex; align-items: flex-end; min-height: 46px; }
.responsibility-selection-note { padding: 2px 1px 6px; color: var(--muted); font-size: 11px; }
.responsibility-table { height: clamp(240px, calc(100vh - 345px), 530px); min-height: 0; max-height: none; }
.responsibility-table .data-table { min-width: 995px; }
.responsibility-table th:nth-child(1) { width: 320px; }
.responsibility-table th:nth-child(2) { width: 90px; }
.responsibility-table th:nth-child(3) { width: 105px; }
.responsibility-table th:nth-child(4) { width: 210px; }
.responsibility-table th:nth-child(5) { width: 80px; }
.responsibility-table th:nth-child(6) { width: 190px; }

.modal-window.modal-responsibility-edit { width: min(620px, 95vw); height: min(370px, 92vh); }
.responsibility-edit-head h2 { margin: 0; color: var(--navy); font-size: 18px; }
.responsibility-edit-head p { margin: 4px 0 14px; color: var(--muted); }
.modal-responsibility-edit form { display: grid; gap: 7px; }
.modal-responsibility-edit textarea { min-height: 100px; }

.modal-window.modal-responsibility-preview { width: min(1080px, 97vw); height: min(700px, 94vh); }
.distribution-preview-info { margin: 0 0 8px; color: var(--muted); line-height: 1.4; }
.distribution-summary-table { max-height: 180px; margin-bottom: 8px; }
.distribution-summary-table .data-table { min-width: 930px; }
.distribution-company-table { height: 360px; }
.distribution-company-table .data-table { min-width: 860px; }
.distribution-adjust-bar { display: flex; align-items: center; gap: 6px; margin: 7px 0; padding: 7px; background: #eef3f8; border: 1px solid var(--border); }
.distribution-adjust-bar label { font-size: 11px; font-weight: 700; }
.distribution-adjust-bar select { min-width: 280px; }

@media (max-width: 850px) {
  .responsibility-filter-action { min-height: auto; }
  .distribution-adjust-bar { flex-wrap: wrap; }
}
