/* Look of www.innofusion-bv.com (Odoo theme: colours #405360 / #c8d1d6 / #FAFAFB / #080A0C,
   Questrial for text, Poppins for headings and buttons). Fonts are served from this app,
   not Google: the vendor side must load in China, and the CSP allows only 'self'. */
@font-face { font-family: "Questrial"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/questrial.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/poppins.woff2) format("woff2"); }
:root {
  --brand: #405360;
  --brand-dark: #33434e;
  --brand-ink: #fff;
  --brand-2: #c8d1d6;
  --dark: #080A0C;
  --ink: #212529;
  --muted: #5f6b74;
  --line: #e1e5e8;
  --bg: #fff;
  --card: #fff;
  --soft: #FAFAFB;
  --err: #b02a37;
  --err-bg: #f8d7da;
  --note-bg: #fff3cd;
  --radius: 6.4px;
  --btn-radius: 5px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --font: "Questrial", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Poppins", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; }
h1, h2, h3, legend, .btn, .topbar, .steps { font-family: var(--font-head); }
h1 { font-size: 2rem; font-weight: 500; line-height: 1.25; margin: .25rem 0 .5rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
a { color: var(--brand); }

.card { background: var(--card); border: 1px solid rgba(33, 37, 41, .15); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0 0 16px; }
fieldset.card { min-width: 0; }
legend { font-weight: 500; font-size: 1.1rem; padding: 0 6px; }
label { display: block; margin: 0 0 14px; }
label small, .note, .files { font-weight: 400; }
small { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; color: var(--ink);
  border: 1px solid #ced4da; border-radius: var(--btn-radius); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.req { color: var(--err); }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: var(--btn-radius); padding: 9px 22px; font-family: var(--font-head); font-size: 1rem; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

.drop { border: 2px dashed var(--brand-2); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--soft); cursor: pointer; font-weight: 400; }
.drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand-2) 25%, #fff); }
.drop input[type=file] { margin: 0 auto 10px; max-width: 320px; background: transparent; border: 0; }
.filelist { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; font-size: .9rem; }
.filelist li { padding: 2px 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { background: var(--err-bg); color: var(--err); border-radius: var(--radius); padding: 10px 16px; margin: 0 0 16px; }
.alert ul { margin: 0; padding-left: 18px; }
.err { color: var(--err); margin: 0 0 10px; }
.note { background: var(--note-bg); border-radius: 4px; padding: 6px 10px; font-size: .9rem; margin: 0 0 12px; }
.has-error { border-color: var(--err); }
.files { margin: 0 0 12px; font-size: .9rem; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--soft); border: 1px solid var(--line); }
.tag-step { color: #0b5ed7; } .tag-pdf { color: #b02a37; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.steps li::after { content: "›"; margin-left: 8px; }
.steps li:last-child::after { content: ""; }
.steps .on { color: var(--brand); font-weight: 500; }
.steps .done { color: var(--ink); }
.parts { width: 100%; border-collapse: collapse; }
.parts th, .parts td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain { padding-left: 18px; }
.preview { float: right; width: 220px; height: auto; margin: 0 0 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
@media (max-width: 600px) { .preview { float: none; display: block; width: 100%; max-width: 320px; margin: 0 0 10px; } }
.read { background: var(--soft); border-radius: 4px; padding: 8px 12px; margin: 0 0 12px; font-size: .9rem; overflow: hidden; }
.read ul { margin: 4px 0 0; padding-left: 18px; }
.conf { font-size: .75rem; padding: 0 6px; border-radius: 8px; margin-left: 4px; }
.conf-high { background: #d1e7dd; } .conf-medium { background: var(--note-bg); } .conf-low { background: var(--err-bg); }
.progress { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin: 0 0 10px; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .4s; }
fieldset.part::after { content: ""; display: block; clear: both; }

/* 3D viewer + first price indication */
.part-top { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin: 0 0 14px; }
@media (max-width: 700px) { .part-top { grid-template-columns: 1fr; } }
.viewer { position: relative; height: 300px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(#fff, #e9edf0); overflow: hidden; }
.viewer-fallback { width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer.loaded .viewer-fallback { display: none; }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center;
  padding: 4px 10px; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.8); z-index: 1; }
.viewer-bar .viewer-help { flex: 1; }
.viewer:not(.loaded) .viewer-bar { display: none; }
.viewer-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); }
.indication { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--soft); }
.indication h3 { font-size: 1rem; margin: 0 0 8px; }
.indication .small { font-size: .8rem; margin: 8px 0 0; }
table.ind { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.ind td { padding: 3px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
ul.cmp { list-style: none; padding: 0; margin: 4px 0 0; font-size: .84rem; }
ul.cmp li { display: grid; grid-template-columns: 1fr auto 56px; gap: 8px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
ul.cmp li.cur { font-weight: 600; }
ul.cmp em { font-style: normal; color: var(--muted); font-size: .75rem; }
.small { font-size: .85rem; }
.choose { background: var(--soft); border-radius: var(--radius); padding: 12px 14px 4px; margin: 0 0 16px; }
.choose .span2 { grid-column: 1 / -1; margin: -6px 0 10px; }
.grid4 { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: 0 12px; }
@media (max-width: 800px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.part-choose { margin: 0 0 4px; background: var(--soft); border-radius: var(--radius); padding: 10px 12px 0; }
.weight { font-size: .88rem; margin: 0 0 8px; }

/* Site header and footer as on www.innofusion-bv.com. On the quote pages they show only when the
   page is opened on its own (email links); inside the Odoo website's iframe the site has its own. */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head-in, .site-foot-in { max-width: 1140px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.site-logo img { width: 42px; height: 42px; border-radius: 4px; }
.site-head .spacer { flex: 1; }
.site-head .btn { padding: 8px 20px; font-size: .95rem; }
.site-foot { background: var(--dark); color: #fff; margin-top: 24px; font-size: .9rem; }
.site-foot-in { justify-content: space-between; flex-wrap: wrap; padding: 18px 16px; }
.site-foot a { color: #fff; }
.site-foot .muted { color: var(--brand-2); }
.page-quote .site-head, .page-quote .site-foot { display: none; }
html.standalone .page-quote .site-head, html.standalone .page-quote .site-foot { display: block; }
.btn-light:hover { background: #eef1f3; }
.site-head .langs { font-size: .95rem; }
