/* 2026-11-08 Find anything (⌕, Ctrl+K) and the Guide (✦) — both dashboards (the Loss Control page loads it as /find.css) */
.fnd-ico { font-weight: 700; }
#findBtn, #guideBtn { white-space: nowrap; }

/* FIND: a box over the page, under the top bar */
.fnd { position: fixed; inset: 0; z-index: 2400; /* 2026-11-08 above the sticky top bar (900), the filter bar (800) and the menu (1000); below a record's modal (2500) */ background: rgba(11, 11, 11, .35); display: flex; align-items: flex-start; justify-content: center; padding: 56px 12px 12px; }
.fnd-box { width: min(680px, 100%); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: var(--card, #fff); color: var(--ink, #0b0b0b);
  border: 1px solid var(--line, #dde3ea); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); overflow: hidden; }
.fnd-in { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line, #dde3ea); }
.fnd-in .fnd-ico { font-size: 18px; color: var(--muted, #898781); }
.fnd-in input { flex: 1; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 0; outline: 0; min-width: 0; }
.fnd-x { font: inherit; font-size: 20px; line-height: 1; color: var(--muted, #898781); background: transparent; border: 0; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fnd-x:hover { background: var(--page, #f4f6f9); color: var(--ink, #0b0b0b); }
.fnd-res { overflow: auto; padding: 6px 6px 4px; }
.fnd-hint { margin: 10px 8px; color: var(--muted, #898781); font-size: 13px; }
.fnd-grp { padding: 4px 0 6px; }
.fnd-gl { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #898781); padding: 6px 8px 2px; }
.fnd-gl em { font-style: normal; font-weight: 600; background: var(--page, #f4f6f9); border-radius: 10px; padding: 0 7px; }
.fnd-row { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.fnd-row b { font-weight: 600; font-size: 14px; }
.fnd-row small { color: var(--ink-2, #52514e); font-size: 12px; }
.fnd-row:hover, .fnd-row.sel { background: var(--page, #f4f6f9); outline: 1px solid var(--line, #dde3ea); }
.fnd-row.sel b { color: var(--navy, #0f3d3e); }
.fnd-more { font: inherit; font-size: 12px; color: var(--navy, #0f3d3e); background: transparent; border: 0; cursor: pointer; padding: 4px 10px; text-decoration: underline; }
.fnd-foot { display: flex; gap: 14px; padding: 6px 12px; border-top: 1px solid var(--line, #dde3ea); font-size: 11px; color: var(--muted, #898781); }
@media (max-width: 600px) { .fnd { padding: 8px; } .fnd-box { max-height: calc(100vh - 16px); } .fnd-foot { display: none; } }

/* THE GUIDE: a panel on the right */
/* 2026-11-08 (the user: "one covers the other"): on a PC the Guide sits BESIDE the page, below the top bar (52px), and the page makes room for it;
   on a phone it fills the screen */
.gde { position: fixed; top: 52px; right: 0; bottom: 0; width: min(400px, 100%); z-index: 850; display: flex; flex-direction: column; background: var(--card, #fff); color: var(--ink, #0b0b0b);
  border-left: 1px solid var(--line, #dde3ea); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); }
.gde-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line, #dde3ea); background: var(--navy, #0f3d3e); color: #fff; }
.gde-h b { display: block; font-size: 15px; }
.gde-h small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.gde-h .fnd-x { color: #fff; }
.gde-h .fnd-x:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.gde-m { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--page, #f4f6f9); }
.gde-b { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.gde-b.g { align-self: flex-start; background: var(--card, #fff); border: 1px solid var(--line, #dde3ea); border-bottom-left-radius: 4px; }
.gde-b.u { align-self: flex-end; background: var(--navy, #0f3d3e); color: #fff; border-bottom-right-radius: 4px; }
.gde-b p { margin: 0 0 6px; }
.gde-b p:last-child { margin-bottom: 0; }
.gde-b ol { margin: 4px 0 8px; padding-left: 20px; }
.gde-b ol li { margin: 3px 0; }
.gde-open, .gde-log { display: inline-block; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--navy, #0f3d3e); border: 0; border-radius: 8px; padding: 6px 12px; margin: 4px 6px 4px 0; cursor: pointer; }
.gde-open:hover, .gde-log:hover { background: var(--amber-d, #c77f00); }
.gde-man { display: inline-block; font-size: 13px; color: var(--navy, #0f3d3e); margin: 4px 0; }
.gde-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gde-chips button { font: inherit; font-size: 12.5px; color: var(--navy, #0f3d3e); background: var(--page, #f4f6f9); border: 1px solid var(--line, #dde3ea); border-radius: 14px; padding: 4px 10px; cursor: pointer; text-align: left; }
.gde-chips button:hover { border-color: var(--navy, #0f3d3e); }
.gde-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line, #dde3ea); background: var(--card, #fff); }
.gde-f input { flex: 1; font: inherit; font-size: 14px; color: inherit; background: var(--page, #f4f6f9); border: 1px solid var(--line, #dde3ea); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.gde-f input:focus { outline: 2px solid var(--navy, #0f3d3e); outline-offset: -1px; }
.gde-foot { padding: 0 12px 10px; background: var(--card, #fff); }
.gde-foot:empty { display: none; }
.gde-log { background: transparent; color: var(--navy, #0f3d3e); border: 1px solid var(--line, #dde3ea); font-weight: 500; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .gde-b.u { background: #1f6e70; }
  :root:where(:not([data-theme="light"])) .gde-open { background: #1f6e70; }
}

@media (min-width: 1000px) { body.gde-open .work { margin-right: 400px; } body.gde-open .fnd { padding-right: 400px; } }
@media (max-width: 700px) { .gde { top: 0; z-index: 2300; } }

/* 2026-11-08 the administrator's Claude switch in the Guide's footer */
.gde-ai { display: grid; gap: 6px; padding: 8px 0 10px; border-top: 1px solid var(--line, #dde3ea); margin-bottom: 6px; }
.gde-ai-on { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.gde-ai input[type="password"] { font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line, #dde3ea); border-radius: 6px; background: var(--page, #f4f6f9); color: inherit; }
.gde-ai small { color: var(--muted, #898781); font-size: 11.5px; }
