/* =========================================================
   ESPACE PERSONNEL — stylePersonal.css
   Refonte 2026 : dashboard dark premium, accent néon dosé
   ========================================================= */

/* ── HERO / Bannière profil ──────────────────────────── */
.p-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #181818 0%, #111111 60%, #161616 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.p-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 90% at 6% 50%, rgba(225,29,72,.16), transparent 70%);
  pointer-events: none;
}
.p-banner::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,46,77,.45), transparent);
}
.p-avatar {
  position: relative; z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  flex-shrink: 0; letter-spacing: -1px; user-select: none; overflow: hidden;
  border: 2px solid rgba(255,46,77,.3);
  box-shadow: 0 0 0 5px rgba(225,29,72,.07), 0 10px 28px rgba(0,0,0,.45);
}
.p-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-info { flex: 1; min-width: 0; z-index: 1; }
.p-name {
  font-family: var(--font-display, inherit);
  font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -.3px;
}
.p-meta {
  font-size: 13px; color: var(--muted); margin-top: 6px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.p-meta > span:not(.p-meta-sep):not(:empty) {
  background: rgba(225,29,72,.1);
  border: 1px solid rgba(225,29,72,.2);
  border-radius: 999px; padding: 2px 11px;
  font-size: 12px; font-weight: 600; color: #fecdd3;
}
.p-meta-sep { display: none; }

/* ── TILES stats ─────────────────────────────────────── */
.p-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media(max-width:900px){ .p-tiles { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px){ .p-tiles { grid-template-columns: 1fr; } }
.p-tile {
  position: relative;
  background: linear-gradient(180deg, #161616, #101010);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 16px 20px;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.p-tile::before {
  content: '';
  position: absolute; top: 12px; bottom: 12px; left: 0;
  width: 3px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.p-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255,46,77,.3);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
/* accents distincts par tuile */
.p-tile:nth-child(2)::before { background: linear-gradient(180deg, #f43f5e, #e11d48); }
.p-tile:nth-child(3)::before { background: linear-gradient(180deg, #fb7185, #be123c); }
.p-tile:nth-child(4)::before { background: linear-gradient(180deg, #ff6a7d, #b91c1c); }
.p-tile h3 {
  margin: 0 0 8px;
  font-size: 11px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
}
.p-tile .val {
  font-family: var(--font-display, inherit);
  font-size: 23px; font-weight: 800; color: var(--text);
  letter-spacing: -.5px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ── SECTION "Détails de la semaine" ─────────────────── */
#section-personnel .card-head h2 {
  font-family: var(--font-display, inherit);
  letter-spacing: -.3px;
}
#section-personnel .card-body > h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 12px;
}
#section-personnel .card-body > h3::before {
  content: '';
  width: 4px; height: 15px; border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* Tables de la page personnelle (override ciblé du .table global) */
#section-personnel table.table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
#section-personnel table.table thead th {
  text-align: left;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  padding: 10px 12px;
  background: rgba(225,29,72,.05);
  border-bottom: 1px solid var(--border);
}
#section-personnel table.table thead th.r { text-align: right; }
#section-personnel table.table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(225,29,72,.07);
  color: var(--text); vertical-align: middle;
}
#section-personnel table.table tbody td.r { text-align: right; font-variant-numeric: tabular-nums; }
#section-personnel table.table tbody tr:last-child td { border-bottom: none; }
#section-personnel table.table tbody tr:hover td { background: rgba(225,29,72,.04); }
#section-personnel table.table .empty-row td {
  color: var(--muted); text-align: center; padding: 22px; font-style: italic;
}

/* ── Diviseur ────────────────────────────────────────── */
.p-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Section blocks (réutilisé ailleurs) ─────────────── */
.p-section-block { margin-top: 22px; }
.p-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 10px;
}
.p-section-left { display: flex; align-items: center; gap: 10px; }
.p-section-title {
  font-family: var(--font-display, inherit);
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.p-section-icon { font-size: 15px; }
.p-count {
  font-size: 11px; font-weight: 700;
  background: rgba(225,29,72,.14); color: #fecdd3;
  border-radius: 999px; padding: 2px 9px;
}
.p-frais-total-label { font-size: 13px; color: var(--muted); }
.p-frais-total-label strong { color: #ff2e4d; font-size: 15px; margin-left: 4px; }

/* ── Table générique .p-table (autres pages) ─────────── */
.p-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-table thead th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  padding: 7px 10px; border-bottom: 1px solid var(--border);
}
.p-table thead th.r { text-align: right; }
.p-table tbody td {
  padding: 10px 10px; border-bottom: 1px solid rgba(225,29,72,.07);
  color: var(--text); vertical-align: middle;
}
.p-table tbody td.r { text-align: right; font-variant-numeric: tabular-nums; }
.p-table tbody tr:last-child td { border-bottom: none; }
.p-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.p-table .empty-row td { color: var(--muted); text-align: center; padding: 20px; }
.p-money { color: #f5f5f5; font-weight: 700; }
.p-margin { color: #fda4af; font-weight: 600; }
.p-plate {
  font-family: 'Courier New', monospace;
  background: rgba(225,29,72,.1);
  border: 1px solid rgba(225,29,72,.16);
  border-radius: 5px; padding: 2px 7px;
  font-size: 12px; letter-spacing: .04em;
}

/* ── Ligne semaine dans modal ────────────────────────── */
.week-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 6px;
  transition: background .15s, border-color .15s;
}
.week-row:hover { background: rgba(255,255,255,.03); }
.week-row.active { border-color: rgba(225,29,72,.5); background: rgba(225,29,72,.09); }
.week-row-label { font-size: 14px; font-weight: 600; }

/* ── Absence ─────────────────────────────────────────── */
.absence-current-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px; padding: 12px 16px; margin-top: 12px;
  font-size: 13px;
}
.absence-current-banner .absence-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.absence-current-banner .absence-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fbbf24; margin-bottom: 4px; }
.absence-current-banner .absence-detail { color: var(--text); line-height: 1.5; }
.absence-current-banner .absence-timing-before { color: #86efac; font-weight: 600; }
.absence-current-banner .absence-timing-after  { color: #fca5a5; font-weight: 600; }

.btn.yellow {
  background: linear-gradient(135deg,#d97706,#b45309);
  color:#fff; border-color: rgba(245,158,11,.4);
}
.btn.yellow:hover { background: linear-gradient(135deg,#f59e0b,#d97706); }
