/* Loading skeletons (Features/Shared/Skeleton*): placeholder shapes in the layout of the page that is loading.
   The shimmer is fixed to the viewport, so all bones shine as one sweep; it stands still with reduced motion. */

:root {
    --sk-base: #ECEEF1;
    --sk-shine: #F7F8FA;
}

.sk-bone {
    display: block;
    flex-shrink: 0;
    max-width: 100%;
    border-radius: 6px;
    background: var(--sk-base) linear-gradient(100deg, transparent 35%, var(--sk-shine) 50%, transparent 65%) no-repeat fixed;
    background-size: 200vw 100%;
    animation: sk-shimmer 1.8s ease-in-out infinite;
}

.sk-circle {
    border-radius: 50%;
}

.sk-pill {
    border-radius: 999px;
}

.sk-field {
    border-radius: 4px;
}

@keyframes sk-shimmer {
    from {
        background-position: -150vw 0;
    }
    to {
        background-position: 50vw 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-bone {
        animation: none;
        background-image: none;
    }
}

.sk-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sk-stack-loose {
    gap: 16px;
}

.sk-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sk-legend {
    flex-wrap: wrap;
    min-height: 20px;
    margin-bottom: 16px;
}

.sk-grow {
    flex: 1;
    min-width: 0;
}

/* App bar of the shell skeleton (MainLayout while the session starts). */
.sk-appbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Matches PageHeader: h4 title and body1 subtitle. */
.sk-page-title {
    margin: 4px 0;
}

.sk-page-subtitle {
    margin: 9px 0 3px;
}

/* Matches DateNavigator. */
.sk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

/* Matches Tile with a two-line description. */
.sk-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--chronos-border);
    border-radius: var(--chronos-radius);
}

.sk-tile-head {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: flex-end;
    background: var(--env-tint);
    border-bottom: 1px solid var(--env-tint-2);
}

.sk-tile-large .sk-tile-head {
    height: 64px;
    padding: 0 18px;
}

.sk-tile-icon {
    transform: translateY(50%);
    box-shadow: 0 0 0 4px #fff;
}

.sk-tile-body {
    padding: 26px 16px 18px;
}

.sk-tile-large .sk-tile-body {
    padding: 32px 18px 24px;
}

/* Matches LinkList / LinkRow. */
.sk-list {
    overflow: hidden;
    max-width: 920px;
}

.sk-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    min-height: 72px;
    border-bottom: 1px solid var(--chronos-border);
}

.sk-list-row:last-child {
    border-bottom: none;
}

/* Matches MudSimpleTable rows. */
.sk-table {
    overflow: hidden;
}

.sk-table-row {
    display: grid;
    grid-template-columns: repeat(var(--sk-columns), minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    min-height: 53px;
    padding: 0 16px;
    border-bottom: 1px solid var(--chronos-border);
}

.sk-table-head {
    min-height: 57px;
}

.sk-table-dense .sk-table-row {
    min-height: 35px;
}

.sk-table-row:last-child {
    border-bottom: none;
}

/* Matches ScheduleGrid with 08:00–16:00 at 1.7 px per minute. */
.sk-schedule {
    --sk-time-width: 56px;
    overflow: clip;
}

.sk-schedule-header,
.sk-schedule-body {
    display: grid;
    grid-template-columns: var(--sk-time-width) repeat(var(--sk-columns), minmax(0, 1fr));
}

.sk-schedule-header {
    border-bottom: 1px solid var(--chronos-border);
}

.sk-schedule-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px 10px;
    border-left: 1px solid var(--chronos-border);
}

.sk-schedule-column {
    position: relative;
    height: 816px;
    border-left: 1px solid var(--chronos-border);
}

.sk-schedule-item {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
}

/* Matches the Jaarplanning month grid. */
.sk-calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.sk-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--chronos-border);
}

.sk-calendar-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 104px;
    padding: 8px;
    border-right: 1px solid var(--chronos-border);
    border-bottom: 1px solid var(--chronos-border);
}

.sk-calendar-day:nth-child(7n) {
    border-right: none;
}

/* Matches the Periodeplanning timeline. */
.sk-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow: hidden;
}

.sk-timeline-row {
    display: grid;
    grid-template-columns: 110px repeat(40, minmax(14px, 1fr));
    gap: 2px;
    align-items: center;
    min-height: 32px;
}

@media (max-width: 600px) {
    /* DateNavigator wraps its title and controls over several rows. */
    .sk-toolbar {
        min-height: 116px;
        align-content: flex-start;
    }

    .sk-calendar-day {
        min-height: 72px;
        padding: 4px;
    }
}
