.absences-page { display: grid; width: 100%; max-width: 1500px; gap: 20px; }
.absences-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.absences-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.absences-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 15px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.absences-tabs a:hover, .absences-tabs a[aria-current="page"] { background: #e8eff3; color: var(--navy-900); }
.absences-section-intro { margin: -6px 0 0; color: var(--muted); }
.absences-layout { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); align-items: start; gap: 18px; }
.absences-list-panel { padding: 5px 16px; }
.absences-list-item { border-bottom: 1px solid var(--line-soft); }
.absences-list-item:last-child { border-bottom: 0; }
.absences-list-item a { display: grid; gap: 5px; padding: 17px 6px; color: inherit; text-decoration: none; }
.absences-list-item a:hover, .absences-list-item.is-selected a { color: var(--navy-900); }
.absences-list-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.absences-list-item__top strong { color: var(--navy-900); font-size: 14px; }
.absences-list-item__type, .absences-list-item__period, .absences-list-item__meta { display: block; font-size: 12px; }
.absences-list-item__period { font-weight: 750; }
.absences-list-item__type, .absences-list-item__meta { color: var(--muted); }
.absences-state { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #e4f4e9; color: #26734c; font-size: 10px; font-weight: 800; }
.absences-state.is-muted { background: #edf0f2; color: #687780; }
.absences-detail { display: grid; gap: 18px; padding: 24px; }
.absences-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.absences-detail__head h2 { margin: 3px 0 4px; color: var(--navy-900); }
.absences-detail__head p { margin: 0; color: var(--muted); }
.absences-detail__facts, .absences-detail__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.absences-detail__facts span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; background: #f1f5f7; font-size: 12px; }
.absences-private-note { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fbfcfc; }
.absences-private-note strong { color: var(--navy-900); font-size: 12px; }
.absences-private-note p { margin: 6px 0 0; white-space: normal; }
.absences-documents { display: grid; gap: 8px; }
.absences-documents h3 { margin: 0; font-size: 14px; }
.absences-documents a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--copper-700); font-size: 13px; }
.absences-private-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.absences-upload { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.absences-upload .field { flex: 1 1 280px; }
.absences-cancel-form { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.absences-cancel-form .field { display: grid; gap: 5px; margin-bottom: 10px; }
.absences-cancel-form .field small { color: var(--muted); font-size: 11px; }
.absences-cancel-form button { padding: 4px 0; border: 0; background: transparent; color: #a14646; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.absences-dialog { width: min(760px, calc(100vw - 30px)); max-height: min(90vh, 900px); }
.absences-form { max-height: min(90vh, 900px); overflow: auto; }
.absences-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.absences-form-grid .field--wide { grid-column: 1 / -1; }
.absences-form-grid .field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.absences-checkbox { display: flex; align-items: center; gap: 9px; align-self: center; font-size: 13px; font-weight: 700; }
.absences-checkbox input { width: 17px; height: 17px; }
.absences-preview { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #edf4f6; color: var(--navy-900); font-size: 12px; }
.absences-preview strong { font-size: 13px; }
.planning-entry--absence { background: #dce8ec; color: #275567; }
.planning-entry--absence.is-half { background: repeating-linear-gradient(135deg, #dce8ec, #dce8ec 6px, #eff5f7 6px, #eff5f7 12px); }
.planning-absence-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.planning-absence-cta a { color: var(--copper-700); font-size: 12px; font-weight: 800; }
.planning-upcoming-absences { display: grid; gap: 10px; padding: 14px 18px; }
.planning-upcoming-absences > div { display: flex; justify-content: space-between; gap: 14px; }
.planning-upcoming-absences > div strong { color: var(--navy-900); font-size: 13px; }
.planning-upcoming-absences a { color: var(--copper-700); font-size: 12px; font-weight: 800; }
.planning-upcoming-absences ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.planning-upcoming-absences li { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 9px; border-radius: 8px; background: #edf4f6; font-size: 11px; }
.planning-upcoming-absences li span { color: var(--muted); }
.absences-view-intro { margin: 0; color: var(--muted); font-size: 13px; }
.absences-view-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.absences-view-filters .field { min-width: 210px; }
.absences-view-shell { overflow-x: auto; padding: 0; }
.absences-board { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.absences-board th, .absences-board td { min-width: 57px; height: 38px; padding: 2px; border-right: 1px solid #e4ebee; border-bottom: 1px solid #e4ebee; text-align: center; }
.absences-board thead th { position: sticky; top: 0; z-index: 2; background: #f4f7f8; color: var(--navy-900); }
.absences-board thead th span, .absences-board thead th small { display: block; }
.absences-board th:first-child { position: sticky; left: 0; z-index: 3; width: 180px; min-width: 180px; max-width: 180px; padding: 7px 10px; background: #fff; text-align: left; }
.absences-board thead th:first-child { z-index: 4; background: #f4f7f8; }
.absences-board tbody th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-900); font-size: 12px; }
.absences-board td.is-weekend { background: #f5f7f8; }
.absences-board .absence-day-mark { display: block; height: 26px; border-radius: 5px; background: #47798a; color: #fff; font-size: 9px; font-weight: 800; line-height: 26px; }
.absences-board .absence-day-mark.is-half { background: repeating-linear-gradient(135deg, #47798a, #47798a 6px, #9ebec6 6px, #9ebec6 12px); }
.absences-mobile-list { display: none; }
.absences-mobile-list article { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.absences-mobile-list article:last-child { border-bottom: 0; }
.absences-mobile-list [hidden], .absences-board [hidden] { display: none !important; }
.absences-mobile-list strong { color: var(--navy-900); }
.absences-mobile-list span { color: var(--muted); font-size: 12px; }
.absences-view-empty { padding: 24px; color: var(--muted); }
.notifications-page { display: grid; gap: 18px; width: 100%; max-width: 900px; }
.notifications-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notifications-list { padding: 4px 20px; }
.notifications-list article { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.notifications-list article:last-child { border-bottom: 0; }
.notifications-list article.is-unread { border-left: 3px solid var(--copper-700); padding-left: 12px; }
.notifications-list strong, .notifications-list time { display: block; }
.notifications-list p { margin: 5px 0; }
.notifications-list time { color: var(--muted); font-size: 11px; }
.app-header__notifications { position: relative; }
.app-header__notification-count { position: absolute; top: -7px; right: -7px; display: grid; min-width: 20px; height: 20px; padding: 0 4px; place-items: center; border: 2px solid var(--surface); border-radius: 999px; background: var(--copper-700); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }

@media (max-width: 900px) {
    .absences-layout { grid-template-columns: 1fr; }
    .absences-list-panel { max-height: 420px; overflow-y: auto; }
}
@media (max-width: 720px) {
    .app-header__notifications { display: inline-grid; width: 36px; height: 36px; }
}
@media (max-width: 640px) {
    .absences-hero, .absences-detail__head, .notifications-head { align-items: stretch; flex-direction: column; }
    .planning-view-switch { overflow-x: auto; }
    .planning-view-switch a { flex: 0 0 auto; white-space: nowrap; }
    .absences-form-grid { grid-template-columns: 1fr; }
    .absences-form-grid .field--wide { grid-column: auto; }
    .absences-board { display: none; }
    .absences-mobile-list { display: block; padding: 5px 16px; }
    .absences-view-shell { overflow: visible; }
    .absences-view-filters .field { width: 100%; }
}
@media print {
    .absences-hero button, .absences-tabs, .absences-detail__actions, .absences-upload, .absences-cancel-form, .absences-view-filters { display: none !important; }
    .absences-board { display: table; }
    .absences-mobile-list { display: none; }
    .absences-board th:first-child, .absences-board thead th { position: static; }
}
