:root{color-scheme:light;font:16px/1.5 system-ui,sans-serif;color:#182822;background:#f4f5ed;--ink:#182822;--green:#1e5243;--line:#d5ddd1;--muted:#4c5c53}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}.wrap{width:min(100% - 2rem,62rem);margin:auto}header{border-bottom:1px solid var(--line);background:#fffdf8}.bar{display:flex;align-items:center;justify-content:space-between;min-height:4rem;gap:.65rem}.brand{font-weight:800;font-size:1.15rem}.badge{font:700 .62rem/1 system-ui;letter-spacing:.09em;color:var(--green);background:#e2ede2;padding:.38rem .48rem;border-radius:.35rem;margin-left:.4rem;white-space:nowrap}main{padding:2.7rem 0}h1,h2,p{margin:0 0 .65rem}h1{font-size:clamp(2.5rem,8vw,4.6rem);line-height:1;letter-spacing:-.075em}h2{font-size:1.6rem;line-height:1.16;letter-spacing:-.03em}.kicker{color:var(--green);font-size:.72rem;font-weight:850;letter-spacing:.15em;margin-bottom:.55rem}p{color:var(--muted)}#hero{margin-bottom:1.85rem}.panel{background:#fffdf8;border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,4vw,1.9rem);max-width:31rem;margin-top:1rem}.wide{max-width:none}form{display:grid;gap:.9rem;margin-top:1rem}label{display:grid;gap:.3rem;font-size:.87rem;font-weight:650}input,select,button{font:inherit;border-radius:.45rem;min-height:2.65rem}input,select{border:1px solid #8b9b90;background:white;color:var(--ink);padding:.45rem .65rem;width:100%}button{border:1px solid var(--green);background:var(--green);color:#fff;font-weight:725;padding:.45rem .8rem;cursor:pointer}button.quiet{background:transparent;color:var(--green)}button:disabled{cursor:wait;opacity:.6}:focus-visible{outline:3px solid #875000;outline-offset:3px}details{border-top:1px solid var(--line);margin-top:1.3rem;padding-top:.75rem}summary{cursor:pointer;color:var(--green);font-weight:700}details p{margin-top:.6rem}.section-head{display:flex;gap:1rem;justify-content:space-between;align-items:end;margin-bottom:.9rem}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}td,th{border-top:1px solid var(--line);padding:.7rem .35rem;font-size:.89rem}th:last-child,td:last-child{text-align:right;white-space:nowrap}.request{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr minmax(8rem,11rem) auto auto;gap:.55rem;align-items:center;padding:.75rem 0;overflow-wrap:anywhere}.request small{display:block}#notice:not(:empty){border-left:4px solid var(--green);background:#e2ede2;padding:.55rem .75rem;max-width:62rem}footer{border-top:1px solid var(--line);padding:1rem 0 2rem;font-size:.82rem;color:var(--muted)}@media(max-width:620px){main{padding-top:1.65rem}.request{grid-template-columns:1fr 1fr}.request p{grid-column:1/-1}.section-head{display:block}.bar button{font-size:.8rem}}
#catalogueFrame{width:100%;height:80vh;min-height:34rem;border:1px solid var(--line);border-radius:.7rem;background:#fff}.wide{max-width:none}.catalogue-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem}


/* Give the signed-in catalogue more space on desktop. */
@media (min-width: 900px) {
  main.wrap:has(#catalogueFrame[src*="catalogue.html"]),
  main .wrap:has(#catalogueFrame[src*="catalogue.html"]) { width: calc(100% - 2rem); }
  main:has(#catalogueFrame[src*="catalogue.html"]) { padding-top: 1rem; }
  .panel:has(#catalogueFrame) { padding: .65rem; }
  #catalogueFrame { height: max(34rem, calc(100dvh - 8rem)); }
}

/* Signed-out AllSfär trade portal. No change to customer or admin views. */
body:has(main > #guest:not([hidden])) { background:#f3f0e9 }
body:has(main > #guest:not([hidden])) > header { display:none }
body:has(main > #guest:not([hidden])) > main.wrap {
  width:min(100% - 3rem, 77rem);
  padding-block:clamp(1.5rem, 6vh, 4.5rem);
}
body:has(main > #guest:not([hidden])) #notice:not(:empty) {
  margin:0 0 .75rem;
  max-width:none;
  border-color:#00655f;
  background:#e3efed;
  color:#253434;
}
#guest.panel {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  max-width:none;
  margin:0; padding:0;
  min-height:37rem;
  border:1px solid #e1ded6;
  border-radius:1.25rem;
  background:#fffefa;
  overflow:hidden;
  box-shadow:0 16px 52px rgb(41 34 25 / 10%);
  color:#2f3133;
}
#guest .guest-showroom {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:end;
  background:#40372e;
  overflow:hidden;
}
#guest .guest-image {
  position:absolute;
  inset:0;
  height:100%;
  width:100%;
  object-fit:cover;
  object-position:65% center;
  z-index:-2;
}
#guest .guest-showroom::after {
  position:absolute;
  inset:0;
  content:"";
  z-index:-1;
  background:linear-gradient(180deg, transparent 28%, rgb(23 21 18 / 28%) 52%, rgb(23 21 18 / 88%) 100%);
}
#guest .guest-story { padding:clamp(1.6rem, 4vw, 3.5rem); color:#fff }
#guest .guest-eyebrow { font-size:.69rem; letter-spacing:.17em; font-weight:800 }
#guest .guest-story p { color:inherit }
#guest .guest-tagline { font-size:clamp(2.3rem,5.2vw,4.7rem); font-weight:750; letter-spacing:-.065em; line-height:1; margin:0 0 .6rem }
#guest .guest-description { margin:0; font-size:clamp(.93rem,1.5vw,1.15rem) }
#guest .guest-content { align-self:center; padding:clamp(1.65rem,4.8vw,4.25rem) }
#guest .guest-mark {
  width:max-content;
  background:#373938;
  border-radius:.42rem;
  padding:.58rem .7rem;
  margin-bottom:2.2rem;
}
#guest .guest-mark img { display:block; width:6.75rem; height:auto }
#guest .guest-content .guest-eyebrow { color:#00655f; margin:0 0 .45rem }
#guest h1 { font-size:clamp(2rem,3.7vw,3.35rem); font-weight:780; line-height:1.03; letter-spacing:-.06em; margin:0 0 .76rem }
#guest .guest-intro { color:#535958; max-width:35ch; margin:0 }
#guest form { margin-top:1.55rem; gap:.9rem }
#guest label { color:#303534; font-size:.87rem }
#guest input { min-height:2.95rem; border:1px solid #a7aaa5; background:#fff; color:#2f3133 }
#guest button[type="submit"] { min-height:3rem; margin-top:.2rem; background:#00655f; border-color:#00655f }
#guest button[type="submit"]:hover:not(:disabled) { background:#004d48; border-color:#004d48 }
#guest :focus-visible { outline:3px solid #00655f; outline-offset:3px }
@media (max-width:720px) {
  body:has(main > #guest:not([hidden])) > main.wrap { width:min(100% - 1.25rem,32rem); padding-block:.65rem }
  #guest.panel { grid-template-columns:1fr; min-height:0; border-radius:.85rem }
  #guest .guest-showroom { min-height:clamp(10rem,30vw,13rem) }
  #guest .guest-image { object-position:60% 55% }
  #guest .guest-story { padding:.85rem 1.2rem }
  #guest .guest-tagline { font-size:2.1rem; margin-bottom:.15rem }
  #guest .guest-description { display:none }
  #guest .guest-content { padding:1.2rem 1.25rem 1.45rem }
  #guest .guest-mark { margin-bottom:.85rem; padding:.34rem .45rem }
  #guest .guest-mark img { width:5.65rem }
  #guest h1 { font-size:2.12rem; margin-bottom:.48rem }
  #guest form { margin-top:1rem }
}

#guest .guest-access { border-top:1px solid #d4d7d0; margin-top:1.3rem; padding-top:1rem }
#guest .guest-access p { color:#535958; margin:0 0 .55rem; font-size:.89rem }
#guest .guest-request { display:grid; place-items:center; text-align:center; box-sizing:border-box; min-height:2.8rem; padding:.55rem .8rem; border:1px solid #00655f; border-radius:.55rem; color:#00655f; font-weight:700; text-decoration:none }
#guest .guest-request:hover { background:#e6efea }
#guest .guest-access .guest-access-note { margin:.55rem 0 0; font-size:.8rem }

#guest .guest-usage-note { color:#535958; margin:.7rem 0 0; font-size:.8rem }
.usage-scroll { overflow:auto }
#usage table { width:100%; border-collapse:collapse; min-width:37rem }
#usage :is(th,td) { padding:.65rem; text-align:left; vertical-align:top; border-bottom:1px solid #e1e3de }
#usage thead th { color:#00655f; background:#f1f5f1 }
#usage ul { margin:0; padding-left:1.1rem }
#usage tbody th { overflow-wrap:anywhere }

#usage-preferences { padding:.65rem 0 1rem }
#usage-preferences summary { cursor:pointer; color:#00655f; font-weight:700 }
#usage-preferences p { max-width:65ch }
#usage-choice-status { display:inline-block; margin-left:.6rem }

#usage-preferences .usage-checkbox { display:flex; align-items:center; gap:.65rem; width:fit-content; cursor:pointer; min-height:2.75rem; font-size:.95rem }
#usage-preferences .usage-checkbox input { width:1.2rem; height:1.2rem; margin:0; padding:0; flex-shrink:0; accent-color:#00655f }
