/* -------------------- */
/* Results UI */
/* -------------------- */

.results-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.results-title__text{
  font-size: 18px;
  font-weight: 700;
}

.results-actions{
  display:flex;
  gap: var(--space-2);
}

.icon-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: rgb(255, 255, 255);
  fill: none;
  stroke-width: 2;
}

.icon-btn--ok {
  outline: 2px solid rgba(120, 255, 120, 0.35);
}

.results-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  border-radius: 14px;
  padding: 14px;
}

.card__label{
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card__value{
  font-size: 16px;
  font-weight: 700;
}

.card--split{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.card__row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:center;
}

.unknown-box{
  border: 1px solid rgba(255,180,0,0.25);
  background: rgba(255,180,0,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: var(--space-4);
}

.unknown-box__title{
  font-weight: 700;
  margin-bottom: 8px;
}

.unknown-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 6px;
}

.unknown-list li{
  display:flex;
  justify-content:space-between;
  gap: 12px;
}

.results-table-wrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.results-table{
  width:100%;
  border-collapse:collapse;
  min-width: 980px;
}

.results-table thead th{
  text-align:left;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.results-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.col-num{ text-align:right; white-space:nowrap; }
.col-qty{ text-align:right; white-space:nowrap; width: 120px; }
.col-name{ width: 40%; }

.namecell{
  display:flex;
  align-items:center;
  gap: 10px;
}

.type-icon{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.namecell__name{
  font-weight: 700;
}

.empty-row{
  padding: 18px 12px;
  text-align:center;
}

/* Mobile: results cards collapse */
@media (max-width: 980px){
  .results-cards{ grid-template-columns: 1fr; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand__img {
  width: 32px;
  height: 32px;
  border-radius: 4px; /* matches EVE UI feel */
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand__text {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* -------------------- */
/* Buyback cheat sheet */
/* -------------------- */

.cheatsheet{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  border-radius: 14px;
  padding: 14px;
}

.cheatsheet__summary{
  list-style: none;
  cursor: pointer;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--space-4);
}

.cheatsheet__summary::-webkit-details-marker{ display:none; }

.cheatsheet__summary-left{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.cheatsheet__title{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cheatsheet__hint{
  font-size: 12px;
  color: var(--text-muted);
}

.cheatsheet__pill{ pointer-events:none; }

.cheatsheet__pill{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cheatsheet__body{
  margin-top: var(--space-3);
}

.cheatsheet__table-wrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.cheatsheet__table{
  width:100%;
  border-collapse:collapse;
  min-width: 860px; /* closer to results-table density */
}

.cheatsheet__table thead th{
  text-align:left;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cheatsheet__table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.cheatsheet__table tbody tr:hover{
  background: rgba(255,255,255,0.03);
}

.cheatsheet .col-num{ text-align:right; white-space:nowrap; }

