html:has(.erp-page) { background: #e5e9df; }
.erp-page { max-width: 1800px; margin-inline: auto; background: #fafbf7; }
.erp-page h2 { font-size: clamp(29px, 3vw, 43px); line-height: 1.22; }
.erp-page h3 { font-size: 19px; line-height: 1.35; }
.erp-page em { color: #f4ad72; font-style: normal; }
.erp-page p { text-wrap: pretty; }
.erp-page .skip-link { left: max(8px, calc((100vw - 1800px) / 2 + 8px)); }
.erp-hero { position: relative; background: #19392d; color: #fff; }
.erp-hero-layout { display: grid; grid-template-columns: 1fr 1fr; }
.erp-hero-copy { padding: 76px 60px 82px max(64px, calc((100% * 2 - 1280px) / 2)); align-self: center; }
.erp-product-name { font-size: 23px; color: #efd8b6; margin-bottom: 24px; }
.erp-hero h1 { font-size: clamp(35px, 3.2vw, 53px); line-height: 1.2; letter-spacing: -1.8px; margin-bottom: 26px; }
.erp-hero-copy > p:not(.erp-product-name) { font-size: 18px; color: #e1e8d9; line-height: 1.75; margin-bottom: 30px; }
.erp-hero-photo { position: relative; min-width: 0; }
.erp-hero-photo > img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 47% center; }
.erp-photo-note { position: absolute; bottom: 32px; left: 32px; right: 32px; padding: 20px 24px; background: #f8edce; color: var(--ink); font-size: 15px; box-shadow: 6px 6px 0 #19392d66; }
.erp-photo-note strong { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.erp-photo-note > svg { position: absolute; right: 24px; top: 30px; width: 30px; height: 30px; }
.erp-hero .motion-toggle { position: absolute; right: 16px; bottom: 12px; background: #19392d; color: #fff; border-color: #879a8a; }
.erp-chapters { background: #fff; border-bottom: 1px solid var(--line); }
.erp-chapters .wrap { display: flex; flex-wrap: wrap; gap: 12px 34px; padding-block: 20px; }
.erp-chapters a { font-size: 14px; }
.erp-chapters a:hover { color: #a84418; }
.erp-section { padding-block: 84px; }
.erp-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 44px; }
.erp-heading h2 { margin-bottom: 0; }
.erp-heading p { color: var(--body); }
.erp-heading p:last-child { margin-bottom: 0; }
.erp-scenarios { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; }
.erp-scenarios article { border-top: 1px solid #bcc8b7; padding-top: 22px; }
.erp-scenarios article > svg { width: 32px; height: 32px; color: #a84a23; margin-bottom: 18px; }
.erp-scenarios h3 { margin-bottom: 12px; }
.erp-scenarios p { font-size: 15px; color: var(--body); margin-bottom: 0; }
.erp-stock { background: #19392d; color: #fff; }
.erp-stock-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.erp-stock p { color: #d6e1cf; }
.erp-stock-rule { border-left: 3px solid var(--orange); padding-left: 22px; margin-top: 30px; font-size: 16px; color: #f3eedc; }
.erp-stock-example { background: #264939; padding: 30px; border: 1px solid #6c856e; border-radius: 4px 28px 4px 4px; }
.erp-stock-example h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin-bottom: 10px; }
.erp-stock-example > p { font-size: 14px; }
.erp-stock-choices { margin: 22px 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.erp-stock-choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.erp-stock-choices label { position: relative; cursor: pointer; }
.erp-stock-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.erp-stock-choices span { display: grid; place-items: center; border: 1px solid #9eaf94; min-height: 48px; padding: 8px 3px; font-size: 12px; text-align: center; }
.erp-stock-choices input:checked + span { background: #f0aa70; color: #19392d; border-color: #f0aa70; font-weight: 700; }
.erp-stock-choices input:focus-visible + span { outline: 3px solid white; outline-offset: 3px; }
.erp-stock-output { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 20px; }
.erp-available strong { display: block; font-size: 76px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.erp-available > span { color: #d6e1cf; font-size: 14px; }
.erp-stock-totals p { margin: 8px 0; font-size: 14px; }
.erp-stock-totals strong { color: white; font-size: 24px; font-weight: 400; margin-right: 6px; }
.erp-stock-output > p { grid-column: 1 / -1; font-size: 14px; min-height: 46px; margin: 20px 0; }
.erp-bag-rack { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; padding-bottom: 12px; border-bottom: 5px solid #9d7951; }
.erp-bag { display: grid; place-items: center; height: 51px; border: 1px dashed #82937e; border-radius: 9px 9px 3px 3px; background: transparent; color: #82937e; }
.erp-bag svg { width: 20px; height: 26px; }
.erp-bag.is-available { background: #e9d9aa; color: #365441; border: 1px solid #e9d9aa; }
.erp-bag.is-reserved { background: #f1a468; color: #19392d; border: 1px solid #f1a468; }
.erp-stock-example .erp-example-key { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 11px; margin: 14px 0 0; }
.erp-example-key span { width: 8px; height: 8px; background: #e9d9aa; }
.erp-example-key span:nth-of-type(2) { background: #f1a468; margin-left: 5px; }
.erp-example-key span:nth-of-type(3) { background: transparent; border: 1px solid #82937e; margin-left: 5px; }
.erp-purchasing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.erp-supply-flow { display: grid; gap: 32px; }
.erp-supply-flow > div { position: relative; padding-left: 72px; }
.erp-supply-flow > div > svg { position: absolute; left: 0; top: 0; width: 46px; height: 46px; padding: 11px; border: 1px solid #a8b89d; border-radius: 50%; background: #e7ecd9; }
.erp-supply-flow > div:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 54px; bottom: -24px; width: 1px; background: #bcc8ae; }
.erp-supply-flow p { font-size: 15px; color: var(--body); margin: 0; }
.erp-cost-example { background: #f5e4be; padding: 34px; border-radius: 4px 30px 4px 4px; box-shadow: 6px 6px 0 #d7d9c5; }
.erp-cost-top { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.erp-cost-top > svg { width: 44px; height: 44px; flex-shrink: 0; color: #ad512c; }
.erp-cost-top h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 0; }
.erp-cost-example > p { font-size: 15px; }
.erp-cost-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 0; border-block: 1px solid #c5b990; margin: 22px 0; }
.erp-cost-values dt { font-size: 13px; }
.erp-cost-values dd { margin: 0; font-size: 31px; }
.erp-cost-values > div:last-child dd { color: #923e23; }
.erp-margin > p { font-size: 14px; }
.erp-margin > div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.erp-margin > div > span, .erp-margin > div > strong { font-size: 33px; font-weight: 400; }
.erp-margin > div > strong { color: #923e23; }
.erp-margin small { display: block; font-size: 12px; color: var(--ink); margin-top: 5px; }
.erp-cost-example .erp-cost-foot { font-size: 12px; margin: 24px 0 0; color: #59604e; }
.erp-yard { background: #e6ebda; }
.erp-yard-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.erp-yard figure { margin: 0; }
.erp-yard img { width: 100%; height: auto; border-radius: 4px 28px 4px 4px; }
.erp-yard figcaption { font-size: 13px; margin-top: 12px; color: var(--body); }
.erp-yard-details article { padding-top: 20px; margin-top: 20px; border-top: 1px solid #b9c6ad; }
.erp-yard-details h3 { margin-bottom: 10px; }
.erp-yard-details p { font-size: 15px; color: var(--body); margin: 0; }
.erp-connections { background: #19392d; color: white; }
.erp-connections .erp-heading p { color: #d5e0ce; }
.erp-connection-options { border-top: 1px solid #6a806e; }
.erp-connection-options details { border-bottom: 1px solid #6a806e; }
.erp-connection-options summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; font-size: 21px; cursor: pointer; list-style: none; }
.erp-connection-options summary::-webkit-details-marker { display: none; }
.erp-connection-options summary > svg { width: 22px; height: 22px; flex-shrink: 0; color: #f4ad72; }
.erp-connection-options details[open] summary > svg { transform: rotate(45deg); }
.erp-connection-body { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-bottom: 30px; }
.erp-connection-body > p { color: #d5e0ce; font-size: 15px; margin: 0; }
.erp-data-path { display: flex; align-items: center; gap: 15px; text-align: center; }
.erp-data-path > span { flex: 1; border: 1px solid #8fa486; background: #2c4a38; border-radius: 4px; padding: 20px 12px; font-weight: 700; font-size: 14px; }
.erp-data-path > div { display: grid; gap: 12px; font-size: 11px; color: #f4b27d; }
.erp-data-path .erp-outbound::after { content: ' →'; }
.erp-data-path .erp-inbound::before { content: '← '; }
.erp-connections-cta { display: flex; gap: 50px; align-items: center; justify-content: space-between; margin-top: 36px; }
.erp-connections-cta p { flex: 1; color: #d5e0ce; margin: 0; }
.erp-connections-cta > a { flex-shrink: 0; }
.erp-family { background: #f3f0e5; }
.erp-family-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.erp-family-grid article { padding: 30px; background: #fff; border: 1px solid #c9d0bf; display: flex; align-items: start; flex-direction: column; }
.erp-family-grid article > svg { width: 36px; height: 36px; margin-bottom: 25px; }
.erp-family-grid h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.erp-family-grid p { color: var(--body); flex: 1; }
.erp-family-grid .button { padding: 13px 15px; font-size: 12px; }
.erp-family-grid .erp-family-storehouse { background: #19392d; color: #fff; border-color: #19392d; }
.erp-family-storehouse > svg { color: #f4ad72; }
.erp-family-storehouse p { color: #d5e0ce; }
.erp-family-storehouse > span { border-top: 1px solid #789077; width: 100%; padding-top: 18px; font-size: 14px; color: #efc394; }
.erp-accounting { margin-top: 34px; padding: 26px 30px; display: flex; gap: 25px; border: 1px solid #c9d0bf; }
.erp-accounting > svg { width: 32px; height: 32px; flex-shrink: 0; }
.erp-accounting h3 { margin-bottom: 10px; }
.erp-accounting p { color: var(--body); font-size: 15px; margin: 0; }
.erp-faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.erp-faq-layout > div:first-child > p { color: var(--body); }
.erp-page .faq-list p { max-width: none; }
@media (max-width: 1150px) {
  .erp-hero-copy { padding: 54px 36px 60px 40px; }
  .erp-heading, .erp-stock-layout, .erp-purchasing-layout, .erp-yard-layout, .erp-faq-layout { gap: 40px; }
  .erp-scenarios { gap: 24px; }
  .erp-family-grid article { padding: 24px; }
  .erp-connection-body { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 980px) {
  .erp-hero h1 { font-size: 38px; }
  .erp-hero-copy > p:not(.erp-product-name) { font-size: 16px; }
  .erp-scenarios { grid-template-columns: 1fr 1fr; gap: 36px; }
  .erp-stock-layout { grid-template-columns: 1fr 1.1fr; gap: 28px; }
  .erp-stock-example { padding: 24px; }
  .erp-stock-choices { grid-template-columns: 1fr 1fr; }
  .erp-family-grid { gap: 14px; }
  .erp-family-grid article { padding: 20px; }
  .erp-family-grid h3 { font-size: 20px; }
  .erp-family-grid .button { width: 100%; gap: 8px; }
  .erp-connections-cta { gap: 30px; }
}
@media (max-width: 760px) {
  .erp-hero-layout { grid-template-columns: 1fr; }
  .erp-hero-copy { padding: 38px var(--gutter) 42px; }
  .erp-hero h1 { font-size: clamp(33px,7.5vw,47px); letter-spacing: -1px; }
  .erp-product-name { margin-bottom: 18px; font-size: 20px; }
  .erp-hero-photo { height: 340px; }
  .erp-hero-photo > img { object-position: center 45%; }
  .erp-photo-note { bottom: 22px; left: 24px; right: 60px; padding: 16px 20px; }
  .erp-photo-note strong { font-size: 22px; }
  .erp-photo-note > svg { width: 24px; right: 15px; }
  .erp-chapters .wrap { gap: 12px 24px; padding-block: 18px; }
  .erp-chapters a { font-size: 12px; }
  .erp-section { padding-block: 58px; }
  .erp-heading, .erp-stock-layout, .erp-purchasing-layout, .erp-yard-layout, .erp-faq-layout, .erp-page .final-layout { grid-template-columns: 1fr; gap: 30px; }
  .erp-heading { margin-bottom: 32px; }
  .erp-stock-choices { grid-template-columns: repeat(4,1fr); }
  .erp-yard-layout > figure { order: 2; }
  .erp-yard img { max-height: 330px; object-fit: cover; }
  .erp-family-grid { grid-template-columns: 1fr; gap: 18px; }
  .erp-family-grid article { padding: 28px; }
  .erp-family-grid article > svg { margin-bottom: 18px; }
  .erp-family-grid h3 { font-size: 25px; }
  .erp-family-grid .button { width: auto; }
  .erp-connection-options summary { font-size: 18px; }
  .erp-connections-cta { display: block; }
  .erp-connections-cta > a { margin-top: 24px; }
  .erp-accounting { padding: 24px; gap: 18px; }
  .erp-page .final-layout > .button { justify-self: start; }
}
@media (max-width: 420px) {
  .erp-scenarios { grid-template-columns: 1fr; gap: 26px; }
  .erp-scenarios article { padding-left: 50px; position: relative; }
  .erp-scenarios article > svg { position: absolute; left: 0; top: 24px; width: 28px; }
  .erp-stock-example { padding: 22px 18px; }
  .erp-stock-choices { grid-template-columns: 1fr 1fr; }
  .erp-available strong { font-size: 65px; }
  .erp-stock-totals strong { font-size: 22px; }
  .erp-bag-rack { gap: 6px; }
  .erp-cost-example { padding: 26px; }
  .erp-cost-top h3 { font-size: 25px; }
  .erp-margin > div { gap: 10px; }
  .erp-margin > div > span, .erp-margin > div > strong { font-size: 28px; }
  .erp-data-path { flex-direction: column; gap: 12px; }
  .erp-data-path > span { width: 100%; padding: 14px; }
  .erp-data-path > div { gap: 6px; }
  .erp-data-path .erp-outbound::after { content: ' ↓'; }
  .erp-data-path .erp-inbound::before { content: '↑ '; }
}
