/**
 * Planning → Stakeholders compact card layout (aligned with Overview shell).
 */

#oa-plan-stakeholders.oa-plan-section {
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#oa-plan-stakeholders .oa-sh-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#oa-plan-stakeholders .oa-sh-card {
  border: 1px solid rgba(197, 154, 53, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.07) 0%, rgba(20, 17, 14, 0.96) 100%),
    #161310;
  padding: 12px 14px;
  min-width: 0;
  min-height: 0;
}

#oa-plan-stakeholders .oa-sh-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#oa-plan-stakeholders .oa-sh-card__lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

#oa-plan-stakeholders .oa-sh-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 53, 0.35);
  background: rgba(197, 154, 53, 0.08);
  color: var(--brand-gold, #c59a35);
}

#oa-plan-stakeholders .oa-sh-card__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary, #f2ece0);
}

#oa-plan-stakeholders .oa-sh-card__help {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, #9a9488);
}

#oa-plan-stakeholders .oa-sh-card-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--brand-gold, #c59a35);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  white-space: nowrap;
}

#oa-plan-stakeholders .oa-sh-card-link:hover {
  color: #e0bb62;
}

#oa-plan-stakeholders .oa-sh-table-wrap {
  overflow: visible;
  border: 1px solid rgba(197, 154, 53, 0.22);
  border-radius: 2px;
  background: rgba(12, 10, 8, 0.35);
}

#oa-plan-stakeholders .oa-sh-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
}

#oa-plan-stakeholders .oa-sh-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted, #9a9488);
  border-bottom: 1px solid rgba(197, 154, 53, 0.2);
  white-space: nowrap;
}

#oa-plan-stakeholders .oa-sh-table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(197, 154, 53, 0.1);
  color: var(--text-primary, #f2ece0);
  overflow-wrap: anywhere;
}

#oa-plan-stakeholders .oa-sh-table tbody tr:hover td {
  background: rgba(197, 154, 53, 0.04);
}

#oa-plan-stakeholders .oa-sh-table th:nth-child(1),
#oa-plan-stakeholders .oa-sh-table td:nth-child(1) { width: 15%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(2),
#oa-plan-stakeholders .oa-sh-table td:nth-child(2) { width: 14%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(3),
#oa-plan-stakeholders .oa-sh-table td:nth-child(3) { width: 18%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(4),
#oa-plan-stakeholders .oa-sh-table td:nth-child(4) { width: 16%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(5),
#oa-plan-stakeholders .oa-sh-table td:nth-child(5) { width: 18%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(6),
#oa-plan-stakeholders .oa-sh-table td:nth-child(6) { width: 12%; }
#oa-plan-stakeholders .oa-sh-table th:nth-child(7),
#oa-plan-stakeholders .oa-sh-table td:nth-child(7) { width: 40px; }

#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(1),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(1) { width: 12%; }
#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(2),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(2) { width: 14%; }
#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(3),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(3) { width: 18%; }
#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(4),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(4) { width: 36%; }
#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(5),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(5) { width: 16%; }
#oa-plan-stakeholders .oa-sh-table--communications th:nth-child(6),
#oa-plan-stakeholders .oa-sh-table--communications td:nth-child(6) { width: 40px; }

#oa-plan-stakeholders .oa-plan-stakeholder-input {
  width: 100%;
  min-width: 0;
  font-size: 12.5px;
  padding: 4px 6px;
  border: 1px solid rgba(197, 154, 53, 0.28);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary, #f2ece0);
}

#oa-plan-stakeholders .oa-sh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}

#oa-plan-stakeholders .oa-sh-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a756a;
}

#oa-plan-stakeholders .oa-sh-status.is-active .oa-sh-status-dot {
  background: #4caf7a;
}

#oa-plan-stakeholders .oa-sh-status.is-inactive .oa-sh-status-dot {
  background: #8a6a62;
}

#oa-plan-stakeholders .oa-sh-status.is-pending .oa-sh-status-dot {
  background: #c59a35;
}

#oa-plan-stakeholders .oa-sh-actions-cell {
  text-align: center;
  overflow: visible;
}

#oa-plan-stakeholders .oa-sh-row-menu {
  position: relative;
  display: inline-block;
}

#oa-plan-stakeholders .oa-sh-row-menu-trigger,
#oa-plan-stakeholders .oa-sh-row-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #c59a35;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
}

#oa-plan-stakeholders .oa-sh-row-menu > summary:hover {
  border-color: rgba(197, 154, 53, 0.35);
}

#oa-plan-stakeholders .oa-sh-row-menu > summary::-webkit-details-marker {
  display: none;
}

#oa-plan-stakeholders .oa-sh-row-menu[open] {
  z-index: 40;
}

#oa-plan-stakeholders .oa-sh-row-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 168px;
  border: 1px solid rgba(197, 154, 53, 0.35);
  border-radius: 2px;
  background: var(--oa-surface-card, #1a1814);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 4px;
}

#oa-plan-stakeholders .oa-sh-row-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-primary, #f2ece0);
  font-size: 12px;
  padding: 7px 8px;
  cursor: pointer;
}

#oa-plan-stakeholders .oa-sh-row-menu-panel button:hover {
  background: rgba(197, 154, 53, 0.1);
}

#oa-plan-stakeholders .oa-sh-empty {
  padding: 14px 4px 6px;
}

#oa-plan-stakeholders .oa-sh-empty p {
  margin: 0 0 6px;
  font-size: 12.5px;
}

#oa-plan-stakeholders .oa-sh-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

#oa-plan-stakeholders .oa-sh-add-btn {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

#oa-plan-stakeholders .oa-sh-export-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#oa-plan-stakeholders .oa-sh-export-menu {
  position: relative;
}

#oa-plan-stakeholders .oa-sh-export-menu > summary {
  list-style: none;
  cursor: pointer;
}

#oa-plan-stakeholders .oa-sh-export-menu > summary::-webkit-details-marker {
  display: none;
}

#oa-plan-stakeholders .oa-sh-export-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 3;
  min-width: 100px;
  border: 1px solid rgba(197, 154, 53, 0.35);
  background: var(--oa-surface-card, #1a1814);
  padding: 4px;
}

#oa-plan-stakeholders .oa-sh-export-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-primary, #f2ece0);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
}

#oa-plan-stakeholders .oa-sh-add-form {
  margin-top: 10px;
  border-top: 1px solid rgba(197, 154, 53, 0.15);
  padding-top: 8px;
}

#oa-plan-stakeholders .oa-sh-add-stakeholder-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

#oa-plan-stakeholders .oa-sh-save-actions {
  margin-top: 2px;
}

#oa-plan-stakeholders .oa-sh-email {
  color: var(--brand-gold, #c59a35);
  text-decoration: none;
}

#oa-plan-stakeholders .oa-sh-link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-gold, #c59a35);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

#oa-plan-stakeholders .oa-sh-empty-row td {
  padding: 12px 12px;
  border-bottom: 0;
  height: auto;
  max-height: 72px;
}

#oa-plan-stakeholders .oa-sh-empty-inline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 42px;
  max-height: 56px;
  font-size: 12px;
  line-height: 1.4;
}

#oa-plan-stakeholders .oa-sh-empty-inline strong {
  font-weight: 600;
  color: var(--text-primary, #f2ece0);
}

#oa-plan-stakeholders .oa-sh-empty-inline .muted {
  color: var(--text-muted, #9a9488);
  font-size: 11.5px;
}

#oa-plan-stakeholders .oa-sh-table thead tr {
  height: 34px;
}

#oa-plan-stakeholders .oa-sh-table tbody tr:not(.oa-sh-empty-row) {
  height: 36px;
}

.oa-plan-body--stakeholders-v2 {
  padding: 12px 0 0 !important;
}

#oa-plan-stakeholders .oa-sh-notice,
#oa-plan-stakeholders .oa-sh-error {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
}

#oa-plan-stakeholders .oa-sh-notice {
  color: #7ecf9a;
}

#oa-plan-stakeholders .oa-sh-error {
  color: #e0a090;
}

#oa-plan-stakeholders .oa-sh-add-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.oa-sh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.72);
}

.oa-sh-modal {
  width: min(480px, 100%);
  padding: 16px;
  border: 1px solid rgba(197, 154, 53, 0.38);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.1) 0%, rgba(20, 17, 14, 0.98) 100%),
    #161310;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.oa-sh-modal-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #ece7dd;
}

.oa-sh-modal-head p {
  margin: 0 0 12px;
  font-size: 12px;
}

.oa-sh-comm-form {
  display: grid;
  gap: 8px;
}

.oa-sh-comm-source {
  margin: 0;
  font-size: 11.5px;
}

.oa-sh-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.oa-sh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
