:root{font-family:Inter,"PingFang SC",Arial,sans-serif;color:#18332e;background:#f4f6f3;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#184d40;color:white;display:flex;align-items:center;gap:1.4rem;padding:1rem max(4vw,1rem);flex-wrap:wrap}header b{letter-spacing:.13rem}header span{color:#d1e6b8}nav{display:flex;gap:1.2rem;margin-right:auto}a{color:#216c55;text-underline-offset:3px}header a{color:white}main{max-width:1050px;margin:1.5rem auto;padding:0 1.2rem 4rem}h1{font-size:clamp(1.6rem,4vw,2.45rem);letter-spacing:-.04em;overflow-wrap:anywhere}h2{font-size:1.2rem;margin-top:0}section,details{background:white;border:1px solid #d5dfd6;border-radius:.5rem;padding:1.2rem;margin:1rem 0}.entry{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;align-items:end}.roles{display:flex;flex-wrap:wrap;align-items:end;gap:.7rem}.roles label,.entry label{display:grid;gap:.35rem}input,select,button{font:inherit;border:1px solid #a9b9b0;padding:.6rem .7rem;border-radius:.3rem;max-width:100%;min-width:0}button{background:#205641;color:#fff;cursor:pointer}.light{background:#fff;color:#205641}fieldset{grid-column:1/-1;border:1px solid #d5dfd6;border-radius:.35rem}.entry label.check{display:inline-flex;align-items:center;margin:.35rem .8rem .35rem 0}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;border-bottom:1px solid #e0e6df;padding:.6rem;white-space:nowrap}th{color:#4b645a;font-size:.91rem}.total,.barn{background:#edf4eb}.status{color:#4d625a}.metrics{display:flex;flex-wrap:wrap;gap:1rem}.metrics div{flex:1;background:#e1eddc;padding:1rem;min-width:145px}.metrics strong{display:block;font-size:1.45rem;margin-top:.4rem}dl{display:grid;grid-template-columns:auto 1fr;gap:.65rem;margin:0}dd{margin:0;overflow-wrap:anywhere}summary{cursor:pointer}details form{margin:1rem 0}li{padding:.25rem}@media(max-width:600px){header{gap:.7rem}main{padding:0 .7rem 2rem}.entry{grid-template-columns:1fr}section{padding:.85rem}}

.fq-count{margin:1.6rem 0 .75rem}.fq-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.fq-heading h2{margin:0}.fq-state{font-size:.92rem;color:#694c21;background:#faf0d9;border-radius:.3rem;padding:.3rem .55rem}.loss-card details{margin-bottom:0}.loss-card details dl{margin-top:1rem}.loss-card dl{grid-template-columns:minmax(7rem,30%) minmax(0,1fr)}header nav{flex-wrap:wrap}

/* Shipment workspace */
:root {color:#192e2c;background:#f5f6f3;font-family:"Inter","PingFang SC",system-ui,sans-serif}
body{line-height:1.55}
header{background:#143b35;padding:.85rem max(calc((100vw - 1160px)/2),4vw);gap:1.4rem;border-bottom:3px solid #9db988}
header b{letter-spacing:.11em;font-size:1.12rem}header>span{border:1px solid #66877c;border-radius:4px;padding:.12rem .48rem;font-size:.78rem}
header nav a,header div a{text-decoration:none;padding:.3rem .1rem}
header a:hover,header a:focus-visible{text-decoration:underline}
main{max-width:1160px;margin:1.4rem auto;display:flow-root}
main>h1,.sheet-intro h1{font-weight:680;line-height:1.18;letter-spacing:-.035em}
.role-picker{margin:0 0 1rem auto;padding:0;width:fit-content;border:0;background:transparent}
.role-picker summary,.backlink,.sheet-id{font-size:.875rem;color:#46645a}
.role-picker .roles{margin:.6rem 0}.backlink{text-decoration:none;display:inline-block;margin:.15rem 0 .7rem}
.sheet-intro{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.eyeline{color:#457065;font-weight:650;margin:.2rem 0;font-size:.9rem}
.sheet-intro h1{margin:.2rem 0;font-size:clamp(1.7rem,3.7vw,3.1rem)}.arrow{color:#75897f;font-weight:400}
.sheet-id{margin:.25rem 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stage-pill,.fq-state{color:#214c3a;background:#e2ecd9;border-radius:4px;padding:.35rem .65rem;font-size:.82rem;font-weight:650}
section,details:not(.role-picker){border:1px solid #d6ddd5;border-radius:10px;padding:1.25rem 1.4rem}
.journey{margin:1.4rem 0 .9rem}.journey h2{font-size:.97rem;margin-bottom:1rem}
.journey ol{display:flex;list-style:none;margin:0;padding:0;gap:.8rem}
.journey li{position:relative;flex:1;display:flex;align-items:flex-start;gap:.65rem;padding:0;background:none;min-width:0}
.journey li:not(:last-child):after{content:"";height:1px;flex:1;background:#cad6cd;margin:.9rem .15rem 0}
.journey small,.journey b{display:block}.journey small,.owners{color:#54655e;font-size:.81rem}
.node{background:#edf0ed;color:#56675e;width:1.85rem;height:1.85rem;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:.85rem;font-weight:650}
.done_step .node,.no_case .node{background:#2d6553;color:white}.in_hand .node{background:#faeac9;color:#72421c}.owners{border-top:1px solid #e4e8e2;margin-top:.9rem;padding-top:.7rem}
.sheet-tabs{display:flex;border-bottom:1px solid #cad4ce;gap:1.4rem;margin:0 0 1.2rem}
.sheet-tabs a{padding:.6rem 0;color:#4b6158;text-decoration:none}
.sheet-tabs [aria-current=page]{color:#1d5842;border-bottom:3px solid;font-weight:650}
.metrics{margin:1rem 0;gap:0;background:#fff;border:1px solid #d6ddd5;border-radius:10px}.metrics div{background:transparent;min-width:0;padding:1rem 1.4rem;color:#4f6258}.metrics div+div{border-left:1px solid #dde4dc}.metrics strong{color:#1b3b31;font-size:clamp(1.05rem,2vw,1.65rem);font-variant-numeric:tabular-nums}
summary{font-weight:600}.entry{margin-top:.8rem}.entry button,.lookup button,button{border:1px solid #31594b;min-height:44px}.entry label,.lookup label{font-size:.92rem}
.lookup{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.7rem}.lookup label{display:grid;gap:.35rem;min-width:min(22rem,100%)}.lookup input{background:white}
.trip-pages a{display:inline-flex;align-items:center;min-height:44px;padding:0 .65rem}
h2 small{font-weight:500;color:#577162}.create-trip summary{color:#245b48}table a{font-weight:600}
a:focus-visible,summary:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ca852d;outline-offset:3px}
@media(max-width:680px){header{gap:.4rem .9rem}header nav{order:3;flex-basis:100%;gap:.8rem}header>div{margin-left:auto}main{margin:.8rem auto;padding:0 1rem 3rem}.sheet-intro{flex-wrap:wrap;gap:.3rem}.journey ol{display:grid;grid-template-columns:1fr 1fr;gap:1rem .55rem}.journey li:after{display:none}.role-picker{margin-bottom:.4rem}.metrics{flex-wrap:wrap}.metrics div{min-width:30%;padding:.7rem;font-size:.79rem}.metrics strong{overflow-wrap:anywhere}section,details:not(.role-picker){padding:1rem}.lookup label{min-width:0;flex:1}.lookup a{flex-basis:100%}.sheet-tabs{gap:1rem}dl{grid-template-columns:minmax(0,40%) minmax(0,1fr)}.entry{grid-template-columns:minmax(0,1fr)}}
.taskbar:not([hidden]){display:flex;justify-content:space-between;align-items:center;gap:.6rem 1.2rem;flex-wrap:wrap;margin:1rem 0;padding:.85rem 1.2rem;background:#e8eee5;border-left:4px solid #548065;border-radius:0 8px 8px 0}
.taskbar small,.taskbar strong:not([hidden]){display:block}.taskbar small{color:#4a6254}.action-links{display:flex;gap:.5rem;flex-wrap:wrap}.action-links a{background:#275b48;color:#fff;border-radius:5px;padding:.55rem .85rem;text-decoration:none}.entry{scroll-margin-top:1rem}
.balance{grid-column:1/-1;border-radius:6px;background:#e9f0e7;color:#25533e;padding:.55rem .75rem}.balance.mismatch{background:#fff2d8;color:#794f19}
button:disabled{opacity:.55;cursor:not-allowed}.entry details.reweigh-fields,.entry details.receipt-exceptions{grid-column:1/-1;margin:0;padding:.7rem 1rem}
.dependent:not([hidden]){display:grid;gap:.6rem}.entry details label{margin:.6rem 0}.entry textarea{font:inherit;width:100%}
.entry [hidden]{display:none}

main.auth-card {
  width: min(27rem, calc(100% - 2rem));
  margin: clamp(1.5rem, 7vh, 5rem) auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid #dbe3da;
  border-radius: .75rem;
}
.auth-card h1 {margin: 0 0 1.4rem; border-inline-start: .28rem solid #216144; padding-inline-start: .65rem; line-height: 1.2; font-size: 1.65rem}
.auth-card .entry {display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: .9rem}
.auth-card .auth-wecom {display: grid; place-items: center; min-height: 2.8rem; border-radius: .35rem; background: #17593c; color: white; font-weight: 650; text-decoration: none}
.auth-card .auth-wecom:hover, .auth-card .auth-wecom:focus-visible {background: #10452e}
.auth-card .auth-account {display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 .9rem; font-size: .95rem; color: #405749}
.auth-card .auth-account::after {content: ""; flex: 1; height: 1px; background: #dbe3da}
.auth-card .auth-account + form button {background: white; color: #17593c; border-color: #537b62}
.receipt-finding {padding: 1rem 0; overflow-wrap: anywhere}
.receipt-finding + .receipt-finding {border-top: 1px solid #dbe3da}
.receipt-finding p {margin: .45rem 0}
.receipt-finding details {margin-top: .75rem}
.receipt-finding dl {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem 1rem; max-width: 42rem}
.receipt-finding dd {margin: 0; font-variant-numeric: tabular-nums}

.lh-filters {display:flex;flex-wrap:wrap;align-items:end;gap:1rem 2rem;margin:1.5rem 0}
.lh-filters .lookup {max-width:100%;margin:0}
.lh-filters .lookup label {min-width:0}
.lh-filters select {max-width:100%;font:inherit}
.lh-report {max-width:52rem;overflow-wrap:anywhere}
.lh-report h3 {font-size:1rem}
@media (max-width:680px) {
  .lh-filters {display:grid;grid-template-columns:minmax(0,1fr)}
  .lh-filters .lookup {display:grid;grid-template-columns:minmax(0,1fr) auto}
}
.bc-count-table thead th {white-space:nowrap}
.bc-count-table tbody th {font-weight:500;white-space:normal;overflow-wrap:normal}
.bc-count-table td,.bc-count-table thead th:not(:first-child) {text-align:right;white-space:nowrap}

/* Single-line controls share one baseline in production entry and lookup forms. */
:root { --control-height: 2.75rem; }
form :is(input:not([type]), input:is([type=text], [type=search], [type=number], [type=date], [type=time], [type=datetime-local], [type=password], [type=email], [type=tel], [type=url]), select:not([multiple]):not([size])) {
  box-sizing: border-box;
  height: var(--control-height);
  min-width: 0;
  padding-block: .45rem;
  font-size: 1rem;
  line-height: 1.25;
  color: inherit;
  background-color: white;
  border: 1px solid #9daf9f;
  border-radius: .35rem;
}
form select:not([multiple]):not([size]) {
  appearance: none;
  padding-right: 2.1rem;
  background-image: linear-gradient(45deg, transparent 50%, #486253 50%), linear-gradient(135deg, #486253 50%, transparent 50%);
  background-position: right .88rem center, right .59rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  form select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
}
.lookup button { padding-block: .45rem; min-height: var(--control-height); line-height: 1.25; }

.ear-input {display:grid;gap:.75rem;max-width:47rem;margin-block:.8rem 1.2rem}
.ear-input>label {display:grid;gap:.4rem}
.ear-input>label>span {font-size:.9rem;color:#496154}
.ear-input textarea {box-sizing:border-box;width:100%;min-height:5rem;padding:.65rem;border:1px solid #82988c;border-radius:.35rem;font:inherit;resize:vertical}
.ear-input>button {justify-self:start}
.ear-issues {border-inline-start:3px solid #a76717;background:#fff6e8;padding:.65rem .9rem;overflow-wrap:anywhere}
.ear-issues>div {margin-top:.45rem}

.mating-source-row {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.65rem;align-items:end;margin-bottom:.65rem}
fieldset[data-mating-sources] {min-width:0;grid-column:1/-1}
.mating-source-row :is(input,select) { width:100%; height:var(--control-height); }
.sow-reference { overflow-wrap:anywhere; }
@media (max-width:420px) {
  .entry details[data-source-summary] {
    background:transparent;
    border:0;
    border-block-start:1px solid #d6ddd5;
    border-radius:0;
    padding-inline:0;
  }
  fieldset[data-mating-sources] { border:0; margin-inline:0; padding-inline:0; }
  fieldset[data-common-source] .mating-source-row { flex:1 0 100%; min-width:0; }
}

.fq-lookup-reference{overflow-wrap:anywhere}

header a.erp-brand{color:inherit;text-decoration:none}
