/* Shift/rota planner (/shift-rota-planner): the staff-by-day grid, shift chips and conflict marks.
   Stage, panels, fields and buttons come from the app kit (css/app-kit, docs/app-kit.md);
   the accent is the time category's violet. Loaded only on this app's page (StylePaths). */
.rota-landing-stage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 32rem;
    padding: 0.8rem 0.6rem 1.2rem;
}

.rota-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.rota-period { font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0.4rem; }

.rota-grid.ak-panel, .rota-grid {
    display: block !important;
    overflow: auto;
    background: var(--ak-panel, #fff);
    padding: 0.4rem;
}

.rota-week {
    display: grid !important;
    grid-template-columns: 9.5rem repeat(7, minmax(5.2rem, 1fr));
    gap: 2px;
    min-width: 48rem;
}

.rota-week > .rota-row { display: contents; }

.rota-corner, .rota-hday, .rota-who, .rota-cell {
    padding: 0.35rem 0.4rem;
    background: var(--ak-bg, #f8fafc);
    border-radius: 6px;
}

.rota-hday, .rota-corner { font-size: 0.78rem; font-weight: 700; text-align: center; }
.rota-hday.is-today, .rota-mday.is-today { box-shadow: inset 0 0 0 2px var(--ak-accent, #7c3aed); }
.rota-wd { display: block; color: var(--ak-muted, #64748b); font-weight: 600; }

.rota-who { display: flex; align-items: center; gap: 0.35rem; font-weight: 650; }
.rota-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: 0 0 auto; }
.rota-hrs { margin-left: auto; font-size: 0.78rem; color: var(--ak-muted, #64748b); font-variant-numeric: tabular-nums; }

.rota-cell { min-height: 3.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.rota-cell.is-conflict { box-shadow: inset 0 0 0 2px #dc2626; background: #fef2f2; }
.rota-shift, .rota-chip {
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.35rem;
    cursor: pointer;
    text-align: start;
}
.rota-empty {
    flex: 1;
    min-height: 2.4rem;
    border: 1px dashed var(--ak-border, #e2e8f0);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.rota-month {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    min-width: 36rem;
}
.rota-mday { min-height: 5.5rem; padding: 0.3rem; border-radius: 6px; background: var(--ak-bg, #f8fafc); }
.rota-mday.is-out { opacity: 0.45; }
.rota-mdate { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.2rem; }
.rota-mchips { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.rota-chip { width: 1.3rem; height: 1.3rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rota-chip.is-conflict { box-shadow: 0 0 0 2px #dc2626; }

.rota-empty-msg { margin: 0.8rem 0.4rem; color: var(--ak-muted, #64748b); }

.rota-list { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.35rem; }
.rota-edit { display: grid; grid-template-columns: 2.2rem 1fr 1fr auto; gap: 0.3rem; align-items: center; }
.rota-type { grid-template-columns: 1.6rem 1fr 5.2rem 5.2rem auto auto; }
.rota-type.is-on { outline: 2px solid var(--ak-accent, #7c3aed); border-radius: 8px; padding: 0.15rem; }
.rota-pick { width: 1.3rem; height: 1.3rem; border: 0; border-radius: 50%; cursor: pointer; }
.rota-thrs { font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--ak-muted, #64748b); }
.rota-total, .rota-warn, .rota-ok { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.rota-total strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.rota-warn { color: #b91c1c; }

@media (max-width: 700px) {
    .rota-week {
        min-width: 0;
        width: 100%;
        grid-template-columns: 4.4rem repeat(7, minmax(0, 1fr));
    }
    .rota-toolbar .rota-period { width: 100%; margin: 0.2rem 0; }
    .rota-who { font-size: 0.75rem; gap: 0.2rem; padding: 0.25rem 0.2rem; }
    .rota-hrs { display: block; width: 100%; margin-left: 0; font-size: 0.65rem; }
    .rota-dot { width: 0.5rem; height: 0.5rem; }
    .rota-hday, .rota-corner { font-size: 0.65rem; padding: 0.2rem 0.1rem; }
    .rota-cell { padding: 0.15rem; min-height: 2.6rem; gap: 0.12rem; }
    .rota-shift { font-size: 0.58rem; padding: 0.18rem 0.12rem; }
    .rota-empty { min-height: 2rem; }
}

