.people-panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 2px 6px #182c4905; min-width: 0; }
.people-sections { display: flex; flex-wrap: wrap; gap: 5px; margin: -8px 0 15px; padding: 4px; width: fit-content; border: 1px solid var(--line); border-radius: 9px; background: #edf1f8; }
.people-sections button { padding: 7px 13px; border: none; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 620; white-space: nowrap; }
.people-sections button:hover, .people-sections button[aria-pressed='true'] { color: var(--accent-dark); background: var(--surface); }
.people-sections button[aria-pressed='true'] { box-shadow: 0 1px 4px #182c4912; }
.approval-order-list { margin: 0; padding: 0; list-style: none; }
.approval-order-list li { display: grid; grid-template-columns: auto minmax(0, 360px) auto; align-items: end; justify-content: start; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.approval-order-number { display: grid; place-items: center; width: 34px; height: 34px; align-self: end; border-radius: 8px; background: #eaf0ff; color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.approval-order-list label { display: grid; gap: 5px; min-width: 0; color: var(--ink-soft); font-size: 13px; font-weight: 620; }
.approval-order-list select { min-width: 0; width: 100%; padding: 7px 9px; border: 1px solid #dbe3f2; border-radius: 7px; background: #fafbfe; color: var(--ink); font-size: 14px; }
.approval-order-actions { display: flex; gap: 6px; }
.approval-order-handle, .approval-order-remove { display: grid; place-items: center; width: 38px; height: 36px; padding: 0; border: 1px solid #dbe3f2; border-radius: 7px; background: #f7f9fd; color: var(--muted); }
.approval-order-handle { touch-action: none; user-select: none; }
.approval-order-handle:not(:disabled) { cursor: grab; }
.approval-order-handle:not(:disabled):hover { color: var(--accent-dark); border-color: #b4c4fb; background: #edf2ff; }
.approval-order-handle:disabled, .approval-order-remove:disabled, [data-order-add]:disabled { opacity: .45; }
.approval-order-remove:not(:disabled):hover { color: #a23d57; border-color: #efd5dd; background: #fff8fa; }
[data-order-dragging], [data-order-dragging] .approval-order-handle:not(:disabled) { cursor: grabbing; }
.approval-order-list .approval-order-dragging { background: #edf2ff; box-shadow: inset 3px 0 0 var(--accent); }
.approval-order-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.approval-order-hint { margin: 0; padding: 0 18px 12px; color: var(--muted); font-size: 14px; }
.approval-order-heading [data-order-add] { align-self: flex-start; }
.people-table th, .people-table td { padding: 12px 15px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
.people-table th { color: var(--muted); background: #f7f9fd; font-size: 13px; font-weight: 620; white-space: nowrap; }
.people-table td:first-child, .people-table th:first-child { padding-left: 19px; }
.people-table td:last-child, .people-table th:last-child { padding-right: 19px; }
.people-table tr:last-child td:first-child { border-radius: 0 0 0 13px; }
.people-table tr:last-child td:last-child { border-radius: 0 0 13px; }
.people-identity { min-width: 135px; }
.people-identity strong, .people-identity small { display: block; overflow-wrap: anywhere; }
.people-identity small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.people-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
.people-row-action { border: 0; border-radius: 6px; padding: 5px 8px; background: transparent; color: var(--accent-dark); font-weight: 650; white-space: nowrap; }
.people-row-action:hover { background: #edf2ff; }
.people-empty { min-height: 150px; display: grid; place-content: center; justify-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 20px; color: var(--muted); font-size: 14px; }
.admin-dialog { width: min(100% - 24px, 530px); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 15px 48px #12264b44; }
.admin-dialog::backdrop { background: #1020416e; }
.admin-dialog-header, .admin-dialog-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 18px; }
.admin-dialog-header { border-bottom: 1px solid var(--line); }
.admin-dialog-header h2 { margin: 0; font-size: 19px; font-weight: 700; }
.admin-dialog-body { padding: 17px 18px; }
.admin-dialog-footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.admin-form, .admin-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; margin: 0; }
.admin-form { align-items: start; }
.admin-form label, .admin-form-static { display: grid; gap: 6px; font-size: 14px; font-weight: 620; }
.admin-form small { color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-form .admin-required { color: #a23d57; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-width: 0; border: 1px solid #dbe3f2; border-radius: 7px; background: #fafbfe; color: var(--ink); padding: 8px 9px; font-size: 14px; }
.admin-form select, .approval-order-list select {
  appearance: none;
  padding-right: 27px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 14px center, right 10px center;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.admin-form-static { min-width: 0; margin: 0; }
.admin-form-static dd { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-height: 36px; margin: 0; color: var(--ink-soft); font-weight: 500; overflow-wrap: anywhere; }
.admin-form textarea { resize: vertical; }
.admin-form-wide { grid-column: 1 / -1; }
.admin-form-error { margin: 0; color: #a23d57; font-size: 14px; }
.admin-facts + form { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-facts dt { color: var(--muted); font-size: 13px; }
.admin-facts dd { margin: 4px 0 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.admin-deny { color: #a23d57; border-color: #efd5dd; background: #fff8fa; }
.admin-deny:hover { background: #fcebf0; }
.registration-link { margin-top: 10px; width: 100%; }
.demo-login-form { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (forced-colors: active) {
  .admin-form select, .approval-order-list select { appearance: auto; background-image: none; }
}
@media (max-width: 570px) {
  .people-sections button { padding-inline: 9px; }
  .approval-order-list li { gap: 7px; padding-inline: 10px; }
  .approval-order-number { width: 27px; }
  .approval-order-handle, .approval-order-remove { width: 34px; }
  .approval-order-footer { padding-inline: 10px; }
  .people-table th, .people-table td { padding: 10px 8px; }
  .people-table td:first-child, .people-table th:first-child { padding-left: 11px; }
  .people-table td:last-child, .people-table th:last-child { padding-right: 11px; }
  .people-identity { min-width: 105px; }
  .admin-dialog { max-height: 95dvh; }
  .admin-dialog-header, .admin-dialog-body, .admin-dialog-footer { padding-inline: 14px; }
}
