/**
 * Fusion 3.0 — Signatures / DocuSign panel styles.
 *
 * WHY: Shared styles for the inline DocuSign panel on the Tickets dashboard.
 * DATE: 2026-05-21
 */

/* ---- Inline panel on tickets dashboard ---- */

.fe30-docu-panel {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.fe30-docu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.fe30-docu-panel-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-navy);
}

.fe30-docu-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-400);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-docu-panel-close::after {
  content: "\2715";
}

.fe30-docu-panel-close:hover {
  color: var(--gray-600);
  background: var(--bg-gray-100);
}

.fe30-docu-tabs {
  margin-bottom: var(--space-4);
}

/* When the panel is open, reset the envelope list border since the panel provides it */
.fe30-docu-panel .fe30-sig-list {
  border: none;
  border-radius: 0;
}

/* ---- Envelope list ---- */

.fe30-sig-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  overflow: hidden;
}

.fe30-sig-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--duration-base) var(--ease-standard);
}

.fe30-sig-row:last-child {
  border-bottom: none;
}

.fe30-sig-row:hover {
  background: var(--bg-gray-50);
}

.fe30-sig-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fe30-sig-row-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--dark-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe30-sig-row-meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Signer chip (deterministic-color initials circle + email) */
.fe30-sig-signer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-top: 2px;
}

.fe30-sig-signer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.fe30-sig-signer-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--brand-orange-light, #fff0e6);
  color: var(--brand-orange, #fb6a18);
}

/* ---- Actions column ---- */

.fe30-sig-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.fe30-sig-actions .fe30-btn {
  white-space: nowrap;
}

/* Subtle icon-only action (hide) */
.fe30-sig-btn-hide {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-sig-btn-hide:hover {
  color: var(--gray-600);
  background: var(--bg-gray-100);
}

/* ---- Empty state ---- */

.fe30-sig-empty {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.fe30-sig-empty-icon {
  font-size: 40px;
  color: var(--gray-300);
  margin-bottom: var(--space-3);
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .fe30-sig-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .fe30-sig-actions {
    justify-content: flex-end;
  }
}
