/*
 * it0.uk - IT Zero brand styles.
 * Colours, type and component rules follow IT-Zero-Brand-Guidelines (pack v3.0)
 * and itzero-brand-tokens.css v1.4. If this file and the guidelines disagree,
 * the guidelines win.
 */

/* ---- Fonts (self-hosted, subset WOFF2; licences in /assets/fonts/OFL.txt) ---- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/BebasNeue-Regular.woff2") format("woff2"); }
@font-face { font-family: "IT Zero Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ITZeroMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IT Zero Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ITZeroMono-Medium.woff2") format("woff2"); }

/* ---- Tokens (from itzero-brand-tokens.css) ---- */
:root {
  --iz-orange: #F58432;
  --iz-rust: #B5541C;
  --iz-charcoal: #3A3A3C;
  --iz-ink: #212123;
  --iz-orbit-grey: #818285;
  --iz-signal-red: #F05054;
  --iz-mist: #F4F4F5;
  --iz-line: #D8D8DA;
  --iz-white: #FFFFFF;

  --iz-color-text: var(--iz-charcoal);
  --iz-color-text-muted: #6B6C6F;        /* Orbit Grey darkened one step: Orbit Grey on Mist is 3.4:1, this is 4.9:1 */
  --iz-color-bg: var(--iz-white);
  --iz-color-bg-muted: var(--iz-mist);
  --iz-color-accent: var(--iz-orange);
  --iz-color-accent-on-light: var(--iz-rust);
  --iz-color-accent-text-on: var(--iz-charcoal);
  --iz-color-border: var(--iz-line);
  --iz-color-alert: var(--iz-signal-red);
  --iz-color-link: var(--iz-rust);
  --iz-color-link-hover: var(--iz-charcoal);
  --iz-color-input-bg: var(--iz-white);

  --iz-font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --iz-font-body: "Barlow", Arial, Helvetica, sans-serif;
  --iz-font-mono: "IT Zero Mono", "JetBrains Mono", Consolas, monospace;
  --iz-tracking-display: 0.03em;
  --iz-tracking-label: 0.08em;

  --iz-space-1: 0.5rem;
  --iz-space-2: 1rem;
  --iz-space-3: 1.5rem;
  --iz-space-4: 2rem;
  --iz-space-5: 3rem;

  --iz-radius: 4px;
  --iz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --iz-duration: 160ms;
  --iz-duration-loop: 1.1s;
  color-scheme: light dark;
}

/* Automatic dark mode (tokens v1.2 pattern). The masthead is Ink in both modes. */
@media (prefers-color-scheme: dark) {
  :root {
    --iz-color-text: var(--iz-white);
    --iz-color-text-muted: #A6A7AA;
    --iz-color-bg: var(--iz-ink);
    --iz-color-bg-muted: var(--iz-charcoal);
    --iz-color-accent-on-light: var(--iz-orange);
    --iz-color-border: #4A4A4D;
    --iz-color-link: var(--iz-orange);
    --iz-color-link-hover: var(--iz-white);
    --iz-color-input-bg: #2B2B2D;
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.5 var(--iz-font-body);
  color: var(--iz-color-text);
  background: var(--iz-color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { width: 100%; max-width: 600px; margin: 0 auto; padding: var(--iz-space-4) var(--iz-space-2) var(--iz-space-5); flex: 1; }
p { margin: 0 0 var(--iz-space-2); max-width: 65ch; }
[hidden] { display: none !important; }

a { color: var(--iz-color-link); text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--iz-duration) var(--iz-ease); }
a:hover { color: var(--iz-color-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--iz-color-bg), 0 0 0 4px var(--iz-orange);
  border-radius: var(--iz-radius);
}

/* ---- Type ---- */
h1, h2, .display {
  font-family: var(--iz-font-display);
  font-weight: 400;
  letter-spacing: var(--iz-tracking-display);
  line-height: 1.05;
  margin: 0 0 var(--iz-space-2);
}
h1 { font-size: clamp(2rem, 7vw, 2.5rem); }
h2 { font-size: 1.5rem; }
.label {
  font-family: var(--iz-font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: var(--iz-tracking-label);
  text-transform: uppercase;
  color: var(--iz-color-text-muted);
  margin: 0 0 var(--iz-space-1);
}
.muted { color: var(--iz-color-text-muted); }
.small { font-size: 0.875rem; }
.mono, .code {
  font-family: var(--iz-font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}
.code {
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.code-lg { font-size: 1.5rem; display: inline-block; margin-top: 2px; }

/* ---- Masthead: Ink field, primary logo on dark, orbit motif off the edge ---- */
.masthead {
  position: relative;
  overflow: hidden;
  background: var(--iz-ink);
  color: var(--iz-white);
  border-bottom: 1px solid #2E2E31;
}
.masthead-inner { position: relative; max-width: 600px; margin: 0 auto; padding: var(--iz-space-3) var(--iz-space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--iz-space-2); }
.masthead .logo { display: block; width: 132px; height: auto; }   /* min 120px wide per guidelines */
.masthead .logo-link { display: block; padding: 6px 0; }           /* clear space around the lockup */
.masthead .context { font-weight: 600; font-size: 0.75rem; letter-spacing: var(--iz-tracking-label); text-transform: uppercase; color: #A6A7AA; text-align: right; }
.masthead .context a { color: var(--iz-orange); }
.motif { position: absolute; right: -90px; top: -70px; width: 320px; height: 220px; pointer-events: none; }
.motif ellipse { fill: none; stroke-width: 2; }
.motif .o1 { stroke: var(--iz-orange); opacity: 0.22; }
.motif .o2 { stroke: var(--iz-orbit-grey); opacity: 0.3; }

/* ---- Panels ---- */
.card {
  background: var(--iz-color-bg-muted);
  border-radius: var(--iz-radius);
  padding: var(--iz-space-3);
  margin-bottom: var(--iz-space-2);
}
.card > :last-child { margin-bottom: 0; }
.section { margin-bottom: var(--iz-space-3); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: var(--iz-space-2) 0 0; }
dl.facts dt { color: var(--iz-color-text-muted); font-weight: 500; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--iz-color-border); display: flex; justify-content: space-between; gap: var(--iz-space-2); align-items: baseline; flex-wrap: wrap; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .what { color: var(--iz-color-text-muted); font-size: 0.875rem; }

/* ---- Buttons (brand: Bebas label, charcoal on orange) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0.55em 1.3em;
  font-family: var(--iz-font-display); font-size: 1.15rem; letter-spacing: 0.04em; line-height: 1;
  color: var(--iz-color-accent-text-on); background: var(--iz-orange);
  border: 2px solid var(--iz-orange); border-radius: var(--iz-radius);
  text-decoration: none; cursor: pointer;
  transition: background var(--iz-duration) var(--iz-ease), border-color var(--iz-duration) var(--iz-ease), transform var(--iz-duration) var(--iz-ease);
}
.btn:hover { background: #E27526; border-color: #E27526; color: var(--iz-charcoal); }
.btn:active { background: #CC6A1F; border-color: #CC6A1F; transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn.secondary { background: transparent; color: var(--iz-color-text); }
.btn.secondary:hover { background: var(--iz-orange); color: var(--iz-charcoal); }
.btn.wide { width: 100%; }
.btn .mono { font-family: var(--iz-font-mono); font-size: 0.95rem; letter-spacing: 0.02em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--iz-space-1); margin-top: var(--iz-space-3); }

/* ---- Forms ---- */
label, .label-like { display: block; font-weight: 600; margin: var(--iz-space-3) 0 6px; }
label.check { font-weight: 500; display: flex; gap: 10px; align-items: center; }
input[type="search"], input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; min-height: 46px; padding: 8px 12px;
  font: inherit; color: var(--iz-color-text);
  background: var(--iz-color-input-bg);
  border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius);
}
input::placeholder { color: var(--iz-color-text-muted); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--iz-orange); }

/* ---- Pick lists (company / device search results) ---- */
ul.pick { list-style: none; margin: var(--iz-space-1) 0 0; padding: 0; background: var(--iz-color-input-bg); border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius); overflow: hidden; }
ul.pick:empty { display: none; }
ul.pick li + li { border-top: 1px solid var(--iz-color-border); }
ul.pick button {
  width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0;
  font: inherit; color: inherit; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: background var(--iz-duration) var(--iz-ease);
}
ul.pick button:hover:not(:disabled), ul.pick button[aria-pressed="true"] { background: var(--iz-color-bg-muted); }
ul.pick button:disabled { cursor: default; color: var(--iz-color-text-muted); }
ul.pick .sub { color: var(--iz-color-text-muted); font-size: 0.875rem; font-family: var(--iz-font-mono); }

.badge {
  font-weight: 600; font-size: 0.7rem; letter-spacing: var(--iz-tracking-label); text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--iz-radius); white-space: nowrap;
  color: var(--iz-color-text-muted); border: 1px solid var(--iz-color-border);
}

/* ---- Notices: Signal Red is for genuine problems only ---- */
.notice { border-radius: var(--iz-radius); padding: 12px 16px; margin: var(--iz-space-2) 0; background: var(--iz-color-bg); border: 1px solid var(--iz-color-border); }
.notice.warn { border-color: var(--iz-orange); }
.notice.bad { border: 0; border-left: 3px solid var(--iz-color-alert); background: var(--iz-color-bg); }
.card .notice { background: var(--iz-color-bg); }

/* ---- Staff bar ---- */
.staffbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--iz-space-2); font-size: 0.875rem; color: var(--iz-color-text-muted); }
.staffbar .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bar-actions { display: flex; gap: 4px; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--iz-radius); border: 0; background: transparent; color: var(--iz-color-text-muted); cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn:focus-visible, .icon-btn.on { color: var(--iz-color-link); background: var(--iz-color-bg-muted); }

/* ---- Loading: the orbit spinner, the brand's only motion ---- */
.loading { display: flex; align-items: center; gap: 14px; color: var(--iz-color-text-muted); }
.iz-spinner { width: 36px; height: 36px; flex: none; }
.iz-spinner .track { fill: none; stroke: var(--iz-color-border); stroke-width: 6; }
.iz-spinner .arm { transform-origin: 50px 50px; animation: iz-spin var(--iz-duration-loop) linear infinite; }
.iz-spinner .sweep { fill: none; stroke: var(--iz-orange); stroke-width: 6; stroke-linecap: round; }
.iz-spinner .dot { fill: var(--iz-orange); }
@keyframes iz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .iz-spinner .arm { animation-duration: calc(var(--iz-duration-loop) * 3); } }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--iz-color-border); }
.site-footer-inner { max-width: 600px; margin: 0 auto; padding: var(--iz-space-3) var(--iz-space-2) var(--iz-space-4); font-size: 0.8125rem; color: var(--iz-color-text-muted); }
.tagline { font-weight: 500; font-size: 0.9375rem; margin-bottom: 6px; }
.contact-block { margin-top: var(--iz-space-3); }

/* Hostnames and serials are precise identifiers: IT Zero Mono, original case */
h1.device-name { font-family: var(--iz-font-mono); font-weight: 500; font-size: 1.6rem; letter-spacing: 0; line-height: 1.2; overflow-wrap: anywhere; }
.selected { display: grid; gap: 2px; margin: var(--iz-space-3) 0 0; }
.selected .label { margin: 0; }
.selected .sub { font-size: 0.875rem; }
.card > label:first-child { margin-top: 0; }

.create { margin-top: var(--iz-space-3); padding-top: var(--iz-space-3); border-top: 1px solid var(--iz-color-border); }
.create .label { margin-bottom: 0; }
input[type="date"] { width: 100%; min-height: 46px; padding: 8px 12px; font: inherit; color: var(--iz-color-text); background: var(--iz-color-input-bg); border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius); }
.btn-row .btn.wide + .btn.wide { margin-top: 0; }
.create-row { margin-top: var(--iz-space-4); padding-top: var(--iz-space-3); border-top: 1px solid var(--iz-color-border); }
.create-row + div .create { margin-top: var(--iz-space-2); padding-top: 0; border-top: 0; }

/* GUID references: 36 monospaced characters (~21.6em) must fit the card.
   Inner width = min(viewport, 600px) - main padding (32px) - card padding (48px). */
.code.code-guid { font-size: min(1.5rem, calc((min(100vw, 600px) - 80px) / 22.5)); letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }

/* ---- Label register ---- */
main.wide { max-width: 760px; }
h2 { margin-top: var(--iz-space-4); }
.label a { color: inherit; }
.reg-list { list-style: none; margin: var(--iz-space-2) 0 0; padding: 0; }
.reg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--iz-color-border); }
.reg-row:first-child { border-top: 0; }
.reg-main { display: grid; gap: 2px; min-width: 0; }
.reg-main .code { text-decoration: none; }
.reg-main .sub, .batch-head .sub { color: var(--iz-color-text-muted); font-size: 0.8125rem; }
.badge.status-assigned { color: var(--iz-color-text); border-color: var(--iz-color-text-muted); }
.badge.status-void { text-decoration: line-through; }
.row-actions { display: flex; gap: 10px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--iz-color-link); cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--iz-color-alert); }
.batch { padding: 0; overflow: hidden; }
.batch > div { padding: 0 var(--iz-space-3) var(--iz-space-3); }
.batch-head { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; padding: var(--iz-space-2) var(--iz-space-3); background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.batch-head:hover { background: var(--iz-color-bg); }
.batch-id { font-size: 1.05rem; font-weight: 500; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; color: var(--iz-color-text-muted); }
.counts strong { color: var(--iz-color-text); font-weight: 600; }
.find-none { margin: var(--iz-space-2) 0 0; }
@media (max-width: 480px) { .reg-row { grid-template-columns: 1fr auto; } .row-actions { grid-column: 1 / -1; } }

/* ---- Serial / service tag fast path ---- */
.input-row { display: flex; gap: var(--iz-space-1); }
.input-row input { flex: 1; min-width: 0; font-family: var(--iz-font-mono); text-transform: uppercase; }
.input-row input::placeholder { font-family: var(--iz-font-body); text-transform: none; }
.scan-btn { flex: none; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: var(--iz-space-4) 0 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--iz-color-border); }

/* ---- Camera scanner overlay ---- */
.scan-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 17, 0.94); display: flex; align-items: center; justify-content: center; padding: var(--iz-space-2); }
.scan-panel { width: 100%; max-width: 480px; display: grid; gap: var(--iz-space-2); color: var(--iz-white); }
.scan-title { color: #A6A7AA; margin: 0; }
.scan-frame { position: relative; aspect-ratio: 3 / 4; max-height: 70vh; border-radius: var(--iz-radius); overflow: hidden; background: #000; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-guide { position: absolute; inset: 22% 10%; border: 2px solid var(--iz-orange); border-radius: var(--iz-radius); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); }
.scan-hint { margin: 0; color: #D8D8DA; }
.scan-hint.scan-error { color: var(--iz-white); border-left: 3px solid var(--iz-signal-red); padding-left: 12px; }
.scan-close { color: var(--iz-white); width: 100%; }

/* ---- Remembered site visit ---- */
.session-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: var(--iz-space-2) 0; border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius); background: var(--iz-color-bg); }
.session-bar .label { display: block; margin: 0 0 2px; }
.session-text { font-weight: 600; }
.sub.block { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--iz-color-text-muted); }
label.check { align-items: flex-start; }
label.check input { margin-top: 3px; flex: none; }
.show-more { justify-content: center !important; font-weight: 600; color: var(--iz-color-link) !important; }

/* ---- who uses the device ---- */
dl.facts dd.used-by { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
dl.facts dd.used-by .sub { font-size: 0.8125rem; color: var(--iz-color-text-muted); overflow-wrap: anywhere; }
dl.facts dd.used-by .link-btn { flex: none; padding-top: 0; }
.contact-picker { margin-top: var(--iz-space-3, 24px); padding-top: var(--iz-space-2, 16px); border-top: 1px solid var(--iz-color-border, #ddd); }
.contact-picker .btn-row { align-items: center; }
ul.pick li.empty { padding: 10px 2px; }

/* ---- device page: Datto RMM + tickets ---- */
:root { --iz-status-ok: #2E8B57; }
.card + .card { margin-top: var(--iz-space-2, 16px); }
.notice.ok { border-color: var(--iz-status-ok); }
.rmm-online { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 8px; }
.rmm-online .muted { font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.on { background: var(--iz-status-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iz-status-ok) 25%, transparent); }
.dot.off { background: var(--iz-color-text-muted); }
.pill { display: inline-block; font-size: 0.8125rem; line-height: 1.3; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--iz-color-border); }
.pill.ok { border-color: var(--iz-status-ok); }
.pill.warn { border-color: var(--iz-orange); }
.pill.bad { border-color: var(--iz-color-alert); color: var(--iz-color-alert); }
.label .count { margin-left: 8px; color: var(--iz-color-text); }
ul.tickets { list-style: none; margin: 8px 0 0; padding: 0; }
ul.tickets li + li { border-top: 1px solid var(--iz-color-border); }
ul.tickets a { display: block; padding: 10px 0; text-decoration: none; color: var(--iz-color-text); }
ul.tickets a:hover .t-title { text-decoration: underline; }
ul.tickets .t-title { display: block; font-weight: 500; }
ul.tickets .sub { font-size: 0.8125rem; color: var(--iz-color-text-muted); }
.ticket-form textarea, .report-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius); background: var(--iz-color-input-bg); color: var(--iz-color-text); resize: vertical; }
.used-by-field .chosen { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--iz-color-border); border-radius: var(--iz-radius); background: var(--iz-color-input-bg); }
.used-by-field .chosen .sub { font-size: 0.8125rem; color: var(--iz-color-text-muted); }
.ci-check .notice p { margin: 0 0 6px; }
.ci-check .notice p:last-of-type { margin-bottom: 0; }
.ci-check .notice .btn-row { margin-top: 10px; }

/* ---- credentials (collapsed by default) ---- */
details.creds { margin-top: var(--iz-space-2, 16px); border-top: 1px solid var(--iz-color-border); padding-top: 12px; }
details.creds summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.creds summary::-webkit-details-marker { display: none; }
details.creds summary::before { content: "▸"; color: var(--iz-color-accent-on-light); transition: transform .15s; }
details.creds[open] summary::before { transform: rotate(90deg); }
details.creds dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
code.secret { font-family: var(--iz-font-mono, monospace); font-size: 0.9375rem; overflow-wrap: anywhere; user-select: all; }
dl.facts dd .sub { font-size: 0.8125rem; color: var(--iz-color-text-muted); }
dl.facts dd .expired { color: var(--iz-color-alert); }

/* ---- look up another device ---- */
.lookup-bar { margin: 0 0 var(--iz-space-2, 16px); }
.lookup-bar .card.lookup { margin: 0; }
.lookup .input-row { display: flex; gap: 8px; }
.lookup .input-row input { flex: 1; min-width: 0; }
.lookup .input-row .btn { flex: none; }

/* ---- asset tag chip above the device name ---- */
.tag-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: var(--iz-space-2, 16px); }
.tag-line .code {
  display: inline-block; padding: 5px 12px; border-radius: 6px;
  border: 1.5px solid var(--iz-orange);
  background: color-mix(in srgb, var(--iz-orange) 14%, transparent);
  color: var(--iz-color-text); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.1em;
  white-space: normal; overflow-wrap: anywhere;
}

/* Signed-in label page: less air under the masthead, the staff bar sits close to it. */
body.staff-view main { padding-top: var(--iz-space-1, 8px); }
body.staff-view .staffbar { margin-bottom: var(--iz-space-1, 8px); }

/* Public report form on the label page */
.report-block { margin-top: var(--iz-space-2); }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--iz-space-1); }
.report-actions .btn { width: 100%; }
.report-form { margin-top: var(--iz-space-2); }
.report-form h2 { margin: 0 0 4px; }
.report-form label:first-of-type { margin-top: var(--iz-space-2); }
.report-check { margin-top: var(--iz-space-2); min-height: 65px; }
#report-done { margin-top: var(--iz-space-2); }
#report-done:focus { outline: none; }
@media (max-width: 380px) { .report-actions { grid-template-columns: 1fr; } }

/* Staff: public reports */
.tabs { display: flex; gap: 4px; margin: var(--iz-space-3) 0 var(--iz-space-2); border-bottom: 1px solid var(--iz-color-border); }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--iz-color-text-muted); cursor: pointer; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--iz-color-text); border-bottom-color: var(--iz-orange); }
.report-item { margin-bottom: var(--iz-space-2); }
.report-item .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.report-item .head .code { text-decoration: none; }
.report-item .sub { color: var(--iz-color-text-muted); font-size: 0.875rem; }
.report-item .said { white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--iz-space-2) 0 0; padding: 12px 14px; background: var(--iz-color-bg); border-radius: var(--iz-radius); }
.report-item dl.facts { margin-top: var(--iz-space-2); }
.report-item .btn-row { margin-top: var(--iz-space-2); }
.badge.status-held, .badge.status-failed { color: var(--iz-color-text); border-color: var(--iz-orange); }
.badge.status-ticketed { color: var(--iz-color-text); border-color: var(--iz-status-ok); }
