/* Past-entries page (entries.html). Loads after css/common.css. */

/* --- Differences from the shared rules ------------------------------------ */
.wrap { max-width: 1100px; }
.subhead { margin-bottom: 28px; }
.panel { padding: 22px 24px; }
label { margin: 16px 0 6px; }
th, td { padding: 10px 10px; }
.empty { padding: 6px 0; }
/* The Save button sits beside Cancel in the dialog, so it flexes rather
   than stretching full width. */
button.primary { flex: 1; }
#login-view main { width: 100%; }

/* --- Day blocks ----------------------------------------------------------- */
.day {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px 20px;
  margin-bottom: 14px;
}
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.day-name { font-size: 14px; font-weight: 650; }
.day-total {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.day.is-empty { background: none; border-style: dashed; }
.day.is-empty .day-head { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

td.soft { color: var(--ink-soft); }
td.actions { text-align: right; width: 1%; white-space: nowrap; }

/* Row actions: Edit in the day list, Duplicate in the search results. */
button.edit, button.dup {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
button.dup { white-space: nowrap; }
button.edit:hover, button.dup:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- Toolbar -------------------------------------------------------------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar .subhead { margin: 0; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row input {
  width: 260px;
  padding: 8px 12px;
  font-size: 13.5px;
}
.search-row button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.search-row button:hover { background: #17493f; }
.search-row button.secondary-sm {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}
.search-row button.secondary-sm:hover { border-color: #b9c1bc; color: var(--ink); }

.search-meta { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }

/* --- Edit dialog ---------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 33, .38);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  z-index: 10;
}
.dialog {
  background: var(--panel);
  border-radius: 10px;
  padding: 26px;
  width: 100%;
  max-width: 480px;
}
.dialog h2 { font-size: 16px; font-weight: 650; margin: 0 0 18px; }

.dialog-actions { display: flex; gap: 10px; margin-top: 24px; }
button.secondary {
  padding: 12px 18px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
}
button.secondary:hover { border-color: #b9c1bc; color: var(--ink); }
