/* Vendor portal — dashboard payout list and the monthly earnings chart. */

/* Payout schedule list (vendor dashboard) */
.bido-payout-list {
  padding: 16px;
}

.bido-payout-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bx-line);
}

.bido-payout-row:last-child {
  border-bottom: 0;
}

.bido-payout-row .pill {
  align-self: center;
}

.bido-payout-date {
  width: 50px;
  text-align: center;
}

.bido-payout-due-label {
  font-size: var(--bx-text-3xs);
}

.bido-payout-date-day {
  font-family: var(--bx-font-display);
  font-size: var(--bx-text-lg);
}

.bido-payout-body {
  flex: 1;
}

.bido-payout-amount {
  font-size: var(--bx-text-md);
  font-weight: 500;
}

/* "Paid by month" earnings chart (vendor earnings) */
.bido-chart-card {
  padding: 18px;
  margin-bottom: 14px;
}

.bido-chart-card .eyebrow {
  margin-bottom: 12px;
}

.bido-month-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 100px;
}

.bido-month-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* The bar's height + opacity are Rails-computed and stay inline; the colour
   is a state, so the current month gets a modifier class instead. */
.bido-month-bar {
  width: 100%;
  border-radius: var(--bx-r-sm);
  background: var(--bx-ink);
}

.bido-month-bar.current {
  background: var(--bx-accent);
}

.bido-month-label {
  font-size: var(--bx-text-3xs);
}

/* Listing editor form — a responsive field grid that reuses the shared
   .field/.input controls and collapses to one column on phones. */
.bido-vendor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 20px;
  align-items: start;
}

.bido-vendor-form-full {
  grid-column: 1 / -1;
}

.bido-vendor-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bido-vendor-form textarea.input {
  resize: vertical;
  min-height: 96px;
}

.bido-vendor-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.bido-vendor-photo {
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.bido-vendor-photo-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--bx-text-xs);
  color: var(--bx-ink-3);
}

@media (max-width: 760px) {
  .bido-vendor-form { grid-template-columns: 1fr; }
}
