/* The four parallel records of each phase */
.journey-overview { padding: 20px 23px; }
.journey-overview .control-section-head { margin-bottom: 13px; }
.journey-overview h2 { font-size: 24px; line-height: 1.2; }
.journey-overview .quiet { margin: 4px 0 0; }
.journey-alert-count { border: 1px solid #e9d8aa; background: #fff7e6; color: #79551b; border-radius: 7px; padding: 7px 10px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.journey-rail { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 9px; }
.journey-rail a { display: flex; align-items: center; gap: 7px; background: #eff3f8; color: #435979; font-size: 11px; font-weight: 550; white-space: nowrap; text-decoration: none; border-radius: 7px; padding: 7px 9px; }
.journey-rail a span { color: #57739e; font-variant-numeric: tabular-nums; }
.journey-rail a[aria-current=step] { color: #fff; background: #284e80; }
.journey-rail a[aria-current=step] span { color: #d4dce7; }
.journey-next { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-top: 11px; border-top: 1px solid #e5ebf3; }
.journey-next strong { font-size: 14px; }
.journey-next small { display: block; color: #475e80; }
.journey-next details { min-width: 115px; }
.journey-phase-change[open] { flex: 1; max-width: 310px; }
.journey-phase-change form { margin-top: 12px; }
.journey-phase-change summary, .journey-row > summary { list-style: none; cursor: pointer; }
.journey-phase-change summary::-webkit-details-marker, .journey-row > summary::-webkit-details-marker { display: none; }
.journey-timeline { margin-bottom: 20px; }
.journey-row { border: 1px solid #dae1eb; background: #fff; border-radius: 9px; margin-bottom: 8px; scroll-margin-top: 90px; }
.journey-row > summary { display: flex; align-items: center; gap: 11px; padding: 12px 16px; }
.journey-current { border-color: #a1b2cb; box-shadow: 0 1px 4px #22314813; }
.journey-current > summary { background: #eef2f8; border-radius: 8px; }
.journey-index { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #e7ecf4; color: #3a4c68; font-size: 12px; font-weight: 650; }
.journey-row-title { flex: 1; min-width: 0; }
.journey-row-title strong { font-size: 14px; }
.journey-row-title small { display: block; font-size: 11px; color: #4c6489; }
.journey-row time { color: #465c7e; font-size: 11px; }
.journey-expand::before { content: "+"; font-size: 17px; color: #465c7e; }
.journey-row[open] .journey-expand::before { content: "−"; }
.journey-lanes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 12px; border-top: 1px solid #e7ecf3; align-items: start; }
.journey-lane { border: 1px solid #dee5ef; border-radius: 7px; min-width: 0; min-height: 125px; padding: 10px; }
.journey-lane h3 { margin: 0 0 8px; padding: 0 0 7px; border-bottom: 2px solid #c3cede; font-size: 12px; }
.journey-lane[data-lane="money"] h3 { border-color: #e6d8ac; }
.journey-lane[data-lane="docs"] h3 { border-color: #bfd2e4; }
.journey-lane[data-lane="notes"] h3 { border-color: #d6cde6; }
.journey-lane .quiet { font-size: 11px; margin: 7px 0; }
.journey-record { display: block; color: #243041; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #e6ebf3; overflow-wrap: anywhere; }
.journey-record b { font-size: 11px; }
.journey-record small { display: block; color: #4c6489; font-size: 10px; }
.journey-task { display: flex; gap: 6px; padding: 6px 0; align-items: flex-start; }
.journey-task > details { min-width: 0; flex: 1; }
.journey-task summary, .journey-record summary, .journey-inline summary { cursor: pointer; color: #33445e; font-size: 11px; overflow-wrap: anywhere; }
.journey-task summary small { display: block; color: #516b92; }
.journey-inline { margin: 8px 0; }
.journey-form { margin: 8px 0; }
.journey-form label { display: block; font-size: 11px; }
.journey-form input, .journey-form textarea, .journey-form select { width: 100%; min-width: 0; margin: 3px 0 5px; padding: 5px; font-size: 11px; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.journey-rule-form { display: flex; gap: 10px; align-items: end; border-bottom: 1px solid #e6ebf3; padding: 6px 0; }
.journey-rule-form label { flex: 1; }
.journey-alert-list a { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #e5ebf3; text-decoration: none; color: #283549; }
.journey-alert-list a:hover { text-decoration: underline; }
.journey-alert-list time { font-size: 11px; color: #435979; }
.alert-kind { display: inline-block; font-size: 10px; font-weight: 650; color: #7b5a23; background: #fbf4e2; border-radius: 4px; padding: 2px 6px; }
.journey-money-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 10px 0; }
.journey-money-grid > div, .order-facts > div { min-width: 0; }
.journey-money-grid small, .order-facts small { display: block; color: #475f82; font-size: 11px; }
.journey-money-grid strong { display: block; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.journey-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.journey-balance-grid h3 { font-size: 13px; margin: 0 0 7px; }
.balance-list { margin: 0; }
.balance-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; border-bottom: 1px solid #e6ebf3; font-size: 12px; }
.balance-list dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.balance-subtotal { font-weight: 650; }
.balance-result { font-weight: 650; background: #eaeff6; border-radius: 5px; padding: 8px !important; }
.calculated-value { display: block; font-size: 12px; font-weight: 650; color: #32435c; margin: 6px 0; }
.hit-editor-row { display: grid; grid-template-columns: 1.4fr 1fr .75fr .65fr 1fr; gap: 7px; border-bottom: 1px solid #e2e8f1; padding: 8px 0; }
.hit-editor-row label { min-width: 0; font-size: 11px; }
.hit-editor-row input, .hit-editor-row select { width: 100%; min-width: 0; margin-top: 4px; }
.hit-editor-row output { color: #32435c; font-weight: 650; font-size: 12px; align-self: center; grid-column: span 4; }
.hit-editor-row button { justify-self: end; }
.order-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 11px 0; padding: 10px 11px; background: #f1f4f8; border-radius: 7px; }
.order-facts b { font-size: 12px; }
.order-extra-fields { border: 1px solid #dce2ec; border-radius: 7px; padding: 8px 11px; margin: 10px 0; }
[data-lane] [id], .control-panel[id], .flow-record[id], .optional-fields[id] { scroll-margin-top: 90px; }
.control-panel > summary, .flow-inline-actions > details > summary { cursor: pointer; color: #33445e; }
.control-actions { flex-wrap: wrap; justify-content: flex-end; }
.journey-alert-group { border-bottom: 1px solid #e5ebf3; padding: 8px 0; }
.journey-alert-group summary { cursor: pointer; display: list-item; }
@media (max-width: 1080px) {
  .journey-lanes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hit-editor-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hit-editor-row output { grid-column: auto; }
}
@media (max-width: 640px) {
  .journey-balance-grid { grid-template-columns: 1fr; gap: 17px; }
  .journey-money-grid, .order-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-overview { padding: 16px; }
  .journey-row > summary { gap: 7px; padding: 10px; }
  .journey-row-title small { display: none; }
  .journey-row time { font-size: 10px; }
  .journey-lanes { padding: 8px; gap: 6px; }
  .journey-lane { padding: 8px; }
  .journey-next { flex-wrap: wrap; }
  .control-actions { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .journey-lanes { grid-template-columns: 1fr; }
}

