/* === BROKER INBOX — extends admin-rates.css variables === */

/* Broker ID badge in nav */
.broker-id-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 4px 14px;
}

/* === STATUS FILTER TABS === */
.status-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.status-tab {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.status-tab:hover { color: var(--cream); border-color: rgba(255,255,255,0.15); }
.status-tab--active {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.35);
  color: var(--gold);
}
.status-tab--pending  { }
.status-tab--quoted   { }
.status-tab--won      { }
.status-tab--lost     { }

/* === STATUS PILLS === */
.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.status-pill--pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.status-pill--quoted  { background: rgba(96,165,250,0.12); color: #60a5fa; }
.status-pill--won     { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-pill--lost    { background: rgba(143,163,191,0.1); color: var(--text-secondary); }

/* === QUOTES TABLE === */
.quotes-table-wrap { overflow-x: auto; }
.quotes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.quotes-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.quotes-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.quotes-table tbody tr:last-child td { border-bottom: none; }
.quotes-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.quote-row--pending .quote-id { color: #fbbf24; }
.quote-row--won     .quote-id { color: #4ade80; }
.quote-row--lost                { opacity: 0.6; }

.quote-id       { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--gold); }
.quote-corridor { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--cream); }
.quote-amount   { font-weight: 500; }
.quote-rate     { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--cream); }
.quote-age      { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* === ACTION BUTTONS === */
.btn-claim {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-claim:hover { opacity: 0.85; }

.btn-view {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-view:hover { color: var(--cream); border-color: rgba(255,255,255,0.25); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
  margin-top: 4px;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--cream); border-color: rgba(255,255,255,0.3); }

.btn-won {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-won:hover { background: rgba(74,222,128,0.2); }

.btn-lost {
  background: rgba(239,68,68,0.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-lost:hover { background: rgba(239,68,68,0.16); }

.btn-small { padding: 6px 14px; font-size: 12px; }

/* === DETAIL PAGE === */
.admin-main--narrow { max-width: 720px; }

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  margin-right: 12px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--cream); }

.detail-card {
  background: var(--navy-light);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--cream);
}
.detail-card-time { font-size: 12px; color: var(--text-secondary); }

.detail-grid { padding: 8px 0; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.detail-row:last-child { border-bottom: none; }
.detail-row--full { flex-direction: column; gap: 6px; }
.detail-label { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.detail-value { font-size: 14px; font-weight: 500; color: var(--cream); text-align: right; }
.detail-value--highlight {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
}
.detail-value--gold {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--gold);
}
.detail-value--note {
  text-align: left;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* === ACTION PANEL === */
.action-panel {
  background: var(--navy-light);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.action-panel-header {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 12px;
}
.action-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* === FORMS === */
.respond-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-input {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: rgba(201,168,76,0.5); }
.form-textarea {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 80px;
  resize: vertical;
  transition: border-color 0.15s;
}
.form-textarea:focus { outline: none; border-color: rgba(201,168,76,0.5); }

/* === OUTCOME ROW === */
.outcome-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* === OUTCOME CARD (terminal state) === */
.outcome-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-light);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.outcome-card--won  { border-color: rgba(74,222,128,0.25); }
.outcome-card--lost { border-color: rgba(143,163,191,0.15); }
.outcome-icon { font-size: 24px; }
.outcome-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .status-tabs { gap: 6px; }
  .status-tab { padding: 6px 12px; font-size: 12px; }
  .quotes-table th, .quotes-table td { padding: 10px 8px; }
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-value { text-align: left; }
  .outcome-row { flex-direction: column; }
}
