/* ORS Report Compare — Pinnacle accelerator shell: left menu, top bar, content.
   Pinnacle Consulting brand: navy #172554, blue #3B82F6, Fustat. The logo files in brand/ are
   the supplied artwork and are never redrawn or recolored: white on the navy rail, navy on white.
   Fustat is served from brand/fonts so the app needs nothing from the internet. */
@font-face { font-family: 'Fustat'; src: url('brand/fonts/Fustat-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap }
@font-face { font-family: 'Fustat'; src: url('brand/fonts/Fustat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap }
@font-face { font-family: 'Fustat'; src: url('brand/fonts/Fustat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap }
@font-face { font-family: 'Fustat'; src: url('brand/fonts/Fustat-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap }
:root {
  /* brand */
  --navy: #172554; --navy-2: #1E3B8A; --blue: #3B82F6; --blue-d: #2563EB;
  --blue-50: #EFF6FF; --blue-100: #DBEAFE; --blue-300: #93C5FD; --blue-400: #60A5FA;
  --slate-300: #CBD5E1; --slate-400: #94A3B8; --slate-500: #64748B;
  --blue-l: var(--blue-50);
  --bg: #F4F6FA; --card: #FFFFFF; --text: #0F172A; --muted: var(--slate-500);
  --line: #E3E7EF; --line-2: var(--slate-300);
  /* brand status colors */
  --ok: #0F7B8C; --ok-bg: #E6F4F6; --bad: #A32D2D; --bad-bg: #FBEDED; --warn: #854F0B; --warn-bg: #FDF5E7;
  --info: #1E3B8A; --info-bg: var(--blue-50); --gray: #5A6577; --gray-bg: #F1F5F9;
  --font: 'Fustat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box }
html, body { height: 100% }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px }
a { color: var(--blue-d); text-decoration: none; cursor: pointer } a:hover { text-decoration: underline }
button { font-family: inherit }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh }
.side { background: var(--navy); color: #DCE4F5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh }
/* width auto with align-self start: in a stretch column the box would fill the width,
   and the lockup must never be stretched */
.logo { width: auto; display: block; align-self: flex-start; flex: none }
.brand { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 16px; color: #fff; line-height: 1.2; border-bottom: 1px solid rgba(255,255,255,.08) }
.brand-app { font-weight: 700; font-size: 15px }
.brand small { display: block; font-weight: 600; color: var(--blue-300); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: -6px }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; flex: 1 }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8EA2CC; padding: 14px 10px 6px }
.nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: #DCE4F5; font-weight: 500 }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none }
.nav a.on { background: var(--blue); color: #fff }
.nav svg { width: 18px; height: 18px; flex: none }
.side-foot { padding: 14px 18px; font-size: 12px; color: #9FB3DA; border-top: 1px solid rgba(255,255,255,.08) }
.side-foot b { color: #fff; display: block; font-size: 13px }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5 }
.crumb { font-size: 13px; color: var(--muted) }
main { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100% }
h1 { margin: 0; font-size: 24px; font-weight: 700 } h2 { margin: 0; font-size: 16px; font-weight: 700 }
.sub { margin: 4px 0 0; color: var(--muted) }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center } .between { justify-content: space-between }
.grid { display: grid; gap: 14px } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) } .g7 { grid-template-columns: repeat(7, minmax(0, 1fr)) }
@media (max-width: 1000px) { .shell { grid-template-columns: 1fr } .side { position: static; height: auto } .g2, .g3, .g4, .g7 { grid-template-columns: repeat(2, minmax(0, 1fr)) } main, .top { padding-left: 16px; padding-right: 16px } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px }
.pad { padding: 18px 20px }
.stat .l { color: var(--muted); font-size: 13px } .stat .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums }
table { width: 100%; border-collapse: collapse }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap }
.num { text-align: right; font-variant-numeric: tabular-nums }
tr.click { cursor: pointer } tr.click:hover td { background: var(--blue-50) }
.scroll { overflow-x: auto }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer }
.btn:hover { background: var(--blue-l); text-decoration: none }
.btn.pri { background: var(--blue-d); border-color: var(--blue-d); color: #fff } .btn.pri:hover { background: var(--navy-2) }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px }
.btn:disabled { opacity: .5; cursor: not-allowed }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap }
.p-ok { background: var(--ok-bg); color: var(--ok) } .p-bad { background: var(--bad-bg); color: var(--bad) } .p-warn { background: var(--warn-bg); color: var(--warn) } .p-info { background: var(--info-bg); color: var(--info) } .p-gray { background: var(--gray-bg); color: var(--gray) } .p-new { background: var(--bad); color: #fff }
.chip { min-height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; cursor: pointer; color: var(--text) }
.chip.on { background: var(--blue-l); border-color: var(--blue); color: var(--info); font-weight: 600 }
.lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px }
.inp { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; color: var(--text); background: #fff }
textarea.inp { padding: 8px 10px }
.opt { text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; color: var(--text) }
.opt.on { border: 2px solid var(--blue); background: var(--blue-l); padding: 11px 13px }
.opt b { display: block } .opt span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px }
.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #FAFBFD }
.drop.over { border-color: var(--blue); background: var(--blue-l) }
.drop.has { border-style: solid; border-color: var(--blue) }
.kvl { display: flex; justify-content: space-between; gap: 10px; font-size: 13px } .kvl span:first-child { color: var(--muted) }
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; font-size: 14px }
.v-bad { background: var(--bad-bg); color: var(--bad) } .v-ok { background: var(--ok-bg); color: var(--ok) } .v-run { background: var(--info-bg); color: var(--info) }
.tile { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text) }
.tile.on { border: 2px solid var(--blue); padding: 11px 13px; background: var(--blue-l) }
.tile .l { font-size: 12px; color: var(--muted) } .tile .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; flex: 1 }
.src { border-top: 1px solid var(--line) }
.src-h { display: grid; grid-template-columns: 30px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px }
.tog { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer }
.src-b { padding: 0 18px 12px 86px } .src-b td { font-size: 13px; padding: 6px 8px }
.bulk { background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 14px; margin: 0 18px 10px }
.bulk .inp { width: auto; min-height: 30px }
.check { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line) }
.empty { padding: 28px; text-align: center; color: var(--muted) }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; z-index: 50; max-width: 420px }
.toast.err { background: var(--bad) }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp 1s linear infinite; display: inline-block }
@keyframes sp { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none } }

/* page viewer */
.vt-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 10px 14px }
.vt { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start }
@media (max-width: 1200px) { .vt { grid-template-columns: 1fr } }
.vt-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: #D9DFE9; border-radius: 12px; padding: 12px; overflow-x: auto }
.pgwrap { position: relative; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); overflow: auto; max-height: calc(100vh - 230px); min-height: 200px }
.pgwrap canvas { display: block; height: auto }
.ov { position: absolute; inset: 0; pointer-events: none }
.mk { position: absolute; border: 2px solid var(--mc); background: color-mix(in srgb, var(--mc) 14%, transparent); border-radius: 2px }
.mk.roll { border-style: dashed; background: transparent; border-width: 1.5px }
.bub { position: absolute; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--mc); color: #fff; font: 700 11px/20px Arial, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transform: translate(2px, -75%); pointer-events: auto; cursor: pointer }
.m-bad { --mc: #DC2626 } .m-warn { --mc: #C2410C } .m-gray { --mc: #64748B }
.side-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px }
.vt-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 70px }
.radio { display: flex; gap: 10px; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; color: var(--text) }
.radio.on { border: 2px solid var(--blue); background: var(--blue-l); font-weight: 600; padding: 0 11px }

/* report export — the Pinnacle document pattern: navy headings with a blue bar,
   navy table header rows, and the brand footer line */
.paper { background: #fff; max-width: 1000px; margin: 0 auto; padding: 44px 52px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px }
.paper h1 { color: var(--navy); font-weight: 800 }
.paper h2 { color: var(--navy); font-weight: 800; padding: 2px 0 2px 12px; border-left: 4px solid var(--blue); margin-bottom: 10px }
.paper-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500) }
.paper-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right }
.paper-head-right .logo { align-self: flex-end; margin-right: -14px }
.paper td, .paper th { font-size: 12.5px; padding: 6px 8px }
.paper thead th { background: var(--navy); color: #fff; border-bottom: 0 }
.paper tbody tr:nth-child(even) td { background: var(--blue-50) }
.paper-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--slate-300); padding-top: 10px; font-size: 11px; color: var(--slate-500) }
.sig { border-top: 1px solid var(--text); padding-top: 6px; font-size: 12px; color: var(--muted); margin-top: 36px }
@media print {
  .side, .top, .noprint { display: none !important } .shell { display: block } main { padding: 0 }
  .paper { border: 0; padding: 0 } body { background: #fff }
  /* keep the navy header rows and the verdict band when printed or saved as PDF */
  .paper thead th, .paper tbody tr:nth-child(even) td, .verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact }
  .paper section { break-inside: auto } .paper h2 { break-after: avoid }
}

/* sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; background: var(--navy) }
.signin .card { width: min(420px, calc(100% - 32px)); padding: 32px; display: flex; flex-direction: column; gap: 16px }
.signin-head { display: flex; flex-direction: column; gap: 10px }
/* the navy SVG carries its own padding, so it is pulled back to the card's left edge */
.signin-head .logo { margin: -10px 0 0 -14px }
.signin-head b { font-size: 19px; color: var(--navy) }
