/*
 * A light hand on the Filament defaults: quieter chrome, denser tables and
 * headings that read like an application instead of an admin panel.
 */

.fi-topbar nav {
    border-bottom: 1px solid rgb(15 23 42 / 0.06);
    box-shadow: none;
}

.fi-topbar .fi-logo {
    font-weight: 650;
    letter-spacing: -0.015em;
}

.fi-header-heading {
    letter-spacing: -0.015em;
}

.fi-ta-header-cell {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.fi-ta-row .fi-ta-cell {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.fi-btn {
    font-weight: 600;
}

.fi-simple-main {
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
}

.fi-sidebar-nav-groups .fi-sidebar-group-label,
.fi-topbar .fi-dropdown-header {
    letter-spacing: 0;
    text-transform: none;
}

/*
 * Styles for our own views inside the panel.
 *
 * The panel loads Filament's compiled stylesheet, which only carries the
 * utilities Filament itself uses. Tailwind classes written in a custom Blade
 * view therefore resolve to nothing, so anything we render ourselves is styled
 * here instead. Colours come from Filament's own custom properties so they
 * follow the brand colour and the dark theme without a second definition.
 */

:root {
    --outbound-surface: var(--color-white);
}

.dark {
    --outbound-surface: var(--gray-900);
}

/* The flow of a campaign as a vertical timeline: a rail with a dot per e-mail
   and the wait printed on the stretch between two of them. */

.outbound-flow {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.outbound-flow-row {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    column-gap: 0.75rem;
}

.outbound-flow-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.outbound-flow-rail::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background-color: var(--gray-200);
}

.dark .outbound-flow-rail::before {
    background-color: var(--gray-700);
}

/* The rail starts and stops at the outer dots rather than at the edge of the
   list, so it reads as a line between them instead of a stray stroke. */
.outbound-flow-row:first-child .outbound-flow-rail::before {
    top: 0.65rem;
}

.outbound-flow-row:last-child .outbound-flow-rail::before {
    bottom: calc(100% - 0.65rem);
}

.outbound-flow-dot {
    position: relative;
    margin-top: 0.3125rem;
    width: 0.6875rem;
    height: 0.6875rem;
    flex: none;
    border-radius: 9999px;
    background-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--outbound-surface);
}

.outbound-flow-dot--muted {
    background-color: var(--gray-300);
}

.dark .outbound-flow-dot--muted {
    background-color: var(--gray-600);
}

.outbound-flow-dot--end {
    background-color: transparent;
    border: 1px solid var(--gray-300);
}

.dark .outbound-flow-dot--end {
    border-color: var(--gray-600);
}

.outbound-flow-body {
    min-width: 0;
    padding-bottom: 1rem;
}

.outbound-flow-row:last-child .outbound-flow-body {
    padding-bottom: 0;
}

.outbound-flow-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.outbound-flow-day {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gray-500);
}

.dark .outbound-flow-day {
    color: var(--gray-400);
}

.outbound-flow-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-950);
}

.dark .outbound-flow-name {
    color: var(--color-white);
}

.outbound-flow-subject {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    overflow-wrap: anywhere;
}

.dark .outbound-flow-subject {
    color: var(--gray-400);
}

.outbound-flow-wait {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.dark .outbound-flow-wait {
    color: var(--gray-400);
}

.outbound-flow-empty {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.dark .outbound-flow-empty {
    color: var(--gray-400);
}

/* Everything that happened to one prospect, in the timeline modal. */

.outbound-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.outbound-events-note {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.dark .outbound-events-note {
    color: var(--gray-400);
}

.outbound-events-item {
    display: grid;
    grid-template-columns: 7rem auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 0.75rem;
    font-size: 0.875rem;
}

.outbound-events-at {
    font-variant-numeric: tabular-nums;
    color: var(--gray-500);
}

.dark .outbound-events-at {
    color: var(--gray-400);
}

@media (max-width: 40rem) {
    .outbound-events-item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.25rem;
    }
}

/* Whether a campaign is mailing anybody, above the numbers that do not say. */

.outbound-state {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.outbound-state-body {
    min-width: 0;
}

.outbound-state-line {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-950);
}

.dark .outbound-state-line {
    color: var(--color-white);
}

.outbound-state-note {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.dark .outbound-state-note {
    color: var(--gray-400);
}

.outbound-state-list {
    margin: 0.25rem 0 0;
    padding-inline-start: 1.1rem;
    list-style: disc;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.dark .outbound-state-list {
    color: var(--gray-400);
}

.outbound-state-list li + li {
    margin-top: 0.125rem;
}

/* Eén melding uit de testfase, in de modal van het meldingenoverzicht. */

.outbound-report-text {
    font-size: 0.9375rem;
    color: var(--gray-950);
    white-space: pre-line;
}

.dark .outbound-report-text {
    color: var(--color-white);
}

.outbound-report-meta {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
}

.outbound-report-meta dt {
    color: var(--gray-500);
}

.dark .outbound-report-meta dt {
    color: var(--gray-400);
}

.outbound-report-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--gray-950);
}

.dark .outbound-report-meta dd {
    color: var(--color-white);
}

.outbound-report-shot {
    display: block;
    margin-top: 1rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

.outbound-report-shot img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 40rem) {
    .outbound-report-meta {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .outbound-report-meta dd {
        margin-bottom: 0.5rem;
    }
}
