// Status badge pill styles
%badge-base {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-draft {
  @extend %badge-base;
  background-color: #e5e7eb;
  color: #374151;
}

.badge-pending {
  @extend %badge-base;
  background-color: #fef3c7;
  color: #92400e;
}

.badge-approved {
  @extend %badge-base;
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-paid {
  @extend %badge-base;
  background-color: #d1fae5;
  color: #065f46;
}

.badge-rejected {
  @extend %badge-base;
  background-color: #fee2e2;
  color: #991b1b;
}

.receipt-link {
  font-size: 0.8rem;
  margin-left: 4px;
  color: #1d4ed8;
  text-decoration: underline;
}

// Small "Approved/Rejected by X · date" note under the status badge (desktop grid).
.review-meta {
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #6b7280;
}

.review-meta-reject {
  color: #b91c1c;
}

.review-reason {
  margin-top: 2px;
  font-style: italic;
  color: #991b1b;
}

// Mobile card list
// NOTE: display/flex layout lives on the element via Tailwind (flex flex-col gap-3)
// so the responsive `md:hidden` utility wins on desktop. Setting `display: flex`
// here would override `md:hidden` and leak the card list onto the desktop view.

.rmb-empty {
  padding: 24px 0;
  text-align: center;
  color: #6b7280;
}

.rmb-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

  &__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  &__date {
    font-size: 0.8rem;
    color: #6b7280;
  }

  &__amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
  }

  &__desc {
    margin-top: 4px;
    font-weight: 600;
    color: #1f2937;
  }

  &__meta {
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;

    div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 0.85rem;
    }

    dt {
      margin: 0;
      color: #6b7280;
    }

    dd {
      margin: 0;
      color: #374151;
      text-align: right;
    }
  }

  &__footer {
    margin-top: 12px;
  }

  &__reject {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.8rem;
    color: #b91c1c;
  }

  &__reject-reason {
    margin-top: 2px;
    font-weight: 600;
    color: #991b1b;
  }

  &__approved {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #047857;
  }

  &__actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    // Comfortable tap targets; let buttons share the row evenly
    .k-button {
      flex: 1 1 auto;
      min-height: 40px;
      justify-content: center;
    }
  }
}
