/* Automation calculator: the approved Mat Rong cream, black and gold layout. */
.tools-ivory .automation-tool {
  --auto-ink: #171612;
  --auto-muted: #69645c;
  --auto-gold: #b1843f;
  --auto-line: #dec8aa;
  --auto-paper: #fbf8f3;
  --auto-negative: #8b3529;
  --bt-green: #171612;
}
.tools-ivory .automation-tool .bt-input-pane {
  border-color: var(--auto-line);
  background: #fffdf9;
  border-radius: 12px;
  box-shadow: none;
}
.tools-ivory .automation-tool .auto-input-heading h2 { margin: 5px 0 22px; }
.tools-ivory .automation-tool .auto-mobile-results { display: none; }
.tools-ivory .automation-tool #auto-results-title { scroll-margin-top: 100px; }
.tools-ivory .automation-tool .auto-process-field { margin-bottom: 22px; }
.tools-ivory .automation-tool .auto-primary-fields { gap: 18px; }
.tools-ivory .automation-tool .auto-primary-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, .85fr);
  align-items: center;
  column-gap: 12px;
}
.tools-ivory .automation-tool .auto-primary-field small { grid-column: 1 / -1; }
.tools-ivory .automation-tool .auto-primary-field input { text-align: right; }
.tools-ivory .automation-tool .bt-field label { color: var(--auto-ink); }
.tools-ivory .automation-tool .auto-wage-note {
  padding: 11px 13px;
  margin: 15px 0 19px;
  border-left: 2px solid var(--auto-gold);
  background: #f5efe5;
  color: #514432;
  font-size: 12px;
  line-height: 1.6;
}
.tools-ivory .automation-tool .auto-calculate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  font-size: 14px;
}
.tools-ivory .automation-tool .auto-calculate span { font-size: 21px; font-weight: 400; }
.tools-ivory .automation-tool .auto-live-note { margin: 8px 0 22px; font-size: 12px; color: var(--auto-muted); text-align: center; }
.tools-ivory .automation-tool .auto-assumptions,
.tools-ivory .automation-tool .auto-save-panel { padding: 17px 0; border-color: var(--auto-line); }
.tools-ivory .automation-tool .auto-assumptions summary,
.tools-ivory .automation-tool .auto-save-panel summary { color: var(--auto-ink); min-height: 28px; }
.tools-ivory .automation-tool .auto-assumptions summary::marker,
.tools-ivory .automation-tool .auto-save-panel summary::marker { color: var(--auto-gold); }
.tools-ivory .automation-tool .auto-assumptions summary small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--auto-muted);
  margin-top: 6px;
}
.tools-ivory .automation-tool .auto-assumptions summary small + small { margin-top: 2px; }
.tools-ivory .automation-tool .auto-assumptions[open] .bt-fields { margin-top: 18px; }
.tools-ivory .automation-tool .auto-save-panel .bt-controls { display: grid; grid-template-columns: 1fr 1fr; }
.tools-ivory .automation-tool .auto-save-panel .bt-controls > :last-child { grid-column: 1 / -1; }
.tools-ivory .automation-tool .bt-status { margin-bottom: 0; color: #5b4a30; }
.tools-ivory .automation-tool .auto-output-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 18px; margin-bottom: 18px; }
.tools-ivory .automation-tool .auto-output-heading .eyebrow { grid-column: 1 / -1; }
.tools-ivory .automation-tool .auto-output-heading h2 { margin: 0; font-size: 25px; }
.tools-ivory .automation-tool .auto-period { border: 1px solid var(--auto-line); border-radius: 6px; padding: 6px 11px; color: #6d532f; font-size: 12px; white-space: nowrap; }
.tools-ivory .automation-tool .auto-example-note { margin: 0 0 18px; padding: 12px 15px; border-left: 2px solid var(--auto-gold); background: #f7f1e8; color: #514432; font-size: 13px; line-height: 1.65; }
.tools-ivory .automation-tool .auto-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: #f7f1e8; border: 1px solid var(--auto-line); border-radius: 12px; padding: 23px 8px; }
.tools-ivory .automation-tool .auto-overview .auto-metric {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 19px;
  gap: 12px;
}
.tools-ivory .automation-tool .auto-overview .auto-metric + .auto-metric { border-left: 1px solid var(--auto-line); }
.tools-ivory .automation-tool .auto-overview .auto-metric > span { font-size: 13px; font-weight: 500; color: var(--auto-ink); }
.tools-ivory .automation-tool .auto-overview .auto-metric > strong { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 39px); line-height: 1.18; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tools-ivory .automation-tool .auto-overview .auto-metric > [data-auto-metric=payback] { font: 500 18px/1.5 var(--sans); letter-spacing: -.02em; }
.tools-ivory .automation-tool .auto-overview .auto-metric small:empty { display: none; }
.tools-ivory .automation-tool .auto-metric > small { color: var(--auto-muted); }
.tools-ivory .automation-tool .auto-secondary-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 18px; padding: 0 8px; }
.tools-ivory .automation-tool .auto-secondary-overview .auto-metric { padding: 0 19px; border: 0; background: transparent; gap: 7px; }
.tools-ivory .automation-tool .auto-secondary-overview .auto-metric > span { color: var(--auto-muted); font-size: 12px; }
.tools-ivory .automation-tool .auto-secondary-overview .auto-metric > strong { font-size: 21px; line-height: 1.4; }
.tools-ivory .automation-tool .auto-secondary-overview .auto-metric small:empty { display: none; }
.tools-ivory .automation-tool .auto-payback-note { margin: 10px 2px 18px; font-size: 12px; }
.tools-ivory .automation-tool .auto-payback-note:empty { display: none; }
.tools-ivory .automation-tool .auto-result-group { padding: 24px; margin-top: 18px; border: 1px solid var(--auto-line); border-radius: 12px; background: #fffdf9; }
.tools-ivory .automation-tool .auto-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 23px; }
.tools-ivory .automation-tool .auto-card-heading h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.tools-ivory .automation-tool .auto-card-heading > span { font-size: 12px; color: var(--auto-muted); white-space: nowrap; }
.tools-ivory .automation-tool .auto-hours-chart { display: grid; gap: 21px; }
.tools-ivory .automation-tool .auto-hours-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 9px; font-size: 13px; }
.tools-ivory .automation-tool .auto-hours-row strong { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.tools-ivory .automation-tool .auto-hours-track { height: 17px; border-radius: 3px; overflow: hidden; background: #f0e9df; }
.tools-ivory .automation-tool .auto-hours-track span { display: block; height: 100%; width: 0; background: #aaa091; border-radius: 3px; }
.tools-ivory .automation-tool .auto-hours-after .auto-hours-track span { background: var(--auto-gold); }
.tools-ivory .automation-tool .auto-hours-after.is-negative .auto-hours-track span { background: var(--auto-negative); }
.tools-ivory .automation-tool .auto-time-panel > .bt-help { margin: 13px 0; }
.tools-ivory .automation-tool .auto-result-note { color: var(--auto-muted); line-height: 1.65; font-size: 13px; }
.tools-ivory .automation-tool .auto-time-value { padding: 16px 0 0; margin-top: 19px; border-top: 1px solid var(--auto-line); background: transparent; }
.tools-ivory .automation-tool .auto-time-value span { font-size: 13px; }
.tools-ivory .automation-tool .auto-time-value strong { color: #695232; font-size: 18px; }
.tools-ivory .automation-tool .auto-time-value p { margin: 0; color: var(--auto-muted); font-size: 12px; }
.tools-ivory .automation-tool .auto-cash-panel .auto-metrics { gap: 14px; }
.tools-ivory .automation-tool .auto-cash-panel .auto-metric { padding: 16px; border: 1px solid #e9ddd0; border-radius: 8px; background: var(--auto-paper); }
.tools-ivory .automation-tool .auto-cash-panel .auto-metric > span { font-size: 12px; }
.tools-ivory .automation-tool .auto-cash-panel .auto-metric > strong { font-size: 21px; }
.tools-ivory .automation-tool .auto-cash-panel .auto-emphasis { border-color: var(--auto-gold); }
.tools-ivory .automation-tool .auto-cash-panel .auto-emphasis.is-negative { border-color: #c69787; background: #fbf2ed; }
.tools-ivory .automation-tool .auto-cash-equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.tools-ivory .automation-tool .auto-equation-term { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tools-ivory .automation-tool .auto-equation-term > span { min-height: 36px; color: var(--auto-muted); font-size: 12px; line-height: 1.5; }
.tools-ivory .automation-tool .auto-equation-term > strong { font-size: clamp(16px, 1.6vw, 21px); font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tools-ivory .automation-tool .auto-equation-operator { padding-top: 35px; color: var(--auto-gold); font-size: 24px; }
.tools-ivory .automation-tool .auto-equation-total > span { color: var(--auto-ink); }
.tools-ivory .automation-tool .auto-equation-total > strong { font-weight: 600; }
.tools-ivory .automation-tool .auto-labour-detail { display: flex; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--auto-line); color: var(--auto-muted); font-size: 12px; line-height: 1.6; }
.tools-ivory .automation-tool .auto-labour-detail > strong { color: var(--auto-ink); font-weight: 500; white-space: nowrap; }
.tools-ivory .automation-tool .auto-positive { color: #3d6747; }
.tools-ivory .automation-tool .auto-negative,
.tools-ivory .automation-tool .auto-time-value strong.auto-negative { color: var(--auto-negative); }
.tools-ivory .automation-tool .auto-period-cost { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--auto-line); font-size: 13px; }
.tools-ivory .automation-tool .auto-period-cost strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tools-ivory .automation-tool .auto-monthly { margin-top: 18px; padding-bottom: 0; }
.tools-ivory .automation-tool .auto-report-body { margin-top: 26px; }
.tools-ivory .automation-tool .auto-report-body > .bt-panel,
.tools-ivory .automation-tool .auto-method { border: 1px solid var(--auto-line); border-radius: 12px; padding: 26px; margin-top: 20px; background: #fffdf9; }
.tools-ivory .automation-tool .auto-pilot > h3 { font: 500 27px/1.2 var(--serif); }
.tools-ivory .automation-tool .auto-pilot-columns { gap: 40px; margin-top: 25px; }
.tools-ivory .automation-tool .auto-pilot-columns > div + div { padding-left: 30px; border-left: 1px solid var(--auto-line); }
.tools-ivory .automation-tool .auto-report { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 28px; }
.tools-ivory .automation-tool .auto-report > h3 { align-self: center; margin: 0; }
.tools-ivory .automation-tool .auto-report > .bt-help,
.tools-ivory .automation-tool .auto-report > .bt-check,
.tools-ivory .automation-tool .auto-report > label,
.tools-ivory .automation-tool .auto-report > textarea,
.tools-ivory .automation-tool .auto-report > .bt-controls { grid-column: 1 / -1; margin-block: 0; }
.tools-ivory .automation-tool .auto-report > textarea { min-height: 180px; }
.tools-ivory .automation-tool .auto-report > .auto-preview-label { margin-top: 6px; }
.tools-ivory .automation-tool .auto-empty { align-self: start; padding: 32px; border: 1px solid var(--auto-line); border-radius: 12px; background: #fffdf9; color: var(--auto-muted); }
.tools-ivory .automation-tool [hidden] { display: none !important; }
@media (max-width: 1160px) and (min-width: 961px) {
  .tools-ivory .automation-tool .auto-cash-panel .auto-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .tools-ivory .automation-tool .auto-mobile-results { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 11px 15px; margin-bottom: 14px; border: 1px solid var(--auto-line); border-radius: 8px; color: var(--auto-ink); background: #fffdf9; font-size: 14px; }
  .tools-ivory .automation-tool .auto-mobile-results span { color: var(--auto-gold); }
  .tools-ivory .automation-tool .auto-mobile-results:hover { background: #f5efe5; }
}
@media (max-width: 760px) {
  .tools-ivory .automation-tool .auto-result-group { padding: 21px; }
  .tools-ivory .automation-tool .auto-overview { grid-template-columns: 1.2fr 1fr; padding: 20px 5px; }
  .tools-ivory .automation-tool .auto-overview .auto-metric { padding-inline: 16px; }
  .tools-ivory .automation-tool .auto-overview .auto-metric strong { font-size: 28px; }
  .tools-ivory .automation-tool .auto-overview .auto-metric > [data-auto-metric=payback] { font-size: 16px; }
  .tools-ivory .automation-tool .auto-card-heading { flex-direction: column; gap: 7px; }
  .tools-ivory .automation-tool .auto-cash-panel .auto-metrics { grid-template-columns: 1fr; }
  .tools-ivory .automation-tool .auto-output-heading h2 { font-size: 23px; }
  .tools-ivory .automation-tool .auto-report-body > .bt-panel,
  .tools-ivory .automation-tool .auto-method { padding: 22px; }
  .tools-ivory .automation-tool .auto-pilot-columns { gap: 22px; }
  .tools-ivory .automation-tool .auto-pilot-columns > div + div { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--auto-line); }
  .tools-ivory .automation-tool .auto-report { grid-template-columns: 1fr; }
  .tools-ivory .automation-tool .auto-report > button { justify-self: start; }
  .tools-ivory .automation-tool .auto-time-value { grid-template-columns: 1fr; }
  .tools-ivory .automation-tool .auto-secondary-overview { gap: 15px; padding: 0 5px; }
  .tools-ivory .automation-tool .auto-secondary-overview .auto-metric { padding-inline: 16px; }
  .tools-ivory .automation-tool .auto-cash-equation { grid-template-columns: 20px minmax(0, 1fr); gap: 12px 8px; }
  .tools-ivory .automation-tool .auto-equation-term { grid-column: 2; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 18px; }
  .tools-ivory .automation-tool .auto-equation-term > span { min-height: 0; }
  .tools-ivory .automation-tool .auto-equation-term > strong { font-size: 17px; text-align: right; }
  .tools-ivory .automation-tool .auto-equation-operator { grid-column: 1; padding-top: 0; font-size: 22px; }
  .tools-ivory .automation-tool .auto-equation-total { padding-top: 12px; border-top: 1px solid var(--auto-line); }
}
@media (max-width: 420px) {
  .tools-ivory .automation-tool .auto-overview { grid-template-columns: 1fr; padding: 20px; }
  .tools-ivory .automation-tool .auto-overview .auto-metric { padding: 0; }
  .tools-ivory .automation-tool .auto-overview .auto-metric + .auto-metric { padding: 17px 0 0; margin: 17px 0 0; border-left: 0; border-top: 1px solid var(--auto-line); }
  .tools-ivory .automation-tool .auto-period-cost { flex-direction: column; gap: 5px; }
  .tools-ivory .automation-tool .auto-secondary-overview { grid-template-columns: 1fr; padding: 0 20px; }
  .tools-ivory .automation-tool .auto-secondary-overview .auto-metric { padding: 0; }
  .tools-ivory .automation-tool .auto-labour-detail { flex-direction: column; gap: 5px; }
}
@media print {
  .tools-ivory .automation-tool .auto-input-heading .eyebrow,
  .tools-ivory .automation-tool .auto-mobile-results,
  .tools-ivory .automation-tool .auto-calculate,
  .tools-ivory .automation-tool .auto-live-note,
  .tools-ivory .automation-tool .auto-empty { display: none !important; }
  .tools-ivory .automation-tool .bt-input-pane { border: 0; padding: 0; }
  .tools-ivory .automation-tool .auto-primary-fields,
  .tools-ivory .automation-tool .auto-assumptions .bt-fields { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .tools-ivory .automation-tool .auto-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-ivory .automation-tool .auto-overview .auto-metric > strong { font-size: 20pt; }
  .tools-ivory .automation-tool .auto-result-group,
  .tools-ivory .automation-tool .auto-report-body > .bt-panel,
  .tools-ivory .automation-tool .auto-method { padding: 16px 0; border: 0; border-radius: 0; background: #fff; }
  .tools-ivory .automation-tool .auto-cash-panel .auto-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-ivory .automation-tool .auto-pilot-columns { grid-template-columns: 1fr 1fr; }
  .tools-ivory .automation-tool .auto-pilot-columns > div + div { border: 0; padding: 0; }
  .tools-ivory .automation-tool .auto-hours-track span { print-color-adjust: exact; }
}
