/* Client Documents tab, Compliance Centre layout: progress, tip, cards per person, additional documents. */

.axis-cc {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 24px;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-large, 6px);
    background: var(--crm-surface, #fff);
}

.axis-cc-notice {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--crm-success, #12805c) 30%, transparent);
    border-radius: var(--crm-radius-medium, 6px);
    background: color-mix(in srgb, var(--crm-success, #12805c) 7%, #fff);
    color: var(--crm-success, #12805c);
    font-size: 13px;
}

.axis-cc-notice.is-error {
    border-color: color-mix(in srgb, var(--crm-danger, #b42318) 30%, transparent);
    background: color-mix(in srgb, var(--crm-danger, #b42318) 6%, #fff);
    color: var(--crm-danger, #b42318);
}

.axis-cc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--crm-border, #e3e8eb);
}

.axis-cc-header h3 {
    margin: 0;
    color: var(--crm-text, #101d26);
    font-size: 18px;
    font-weight: 600;
}

.axis-cc-header p,
.axis-cc-additional-header p {
    margin: 4px 0 0;
    color: var(--crm-text-muted, #526673);
    font-size: 13px;
}

.axis-cc-header-actions,
.axis-cc-additional-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Document progress */

.axis-cc-progress {
    padding: 16px 18px;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-medium, 6px);
    background: var(--crm-surface-soft, #fafbfc);
}

.axis-cc-progress-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.axis-cc-progress-top strong {
    display: block;
    color: var(--crm-text, #101d26);
    font-size: 15px;
    font-weight: 700;
}

.axis-cc-progress-top span {
    color: var(--crm-text-muted, #526673);
    font-size: 13px;
}

.axis-cc-progress-top b {
    color: var(--crm-button, var(--crm-primary, #1f6f5c));
    font-size: 20px;
    font-weight: 700;
}

.axis-cc-bar {
    display: flex;
    gap: 3px;
}

.axis-cc-bar span {
    flex: 1 1 0;
    min-width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--crm-border, #e3e8eb);
}

.axis-cc-bar .is-accepted { background: var(--crm-success, #12805c); }
.axis-cc-bar .is-to_check { background: var(--crm-info, #175cd3); }
.axis-cc-bar .is-waiting { background: color-mix(in srgb, var(--crm-warning, #b54708) 55%, #fff); }
.axis-cc-bar .is-needed { background: color-mix(in srgb, var(--crm-warning, #b54708) 25%, #fff); }
.axis-cc-bar .is-overdue,
.axis-cc-bar .is-sent_back { background: var(--crm-danger, #b42318); }

.axis-cc-key {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
}

.axis-cc-key li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-end: 6px;
    border-radius: 3px;
    background: var(--crm-border, #e3e8eb);
    vertical-align: -1px;
}

.axis-cc-key .is-accepted::before { background: var(--crm-success, #12805c); }
.axis-cc-key .is-to_check::before { background: var(--crm-info, #175cd3); }
.axis-cc-key .is-waiting::before { background: color-mix(in srgb, var(--crm-warning, #b54708) 55%, #fff); }
.axis-cc-key .is-needed::before { background: color-mix(in srgb, var(--crm-warning, #b54708) 25%, #fff); }
.axis-cc-key .is-overdue::before,
.axis-cc-key .is-sent_back::before { background: var(--crm-danger, #b42318); }

.axis-cc-tip {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #cceaea;
    border-radius: var(--crm-radius-medium, 6px);
    background: #f0fafa;
    color: #36545b;
    font-size: 13px;
}

.axis-cc-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--crm-radius-medium, 6px);
    background: var(--crm-surface-soft, #fafbfc);
    color: var(--crm-text-muted, #526673);
    font-size: 13px;
}

.axis-cc-empty strong { color: var(--crm-text, #101d26); }

/* One group per person */

.axis-cc-group-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.axis-cc-group-title h4,
.axis-cc-additional-header h4 {
    margin: 0;
    color: var(--crm-text, #101d26);
    font-size: 16px;
    font-weight: 600;
}

.axis-cc-group-title > span:last-child {
    color: var(--crm-text-soft, #8496a2);
    font-size: 12px;
}

.axis-cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.axis-cc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-small, 4px);
    background: var(--crm-surface, #fff);
}

.axis-cc-card.is-received { border-color: color-mix(in srgb, var(--crm-info, #175cd3) 35%, var(--crm-border, #e3e8eb)); }

.axis-cc-name {
    margin-bottom: 5px;
    color: var(--crm-text, #101d26);
    font-size: 14px;
    font-weight: 700;
}

.axis-cc-status {
    font-size: 12px;
    font-weight: 700;
}

.axis-cc-status::before {
    content: "●";
    margin-inline-end: 5px;
}

.axis-cc-status.is-missing,
.axis-cc-status.is-needed { color: var(--crm-warning, #b54708); }
.axis-cc-status.is-overdue,
.axis-cc-status.is-sent_back { color: var(--crm-danger, #b42318); }
.axis-cc-status.is-received { color: var(--crm-info, #175cd3); }
.axis-cc-status.is-accepted { color: var(--crm-success, #12805c); }
.axis-cc-status.is-saved { color: var(--crm-text-muted, #526673); }

.axis-cc-help {
    margin-top: 6px;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    line-height: 1.45;
}

.axis-cc-meta {
    margin-top: 6px;
    color: var(--crm-text-soft, #8496a2);
    font-size: 11.5px;
    line-height: 1.5;
}

.axis-cc-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.axis-cc-actions form { display: contents; }

.axis-cc-actions .fi-btn { width: 100%; justify-content: center; }

.axis-cc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--crm-radius-medium, 6px);
    background: var(--crm-surface, #fff);
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.axis-cc-btn:hover { background: var(--crm-canvas, #f5f7f8); }

.axis-cc-btn.is-primary {
    border-color: var(--crm-button, var(--crm-primary, #1f6f5c));
    background: var(--crm-button, var(--crm-primary, #1f6f5c));
    color: #fff;
}

.axis-cc-btn.is-primary:hover { background: color-mix(in srgb, var(--crm-button, #1f6f5c) 88%, #000); }

.axis-cc-additional-actions .axis-cc-btn { width: auto; padding-inline: 14px; }

.axis-cc-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--crm-border, #e3e8eb);
    font-size: 12px;
}

.axis-cc-links a,
.axis-cc-links button,
.axis-cc-text-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.axis-cc-links a:hover,
.axis-cc-links button:hover,
.axis-cc-text-link:hover { color: var(--crm-text, #101d26); text-decoration: underline; }

.axis-cc-links .is-danger { color: var(--crm-danger, #b42318); }
.axis-cc-links form { display: inline; }

.axis-cc-inline-form {
    display: grid;
    gap: 8px;
}

.axis-cc-inline-form label {
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    font-weight: 600;
}

.axis-cc-inline-form textarea,
.axis-cc-inline-form select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-small, 4px);
    font: inherit;
    font-size: 13px;
}

/* Additional documents */

.axis-cc-additional {
    padding-top: 20px;
    border-top: 1px solid var(--crm-border, #e3e8eb);
}

.axis-cc-additional-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .axis-cc { padding: 16px; }
}

/* Versions and access log side panel (opened from a document card). */
.axis-cc-history {
    display: grid;
    gap: 24px;
    color: var(--crm-text, #101d26);
    font-size: 13px;
}

.axis-cc-history section {
    display: grid;
    gap: 10px;
}

.axis-cc-history h4 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.axis-cc-history h4 span,
.axis-cc-history-intro,
.axis-cc-history-empty,
.axis-cc-history-more,
.axis-cc-history-list small {
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    font-weight: 500;
}

.axis-cc-history-intro,
.axis-cc-history-empty,
.axis-cc-history-more { margin: 0; }

.axis-cc-history-list {
    display: grid;
    margin: 0;
    padding: 0;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-medium, 6px);
    list-style: none;
}

.axis-cc-history-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--crm-border, #e3e8eb);
}

.axis-cc-history-list li:first-child { border-top: 0; }

.axis-cc-history-list li > div {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
}

.axis-cc-history-list small {
    flex-basis: 100%;
}

.axis-cc-history-list .crm-initials {
    flex: none;
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.axis-cc-history-current {
    color: var(--crm-success, #12805c);
    font-size: 12px;
    font-weight: 600;
}

.axis-cc-history-list li.is-current {
    background: color-mix(in srgb, var(--crm-success, #12805c) 5%, var(--crm-surface, #fff));
}

.axis-cc-history-links {
    display: flex;
    flex: none;
    gap: 12px;
}

.axis-cc-history-links a {
    color: var(--crm-button, var(--crm-primary, #1f6f5c));
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.axis-cc-history-links a:hover { text-decoration: underline; }

.axis-cc-history-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.axis-cc-history-action::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.axis-cc-history-action.is-viewed { color: var(--crm-success, #12805c); }
.axis-cc-history-action.is-downloaded { color: var(--crm-warning, #b54708); }

/* Passport check: the latest result on a passport card and the result pop-up. */
.axis-cc-passport {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.axis-cc-passport::before {
    content: "●";
    margin-inline-end: 5px;
}

.axis-cc-passport.is-matches { color: var(--crm-success, #12805c); }
.axis-cc-passport.is-mismatch { color: var(--crm-danger, #b42318); }
.axis-cc-passport.is-unreadable,
.axis-cc-passport.is-soon { color: var(--crm-warning, #b54708); }
.axis-cc-passport.is-nothing_to_compare { color: var(--crm-info, #175cd3); }

.axis-cc-passport-label { font-weight: 700; }

.axis-cc-passport-meta {
    margin-top: 2px;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
}

.axis-cc-passport-check > p.axis-cc-passport {
    margin: 0;
    font-size: 13px;
}

.axis-cc-passport-table {
    width: 100%;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-medium, 6px);
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.axis-cc-passport-table th,
.axis-cc-passport-table td {
    padding: 8px 10px;
    border-top: 1px solid var(--crm-border, #e3e8eb);
    text-align: start;
    vertical-align: top;
}

.axis-cc-passport-table thead th {
    border-top: 0;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    font-weight: 600;
}

.axis-cc-passport-table tbody th { font-weight: 600; }

.axis-cc-passport-state { font-weight: 700; white-space: nowrap; }
.axis-cc-passport-state::before { content: "●"; margin-inline-end: 4px; }
.axis-cc-passport-state.is-match { color: var(--crm-success, #12805c); }
.axis-cc-passport-state.is-mismatch { color: var(--crm-danger, #b42318); }
.axis-cc-passport-state.is-not_recorded { color: var(--crm-text-muted, #526673); }

.axis-cc-passport-check .axis-cc-history-intro { display: grid; gap: 6px; }
.axis-cc-passport-check .axis-cc-history-intro p { margin: 0; }

/* Owner's reference layout (the original Compliance Centre, 14/11/2026): small section
   labels, headings in the brand colour, two cards per row, Additional documents
   buttons stacked on the right. */

.axis-cc-header h3,
.axis-cc-section-title,
.axis-cc-additional-header h4 {
    color: var(--crm-button, var(--crm-primary, #1f6f5c));
}

.axis-cc-section-label {
    margin: 0 0 -12px;
    color: var(--crm-text, #101d26);
    font-size: 14px;
    font-weight: 600;
}

.axis-cc-section-title {
    margin: 4px 0 -8px;
    font-size: 17px;
    font-weight: 600;
}

/* The beta page (owner's reference, 14/11/2026): the Compliance Centre is the right
   half of the client page, beside the client's details, two cards per row. */
.axis-cc .axis-cc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.axis-cc-additional-header .axis-cc-additional-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
}

.axis-cc-additional-header .axis-cc-additional-actions .axis-cc-btn {
    width: 100%;
}

.axis-cc-additional-header .axis-cc-additional-actions .axis-cc-text-link {
    text-align: end;
}

@media (max-width: 760px) {
    .axis-cc .axis-cc-grid { grid-template-columns: minmax(0, 1fr); }
    .axis-cc-additional-header .axis-cc-additional-actions { min-width: 0; width: 100%; }
}

/* Calmer cards (owner 14/11/2026: "a better look, but not clunky"): one clear action,
   or two side by side when a document needs checking; everything else under More. */

.axis-cc .axis-cc-actions.is-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.axis-cc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--crm-border, #e3e8eb);
    font-size: 12px;
}

.axis-cc-foot .fi-link { font-size: 12px; }

.axis-cc-more {
    position: relative;
    margin-inline-start: auto;
}

.axis-cc-more-toggle {
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: var(--crm-radius-small, 4px);
    background: none;
    color: var(--crm-text-muted, #526673);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.axis-cc-more-toggle:hover,
.axis-cc-more-toggle[aria-expanded="true"] {
    border-color: var(--crm-border, #e3e8eb);
    background: var(--crm-surface-soft, #fafbfc);
    color: var(--crm-text, #101d26);
}

.axis-cc-more-menu {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 6px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--crm-border, #e3e8eb);
    border-radius: var(--crm-radius-medium, 6px);
    background: var(--crm-surface, #fff);
    box-shadow: 0 8px 24px rgb(16 29 38 / 12%);
}

.axis-cc-more-menu form { display: contents; }

.axis-cc .axis-cc-more-menu > a,
.axis-cc .axis-cc-more-menu > button,
.axis-cc .axis-cc-more-menu form > button,
.axis-cc .axis-cc-more-menu .fi-btn,
.axis-cc .axis-cc-more-menu .fi-link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--crm-radius-small, 4px);
    background: none;
    box-shadow: none;
    color: var(--crm-text, #101d26);
    font-size: 12.5px;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.axis-cc .axis-cc-more-menu > a:hover,
.axis-cc .axis-cc-more-menu > button:hover,
.axis-cc .axis-cc-more-menu form > button:hover,
.axis-cc .axis-cc-more-menu .fi-btn:hover,
.axis-cc .axis-cc-more-menu .fi-link:hover {
    background: var(--crm-canvas, #f5f7f8);
}

.axis-cc .axis-cc-more-menu .is-danger { color: var(--crm-danger, #b42318); }

.axis-cc [x-cloak] { display: none; }

/* Notes under a client tab's heading (Portal access, Messages): normal reading size, one per line. */
.crm-table-note { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--crm-text-muted, #55677a); }
.crm-table-note + .crm-table-note { margin-top: 4px; }
.crm-table-note a { color: var(--crm-button, #1e7a3c); font-weight: 600; }
.crm-table-note.warning { color: #a15c07; font-weight: 600; }

/* Passports from the portal (P5b): what the client typed beside what the scan check found. */
.crm-compare { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 0.875rem; }
.crm-compare th, .crm-compare td { padding: 8px 6px; border-bottom: 1px solid var(--crm-border, #e5eae7); text-align: start; vertical-align: top; }
.crm-compare thead th { color: var(--crm-text-muted, #55677a); font-weight: 600; }
.crm-compare tbody th { font-weight: 600; white-space: nowrap; }
.crm-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.crm-check::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.crm-check.match { color: #1e7a3c; }
.crm-check.mismatch { color: #b42318; }
.crm-check.unknown { color: var(--crm-text-muted, #55677a); }

/* A person's passport details on their Compliance Centre card (18/11/2026). */
.axis-cc-passport-details { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font-size: 0.875rem; color: var(--crm-text-muted, #55677a); }
.axis-cc-passport-details::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.axis-cc-passport-details.is-confirmed,
.axis-cc-passport-details.is-accepted,
.axis-cc-passport-details.is-recorded { color: var(--crm-success, #12805c); }
.axis-cc-passport-details.is-review { color: var(--crm-warning, #b54708); font-weight: 600; }
.axis-cc-passport-details.is-checking { color: var(--crm-info, #175cd3); }
.axis-cc-passport-details a { color: var(--crm-button, #1e7a3c); font-weight: 600; }
.axis-cc-person-empty { margin: 0; font-size: 0.875rem; color: var(--crm-text-muted, #55677a); }
.axis-cc-passport-review { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; padding: 10px 12px; border: 1px solid var(--crm-border, #e5eae7); border-radius: var(--crm-radius-control, 10px); font-size: 0.875rem; }
.axis-cc-passport-review > span { flex: 1; min-width: 220px; color: var(--crm-warning, #b54708); }

/* People overview (18/11/2026): one row per person, those needing someone first. */
.axis-cc-people { margin: 0 0 18px; padding: var(--crm-card-pad, 16px); border: 1px solid var(--crm-border, #e5eae7); border-radius: var(--crm-radius-card, 14px); background: var(--crm-surface, #fff); overflow-x: auto; }
.axis-cc-people h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.axis-cc-people-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.axis-cc-people-table th, .axis-cc-people-table td { padding: 8px 6px; border-top: 1px solid var(--crm-border, #e5eae7); text-align: start; vertical-align: middle; }
/* The Compliance Centre sits in a narrow column beside the form: cells wrap instead of scrolling sideways. */
.axis-cc-people { overflow-x: visible; }
.axis-cc-mark { white-space: nowrap; }
.axis-cc-people-table thead th { border-top: 0; color: var(--crm-text-soft, #8496a2); font-size: 12px; font-weight: 600; }
.axis-cc-people-table tbody th { font-weight: 600; }
.axis-cc-people-table tbody th a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.axis-cc-people-table tbody th a:hover bdi { color: var(--crm-button, #1e7a3c); text-decoration: underline; }
.axis-cc-people-count { color: var(--crm-text-muted, #55677a); }
.axis-cc-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--crm-text-soft, #8496a2); }
.axis-cc-mark::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.axis-cc-mark.is-to_check, .axis-cc-mark.is-review { color: var(--crm-warning, #b54708); }
.axis-cc-mark.is-sent_back { color: var(--crm-danger, #b42318); }
.axis-cc-mark.is-checking { color: var(--crm-info, #175cd3); }
.axis-cc-mark.is-accepted, .axis-cc-mark.is-confirmed, .axis-cc-mark.is-recorded, .axis-cc-mark.is-on_file { color: var(--crm-success, #12805c); }

/* A person's card folds when nothing is waiting; the summary is the card's own heading. */
details.axis-cc-person > summary { list-style: none; cursor: pointer; }
details.axis-cc-person > summary::-webkit-details-marker { display: none; }
details.axis-cc-person > summary::after { content: "▾"; margin-inline-start: auto; color: var(--crm-text-soft, #8496a2); }
details.axis-cc-person:not([open]) > summary { margin-bottom: 0; }
details.axis-cc-person:not([open]) > summary::after { content: "▸"; }
[dir=rtl] details.axis-cc-person:not([open]) > summary::after { content: "◂"; }
/* Room above a card the overview scrolls to, so the top bar doesn't cover its name. */
details.axis-cc-person { scroll-margin-top: 90px; }

/* People overview on a phone or a narrow column (owner, 19/11/2026: it was cut off): each person is a small
   block, name first, then each status with its label, wrapping instead of scrolling. */
.axis-cc-people { container-type: inline-size; }
@container (max-width: 560px) {
    .axis-cc-people-table thead { display: none; }
    .axis-cc-people-table, .axis-cc-people-table tbody, .axis-cc-people-table tr { display: block; width: 100%; }
    .axis-cc-people-table tr { padding: 10px 0; border-top: 1px solid var(--crm-border, #e5eae7); }
    .axis-cc-people-table tr:first-child { border-top: 0; }
    .axis-cc-people-table th, .axis-cc-people-table td { display: block; padding: 3px 0; border-top: 0; }
    .axis-cc-people-table tbody th { padding-bottom: 6px; }
    .axis-cc-people-table td { display: flex; justify-content: space-between; gap: 12px; padding-inline-start: 40px; }
    .axis-cc-people-table td::before { content: attr(data-label); color: var(--crm-text-muted, #55677a); font-weight: 500; }
}
