/* admin-orgs.css — Admin › Organizations workspace (release 2026-09-27) */
.ao-page { --ink: #15201A; --muted: #56655D; --line: #DCE3DF; --soft: #F3F5F4; --green: #007A3D; --green-d: #005C2E; --green-s: #E6F2EC; color: var(--ink); font-size: 14px; }
.ao-page * { box-sizing: border-box; }
#page-organizations.ao-page { padding: 8px 4px 32px !important; }
#page-org-detail.ao-ws-page { position: static !important; padding: 0 !important; overflow: visible !important; z-index: auto !important; }
.ao-head, .ao-ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ao-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ao-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.ao-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ao-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ao-btn:hover { background: var(--soft); }
.ao-btn:disabled { opacity: .55; cursor: not-allowed; }
.ao-btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.ao-btn-primary:hover { background: var(--green-d); }
.ao-btn-danger-solid { background: #B42318; border-color: #B42318; color: #fff; }
.ao-btn-danger-solid:hover { background: #912018; }
.ao-link { border: 0; background: transparent; padding: 0; color: var(--green-d); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ao-link:hover { text-decoration: underline; }
.ao-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.ao-icon:hover { background: var(--soft); color: var(--green-d); }
.ao-icon.ao-danger:hover, .ao-menu .ao-danger:hover { color: #B42318; background: #FDECEA; }
.ao-menu { font-size: 13px; border-radius: 10px; border-color: var(--line); box-shadow: 0 10px 30px rgba(21,32,26,.14); padding: 6px; }
.ao-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 6px; padding: 7px 10px; }
.ao-menu .ao-danger { color: #B42318; }
.ao-grow { flex: 1; }
.ao-muted { color: var(--muted); font-size: 12px; }
.ao-warn { color: #9A4A07; font-weight: 600; font-style: normal; }
.ao-error { padding: 16px; color: #B42318; }
.ao-loading, .ao-ws-loading { padding: 24px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ao-empty { padding: 28px !important; text-align: center; color: var(--muted); }
.ao-empty-s { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.ao-p { margin: 0; line-height: 1.5; }
.ao-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.ao-block { display: block; color: var(--muted); }
.ao-dim td { opacity: .55; }

.ao-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ao-sec .ao-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ao-kpis.ao-kpis-4, .ao-sec .ao-kpis.ao-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1400px) { .ao-kpis, .ao-sec .ao-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ao-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: left; color: inherit; font: inherit; min-width: 0; }
button.ao-kpi { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
button.ao-kpi:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(21,32,26,.08); }
.ao-kpi.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #FAFDFB; }
.ao-kpi span { font-size: 12px; font-weight: 500; color: var(--muted); }
.ao-kpi b { font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ao-kpi i { font-style: normal; font-size: 12px; color: var(--muted); }
.ao-kpi-bad { border-color: #F4C7C3; background: #FFF8F7; } .ao-kpi-bad b { color: #B42318; }

.ao-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; min-width: 0; }
.ao-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ao-card-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ao-card-h p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.ao-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ao-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); margin: 0; min-width: 280px; }
.ao-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,122,61,.12); }
.ao-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; }
.ao-seg { display: inline-flex; flex-wrap: wrap; background: #EEF2EF; border-radius: 8px; padding: 3px; gap: 2px; }
.ao-seg button { height: 30px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ao-seg button b { font-weight: 600; color: var(--muted); margin-left: 3px; }
.ao-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(21,32,26,.15); font-weight: 600; }
.ao-seg-s button { height: 28px; font-size: 12px; }
.ao-select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; }

.ao-tw { overflow: auto; max-height: calc(100vh - 300px); border: 1px solid #EEF2EF; border-radius: 8px; }
.ao-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ao-table th { position: sticky; top: 0; z-index: 1; background: #F7F9F8; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ao-table th button { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ao-table th button:hover { color: var(--ink); }
.ao-table td { padding: 10px 12px; border-bottom: 1px solid #EEF2EF; vertical-align: middle; }
.ao-table tbody tr:last-child td { border-bottom: 0; }
.ao-table tbody tr[data-open] { cursor: pointer; }
.ao-table tbody tr:hover td { background: #FAFBFA; }
.ao-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.ao-table small { color: var(--muted); font-size: 12px; }
.ao-org { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ao-org > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ao-org b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-org small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-avatar { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--green-s); color: var(--green-d); font-size: 13px; font-weight: 700; }
.ao-avatar-s { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; background: #EEF2EF; color: var(--ink); }
.ao-rowact { display: inline-flex; gap: 2px; justify-content: flex-end; }
.ao-plan { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #EEF2EF; color: var(--ink); white-space: nowrap; }
.ao-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.ao-t-good { background: var(--green-s); color: var(--green-d); }
.ao-t-info { background: #E3EEFC; color: #184f95; }
.ao-t-warn { background: #FFF1CC; color: #6b4700; }
.ao-t-bad { background: #FDECEA; color: #B42318; }
.ao-t-muted { background: #EEEDE8; color: #56655D; }
select.ao-input.ao-t-good, select.ao-input.ao-t-info, select.ao-input.ao-t-warn, select.ao-input.ao-t-bad, select.ao-input.ao-t-muted { font-weight: 600; border-color: transparent; }
.ao-role { font-size: 12px; font-weight: 600; }
.ao-role-client_admin { color: #6b4700; }
.ao-role-manager, .ao-role-worker, .ao-role-admin { color: #184f95; }
.ao-mini { display: block; width: 90px; height: 4px; margin: 4px 0 0 auto; border-radius: 2px; background: #EEF2EF; overflow: hidden; }
.ao-mini span { display: block; height: 100%; background: var(--green); }

.ao-crumb { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.ao-crumb button { border: 0; background: transparent; padding: 0; color: var(--green-d); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ao-crumb .bi-chevron-right { font-size: 10px; }
.ao-ws { padding: 4px 4px 40px; }
.ao-ws-head { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; align-items: center; }
.ao-ws-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ao-ws-logo { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: color-mix(in srgb, var(--brand, #007A3D) 12%, #fff); color: var(--brand, #005C2E); font-size: 20px; font-weight: 700; border: 1px solid var(--line); }
.ao-ws-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ao-ws-head h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.ao-ws-head h1 small { font-size: 14px; font-weight: 500; color: var(--muted); }
.ao-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ao-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.ao-alerts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.ao-alerts:empty { display: none; }
.ao-alert { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 9px; font-size: 13px; }
.ao-alert span { flex: 1; }
.ao-alert.ao-t-bad { background: #FFF5F4; border: 1px solid #F4C7C3; color: #7A1A13; }
.ao-alert.ao-t-warn { background: #FFFBF1; border: 1px solid #F1D29A; color: #5C3D00; }
.ao-ws-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
@media (max-width: 1000px) { .ao-ws-body { grid-template-columns: 1fr; } }
.ao-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 72px; }
.ao-nav button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.ao-nav button span { flex: 1; }
.ao-nav button em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: #EEF2EF; border-radius: 9px; padding: 0 7px; }
.ao-nav button:hover { background: var(--soft); }
.ao-nav button.on { background: var(--green-s); color: var(--green-d); font-weight: 600; }
.ao-nav-foot { margin-top: 14px; padding: 10px 12px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.ao-nav-foot code { font-size: 10px; word-break: break-all; color: var(--muted); }
.ao-sec { min-width: 0; }

.ao-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ao-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 1100px) { .ao-grid2, .ao-grid3 { grid-template-columns: 1fr; } }
.ao-gap > .ao-card { margin-bottom: 0; }
.ao-gap { margin-bottom: 14px; }
.ao-mt { margin-top: 12px; }
.ao-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 4px; min-width: 0; }
.ao-field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ao-field small { font-size: 12px; color: var(--muted); }
.ao-input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 14px; color: var(--ink); background: #fff; outline: 0; width: 100%; }
textarea.ao-input { height: auto; padding: 8px 10px; resize: vertical; }
input[type=file].ao-input { padding: 6px; height: auto; }
.ao-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,122,61,.12); }
.ao-input:disabled { background: #F7F9F8; color: var(--muted); }
.ao-input-s { height: 30px; font-size: 12px; padding: 0 6px; width: auto; }
.ao-inline { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.ao-inline .ao-field { flex: 1; }
.ao-inline .ao-btn { height: 38px; }
.ao-savebar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF2EF; }
.ao-savebar .ao-muted { margin-right: auto; }
.ao-preview { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #F7F9F8; font-size: 13px; }
.ao-bar { height: 8px; border-radius: 4px; background: #EEF2EF; overflow: hidden; }
.ao-bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.ao-bar-bad span { background: #B42318; }
.ao-bar-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ao-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.ao-dl dt { color: var(--muted); font-weight: 500; }
.ao-dl dd { margin: 0; word-break: break-word; }
.ao-dl small { color: var(--muted); }
.ao-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 6px; border: 1px solid rgba(0,0,0,.1); }
.ao-feed { display: flex; flex-direction: column; }
.ao-feed-i { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #EEF2EF; font-size: 13px; }
.ao-feed-i:first-child { border-top: 0; }
.ao-feed-t { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ao-feed small { color: var(--muted); }
.ao-features { list-style: none; margin: 0; padding: 0; columns: 2; font-size: 13px; }
.ao-features li { display: flex; gap: 8px; padding: 3px 0; break-inside: avoid; }
.ao-features .bi { color: var(--green); }
.ao-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1100px) { .ao-docs { grid-template-columns: 1fr; } }
.ao-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ao-doc > .bi { font-size: 18px; color: var(--muted); }
.ao-doc b { display: block; font-size: 13px; font-weight: 600; }
.ao-doc small { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-doc.ok { border-color: #BFE0CC; background: #FAFDFB; } .ao-doc.ok > .bi { color: var(--green); }
.ao-doc.req small { color: #9A4A07; font-weight: 600; }
.ao-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ao-check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0; cursor: pointer; font-size: 13px; }
.ao-check:hover { background: #FAFBFA; }
.ao-check:has(input:checked) { border-color: #9FC7B1; background: #F6FBF8; }
.ao-check input { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.ao-check span:last-child { display: flex; flex-direction: column; }
.ao-check small { font-size: 11px; color: var(--muted); }
.ao-check .bi { color: var(--muted); }
.ao-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ao-h3 { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.ao-h3:first-child { margin-top: 0; }
.ao-modal .modal-content { border-radius: 12px; border: 0; box-shadow: 0 20px 50px rgba(21,32,26,.25); }
.ao-modal .modal-header { border-bottom: 1px solid #EEF2EF; padding: 16px 20px; }
.ao-modal .modal-title { font-size: 17px; font-weight: 600; }
.ao-modal .modal-body { padding: 18px 20px; font-size: 14px; }
.ao-modal .modal-footer { border-top: 1px solid #EEF2EF; padding: 12px 20px; gap: 8px; }
.ao-modal-err { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: #FDECEA; color: #B42318; font-size: 13px; }
select.ao-input.ao-t-good { background-color: var(--green-s); } select.ao-input.ao-t-info { background-color: #E3EEFC; }
select.ao-input.ao-t-warn { background-color: #FFF1CC; } select.ao-input.ao-t-bad { background-color: #FDECEA; } select.ao-input.ao-t-muted { background-color: #EEEDE8; }
.ao-sec .ao-kpi b { font-size: 19px; }

/* 20261111q: invitations — tick boxes and the "Resend to selected" bar */
.ao-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #f8faf9; }
.ao-bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ao-bulk .bf-grow { flex: 1 1 auto; }
.ao-inv-cb { width: 16px; height: 16px; margin-right: 8px; flex: 0 0 auto; accent-color: var(--green-d, #1f6f43); cursor: pointer; }
