﻿.schedules-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.schedules-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(110, 168, 254, 0.18), transparent 32%), radial-gradient(circle at bottom left, rgba(25, 135, 84, 0.14), transparent 30%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.schedules-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.schedules-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
    opacity: .72;
    margin-bottom: .35rem;
}

.schedules-title {
    margin-bottom: .35rem;
}

.schedules-subtitle {
    max-width: 820px;
}

.schedules-hero__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.schedules-alert {
    display: flex;
    align-items: center;
    gap: .85rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.schedules-alert__icon {
    font-size: 1.15rem;
    opacity: .9;
}

.schedules-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.schedules-kpi-card {
    border-radius: 22px;
    padding: 1.15rem 1.2rem;
}

.schedules-kpi-label {
    font-size: .85rem;
    color: rgba(255,255,255,.72);
    margin-bottom: .45rem;
}

.schedules-kpi-value {
    line-height: 1;
}

.schedules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.schedules-empty-card,
.schedule-card {
    border-radius: 24px;
    padding: 1.25rem;
}

.schedule-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-card__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.schedule-card__name {
    font-size: 1.05rem;
    font-weight: 800;
}

.schedule-card__key {
    margin-top: .12rem;
    font-size: .82rem;
    opacity: .68;
}

.schedule-card__description {
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}

.schedule-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .95rem 1rem;
}

.schedule-meta-label {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .64;
    margin-bottom: .18rem;
}

.schedule-meta-value {
    font-weight: 700;
    word-break: break-word;
}

.schedule-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    border: 0;
}

.schedule-subsection {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.schedule-subsection__title {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .72;
    font-weight: 700;
}

.schedule-timestamp-stack {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.schedule-timestamp-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.schedule-workflow-stack {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.schedule-workflow-card {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: .85rem .95rem;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.schedule-workflow-name {
    font-weight: 800;
}

.schedule-workflow-key {
    margin-top: .1rem;
    font-size: .8rem;
    opacity: .68;
}

.schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

    .schedule-actions form {
        margin: 0;
    }

@media (max-width: 1200px) {
    .schedules-kpi-grid,
    .schedules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .schedules-kpi-grid,
    .schedule-meta-grid {
        grid-template-columns: 1fr;
    }

    .schedules-hero,
    .schedules-empty-card,
    .schedule-card {
        padding: 1rem;
    }

    .schedule-card__top,
    .schedule-timestamp-row,
    .schedule-workflow-card {
        flex-direction: column;
    }

    .schedules-hero__actions {
        width: 100%;
    }

        .schedules-hero__actions a {
            width: 100%;
        }

    .schedule-actions {
        flex-direction: column;
    }

        .schedule-actions form,
        .schedule-actions button {
            width: 100%;
        }
}
