.fev-entry-viewer {
  max-width: 100%;
}

.fev-back {
  margin-bottom: 0.75rem;
}

.fev-back-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.fev-back-link:hover,
.fev-back-link:focus {
  background: #f4f4f4;
}

.fev-entry-viewer .fev-intro {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.fev-entry-viewer .fev-user-summary {
  margin: 0 0 1.5rem 0;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  align-items: start;
}

.fev-entry-viewer .fev-user-summary p {
  margin: 0;
  color: #0f172a;
}

.fev-entry-viewer .fev-user-summary strong {
  display: inline-block;
  min-width: 140px;
  color: #334155;
}

.fev-entry-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid #e3e7f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.fev-entry-table th,
.fev-entry-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf0f7;
}

.fev-entry-table thead th {
  background: #f4f6fb;
  color: #111827;
  border-bottom: 1px solid #e0e6f2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.fev-entry-table tbody tr:nth-child(even) {
  background: #f9fbff;
}

.fev-entry-table tbody tr:hover {
  background: #eef3ff;
}

.fev-status-expired {
  color: #b91c1c;
  font-weight: 600;
}

.fev-entry-table td:nth-child(2),
.fev-entry-table th:nth-child(2) {
  white-space: nowrap;
}

.fev-team {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid #d0d0d0;
}

.fev-team-link {
  margin-top: 1.5rem;
}

.fev-team-link .fev-button {
  background: #1a4ed8;
  border-color: #1a4ed8;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(26, 78, 216, 0.2);
}

.fev-team-link .fev-button:hover,
.fev-team-link .fev-button:focus {
  background: #153ea8;
  border-color: #153ea8;
  color: #ffffff;
}

.fev-team-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.fev-team-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid #e3e7f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.fev-team-table th,
.fev-team-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf0f7;
}

.fev-team-table thead th {
  background: #f4f6fb;
  color: #111827;
  border-bottom: 1px solid #e0e6f2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.fev-team-table tbody tr:nth-child(even) {
  background: #f9fbff;
}

.fev-team-table tbody tr:hover {
  background: #eef3ff;
}

.fev-updated {
  margin: 0 0 0.75rem 0;
  padding: 0.5rem 0.75rem;
  background: #e6f6e8;
  border: 1px solid #b8e0bf;
  border-radius: 4px;
}

.fev-member-edit {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #d0d0d0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.fev-member-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.fev-member-summary:hover,
.fev-member-summary:focus {
  background: #eef2f7;
}

.fev-member-edit[open] .fev-member-summary {
  background: #e8f0ff;
  border-color: #c7d2fe;
}

.fev-member-edit-body {
  margin-top: 1rem;
  width: 100%;
}

.fev-member-edit form {
  width: 100%;
}

.fev-member-edit .fev-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.fev-member-edit input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}

.fev-member-edit .fev-button {
  align-self: flex-start;
}


.fev-entry-actions {
  margin-top: 1rem;
}

.fev-entry-actions .fev-button {
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  background: #1a4ed8;
  border-color: #1a4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 78, 216, 0.25);
}

.fev-entry-actions .fev-button:hover,
.fev-entry-actions .fev-button:focus {
  background: #153ea8;
  border-color: #153ea8;
  color: #ffffff;
}

.fev-button {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #f4f4f4;
  font-weight: 600;
  cursor: pointer;
}

.fev-button:hover,
.fev-button:focus {
  background: #ededed;
}
