/* Cross-cutting styles that Tailwind utilities don't cover cleanly (copied from reruptioncrm). */

/* Visible keyboard focus */
:focus-visible {
    outline: 2px solid #00aaff;
    outline-offset: 1px;
}

/* Slim scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Vertical timeline — line runs through the center of each icon */
.timeline {
    --timeline-axis: 0.5625rem; /* horizontal center of icon column (9px) */
    position: relative;
    margin: 0;
    padding: 0 0 0 1.75rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: var(--timeline-axis);
    top: 0.5625rem;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: #e2e8f0;
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Icon sits on the axis; white backing masks the line behind the glyph */
.timeline-dot {
    position: absolute;
    left: calc(-1.75rem + var(--timeline-axis));
    top: 0.0625rem;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0.125rem 0.0625rem;
}

.timeline-dot svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Timeline colors per outreach item kind */
.timeline-dot--out_email { color: #059669; }
.timeline-dot--out_linkedin { color: #0a66c2; }
.timeline-dot--in { color: #ff00a0; }
.timeline-dot--event { color: #64748b; }
.timeline-dot--bounce { color: #ef4444; }

/* Ellipsis for long single-line cell text */
.cell-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Native <details> rows on the senders page: hide default marker, rotate chevron when open */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .js-chevron { transform: rotate(90deg); }

/* KPI tile confidence bar: light track with the CI range and a marker for the point estimate */
.ci-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: #f1f5f9;
}
.ci-range {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 3px;
    background: #fbcfe8;
}
.ci-point {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 10px;
    border-radius: 1px;
    background: #ff00a0;
    transform: translateX(-50%);
}
