.users-page { max-width:1280px; margin:0 auto; }
.users-filters { display:flex; align-items:end; gap:16px; margin:20px 0; }
.users-filters .field:first-child { flex:1; max-width:440px; }
.users-list { border:1px solid #e3e7ed; border-radius:16px; overflow:hidden; background:white; }
.users-row { display:grid; grid-template-columns:minmax(180px,1fr) 180px minmax(160px,1fr) auto; gap:20px; align-items:center; padding:20px 24px; border-bottom:1px solid #edf0f4; }
.users-row:last-child { border:0; }
.users-row small { display:block; color:#677589; margin-top:5px; }
.users-row.is-archived { background:#f7f8fa; }
.users-role { font-weight:600; }
.users-accounts { color:#526174; font-size:13px; line-height:1.5; }
.users-notice { padding:14px 18px; margin:12px 0; border-radius:10px; background:#fff4d9; }
.users-notice button { margin-left:12px; }
.users-empty { padding:24px; color:#677589; }
#users-dialog { width:min(650px,calc(100vw - 32px)); max-height:90vh; }
.users-form { display:grid; gap:16px; }
.users-form p { margin:0; }
.users-form fieldset { min-width:0; border:1px solid #e0e5ec; border-radius:10px; padding:16px; }
.users-form legend { padding:0 6px; font-weight:600; }
.users-rights { display:grid; gap:12px; margin-top:14px; max-height:220px; overflow:auto; }
.users-rights label,.users-confirm { display:flex; align-items:flex-start; gap:10px; line-height:1.5; }
.users-form input[type=checkbox] { flex:0 0 auto; width:17px; height:17px; margin-top:2px; }
.users-lifecycle { display:flex; flex-wrap:wrap; gap:10px; border-top:1px solid #e3e7ed; padding-top:16px; }
.users-history ol { list-style:none; margin:0; padding:0; }
.users-history li { padding:16px 0; border-bottom:1px solid #e3e7ed; }
.users-history span { display:block; margin-top:6px; color:#677589; font-size:13px; }
.crm-readonly-note { padding:10px 16px; margin:0 0 16px; background:#edf3fa; color:#3e5875; border-radius:10px; }
body.server-accountant main input:disabled,body.server-accountant main textarea:disabled,body.server-accountant main select:disabled { color:#46546a; opacity:1; background:#f5f7fa; }
body.server-viewer main [data-finance-filter],body.server-viewer main #kanban-search,body.server-viewer main #kanban-manager,body.server-viewer #kanban-criteria-form input,body.server-viewer #kanban-criteria-form select { pointer-events:auto; }
@media(max-width:850px) { .users-row { grid-template-columns:1fr 1fr; gap:12px; padding:16px; } .users-filters { flex-wrap:wrap; } .users-accounts { grid-column:1/-1; } }
