.team-leave-month { margin: 0; font-size: 1.25rem; }
.team-leave-guide { margin: 1rem 0; }
.team-leave-guide summary { cursor: pointer; color: var(--link); padding: .65rem 0; font-weight: 600; }
.team-leave-legend { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; padding: 0; list-style: none; }
.team-leave-legend li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.team-leave-scroll { position: relative; max-width: 100%; max-height: 70vh; overflow: auto; border: 1px solid var(--border); border-radius: .7rem; background: var(--panel); isolation: isolate; }
.team-leave-table { width: max-content; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.team-leave-table th, .team-leave-table td { padding: .3rem; border-bottom: 1px solid var(--border); }
.team-leave-table thead th { position: sticky; top: 0; background: var(--panel); z-index: 2; text-align: center; color: var(--heading); }
.team-leave-table thead small { display: block; font-weight: normal; color: var(--muted); }
.team-leave-table .team-leave-person { position: sticky; left: 0; width: 220px; min-width: 220px; max-width: 220px; padding: .8rem; text-align: left; white-space: normal; overflow-wrap: anywhere; background: var(--panel); border-right: 1px solid var(--border); z-index: 1; }
.team-leave-table thead .team-leave-person { z-index: 3; }
.team-leave-person strong, .team-leave-person span, .team-leave-person small { display: block; }
.team-leave-person span, .team-leave-person small { margin-top: .2rem; color: var(--muted); font-weight: normal; }
.team-leave-cell, .team-leave-swatch { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: .4rem; font-weight: 600; }
.team-leave-cell { position: relative; width: 46px; height: 48px; }
.team-leave-swatch { width: 32px; height: 28px; flex-shrink: 0; }
.team-leave-cell--approved { color: var(--button-text); background: var(--button-bg); border-color: var(--button-bg); }
.team-leave-cell--pending { color: var(--warning-text); background: var(--warning-bg); border: 2px dashed var(--warning-text); }
.team-leave-cell--absent { color: var(--accent-text); background: var(--accent-surface); border-color: var(--link); }
.team-leave-cell--off, .team-leave-cell--holiday { color: var(--success-text); background: var(--success-bg); border-color: var(--success-border); }
.team-leave-cell--work { color: var(--muted); background: var(--soft); }
.team-leave-cell--unknown, .team-leave-cell--inactive { color: var(--muted); background: var(--panel); }
@media (max-width: 600px) {
  .team-leave-table .team-leave-person { width: 130px; min-width: 130px; max-width: 130px; padding: .5rem; }
  .team-leave-cell { width: 40px; height: 44px; }
}
