/* Submission deadline box (Information tab) and deadline timeline dialog -
   js/conference-deadlines.js. The box reuses the fee box's .fee-summary / .fee-deadline
   lines and the dialog the .fee-modal shell (css/conference-fees.css). */

#infoDeadlineItem .info-label {
    flex-shrink: 0;
    white-space: nowrap;
}

#infoDeadlineValue {
    min-width: 0;
}

#infoDeadlineItem.has-deadline .info-label {
    align-self: flex-start;
}

.fee-summary__amount.dl-closed {
    color: #78909c;
}

/* ---------- dialog: one timeline per track ---------- */
.dl-timeline {
    position: relative;
    margin: 0;
    padding: 2px 16px;
    list-style: none;
    border: 1px solid #e3e8eb;
    border-radius: 10px;
}

/* The line the dots sit on */
.dl-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 23px;
    width: 2px;
    background: #e3e8eb;
}

.dl-row {
    position: relative;
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr) auto;
    grid-template-areas: "date what status";
    align-items: baseline;
    gap: 4px 16px;
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid #edf1f3;
}

.dl-row:last-child {
    border-bottom: 0;
}

.dl-row::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 2px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid #11a191;
    border-radius: 50%;
    background: #fff;
}

.dl-row.is-milestone::before {
    top: 17px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-color: #78909c;
    border-radius: 2px;
    transform: rotate(45deg);
}

.dl-row.is-next::before {
    background: #11a191;
    box-shadow: 0 0 0 4px rgba(17, 161, 145, 0.18);
}

.dl-row.is-past::before {
    border-color: #cfd8dc;
    background: #eceff1;
}

.dl-row__date {
    grid-area: date;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-row__day {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dl-row__was {
    color: #9a5b00;
    font-size: 0.75rem;
    font-weight: 500;
}

.dl-row__was s {
    color: #90a4ae;
}

.dl-row__what {
    grid-area: what;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dl-row__label {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dl-row.is-milestone .dl-row__label {
    font-weight: 500;
}

.dl-row__meta {
    color: #78909c;
    font-size: 0.78rem;
    font-weight: 500;
}

.dl-row.is-past .dl-row__day,
.dl-row.is-past .dl-row__label {
    color: #90a4ae;
}

.dl-row__status {
    grid-area: status;
    text-align: right;
}

.dl-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e0f2f1;
    color: #00796b;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.dl-pill--soon {
    background: #fff4e5;
    color: #9a5b00;
}

.dl-pill--today {
    background: #ffedd5;
    color: #c2410c;
}

.dl-pill--past {
    background: #f1f5f9;
    color: #90a4ae;
}

/* "Today" between the dates that have passed and those still ahead */
.dl-today {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0 7px 30px;
    border-bottom: 1px solid #edf1f3;
    color: #c2410c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dl-today::before {
    content: "";
    position: absolute;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
}

.dl-today::after {
    content: "";
    flex: 1;
    border-top: 1px dashed #fdba74;
}

@media (max-width: 560px) {
    .dl-timeline {
        padding: 2px 12px;
    }

    .dl-timeline::before {
        left: 19px;
    }

    .dl-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "date status"
            "what what";
        padding-left: 28px;
    }
}
