/* Page-specific styling for the Products / Crawls summary page.
   Base layout (.dashboard-page, .dashboard-shell-card) comes from
   crawl_sync_job_manager/dashboard.css, which is a DARK theme — so all text
   here uses light tones. */

.pcs-muted { color: #9ca3af; font-size: 0.9rem; }

.pcs-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; }
.pcs-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: #e5e7eb; }
.pcs-form input { padding: 0.5rem; border: 1px solid #475569; border-radius: 6px; font-size: 0.9rem;
  background: #1e293b; color: #f1f5f9; }
.pcs-form input::placeholder { color: #94a3b8; }
.pcs-form__ranges { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 0.75rem; }
.pcs-form button { align-self: flex-start; padding: 0.5rem 1.25rem; border: none; border-radius: 6px;
  background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; }
.pcs-form button:hover { background: #1d4ed8; }

.pcs-status { padding: 0.5rem 0; font-size: 0.9rem; color: #cbd5e1; }
.pcs-status--error { color: #f87171; }

.pcs-cards { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }

.pcs-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pcs-card__title { color: #f1f5f9; }
.pcs-card__cached { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #94a3b8; border: 1px solid #475569; border-radius: 999px; padding: 0.1rem 0.6rem; }

.pcs-meta { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.85rem; }
.pcs-meta th { text-align: left; padding: 0.2rem 0.75rem 0.2rem 0; color: #94a3b8; white-space: nowrap; vertical-align: top; }
.pcs-meta td { padding: 0.2rem 0; color: #e5e7eb; word-break: break-word; }

.pcs-total { font-weight: 700; font-size: 1.05rem; margin: 0.75rem 0; color: #f1f5f9; }

.pcs-dists { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.pcs-dist h3 { margin: 0 0 0.4rem; font-size: 0.9rem; color: #cbd5e1; }
.pcs-dist table { width: 100%; border-collapse: collapse; }
.pcs-dist td { padding: 0.15rem 0.4rem; font-size: 0.8rem; vertical-align: middle; }
.pcs-dist__label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd5e1; }
.pcs-dist__bar { width: 100%; }
.pcs-dist__bar span { display: block; height: 12px; background: #60a5fa; border-radius: 3px; min-width: 2px; }
.pcs-dist__count { text-align: right; font-variant-numeric: tabular-nums; color: #f1f5f9; }

.pcs-lastcrawl { margin-top: 1rem; }
.pcs-lastcrawl summary { color: #cbd5e1; cursor: pointer; }
.pcs-lastcrawl pre { background: #0f172a; border: 1px solid #334155; border-radius: 6px; color: #e2e8f0;
  padding: 0.75rem; overflow: auto; max-height: 320px; font-size: 0.75rem; }
