.btn > .align-middle {
    margin-top: -4px;
}

.bg-pending {
    background-color: #8B5CF6 !important;
}

.calendar_default_event_inner {
    font-size: 10px;
}

/* asp-validation-summary renders even with no errors; hide the empty alert box. */
.validation-summary-valid {
    display: none;
}

/* Missed required fields (wwwroot/js/required-fields.js). */
.required-marker {
    color: #dc3545;
    font-weight: 600;
}

/* ── Phones ───────────────────────────────────────────────────────────
   Wide tables scroll sideways inside their card instead of stretching the page. The box around the table
   scrolls (not the table itself), so narrow tables still stretch to the full width. */
@media (max-width: 767.98px) {
    :has(> .table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Less padding around the page and cards, so content gets the width. */
    .content {
        padding: 1rem 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ── Client card and forms (Client/Read, Referral) ───────────────────── */
.profile-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    background: #e7f0fc;
    color: #3b7ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.profile-contact a,
.profile-contact span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #495057;
    text-decoration: none;
}

.profile-contact a:hover {
    color: #3b7ddd;
}

.profile-contact svg {
    width: 16px;
    height: 16px;
    color: #6c757d;
}

.code-chip {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .05em;
    background: #f1f3f5;
    color: #495057;
    border-radius: .25rem;
    padding: .15rem .45rem;
    font-size: .8rem;
}

.section-card .card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border-bottom: 1px solid #edf0f2;
}

.section-card .card-header .card-title {
    font-size: .95rem;
    font-weight: 600;
    color: #343a40;
}

.section-card .card-header > svg {
    width: 18px;
    height: 18px;
    color: #3b7ddd;
    flex: 0 0 18px;
}

/* Read-only label / value pairs. */
.info-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
    margin: 0;
}

.info-list.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-list dt {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a939c;
    margin-bottom: .1rem;
}

.info-list dd {
    margin: 0;
    color: #212529;
    overflow-wrap: anywhere;
}

.info-list .empty {
    color: #adb5bd;
}

.stat-tile {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: .5rem;
    padding: .9rem 1rem;
    height: 100%;
}

.stat-tile .stat-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a939c;
}

.stat-tile .stat-value {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
}

.stat-tile .stat-value small {
    font-size: .85rem;
    font-weight: 400;
    color: #6c757d;
}

/* Yes / No ticks. */
.check-item {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.check-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.check-item.yes svg { color: #1cbb8c; }
.check-item.no { color: #8a939c; }
.check-item.no svg { color: #ced4da; }

.note-block + .note-block {
    border-top: 1px solid #edf0f2;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Form pages: the submit button at the end of the form, set apart from the last section. */
.form-actions-bar {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .info-list.cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "Estimated" beside a client's hours when they gave a rough figure (Client Read / MentorRead). */
.hours-estimated {
    color: var(--bs-danger, #dc3545);
    font-size: .8rem;
    font-weight: 600;
    margin-left: .35rem;
    vertical-align: middle;
}
