/* ModusPractica Pro — Daily Notes overview */

.notes-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.notes-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.notes-toolbar input[type="date"] {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

.notes-range {
  display: flex;
  gap: 4px;
  margin-right: 4px;
}

.notes-range-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.notes-day-jump {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  max-width: 240px;
}

.notes-day-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 4px 2px 2px;
}

.notes-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 2px 14px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-day-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 8px 2px -4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.notes-day-header-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}

.notes-day-header-btn:hover {
  color: var(--accent);
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  break-inside: avoid;
}

.note-card-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.note-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.note-card-title-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.note-card-title-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

.note-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.note-card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card-task {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 6px 10px;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.notes-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

@media print {
  .dashboard-nav,
  .notes-toolbar .btn,
  .notes-toolbar input,
  .notes-toolbar select,
  .screen-only-btn {
    display: none !important;
  }

  .notes-page {
    max-width: none;
    padding: 0;
  }

  .notes-toolbar {
    border: none;
    padding: 0;
    margin-bottom: 8px;
  }

  .note-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
