/* Стили разделов: уведомления, администрирование, модели и задачи */

/* поля формы не растягиваются по высоте соседа с подсказкой */
.form-grid > .field { align-content: start; }

/* уведомления */
.notify-channels { align-items: start; }
.notify-channels .card .row { margin-top: 14px; }
.notify-rcpt { flex: 1 1 200px; min-width: 0; }
.notify-err { max-width: 320px; overflow-wrap: anywhere; }

/* роли */
.perm-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.perm-list li { position: relative; padding-left: 22px; }
.perm-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.perm-list.on li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.perm-head.row { margin: 0; }
.perm-head .chip { flex: none; white-space: nowrap; }
.perm-note { margin-top: 12px; }

/* LDAP */
.ldap-sub { margin-top: 16px; }
.ldap-attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ldap-actions { margin: 16px 0; }

/* журналы */
.log-agent { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* хранилище */
.storage-share { display: block; height: 10px; }
.storage-warn { margin: 12px 0 0; }

@media (max-width: 960px) {
  .ldap-attrs { grid-template-columns: 1fr; }
  .log-agent { max-width: 160px; }
}

/* печать любой страницы */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f4f6; --surface-3: #e5e7eb; --border: #d1d5db; --text: #111; --muted: #4b5563; --accent: #2563eb; }
  html, body { background: #fff !important; color: #111; font-size: 12px; }
  .appbar, .sidebar, .page-actions, .filters, .toolbar, .tabs, .toasts, .card-head .btn, .pager, .btn { display: none !important; }
  .app { display: block; min-height: 0; }
  .view { padding: 0; }
  .page-head { display: none; }
  .card, .kpi { background: #fff; border-color: #d1d5db; break-inside: avoid; box-shadow: none; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi.warn .kpi-value, .kpi.alarm .kpi-value { color: #b45309; }
  .barlist-bar { background: #2563eb; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table th, .table td { color: #111; border-color: #e5e7eb; }
  .chip { border: 1px solid #d1d5db; background: #fff; color: #111; }
  a { color: #111; }
  .plate-text { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* модели и задачи детекции */
.task-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: baseline; }
.model-err { max-width: 320px; overflow-wrap: anywhere; }
.class-pick { max-height: 260px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.drawer.wide-drawer { width: min(680px, 100%); }
.drawer-body section > h3 { margin: 0 0 8px; }
.modal progress { width: 100%; height: 6px; accent-color: var(--accent); }
