/* Retrofit Audit - engineering tool layout. No external fonts or scripts (works inside a closed VPN). */
:root {
  --ink: #1c2430;
  --muted: #5b6776;
  --line: #d3dae3;
  --grid: #e3e8ee;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --band: #f7f9fb;
  --navy: #0e2a47;
  --primary: #0f4c81;
  --primary-dark: #0b3a63;
  --tint: #e6eef6;
  --ok: #1e7a3c;
  --warn: #8a6100;
  --high: #b3470c;
  --crit: #a61b1b;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { font-size: 13px; }            /* text size: A- 12px, A 13px (default), A+ 14.5px - buttons in the title bar */
html.size-s { font-size: 12px; }
html.size-l { font-size: 14.5px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.35; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.3rem; margin: 0 0 .1rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: .98rem; margin: 0; font-weight: 600; color: var(--ink); }
h3 { font-size: .95rem; margin: .9rem 0 .35rem; }
small, .muted { color: var(--muted); }
code, .pn { font-family: var(--mono); font-size: .93em; }
.pn { white-space: nowrap; }

/* frame: title bar, main menu, lower menu, project bar, workspace, status bar */
.titlebar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; height: 2.5rem; white-space: nowrap; }
.titlebar .brand { color: #fff; font-weight: 600; font-size: 1.12rem; display: flex; align-items: center; gap: .6rem; }
.titlebar .brand::before { content: ""; width: .95rem; height: .95rem; background: #f0a53a; display: inline-block; }
.titlebar .size { display: inline-flex; border: 1px solid #47617d; border-radius: 3px; overflow: hidden; }
.titlebar .size button { border: 0; border-radius: 0; padding: .05rem .5rem; font-size: .85rem; }
.titlebar .size button + button { border-left: 1px solid #47617d; }
.titlebar .size button.on { background: #1b3e63; font-weight: 700; }
.titlebar .right { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; font-size: .93rem; color: #c9d6e4; }
.titlebar a { color: #c9d6e4; }
.titlebar form { margin: 0; }
.titlebar button { background: none; border: 1px solid #47617d; border-radius: 3px; color: #fff; font: inherit; padding: .15rem .7rem; cursor: pointer; }
.titlebar button:hover { background: #1b3e63; }
.toolbar { background: var(--band); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .3rem; padding: .25rem 1rem;
  white-space: nowrap; overflow-x: auto; position: sticky; top: 0; z-index: 4; min-height: 2.8rem; }
.toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: .15rem .5rem; flex: none; }
.toolbar .grow { flex: 1; }
.tb { display: inline-block; padding: .2rem .65rem; border: 1px solid transparent; border-radius: 3px; background: none; color: #364252; font: inherit; cursor: pointer; }
.tb:hover { background: #e8edf3; text-decoration: none; }
.tb.nav { border-color: var(--line); background: var(--panel); padding: .28rem .6rem; }
.tb.on { background: var(--tint); color: var(--primary); font-weight: 600; }
.tb.cmd { background: var(--primary); border-color: var(--primary-dark); color: #fff; font-weight: 600; }
.tb.cmd:hover { background: var(--primary-dark); }
.toolbar.ctx { position: static; background: #fff; }
.toolbar.ctx .ctxname { font-weight: 600; margin-right: .5rem; padding: .15rem .6rem; background: var(--navy); color: #fff; border-radius: 3px; }
.main { padding: .75rem 1rem 3rem; max-width: 1920px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .1rem; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; display: inline-flex; gap: .35rem; align-items: center; }

.statusbar { position: fixed; left: 0; right: 0; bottom: 0; height: 2rem; background: var(--navy); color: #aebccb; z-index: 5;
  display: flex; gap: 1.6rem; align-items: center; padding: 0 1.2rem; font-size: .86rem; white-space: nowrap; overflow: hidden; }
.statusbar b { color: #fff; font-weight: 600; }
.statusbar .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #4fc06f; margin-right: .4rem; }
.statusbar .right { margin-left: auto; }
.statusbar a { color: #fff; text-decoration: underline; text-decoration-color: #6b8099; }

/* main menu with drop-down (cascade) lists */
.menubar { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; padding: 0 .8rem; position: relative; z-index: 20; }
.mb { position: relative; }
.mb > a { display: flex; align-items: center; gap: .45rem; padding: .48rem .85rem .42rem; color: #2c3746; font-size: 1rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.mb > a .n { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #dfe6ee; color: #3b4a5c; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mb > a .car { font-size: .7rem; color: #8a97a6; margin-left: .1rem; }
.mb.on > a { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.mb.on > a .n { background: var(--primary); color: #fff; }
.mb:hover > a, .mb:focus-within > a { background: var(--band); text-decoration: none; }
.menubar .sepv { width: 1px; background: var(--line); margin: .55rem .5rem; flex: none; }
.dd { display: none; position: absolute; top: 100%; left: 0; min-width: 21rem; background: #fff; border: 1px solid #c9d3de; border-radius: 0 0 5px 5px;
  box-shadow: 0 10px 26px rgba(14, 42, 71, .16); padding: .35rem 0; }
.mb:hover > .dd, .mb:focus-within > .dd { display: block; }
.dd a.it { display: grid; grid-template-columns: 1.8rem 1fr; column-gap: .5rem; padding: .36rem .8rem; color: var(--ink); }
.dd a.it:hover, .dd a.it.on { background: var(--tint); text-decoration: none; }
.dd a.it .ic { grid-row: span 2; width: 2rem; height: 2rem; border-radius: 4px; background: #eef2f6; border: 1px solid #d7dee7; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: .85rem; }
.dd a.it b { font-weight: 600; }
.dd a.it small { color: var(--muted); font-size: .84rem; }
.dd .lbl:first-child { border-top: 0; margin-top: 0; }
.dd .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #8794a4; padding: .6rem .95rem .25rem; font-weight: 600; border-top: 1px solid var(--grid); margin-top: .3rem; }
.dd .pj { position: relative; }
.dd .pj > a { display: flex; align-items: center; gap: .6rem; padding: .42rem .9rem; color: var(--ink); }
.dd .pj > a b { font-family: var(--mono); font-size: .92rem; }
.dd .pj > a span { color: var(--muted); font-size: .88rem; flex: 1; }
.dd .pj > a i { font-style: normal; color: #8a97a6; }
.dd .pj:hover > a, .dd .pj:focus-within > a { background: var(--tint); text-decoration: none; }
.dd2 { display: none; position: absolute; left: 100%; top: -.4rem; min-width: 16rem; background: #fff; border: 1px solid #c9d3de; border-radius: 5px; box-shadow: 0 10px 26px rgba(14, 42, 71, .16); padding: .35rem 0; }
.pj:hover > .dd2, .pj:focus-within > .dd2 { display: block; }
.dd2 a { display: flex; align-items: center; gap: .6rem; padding: .38rem .9rem; color: var(--ink); }
.dd2 a:hover { background: var(--tint); text-decoration: none; }
.dd2 a i { font-style: normal; width: 1.35rem; height: 1.35rem; border-radius: 3px; border: 1px solid #b4c1cf; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: #5b6776; }
.dd2 a.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.dd2 .head2 { padding: .3rem .9rem .45rem; border-bottom: 1px solid var(--grid); margin-bottom: .2rem; font-size: .85rem; color: var(--muted); }
/* project bar: the six steps as tiles */
.pbar { background: #fff; border-bottom: 1px solid var(--line); padding: .35rem 1rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pbar .code { background: var(--navy); color: #fff; border-radius: 3px; padding: .3rem .7rem; font-family: var(--mono); font-weight: 600; margin-right: .4rem; }
.pbar .ps { display: flex; align-items: center; gap: .4rem; padding: .18rem .6rem .18rem .3rem; border: 1px solid var(--line); border-radius: 18px; color: #3b4a5c; background: var(--band); font-size: .93rem; }
.pbar .ps i { font-style: normal; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #fff; border: 1.5px solid #9aabbd; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.pbar .ps.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.pbar .ps.on { border-color: var(--primary); background: var(--tint); color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.pbar .ps.on i { border-color: var(--primary); }
.pbar .ps.on.done i { background: var(--primary); }
.pbar .arr { color: #aab5c2; }
.pbar .more { margin-left: auto; display: flex; gap: .2rem; }
.pbar .more a { padding: .3rem .65rem; border-radius: 3px; color: #3b4a5c; font-size: .92rem; }
.pbar .more a:hover { background: var(--band); text-decoration: none; }
.pbar .code:hover, .pbar .code.on { background: var(--primary); text-decoration: none; }
.pbar .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8794a4; font-weight: 600; margin-right: .2rem; }
.pbar .ps:hover { border-color: #9bb5cf; text-decoration: none; }
.pbar .more a.on { background: var(--tint); color: var(--primary); font-weight: 600; }

.toolbar .where { color: var(--muted); font-size: .95rem; padding: 0 .3rem; }
.toolbar .where b { color: var(--ink); font-weight: 600; }
.toolbar .where i { font-style: normal; color: #9aa6b4; margin: 0 .15rem; }
.tip { display: flex; align-items: center; gap: .6rem; padding: .28rem 1rem; background: #fffbea; border-bottom: 1px solid #ecdca4; color: #574a1c; font-size: .93rem; }
.tip .i { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #c99a1b; color: #fff; font-weight: 700; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-style: italic; }
.tip a { font-weight: 600; white-space: nowrap; }
.tip button { margin-left: auto; background: none; border: 0; color: #8a7a3c; cursor: pointer; font: inherit; font-size: .85rem; white-space: nowrap; }
.tip button:hover { text-decoration: underline; }
.tips-off .tip { display: none; }

/* guide: the work sequence */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; counter-reset: flow; }
.flow .fstep { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .8rem .95rem .9rem; position: relative; border-top: 3px solid var(--primary); }
.flow .fstep h3 { margin: 0 0 .35rem; display: flex; gap: .55rem; align-items: center; font-size: 1rem; }
.flow .fstep h3 i { font-style: normal; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.flow .fstep p { margin: .2rem 0 .55rem; color: #3d4858; }
.flow .fstep .where { font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .45rem; }
.flow .fstep.ref { border-top-color: #8fa3ba; }
.flow .fstep.ref h3 i { background: #8fa3ba; }
.keys { display: grid; grid-template-columns: 11rem 1fr; gap: .35rem 1rem; margin: 0; }
.keys dt { font-weight: 600; }
.keys dd { margin: 0; color: #3d4858; }

/* dashboard: work sequence strip */
.seqrow { display: flex; align-items: stretch; gap: .2rem; padding: .55rem .75rem; overflow-x: auto; }
.seqcell { flex: 1; min-width: 9.5rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem;
  border: 1px solid var(--line); border-radius: 4px; padding: .38rem .65rem; color: var(--ink); background: var(--band); }
.seqcell:hover { border-color: var(--primary); text-decoration: none; background: var(--tint); }
.seqcell i { grid-row: span 2; font-style: normal; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #9aabbd; color: #fff;
  font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.seqcell b { font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.seqcell span { color: var(--muted); font-size: .86rem; line-height: 1.25; }
.seqcell.busy { background: #fff; border-color: #9bb5cf; }
.seqcell.busy i { background: var(--primary); }
.seqrow .arrow { align-self: center; color: #9aa6b4; font-size: 1.4rem; padding: 0 .15rem; }

/* panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; margin-bottom: .7rem; box-shadow: 0 1px 2px rgba(16, 32, 56, .04); overflow: hidden; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .38rem .75rem; border-bottom: 1px solid var(--line); background: var(--band); }
.card > .body, .card form > .body { padding: .65rem .75rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; border-top: 3px solid #8fa3ba; padding: .45rem .75rem; }
.stat b { display: block; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.hot { border-top-color: var(--primary); }

dl.facts { display: grid; grid-template-columns: 190px 1fr; gap: 0; margin: 0; }
dl.facts dt { color: var(--muted); padding: .32rem .6rem .32rem 0; border-bottom: 1px solid var(--grid); }
dl.facts dd { margin: 0; padding: .32rem 0; border-bottom: 1px solid var(--grid); white-space: pre-line; }
dl.facts dt:last-of-type, dl.facts dd:last-of-type { border-bottom: 0; }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .82rem; color: #46525f; font-weight: 600; padding: .3rem .55rem; border-bottom: 1px solid var(--line);
  background: var(--band); white-space: nowrap; }
td { padding: .24rem .55rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
tr:hover > td { background: #f4f8fc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.tools { white-space: nowrap; text-align: right; }
tr.total > td { font-weight: 600; border-top: 2px solid #8fa3ba; background: var(--band); }
tr.strong > td { font-weight: 600; background: var(--tint); }
tr.grp > th { text-align: center; font-size: .86rem; padding: .45rem; }
th.old { background: #f8eeee; color: #7a2323; }
td.old { background: #fdf8f8; }
th.new { background: #eaf4ed; color: #1f5a33; }
td.new { background: #f7fbf8; }
tr:hover > td.old { background: #faf0f0; } tr:hover > td.new { background: #eef7f1; }
th.mid, td.mid { width: 1.8rem; padding: 0; text-align: center; background: var(--navy); color: #fff; border-color: var(--navy); }
tr:hover > td.mid { background: var(--navy); }
.empty { padding: .7rem .75rem; color: var(--muted); }

/* monitoring board */
table.board { table-layout: fixed; width: 100%; }
table.board col.c-client { width: 17%; }
table.board col.c-who { width: 12%; }
table.board col.c-st { width: 5.4%; }
table.board col.c-done { width: 9%; }
table.board th, table.board td { padding: .26rem .4rem; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
table.board td.cl, table.board td.who { white-space: nowrap; line-height: 1.3; }
table.board td.cl > a { font-weight: 600; }
table.board td.cl small, table.board td.who small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
table.board th.st { text-align: center; line-height: 1.15; vertical-align: bottom; border-left: 1px solid var(--grid); font-size: .8rem; white-space: normal; cursor: help; }
table.board th.st .sn { display: block; width: 1.3rem; height: 1.3rem; margin: 0 auto .2rem; border-radius: 50%; background: #dfe6ee; color: #3b4a5c;
  font-size: .72rem; line-height: 1.3rem; font-weight: 700; }
table.board td.st { text-align: center; border-left: 1px solid var(--grid); cursor: help; }
table.board td.dn { white-space: nowrap; font-size: .88rem; }
table.board td.dn .progress { width: 55%; }
.card > header .legend { color: var(--muted); font-size: .85rem; }
.card > header .legend .tick { width: 1.2rem; height: 1.2rem; line-height: 1.2rem; font-size: .75rem; text-align: center; }
.tick { display: inline-block; width: 1.45rem; height: 1.45rem; line-height: 1.45rem; border-radius: 50%; background: #dff1e4; color: var(--ok); font-weight: 700; }
.dash { color: #b7c0cb; font-weight: 700; }
td[title], a[title] { cursor: help; }
.progress { display: inline-block; width: 4.2rem; height: .5rem; background: #e3e8ee; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: .4rem; }
.progress i { display: block; height: 100%; background: var(--ok); }

/* controls */
.btn { display: inline-block; padding: .26rem .75rem; border: 1px solid #b3bdc9; border-radius: 3px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #eef2f6; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary-dark); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { color: var(--crit); border-color: #d9aaaa; }
.btn.small { padding: .18rem .6rem; font-size: .92rem; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .26rem .5rem; border: 1px solid #b3bdc9; border-radius: 3px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, .tb:focus-visible { outline: 2px solid #7fb0dc; outline-offset: 1px; }
td input[type=text], td input[type=number], td select { padding: .14rem .35rem; min-width: 4.5rem; }
td input.n { width: 5.8rem; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
td input.pn { min-width: 11.5rem; }
label.file { display: inline-flex; align-items: center; gap: .6rem; position: relative; cursor: pointer; }
label.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.file input:focus + .btn { outline: 2px solid #7fb0dc; outline-offset: 1px; }
label.file .fname { color: var(--muted); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters input[type=search], .filters input[type=text], .filters select { width: auto; min-width: 180px; }
.filters input.n { min-width: 0; width: 6rem; text-align: right; }
.form { max-width: 880px; }
.form .row { display: grid; grid-template-columns: 240px 1fr; gap: .2rem 1rem; padding: .3rem 0; border-bottom: 1px solid var(--grid); }
.form .row label { font-weight: 600; padding-top: .25rem; }
.form .row input[type=checkbox] { width: auto; margin-top: .55rem; }
.form .help { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.form .help ul { margin: .15rem 0; padding-left: 1.1rem; }
.errorlist { color: var(--crit); margin: .2rem 0 0; padding-left: 1.1rem; }
@media (max-width: 760px) { .form .row, dl.facts { grid-template-columns: 1fr; } }

.msgs { list-style: none; padding: 0; margin: 0 0 .6rem; }
.msgs li { padding: .38rem .7rem; margin-bottom: .35rem; background: #e9f5ec; border: 1px solid #b5d8be; border-left: 4px solid var(--ok); border-radius: 3px; }
.msgs li.error { background: #fbecec; border-color: #e2b6b6; border-left-color: var(--crit); }
.note { border: 1px solid #c9d9ea; border-left: 4px solid var(--primary); background: #f2f7fc; padding: .6rem .8rem; margin: 0 0 1rem; border-radius: 3px; }

/* tags */
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 3px; border: 1px solid #c3ccd6; background: #eef1f5; color: #364252;
  font-size: .82rem; font-weight: 600; white-space: nowrap; }
.risk-none { color: var(--muted); }
.risk-low, .st-accepted, .st-won, .lc-active { background: #e2f3e7; border-color: #a9d3b5; color: var(--ok); }
.risk-medium, .st-negotiation, .lc-mature { background: #fbf1d3; border-color: #dcc57e; color: var(--warn); }
.risk-high, .lc-phase_out { background: #fbe6d8; border-color: #e0a984; color: var(--high); }
.risk-critical { background: var(--crit); border-color: var(--crit); color: #fff; }
.st-sent { background: var(--tint); border-color: #a9c3de; color: var(--primary-dark); }
.st-rejected, .st-lost, .lc-discontinued, .lc-obsolete { background: #f9e3e3; border-color: #dba5a5; color: var(--crit); }
.st-expired, .st-superseded, .st-hold { color: var(--muted); }
.bar { height: .55rem; background: #e3e8ee; border-radius: 3px; min-width: 110px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); }

/* wizard steps */
.steps { display: flex; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow-x: auto; }
.steps a { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; color: #364252; border-right: 1px solid var(--line); white-space: nowrap; }
.steps a:last-child { border-right: 0; }
.steps a:hover { background: var(--band); text-decoration: none; }
.steps a b { display: inline-block; width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center; border-radius: 50%; background: #dde3ea; color: #364252; font-weight: 600; }
.steps a.done b { background: #cfe8d6; color: var(--ok); }
.steps a.on { background: var(--tint); color: var(--primary-dark); font-weight: 600; box-shadow: inset 0 -3px 0 var(--primary); }
.steps a.on b { background: var(--primary); color: #fff; }
.stepnav { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 1rem; }
.login .box { background: #fff; border-radius: 4px; border-top: 4px solid #f0a53a; padding: 1.8rem; width: 100%; max-width: 380px; }
.login .box p { margin: .7rem 0; }
.login label { font-weight: 600; display: block; margin-bottom: .2rem; }

/* documents (audit report, offer) */
.doc { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 2.4rem 2.8rem; font-size: 1.02rem; }
.doc h1 { font-size: 1.8rem; }
.doc h2 { font-size: 1.15rem; margin: 1.7rem 0 .55rem; padding-bottom: .3rem; border-bottom: 2px solid var(--ink); }
.doc h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.doc p { margin: .4rem 0; white-space: pre-line; }
.doc table { font-size: .9rem; margin: .4rem 0 .8rem; border: 1px solid var(--grid); }
.doc th, .doc td { border: 1px solid var(--grid); }
.doc .cover { border-top: 5px solid var(--navy); padding-top: 1rem; margin-bottom: 1.4rem; }
.doc .cover .kind { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--primary); font-weight: 700; }
.doc .boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: .8rem 0; border: 1px solid var(--line); }
.doc .boxes div { border-right: 1px solid var(--line); padding: .55rem .7rem; }
.doc .boxes div:last-child { border-right: 0; }
.doc .boxes b { display: block; font-size: 1.35rem; }
.doc .note { font-size: .86rem; color: var(--muted); margin-top: 1.8rem; border: 0; border-top: 1px solid var(--line); background: none; padding: .7rem 0 0; border-radius: 0; }
.docbar { max-width: 960px; margin: 0 auto .8rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }

/* reports and exports */
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pfull { padding: .55rem .75rem; display: grid; grid-template-columns: 8rem 1fr; gap: .55rem 1rem; align-items: center; }
.pfull > b { font-size: .9rem; color: #3b4a5c; }
.pfull .row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.pfull select, .pfull input { width: auto; padding: .3rem .5rem; }
.pfull .row select { min-width: 12rem; }
.pfull .go { display: flex; gap: .4rem; flex-wrap: wrap; }
.period { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.period .chip { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #3b4a5c; font: inherit; font-size: .92rem; cursor: pointer; }
.period .chip:hover { border-color: #9bb5cf; background: var(--band); }
.period .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; padding: .6rem .75rem; }
.kpi div { border: 1px solid var(--line); border-radius: 4px; padding: .35rem .6rem; background: #fff; }
.kpi b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .82rem; }
.kpi em { font-style: normal; font-size: .8rem; color: var(--ok); font-weight: 600; }
.kpi em.neg { color: var(--crit); }
.kpi em.neu { color: var(--muted); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: .8rem; padding: 0 .9rem .9rem; }
.rcard { border: 1px solid var(--line); border-radius: 4px; padding: .7rem .8rem; background: var(--band); display: flex; flex-direction: column; gap: .3rem; }
.rcard h3 { margin: 0; font-size: .98rem; display: flex; gap: .5rem; align-items: center; }
.rcard h3 i { font-style: normal; width: 1.6rem; height: 1.6rem; border-radius: 4px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.rcard p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.35; flex: 1; }
.rcard .btns { display: flex; gap: .35rem; margin-top: .35rem; }
.rcard .btns a { padding: .22rem .65rem; border: 1px solid #b9c6d4; border-radius: 3px; background: #fff; font-size: .86rem; }
.rcard .btns a.p { background: var(--primary); border-color: var(--primary); color: #fff; }
.rcard .btns a:hover { text-decoration: none; border-color: var(--primary); }
.card > header .scope { display: flex; gap: 1rem; font-size: .9rem; }
.card > header .scope label { display: inline-flex; gap: .35rem; align-items: center; font-weight: 400; }
table.ex td, table.ex th { padding: .4rem .8rem; vertical-align: middle; }
table.ex td.f { white-space: nowrap; }
table.ex td.f button { margin-right: .35rem; padding: .2rem .65rem; border: 1px solid #b9c6d4; border-radius: 3px; font: inherit; font-size: .85rem; background: #fff; color: var(--primary); cursor: pointer; }
table.ex td.f button:hover { border-color: var(--primary); background: var(--tint); }
.chart { padding: .2rem .9rem .9rem; }
.chart .ct { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.chart .w { display: grid; grid-template-columns: 7rem 1fr 7rem; gap: .6rem; align-items: center; margin: .25rem 0; font-size: .9rem; }
.chart .bar2 { height: 1rem; background: #e7ecf2; border-radius: 2px; position: relative; overflow: hidden; }
.chart .bar2 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); }
.chart .bar2 u { position: absolute; left: 0; top: .3rem; height: .4rem; background: #4fc06f; }
h3.tt { margin: .6rem .9rem .35rem; font-size: .95rem; }
.note-line { margin: .5rem .9rem .8rem; color: var(--muted); font-size: .86rem; }
.ver td, .ver th { padding: .45rem .8rem; vertical-align: top; }
.ver ul { margin: 0; padding-left: 1.1rem; }
.ver .v { font-family: var(--mono); font-weight: 700; }
.ver .cur { background: #e6f3ea; color: var(--ok); font-size: .75rem; padding: .05rem .4rem; border-radius: 3px; margin-left: .4rem; }
.warn-text { color: var(--crit); }

/* settings */
.tokens { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .86rem; color: var(--muted); margin-bottom: .8rem; padding: .5rem .7rem; background: var(--band); border: 1px solid var(--grid); border-radius: 4px; }
.tokens code { color: var(--ink); background: #fff; border: 1px solid var(--grid); padding: 0 .3rem; border-radius: 3px; }
.preview { margin-left: .6rem; font-size: .88rem; color: var(--muted); }
.preview b { font-family: var(--mono); color: var(--ok); }
.pathbox { display: inline-block; padding: .3rem .6rem; background: var(--band); border: 1px solid var(--grid); border-radius: 3px; word-break: break-all; }

/* file explorer in the style of Windows Explorer */
.xp { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.xp-bar { display: flex; gap: .4rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--line); background: var(--band); }
.xp-bar form { margin: 0; }
.xbtn { display: inline-flex; align-items: center; padding: .3rem .7rem; border: 1px solid #c3ceda; border-radius: 3px; background: #fff; color: #2c3746; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.xbtn:hover { background: var(--tint); text-decoration: none; border-color: #9bb5cf; }
.xbtn.off { color: #a7b1bd; cursor: default; }
.xp-addr { flex: 1; display: flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border: 1px solid #c3ceda; border-radius: 3px; background: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }
.xp-addr i { font-style: normal; color: #8a97a6; }
.xp-addr a { color: #2c3746; }
.xp-main { display: grid; grid-template-columns: 17rem 1fr; min-height: 26rem; }
.xp-tree { border-right: 1px solid var(--line); padding: .4rem 0; overflow: auto; max-height: 70vh; font-size: .92rem; }
.xp-tree a { display: flex; align-items: center; gap: .35rem; padding: .2rem .6rem; color: #2c3746; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-tree a:hover { background: #eef4fa; text-decoration: none; }
.xp-tree a.on { background: #cce4f7; }
.xp-tree .t1 { padding-left: .9rem; } .xp-tree .t2 { padding-left: 1.9rem; } .xp-tree .t3 { padding-left: 3.6rem; }
.xp-tree .tw { width: .8rem; color: #8a97a6; font-size: .7rem; }
.xp-list { overflow: auto; }
.xp-list table td, .xp-list table th { padding: .3rem .7rem; }
.xp-list table tr:hover td { background: #eef4fa; }
.xp-list a { color: var(--ink); display: inline-flex; align-items: center; gap: .45rem; }
.ico { display: inline-block; flex: none; width: 1.05rem; height: .8rem; position: relative; }
.ico.fold { background: #f2c94c; border-radius: 1px 2px 2px 2px; margin-top: .15rem; }
.ico.fold::before { content: ""; position: absolute; left: 0; top: -.18rem; width: .45rem; height: .22rem; background: #e2b33a; border-radius: 1px 1px 0 0; }
.ico.file { width: .8rem; height: 1rem; background: #fff; border: 1px solid #8a97a6; border-radius: 1px; }
.ico.file::after { content: ""; position: absolute; right: -1px; top: -1px; border-width: 0 .28rem .28rem 0; border-style: solid; border-color: #fff #fff #c3ceda #c3ceda; }
.xp-status { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .7rem; border-top: 1px solid var(--line); background: var(--band); font-size: .84rem; color: var(--muted); }
.xp-status .path { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media print {
  html { font-size: 10.5px; }
  body { background: #fff; }
  .titlebar, .menubar, .pbar, .tip, .toolbar, .docbar, .msgs, .noprint, .statusbar, .steps, .stepnav { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; }
  .doc { border: 0; padding: 0; max-width: none; }
  .doc h2 { break-after: avoid; }
  .doc tr { break-inside: avoid; }
  .badge, th, td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}
