/* Per Diem & Travel Comp Time · brand pass (Spruce & Gold, after the Salary Calculator).
   CSS only. Loaded after the tool's own <style> and /tools/_shared/mfp-tools.css. Delete the <link> to revert. */

/* the tool's own variables now point at the shared palette, so inline styles that use them follow */
:root {
  --forest: var(--mfp-ink); --forest-mid: var(--mfp-ink-2); --forest-lt: #4e7a72;
  --sage: var(--mfp-surface-2); --sage-mid: var(--mfp-sage-300); --sage-lt: var(--mfp-paper); --cream: var(--mfp-paper);
  --rule: var(--mfp-line); --rule-lt: var(--mfp-line);
  --text: var(--mfp-text); --text-muted: var(--mfp-muted); --text-hint: var(--mfp-hint);
  --success: var(--mfp-ok); --success-bg: var(--mfp-ok-bg); --success-rule: #95c9ad;
  --danger: var(--mfp-danger); --danger-bg: var(--mfp-danger-bg); --danger-rule: #f0b8b4;
  --warn: var(--mfp-warn); --warn-bg: var(--mfp-warn-bg); --warn-rule: #e9c46a;
  --info-bg: var(--mfp-surface-2);
  --input-h: 3rem; --r: 10px; --r-lg: 22px;
  --font: var(--mfp-body); --mono: var(--mfp-mono);
  --shadow: var(--mfp-shadow); --shadow-md: var(--mfp-lift);
}
body { font-size: 15px; background-attachment: fixed; }

/* header: flat ink bar with the gold hairline */
.site-header { background: var(--mfp-ink); height: 60px; padding: 0 clamp(16px, 3vw, 32px); border: 0; position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 44%; background: var(--mfp-signal); border-radius: 0 3px 0 0; }
.logo-icon { background: rgba(255, 255, 255, 0.08); border-radius: 9px; }
.logo-icon svg { fill: var(--mfp-signal); }
.logo-wordmark { font-family: var(--mfp-display); font-size: 1.1rem; font-weight: 600; color: var(--mfp-on-ink); letter-spacing: -0.02em; }
.logo-wordmark em { color: var(--mfp-signal); }
.logo-tool { font-size: 0.78rem; color: var(--mfp-on-ink-dim); letter-spacing: 0.01em; }
#last-updated { font: 500 0.7rem var(--mfp-mono); color: var(--mfp-on-ink); background: rgba(255, 255, 255, 0.1); border-radius: 9999px; padding: 0.35rem 0.8rem; letter-spacing: 0; }

/* tabs become the exemplar's segmented pill switcher */
.main-nav { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: 9999px; padding: 4px; gap: 2px; width: max-content; max-width: calc(100% - 2rem); margin: 1.5rem auto 0; }
.main-nav-btn { border: 0; border-radius: 9999px; font-family: var(--mfp-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mfp-muted); padding: 0.7rem 1.2rem; min-height: 44px; transition: background-color .25s var(--mfp-ease), color .25s, box-shadow .25s; }
.main-nav-btn:hover { color: var(--mfp-ink); }
.main-nav-btn.active { background: var(--mfp-ink); color: var(--mfp-on-ink); border: 0; box-shadow: 0 2px 8px -2px rgba(var(--mfp-ink-rgb), 0.45); }

.page-body { max-width: 1200px; padding: 1.75rem clamp(16px, 3vw, 32px) 5rem; }

/* callouts */
.callout { max-width: 80ch; border: 0; border-radius: var(--mfp-r-md); padding: 0.95rem 1.2rem; font-size: 0.88rem; line-height: 1.6; box-shadow: inset 3px 0 0 var(--mfp-signal); background: var(--mfp-surface-2); }
.callout.info { background: var(--mfp-surface-2); color: var(--mfp-muted); }
.callout.warn { background: var(--mfp-warn-bg); box-shadow: inset 3px 0 0 var(--mfp-signal-deep); color: var(--mfp-warn); }

/* cards and sections */
.card, .ct-section, .pd-leg { background: var(--mfp-card); border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-lg); box-shadow: var(--mfp-shadow); overflow: hidden; }
.card-header, .ct-section-header, .pd-leg-hd, .pd-leg-header { background: transparent; border-bottom: 1px solid var(--mfp-line); padding: 1rem 1.5rem; }
.card-title, .ct-section-title { font: 600 0.72rem var(--mfp-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mfp-muted); }
.pd-leg-num { font: 600 0.72rem var(--mfp-body); letter-spacing: 0.09em; color: var(--mfp-muted); }
.card-body, .ct-section-body, .pd-leg-body { padding: 1.5rem; background: transparent; }
.card + .card { margin-top: 1.25rem; }

/* labels and inputs */
label.field-label, .field-label { font: 600 0.7rem var(--mfp-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mfp-muted); margin-bottom: 0.5rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], select {
  height: 3rem; border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-sm); background-color: #fff; color: var(--mfp-text);
  font-family: var(--mfp-body); font-size: 1rem; padding: 0 0.95rem; transition: border-color .25s var(--mfp-ease), box-shadow .25s var(--mfp-ease);
}
input[type="number"], input[type="date"], input[type="time"] { font-family: var(--mfp-mono); font-size: 0.92rem; }
input:hover, select:hover { border-color: var(--mfp-line-strong); }
input:focus, select:focus { border-color: var(--mfp-signal); box-shadow: 0 0 0 4px rgba(var(--mfp-signal-rgb), 0.28); outline: none; }
input:disabled, input:read-only { background: var(--mfp-surface-2); color: var(--mfp-muted); }
select { background-image: var(--mfp-chev); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.5rem; }
.wd-check, input[type="checkbox"] { accent-color: var(--mfp-ink); width: 1.1rem; height: 1.1rem; }
.field-row { gap: 1rem; }
.divider-label { font-size: 0.7rem; letter-spacing: 0.09em; color: var(--mfp-muted); }
.divider-label::before, .divider-label::after { background: var(--mfp-line); }

/* buttons: ink pills, gold on hover ring like the exemplar */
.btn { border-radius: 9999px; font-family: var(--mfp-body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0; height: 3rem; padding: 0 1.5rem; transition: transform .35s var(--mfp-ease), box-shadow .35s var(--mfp-ease), background-color .25s; }
.btn:hover { opacity: 1; }
.btn-gold, .btn-primary { background: var(--mfp-ink); color: var(--mfp-on-ink); box-shadow: none; }
.btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(var(--mfp-ink-rgb), 0.5); }
.btn:active { transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--mfp-line-strong); color: var(--mfp-ink); }
.btn-ghost:hover { background: var(--mfp-surface-2); transform: none; box-shadow: none; }
.btn-sm { height: 2.75rem; font-size: 0.85rem; padding: 0 1.1rem; }
.btn-full { height: 3.25rem; }
.btn-add-link { color: var(--mfp-ink); font-weight: 600; font-size: 0.88rem; min-height: 44px; }
.btn-icon { min-width: 44px; min-height: 44px; border-radius: 9999px; }

/* results: one flat ink card per view, gold figure */
.result-card { border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-md); background: var(--mfp-card); text-align: left; padding: 1.1rem 1.25rem; box-shadow: var(--mfp-shadow); }
.result-card-label { font: 600 0.68rem var(--mfp-body); letter-spacing: 0.09em; color: var(--mfp-muted); }
.result-card-value { font-family: var(--mfp-mono); font-size: 1.5rem; font-weight: 500; color: var(--mfp-ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result-card-sub { font-size: 0.8rem; color: var(--mfp-muted); }
.result-card.highlight { background: var(--mfp-ink); border-color: transparent; position: relative; overflow: hidden; }
.result-card.highlight::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 44%; background: var(--mfp-signal); border-radius: 0 3px 0 0; }
.result-card.highlight .result-card-label { color: var(--mfp-on-ink-dim); }
.result-card.highlight .result-card-value { font-family: var(--mfp-display); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; color: var(--mfp-signal); }
.result-card.highlight .result-card-sub { color: var(--mfp-on-ink-dim); }

/* tables */
.data-table { font-size: 0.85rem; }
.data-table th { background: var(--mfp-surface-2); font: 600 0.68rem var(--mfp-body); letter-spacing: 0.09em; color: var(--mfp-muted); padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--mfp-line); }
.data-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--mfp-line); }
.data-table td.mono { font-family: var(--mfp-mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--mfp-surface-2); }

/* comp-time rows, flight legs, download panel */
.ct-section.disabled .ct-section-body, .ct-section.off .ct-section-body { opacity: 0.45; }
.ct-row-number { color: var(--mfp-signal-deep); font-size: 0.7rem; }
.ct-row-name { font-size: 0.92rem; font-weight: 600; }
.ct-row-hint { font-size: 0.8rem; color: var(--mfp-muted); }
.ct-clock-start, .ct-clock-stop { font-size: 0.78rem; }
.flight-leg { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-md); }
.fl-letter, .flight-leg-letter { color: var(--mfp-muted); font-size: 0.78rem; }
.download-panel { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-md); }
.dl-steps { font-size: 0.88rem; color: var(--mfp-muted); }
.dl-steps li::before { background: var(--mfp-ink); color: var(--mfp-signal); min-width: 20px; height: 20px; font-size: 0.7rem; }
code { background: var(--mfp-surface-2); color: var(--mfp-ink); border-radius: 6px; font-size: 0.8rem; }
.pd-empty { border: 2px dashed var(--mfp-line-strong); border-radius: var(--mfp-r-lg); color: var(--mfp-muted); }

/* status pills and workday badges */
.status-pill, .wd-badge { border-radius: 9999px; font-size: 0.72rem; }
.wd-badge { padding: 2px 8px; }
.wd-unknown { color: var(--mfp-hint); }

/* autocomplete */
.autocomplete-suggestions { border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-md); box-shadow: var(--mfp-lift); background: var(--mfp-card); }
.autocomplete-suggestion { padding: 0.75rem 1rem; font-size: 0.95rem; border-bottom: 1px solid var(--mfp-line); }
.autocomplete-suggestion:hover { background: var(--mfp-surface-2); }

/* toggle switch: ink track, gold knob (as in the exemplar) */
.toggle-switch { width: 46px; height: 26px; }
.toggle-slider { background: var(--mfp-line-strong); }
.toggle-slider::before { height: 20px; width: 20px; left: 3px; bottom: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.toggle-switch input:checked + .toggle-slider { background: var(--mfp-ink); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--mfp-signal); }
.spinner { border-color: var(--mfp-line); border-top-color: var(--mfp-ink); }

/* phones: tabs fill the width, header stacks, nothing scrolls sideways */
@media (max-width: 620px) {
  .site-header { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .logo-tool { display: none; }
  .main-nav { width: calc(100% - 2rem); margin-top: 1rem; }
  .main-nav-btn { flex: 1 1 0; padding: 0.6rem 0.4rem; font-size: 0.78rem; white-space: normal; line-height: 1.2; text-align: center; }
  .card-body, .ct-section-body, .pd-leg-body { padding: 1.1rem; }
  input[type="text"], input[type="number"], input[type="date"], input[type="time"], select { font-size: 16px; }
  .result-card.highlight .result-card-value { font-size: 1.8rem; }
  .page-body { padding-left: 14px; padding-right: 14px; }
}

/* the Per Diem toolbar (travelers + Add Leg / Return Home) is an inline-styled flex row: let it wrap instead of pushing the page sideways */
.page-body div[style*="space-between"] { flex-wrap: wrap; row-gap: 0.75rem; }
div:has(> #btn-add-leg) { flex-wrap: wrap; }

/* embedded in the website page the frame follows this tool's content height, so the body must not stretch to the frame */
body { min-height: 0; }

/* wider column: date and time fields keep a sensible width instead of stretching across it */
.ct-field.wide { flex: 0 1 320px; }
.ct-field.med { flex: 0 1 200px; }
