/* PSC Gestion — Heures complémentaires et supplémentaires (heures.js) : mêmes bandeau, compteurs, listes et fenêtres
   que Suivi RH (classes sv-* de suivi.css), couleurs posées sur le conteneur. */
.app-heures { --sv-blue: #0009E4; --sv-crit: #B3261E;
  --sv-retard-bg: #FBE3E1; --sv-retard-fg: #8C1D18; --sv-bientot-bg: #FFF0D4; --sv-bientot-fg: #8A5300; --sv-ok-bg: #DBF0E2; --sv-ok-fg: #1C6A3A;
  --sv-info-bg: #E2ECFB; --sv-info-fg: #1F4F8A; --sv-neutre-bg: #E5E6F8; --sv-neutre-fg: #4A4E7D;
  display: block; min-height: calc(100vh - 48px); background: var(--bg, #F2F3FC); color: var(--ink, #0C0E3D); font-family: 'Public Sans', system-ui, sans-serif; }
:root[data-theme="dark"] .app-heures { --sv-retard-bg: #3D1714; --sv-retard-fg: #FFB4AB; --sv-bientot-bg: #3A2C10; --sv-bientot-fg: #F1C67A;
  --sv-ok-bg: #12321F; --sv-ok-fg: #8FD6A8; --sv-info-bg: #1B2C4A; --sv-info-fg: #A9C8F5; --sv-neutre-bg: #1C1F40; --sv-neutre-fg: #A4A8D2; --sv-crit: #FF8A80; }
.app-heures .sv-kpis { grid-template-columns: repeat(4, 1fr); }
.app-heures .sv-kpi { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.app-heures .sv-bar + .sv-bar { border-top: 0; }
.hs-cont { width: 82px; }
.hs-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.9fr); gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line, #D3D5F0); }
.hs-row:last-child { border-bottom: 0; }
.hs-row.clic { cursor: pointer; } .hs-row.clic:hover, .hs-row.on { background: var(--accent-soft, #DFDCFB); }
.hs-row:focus-visible { outline: 3px solid var(--accent, var(--sv-blue)); outline-offset: -3px; }
.hs-cols { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #4A4E7D); background: var(--sunken, #E5E6F8); padding-block: 8px; }
.hs-row b { font-weight: 700; }
.hs-al { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
.hs-al .sv-pill { white-space: normal; }
.hs-det .sv-bar { justify-content: space-between; }
.hs-titre { font: 700 17px/1.25 'Exo 2', 'Public Sans', sans-serif; }
.hs-req { margin: 12px 14px 0; padding: 10px 12px; border-radius: 8px; background: var(--sv-retard-bg); color: var(--ink, #0C0E3D); font-size: 14px; }
.hs-scroll { overflow-x: auto; padding: 10px 14px 0; }
table.hs-t { width: 100%; border-collapse: collapse; font-size: 13px; font-family: inherit; }
table.hs-t th { text-align: right; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #4A4E7D); background: var(--sunken, #E5E6F8); padding: 6px 8px; white-space: nowrap; }
table.hs-t td { text-align: right; padding: 6px 8px; border-top: 1px solid var(--line, #D3D5F0); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.hs-t th:first-child, table.hs-t td:first-child, table.hs-t th:nth-child(8), table.hs-t td:nth-child(8) { text-align: left; }
table.hs-t td:nth-child(8) { white-space: normal; min-width: 220px; color: var(--muted, #4A4E7D); }
table.hs-t tr.al td { background: var(--sv-retard-bg); }
table.hs-t small { color: var(--muted, #4A4E7D); }
.hs-ed { font: inherit; border: 1px solid var(--line, #D3D5F0); background: var(--surface, #fff); color: var(--ink, #0C0E3D); border-radius: 6px; padding: 1px 7px; cursor: pointer; }
.hs-ed:hover { border-color: var(--accent, var(--sv-blue)); }
.hs-plus { padding: 8px 14px 0; margin: 0; }
.hs-sa { padding: 10px 14px 0; }
.hs-sa .sv-list { border: 1px solid var(--line, #D3D5F0); border-radius: 10px; margin-top: 6px; }
.hs-pied { padding: 10px 14px 14px; }
@media (max-width: 900px) {
  .app-heures .sv-kpis { grid-template-columns: 1fr 1fr; }
  .hs-cols { display: none; }
  .hs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hs-row > .hs-al { grid-column: 1 / -1; }
}
