/* Meredith Color Override Theme
   Overrides Quilter green palette with Meredith blue.
   Opt-in per page via @section HeadStyles { <link ... medifintech-theme.css /> } */

:root {
    --quilter-green:       #1F3965;
    --quilter-mid-green:   #1F4080;
    --quilter-light-green: #1F4080;
    --quilter-btn-green:   #1F3965;
    --quilter-indigo:      #1F3965;
    --quilter-blue:        #1F4080;
    --quilter-turquoise:   #1F4080;

    /* Semantic aliases */
    --primary:             var(--quilter-mid-green);
    --primary-dark:        var(--quilter-green);
    --primary-light:       var(--quilter-light-green);
}

.bg-primary {
    background-color: var(--quilter-blue) !important;
}

/* ===== Client portal landing page (Home) ===== */

.dashboard-card {
    border: none;
    border-top: 3px solid var(--quilter-green);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(31, 57, 101, 0.08);
}

.dashboard-card > .card-body {
    padding: 1.5rem;
}

.dashboard-section-title {
    color: var(--quilter-green);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Empty states — a quiet, centred invitation rather than an error tone. */
.dashboard-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.dashboard-empty i {
    font-size: 2.5rem;
    color: var(--quilter-green);
    opacity: 0.55;
}

.dashboard-empty-title {
    margin: 0.75rem 0 0.25rem;
    font-weight: 600;
    color: #333;
}

.dashboard-empty-text {
    margin: 0;
    font-size: 0.875rem;
}

/* ToDo rows */
.todo-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
}

.todo-item + .todo-item {
    margin-top: 0.75rem;
}

.todo-item-body {
    flex: 1 1 60%;
    min-width: 0;
}

.todo-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 0.15rem;
}

.todo-item-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.todo-item-sep {
    margin: 0 0.4rem;
    color: #ccd0d6;
}

.todo-item-action {
    white-space: nowrap;
}

/* On phones the row stacks so the action never crowds or clips the title. */
@media (max-width: 575.98px) {
    .todo-item {
        flex-direction: column;
        align-items: stretch;
    }

    .todo-item-action {
        width: 100%;
        text-align: center;
    }
}

/* Completed table — uppercase, understated column headers; Bootstrap draws the row rules. */
.dashboard-table thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #8a9099;
    border-bottom-width: 1px;
}

.status-signed {
    background-color: var(--quilter-green);
    color: #fff;
}

/* My Services sidebar */
.service-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #8a9099;
    margin: 0 0 0.6rem;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 7px;
    background-color: rgba(31, 57, 101, 0.08);
    color: var(--quilter-green);
}

.service-enrolled {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
}

.service-enrolled + .service-enrolled {
    margin-top: 0.5rem;
}

.service-enrolled-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #333;
}

.service-divider {
    margin: 1.25rem 0;
    border-top: 1px solid #e6e8ec;
    opacity: 1;
}

/* Completed services — a finished service plus, where it is allowed, an offer to repeat it. Boxed
   like .available-service because it carries the same kind of call to action, not like the flat
   .service-enrolled row, which offers nothing. */
.completed-service {
    padding: 1rem;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
}

.completed-service + .completed-service {
    margin-top: 0.75rem;
}

/* Three columns (icon, name, pill) over two rows. The icon spans both so the completion date lines
   up under the NAME rather than under the icon, and a long service name wraps in the 1fr column
   without pushing the pill off the card. */
.completed-service-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    column-gap: 0.6rem;
    row-gap: 0.15rem;
}

.completed-service-head .service-icon {
    grid-row: 1 / span 2;
    align-self: center;
}

.completed-service-name {
    min-width: 0;
    font-weight: 600;
    color: #222;
}

.completed-service-date {
    grid-column: 2 / -1;
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* The two mutually exclusive things that can follow the head carry the gap themselves, so an entry
   with neither (Blocked / Unavailable) closes up with no dangling space below the date. */
.completed-service-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #6c757d;
    margin: 0.75rem 0 0;
}

.enroll-again-form {
    margin-top: 0.75rem;
}

.available-service {
    padding: 1rem;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
}

.available-service + .available-service {
    margin-top: 0.75rem;
}

.available-service-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.available-service-name {
    font-weight: 600;
    color: #222;
}

.available-service-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 0.75rem;
}
