/* Chef et secrétariat : tableau de bord, équipe, validation */

/* ===== Feuilles d'heures, rôles, contrats ===== */
.main { max-width: 1360px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pos { color: var(--primary); }
.neg { color: var(--danger); }
.sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill .ic { width: 13px; height: 13px; margin-right: 5px; }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.chef { background: var(--night-soft); color: var(--night); }
.pill.admin { background: var(--sunday-soft); color: var(--sunday); }
.nav-sep { margin: 16px 12px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.banner.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.banner.success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.kpi.primary.negative { background: linear-gradient(135deg, #c0262d, #e0565c); }
.kpi.neg .kpi-value { color: var(--danger); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .ic { width: 15px; height: 15px; }
.icon-btn.on { color: var(--primary); background: var(--primary-soft); }
.modal.wide { width: min(760px, 100%); }
.table th.l, .table td.l { text-align: left; }
.table th, .table td { padding-left: 9px; padding-right: 9px; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }

/* Tableau de bord */
.dash { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.bars { list-style: none; margin: 0; padding: 10px 0; }
.bars li { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; padding: 7px 20px; cursor: pointer; }
.bars li:hover { background: var(--surface-2); }
.bar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); }
.bar-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border); }
.bar { position: absolute; left: 50%; top: 0; bottom: 0; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--primary), #6a5cff); }
.bar.neg { left: auto; right: 50%; border-radius: 99px 0 0 99px; background: var(--danger); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.alerts { list-style: none; margin: 0; padding: 8px; }
.alerts a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.alerts a:hover { background: var(--surface-2); }
.alerts a span { flex: 1; }
.alerts a .ic:last-child { color: var(--muted); width: 16px; }
.alerts .warn .ic:first-child { color: var(--warn); }
.alerts .danger .ic:first-child { color: var(--danger); }
.alerts .info .ic:first-child { color: var(--primary); }

/* Validation */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.review-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0; }
.rc-stats div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.rc-stats dt { font-size: 12px; color: var(--muted); }
.rc-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-comment { margin: 0; color: var(--muted); font-style: italic; }
.rc-actions { justify-content: flex-end; }

/* Calendrier d'équipe */
.tcal { border-collapse: separate; border-spacing: 2px; width: 100%; padding: 8px 12px; font-size: 12px; }
.tcal th { font-weight: 600; color: var(--muted); text-align: center; line-height: 1.1; padding: 2px 0; }
.tcal th small { display: block; font-size: 10px; }
.tcal th.we, .tcal td.we { opacity: .55; }
.tcal th.hol { color: var(--sunday); }
.tcal th.today { color: var(--primary); }
.tcal .who-col { text-align: left; white-space: nowrap; padding-right: 10px; color: var(--text); font-size: 13px; }
.tcal .who-col a { color: inherit; }
.tcal .who-col a:hover { color: var(--primary); }
.tcal td { padding: 0; }
.tc {
  display: grid; place-items: center; height: 26px; min-width: 22px; border-radius: 6px;
  font-weight: 700; font-size: 10px; color: #fff; overflow: hidden; white-space: nowrap; letter-spacing: -.02em;
}
.tc:hover { outline: 2px solid var(--text); }
.tc.st-valide { background: var(--st-valide); }
.tc.st-soumis { background: var(--st-soumis); }
.tc.st-brouillon { background: var(--st-brouillon); }
.tc.st-refuse { background: var(--st-refuse); }
.tc.st-manquant { background: transparent; border: 2px solid var(--st-manquant); color: var(--danger); }

/* Validation par journée */
.rv-days { list-style: none; margin: 0 -20px -18px; padding: 0; border-top: 1px solid var(--border); }
.rv-days li {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) 56px 62px auto; gap: 10px; align-items: center;
  padding: 8px 20px; border-bottom: 1px solid var(--border);
}
.rv-days li:last-child { border-bottom: 0; }
.rv-date { font-weight: 650; color: var(--text); }
.rv-date:hover { color: var(--primary); }
.rv-slots { font-variant-numeric: tabular-nums; font-size: 13px; }
.rv-slots small { display: block; color: var(--muted); font-style: italic; }
.rv-num { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.rv-act { display: flex; gap: 4px; }
.icon-btn.success { color: var(--success); }
.icon-btn.success:hover { background: var(--success-soft); color: var(--success); }
.icon-btn.danger { color: var(--danger); }
.mail-help { margin: 0; padding: 4px 20px 16px 38px; color: var(--muted); line-height: 1.8; }
.mail-help b { color: var(--text); }
.card + .card { margin-top: 20px; }
