
/* Refonte visuelle de l'onglet Récupérations — V8.32 */
#recuperationsView{--recovery-green:#18794e;--recovery-green-soft:#ecfdf3;--recovery-red:#b42318;--recovery-red-soft:#fff1f0;--recovery-amber:#a15c00;--recovery-amber-soft:#fff8e6}
#recuperationsView .top{margin-bottom:16px}
#recuperationsView .top h1{font-size:24px}
#recuperationsView .recovery-scope{margin-bottom:14px;padding:11px 14px;border-radius:12px}
#recuperationsView .recovery-approval-panel{border-radius:14px;box-shadow:0 7px 20px rgba(34,53,111,.07)}
#recuperationsView .recovery-approval-head{padding:14px 16px}
#recuperationsView .recovery-approval-head h2{font-size:16px}
#recuperationsView .recovery-approval-count{min-width:30px;height:30px;font-size:12px}
#recuperationsView .recovery-request-section{padding:13px 15px}
#recuperationsView .recovery-request-list{gap:9px}
#recuperationsView .recovery-request{padding:11px 12px;border-radius:11px;box-shadow:0 3px 11px rgba(34,53,111,.055)}
#recuperationsView .recovery-request-name{font-size:12.5px}
#recuperationsView .recovery-request-meta{font-size:10.5px;line-height:1.45}
#recuperationsView .recovery-request-hours{padding:7px 9px;font-size:10.5px;border-radius:8px}

.recovery-summary-modern{display:grid!important;grid-template-columns:repeat(5,minmax(135px,1fr))!important;gap:10px!important;margin:0 0 14px!important}
.recovery-summary-modern .recovery-card{position:relative;text-align:left;padding:14px 15px;border-radius:13px;overflow:hidden;min-height:86px}
.recovery-summary-modern .recovery-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.recovery-summary-modern .recovery-card.pending:before{background:#d97706}
.recovery-summary-modern .recovery-card.positive:before{background:var(--recovery-green)}
.recovery-summary-modern .recovery-card.negative:before{background:var(--recovery-red)}
.recovery-summary-modern .recovery-card.activity:before{background:#5267b7}
.recovery-summary-modern .recovery-card span{font-size:9.5px;letter-spacing:.045em}
.recovery-summary-modern .recovery-card b{font-size:24px;margin-top:7px}
.recovery-summary-modern .recovery-card small{display:block;margin-top:4px;color:var(--ink-soft);font-size:9.5px;font-weight:700}
.recovery-summary-modern .recovery-card.negative b{color:var(--recovery-red)}
.recovery-summary-modern .recovery-card.positive b{color:var(--recovery-green)}
.recovery-summary-modern .recovery-card.pending b{color:#a15c00}

.recovery-toolbar-modern{grid-template-columns:minmax(240px,1.25fr) minmax(160px,.72fr) minmax(180px,.82fr) minmax(150px,.62fr) minmax(150px,.62fr) auto!important;align-items:center}
.recovery-toolbar-modern input[type=search]{min-width:0}
.recovery-refresh{white-space:nowrap}

.recovery-workspace{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.recovery-list-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;padding:16px 17px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fff,#f7f9ff)}
.recovery-list-head h2{font-size:16px;margin:0;color:var(--accent)}
.recovery-list-head p{margin:3px 0 0;font-size:10.5px;color:var(--ink-soft)}
.recovery-list-count{padding:5px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:900;white-space:nowrap}

.recovery-modern-table{width:100%!important;min-width:900px!important;margin:0!important}
.recovery-modern-table th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;padding:9px 11px}
.recovery-modern-table td{padding:11px!important;vertical-align:middle}
.recovery-modern-table th:nth-child(2),
.recovery-modern-table th:nth-child(3),
.recovery-modern-table th:nth-child(4),
.recovery-modern-table th:nth-child(5),
.recovery-modern-table th:nth-child(6),
.recovery-modern-table td:nth-child(2),
.recovery-modern-table td:nth-child(3),
.recovery-modern-table td:nth-child(4),
.recovery-modern-table td:nth-child(5),
.recovery-modern-table td:nth-child(6){text-align:center!important}
.recovery-modern-table th:nth-child(7),.recovery-modern-table td:nth-child(7){text-align:center!important}
.recovery-modern-table td:nth-child(2) .recovery-hours-credit,
.recovery-modern-table td:nth-child(3) .recovery-hours-debit,
.recovery-modern-table td:nth-child(4) .recovery-balance-pill{display:inline-flex;align-items:center;justify-content:center}

.recovery-modern-table tbody tr{transition:background .12s ease}
.recovery-modern-table tbody tr:hover td{background:#f6f8fe!important}
.recovery-agent-cell{display:flex;align-items:center;gap:10px;min-width:210px}
.recovery-avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:linear-gradient(145deg,#edf2ff,#dfe8ff);color:var(--accent);font-weight:900;font-size:11px;border:1px solid #ccd8f5}
.recovery-agent-name{font-weight:900;color:var(--ink)}
.recovery-agent-meta{margin-top:2px;color:var(--ink-soft);font-size:9.5px}

/* Identité agent harmonisée — Planning, Horaires, Dossiers, Formations */
.agent-identity-cell{display:flex;align-items:center;gap:10px;min-width:0}
.agent-identity-avatar{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:linear-gradient(145deg,#edf2ff,#dfe8ff);color:var(--accent);
  font-weight:900;font-size:11px;border:1px solid #ccd8f5
}
.agent-identity-copy{min-width:0}
.agent-identity-name{
  font-size:11.5px;font-weight:900;line-height:1.2;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.agent-identity-meta{
  margin-top:2px;color:var(--ink-soft);font-size:9.5px;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.agent-identity-firstname{font-size:11.5px;font-weight:700;color:var(--ink)}
.agent-identity-picto{background:#fff!important;overflow:hidden}
.agent-identity-picto img{width:27px;height:27px;display:block;object-fit:contain}
.recovery-avatar.agent-identity-picto img{width:27px;height:27px}

#content .agent-identity-cell{min-width:190px}
#content .sticky .agent-identity-meta{max-width:155px}
#schedulesContent .agent-identity-cell{min-width:150px}
#formationsContent .agent-identity-cell{min-width:155px}
#agentsContent .agent-identity-cell{min-width:150px}

.recovery-hours-credit{color:var(--recovery-green);font-weight:900;font-size:11px;line-height:1}
.recovery-hours-debit{color:#9a5800;font-weight:900;font-size:11px;line-height:1}
.recovery-balance-pill{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:5px 8px;border-radius:999px;font-weight:900;font-size:11px;line-height:1;background:#eef2ff;color:var(--accent)}
.recovery-balance-pill.positive{background:var(--recovery-green-soft);color:var(--recovery-green)}
.recovery-balance-pill.negative{background:var(--recovery-red-soft);color:var(--recovery-red)}
.recovery-last-movement{font-size:10.5px;color:var(--ink);text-align:center}
.recovery-last-movement{display:grid;justify-items:center;gap:5px;min-width:128px;padding:7px 9px;border:1px solid #dbe4f1;border-radius:10px;background:linear-gradient(145deg,#fff,#f5f8fc);box-shadow:0 3px 9px rgba(34,53,111,.06)}
.recovery-last-date{font-size:10px;font-weight:850;color:#4f627b}.recovery-last-detail{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.recovery-last-kind{display:inline-flex;border-radius:999px;padding:3px 7px;background:#eaf8f0;color:var(--recovery-green);font-size:9.5px;font-weight:900}.recovery-last-kind.debit{background:#fff4e5;color:#985800}.recovery-last-value{font-size:11px;font-weight:950;color:var(--accent)}
.recovery-team-cell{font-size:10.5px;font-weight:800;color:var(--accent);text-align:center;white-space:nowrap}

.recovery-last-movement .meta{margin-top:2px}
.recovery-row-actions{display:flex;justify-content:center;align-items:center;gap:9px;min-width:210px}
.recovery-row-actions .btn{min-width:92px;padding:8px 12px;font-size:11px;justify-content:center}
.recovery-open-btn{min-width:96px}

.recovery-detail-shell{background:#f6f8fc}
.recovery-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px 19px;background:linear-gradient(135deg,#1d306b,#3e59ae);color:#fff}
.recovery-detail-identity{display:flex;align-items:center;gap:13px;min-width:0}
.recovery-detail-avatar{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);font-size:16px;font-weight:900}
.recovery-detail-hero h2{margin:0;color:#fff;font-size:20px}
.recovery-detail-hero p{margin:4px 0 0;color:#dce5ff;font-size:10.5px}
.recovery-detail-balance{text-align:right}
.recovery-detail-balance span{display:block;color:#dce5ff;font-size:9.5px;text-transform:uppercase;font-weight:800}
.recovery-detail-balance b{display:block;margin-top:3px;color:#fff;font-size:29px}
.recovery-detail-actions{display:flex;flex-wrap:wrap;gap:7px;padding:12px 15px;border-bottom:1px solid var(--line);background:#fff}
.recovery-detail-actions .btn{padding:7px 10px;font-size:10.5px}
.recovery-back{margin-right:auto}
.recovery-timeline{display:grid;gap:9px;padding:14px}
.recovery-timeline-item{position:relative;display:grid;grid-template-columns:105px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 2px 9px rgba(34,53,111,.04)}
.recovery-timeline-item:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:#d39a20}
.recovery-timeline-item.credit:before{background:var(--recovery-green)}
.recovery-timeline-item.history:before{background:#8793a0}
.recovery-timeline-date strong{display:block;color:var(--accent);font-size:11px}
.recovery-timeline-date span{display:block;margin-top:2px;color:var(--ink-soft);font-size:9px}
.recovery-timeline-main{min-width:0}
.recovery-timeline-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-weight:900;font-size:11.5px}
.recovery-timeline-comment{margin-top:4px;color:var(--ink-soft);font-size:10px;white-space:normal;overflow-wrap:anywhere}
.recovery-timeline-author{margin-top:4px;color:#7b8498;font-size:9px}
.recovery-timeline-value{text-align:right;white-space:nowrap}
.recovery-timeline-value b{font-size:15px}
.recovery-timeline-value.credit b{color:var(--recovery-green)}
.recovery-timeline-value.debit b{color:#9a5800}
.recovery-timeline-actions{display:flex;gap:5px;justify-content:flex-end;margin-top:6px}
.recovery-timeline-actions .btn{padding:5px 7px;font-size:9px}

@media(max-width:1100px){
  .recovery-summary-modern{grid-template-columns:repeat(3,1fr)!important}
  .recovery-toolbar-modern{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .recovery-toolbar-modern .recovery-refresh{grid-column:1/-1;justify-self:end}
}
@media(max-width:720px){
  .recovery-summary-modern{grid-template-columns:repeat(2,1fr)!important}
  .recovery-toolbar-modern{grid-template-columns:1fr!important}
  .recovery-toolbar-modern .recovery-refresh{grid-column:auto;justify-self:stretch;justify-content:center}
  .recovery-detail-hero{grid-template-columns:1fr}
  .recovery-detail-balance{text-align:left}
  .recovery-timeline-item{grid-template-columns:1fr}
  .recovery-timeline-value{text-align:left}
  .recovery-row-actions{justify-content:flex-start}
}
@media(max-width:480px){.recovery-summary-modern{grid-template-columns:1fr!important}}
