:root {
  --bg: #F6F7F9; --paper: #FFFFFF; --ink: #111827; --ink2: #344054; --muted: #5B6474;
  --line: #E4E7EC; --line2: #EEF0F3; --line3: #F2F4F7; --soft: #F9FAFB;
  --accent: #2F5BEA; --accent-ink: #1A3596; --accent-soft: #EEF2FF; --accent-tint: #F5F8FF;
  --red: #912018; --red-soft: #FDECEA; --amber: #93370D; --amber-soft: #FEF0E6;
  --green: #0B6B4E; --green-soft: #E8F5EE; --gray-soft: #F2F4F7;
  --gr-bg: #E0F2FE; --gr-fg: #075985; --nl-bg: #FFEDD5; --nl-fg: #9A3412; --us-bg: #EDE9FE; --us-fg: #5B21B6;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: #2448C8; text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.wrap { margin: 0 auto; padding: 26px 32px 56px; }
.sub { margin: 6px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.red { color: var(--red); }
.green { color: var(--green); }
.b { font-weight: 600; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .in { margin: 0 auto; padding: 0 32px; min-height: 64px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; display: block; }
.brand-text { padding-left: 14px; border-left: 1px solid var(--line); line-height: 34px; }
.brand-text span { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 7px 9px; border-radius: 8px; color: var(--ink2); white-space: nowrap; }
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #D0D5DD; border-radius: 8px; padding: 0 10px; height: 36px; width: 170px; color: var(--muted); background: #fff; }
.me { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #E0E7FF; color: var(--accent-ink); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red); }

/* panels */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 18px 20px; }
.strip { display: flex; flex-wrap: wrap; margin-top: 18px; }
.strip > div { padding: 14px 20px; border-right: 1px solid var(--line2); flex: 1 1 200px; }
.strip > div:last-child { border-right: 0; }
.strip .l { font-size: 12.5px; color: var(--muted); }
.strip .v { font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 380px; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { border-radius: 10px; padding: 12px 14px; background: var(--soft); }
.stat .l { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat.red { background: var(--red-soft); } .stat.red .l, .stat.red .v { color: var(--red); }
.stat.blue { background: var(--accent-soft); } .stat.blue .l, .stat.blue .v { color: var(--accent-ink); }

/* progress */
.progress { min-width: 260px; }
.progress .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); }
.bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }

/* company groups (to-do) */
.cogroup { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cogroup + .cogroup { margin-top: 14px; }
.cohead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line2); }
.cohead h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; }
.flag { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; padding: 3px 7px; border-radius: 5px; }
.flag.GR { background: var(--gr-bg); color: var(--gr-fg); } .flag.NL { background: var(--nl-bg); color: var(--nl-fg); } .flag.USA { background: var(--us-bg); color: var(--us-fg); }
.count { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.count.all { background: var(--green-soft); color: var(--green); }
.subhead { padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #5B21B6; background: #FAF8FF; border-top: 1px solid var(--line2); }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line3); }
.task.done .tname { color: #667085; text-decoration: line-through; }
.task.done .tamt { color: #667085; }
.task .main { flex: 1; min-width: 0; }
.tname { font-weight: 600; }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; }
.task form { margin: 0; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #98A2B3; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.check.on { background: var(--accent); border-color: var(--accent); }
.iconbtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #D0D5DD; background: #fff; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { background: var(--soft); }
.chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--accent-soft); color: var(--accent-ink); }
.chip.gray { background: var(--gray-soft); color: var(--ink2); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.purple { background: var(--us-bg); color: var(--us-fg); }
.chip.line { border: 1px solid var(--line); color: var(--ink2); }

@media (max-width: 1500px) { .me-name { display: none; } }

/* group card: aging per company, expandable to codes */
.agetable .corow td { background: var(--soft); border-bottom: 1px solid var(--line); cursor: pointer; }
.agetable .corow:hover td { background: #EEF2F7; }
.agetable .has-sel .corow td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cotoggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; color: #2448C8; cursor: pointer; white-space: nowrap; text-align: left; }
.agetable th:first-child, .agetable td:first-child { min-width: 210px; }
.agetable .coderows td:first-child .muted { max-width: 240px; }
.cotoggle .chev { transition: transform .15s; flex: none; }
.cotoggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.cotoggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.agetable .coderows td { background: #fff; }
.linkbtn { border: 0; background: none; color: #2448C8; font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }

/* file status tiles (overview) */
.ftile { border: 1px solid; border-radius: 10px; padding: 12px 14px; }
.ftile.fresh { border-color: #CDEBDB; background: #F6FBF8; }
.ftile.stale { border-color: #F5D3B5; background: #FFF8F1; }
.ftile .fstate { margin-top: 6px; }
.ftile.fresh .fstate { color: var(--green); }
.ftile.stale .fstate { color: var(--amber); }
.ftile .fmeta { color: var(--muted); }
/* HARDING in its own brand green */
.ftile.co-HMS { background: #00733F; border-color: #00733F; color: #fff; }
.ftile.co-HMS .fmeta { color: rgba(255, 255, 255, .85); }
.ftile.co-HMS.fresh .fstate { color: #D9F7E7; }
.ftile.co-HMS.stale .fstate { color: #FFE4C2; }
.ftile.co-HMS .flag { background: #fff; color: #00733F; }

/* POSEIDON OE, BV and INC in the blue of the Poseidon logo */
.ftile.co-OE, .ftile.co-BV, .ftile.co-HOU { background: #0095DA; border-color: #0095DA; color: #fff; }
.ftile.co-OE .fmeta, .ftile.co-BV .fmeta, .ftile.co-HOU .fmeta { color: rgba(255, 255, 255, .92); }
.ftile.co-OE .fstate, .ftile.co-BV .fstate, .ftile.co-HOU .fstate { color: #fff; }
.ftile.co-OE .flag, .ftile.co-BV .flag, .ftile.co-HOU .flag { background: #fff; color: #0077B0; }

/* POSEIDON LTD: darker shade of the Poseidon logo orange (#F48222) so white text stays readable */
.ftile.co-EPE { background: #BB5B09; border-color: #BB5B09; color: #fff; }
.ftile.co-EPE .fmeta { color: #fff; }
.ftile.co-EPE .fstate { color: #fff; }
.ftile.co-EPE .flag { background: #fff; color: #8A4306; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line3); vertical-align: top; }
tbody tr:hover td { background: #FCFCFD; }
tr.sel td { background: var(--accent-tint); }
tfoot td { font-weight: 600; background: var(--soft); border-top: 1px solid var(--line); }
.od { color: var(--red); font-weight: 600; }
.zero { color: #98A2B3; }
.scroll { overflow-x: auto; }

/* forms */
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  font: inherit; border: 1px solid #D0D5DD; border-radius: 8px; padding: 0 10px; height: 36px; background: #fff; color: var(--ink);
}
.search input[type=search] { border: 0; outline: none; font: inherit; width: 100%; background: transparent; height: auto; padding: 0; }
textarea { height: auto; min-height: 64px; padding: 10px 12px; width: 100%; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: #2448C8; color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink2); border: 1px solid #D0D5DD; font-weight: 500; }
.btn.ghost:hover { background: var(--soft); }
.btn.dark { background: var(--ink); }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #F1B5AD; font-weight: 500; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #D0D5DD; background: #fff; color: var(--ink2); font-weight: 500; }
.seg input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0 14px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; border: 1px solid #D0D5DD; background: #fff; color: var(--ink2); display: inline-flex; align-items: center; }
.pills a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills a:hover { text-decoration: none; }

.timeline > div { display: flex; gap: 12px; align-items: flex-start; }
.timeline > div + div { margin-top: 12px; }
.empty { color: var(--muted); padding: 10px 0; }
.issues { margin: 0; padding-left: 18px; max-height: 280px; overflow: auto; font-size: 13px; }
.issues li + li { margin-top: 4px; }
.person { padding: 18px; }
.person .who { display: flex; align-items: center; gap: 10px; }
.person .who .avatar { width: 36px; height: 36px; font-size: 14px; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.hist span { flex: 1; background: #A9B8F5; border-radius: 2px 2px 0 0; min-height: 2px; }

.login { max-width: 380px; margin: 12vh auto; }
.login h1 { margin-bottom: 18px; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 18px 16px 40px; }
  .top .in { padding: 8px 16px; gap: 10px; }
  .search { width: 100%; order: 4; }
  .nav { order: 3; flex: 0 0 100%; overflow-x: auto; flex-wrap: nowrap; }
  .grid4 { grid-template-columns: 1fr; }
  .task { flex-wrap: wrap; }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--line2); }
}
.notice{background:#eef6fc;border:1px solid #b9dcf2;color:#0b4a6f;border-radius:10px;padding:10px 14px;font-size:14px}
.fixbox{background:#f6f8fb;border:1px dashed #c9d3e0;border-radius:8px;padding:8px 10px;display:grid;gap:3px}
.bigv{font-size:17px;white-space:nowrap}
table.tight td.num, table.tight th.num{font-size:13px;padding-left:6px;padding-right:6px}
/* daily lists: companies side by side on wide screens */
.cogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(660px,1fr));gap:16px;align-items:start}
.cogrid > .cogroup{margin:0}
@media (max-width: 700px){.wrap{padding:20px 14px 40px}.top .in{padding:0 14px}.cogrid{grid-template-columns:1fr}}
.coderow { cursor: pointer; }
.coderow:hover td { background: #f3f6ff; }
.codepanel { border: 1px solid #b9c8f5; box-shadow: 0 0 0 3px #eef2ff; scroll-margin-top: 80px; }
.subt { font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
#omilos { scroll-margin-top: 80px; }
.codepanel .hist { justify-content: flex-start; margin-bottom: 10px; }
.codepanel .hist span { max-width: 26px; }
.coname { margin-left: 6px; color: #2448C8; }
.corow { cursor: pointer; }
.corow:hover td { background: #f3f6ff; }
.cogrp.active .corow td { background: #e8eeff; }
.cogrp.active .corow td:first-child { box-shadow: inset 3px 0 0 #2448C8; }
