/* CumuloReserve admin pages added by specs/ux-upgrades-build-2026-10.md: Today, Closures, Board report.
   Shared by today.html, closures.html and board-report.html. Built on the DesignKit tokens in style.css.
   Mobile first (390 px): one column, 44 px targets. Desktop (1440 px): the same list in a readable column. */

[hidden] { display: none !important; }

/* One content width on every admin page (matches the top bar). */
.today-shell { max-width: 1376px; margin: 0 auto; padding: var(--space-5) 16px; }
.today-gate { max-width: 480px; margin: var(--space-6) auto; text-align: center; }
.today-gate p { margin-bottom: var(--space-4); }

.today-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-3); }
.today-header__actions { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.today-header__actions select { min-width: 200px; margin-bottom: 0; }

.today-summary { font-size: var(--font-size-md); margin: 0 0 var(--space-3); color: var(--color-text-primary); }
.today-empty { padding: var(--space-5) var(--space-4); text-align: center; background: var(--color-surface-alt); border-radius: var(--radius-sm); }

.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.today-item {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--color-bg);
  border: 1px solid var(--color-border); border-left-width: 6px; border-radius: var(--radius-sm);
}
.today-item--ok { border-left-color: var(--color-border); }
.today-item--amber { border-left-color: #B45309; background: #FFFBEB; }
.today-item--red { border-left-color: var(--color-danger); background: #FEF2F2; }
.today-item__main { min-width: 0; }
.today-chip {
  display: inline-block; font-size: var(--font-size-xs); font-weight: 600; letter-spacing: .02em;
  padding: 2px var(--space-2); border-radius: 999px; background: var(--color-surface-alt); color: var(--color-text-secondary); margin-bottom: var(--space-1);
}
.today-item__title { margin: 0; font-size: var(--font-size-md); font-weight: 600; overflow-wrap: anywhere; }
.today-item__detail { margin: var(--space-1) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); overflow-wrap: anywhere; }
.today-item__wait { margin: var(--space-2) 0 0; font-size: var(--font-size-sm); display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.today-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-text-disabled); display: inline-block; }
.today-wait--amber { color: #92400E; } .today-wait--amber .today-dot { background: #B45309; }
.today-wait--red { color: var(--color-error-text); } .today-wait--red .today-dot { background: var(--color-danger); }
.today-item__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.today-item__actions .btn { min-height: 44px; }
.today-ask { font-size: var(--font-size-sm); }

.today-mail { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.today-mail__title { font-size: var(--font-size-md); margin: 0 0 var(--space-2); }
.today-check { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.today-check input { width: 22px; height: 22px; }

@media (min-width: 720px) {
  .today-item { flex-direction: row; align-items: center; justify-content: space-between; }
  .today-item__actions { justify-content: flex-end; flex-shrink: 0; }
}

/* ---- closures page ---- */
.closure-tabs[hidden] { display: none; }
.closure-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.closure-tab { min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.closure-tab[aria-selected="true"] { background: var(--color-text-primary); color: #fff; border-color: var(--color-text-primary); }
.closure-form { display: grid; gap: var(--space-3); max-width: 560px; }
.closure-form .field-input { margin-bottom: 0; }
.closure-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.closure-courts { display: flex; flex-direction: column; gap: var(--space-1); }
.closure-preview { margin-top: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.closure-preview h2 { margin: 0 0 var(--space-2); font-size: var(--font-size-md); }
.closure-lines { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--font-size-sm); }
.closure-lines li { padding: var(--space-1) 0; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
.closure-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.closure-actions .btn { min-height: 44px; }
.closure-done { margin-top: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-open-bg); border-radius: var(--radius-sm); background: #F0FDF4; }
.closure-recent { margin-top: var(--space-6); }
.closure-recent h2 { font-size: var(--font-size-md); }
.closure-recent li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
@media (min-width: 720px) { .closure-row { grid-template-columns: 1fr 1fr; } }

/* ---- board report page ---- */
.report-bar { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--space-4); }
.report-bar .field-input { margin-bottom: 0; }
.report-sheet { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-4); }
.report-sheet h2 { font-size: var(--font-size-lg); margin: 0 0 var(--space-1); }
.report-note { color: var(--color-text-secondary); font-size: var(--font-size-sm); margin: 0 0 var(--space-4); }
.report-section { margin-top: var(--space-4); }
.report-section h3 { font-size: var(--font-size-md); margin: 0 0 var(--space-2); border-bottom: 2px solid var(--color-text-primary); padding-bottom: var(--space-1); }
.report-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.report-table th, .report-table td { text-align: left; padding: var(--space-2) var(--space-1); border-bottom: 1px solid var(--color-border); }
.report-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table .report-sub th { font-weight: 600; padding-top: var(--space-3); border-bottom: 0; color: var(--color-text-secondary); }
.report-settings { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); display: grid; gap: var(--space-3); max-width: 560px; }
.report-settings textarea { min-height: 88px; }

@media print {
  body { background: #fff !important; color: #000 !important; }
  .today-header, #adminTopBar, .report-bar, .report-settings, .no-print { display: none !important; }
  .today-shell { max-width: none; padding: 0; }
  .report-sheet { border: 0; padding: 0; }
  .report-table th, .report-table td { border-bottom: 1px solid #000; color: #000; }
  .report-section h3 { border-bottom: 2px solid #000; }
  .report-note { color: #000; }
}
