/* ═══════════════════════════════════════════════════════════════
   NETGEN CRM — Shared Mobile Utility Classes
   All selectors are scoped to @media (max-width: 767px) unless noted
   ═══════════════════════════════════════════════════════════════ */

/* ── Global input zoom prevention (iOS) ──────────────────────── */
@media (max-width: 767px) {
  input.form-control,
  select.form-select,
  textarea.form-control {
    font-size: 16px !important;
  }
}

/* ── Mobile list cards ───────────────────────────────────────── */
.mobile-list-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
  min-height: 48px;
}
.mobile-list-card:hover,
.mobile-list-card:active {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  color: inherit;
  text-decoration: none;
}
.mobile-list-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
  line-height: 1.3;
}
.mobile-list-card__meta {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mobile-list-card__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Mobile filter button ────────────────────────────────────── */
.mobile-filter-btn {
  width: 100%;
  text-align: left;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
}
.mobile-filter-btn:hover { background: #e9ecef; }

/* ── FAB on list screens ─────────────────────────────────────── */
.list-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bs-primary, #0d6efd);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.list-fab:hover { color: white; text-decoration: none; }
.list-fab:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* ── Debt bar (aging/debtors) ────────────────────────────────── */
.debt-bar-row {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #e9ecef;
  margin-top: 8px;
}
.debt-bar-current  { background: #198754; }
.debt-bar-30       { background: #ffc107; }
.debt-bar-60       { background: #fd7e14; }
.debt-bar-90plus   { background: #dc3545; }

/* ── Table horizontal scroll affordance ─────────────────────── */
.table-scroll-hint {
  font-size: 11px;
  color: #adb5bd;
  text-align: right;
  margin-bottom: 4px;
}
@media (min-width: 768px) {
  .table-scroll-hint { display: none; }
}
