/* =====================================================================
   Nanoq Intranet – Equipment and inventory (1.34.0)
   Built on the arctic tokens (--nq-*) with fallbacks, so the classic design works too.
   ===================================================================== */

.eq-app, .eq-widget {
  --k-surface: var(--nq-surface, var(--bs-paper-bg, #fff));
  --k-ice: var(--nq-ice, rgba(133, 146, 163, 0.09));
  --k-border: var(--nq-frost, var(--bs-border-color, #e4e6e8));
  --k-ink: var(--nq-ink, var(--nanoq-heading, #384551));
  --k-text: var(--nq-text, var(--bs-body-color, #646e78));
  --k-muted: var(--nq-muted, #8592a3);
  --k-accent: var(--nq-accent, var(--nanoq-primary, #6658ea));
  --k-good: var(--nq-aurora, #279c84);
  --k-warn: #a7720a;
  --k-late: #c2415c;
  --k-shadow: var(--nq-shadow, 0 1px 3px rgba(15, 46, 69, 0.08));
  --k-r: var(--nq-r-card, 14px);
  --k-rc: var(--nq-r-ctrl, 10px);
  --k-display: var(--nq-display, inherit);
}
[data-bs-theme=dark] .eq-app, [data-bs-theme=dark] .eq-widget {
  --k-ice: var(--nq-ice, rgba(255, 255, 255, 0.04));
  --k-warn: #e7c15a;
  --k-late: #f0849b;
}

/* ---------- Tabs ---------- */
.eq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.eq-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  color: var(--k-text) !important; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--k-border); background: var(--k-surface);
}
.eq-tab i { font-size: 1.1rem; color: var(--k-muted); }
.eq-tab:hover { border-color: var(--k-accent); }
.eq-tab.is-active { background: var(--k-accent); border-color: var(--k-accent); color: #fff !important; }
.eq-tab.is-active i { color: #fff; }
.eq-app .nq-count.is-live { background: var(--k-late); color: #fff; }
.eq-tab.is-active .nq-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* ---------- Common ---------- */
.eq-h { font-family: var(--k-display); font-size: 1.05rem; color: var(--k-ink); margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.eq-empty { text-align: center; padding: 40px 16px; background: var(--k-surface); border: 1px dashed var(--k-border); border-radius: var(--k-r); margin-bottom: 18px; }
.eq-empty > i { font-size: 2.6rem; color: var(--k-accent); }
.eq-empty.is-good > i { color: var(--k-good); }
.eq-empty h3 { font-family: var(--k-display); font-size: 1.15rem; margin: 8px 0 6px; color: var(--k-ink); }
.eq-empty p { color: var(--k-text); max-width: 520px; margin: 0 auto 6px; }
.eq-back { display: inline-flex; align-items: center; gap: 2px; font-size: 0.88rem; font-weight: 600; margin-bottom: 12px; color: var(--k-muted) !important; text-decoration: none; }
.eq-back:hover { color: var(--k-accent) !important; }
.eq-help { color: var(--k-muted); font-size: 0.82rem; margin: 6px 0 0; }
.eq-muted { color: var(--k-muted); font-size: 0.88rem; margin: 0; }
.eq-sub { display: block; color: var(--k-muted); font-size: 0.8rem; margin-top: 2px; }
.eq-alert { background: color-mix(in srgb, var(--k-late) 10%, var(--k-surface)); color: var(--k-late); border-radius: var(--k-rc); padding: 10px 14px; font-weight: 600; margin: 12px 0 0; }
.eq-ok { background: color-mix(in srgb, var(--k-good) 12%, var(--k-surface)); color: var(--k-good); border-radius: var(--k-rc); padding: 10px 14px; font-weight: 600; margin: 12px 0 0; }
.eq-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--k-r); background: var(--k-ice); color: var(--k-text); margin: 0 0 16px; }
.eq-notice > i { font-size: 1.3rem; color: var(--k-accent); flex: 0 0 auto; }
.eq-notice p { margin: 0; }
.eq-notice strong { color: var(--k-ink); }
.eq-notice.is-warn { background: color-mix(in srgb, var(--k-warn) 12%, var(--k-surface)); }
.eq-notice.is-warn > i { color: var(--k-warn); }
.eq-notice.is-inline { margin: 0 0 14px; font-size: 0.88rem; }
.eq-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--k-ice); color: var(--k-muted); margin: 4px 6px 0 0; }
.eq-chip.is-late { background: color-mix(in srgb, var(--k-late) 14%, var(--k-surface)); color: var(--k-late); }
.eq-chip.is-warn { background: color-mix(in srgb, var(--k-warn) 16%, var(--k-surface)); color: var(--k-warn); }
.eq-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; background: var(--k-ice); color: var(--k-muted); }
.eq-pill.is-good { background: color-mix(in srgb, var(--k-good) 15%, var(--k-surface)); color: var(--k-good); }
.eq-pill.is-late { background: color-mix(in srgb, var(--k-late) 14%, var(--k-surface)); color: var(--k-late); white-space: normal; }

/* ---------- Manage ---------- */
.eq-manage-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.eq-table-wrap { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); overflow: hidden; margin-bottom: 18px; }
.eq-table { margin: 0; }
.eq-table th { font-size: 0.78rem; text-transform: none; color: var(--k-muted); font-weight: 700; white-space: nowrap; }
.eq-table td { vertical-align: middle; }
.eq-list-title { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 700; color: var(--k-ink) !important; text-decoration: none; }
.eq-list-title i { color: var(--k-accent); font-size: 1.15rem; margin-top: 2px; }
.eq-list-title span { overflow-wrap: anywhere; }
.eq-list-title:hover span { text-decoration: underline; }
.eq-col-bar { min-width: 150px; }
.eq-who-sm, .eq-dept-sm { display: none; }
.eq-bar { height: 8px; border-radius: 999px; background: var(--k-ice); overflow: hidden; }
.eq-bar span { display: block; height: 100%; background: var(--k-accent); border-radius: 999px; }
.eq-bar.is-full span { background: var(--k-good); }
.eq-bar-txt { display: block; color: var(--k-muted); font-size: 0.78rem; margin-top: 4px; white-space: nowrap; }
.eq-status-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.eq-status-head h3 { font-family: var(--k-display); font-size: 1.35rem; color: var(--k-ink); margin: 4px 0 2px; overflow-wrap: anywhere; }
.eq-status-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.eq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.eq-kpi { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); padding: 14px 16px; }
.eq-kpi strong { display: block; font-family: var(--k-display); font-size: 1.7rem; line-height: 1.1; color: var(--k-ink); }
.eq-kpi span { color: var(--k-muted); font-size: 0.84rem; }
.eq-kpi.is-good strong { color: var(--k-good); }
.eq-kpi.is-late strong { color: var(--k-late); }
.eq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 12px; }
.eq-filter { display: inline-flex; border: 1px solid var(--k-border); border-radius: 999px; overflow: hidden; background: var(--k-surface); }
.eq-filter button { border: 0; background: transparent; padding: 6px 14px; font-size: 0.86rem; font-weight: 600; color: var(--k-text); }
.eq-filter button.is-active { background: var(--k-accent); color: #fff; }
.eq-person { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.eq-person img { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.eq-person a { color: var(--k-ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.eq-box { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); padding: 20px 22px; margin-bottom: 16px; }
.eq-box h3 { font-family: var(--k-display); font-size: 1.1rem; color: var(--k-ink); margin: 0 0 12px; }
.eq-vlist { padding-left: 1.2rem; margin: 0 0 14px; color: var(--k-text); }
.eq-vlist li { margin-bottom: 8px; }
.eq-vlist small { color: var(--k-muted); }
.eq-vlist p { margin: 2px 0 0; font-size: 0.9rem; }
.eq-newver { border-top: 1px solid var(--k-border); padding-top: 14px; }
.eq-newver .btn { margin-top: 8px; }

/* ---------- Form ---------- */
.eq-form { max-width: 860px; }
.eq-label { display: block; font-weight: 700; color: var(--k-ink); font-size: 0.88rem; margin: 0 0 6px; }
.eq-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.eq-field[hidden] { display: none; }
.eq-field.has-error .form-control, .eq-field.has-error .form-select { border-color: var(--k-late); }
.eq-err { color: var(--k-late); font-size: 0.84rem; font-weight: 600; margin: 6px 0 0; }
.eq-check { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--k-text); cursor: pointer; }
.eq-check[hidden] { display: none; }
.eq-pick { margin: 8px 0 0 26px; padding: 10px 12px; border-radius: var(--k-rc); background: var(--k-ice); }
.eq-pick[hidden] { display: none; }
.eq-pick-search { margin-bottom: 8px; }
.eq-people { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); gap: 12px; }
.eq-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.eq-msg { color: var(--k-muted); font-size: 0.88rem; }


.eq-app, .eq-widget { --k-info: #2f7fbf; }
[data-bs-theme=dark] .eq-app, [data-bs-theme=dark] .eq-widget { --k-info: #7fb8e6; }
.eq-chip.is-good, .eq-pill.is-good { background: color-mix(in srgb, var(--k-good) 15%, var(--k-surface)); color: var(--k-good); }
.eq-pill.is-warn { background: color-mix(in srgb, var(--k-warn) 16%, var(--k-surface)); color: var(--k-warn); }
.eq-pill.is-info { background: color-mix(in srgb, var(--k-info) 14%, var(--k-surface)); color: var(--k-info); }
.eq-pill span { overflow-wrap: anywhere; }
.eq-kpi.is-warn strong { color: var(--k-warn); }
.eq-kpi.is-info strong { color: var(--k-info); }
a.eq-kpi { text-decoration: none; }
a.eq-kpi:hover { border-color: var(--k-accent); }
.eq-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.eq-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--k-border); margin: -4px 0 18px; }
.eq-sub a { padding: 8px 2px; margin-bottom: -1px; font-weight: 600; font-size: 0.9rem; color: var(--k-muted) !important; text-decoration: none; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.eq-sub a:hover { color: var(--k-ink) !important; }
.eq-sub a.is-active { color: var(--k-ink) !important; border-bottom-color: var(--k-accent); }
.eq-sub .nq-count.is-live, .eq-app .nq-count.is-live { background: var(--k-late); color: #fff; }

/* ---------- Requirements and certificates ---------- */
.eq-reqs, .eq-certs, .eq-exp { list-style: none; padding: 0; margin: 0 0 22px; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); overflow: hidden; }
.eq-req, .eq-cert { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 18px; border-top: 1px solid var(--k-border); flex-wrap: wrap; border-left: 4px solid transparent; }
.eq-req:first-child, .eq-cert:first-child { border-top: 0; }
.eq-req.is-missing, .eq-req.is-expired { border-left-color: var(--k-late); }
.eq-req.is-expiring { border-left-color: var(--k-warn); }
.eq-req.is-valid { border-left-color: var(--k-good); }
.eq-req.is-pending { border-left-color: var(--k-info); }
.eq-req-main, .eq-cert-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.eq-req-main strong, .eq-cert-main strong { color: var(--k-ink); font-family: var(--k-display); overflow-wrap: anywhere; }
.eq-req-main small, .eq-cert-main small { color: var(--k-muted); }
.eq-sub-info { color: var(--k-info) !important; }
.eq-req-course { font-size: 0.84rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; overflow-wrap: anywhere; }
.eq-req-side, .eq-cert-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eq-note { margin: 6px 0 0; font-size: 0.9rem; color: var(--k-text); }
.eq-reason { margin: 6px 0 0; font-size: 0.88rem; color: var(--k-late); font-weight: 600; }
.eq-exp li { border-top: 1px solid var(--k-border); }
.eq-exp li:first-child { border-top: 0; }
.eq-exp a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; text-decoration: none; flex-wrap: wrap; }
.eq-exp a:hover { background: var(--k-ice); }
.eq-person span { display: flex; flex-direction: column; min-width: 0; }
.eq-person small { color: var(--k-muted); font-weight: 400; font-size: 0.8rem; }
.eq-person strong { color: var(--k-ink); overflow-wrap: anywhere; }
.eq-person-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.eq-person-head .eq-person img { width: 48px; height: 48px; }
.eq-person-head strong { font-family: var(--k-display); font-size: 1.2rem; }
.eq-for { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--k-ink); margin: 0 0 12px; }
.eq-for img { border-radius: 50%; }

/* ---------- Courses ---------- */
.eq-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 22px; }
.eq-course { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); box-shadow: var(--k-shadow); text-decoration: none; color: var(--k-text) !important; }
.eq-course:hover { border-color: var(--k-accent); }
.eq-course.is-cancelled { opacity: 0.7; }
.eq-date { flex: 0 0 auto; width: 54px; text-align: center; border-radius: 12px; padding: 6px 0; background: color-mix(in srgb, var(--k-accent) 12%, var(--k-surface)); color: var(--k-accent); line-height: 1.1; }
.eq-date b { display: block; font-family: var(--k-display); font-size: 1.4rem; }
.eq-date small { text-transform: uppercase; font-weight: 700; font-size: 0.72rem; }
.eq-course-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eq-course-text strong { color: var(--k-ink); font-family: var(--k-display); overflow-wrap: anywhere; }
.eq-course-text small { color: var(--k-muted); overflow-wrap: anywhere; }
.eq-course-chips .eq-chip { margin: 4px 4px 0 0; }
.eq-detail { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); box-shadow: var(--k-shadow); max-width: 860px; overflow: hidden; }
.eq-detail > header { padding: 22px 26px 6px; }
.eq-detail > header h3 { font-family: var(--k-display); font-size: 1.45rem; color: var(--k-ink); margin: 0 0 4px; overflow-wrap: anywhere; }
.eq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; padding: 10px 26px 4px; margin: 0; }
.eq-facts dt { font-size: 0.78rem; color: var(--k-muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.eq-facts dt i { color: var(--k-accent); font-size: 1rem; }
.eq-facts dd { margin: 2px 0 0; color: var(--k-ink); font-weight: 600; overflow-wrap: anywhere; }
.eq-facts.is-small { padding: 0; margin: 8px 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.eq-desc { padding: 10px 26px 4px; line-height: 1.6; overflow-wrap: anywhere; }
.eq-detail > .mf { margin: 10px 26px 6px; } /* 1.36.0: photos and files */
.eq-signup { padding: 16px 26px 20px; margin-top: 12px; border-top: 1px solid var(--k-border); background: color-mix(in srgb, var(--k-accent) 5%, var(--k-surface)); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.eq-signup .eq-alert { flex: 1 1 100%; margin: 0; }
.eq-status-line { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; }
.eq-status-line i { font-size: 1.4rem; }
.eq-status-line.is-good { color: var(--k-good); }
.eq-status-line.is-warn { color: var(--k-warn); }
.eq-status-line.is-late { color: var(--k-late); }

/* ---------- To approve ---------- */
.eq-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.eq-review { background: var(--k-surface); border: 1px solid var(--k-border); border-top: 4px solid var(--k-info); border-radius: var(--k-r); padding: 16px 18px; box-shadow: var(--k-shadow); }
.eq-review.is-approved { border-top-color: var(--k-good); }
.eq-review.is-rejected { border-top-color: var(--k-late); }
.eq-review header { display: flex; flex-direction: column; gap: 8px; }
.eq-review h4 { font-family: var(--k-display); font-size: 1.1rem; color: var(--k-ink); margin: 0; overflow-wrap: anywhere; }
.eq-review .eq-person img { width: 36px; height: 36px; }
.eq-review .eq-person a { text-decoration: none; }
.eq-review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.eq-review-actions .form-control { flex: 1 1 100%; }

/* ---------- Matrix ---------- */
.eq-filter-form { display: flex; gap: 8px; align-items: center; }
.eq-filter-form .form-select { min-width: 180px; }
.eq-matrix-wrap { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); overflow: auto; max-height: 70vh; margin-bottom: 18px; }
.eq-matrix { margin: 0; border-collapse: separate; border-spacing: 0; }
.eq-matrix th, .eq-matrix td { white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--k-border); }
.eq-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--k-surface); font-size: 0.78rem; color: var(--k-muted); font-weight: 700; white-space: normal; min-width: 120px; max-width: 160px; }
.eq-matrix .eq-m-name { position: sticky; left: 0; z-index: 1; background: var(--k-surface); min-width: 170px; max-width: 220px; white-space: normal; box-shadow: 1px 0 0 var(--k-border); }
.eq-matrix thead .eq-m-name { z-index: 3; }
.eq-matrix tbody th, .eq-matrix thead th { text-transform: none; letter-spacing: normal; }
.eq-matrix tbody th { font-size: 0.9rem; font-weight: 600; }
.eq-matrix tbody .eq-m-name a { color: var(--k-ink) !important; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.eq-matrix tbody .eq-m-name small { display: block; color: var(--k-muted); font-weight: 400; font-size: 0.78rem; }
.eq-matrix .eq-pill { font-size: 0.76rem; }
.eq-dash { color: var(--k-muted); }
.eq-m-none { padding: 14px 16px; }
.eq-col-check { width: 36px; }
.eq-bulk { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-sub-line { display: block; color: var(--k-muted); font-size: 0.8rem; margin-top: 2px; }
.eq-show-sm { display: none; }
.eq-check.is-inline { display: inline-flex; margin: 0; }
.eq-file-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.eq-file-now a { overflow-wrap: anywhere; }
.eq-opt { font-weight: 400; color: var(--k-muted); }
.eq-opt[hidden] { display: none; }

/* ---------- Widget ---------- */
.eq-widget .eq-w-list { list-style: none; margin: 0; padding: 0; }
.eq-widget .eq-w-list li + li { margin-top: 8px; }
.eq-widget .eq-w-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--k-rc); background: var(--k-ice); text-decoration: none; }
.eq-widget .eq-w-list a.is-late { background: color-mix(in srgb, var(--k-late) 10%, var(--k-surface)); }
.eq-widget .eq-w-list a.is-warn { background: color-mix(in srgb, var(--k-warn) 12%, var(--k-surface)); }
.eq-widget .eq-w-list a.is-info { background: color-mix(in srgb, var(--k-info) 10%, var(--k-surface)); }
.eq-widget .eq-w-list i { font-size: 1.4rem; color: var(--k-accent); flex: 0 0 auto; }
.eq-widget .eq-w-list a.is-late i, .eq-widget .eq-w-list a.is-late small { color: var(--k-late); }
.eq-widget .eq-w-list a.is-warn i, .eq-widget .eq-w-list a.is-warn small { color: var(--k-warn); }
.eq-widget .eq-w-list a.is-info i { color: var(--k-info); }
.eq-widget .eq-w-list span { display: flex; flex-direction: column; min-width: 0; }
.eq-widget .eq-w-list strong { color: var(--k-ink); overflow-wrap: anywhere; font-size: 0.92rem; }
.eq-widget .eq-w-list small { color: var(--k-muted); }
.eq-widget .eq-w-more { color: var(--k-muted); font-size: 0.84rem; margin: 8px 0 0; }
.eq-widget .eq-w-done { display: flex; align-items: center; gap: 8px; color: var(--k-muted); margin: 0; font-size: 0.9rem; }
.eq-widget .eq-w-done i { color: var(--k-good); font-size: 1.4rem; flex: 0 0 auto; }
.eq-widget .eq-w-course { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--k-border); text-decoration: none; }
.eq-widget .eq-w-course i { font-size: 1.4rem; color: var(--k-accent); }
.eq-widget .eq-w-course span { display: flex; flex-direction: column; min-width: 0; }
.eq-widget .eq-w-course strong { color: var(--k-ink); overflow-wrap: anywhere; font-size: 0.92rem; }
.eq-widget .eq-w-course small { color: var(--k-muted); }
body.nanoq-arctic #equipment-widget .Nanoq-widget-header h6::before { content: "\ecfb"; }

/* ---------- Equipment (1.34.0) ---------- */
.eq-list { list-style: none; padding: 0; margin: 0 0 22px; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); overflow: hidden; }
.eq-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 18px; border-top: 1px solid var(--k-border); flex-wrap: wrap; border-left: 4px solid transparent; }
.eq-row:first-child { border-top: 0; }
.eq-row.is-late { border-left-color: var(--k-late); }
.eq-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
a.eq-row-link { text-decoration: none; }
a.eq-row-link:hover strong { text-decoration: underline; }
.eq-row-meta { color: var(--k-muted); padding-left: 48px; }
.eq-row-meta a { color: var(--k-text) !important; font-weight: 600; }
.eq-row-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eq-list.is-compact .eq-row { padding: 10px 14px; }
.eq-item-head { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--k-text) !important; }
a.eq-item-head:hover strong { text-decoration: underline; }
.eq-item-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--k-accent) 12%, var(--k-surface)); color: var(--k-accent); font-size: 1.3rem; }
.eq-item-ic.is-warn { background: color-mix(in srgb, var(--k-warn) 16%, var(--k-surface)); color: var(--k-warn); }
.eq-item-ic.is-info { background: color-mix(in srgb, var(--k-info) 14%, var(--k-surface)); color: var(--k-info); }
.eq-item-txt { display: flex; flex-direction: column; min-width: 0; }
.eq-item-txt strong { color: var(--k-ink); font-family: var(--k-display); overflow-wrap: anywhere; }
.eq-item-txt small { color: var(--k-muted); overflow-wrap: anywhere; }
.eq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.eq-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.eq-ok i { font-size: 1.3rem; }
.eq-none { padding: 14px 0; }
.eq-narrow { max-width: 260px; }
.eq-kind { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--k-muted); text-transform: none; }
.eq-detail > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-bottom: 10px; }
.eq-detail > header .eq-kind { flex: 1 1 100%; margin-bottom: -6px; }
.eq-detail > header h3 { flex: 1 1 auto; }
.eq-detail > header .eq-item-ic { width: 44px; height: 44px; font-size: 1.6rem; }
.eq-detail > header .eq-item-txt strong { font-size: 1.3rem; }
.eq-handle { padding: 16px 26px 20px; margin-top: 12px; border-top: 1px solid var(--k-border); background: color-mix(in srgb, var(--k-accent) 5%, var(--k-surface)); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.eq-handle .eq-form { flex: 1 1 100%; max-width: none; }
.eq-handle h4, .eq-inline-form h4 { font-family: var(--k-display); font-size: 1rem; color: var(--k-ink); margin: 0 0 10px; }
.eq-item-actions { align-items: flex-start; }
.eq-item-actions details { flex: 0 0 auto; }
.eq-item-actions details[open] { flex: 1 1 100%; order: 5; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }
.eq-holder { padding: 14px 26px 6px; border-top: 1px solid var(--k-border); margin-top: 10px; }
.eq-holder-who { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.eq-holder-who .eq-person img { width: 40px; height: 40px; }
.eq-holder-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-handout { margin: 4px 0 10px; }
.eq-handout[open] > summary { margin-bottom: 14px; }
.eq-inline-form { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-rc); padding: 14px 16px; margin-top: 10px; }
.eq-holder > .eq-inline-form { margin-top: 0; }
.eq-item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.eq-item-layout .eq-detail { max-width: none; }
.eq-side .eq-h { margin-top: 18px; }
.eq-label-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; color: #111; border: 1px dashed var(--k-border); border-radius: var(--k-r); }
.eq-qr { width: 96px; height: 96px; flex: 0 0 auto; }
.eq-qr svg { width: 100%; height: 100%; display: block; }
.eq-label-txt { display: flex; flex-direction: column; min-width: 0; }
.eq-label-txt strong { font-size: 1.15rem; font-family: var(--k-display); letter-spacing: 0.02em; }
.eq-label-txt span { font-size: 0.9rem; overflow-wrap: anywhere; }
.eq-label-txt small { font-size: 0.75rem; color: #555; overflow-wrap: anywhere; }
.eq-timeline { list-style: none; margin: 0 0 18px; padding: 0 0 0 16px; border-left: 2px solid var(--k-border); }
.eq-detail .eq-timeline { margin: 8px 26px 12px; }
.eq-timeline li { position: relative; padding: 0 0 12px 10px; display: flex; flex-direction: column; }
.eq-timeline li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--k-surface); border: 2px solid var(--k-accent); }
.eq-timeline li.is-reply::before, .eq-timeline li.is-confirmed::before, .eq-timeline li.is-returned::before { border-color: var(--k-good); }
.eq-timeline li.is-fault::before, .eq-timeline li.is-declined::before, .eq-timeline li.is-lost::before { border-color: var(--k-late); }
.eq-t-when { font-size: 0.76rem; color: var(--k-muted); }
.eq-t-what { color: var(--k-ink); font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.eq-t-note { margin-top: 4px; padding: 8px 12px; border-radius: var(--k-rc); background: var(--k-ice); color: var(--k-text); font-size: 0.9rem; overflow-wrap: anywhere; }
.eq-confirms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 22px; }
.eq-confirm { background: var(--k-surface); border: 1px solid var(--k-border); border-top: 4px solid var(--k-warn); border-radius: var(--k-r); padding: 16px 18px; box-shadow: var(--k-shadow); }
.eq-confirm > .eq-muted { margin: 8px 0 0; }
.eq-confirm .eq-facts { padding: 0; margin: 10px 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.eq-agree { align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: var(--k-rc); background: var(--k-ice); font-weight: 600; color: var(--k-ink); }
.eq-agree input { margin-top: 4px; flex: 0 0 auto; }
.eq-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eq-past { margin: 0 0 22px; }
.eq-past > summary { cursor: pointer; font-weight: 700; color: var(--k-muted); margin-bottom: 10px; }
.eq-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-filter-form { flex-wrap: wrap; }
.eq-filter-form .form-control { min-width: 280px; flex: 1 1 280px; }
.eq-filter-form .form-select { min-width: 160px; width: auto; }
.eq-table .eq-item-head { gap: 10px; }
.eq-table .eq-item-ic { width: 32px; height: 32px; font-size: 1.15rem; }
.eq-widget .eq-w-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 0.88rem; }
.eq-widget .eq-w-list a.is-warn small { font-weight: 600; }
.eq-row-meta, .eq-sub-line { overflow-wrap: anywhere; }

@media (max-width: 1199.98px) {
  .eq-item-layout { grid-template-columns: 1fr; }
  .eq-side { order: 2; }
}
@media print {
  body.eq-printing * { visibility: hidden !important; }
  body.eq-printing #eq-label, body.eq-printing #eq-label * { visibility: visible !important; }
  body.eq-printing #eq-label { position: fixed; left: 0; top: 0; border: 1px solid #999; width: 90mm; }
}

/* ---------- Phone ---------- */
@media (max-width: 767.98px) {
  .eq-detail > header, .eq-facts, .eq-desc, .eq-signup { padding-left: 16px; padding-right: 16px; }
  .eq-detail > .mf { margin-left: 16px; margin-right: 16px; }
  .eq-detail > header h3 { font-size: 1.2rem; }
  .eq-signup .btn { width: 100%; }
  .eq-req, .eq-cert { padding: 12px 14px; }
  .eq-req-side, .eq-cert-side { justify-content: flex-start; }
  .eq-col-hide { display: none; }
  .eq-show-sm { display: block; }
  .eq-table th, .eq-table td { padding: 0.6rem 0.6rem; }
  .eq-courses, .eq-reviews { grid-template-columns: 1fr; }
  .eq-pick { margin-left: 0; }
  .eq-people { grid-template-columns: 1fr; }
  .eq-box { padding: 16px; }
  .eq-matrix .eq-m-name { min-width: 120px; max-width: 140px; }
  .eq-handle, .eq-holder { padding-left: 16px; padding-right: 16px; }
  .eq-detail .eq-timeline { margin-left: 16px; margin-right: 16px; }
  .eq-row { padding: 12px 14px; }
  .eq-row-side { justify-content: flex-start; }
  .eq-row-meta { padding-left: 0; }
  .eq-confirms { grid-template-columns: 1fr; }
  .eq-filter-form .form-control, .eq-filter-form .form-select { min-width: 0; width: 100%; flex: 1 1 100%; }
  .eq-toolbar-actions { width: 100%; }
  .eq-narrow { max-width: none; }
  .eq-grid { grid-template-columns: 1fr; }
  .eq-filter-form .btn { display: none; }
  .eq-matrix thead th { min-width: 100px; }
  .eq-filter-form, .eq-filter-form .form-select { width: 100%; }
}

/* ---------- 1.43.0: consumables ---------- */
.eq-stock-intro { flex: 1 1 320px; }
.eq-stock-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-stock-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem minmax(8rem, auto) auto; gap: 8px 16px; align-items: center; padding: 12px 16px; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r); }
.eq-stock-row.is-low { border-color: color-mix(in srgb, var(--k-warn) 55%, var(--k-border)); }
.eq-stock-row.is-archived { opacity: 0.7; }
.eq-stock-main { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.eq-stock-main:hover strong { text-decoration: underline; }
.eq-stock-qty { display: flex; align-items: baseline; gap: 5px; justify-content: flex-end; }
.eq-stock-qty strong { font-family: var(--k-display); font-size: 1.5rem; color: var(--k-ink); line-height: 1; }
.eq-stock-row.is-low .eq-stock-qty strong { color: var(--k-warn); }
.eq-stock-qty small { color: var(--k-muted); font-size: 0.82rem; }
.eq-stock-side { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.eq-stock-side small { font-size: 0.78rem; }
.eq-quick { justify-self: end; }
.eq-quick[open] { grid-column: 1 / -1; justify-self: stretch; padding-top: 10px; border-top: 1px dashed var(--k-border); }
.eq-quick[open] > summary { margin-bottom: 10px; }
.eq-move-kinds { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 12px; }
.eq-move-kind { margin: 0; cursor: pointer; }
.eq-move-kind input { position: absolute; opacity: 0; pointer-events: none; }
.eq-move-kind span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--k-border); background: var(--k-surface); font-weight: 600; font-size: 0.88rem; color: var(--k-text); }
.eq-move-kind input:checked + span { background: var(--k-accent); border-color: var(--k-accent); color: #fff; }
[data-bs-theme=dark] .eq-move-kind input:checked + span { color: #0e1b26; }
.eq-move-kind input:focus-visible + span { outline: 2px solid var(--k-accent); outline-offset: 2px; }
.eq-qty-input { display: flex; align-items: center; gap: 8px; }
.eq-qty-input .form-control { max-width: 9rem; }
.eq-qty-input span { color: var(--k-muted); font-size: 0.88rem; }
.eq-move-form [data-only][hidden] { display: none; }
.eq-stock-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 4px 26px 12px; }
.eq-stock-count strong { font-family: var(--k-display); font-size: 2.6rem; line-height: 1; color: var(--k-ink); }
.eq-stock-count span { color: var(--k-text); font-weight: 600; }
.eq-stock-count small { flex: 1 1 100%; color: var(--k-muted); }
.eq-stock-count.is-low strong { color: var(--k-warn); }
.eq-moves .eq-delta { font-variant-numeric: tabular-nums; color: var(--k-ink); margin-right: 2px; }
.eq-timeline li.is-in::before, .eq-timeline li.is-start::before { border-color: var(--k-good); }
.eq-timeline li.is-out::before { border-color: var(--k-warn); }
.eq-stock-edit { margin-top: 16px; }
.eq-stock-edit > summary { cursor: pointer; list-style: none; }
.eq-stock-edit > summary::-webkit-details-marker { display: none; }
.eq-stock-edit > summary h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.eq-stock-edit > summary h3::after { content: "▾"; font-weight: 400; color: var(--k-muted); transition: transform 0.15s; }
.eq-stock-edit[open] > summary h3::after { transform: rotate(180deg); }
.eq-stock-edit[open] > summary { margin-bottom: 14px; }
.eq-stock-out { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--k-border); }
.eq-stock-out .btn { display: inline-flex; align-items: center; gap: 5px; white-space: normal; text-align: left; }
@media (max-width: 767.98px) {
  .eq-stock-row { grid-template-columns: minmax(0, 1fr) auto; }
  .eq-stock-side { grid-column: 1; }
  .eq-quick { grid-column: 2; grid-row: 2; }
  .eq-quick[open] { grid-column: 1 / -1; grid-row: 3; }
  .eq-stock-count { padding-left: 16px; padding-right: 16px; }
}
