/* Workers GO — /taff page */
.wg-taff {
  padding: 1rem;
  width: 100%;
  max-width: min(900px, 100%);
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Même gestion des paddings latéraux que la page Offres */
main.app-content:has(.wg-taff) {
  padding-left: 0;
  padding-right: 0;
}

.wg-taff__h1 {
  font-size: clamp(23px, 7vw, 28px);
  font-weight: 800;
  margin: 0.25rem 0 0;
}

.wg-taff__section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.wg-taff__hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.25rem 1.1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.wg-taff__hero-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 0.35rem;
}
.wg-taff__hero-money {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.wg-taff__hero-amount {
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}
.wg-taff__hero-secured {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.wg-taff__hero-bar {
  margin-top: 0.9rem;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.wg-taff__hero-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6A3EEB, #a78bfa);
  border-radius: 999px;
}
.wg-taff__hero-sub {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.wg-taff__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wg-taff__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  min-width: 0;
  }
.wg-taff__row:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,0.06); }
.wg-taff__row--history { cursor: default; }
.wg-taff__row--history:hover { transform: none; box-shadow: none; }

.wg-taff__row-meta { min-width: 0; }
.wg-taff__row-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wg-taff__row-sub { margin: 2px 0 0; font-size: 0.78rem; color: #64748b; }
.wg-taff__row-amount { font-weight: 700; color: #059669; font-size: 0.95rem; }
.wg-taff__row-chev { color: #cbd5e1; font-size: 1.4rem; line-height: 1; }
.wg-taff__history-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.wg-taff__pending {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.wg-taff__pending-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}
.wg-taff__pending-top > * { min-width: 0; }
.wg-taff__pending-actions { display: flex; gap: 0.5rem; }
.wg-taff__btn {
  flex: 1;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.wg-taff__btn.is-primary { background: #6A3EEB; color: #fff; }
.wg-taff__btn.is-ghost { background: transparent; color: #64748b; border-color: #e2e8f0; }

.wg-taff__empty {
  background: #f8fafc;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.wg-taff__empty a { color: #6A3EEB; font-weight: 600; text-decoration: none; margin-left: 4px; }

.wg-taff__see-all {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #6A3EEB;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  cursor: pointer;
}
