/* Employee page (Components/Pages/Employees/EmployeeDetail.razor) - the "Services" card.
   The employee's services are grouped by category: each category is a button (upper level) that
   toggles the list of its services (lower level). Category rows look different from service links
   (tinted pill, heading font, chevron) so they clearly read as expandable groups.
   Class names are employee-service-* (unique to this page), so no page root scoping is needed. */

.employee-service-groups {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Category row (upper level) ── */
.employee-service-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;                 /* comfortable tap target */
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-main) 25%, transparent);
    border-radius: 0.75rem;
    background-color: color-mix(in srgb, var(--color-main) 7%, transparent);
    color: var(--color-secondary-dark);
    font-family: ComfortaMedium, sans-serif;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.employee-service-category:hover {
    background-color: color-mix(in srgb, var(--color-main) 14%, transparent);
    border-color: color-mix(in srgb, var(--color-main) 45%, transparent);
}
.employee-service-category:focus-visible {
    outline: 2px solid var(--color-main);
    outline-offset: 2px;
}
.employee-service-category.is-open {
    color: var(--color-main-dark);
    border-color: color-mix(in srgb, var(--color-main) 45%, transparent);
}

.employee-service-category-name { flex: 1 1 auto; min-width: 0; }

.employee-service-category-chevron {
    flex: 0 0 auto;
    color: var(--color-main);
    transition: transform 0.25s ease;
}
.employee-service-category.is-open .employee-service-category-chevron { transform: rotate(180deg); }

/* ── Services under a category (lower level) ── */
.employee-service-sublist {
    display: flex;
    flex-direction: column;
    margin: 0.4rem 0 0.4rem 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--color-main);
}
.employee-service-link {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.97rem;
    transition: background-color 0.2s;
}
.employee-service-link:hover,
.employee-service-link:focus-visible {
    background-color: color-mix(in srgb, var(--color-main) 7%, transparent);
    text-decoration: none;
}
