/* Canonical "Plans et horaires à télécharger" component shared by line pages and stop sheets. */
.schedule-downloads {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    /* Canonical surface: do not inherit host-specific --bg-card.
     * The StopSheet is the visual reference for this shared component. */
    background: #eef1f4;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.schedule-downloads__title {
    margin: 0;
    color: var(--text-primary, var(--pm-text-primary, #0f172a));
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.schedule-downloads__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 9999px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.schedule-downloads__card:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.schedule-downloads__card:active {
    transform: scale(0.99);
}

.schedule-downloads__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-downloads__card-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary, var(--pm-text-primary, #0f172a));
    font-size: 0.85rem;
    font-weight: 600;
}

.schedule-downloads__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: var(--pm-green, #16a34a);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.schedule-downloads__action:hover {
    background: var(--pm-green-hover, #15803d);
    transform: scale(1.05);
}

.schedule-downloads__action.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.schedule-downloads__action svg {
    width: 16px;
    height: 16px;
}

body.dark-theme .schedule-downloads,
body[data-theme="dark"] .schedule-downloads,
html.dark-theme .schedule-downloads,
html[data-theme="dark"] .schedule-downloads {
    /* Match the StopSheet reference surface from the global dark theme. */
    background: rgba(16, 26, 45, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
}
