/* Region roster, member editor and brand matching. */
.rm-page,.rm-dialog {
  --rm-ink:#193d34; --rm-fg:#253e34; --rm-muted:#52665c; --rm-line:#dce5df; --rm-green:#176648;
  --rm-mint:#edf5ef; --rm-soft:#f7f9f6; --rm-gold:#895027;
  color:var(--rm-fg);
}
.rm-page {display:grid;gap:18px;padding-bottom:32px}
.rm-page button,.rm-dialog button,.rm-page input,.rm-page select,.rm-dialog input {font-family:inherit}
.rm-page button:disabled,.rm-dialog button:disabled {cursor:not-allowed}
.rm-context {display:flex;align-items:center;gap:0;padding:17px 23px;background:#f0f5ef;border:1px solid #dce7da;border-radius:12px}
.rm-area {display:flex;gap:13px;align-items:center;padding-right:32px;min-width:0}
.rm-map {height:42px;width:42px;flex:0 0 42px;border-radius:11px;position:relative;background:#dfeadd;color:#396448}
.rm-map::before,.rm-map::after {content:"";position:absolute;width:7px;height:7px;background:currentColor;border-radius:1.5px;left:12px;top:12px;box-shadow:10px 10px currentColor}
.rm-map::after {left:22px;top:12px;opacity:.62;box-shadow:-10px 10px currentColor}
.rm-caption {display:block;color:var(--rm-muted);font-size:12px;line-height:1.5;font-weight:550}
.rm-area select {font-size:16px;margin:0 0 0 -4px;padding:1px 22px 1px 3px;min-height:28px;font-weight:650;border:0;color:var(--rm-ink);background-color:transparent;background-position:calc(100% - 10px) 54%,calc(100% - 5px) 54%;background-size:5px 5px;cursor:pointer}
.rm-fact {border-left:1px solid #cedbce;padding:0 30px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:4px}
.rm-fact strong {font-size:14px;font-weight:640;font-variant-numeric:tabular-nums}
.rm-card {overflow:hidden;min-width:0;background:#fff;border:1px solid var(--rm-line);border-radius:13px}
.rm-card-head,.rm-tools,.rm-brands,.rm-card-foot,.rm-draft {display:flex;justify-content:space-between;align-items:center;gap:12px}
.rm-card-head {padding:22px 24px 15px}
.rm-card-head h2 {font-size:19px;letter-spacing:-.025em;line-height:1.3}
.rm-button {border-radius:7px;min-height:36px;font-size:13px;line-height:1.4;letter-spacing:normal;white-space:nowrap;padding:7px 13px;font-weight:580}
.rm-button.rm-primary,.rm-button.rm-danger {color:#fff;background:var(--rm-green);border-color:var(--rm-green)}
.rm-button.rm-primary:hover {background:#104e36;border-color:#104e36}
.rm-button.rm-danger {background:#9b402c;border-color:#9b402c}
.rm-button.rm-danger:hover {background:#853421}
.rm-add {gap:8px}.rm-add::before {content:"+";font:400 21px/14px system-ui}
.rm-tools {padding:0 24px;align-items:center;flex-wrap:wrap}
.rm-kinds {display:flex;max-width:100%;gap:3px;border:1px solid #e3e9e2;border-radius:9px;padding:3px;background:#f3f6f2}
.rm-kinds .rm-kind {gap:6px;border:0;background:transparent;color:#5a6b61;font-size:13px;min-height:31px;padding:5px 11px}
.rm-kinds .rm-kind[aria-pressed=true] {color:#174b34;background:white;box-shadow:0 1px 4px #203c271c}
.rm-kind-count {font:600 11px/1.45 ui-monospace,monospace;color:#607466}
.rm-kind[aria-pressed=true] .rm-kind-count {color:var(--rm-green)}
.rm-search {position:relative;display:flex;align-items:center;min-width:180px;max-width:100%}
.rm-search>span {position:absolute;left:13px;top:50%;height:11px;width:11px;border-radius:50%;border:1.5px solid #718079;transform:translateY(-62%);pointer-events:none}
.rm-search>span::after {content:"";width:6px;height:1.5px;background:#718079;position:absolute;transform:rotate(45deg);right:-4px;bottom:-2px}
.rm-search input {width:100%;min-height:38px;font-size:13px;border:1px solid #ccd8ce;border-radius:7px;background:#fff;color:var(--rm-ink);padding:7px 12px 7px 34px}
.rm-search input::placeholder {color:#63756a}
.rm-brands {justify-content:flex-start;gap:6px;flex-wrap:wrap;padding:13px 24px 16px}
.rm-brands .rm-caption {margin-right:3px}
.rm-brand-filter {min-height:28px;background:#fff;color:#516559;border:1px solid transparent;padding:3px 10px;font-weight:540}
.rm-brand-filter[aria-pressed=true] {color:#155737;border-color:#c6dfcb;background:#ecf5ed}
.rm-match:not(:empty) {border-top:1px solid var(--rm-line);color:#416149;background:#f6faf5;padding:9px 24px;font-size:12px}
.rm-list table {width:100%;border-collapse:collapse;table-layout:auto;font-size:14px}
.rm-list th,.rm-list td {padding:10px 14px;text-align:left;color:var(--rm-fg);border:0;border-top:1px solid #e6ebe6}
.rm-list th {background:#f7f9f6;font-size:12px;font-weight:600;line-height:1.7;color:#56655b}
.rm-list th:first-child,.rm-list td:first-child {padding-left:24px}
.rm-list th:last-child,.rm-list td:last-child {padding-right:24px;text-align:right}
.rm-list tbody tr:hover {background:#fbfcfa}
.rm-person {display:flex;align-items:center;gap:11px;min-width:0}
.rm-avatar {background:#e1eee5;color:#38624d;font-size:15px;letter-spacing:0;font-weight:630;line-height:1;flex:0 0 36px;height:36px;display:grid;place-content:center;border-radius:11px}
.rm-avatar.supplier {background:#faeadb;color:#896146}
.rm-person-text {min-width:0}
.rm-person-name {font-size:14px;line-height:1.5;font-weight:630;display:flex;gap:7px;align-items:center;flex-wrap:wrap;word-break:break-word}
.rm-lead-tag {color:#3d654b;background:#eaf3e9;border:1px solid #d4e3d3;border-radius:4px;font-size:10px;line-height:15px;font-weight:580;white-space:nowrap;padding:0 4px}
.rm-id {color:#63756b;display:block;font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.01em;overflow-wrap:anywhere}
.rm-identity {font-size:13px}
.rm-tags,.rm-row-actions,.rm-inline,.rm-pagination {display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.rm-tags span {font-size:12px;line-height:1.5;font-weight:530;border-radius:5px;background:#f0f3ef;color:#435749;padding:2px 8px}
.rm-row-actions {justify-content:flex-end;flex-wrap:nowrap;gap:7px}
.rm-button.rm-link {background:transparent;border:0;border-radius:4px;color:var(--rm-green);min-height:32px;padding:4px 5px;font-size:13px}
.rm-button.rm-link:hover {background:#edf5ee}
.rm-delete.rm-link {color:#646b64}.rm-delete.rm-link:hover {background:#faeee9;color:#903c2d}
.rm-delete.rm-link:disabled {opacity:.5;background:transparent;color:#777;cursor:not-allowed}
.rm-card-foot {padding:13px 24px;border-top:1px solid var(--rm-line);color:var(--rm-muted);font-size:12px;min-height:43px}
.rm-empty {display:grid;gap:10px;padding:44px 18px;justify-items:center;color:#53685b;font-size:14px}
.rm-notice:empty {display:none}
.rm-draft {background:#fbf5e5;border:1px solid #e7d6a9;padding:14px 18px;border-radius:10px;color:#6b542c;flex-wrap:wrap}
.rm-draft strong {font-size:14px}.rm-draft p {font-size:13px;line-height:1.55;margin-top:3px}
.rm-dialog {margin:0 0 0 auto;border:0;padding:0;width:min(440px,100%);max-width:100%;height:100dvh;max-height:100dvh;background:#fff;box-shadow:-10px 0 50px #0e291f15}
.rm-dialog[open] {display:flex;flex-direction:column}
.rm-dialog::backdrop {background:#11281d55}
.rm-dialog-head,.rm-dialog-footer {padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.rm-dialog-head {border-bottom:1px solid var(--rm-line)}
.rm-dialog-head h2 {font-size:21px;line-height:1.4;letter-spacing:-.03em}
.rm-dialog-head p,.rm-dialog-body>p {font-size:13px;color:var(--rm-muted);line-height:1.7;margin-top:4px}
.rm-dialog .rm-close {border:0;width:34px;min-height:34px;height:34px;padding:0;background:#f1f5f0;border-radius:50%;color:#4f6357;font:24px/1 system-ui}
.rm-dialog-body {padding:22px 24px;flex:1;overflow:auto;overscroll-behavior:contain}
.rm-dialog-body .rm-label,.rm-form-section legend {font-size:14px;font-weight:640;color:var(--rm-ink);padding:0}
.rm-dialog .rm-search {width:100%;margin:9px 0}
.rm-options {border:1px solid var(--rm-line);border-radius:9px;max-height:32dvh;overflow:auto}
.rm-option,.rm-edit-person {display:flex;gap:12px;align-items:center;padding:11px 13px}
.rm-option {cursor:pointer}
.rm-option + .rm-option {border-top:1px solid var(--rm-line)}
.rm-option:has(input:checked) {background:#f0f7ee}
.rm-option:hover {background:#f7faf5}
.rm-option .rm-person,.rm-edit-person .rm-person {flex:1}
.rm-option>small,.rm-edit-person>small {font-size:12px;color:var(--rm-muted);white-space:nowrap}
.rm-option input[type=radio] {accent-color:var(--rm-green);height:16px;width:16px;min-height:0;padding:0;margin:0}
.rm-edit-person {background:#f4f7f2;border-radius:10px;padding:15px}
.rm-option-empty {margin:0;padding:18px;color:var(--rm-muted);font-size:13px}
.rm-form-section {border:0;margin:23px 0;padding:0}
.rm-form-section legend small {display:inline-block;margin-left:7px;color:var(--rm-muted);font-weight:400;font-size:12px}
.rm-tag-choices {display:flex;gap:8px;flex-wrap:wrap;padding-top:10px}
.rm-tag-choices label {display:flex;cursor:pointer;gap:8px;align-items:center;padding:8px 11px;border:1px solid var(--rm-line);border-radius:7px;font-size:14px}
.rm-tag-choices label:has(input:checked) {border-color:#a3c5ad;background:var(--rm-mint)}
.rm-dialog input[type=checkbox] {margin:0;accent-color:var(--rm-green)}
.rm-supervisor {display:flex;align-items:flex-start;gap:10px;padding-top:16px;border-top:1px solid var(--rm-line)}
.rm-supervisor input {margin-top:3px!important}.rm-supervisor strong,.rm-supervisor small {display:block;line-height:1.65}
.rm-supervisor strong {font-size:14px}.rm-supervisor small {color:var(--rm-muted);font-size:12px}
.rm-dialog-footer {justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--rm-line)}
.rm-form-error:not(:empty) {font-size:13px;line-height:1.55;color:#903c2d;background:#fbefe9;margin:5px 24px 14px;padding:10px 12px;border-radius:6px}
.rm-form-error button {margin-left:6px}
.rm-dialog.compact {margin:auto;border-radius:14px;height:auto;width:min(400px,calc(100% - 28px));max-height:90dvh}
.rm-dialog.compact .rm-dialog-body>p {margin:10px 0}
.rm-changes {list-style:none;margin:0;padding:0}
.rm-changes li {border-bottom:1px solid var(--rm-line);padding:12px 0}
.rm-changes li div {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
.rm-changes li span,.rm-changes li p {font-size:12px;line-height:1.7;color:var(--rm-muted)}
.rm-changes li p {margin:5px 0 0}
@media(max-width:820px) {
  .rm-page {gap:13px}.rm-context,.rm-card-head,.rm-tools,.rm-brands,.rm-card-foot {padding-left:16px;padding-right:16px}
  .rm-area {padding-right:16px}.rm-fact {padding:0 16px}
  .rm-list td,.rm-list th {padding-left:7px;padding-right:7px}
  .rm-list td:first-child,.rm-list th:first-child {padding-left:16px}
  .rm-list td:last-child,.rm-list th:last-child {padding-right:16px}
}
@media(max-width:620px) {
  .rm-context {flex-wrap:wrap;gap:0;padding:12px 15px}
  .rm-map {display:none}.rm-area {width:100%;padding:0 0 8px}
  .rm-fact {padding:0 14px 0 0;border-left:0;flex-direction:row;align-items:center;gap:5px}
  .rm-fact strong {font-size:12px}.rm-fact .rm-caption {font-size:11px}
  .rm-card-head {padding-top:16px;padding-bottom:13px}
  .rm-tools {display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:10px}.rm-search {width:100%;min-width:0}.rm-kinds {width:max-content}
  .rm-kinds .rm-kind {font-size:12px;gap:4px;padding:4px 7px}
  .rm-brands {padding-top:8px;padding-bottom:10px}
  .rm-list table,.rm-list tbody {display:block}
  .rm-list thead {clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}
  .rm-list tr {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 5px;padding:12px 16px;border-top:1px solid var(--rm-line)}
  .rm-list td,.rm-list td:first-child,.rm-list td:last-child {display:block;padding:0;border:0;white-space:normal}
  .rm-list td:first-child {grid-column:1;grid-row:1}.rm-list .rm-identity {grid-column:2;grid-row:1;align-self:start;text-align:right;font-size:11px}
  .rm-list td:nth-child(3) {grid-column:1;grid-row:2;align-self:center;padding-left:46px}
  .rm-list td:last-child {grid-column:2;grid-row:2}
  .rm-row-actions {gap:4px}.rm-tags span {font-size:11px;padding:1px 6px}
  .rm-draft {padding:12px 15px;gap:6px}.rm-inline {gap:3px}
  .rm-dialog .rm-dialog-head,.rm-dialog .rm-dialog-body,.rm-dialog .rm-dialog-footer {padding-left:18px;padding-right:18px}
}
.rm-readiness {padding:10px 24px;background:#fff2d9;color:#774d13;font-size:13px;line-height:1.55}
@media(max-width:650px){.rm-readiness{padding-inline:15px}}
