/* Life tracker day history sheets — v2 openSheet content */

.lt-history-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lt-history-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.lt-history-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.lt-history-day-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lt-history-day-scroll::-webkit-scrollbar {
  display: none;
}

.lt-history-day-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}

.lt-history-day-chip.is-active {
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-glass));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-glass));
}

.lt-history-day-label {
  font-size: 12px;
  font-weight: 600;
}

.lt-history-day-value {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lt-history-panel-host {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lt-history-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lt-history-panel-date {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lt-history-panel-total {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.lt-history-panel-goal {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.lt-history-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lt-history-empty {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.lt-history-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
}

.lt-history-entry-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lt-history-entry-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.lt-history-entry-time {
  font-size: 12px;
  color: var(--text-muted);
}

.lt-history-entry-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lt-history-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.lt-history-icon-btn:hover {
  background: var(--bg-glass-hover);
}

.lt-history-icon-btn--danger {
  color: var(--danger);
}

.lt-history-action-row {
  display: flex;
  gap: 10px;
}

.lt-history-action-row .v2-btn {
  flex: 1;
}

.lt-history-entry-row--edit,
.lt-history-entry-row--confirm {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.lt-history-entry-row--edit .v2-input {
  width: 100%;
}

.lt-history-confirm-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-main);
}

.lt-history-sheet .macro-add-row {
  margin-top: 4px;
}
