/* Organization switcher (header) and organization admin page */

.org-switcher { position: relative; margin-left: 8px; }

.org-switcher-button {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--o365-neutral-light, #e1dfdd);
  border-radius: 4px; background: var(--o365-white, #fff);
  color: var(--o365-neutral-primary, #323130);
  cursor: pointer; font-size: 13px; max-width: 360px;
}
.org-switcher-button:hover { background: var(--o365-neutral-lighter, #f3f2f1); }
.org-switcher-button.single { cursor: default; }
.org-switcher-button:disabled { opacity: .6; }
.org-switcher-current { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; min-width: 0; }
.org-switcher-current-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.org-switcher-current-path { font-size: 11px; color: var(--o365-neutral-secondary, #605e5c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.org-switcher-type { display: inline-flex; color: var(--o365-neutral-secondary, #605e5c); }

.org-switcher-panel {
  position: absolute; top: 38px; left: 0; z-index: 1200;
  width: 380px; max-height: 70vh; display: flex; flex-direction: column;
  background: var(--o365-white, #fff); border-radius: 4px;
  box-shadow: var(--o365-shadow-16, 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.1));
  border: 1px solid var(--o365-neutral-light, #e1dfdd);
}
.org-switcher-header { padding: 10px 12px 6px; }
.org-switcher-title { font-weight: 600; font-size: 13px; }
.org-switcher-subtitle { font-size: 11px; color: var(--o365-neutral-secondary, #605e5c); }
.org-switcher-search { display: flex; align-items: center; gap: 6px; margin: 0 12px 6px; padding: 0 8px; border: 1px solid var(--o365-neutral-light, #e1dfdd); border-radius: 4px; }
.org-switcher-search input { flex: 1; border: 0; outline: 0; height: 30px; font-size: 13px; background: transparent; }
.org-switcher-list { overflow: auto; padding: 4px 0; }
.org-switcher-row { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; cursor: pointer; font-size: 13px; }
.org-switcher-row:hover { background: var(--o365-neutral-lighter, #f3f2f1); }
.org-switcher-row.active { background: var(--o365-primary-lighter, #eff6fc); font-weight: 600; }
.org-switcher-row.closed { opacity: .55; }
.org-switcher-toggle { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: var(--o365-neutral-secondary, #605e5c); padding: 0; }
.org-switcher-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-switcher-code { font-size: 11px; color: var(--o365-neutral-secondary, #605e5c); font-family: ui-monospace, Consolas, monospace; }
.org-switcher-check { color: var(--o365-primary, #0078d4); }
.org-switcher-empty { padding: 12px; font-size: 13px; color: var(--o365-neutral-secondary, #605e5c); }
.org-switcher-footer { padding: 8px 12px; font-size: 11px; color: var(--o365-neutral-secondary, #605e5c); border-top: 1px solid var(--o365-neutral-light, #e1dfdd); }

/* Organizations admin page */
.orgs-tree-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.orgs-tree-row:hover { background: #f3f2f1; }
.orgs-tree-row.selected { background: #eff6fc; font-weight: 600; }
.orgs-tree-row .badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: #edebe9; color: #323130; text-transform: uppercase; letter-spacing: .03em; }
.orgs-tree-row .badge.COMPANY { background: #dff6dd; color: #107c10; }
.orgs-tree-row .badge.GROUP { background: #e5e0f5; color: #5c2d91; }
.orgs-tree-row .badge.UNIT { background: #deecf9; color: #005a9e; }
.orgs-tree-row .badge.CLOSED { background: #fde7e9; color: #a4262c; }
