/* The band under the note tabs says who will read what is typed; the deck draws it as a mode band. */
#akashic-health-records-patient-portal-root .ahr-note-band {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px;
    font-size: var(--ak-font-11-5);
    font-weight: var(--ak-label-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#akashic-health-records-patient-portal-root .ahr-note-band--public {
    background: var(--blue-soft);
    color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .ahr-note-band--private {
    background: var(--amber-soft);
    color: var(--amber-ink);
}

/* At phone width the deck gives the visit a 44px queue rail and an 8px gap. */
@container akclinday (max-width: 480px) {
    #akashic-health-records-patient-portal-root .ak-clinday__columns.ak-clinday__columns--railed {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }
}

/* The note tabs are one bordered track with the chosen tab filled, as the deck draws them. */
#akashic-health-records-patient-portal-root .ahr-note-tabs.btn-segmented {
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

#akashic-health-records-patient-portal-root .ahr-note-tabs.btn-segmented > .btn {
    height: auto;
    min-height: 0;
    margin: 0;
    gap: 6px;
    padding: 6px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-strong);
    line-height: 1.55;
    letter-spacing: normal;
}

#akashic-health-records-patient-portal-root .ahr-note-tabs.btn-segmented > .btn[aria-pressed="true"] {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* The small tabs are the phone binding; this keeps all three on one row wherever the note is open. */
#akashic-health-records-patient-portal-root .ahr-note-tabs.btn-segmented > .btn.btn-blue-ghost-sm {
    padding: 7px;
    font-size: 12px;
}
