/*! Task’in — © 2026 Fandry Ekwalla. Tous droits réservés. */
/* ===== Qualité : classeur des écoutes (Mois › Pôle › Agent › Semaine) et grille d'audit plein écran ===== */
.qb-good { color: var(--green-ink); } .qb-warn { color: var(--amber-ink); } .qb-bad { color: var(--red-ink); }
.qb-loading, .qb-note { color: var(--text2); font-size: 13px; margin: 8px 0; }
.qb-rule { margin: 0 0 12px; font-size: 13px; color: var(--text2); }
.qb-rule b { color: var(--text); }

.qb-months { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.qb-month { flex: 0 0 auto; min-width: 150px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 13px; cursor: pointer; font: inherit; color: var(--text); }
.qb-month span { display: block; font-size: 12px; color: var(--text2); }
.qb-month b { display: block; font-size: 16px; margin-top: 2px; }
.qb-month i { display: block; height: 5px; border-radius: 9px; background: var(--surface2); margin-top: 6px; overflow: hidden; }
.qb-month u { display: block; height: 100%; background: var(--ocean); }
.qb-month:hover { border-color: var(--border2); }
.qb-month.is-on { border-color: var(--ocean); box-shadow: 0 0 0 3px var(--ocean-dim); }

.qb-poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.qb-pole { text-align: left; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--c); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--text); transition: opacity .15s, box-shadow .15s; }
.qb-pole h4 { margin: 4px 0 0; font-size: 15px; }
.qb-pole.is-on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.qb-pole.is-dim { opacity: .55; }
.qb-pole-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.qb-pole-k { display: flex; gap: 18px; margin-top: 8px; }
.qb-pole-k b { display: block; font-size: 19px; }
.qb-pole-k span { font-size: 11.5px; color: var(--text2); }

.qb-sec { margin-bottom: 18px; }
.qb-sec > h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.qb-table-wrap { overflow-x: auto; }
.qb-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 760px; }
.qb-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text2); text-align: left; padding: 0 6px; font-weight: 700; white-space: nowrap; }
.qb-table td, .qb-table tbody th { background: var(--surface); padding: 7px 6px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
.qb-table tbody th { border-left: 1px solid var(--border); border-radius: 10px 0 0 10px; width: 22%; }
.qb-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 10px 10px 0; width: 130px; }
.qb-agent { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.qb-agent > span:last-child { font-weight: 700; font-size: 13px; }
.qb-agent small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text2); }
.qb-agent:hover > span:last-child { color: var(--ocean-ink); }
.qb-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 42px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 13px; border: 1.5px solid transparent; cursor: pointer; background: var(--surface2); color: var(--text); }
.qb-cell small { font-weight: 500; font-size: 11px; color: inherit; opacity: .8; }
.qb-cell.is-done.qb-good { background: var(--green-dim); }
.qb-cell.is-done.qb-warn { background: var(--amber-dim); }
.qb-cell.is-done.qb-bad { background: var(--red-dim); }
.qb-cell.is-now { border-color: var(--ocean); background: color-mix(in srgb, var(--ocean) 8%, var(--surface)); color: var(--ocean-deep-ink); }
.qb-cell.is-late { border: 1.5px dashed var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); color: var(--red-ink); }
.qb-cell.is-draft { border: 1.5px dashed var(--amber); background: var(--amber-dim); color: var(--amber-ink); }
.qb-cell.is-off { color: var(--text3); font-weight: 600; background: repeating-linear-gradient(135deg, var(--surface2) 0 6px, transparent 6px 12px); border-color: var(--border); }
.qb-cell.is-future { color: var(--text3); font-weight: 500; cursor: default; }
.qb-cell:not(.is-future):hover { filter: brightness(.97); border-color: var(--border2); }
.qb-spark { color: var(--text2); }
.qb-spark.good { color: var(--green-ink); } .qb-spark.warn { color: var(--amber-ink); } .qb-spark.bad { color: var(--red-ink); }

/* Fiche agent */
.qb-agent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.qb-agent-kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.qb-agent-kpis b { display: block; font-size: 19px; }
.qb-agent-kpis span { font-size: 11.5px; color: var(--text2); }
.qb-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.qb-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.qb-chart-head small { color: var(--text2); font-size: 11.5px; }
.qb-chart svg { width: 100%; height: auto; max-height: 240px; display: block; }
.qb-chart line { stroke: var(--border); stroke-width: 1; }
.qb-chart line.qb-goal { stroke: var(--green); stroke-dasharray: 5 4; }
.qb-chart text { font-size: 11px; fill: var(--text2); }
.qb-dot { fill: var(--ocean); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.qb-dot.qb-good { fill: var(--green); } .qb-dot.qb-warn { fill: var(--amber); } .qb-dot.qb-bad { fill: var(--red); }
.qb-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.qb-pillars div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 12px; }
.qb-pillars i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 9px; background: var(--surface2); overflow: hidden; }
.qb-pillars u { display: block; height: 100%; background: var(--ocean); }
.qb-pillars u.good, .qa-pbar u.good { background: var(--green); } .qb-pillars u.warn, .qa-pbar u.warn { background: var(--amber); } .qb-pillars u.bad, .qa-pbar u.bad { background: var(--red); }
.qb-month-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px; margin-bottom: 10px; }
.qb-month-sec > summary { cursor: pointer; padding: 9px 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.qb-month-sec > summary span { color: var(--text2); font-size: 12.5px; }
.qb-week h5 { margin: 8px 0 6px; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: .03em; }
.qb-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface2); border: 1px solid transparent; border-radius: 11px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; font: inherit; color: var(--text); }
.qb-card:hover { border-color: var(--border2); }
.qb-card.is-draft { border: 1.5px dashed var(--amber); background: var(--amber-dim); }
.qb-card-score { min-width: 64px; font-size: 17px; font-weight: 800; }
.qb-card-main { flex: 1; min-width: 0; }
.qb-card-main b { display: block; font-size: 13px; }
.qb-card-main small { color: var(--text2); font-size: 11.5px; }
.qb-card-cta { color: var(--ocean-ink); font-weight: 700; font-size: 12px; white-space: nowrap; }

/* ===== Grille d'audit plein écran ===== */
body.qa-open { overflow: hidden; }
.qa-overlay { position: fixed; inset: 0; z-index: 1200; background: var(--bg); color: var(--text); }
.qa-overlay[hidden] { display: none; }
.qa-shell { display: flex; flex-direction: column; height: 100%; }
.qa-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: #13294B; color: #fff; }
.qa-title { flex: 1; min-width: 220px; }
.qa-title b { display: block; font-size: 15px; }
.qa-title small { color: #BFDBFE; font-size: 12px; }
.qa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-btn { border: 0; border-radius: 9px; padding: 8px 13px; font: inherit; font-weight: 700; font-size: 12.5px; background: rgba(255, 255, 255, .13); color: #fff; cursor: pointer; }
.qa-btn:hover { background: rgba(255, 255, 255, .22); }
.qa-btn.is-pri { background: #2563EB; } .qa-btn.is-pri:hover { background: #1D4ED8; }
.qa-btn:disabled { opacity: .6; cursor: default; }
.qa-error { margin: 0; padding: 8px 18px; background: var(--red-dim); color: var(--red-ink); font-weight: 600; font-size: 13px; }
.qa-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 310px; gap: 14px; padding: 14px 18px; }
.qa-left, .qa-right { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.qa-main { overflow-y: auto; scroll-behavior: smooth; padding-right: 2px; }
.qa-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.qa-form { display: grid; gap: 9px; }
.qa-form label, .qa-k { display: grid; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text2); }
.qa-form select, .qa-form input, .qa-right textarea { width: 100%; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; }
.qa-form select:disabled, .qa-form input:disabled, .qa-right textarea:disabled { background: var(--surface2); color: var(--text); }
.qa-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.qa-form label { min-width: 0; } .qa-form input, .qa-form select { min-width: 0; }
.qa-steps { display: grid; gap: 3px; padding: 8px; }
.qa-step { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: none; border: 0; border-radius: 9px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.qa-step small { font-weight: 500; color: var(--text2); white-space: nowrap; }
.qa-step:hover { background: var(--surface2); }
.qa-step.is-on { background: var(--ocean-dim); color: var(--ocean-deep-ink); }
.qa-step.is-done span::after { content: ' ✓'; color: var(--green-ink); }
.qa-keys { font-size: 11.5px; color: var(--text2); line-height: 1.9; margin: 0 4px; }
.qa-keys kbd { display: inline-block; border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: 11px; background: var(--surface); color: var(--text); }
.qa-pillar { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; scroll-margin-top: 4px; }
.qa-pillar > h3 { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.qa-pillar > h3 span { font-weight: 600; color: var(--text2); font-size: 12px; }
.qa-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--surface2); outline: none; }
.qa-row:last-child { border-bottom: 0; }
.qa-row.is-focus { background: color-mix(in srgb, var(--ocean) 6%, var(--surface)); box-shadow: inset 3px 0 0 var(--ocean); }
.qa-row:focus-visible { box-shadow: inset 3px 0 0 var(--ocean), 0 0 0 2px var(--ocean-dim); }
.qa-label { font-weight: 600; font-size: 13px; }
.qa-label small { color: var(--text2); font-weight: 500; }
.qa-seg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.qa-seg button { border: 1px solid var(--border); background: var(--surface); color: var(--text2); border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.qa-seg button:hover:not(:disabled) { border-color: var(--border2); color: var(--text); }
.qa-seg button:disabled { cursor: default; }
.qa-seg button.is-on.is-c { background: #16A34A; border-color: #16A34A; color: #fff; }
.qa-seg button.is-on.is-p { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.qa-seg button.is-on.is-n { background: #DC2626; border-color: #DC2626; color: #fff; }
.qa-seg button.is-on.is-x { background: #64748B; border-color: #64748B; color: #fff; }
.qa-seg .qa-cbtn { padding: 6px 8px; }
.qa-seg .qa-cbtn.is-on { border-color: var(--ocean); background: var(--ocean-dim); }
.qa-comment { grid-column: 1 / -1; width: 100%; font: inherit; font-size: 12.5px; border: 1px dashed var(--border2); border-radius: 8px; padding: 6px 9px; background: var(--surface); color: var(--text); resize: vertical; }
.qa-si { background: color-mix(in srgb, var(--red) 5%, var(--surface)); }
.qa-si .qa-label { color: var(--red-ink); }
.qa-si.is-on { background: var(--red-dim); }
.qa-stepnav { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 16px; }
.qa-recap { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 16px; border-bottom: 1px solid var(--surface2); font-size: 13px; }
.qa-recap ul { grid-column: 1 / -1; margin: 2px 0 0 18px; padding: 0; color: var(--text2); }
.qa-recap small { grid-column: 1 / -1; color: var(--text2); }
.qa-score { text-align: center; }
.qa-donut { width: 140px; height: 140px; margin: 4px auto; display: block; }
.qa-donut text { font-size: 8px; font-weight: 800; fill: var(--text); }
.qa-ring { stroke: var(--ocean); transition: stroke-dasharray .2s; }
.qa-ring.qb-good { stroke: var(--green); } .qa-ring.qb-warn { stroke: var(--amber); } .qa-ring.qb-bad { stroke: var(--red); }
.qa-score > small { display: block; color: var(--text2); font-size: 12px; margin-bottom: 6px; }
.qa-si-banner { margin: 6px 0; padding: 7px 10px; border-radius: 9px; background: var(--red-dim); color: var(--red-ink); font-weight: 700; font-size: 12.5px; }
.qa-pbar { text-align: left; margin: 7px 0; }
.qa-pbar div { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.qa-pbar i { display: block; height: 7px; border-radius: 9px; background: var(--surface2); margin-top: 3px; overflow: hidden; }
.qa-pbar u { display: block; height: 100%; background: var(--ocean); }
.qa-right textarea { margin: 4px 0 8px; resize: vertical; }
.qa-check { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; margin-bottom: 10px; }
.qa-del { margin-top: 4px; color: var(--red-ink); }
.qa-body.is-steps .qa-main { max-width: 900px; width: 100%; justify-self: center; }

@media (max-width: 1100px) {
  .qa-body { grid-template-columns: 240px minmax(0, 1fr); }
  .qa-right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .qa-right > .qa-card { flex: 1 1 280px; }
  .qa-body { overflow-y: auto; }
}
@media (max-width: 720px) {
  .qa-body { grid-template-columns: 1fr; padding: 10px; }
  .qa-left, .qa-main, .qa-right { overflow: visible; }
  .qa-row { grid-template-columns: 1fr; }
  .qa-seg { justify-content: flex-start; }
}
.dr-mr-notes { margin: 6px 0 0 18px; padding: 0; font-size: 12.5px; color: var(--text2); } .dr-mr-notes b { color: var(--text); }

/* Admin › Qualité : même lecture par semaine que le classeur du superviseur */
.aq-weeks { display: flex; gap: 4px; margin-top: 4px; }
.aq-wk { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface2); color: var(--text3); border: 1px solid transparent; }
.aq-wk.is-done { background: var(--green-dim); color: var(--green-ink); }
.aq-wk.is-draft { background: var(--amber-dim); color: var(--amber-ink); border-style: dashed; border-color: var(--amber); }
.aq-wk.is-now { border-color: var(--ocean); color: var(--ocean-ink); background: var(--surface); }
.aq-wk.is-late { border: 1px dashed var(--red); color: var(--red-ink); background: var(--surface); }
.aq-wk.is-off { background: repeating-linear-gradient(135deg, var(--surface2) 0 4px, transparent 4px 8px); }
.aq-late { color: var(--red-ink); font-style: normal; font-weight: 700; font-size: 11.5px; } h3 .aq-late { font-size: inherit; }
.aq-listen-rule { margin: 4px 0 10px; font-size: 12.5px; color: var(--text2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qb-cell.is-free { border: 1.5px dashed var(--border2); color: var(--text2); background: var(--surface); }
