/* Ollivier customer portal - brand colours (user 11-03) */
:root {
  --navy: #002753; --indigo: #1B1464; --red: #E72228; --light: #D8EAF2; --blue: #1184AE; --sage: #94BBB2;
  --line: #CCCECF; --grey: #9A9A9A; --text: #1d2733; --muted: #5d6874; --bg: #f4f8fa; --card: #ffffff;
  --title: "Bank Gothic Md BT", "Bank Gothic", "Open Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.5 "Open Sans", Arial, sans-serif; overflow-x: hidden; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: var(--title); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); font-weight: 700; }
h1 { font-size: 20px; margin: 0 0 4px; } h2 { font-size: 15px; margin: 24px 0 10px; } h3 { font-size: 13px; margin: 0 0 8px; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12px; }
button, .btn { font: 600 13px "Open Sans", Arial, sans-serif; border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; letter-spacing: .03em; }
button.ghost, .btn.ghost { background: #fff; color: var(--navy); }
button:disabled { opacity: .5; cursor: default; }
input, select { font: 400 14px "Open Sans", Arial, sans-serif; padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--text); max-width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }

/* sign-in pages */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--light); }
.auth .card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--navy); width: 100%; max-width: 440px; padding: 32px 28px; }
.auth .logo { width: 220px; max-width: 80%; display: block; margin: 0 auto 18px; }
.auth h1 { text-align: center; }
.auth input { width: 100%; }
.auth button { width: 100%; margin-top: 20px; padding: 11px; }
.auth .links { margin-top: 16px; text-align: center; font-size: 13px; }
.msg { margin-top: 14px; padding: 10px 12px; font-size: 13px; }
.msg.err { background: #fdecec; color: #a3161b; border-left: 4px solid var(--red); }
.msg.ok { background: #eef6f4; color: #2f5d53; border-left: 4px solid var(--sage); }
.qr { display: block; margin: 12px auto; border: 1px solid var(--line); }
.secret { font-family: monospace; font-size: 15px; text-align: center; letter-spacing: .08em; background: var(--bg); padding: 8px; word-break: break-all; }
ol.steps { padding-left: 20px; margin: 8px 0; } ol.steps li { margin: 6px 0; }

/* app frame */
header.top { background: #fff; border-bottom: 4px solid var(--navy); }
.top .bar { max-width: 1280px; margin: auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.top .bar img { height: 34px; width: auto; }
.top .who { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.top .who b { color: var(--navy); font-size: 13px; }
.top .who button { margin-left: 10px; padding: 4px 10px; font-size: 12px; }
nav.tabs { background: var(--navy); }
nav.tabs .in { max-width: 1280px; margin: auto; display: flex; overflow-x: auto; padding: 0 8px; }
nav.tabs a { color: #fff; text-decoration: none; padding: 11px 14px; font: 700 12px var(--title); text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap; border-bottom: 3px solid transparent; }
nav.tabs a.on { border-bottom-color: var(--red); background: var(--indigo); }
main { max-width: 1280px; margin: auto; padding: 20px 16px 40px; }
footer { max-width: 1280px; margin: auto; padding: 0 16px 24px; color: var(--grey); font-size: 12px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card2 { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--navy); padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.card2 .n { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.card2 .l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.card2 .s { font-size: 12px; color: var(--muted); }
.card2.warn { border-left-color: var(--red); } .card2.good { border-left-color: var(--sage); } .card2.blue { border-left-color: var(--blue); }
.aging { display: flex; height: 14px; margin: 8px 0 4px; background: var(--bg); }
.aging span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }

/* lists */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: #fff; border: 1px solid var(--line); padding: 12px; margin: 12px 0; }
.filters .f { display: flex; flex-direction: column; }
.filters label { margin: 0 0 3px; }
.filters .grow { flex: 1 1 200px; } .filters .grow input { width: 100%; }
.chips { display: flex; gap: 0; }
.chips button { background: #fff; color: var(--navy); border-color: var(--line); padding: 7px 12px; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.listhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 0; }
.listhead .exports { display: flex; gap: 6px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { background: var(--light); color: var(--navy); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 10px; white-space: nowrap; border-bottom: 2px solid var(--navy); cursor: pointer; user-select: none; }
th.sorted::after { content: " \25BE"; } th.sorted.asc::after { content: " \25B4"; }
td { padding: 8px 10px; border-bottom: 1px solid #e6eaec; vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f1f7fa; }
td.num, th.num { text-align: right; white-space: nowrap; } td.nw { white-space: nowrap; }
td.wrap { min-width: 220px; max-width: 460px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 2px; background: var(--light); color: var(--navy); white-space: nowrap; }
.tag.red { background: #fdecec; color: #a3161b; } .tag.green { background: #e6f1ee; color: #2f5d53; } .tag.blue { background: #e3f1f7; color: #0c5f7e; }
.tag.grey { background: #eeefef; color: #5d6874; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: #fff; border: 1px solid var(--line); }

/* detail */
.back { display: inline-block; margin-bottom: 10px; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; background: #fff; border: 1px solid var(--line); padding: 14px 16px; }
.facts div > span:first-child { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.box { background: #fff; border: 1px solid var(--line); padding: 14px 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 4px 0 12px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.timeline li.ev-note::before { background: var(--blue); } .timeline li.status::before { background: var(--navy); } .timeline li.done::before { background: var(--sage); }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .note { white-space: pre-wrap; margin-top: 4px; }
.totals { margin-left: auto; max-width: 320px; } .totals td { border: 0; padding: 3px 10px; } .totals tr.big td { font-weight: 700; font-size: 15px; border-top: 2px solid var(--navy); }
.two { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .two { grid-template-columns: 3fr 2fr; } }
@media (max-width: 640px) { td { white-space: nowrap; } td.wrap { white-space: normal; min-width: 200px; } .top .who { margin-left: 0; text-align: left; width: 100%; } h1 { font-size: 17px; } .card2 .n { font-size: 22px; } }

.brand { font-family: var(--title); letter-spacing: .06em; color: var(--navy); text-transform: uppercase; }
.center { text-align: center; } .pre { white-space: pre-wrap; } .mt { margin-top: 12px; }
.a0 { background: #94BBB2; } .a1 { background: #1184AE; } .a2 { background: #1B1464; } .a3 { background: #002753; } .a4 { background: #E72228; }
.more { padding: 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 0; }
.two.even { grid-template-columns: 1fr; } @media (min-width: 900px) { .two.even { grid-template-columns: 1fr 1fr; } }
details.scope { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); margin-bottom: 8px; }
details.scope summary { cursor: pointer; padding: 10px 14px; } details.scope[open] summary { border-bottom: 1px solid var(--line); }
details.scope .pre { padding: 12px 16px; line-height: 1.6; }
.update { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); padding: 12px 16px; margin-bottom: 10px; }
.update .when { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.update .dt b { color: var(--navy); font-weight: 700; } .update h3 { margin: 10px 0 4px; } .update .pre { line-height: 1.6; }
details summary.small { cursor: pointer; color: var(--indigo); }
