/* Terminal-style output for reports */

pre code.language-gherkin.report {
  white-space: pre-wrap;
  padding: 1rem;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Fira Code', monospace;
}
.gherkin-line {
  color: #aaa;
  font-style: italic;
}

.gherkin-success {
  color: #00ff88;
  font-weight: bold;
}

.gherkin-fail {
  color: #ff5555;
  font-weight: bold;
}
.gherkin-skip {
  color: #ffff55;
  font-weight: bold;
}
/*  html report table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* let columns expand based on content */
}

.report-table th,
.report-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;   /* remove if you want wrapping */
}

.report-table td a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere; /* allow breaking long hashes/links */
  text-decoration: none;
  color: #007acc;
}

.report-table td a:hover {
  text-decoration: underline;
}
/* -----------------------------
 * Activity tab (modern/mobile)
 * ----------------------------- */

.activity-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.activity-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.activity-address {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(520px, 100%);
  flex: 1 1 auto;
}

.activity-label {
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.9;
}

.activity-account {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.activity-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.activity-select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.activity-btn {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.05s ease;
}

.activity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.activity-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.activity-iconbtn:active,
.activity-btn:active {
  transform: translateY(1px);
}

.activity-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.activity-left {
  min-width: 84px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-time {
  font-size: 12px;
  opacity: 0.75;
}

.activity-badge {
  width: fit-content;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.activity-main {
  flex: 1 1 auto;
  min-width: 0;
}

.activity-title {
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  font-size: 14px;
}

.activity-meta {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.activity-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.activity-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.activity-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.activity-pagerinfo {
  opacity: 0.75;
  font-size: 12px;
}

@media (max-width: 600px) {
  .activity-panel { padding: 10px; }
  .activity-filters { width: 100%; justify-content: flex-start; }
  .activity-select, .activity-btn { flex: 1 1 auto; }
  .activity-left { min-width: 70px; }
}
.activity-tx-table {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  display: grid;
  gap: 6px;
}

.activity-tx-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  font-size: 12px;
}

.tx-key {
  opacity: 0.6;
  font-weight: 600;
}

.tx-value {
  font-family: ui-monospace, monospace;
  word-break: break-all;
  opacity: 0.9;
}
.activity-details {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

.activity-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.activity-details-toggle:active {
  transform: translateY(1px);
}

.activity-details-toggle .chev {
  opacity: 0.8;
  font-size: 12px;
}

.activity-details-body {
  margin-top: 8px;
  display: none;
}

.activity-details-body.open {
  display: block;
}

.activity-tx-table {
  display: grid;
  gap: 6px;
}

.activity-tx-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 12px;
}

.tx-key {
  opacity: 0.6;
  font-weight: 600;
}

.tx-value {
  font-family: ui-monospace, monospace;
  word-break: break-all;
  opacity: 0.9;
}

.activity-details-loading {
  opacity: 0.7;
  font-size: 12px;
  padding: 8px 0;
}
/* -----------------------------------
 * Shared Address/Contract Tag Filter
 * (used by activity + gallery)
 * ----------------------------------- */

.addr-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  min-height: 54px;
}

.addr-tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #cfd6e4;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

.addr-tag:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.addr-tag[aria-pressed="true"]{
  border-color: rgba(0,191,255,.55);
  background: rgba(0,191,255,.12);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(0,191,255,.12) inset;
}

.addr-tag__label{
  font-weight: 700;
  font-size: .85rem;
  color: inherit;
  flex: 0 0 auto;
}

.addr-tag__addr{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  opacity: .95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

.addr-tag__x{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: .7;
  font-size: .95rem;
  line-height: 1;
  padding: 0 2px;
  border-radius: 6px;
}

.addr-tag__x:hover{
  opacity: 1;
  background: rgba(255,255,255,.08);
}

.addr-add{
  display:flex;
  gap: 10px;
  align-items: center;
}

.addr-add__input{
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* invalid input */
.invalid{
  outline: 2px solid rgba(255, 85, 85, .75);
  border-color: rgba(255, 85, 85, .55) !important;
}

/* -----------------------------------
 * Activity filter layout refinement
 * ----------------------------------- */

.activity-filters{
  /* previously row; now a compact stacked panel */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 520px;
  min-width: min(520px, 100%);
}

.activity-filters .addr-tags{
  width: 100%;
}

@media (max-width: 600px){
  .activity-filters{ min-width: 100%; }
  .addr-tag__addr{ max-width: 240px; }
  .addr-add{ flex-direction: column; align-items: stretch; }
}
