/* AV-SG Gestion Client v1.2.0 DEV — Dossier client enrichi */
.gc-client-dossier{margin:18px 0 20px;border-top:1px solid var(--line);padding-top:17px}.gc-client-dossier-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.gc-client-dossier-head h3{margin:0 0 3px;font-size:16px}.gc-client-dossier-head p{margin:0;color:var(--muted);font-size:12px}.gc-client-module-summary{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:12px}.gc-client-module-card{border:1px solid var(--line);border-radius:11px;padding:10px;display:flex;align-items:center;gap:8px;background:var(--white,#fff)}.gc-client-module-card>span{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--soft,#f5f8f5);color:var(--gc-accent);font-weight:800}.gc-client-module-card strong{display:block;font-size:15px;line-height:1}.gc-client-module-card small{display:block;color:var(--muted);font-size:9px;margin-top:4px;white-space:nowrap}.gc-client-dossier-section{border:1px solid var(--line);border-radius:11px;margin-top:8px;overflow:hidden;background:var(--white,#fff)}.gc-client-dossier-section>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:11px 13px;font-weight:700}.gc-client-dossier-section>summary::-webkit-details-marker{display:none}.gc-client-dossier-title{display:flex;align-items:center;gap:9px}.gc-client-dossier-title>b{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--soft,#f5f8f5);color:var(--gc-accent)}.gc-client-dossier-title em{font-style:normal;background:var(--soft,#f5f8f5);border-radius:999px;padding:2px 7px;font-size:10px}.gc-client-dossier-toggle{color:var(--muted)}.gc-client-dossier-section[open] .gc-client-dossier-toggle{transform:rotate(180deg)}.gc-client-dossier-body{border-top:1px solid var(--line);padding:11px 12px}.gc-client-dossier-actions{display:flex;justify-content:flex-end;margin-bottom:8px}.gc-client-module-list{display:flex;flex-direction:column}.gc-client-module-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 2px;border-top:1px solid var(--line);text-decoration:none;color:inherit}.gc-client-module-row:first-child{border-top:0}.gc-client-module-row>span:first-child{min-width:0}.gc-client-module-row>span:last-child{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap;text-align:right}.gc-client-module-row strong,.gc-client-module-row b{font-size:12px}.gc-client-module-row small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.gc-client-module-row a{color:var(--gc-accent);font-weight:700;text-decoration:none}.gc-status.status-draft{background:#eceff1;color:#4c5c66;border-color:#d7dde1}.gc-status.status-sent,.gc-status.status-open{background:#e5edf3;color:#3c6f91;border-color:#c9dbe8}.gc-status.status-accepted,.gc-status.status-received,.gc-status.status-closed{background:#e7f3e9;color:#176a2f;border-color:#cfe5d4}.gc-status.status-refused,.gc-status.status-refunded,.gc-status.status-terminated{background:#f9e5e3;color:#c43e37;border-color:#e9b5b1}.gc-status.status-expired,.gc-status.status-waiting{background:#fff0d9;color:#98620b;border-color:#ead3a8}
@media(max-width:900px){.gc-client-module-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.gc-client-module-summary{grid-template-columns:repeat(2,1fr)}.gc-client-module-row{align-items:flex-start;flex-direction:column}.gc-client-module-row>span:last-child{text-align:left;justify-content:flex-start}.gc-client-dossier-actions{justify-content:stretch}.gc-client-dossier-actions .gc-secondary{width:100%}}
.gc-client-dialog .gc-secret-toggle svg{width:18px;height:18px;display:block;fill:currentColor;margin:auto}.gc-client-dialog .gc-secret-toggle.is-shown{background:var(--soft,#f5f8f5)}
/* v0.4.34 — contraste fiche client en mode sombre */
.avsg-gc-app.gc-theme-dark .gc-client-dossier-title em {
  background: #2d3b34 !important;
  color: #f5f7f4 !important;
  border: 1px solid #46574e !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dossier-title > b {
  background: #26342e !important;
  color: #9ce0ac !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-secret-toggle {
  background: #26342e !important;
  color: #f5f7f4 !important;
  border-color: #52645b !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-secret-toggle svg {
  fill: currentColor !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-secret-value {
  color: #f5f7f4 !important;
}
.avsg-gc-app.gc-theme-dark .gc-password-field-toggle {
  background: #26342e !important;
  color: #f5f7f4 !important;
  border-color: #52645b !important;
}

/* v0.4.47 — Client record / Recent follow-ups. Overrides hard-coded white
   backgrounds in client-production-v030.css, without affecting light mode. */
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups,
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .gc-empty-compact,
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .empty.compact {
  background: #18211d !important;
  border-color: #3a4841 !important;
  color: #f2f5f3 !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .gc-empty-compact strong,
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .empty.compact strong {
  color: #f2f5f3 !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .gc-empty-compact span,
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups .empty.compact span {
  color: #b9c3bd !important;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups a.gc-secondary {
  background: #26382d !important;
  color: #edf4ed !important;
  border: 1px solid #4b6753 !important;
  text-decoration: none;
}
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups a.gc-secondary:hover,
.avsg-gc-app.gc-theme-dark .gc-client-dialog .gc-production-followups a.gc-secondary:focus-visible {
  background: #315340 !important;
  color: #fff !important;
}
/* Five indicators: no fifth orphan card on large displays. */
.avsg-gc-app .gc-stat-cards.gc-financial-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1250px) {
  .avsg-gc-app .gc-stat-cards.gc-financial-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .avsg-gc-app .gc-stat-cards.gc-financial-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .avsg-gc-app .gc-stat-cards.gc-financial-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
