/* Shared surfaces: dark banners and pale notices use their own text colours. */
#content .overview-hero .callout,
#content .overview-hero .callout p,
#content .overview-hero .callout .muted {
  color: #735014;
}
#content .overview-hero .callout {
  background: #f8f0dc;
  border: 1px solid #e1cfaa;
  font-size: 14px;
}
#content .overview-hero button {
  color: #173c2b;
  background: #fffdf8;
  border-color: #fffdf8;
}
#content .overview-hero button.secondary {
  color: #fffdf8;
  background: transparent;
  border-color: #a9beb0;
}
#content .overview-hero button:hover:not(:disabled) { background: #f0eadb; }
#content .overview-hero button.secondary:hover:not(:disabled) { background: #ffffff19; }
#content .overview-hero .callout button.secondary {
  color: #173c2b;
  border-color: #173c2b;
}
#content .overview-hero a { color: #f7e1b4; text-decoration: underline; }
#content .overview-hero .callout a { color: #173c2b; }
#content .overview-hero .metrics small, #content .overview-hero .week-compare { color: #d8e0d7; }
#content button:disabled { cursor: not-allowed; }
#content button:focus-visible,
#content input:focus-visible,
#content select:focus-visible,
#content textarea:focus-visible {
  outline: 3px solid #b48a43;
  outline-offset: 3px;
}
#content .report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
#content .report-actions button { margin: 0; min-height: 44px; font-size: 14px; }
#content .report-editor-toolbar { margin-bottom: 16px; }
#content .report-editor .eyebrow { margin-top: 8px; }
#content .report-submission-note { padding: 14px 16px; border-left: 3px solid var(--gold); background: #f4f5ed; border-radius: 8px; color: #34473c; font-size: 14px; line-height: 1.65; }
.report-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.report-field { min-width: 0; padding: 18px; background: #fbfcf7; border: 1px solid var(--line); border-radius: 12px; }
.report-date-field { grid-column: 1/-1; }
#content .report-field label { margin: 0 0 10px; color: #17251d; font-size: 15px; }
#content .report-field input,
#content .report-field textarea { margin-bottom: 0; font-size: 15px; line-height: 1.6; }
#content .report-field textarea { min-height: 140px; resize: vertical; }
#content .report-date-field input { max-width: 280px; }
#content .report-field .field-help { margin: 10px 0 0; color: #536457; font-size: 13px; line-height: 1.55; }
.report-preview { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
#content .report-topic h3, #content .report-topic h4 { margin: 0 0 12px; font-family: inherit; font-size: 16px; font-weight: 700; }
#content .report-body, #content .report-excerpt { color: #17251d; font-size: 14px; line-height: 1.75; }
#content .report-card h4 { margin: 0 0 8px; }
.report-card .tracker-heading { align-items: flex-start; }
.report-recipient-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.report-recipient-form button { grid-column: 1/-1; justify-self: start; }
@media(max-width:820px) {
  .report-form-grid, .report-recipient-form { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .report-field { padding: 15px; }
  #content .report-field input, #content .report-field textarea { font-size: 16px; }
  #content .report-actions button { flex: 1 1 160px; }
  .report-summary-grid { grid-template-columns: minmax(0,1fr); }
}
@media print {
  #content .overview-hero { background: white !important; color: #17251d !important; }
  #content .overview-hero h2, #content .overview-hero h3, #content .overview-hero p,
  #content .overview-hero .muted, #content .overview-hero .eyebrow,
  #content .overview-hero .metrics strong, #content .overview-hero .metrics span,
  #content .overview-hero .metrics small { color: #17251d; }
}
/* Payday setup keeps the chosen worker group and register dates visible together. */
.attendance-preparation{margin:1rem 0;padding:1rem;border:1px solid #c6d4ca;border-radius:12px;background:#f5f8f5;color:#173c2b}
.attendance-preparation ol{padding-left:1.4rem}
.attendance-preparation li+li{margin-top:.55rem}
.attendance-preparation form{max-width:42rem}
.attendance-preparation #attendance-period-status{padding:.75rem;background:#fff;border-left:3px solid #55765e;overflow-wrap:anywhere}

/* Put field actions before register history on handheld screens. */
.today-board .manager-update-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.today-board .update-card p{margin-block:.35rem .7rem}
.today-board .update-card button{margin:.15rem .25rem .15rem 0}
#register-entry output{font-variant-numeric:tabular-nums}
.payday-panel>summary,#crop-plan-form>details>summary{font-weight:650;padding:.75rem .25rem;cursor:pointer}
#crop-plan-form>details{margin-block:.5rem 1rem}
