/* Task metric slots, opt-in empty state, and add-metric button/menu */

/* ── Task section opt-in body ── */
.task-opt-in-empty {
    padding: 20px 12px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── Task metric slots ── */
.task-metric-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-metric-slot {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-metric-slot-head {
    display: flex;
    justify-content: flex-end;
    height: 20px;
}

.task-metric-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 120ms ease, color 120ms ease;
}

.task-metric-remove:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* ── Add metric button and dropdown menu ── */
.add-metric-anchor {
    position: relative;
    align-self: flex-start;
}

.add-metric-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    font-family: var(--font-sans, Inter, sans-serif);
    cursor: pointer;
    transition: border-color 120ms ease, color 120ms ease;
}

.add-metric-btn:hover {
    border-color: #1a4fcf;
    color: #1a4fcf;
}

.add-metric-btn-plus {
    color: #1a4fcf;
    font-size: 15px;
    font-weight: 400;
    margin-right: 6px;
    line-height: 1;
}

.add-metric-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(15, 23, 42, .08));
    z-index: 30;
    overflow: hidden;
}

.add-metric-menu-head {
    font-size: 11px;
    color: #94a3b8;
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.add-metric-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    color: #0f172a;
    font-family: var(--font-sans, Inter, sans-serif);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 100ms ease;
}

.add-metric-menu-item:hover {
    background: #f8fafc;
}

.add-metric-menu-item-type {
    font-size: 10px;
    color: #94a3b8;
    font-family: ui-monospace, monospace;
    margin-left: 10px;
    flex-shrink: 0;
}
