/* Clients page styles */
.clients-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px }
.clients-header h2 { font-size: 1.1rem }
.clients-count { background: var(--bg-card); padding: 2px 10px; border-radius: 10px; font-size: 0.8rem; color: var(--accent-cyan) }
.clients-search { margin-bottom: 12px }
.clients-search input { width: 100% }
.clients-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px }
.clients-filter-btn { width: auto; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: var(--text-secondary); border-radius: 999px; padding: 7px 11px; font-size: 0.74rem; line-height: 1; transition: border-color 0.2s, color 0.2s, background 0.2s }
.clients-filter-btn.active { border-color: rgba(0,229,255,0.45); background: rgba(0,229,255,0.08); color: var(--accent-cyan) }
.clients-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px }
.clients-stat { padding: 12px; min-height: 68px }
.clients-stat-wide { grid-column: 1 / -1 }
.clients-stat-value { color: var(--accent-cyan); font-size: 1rem; font-weight: 700; line-height: 1.2 }
.clients-stat-label { color: var(--text-secondary); font-size: 0.72rem; margin-top: 4px }
.clients-list { display: flex; flex-direction: column; gap: 12px }
.clients-empty { text-align: center; color: var(--text-secondary); padding: 40px 0 }
.client-card { padding: 14px; position: relative; overflow: visible }
.client-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start }
.client-name { font-weight: 700; color: var(--text-primary); line-height: 1.25 }
.client-contact { color: var(--accent-cyan); font-size: 0.82rem; margin-top: 3px; word-break: break-word }
.client-last { color: var(--text-secondary); font-size: 0.74rem; white-space: nowrap }
.client-top-right { display: flex; align-items: flex-start; gap: 8px; margin-left: auto }
.client-menu-wrap { position: relative; flex-shrink: 0 }
.client-menu-toggle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.client-menu-toggle:hover {
  border-color: rgba(0,229,255,0.24);
  color: var(--accent-cyan);
  background: rgba(0,229,255,0.06);
}
.client-menu {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 30;
  min-width: 156px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(18,22,30,0.98);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}
.client-menu.open { display: block }
.client-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  cursor: pointer;
}
.client-menu button:hover {
  background: rgba(255,255,255,0.055);
}
.client-menu button.danger {
  color: #ff7070;
}
.client-menu button.danger:hover {
  background: rgba(255,82,82,0.1);
}
.client-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px }
.client-metrics div { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 8px }
.client-metrics span { display: block; color: var(--text-primary); font-weight: 700; font-size: 0.92rem; line-height: 1.2 }
.client-metrics small { display: block; color: var(--text-secondary); font-size: 0.7rem; margin-top: 2px }
.client-latest { margin-top: 10px; color: var(--text-secondary); font-size: 0.78rem }
.client-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.client-actions button { width: auto; font-size: 0.78rem; padding: 8px 10px }
.client-actions .client-new-calc { flex: 1 1 120px }
.client-actions .client-history-toggle { flex: 1 1 96px }
.client-history { display: none; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px }
.client-history.open { display: block }
.client-history-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,0.04); background: transparent; color: var(--text-primary); text-align: left; font: inherit; font-size: 0.78rem; cursor: pointer; border-radius: 6px; transition: background 0.2s, padding-left 0.2s }
.client-history-row:hover { background: rgba(0,229,255,0.045); padding-left: 8px }
.client-history-row:last-child { border-bottom: none }
.client-history-row span { color: var(--accent-cyan); font-size: 0.72rem }
.client-history-link { text-decoration: underline; text-underline-offset: 2px }
.client-history-price { color: var(--accent-cyan); font-weight: 700; white-space: nowrap }
.client-modal-note { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.45; margin: -4px 0 14px }
