/* ============================================================
   App-wide UI styles (complement Bootstrap 5)
   ============================================================ */
:root {
  --accent: #1a3a5c;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; }

.navbar-brand { letter-spacing: 0.3px; }

/* Make the accent color usable in inline styles via var(--accent) */
.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* Equipment card grid in catalog */
.eq-card {
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
  height: 100%;
  transition: box-shadow .15s, transform .15s;
}
.eq-card:hover {
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.12);
  transform: translateY(-2px);
}
.eq-card .eq-thumb {
  width: 100%; height: 130px;
  background: #f1f3f6 center/cover no-repeat;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; justify-content: center;
  color: #b0b8c4; font-size: 2rem;
}
.eq-card .eq-body { padding: 10px 12px; }
.eq-card .eq-title { font-weight: 600; color: #2a3540; font-size: 0.95rem; line-height: 1.25; }
.eq-card .eq-brand { font-size: 0.75rem; color: #7a8694; }
.eq-card .eq-specs { font-size: 0.78rem; color: #6b7280; margin-top: 4px; line-height: 1.3; }
.eq-card .eq-price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.eq-card .eq-sku { font-family: 'Consolas', monospace; font-size: 0.7rem; color: #9aa3b0; }
.eq-card .badge-popular { position: absolute; top: 8px; right: 8px; }

/* Selected items table in proposal editor */
.item-row {
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-row .item-thumb {
  width: 44px; height: 44px;
  background: #f1f3f6 center/cover no-repeat;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #c0c6d0;
}
.item-row .item-name { flex: 1; font-weight: 600; }
.item-row .item-meta { font-size: 0.8rem; color: #6b7280; }
.item-row .item-qty { width: 80px; }
.item-row .item-sum { width: 110px; text-align: right; font-weight: 700; color: var(--accent); }
.item-row .item-remove { flex-shrink: 0; }

/* Totals panel */
.totals-panel {
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  padding: 14px 16px;
  position: sticky;
  top: 80px;
}
.totals-panel .row-line {
  display: flex; justify-content: space-between;
  padding: 4px 0; color: #555;
}
.totals-panel .grand {
  border-top: 2px solid var(--accent);
  margin-top: 8px; padding-top: 8px;
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
  display: flex; justify-content: space-between;
}

/* Dashboard proposal card */
.prop-card {
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  transition: box-shadow .15s;
}
.prop-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

/* Category filter pills */
.cat-pill {
  cursor: pointer;
  transition: background .12s;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9aa3b0;
}
.empty-state i { font-size: 3rem; opacity: 0.5; }

/* Make tables in admin a bit tighter */
.table th { background: #f7f9fc; }
