/* Reports > Tasks per customer: the clickable numbers, the share bars and the list of tasks below. */
.report-kpi.overdue strong {
    color: #f8285a;
}

.report-number {
    min-width: 2.2rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: none;
    color: #1b84ff;
    font-weight: 600;
    cursor: pointer;
}

.report-number:hover:not(:disabled) {
    border-color: #1b84ff;
}

.report-number.overdue {
    color: #f8285a;
}

.report-number.overdue:hover:not(:disabled) {
    border-color: #f8285a;
}

.report-number.active {
    background: #1b84ff;
    border-color: #1b84ff;
    color: #fff;
}

.report-number.overdue.active {
    background: #f8285a;
    border-color: #f8285a;
}

.report-number:disabled {
    color: var(--muted-foreground);
    font-weight: 400;
    cursor: default;
}

.report-share {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: color-mix(in srgb, #1b84ff 12%, transparent);
    overflow: hidden;
}

.report-share > span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #1b84ff;
}

.report-share.overdue {
    background: color-mix(in srgb, #f8285a 12%, transparent);
}

.report-share.overdue > span {
    background: #f8285a;
}

.report-selected {
    font-weight: 600;
    color: #1b84ff;
}

/* Two grids on one page: each gets its own height instead of "the rest of the page" (grid.css .grid-fit). */
.report-tasks-customers .grid-fit {
    flex: none;
    height: 380px;
}

.report-tasks-list .grid-fit {
    flex: none;
    height: 440px;
}

.report-tasks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
}

.report-tasks-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.report-tasks-head .task-quick {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.report-overdue {
    color: #f8285a;
    font-weight: 600;
}

/* A customer's Tasks and Automatic tabs. */
.customer-tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.customer-tab-grid .grid-fit {
    flex: none;
    height: 480px;
}

/* Related tasks on the task page. */
.task-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.task-links-empty {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.task-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    font-size: 0.82rem;
}

.task-link.closed .task-link-title {
    text-decoration: line-through;
    color: var(--muted-foreground);
}

.task-link-relation {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7239ea;
    background: color-mix(in srgb, #7239ea 10%, transparent);
    border-radius: 1rem;
    padding: 0.05rem 0.5rem;
}

.task-link-title {
    flex: 1;
    min-width: 0;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-link-title:hover {
    color: #1b84ff;
}

.task-link-due {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.task-link-due.overdue {
    color: #f8285a;
    font-weight: 600;
}

.task-link-add {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.task-link-type {
    width: 150px;
}

.task-link-pick {
    flex: 1;
    min-width: 220px;
}

.task-link-new {
    align-self: flex-start;
    border: none;
    background: none;
    color: #1b84ff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.2rem 0;
}

/* The task page's Repeat button while the task repeats. */
.task-repeat-on {
    color: #7239ea;
    border-color: color-mix(in srgb, #7239ea 40%, transparent);
}
