/* === CommissionsView === */

.headerActions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Quote request form */
.quoteForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  background: rgba(255, 107, 53, 0.04);
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: 4px;
}

.quoteFormRow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.inputLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Quote result card */
.quoteCard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  background: rgba(61, 90, 108, 0.08);
  border: 1px solid rgba(61, 90, 108, 0.18);
  border-radius: 4px;
}

.quoteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quoteShipName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--star-white);
}

.quoteShipClass {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--shell-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Quote details grid */
.quoteDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.quoteStat {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.quoteStatIcon {
  display: flex;
  align-items: center;
  color: var(--hull-grey);
}

.quoteStatLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
}

.quoteStatValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--plasma-cyan);
  font-weight: 600;
}

.quoteStatValueCredits {
  composes: quoteStatValue;
  color: var(--warning-yellow);
}

/* Materials list */
.materialsSection {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.materialsLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.materialsList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.materialTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--laser-blue);
  background: rgba(77, 171, 247, 0.08);
  border: 1px solid rgba(77, 171, 247, 0.2);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}

/* Commission options row */
.quoteActions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Commission status cards */
.commissionsList {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.commissionCard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  background: rgba(61, 90, 108, 0.08);
  border: 1px solid rgba(61, 90, 108, 0.18);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.commissionCard:hover {
  background: rgba(61, 90, 108, 0.14);
  border-color: rgba(61, 90, 108, 0.3);
}

.commissionCardReady {
  composes: commissionCard;
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.04);
}

.commissionCardReady:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.08);
}

.commissionTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.commissionInfo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.commissionName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statusBadge {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.08rem 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.statusBuilding {
  composes: statusBadge;
  color: var(--shell-orange);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.statusReady {
  composes: statusBadge;
  color: var(--bio-green);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.statusGathering {
  composes: statusBadge;
  color: var(--warning-yellow);
  background: rgba(255, 217, 61, 0.12);
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.commissionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.commissionStat {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.commissionStatIcon {
  display: flex;
  align-items: center;
  color: var(--hull-grey);
}

.commissionStatLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
}

.commissionStatValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--plasma-cyan);
  font-weight: 600;
}

/* Progress bar */
.progressBarOuter {
  height: 4px;
  background: rgba(61, 90, 108, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progressBarInner {
  height: 100%;
  background: var(--shell-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progressBarReady {
  composes: progressBarInner;
  background: var(--bio-green);
}

.commissionActions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* Materials progress */
.materialsProgress {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.materialProgressRow {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.materialProgressName {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--chrome-silver);
  min-width: 5rem;
}

.materialProgressValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--plasma-cyan);
  font-weight: 600;
}

.materialProgressComplete {
  composes: materialProgressValue;
  color: var(--bio-green);
}

/* Mobile */
@media (max-width: 768px) {
  .inputLabel { font-size: 0.68rem; }
  .quoteStatLabel { font-size: 0.68rem; }
  .materialsLabel { font-size: 0.68rem; }
  .materialProgressName { font-size: 0.68rem; }
  .materialProgressValue { font-size: 0.68rem; }
  .commissionStatLabel { font-size: 0.68rem; }
  .statusBadge { font-size: 0.68rem; }
}
