/* Voucher Tracker - Custom Styles */

body {
  font-size: 0.875rem;
}

/* ── Table row status colors ── */
.row-active {
  background-color: #d1fae5 !important;
}
.row-inactive {
  background-color: #fee2e2 !important;
}
.row-other {
  background-color: #fef9c3 !important;
}

/* Hover override */
#vouchers-table tbody tr.row-active:hover { background-color: #a7f3d0 !important; }
#vouchers-table tbody tr.row-inactive:hover { background-color: #fecaca !important; }
#vouchers-table tbody tr.row-other:hover { background-color: #fef08a !important; }

/* ── Editable cells ── */
span.editable-cell {
  cursor: pointer;
  border-bottom: 1px dashed #6c757d;
}
span.editable-cell:hover {
  background-color: #f0f9ff;
  border-bottom-color: #0d6efd;
}

/* ── DataTable column search row ── */
#column-search-row th {
  padding: 4px 4px;
}
#column-search-row input.col-search {
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* ── Progress area ── */
#progress-area {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

/* ── Compact table ── */
#vouchers-table td,
#vouchers-table th {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ── Notes textarea ── */
#notes-textarea {
  font-family: monospace;
  resize: vertical;
}

/* ── Navbar brand ── */
.navbar-brand {
  letter-spacing: 0.5px;
}

/* ── Responsive table scroll ── */
.table-responsive {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

/* sticky header rows */
#vouchers-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #212529;
}
#vouchers-table thead tr:last-child th {
  position: sticky;
  top: 38px;
  z-index: 1;
  background: #fff;
}
