/* Dashboard — Clinical / медицинский центр style */
.clinical-dashboard { padding-top: 0; }

.dashboard-header { margin-bottom: 1.25rem; }
.dashboard-greeting-title {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1e293b;
}
.dashboard-meta { margin: 0; font-size: 0.8125rem; }
.dashboard-meta-sep { margin: 0 0.35rem; opacity: 0.6; }

/* Smart search */
.smart-search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}
.smart-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.smart-search-inner:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
}
.smart-search-icon {
  flex-shrink: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.smart-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  color: #1e293b;
  outline: none;
}
.smart-search-input::placeholder { color: #94a3b8; }
.smart-search-voice-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.smart-search-voice-btn:hover { background: #e2e8f0; }

.smart-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
}
.smart-search-option {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  border-radius: 8px;
  margin: 2px 4px;
}
.smart-search-option:hover,
.smart-search-option.selected { background: #f0fdfa; color: #0f766e; }

/* Core tiles (navigation) */
.dashboard-tiles-core {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .dashboard-tiles-core { grid-template-columns: repeat(5, 1fr); }
}
.dashboard-tile.core-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.dashboard-tile.core-tile:hover {
  background: #f8fafc;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15,118,110,0.08);
}
.core-tile-label { font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 0.25rem; }
.core-tile-stat { font-size: 1.125rem; font-weight: 700; color: #0f766e; }

/* Data preview tiles */
.dashboard-preview-section { margin-bottom: 1.5rem; }
.dashboard-preview-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dashboard-tiles-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .dashboard-tiles-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .dashboard-tiles-preview { grid-template-columns: repeat(3, 1fr); }
}

.data-preview-tile {
  display: block;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.data-preview-tile:hover {
  background: #f8fafc;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15,118,110,0.08);
}
.data-tile-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.data-tile-label { font-size: 0.8125rem; font-weight: 600; color: #64748b; }
.data-tile-value { font-size: 1rem; font-weight: 700; color: #1e293b; }
.data-tile-status-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.data-tile-status {
  font-size: 0.75rem;
  font-weight: 600;
}
.data-tile-status-normal { color: #16a34a; }
.data-tile-status-high { color: #dc2626; }
.data-tile-status-low { color: #ea580c; }
.data-tile-spark { flex-shrink: 0; }
.data-tile-spark .sparkline { color: #0f766e; }
.data-tile-spark .sparkline-high { color: #dc2626; }
.data-tile-spark .sparkline-low { color: #ea580c; }
.data-tile-meta { margin: 0.5rem 0 0; font-size: 0.7rem; }

/* Зоны позитивных новостей и умных рекомендаций */
.dashboard-spot {
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dashboard-spot--bottom { margin-top: 1rem; margin-bottom: 0; }
.dashboard-spot-text {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #166534;
}
.dashboard-spot-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}
.dashboard-spot-link:hover { text-decoration: underline; }
.dashboard-spot-link.hidden { display: none !important; }
.dashboard-spot--cta {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}
.dashboard-spot--cta .dashboard-spot-text { color: #0c4a6e; }
.dashboard-spot--cta .dashboard-spot-link { color: #0369a1; }
.dashboard-disclaimer {
  font-size: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
}

/* Personal Cabinet page */
.personal-cabinet-section .widget { margin: 1rem 0; }
.cabinet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cabinet-time-range select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.cabinet-charts { margin-top: 1rem; }
.cabinet-chart-placeholder { min-height: 200px; }
