/* ============================================================
 * Event expenses (Phase 1) — additive, isolated stylesheet.
 * New classes only. Reuses the portal's card / data-table /
 * kpi / section / btn / field styles from styles.css.
 * Neutral grays so it sits on any portal theme.
 * ============================================================ */

.exp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}
.exp-pill.mq-pos  { background: var(--positive-soft); color: #246b4c; border-color: #bfdccb; }
.exp-pill.mq-zero { background: var(--warning-soft); color: var(--warning); border-color: #e4d2a6; }
.exp-pill.mq-neg  { background: var(--danger-soft); color: var(--danger); border-color: #e6c3bd; }

.exp-row { cursor: pointer; transition: background 0.12s ease; }
.exp-row:hover { background: rgba(127, 127, 127, 0.10); }

.exp-cat {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-search {
  background: rgba(127, 127, 127, 0.10);
  border: 1px solid rgba(127, 127, 127, 0.28);
  color: inherit;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  min-width: 230px;
}
.exp-search:focus { outline: none; border-color: currentColor; }

.exp-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.exp-form .field { display: flex; flex-direction: column; gap: 5px; }
.exp-form .field > span { font-size: 0.8rem; opacity: 0.72; }
.exp-form .field input,
.exp-form .field select {
  background: rgba(127, 127, 127, 0.10);
  border: 1px solid rgba(127, 127, 127, 0.28);
  color: inherit;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.exp-form .field input:focus,
.exp-form .field select:focus { outline: none; border-color: currentColor; }
.exp-field-wide { grid-column: 1 / -1; }

/* footer total row for the expense table (only this table has a tfoot) */
.data-table tfoot td { padding-top: 10px; border-top: 1px solid rgba(127, 127, 127, 0.25); }

@media (max-width: 720px) {
  .exp-form-grid { grid-template-columns: 1fr; }
}
