/* EBR Workshop: the company's own look (navy, white, the light grey of its
   website), apart from REGIVOS' crimson and gold. Every colour and the font
   of the Workshop are set in this first block. */
:root {
  --navy: #16293f; --navy-2: #22385a; --navy-soft: #e7e8ef; --ink: #1d2036; --ink-soft: #62657a;
  --page: #f6f6f8; --panel: #ffffff; --line: #e2e3ea; --band: #d6d7de; --on-navy: #ced1d7;
  --red: #c62f3a; --red-soft: #fbe3e5; --amber: #c98a00; --amber-soft: #fdf1d4; --green: #1f8a55; --green-soft: #dcf2e6; --blue: #2d6cc0; --blue-soft: #e1ecfa;
  --role-tech: #1f8a55; --role-parts: #c98a00; --role-eng: #2d6cc0; --role-admin: #16293f; --role-production: #b4531f;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
  /* The Pump Service pieces (inspection, diagram, remarques) are drawn with
     the shared tokens of base.css: here they take EBR's navy and blue. */
  --crimson: var(--navy); --crimson-deep: #0e1c2c; --crimson-ink: var(--navy); --on-crimson: #ffffff;
  --gold: #4a7bd0; --gold-bright: #6f97dd; --gold-soft: #e1ecfa; --gold-ink: #1f4f8f;
  --fill: #eef0f4; --fill-strong: #e2e5eb; --line-strong: #c9ccd6; --panel-hover: #fafbfc; --focus-fill: #f5f8fd;
  --font-body: var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* The EBR logo (logo.png, the company's own file). */
.w-mark { width: 46px; height: 46px; border-radius: 50%; display: block; flex: none; }
.w-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--navy); flex: none; }
.w-role-tech { background: var(--role-tech); } .w-role-parts { background: var(--role-parts); } .w-role-eng { background: var(--role-eng); } .w-role-admin { background: var(--role-admin); } .w-role-production { background: var(--role-production); } .w-role-eng_admin { background: var(--role-eng); }
.w-btn { border: 0; border-radius: 999px; padding: 12px 22px; background: var(--navy); color: #fff; font-weight: 600; }
.w-btn:hover { background: var(--navy-2); }
.w-btn:disabled { opacity: .55; cursor: default; }
.w-linklike { border: 0; background: none; color: var(--navy); text-decoration: underline; font-weight: 600; padding: 4px; }
.w-lang { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.w-lang button { border: 0; background: none; padding: 2px 4px; color: var(--ink-soft); }
.w-lang button[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.w-error { margin: 0; color: var(--red); font-size: 14px; text-align: center; }

/* ----- Sign-in: one white card; Email at the office, PIN on the shop tablet ----- */
.w-signin { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.w-signin-wrap { display: grid; justify-items: center; width: 100%; }
.w-card { width: min(27rem, 100%); background: var(--panel); border-radius: 20px; padding: 32px 28px 24px; display: grid; gap: 14px; box-shadow: 0 1px 2px rgba(29,32,54,.06), 0 12px 32px rgba(29,32,54,.08); }
.w-card-head { display: grid; justify-items: center; gap: 8px; text-align: center; margin-bottom: 4px; }
.w-card-head .w-mark { width: 84px; height: 84px; }
.w-card-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.w-card-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.w-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: var(--navy-soft); }
.w-seg button { border: 0; background: none; border-radius: 9px; padding: 9px 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.w-seg button[aria-pressed="true"] { background: var(--panel); color: var(--navy); box-shadow: 0 1px 3px rgba(29,32,54,.14); }
.w-form { display: grid; gap: 14px; }
.w-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.w-field input { font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 400; }
.w-field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.w-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.w-small { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.w-foot { display: flex; justify-content: space-between; align-items: center; width: min(27rem, 100%); margin-top: 14px; color: var(--ink-soft); font-size: 12.5px; }
.w-group { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 -2px; }
.w-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.w-person { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-weight: 600; font-size: 13px; text-align: center; }
.w-person:hover { border-color: var(--navy); }
.w-person .w-avatar { width: 46px; height: 46px; font-size: 15px; }
.w-pin { display: grid; justify-items: center; gap: 12px; }
.w-pin > .w-avatar { width: 58px; height: 58px; font-size: 19px; }
.w-pin b { font-size: 18px; }
.w-dots { display: flex; gap: 14px; }
.w-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy); }
.w-dots i.w-on { background: var(--navy); }
.w-keys { display: grid; grid-template-columns: repeat(3, 4.2rem); gap: 10px; }
.w-keys button { height: 4.2rem; border-radius: 50%; border: 0; background: var(--navy-soft); font-size: 24px; font-weight: 600; color: var(--navy); }
.w-keys button:active { background: var(--band); }
.w-keys .w-blank { visibility: hidden; }
.w-device-box { display: grid; gap: 10px; text-align: center; }
.w-device-box h2 { margin: 0; font-size: 16px; }
.w-device-box input { text-align: center; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 420px) { .w-card { padding: 26px 18px 20px; } .w-keys { grid-template-columns: repeat(3, 3.8rem); } .w-keys button { height: 3.8rem; } }

/* ----- The workspace frame ----- */
.w-top { background: var(--panel); border-bottom: 1px solid var(--line); }
.w-top-in { max-width: 82rem; margin: 0 auto; padding: 12px max(16px, 3vw); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.w-top-title { display: grid; line-height: 1.15; }
.w-top-title b { font-size: 16px; font-weight: 700; }
.w-top-title span { font-size: 12.5px; color: var(--ink-soft); }
.w-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.w-me { display: flex; align-items: center; gap: 9px; }
.w-me b { font-size: 14px; display: block; } .w-me span { font-size: 12px; color: var(--ink-soft); }
.w-out { border: 0; background: none; color: var(--ink-soft); font-size: 13px; text-decoration: underline; }
@media (max-width: 640px) { .w-me div { display: none; } }
.w-main { max-width: 82rem; margin: 0 auto; padding: 26px max(16px, 3vw) 48px; display: grid; gap: 22px; }
.w-hello h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.01em; }
.w-hello p { margin: 4px 0 0; color: var(--ink-soft); }
.w-panel { background: var(--panel); border-radius: 16px; padding: 18px 20px; }
.w-panel h2 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.w-panel ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--ink-soft); }
.w-me .w-avatar { color: #fff; font-size: 13px; }

/* ----- The technicians' space ----- */
.w-stack { display: grid; gap: 18px; }
.w-no-print { }
@media print { .w-no-print { display: none !important; } .w-main { padding: 0; max-width: none; } body { background: #fff; } }
.w-home { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.w-space { width: auto; display: inline-grid; grid-auto-flow: column; grid-template-columns: none; }
.w-space button { padding: 7px 12px; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.w-btn-ghost { background: var(--panel); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.w-btn-ghost:hover { background: var(--navy-soft); }
.w-btn-icon { padding: 10px 14px; }
.w-empty { margin: 0; padding: 28px 18px; text-align: center; color: var(--ink-soft); }
.w-back { color: var(--navy); font-weight: 600; text-decoration: none; justify-self: start; }
.w-late { color: var(--red); font-weight: 700; }
.w-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.w-pill-red { background: var(--red-soft); color: var(--red); } .w-pill-amber { background: var(--amber-soft); color: #845a00; }
.w-pill-green { background: var(--green-soft); color: var(--green); } .w-pill-blue { background: var(--blue-soft); color: var(--blue); } .w-pill-grey { background: #eceef2; color: var(--ink-soft); }

.w-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; }
@media (max-width: 900px) { .w-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-tile { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 0; border-top: 4px solid var(--band); border-radius: 14px; background: var(--panel); }
.w-tile b { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-tile span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.w-tile-red { border-top-color: var(--red); } .w-tile-red b { color: var(--red); }
.w-tile-amber { border-top-color: var(--amber); } .w-tile-blue { border-top-color: var(--blue); } .w-tile-green { border-top-color: var(--green); } .w-tile-grey { border-top-color: var(--band); }
.w-tile-on { box-shadow: inset 0 0 0 2px var(--navy); }
.w-panel-list { padding: 0; overflow: hidden; }
.w-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.w-panel-head h2 { margin: 0; font-size: 17px; }
.w-search { margin-left: auto; min-width: min(20rem, 100%); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--page); font-size: 14px; }
.w-jobs { display: grid; }
.w-job { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 0 14px; align-items: center; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
.w-job:last-child { border-bottom: 0; }
.w-job-edge { align-self: stretch; border-radius: 0 4px 4px 0; background: var(--band); }
.w-job-late .w-job-edge { background: var(--red); } .w-job-amber .w-job-edge { background: var(--amber); } .w-job-green .w-job-edge { background: var(--green); } .w-job-blue .w-job-edge { background: var(--blue); }
.w-job-main { display: grid; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.w-job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.w-job-top b { font-size: 16px; }
.w-job-pump { font-weight: 500; }
.w-job-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-soft); }
.w-job-act { display: flex; gap: 8px; }
@media (max-width: 640px) { .w-job { grid-template-columns: 6px minmax(0, 1fr); } .w-job-act { grid-column: 2; margin-top: 10px; } }

/* A pump file */
.w-file-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; position: sticky; top: 0; z-index: 20; padding: 10px 0; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(8px); }
.w-file-title h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.w-file-title h1 span { font-size: 18px; font-weight: 500; color: var(--ink-soft); }
.w-file-title p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.w-file-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.w-file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-save-note { font-size: 13px; color: var(--ink-soft); }
.w-save-note-on { color: #845a00; font-weight: 700; }
.w-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.w-tab { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.w-tab-on { background: var(--navy); color: #fff; box-shadow: none; }
.w-tab-panel { min-width: 0; }
/* The inspection on this page has no side panel: the diagram sits beside the list. */
.w-tab-panel .insp-split > .dgi { top: 6.5rem; }

/* The tech sheet page */
.w-sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-sheet-bar h1 { margin: 0 auto 0 8px; font-size: 22px; }

/* Pièces: the rundown and the file page (the Pump Service's own, in EBR's look) */
.w-panel-bar { padding: 10px 18px; border-bottom: 1px solid var(--line); }
.w-show { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; }
.w-show button { padding: 7px 14px; }
.w-job-row { color: inherit; text-decoration: none; }
.w-job-row:hover { background: var(--panel-hover); }
.w-job-money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-record { min-width: 0; }
.w-main .record-bar { top: 0; }
.w-main .job-tabs { top: 4.4rem; }
.w-main .insp-split > .dgi { top: 8rem; }

/* Production: the dispatch board */
.w-pill-navy { background: var(--navy); color: #fff; }
.w-tile-navy { border-top-color: var(--navy); }
.w-panel-flat { padding: 0; border: 0; }
.w-dboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.w-dcol { display: grid; gap: 8px; align-content: start; min-height: 18rem; padding: 10px; border-radius: 14px; background: #eceef3; transition: background .15s ease, box-shadow .15s ease; }
.w-dcol:first-child { background: var(--amber-soft); }
.w-dcol-over { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.w-dcol-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 6px; }
.w-dcol-head b { display: block; font-size: 15px; }
.w-dcol-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); font-size: 18px; }
.w-dcol-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--ink-soft); }
.w-dcard { display: grid; gap: 4px; text-align: left; justify-items: start; padding: 10px 12px; border-radius: 12px; background: var(--panel); border-left: 5px solid var(--band); cursor: grab; box-shadow: 0 1px 2px rgba(22,41,63,.08); }
.w-dcard-late { border-left-color: var(--red); }
.w-dcard-pump { font-weight: 500; font-size: 14px; }
.w-dragging { opacity: .45; }
.w-assign { justify-self: stretch; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); font-size: 13px; }

/* ----- Engineering: the home (tasks, project cards, the team board) ----- */
.w-eng-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.w-btn-small { padding: 7px 14px; font-size: 13.5px; }
.w-ecols { display: grid; grid-template-columns: minmax(18rem, 1fr) minmax(0, 2.2fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .w-ecols { grid-template-columns: minmax(0, 1fr); } }
.w-ecols-board { grid-template-columns: minmax(0, 1fr); }
.w-ecols-board > :first-child { display: none; }
.w-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.w-task:last-child { border-bottom: 0; }
.w-task input[type="checkbox"], .w-etable input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
.w-task-text { display: grid; gap: 2px; min-width: 0; }
.w-task-text a { text-align: left; color: var(--ink-soft); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-task-text a:hover { color: var(--navy); text-decoration: underline; }
.w-task-done b, tr.w-task-done .w-wide input { text-decoration: line-through; color: var(--ink-soft); }
.w-due { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.w-due-late { color: var(--red); } .w-due-today { color: #845a00; }
.w-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; padding: 14px; }
.w-pcard { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--panel); color: inherit; text-decoration: none; border: 1px solid var(--line); border-left: 5px solid var(--blue); box-shadow: 0 1px 2px rgba(22,41,63,.06); }
.w-pcard:hover { border-color: var(--line-strong); border-left-color: var(--navy); box-shadow: 0 4px 14px rgba(22,41,63,.10); }
.w-pcard-late { border-left-color: var(--red); }
.w-pcard-lost { opacity: .6; border-left-color: var(--band); }
.w-pcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.w-pcard-top b { font-size: 14.5px; }
.w-type { font-size: 12.5px; color: var(--ink-soft); }
.w-pcard-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.w-pcard .w-small { text-align: left; }
.w-pbar { height: 5px; border-radius: 5px; background: var(--navy-soft); overflow: hidden; }
.w-pbar i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.w-pcard-late .w-pbar i { background: var(--red); }
.w-pcard-foot { display: flex; align-items: center; gap: 10px; }
.w-pcard-money { margin-left: auto; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.w-pcard-foot .w-due { margin-left: auto; }
.w-pcard-money + .w-due { margin-left: 0; }
.w-faces { display: flex; }
.w-faces .w-avatar { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 2px var(--panel); }
.w-faces .w-avatar + .w-avatar { margin-left: -7px; }
.w-eboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 1fr); gap: 10px; overflow-x: auto; padding: 14px; align-items: start; }
.w-ecol { display: grid; gap: 8px; align-content: start; min-height: 16rem; padding: 10px; border-radius: 14px; background: #eceef3; transition: background .15s ease, box-shadow .15s ease; }
.w-ecol:first-child { background: var(--blue-soft); }
.w-ecol-over { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.w-ecol h3 { display: flex; justify-content: space-between; margin: 0 2px 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.w-ecol h3 span { font-variant-numeric: tabular-nums; }
.w-ecol .w-pcard { cursor: grab; }
.w-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(22,41,63,.45); }
.w-sheet { width: min(36rem, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 14px; padding: 24px; border-radius: 20px; background: var(--panel); box-shadow: 0 20px 50px rgba(22,41,63,.3); }
.w-sheet h2 { margin: 0; font-size: 20px; }
.w-sheet-actions { display: flex; justify-content: flex-end; gap: 10px; }
.w-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .w-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-types button { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-weight: 600; font-size: 13.5px; }
.w-types button span { font-size: 24px; }
.w-types button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.w-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .w-two { grid-template-columns: minmax(0, 1fr); } }
.w-field select, .w-field textarea { font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 400; font-family: inherit; }

/* ----- Engineering: one project ----- */
.w-estrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .w-estrip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 7.5rem; overflow-x: auto; } }
.w-estep button { width: 100%; display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; border: 0; border-radius: 12px; background: var(--panel); color: var(--ink-soft); }
.w-estep button:disabled { cursor: default; }
.w-estep button:not(:disabled):hover { background: var(--navy-soft); }
.w-estep b { font-size: 12.5px; font-weight: 600; text-align: center; }
.w-estep small { font-size: 11.5px; min-height: 1em; }
.w-estep-dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; background: var(--navy-soft); color: var(--navy); }
.w-estep-done .w-estep-dot { background: var(--green); color: #fff; }
.w-estep-done b { color: var(--ink); }
.w-estep-on button { background: var(--navy); color: #fff; }
.w-estep-on .w-estep-dot { background: #fff; color: var(--navy); }
.w-estep-on button:not(:disabled):hover { background: var(--navy-2); }
.w-tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 11.5px; }
.w-tab-on .w-tab-count { background: rgba(255,255,255,.2); color: #fff; }
.w-efield { margin: 0; padding: 0; border: 0; min-width: 0; }
.w-readonly { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--amber-soft); color: #845a00; font-weight: 600; font-size: 14px; }
.w-equote { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .w-equote { grid-template-columns: minmax(0, 1fr); } }
.w-scroll { overflow-x: auto; }
.w-etable { width: 100%; border-collapse: collapse; font-size: 14px; }
.w-etable th { padding: 9px 6px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-etable th:first-child, .w-etable td:first-child { padding-left: 16px; }
.w-etable td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.w-etable tbody tr:last-child td { border-bottom: 0; }
.w-etable .w-num { text-align: right; font-variant-numeric: tabular-nums; }
.w-etable .w-wide { min-width: 12rem; }
.w-etable select.w-in { min-width: 8.5rem; }
.w-etable td:last-child { padding-right: 10px; }
.w-etotal { font-weight: 700; padding-right: 10px; white-space: nowrap; }
.w-in { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; }
.w-in:hover { border-color: var(--line); }
.w-in:focus { outline: none; border-color: var(--navy); background: var(--panel); box-shadow: 0 0 0 3px var(--navy-soft); }
.w-efield:disabled .w-in { background: transparent; border-color: transparent; color: var(--ink); opacity: 1; }
textarea.w-in { resize: vertical; line-height: 1.45; }
.w-in-num { text-align: right; min-width: 5.5rem; font-variant-numeric: tabular-nums; }
.w-in-short { min-width: 4.5rem; }
.w-late-cell .w-in { color: var(--red); font-weight: 600; }
.w-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); font-size: 20px; line-height: 1; }
.w-x:hover { background: var(--red-soft); color: var(--red); }
.w-etotals h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.w-etable-sum td, .w-etable-sum th { padding: 6px 4px; }
.w-etable-sum th:first-child, .w-etable-sum td:first-child { padding-left: 0; }
.w-etable-sum tfoot th { font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; border-top: 2px solid var(--navy); border-bottom: 0; text-align: right; }
.w-etable-sum tfoot th:first-child { text-align: left; }
.w-margin { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--navy-soft); }
.w-margin b { font-size: 22px; font-variant-numeric: tabular-nums; }
.w-good { background: var(--green-soft); } .w-good b { color: var(--green); }
.w-watch { background: var(--amber-soft); } .w-watch b { color: #845a00; }
.w-bad { background: var(--red-soft); } .w-bad b { color: var(--red); }
.w-eform { display: grid; gap: 12px; align-content: start; }
.w-eform h2 { margin: 0; }
.w-eform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .w-eform-grid { grid-template-columns: minmax(0, 1fr); } }
.w-eform .w-field .w-in { font-size: 15px; padding: 10px 12px; border-color: var(--line); background: var(--panel); }
.w-ecols > .w-eform-grid { order: 0; }
.w-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.w-checks { display: grid; gap: 6px; }
.w-check .w-avatar, .w-face .w-avatar { width: 28px; height: 28px; font-size: 11px; }
.w-check { font-size: 14px; color: var(--ink); font-weight: 500; }
.w-faces-row { display: grid; gap: 8px; }
.w-face { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.w-face small { padding: 1px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 11.5px; }
.w-esoon { border: 2px dashed var(--line-strong); background: transparent; }
.w-esoon h2 { font-size: 15px; margin-bottom: 4px; }
.w-danger { color: var(--red); justify-self: start; }
.w-panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.w-edocs { display: grid; gap: 8px; }
.w-edoc { display: grid; grid-template-columns: auto minmax(8rem, 1fr) minmax(10rem, 2fr) auto auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .w-edoc { grid-template-columns: auto minmax(0, 1fr) auto; } .w-edoc .w-in[type="url"] { grid-column: 2 / -1; grid-row: 2; } }
.w-edoc-icon { font-size: 18px; }
.w-elog-new { display: grid; gap: 8px; margin-bottom: 16px; }
.w-elog-send { display: flex; gap: 8px; justify-content: flex-end; }
.w-elog-send .w-in { width: auto; }
.w-elog { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.w-elog > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.w-elog .w-avatar { width: 32px; height: 32px; font-size: 12px; }
.w-elog-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.w-elog-head small { color: var(--ink-soft); }
.w-elog p { margin: 4px 0 0; white-space: pre-wrap; line-height: 1.45; }
.w-elog-decision .w-pill { background: var(--green-soft); color: var(--green); }
.w-elog-question .w-pill { background: var(--amber-soft); color: #845a00; }
.w-elog > li.w-empty { display: block; }

/* The admin's "View as" (try the Workshop as another role) and the band while testing */
.w-viewas { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.w-viewas select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }
.w-testband { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 8px 16px; background: var(--amber-soft); color: #845a00; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0d58a; }
.w-testband .w-linklike { color: #845a00; }
@media (max-width: 640px) { .w-viewas > span { display: none; } .w-top-right { flex-wrap: wrap; gap: 8px 12px; } }

/* ----- Engineering: the tank builder (a tank project's Réservoir tab) ----- */
.w-tank { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 14px; align-items: start; }
.w-tank-form { grid-row: span 2; }
@media (min-width: 1750px) { .w-tank { grid-template-columns: 22rem minmax(0, 1fr) 24rem; } .w-tank-form { grid-row: auto; } }
@media (max-width: 820px) { .w-tank { grid-template-columns: minmax(0, 1fr); } }
.w-tank .w-panel { padding: 14px 16px; }
.w-tank .w-panel-title h2 { margin: 0; font-size: 16px; }
.w-tsec { border-top: 1px solid var(--line); padding: 6px 0; }
.w-tsec:first-of-type { border-top: 0; }
.w-tsec > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; font-size: 13.5px; list-style: none; }
.w-tsec > summary::-webkit-details-marker { display: none; }
.w-tsec > summary::before { content: "▸"; color: var(--ink-soft); font-size: 11px; transition: transform .15s; }
.w-tsec[open] > summary::before { transform: rotate(90deg); }
.w-tsec > summary em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.w-tform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 4px 0 6px; }
.w-tform .w-field { font-size: 12px; gap: 4px; }
.w-tform .w-field .w-in, .w-trates .w-in { background: var(--panel); border-color: var(--line); font-size: 14px; padding: 7px 9px; }
.w-tform .w-check { font-size: 13px; font-weight: 600; color: var(--ink); }
.w-tform .w-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.w-chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.w-head-icon { width: 22px; height: 22px; }
.w-head-icon path { fill: none; stroke: var(--navy); stroke-width: 2; }
.w-nz { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.w-nz th { padding: 4px 3px; text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.w-nz td { padding: 3px 2px; border-top: 1px solid var(--line); }
.w-nz .w-in { padding: 4px 5px; font-size: 12.5px; }
.w-nz-c-tag { width: 28px; } .w-nz-c-size { width: 66px; } .w-nz-c-num { width: 64px; } .w-nz-c-ang { width: 58px; } .w-nz-c-x { width: 26px; }
.w-nz-tag { font-weight: 800; color: var(--blue); }
.w-nz tr { cursor: pointer; }
.w-nz tr.w-nz-on td { background: var(--blue-soft); }
.w-tank-tools { display: flex; align-items: center; gap: 8px; }
.w-tank-draw { position: relative; }
.w-tank-sheets { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; position: relative; }
@media (max-width: 1050px) { .w-tank-sheets { grid-template-columns: minmax(0, 1fr); } }
.w-tank-sheet { position: relative; border: 1px solid var(--line); border-radius: 12px; background-color: #fbfcfe;
  background-image: linear-gradient(#eef1f6 1px, transparent 1px), linear-gradient(90deg, #eef1f6 1px, transparent 1px); background-size: 20px 20px; }
.w-tank-lbl { position: absolute; left: 10px; top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.w-tank-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
.w-tank-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 10px 8px; font-size: 11.5px; color: var(--ink-soft); }
.w-key { display: inline-block; width: 12px; height: 8px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
.w-key-nz { background: var(--blue); } .w-key-leg { background: #62657a; } .w-key-jacket { background: #e8b04a; }
.w-tank-tip { position: absolute; z-index: 5; pointer-events: none; padding: 5px 8px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .1s; }
.w-tank-tip-on { opacity: 1; }
.w-tfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 700px) { .w-tfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-tfact { padding: 8px 10px; border-radius: 12px; background: var(--page); }
.w-tfact b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.w-tfact span { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.w-tfact-warn { background: var(--amber-soft); } .w-tfact-warn b, .w-tfact-warn span { color: #845a00; }
.w-bom td { vertical-align: top; padding: 5px 4px; }
.w-bom td small { display: block; color: var(--ink-soft); font-size: 11.5px; }
.w-bom th:first-child, .w-bom td:first-child { padding-left: 0; }
.w-bom-group td { background: var(--page); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); padding-left: 6px !important; }
.w-tsum { display: grid; gap: 4px; margin-top: 10px; }
.w-tsum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.w-tsum-big { padding-top: 6px; border-top: 2px solid var(--navy); font-size: 20px; font-weight: 700; }
.w-trates { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.w-tsend { width: 100%; margin-top: 12px; }
.w-tank-price .w-note { margin-top: 6px; }
.w-note-ok { color: var(--green); font-weight: 600; }
.w-note-warn { color: #845a00; }
.w-from-tank .w-in { box-shadow: inset 3px 0 0 #e8b04a; }
/* the drawing's strokes and fills */
.w-t-floor { stroke: #9aa3b2; stroke-width: 1.5; } .w-t-ground { stroke: #c8ced8; stroke-width: 1; }
.w-t-hatch { stroke: #d29a2e; stroke-width: 2; }
.w-t-ink { fill: #1d2036; }
.w-t-steel { stroke: #4d5a6c; stroke-width: 1.5; }
.w-t-seam { stroke: #8f9db0; stroke-dasharray: 2 3; }
.w-t-leg { fill: #8e99a9; } .w-t-leg-back { fill: #d9dee6; } .w-t-foot { fill: #5f6b7c; } .w-t-foot-back { fill: #c9ced6; }
.w-t-pipe { fill: #9fb0c5; stroke: #4d5a6c; } .w-t-clamp { fill: #5f6b7c; }
.w-t-insul { fill: #edf5ea; stroke: #8fb487; stroke-dasharray: 5 3; }
.w-t-jacket { stroke: #c48a1c; }
.w-t-jacket-ring { fill: none; stroke: #e8b04a; stroke-width: 6; opacity: .75; }
.w-t-shaft { stroke: #4d5a6c; stroke-width: 3; stroke-dasharray: 7 4; }
.w-t-blade { fill: #7d8ba0; } .w-t-motor { fill: #3e4b5e; } .w-t-motor-text { fill: #fff; font-size: 11px; font-weight: 700; }
.w-t-spray-pipe { stroke: #4d5a6c; stroke-width: 3; } .w-t-spray { fill: var(--blue); }
.w-t-part { fill: #d4dce7; stroke: #4d5a6c; } .w-t-thick { stroke-width: 2; }
.w-t-nz { --nz: var(--blue); }
.w-t-nz-on { --nz: #e0521b; }
.w-t-drag { cursor: grab; } .w-t-drag-y { cursor: ns-resize; }
.w-t-nz-fill { fill: var(--nz); stroke: var(--nz); stroke-width: 2; }
.w-t-nz-back { fill: #fff; stroke: var(--nz); stroke-width: 2; stroke-dasharray: 3 2; }
.w-t-nz-text { fill: var(--nz); font-size: 12px; font-weight: 800; }
.w-t-nz-stub { stroke: var(--nz); }
.w-t-nz-ball { fill: #fff; stroke: var(--nz); stroke-width: 2; }
.w-t-nz-on .w-t-nz-ball { fill: var(--nz); }
.w-t-nz-ball-text { fill: var(--nz); font-size: 10.5px; font-weight: 800; }
.w-t-nz-on .w-t-nz-ball-text { fill: #fff; }
.w-t-hit { fill: transparent; }
.w-t-dim line { stroke: #1d2036; stroke-width: 1; }
.w-t-dim text, .w-t-dim-text { fill: #1d2036; font-size: 11.5px; font-weight: 700; }
.w-t-ext { stroke: #9aa3b2; stroke-width: .8; } .w-t-dash { stroke-dasharray: 3 3; }
.w-t-small { fill: #62657a; font-size: 10.5px; } .w-t-bold { font-weight: 700; } .w-t-warn { fill: #b0300d; font-weight: 700; }
.w-t-axis { stroke: #c9ced6; stroke-dasharray: 10 4 2 4; }
.w-t-plan-shell { fill: #e9eef5; stroke: #4d5a6c; stroke-width: 1.5; }
.w-t-leg-plan { fill: #62657a; }
/* printing the tank: the drawing and its parts, nothing around them */
@media print {
  .w-tank { grid-template-columns: minmax(0, 1fr); }
  .w-tank-form, .w-tank-tools, .w-tsend, .w-trates, .w-tabs, .w-estrip, .w-file-actions, .w-back { display: none !important; }
  .w-tank .w-panel { break-inside: avoid; }
}
/* the tank builder: vertical or horizontal */
.w-torient { padding-top: 0; }
.w-chip-big { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13.5px; }
.w-chip-big .w-head-icon { width: 28px; }
.w-t-drag-x { cursor: ew-resize; }
.w-tank-sheets-h { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1050px) { .w-tank-sheets-h { grid-template-columns: minmax(0, 1fr); } }
