/* ===================================================================
   Dashlet dpToComplete – header (titre masqué)
   =================================================================== */

.dashlet[data-name="dpToComplete"] {
  position: relative;
}

.dashlet[data-name="dpToComplete"] > .panel-heading {
  background: transparent;
  border: none;
  padding: 10px 16px 0;
}

/* Masquer le titre "dpToComplete" */
.dashlet[data-name="dpToComplete"] .panel-heading .panel-title,
.dashlet[data-name="dpToComplete"] .panel-heading .panel-title-text,
.dashlet[data-name="dpToComplete"] .panel-heading .pull-left {
  display: none !important;
}

/* Garder seulement le menu ... */
.dashlet[data-name="dpToComplete"] .panel-heading .dropdown {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
}

/* Le body = la vraie carte (et conteneur du bouton +) */
.dashlet[data-name="dpToComplete"] > .panel-body {
  position: relative;                /* â référence pour le bouton + */
  background: transparent;
  border: none;
  padding: 22px 24px 24px;
}

/* ===================================================================
   Contenu KPI
   =================================================================== */

.iamshiba-kpi-card {
  /* plus de position relative ici, pour éviter le centrage bizarre */
  padding-right: 0;
}

/* "13 dossiers à compléter" */
.iamshiba-kpi-value {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #4f46e5, #8b5cf6, #ec4899, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iamshiba-kpi-sub {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  margin-bottom: 12px;
}

.iamshiba-kpi-footer {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

/* ===================================================================
   Barre de progression : gradient sur 100 % + masque à droite
   =================================================================== */

.iamshiba-kpi-progress {
  position: relative;
  background: #e5e7eb;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin: 6px 0 4px;
}

/* on ne se sert plus de ce div pour la largeur */
.iamshiba-kpi-progress .js-dp-progress {
  display: none;
}

/* dégradé complet sur toute la barre */
.iamshiba-kpi-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #f97316 30%,
    #3b82f6 65%,
    #22c55e 100%
  );
}

/* partie NON complétée, repassée en gris */
.iamshiba-kpi-progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(var(--dp-percent, 0) * 1%);
  background: #e5e7eb;
  transition: left 0.6s cubic-bezier(.4,0,.2,1);
}

/* ===================================================================
   Bouton + façon Apple Card — aligné en bas à gauche, sans ombre
   =================================================================== */

.dashlet[data-name="dpToComplete"] .iamshiba-kpi-cta {
  position: absolute;
  left: 24px;              /* â bas à gauche de toute la carte */
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #111827;     /* fond noir mat */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;        /* â aucune ombre */
  transition: background 0.15s ease-out, transform 0.15s ease-out;
  z-index: 2;
}

.dashlet[data-name="dpToComplete"] .iamshiba-kpi-cta:hover {
  background: #000000;     /* léger foncé au survol */
  transform: scale(1.05);
}

/* ===================================================================
   Popup Apple Card
   =================================================================== */

.iamshiba-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.iamshiba-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Carte centrale façon Apple Card */
.iamshiba-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 24px 28px 20px;
  max-width: 640px;
  width: min(640px, calc(100% - 32px));
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.45);
}

/* Croix de fermeture */
.iamshiba-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.iamshiba-modal-close:hover {
  background: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

/* Header du modal */
.iamshiba-modal-header {
  margin-bottom: 12px;
}

.iamshiba-modal-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.iamshiba-modal-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}

.iamshiba-modal-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

/* Liste des dossiers */
.iamshiba-modal-list {
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

/* Scrollbar light */
.iamshiba-modal-list::-webkit-scrollbar {
  width: 6px;
}
.iamshiba-modal-list::-webkit-scrollbar-track {
  background: transparent;
}
.iamshiba-modal-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

/* Ligne de dossier */
.iamshiba-modal-item {
  width: 100%;
  border: none;
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease-out, transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

/* Hover adouci */
.iamshiba-modal-item:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08); /* plus léger */
}


.iamshiba-modal-item-main {
  display: flex;
  flex-direction: column;
}

.iamshiba-modal-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.iamshiba-modal-item-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.iamshiba-modal-item-percent {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
}

/* Message quand tout est complété */
.iamshiba-modal-empty {
  font-size: 13px;
  color: #4b5563;
  padding: 18px 16px 4px;
}
