/* ==========================================================================
   Customer Base: the call-back list. Shares the page, summary, filter and
   dialog styles with stock.css.
   ========================================================================== */

.inq-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.inq-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.inq-card {
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); min-width: 0;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.inq-card.is-overdue { border-color: #fca5a5; }

.inq-when {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border-radius: 14px; background: var(--mint);
}
.inq-when.is-today { background: #ffedd5; }
.inq-when.is-overdue { background: #fee2e2; }
.inq-when-label { margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inq-when strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.inq-when > span:not(.inq-when-label) { font-size: 14px; font-weight: 700; color: var(--ink-2); }

.inq-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inq-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.inq-phone { font-size: 16px; font-weight: 800; color: var(--green-700); text-decoration: none; overflow-wrap: anywhere; }
.inq-phone:hover { text-decoration: underline; }
.inq-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.inq-meta b { color: var(--ink-2); font-weight: 700; }
.inq-note { font-size: 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.inq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.inq-actions .btn { padding: 10px 14px; text-decoration: none; }

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-called { background: #dbeafe; color: #1e40af; }
.badge-closed { background: #e2e8f0; color: #334155; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip-overdue { background: #fee2e2; color: #9f1239; }
.chip-today { background: #ffedd5; color: #9a3412; }

.inq-delete { margin-right: auto; }
.btn[hidden] { display: none; }

.date-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quick-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-dates .btn { padding: 8px 12px; font-size: 13px; }

@media (min-width: 640px) {
  .inq-card { grid-template-columns: 210px minmax(0, 1fr); align-items: stretch; }
  .inq-when { justify-content: center; }
}

@media (max-width: 560px) {
  .inq-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inq-card { padding: 14px; }
}
