/* Day sheet: shown as paper on screen in print mode, printed clean black-on-white. */
.print-toolbar {
  position: sticky; top: 64px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.sheets { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.daysheet {
  width: 100%; max-width: 8.5in; background: #fff; color: #111;
  padding: 0.55in 0.6in; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
  font: 11pt/1.4 var(--body);
}
.daysheet h1, .daysheet h2, .daysheet h3 { color: #111; }
.ds-head { display: flex; align-items: center; gap: 22px; padding-bottom: 14px; border-bottom: 4px solid #111; margin-bottom: 16px; }
.ds-logo { width: 2.1in; height: auto; flex: none; }
.ds-title { flex: 1; min-width: 0; }
.ds-tour { font-size: 9pt; text-transform: uppercase; letter-spacing: .1em; color: #555; }
.ds-title h1 { font-size: 22pt; line-height: 1.05; margin: 2px 0; }
.ds-title h2 { font-size: 14pt; font-weight: 500; }
.ds-type { display: inline-block; margin-top: 4px; font: 700 8.5pt var(--body); text-transform: uppercase; letter-spacing: .12em; background: #111; color: #fff; padding: 2px 8px; }
.ds-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 26px; }
.ds-block { margin-bottom: 14px; break-inside: avoid; }
.ds-block h3 { font-size: 11pt; letter-spacing: .1em; border-bottom: 1.5px solid #111; padding-bottom: 3px; margin-bottom: 6px; }
.ds-block > div { margin-bottom: 1px; }
.ds-table { width: 100%; border-collapse: collapse; }
.ds-table td { padding: 4px 6px 4px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.ds-table td.t { width: 1%; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; padding-right: 14px; }
.ds-table td.role { width: 1%; white-space: nowrap; color: #555; font-size: 9.5pt; text-transform: uppercase; letter-spacing: .04em; padding-right: 12px; }
.ds-table td.email { font-size: 9.5pt; color: #333; word-break: break-all; }
.ds-table td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-table tr.total td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid #111; }
.ds-table tr.is-key td { font-weight: 700; }
.ds-table tr.is-us td { background: #111; color: #fff; font-weight: 700; padding-left: 6px; }
.ds-table tr.is-us .tag { background: #fff; color: #111; }
.ds-table .tag { background: #ddd; color: #111; font-size: 7pt; }
.ds-table .muted, .daysheet .muted { color: #666; }
.ds-table tr.is-us .muted { color: #ccc; }
.ds-notes { white-space: pre-wrap; }
.ds-foot { margin-top: 18px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 8pt; color: #888; text-align: right; }

@media (max-width: 640px) {
  .daysheet { padding: 20px 16px; font-size: 10pt; }
  .ds-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ds-grid { grid-template-columns: 1fr; }
}

@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: #fff !important; color: #111; }
  .topbar, .no-print, .toast { display: none !important; }
  .app { max-width: none; padding: 0; margin: 0; }
  .sheets { display: block; }
  .daysheet {
    max-width: none; width: auto; padding: 0; box-shadow: none; border-radius: 0;
    page-break-after: always; break-after: page;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .daysheet:last-child { page-break-after: auto; break-after: auto; }
  .ds-head { flex-direction: row; }
  .ds-grid { grid-template-columns: 1.15fr 1fr; }
}
