/* Local, script-free component system. No fonts, images or third-party assets. */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #253b4c;
  background: #f4f8fb;
  --blue: #0078bc;
  --blue-dark: #005e96;
  --blue-soft: #e9f5ff;
  --line: #dae5ed;
  --muted: #536c7e;
  --surface: #fff;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
a { color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: #00476f; text-decoration: underline; }
:focus-visible { outline: 3px solid #1670a9; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 20; padding: 12px 20px; background: white; border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
.sidebar { grid-row: 1 / 4; background: white; border-right: 1px solid var(--line); padding: 30px 22px; }
.brand { display: flex; gap: 12px; align-items: center; color: #17354a; font-size: 17px; font-weight: 750; line-height: 1.3; }
.brand:hover { text-decoration: none; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.brand-mark { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 11px; font-size: 14px; letter-spacing: -.5px; }
.nav-caption { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.6px; margin: 38px 10px 14px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #435d70; font-weight: 600; border-radius: 9px; }
.sidebar nav a:hover { background: #f3f8fc; text-decoration: none; }
.sidebar nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }
.nav-symbol { width: 20px; font-size: 22px; line-height: 1; text-align: center; font-weight: 500; }
.sidebar-note { background: #f4f9fd; border: 1px solid #e0edf5; border-radius: 12px; padding: 18px 14px; margin-top: 50px; font-size: 12px; }
.sidebar-note p { color: var(--muted); line-height: 1.8; }
.sidebar-note a { font-weight: 600; }
.workspace-header { min-width: 0; display: flex; align-items: center; gap: 18px; padding: 21px 34px; background: white; border-bottom: 1px solid var(--line); }
.header-context { display: flex; gap: 9px; align-items: center; margin-right: auto; font-size: 12px; font-weight: 600; }
.context-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.account { min-width: 0; display: flex; align-items: center; gap: 10px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-size: 12px; }
.workspace-header form { margin: 0; }
main { min-width: 0; padding: 32px 34px 40px; width: 100%; max-width: 1600px; margin: 0 auto; }
main:focus { outline: none; }
footer { padding: 18px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
h1, h2, h3, h4 { color: #17354a; line-height: 1.3; }
h1 { font-size: clamp(26px, 2.3vw, 34px); font-weight: 730; letter-spacing: -.8px; margin: 0 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 0 0 18px; font-weight: 700; }
h3 { font-size: 14px; margin: 24px 0 12px; }
h4 { font-size: 12px; font-weight: 700; margin: 18px 0 7px; }
p { margin: 0 0 14px; overflow-wrap: anywhere; }
li + li { margin-top: 6px; }
ul { padding-left: 21px; }
.eyebrow { display: block; color: var(--blue-dark); font-size: 10px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 9px; }
.page-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.page-heading p { margin: 0; color: var(--muted); }
.page-heading .button { flex-shrink: 0; }
section, .panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 22px 0; box-shadow: 0 3px 12px #18385004; }
section > :last-child, .panel > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cards section { margin: 0; padding: 21px; position: relative; overflow: hidden; }
.cards h2 { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.cards a { font-size: 11px; font-weight: 650; }
.metric { color: #17354a; font-size: 34px; line-height: 1.1; letter-spacing: -1px; font-weight: 750; margin-bottom: 17px; font-variant-numeric: tabular-nums; }
.cards section:nth-child(2) .metric, .cards section:nth-child(3) .metric { color: var(--blue-dark); }
.card-accent { position: absolute; right: 18px; top: 17px; color: var(--blue-dark); font-size: 16px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.status-grid section { margin: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.overview-grid section { margin: 0; }
.counts { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 11px 20px; margin: 0; font-size: 11px; }
.counts dt { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.counts dd { background: #f0f6fa; color: #254e68; padding: 3px 10px; margin: 0; border-radius: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
form { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
label { display: flex; flex-direction: column; gap: 7px; color: #3e5b6f; font-size: 11px; font-weight: 650; min-width: 0; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; background: white; color: #253b4c; border: 1px solid #b6cbd8; border-radius: 8px; font-size: 13px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #779fb9; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #0078bc16; }
input::placeholder, textarea::placeholder { color: #627b8d; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: 17px; height: 17px; }
input[type="checkbox"] + span, input[type="radio"] + span { font-weight: 400; }
textarea { min-height: 100px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--blue); border-radius: 8px; padding: 10px 18px; background: var(--blue); color: white; font-size: 12px; font-weight: 650; line-height: 1.5; cursor: pointer; min-height: 40px; transition: background .15s, border-color .15s; }
button:hover, .button:hover { color: white; background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
button:active, .button:active { background: #004d7c; }
button:disabled, input:disabled, select:disabled { opacity: .6; cursor: not-allowed; }
.button-ghost, .button-secondary { color: var(--blue-dark); background: white; border-color: #b4cfdf; }
.button-ghost:hover, .button-secondary:hover { color: var(--blue-dark); background: var(--blue-soft); border-color: #87b4d0; }
.button-rounded { border-radius: 999px; }
.badge { display: inline-block; vertical-align: middle; padding: 4px 10px; color: #34556a; background: #edf4f8; border: 1px solid #dae7ef; border-radius: 999px; font-size: 10px; font-weight: 650; line-height: 1.4; overflow-wrap: normal; word-break: normal; }
.badge[data-state="OPEN"], .badge[data-state="RELEVANT"], .badge[data-state="QUALIFIED"], .badge[data-state="ACCEPTED"], .badge[data-state="SENT"] { color: #176548; border-color: #cbe8db; background: #edf8f2; }
.badge[data-state="ANALYZED"], .badge[data-state="NEW_FOR_SALES"] { color: var(--blue-dark); border-color: #cbe6f8; background: var(--blue-soft); }
.badge[data-state="SKIPPED"], .badge[data-state="UNCERTAIN"], .badge[data-state="NEEDS_REVIEW"], .badge[data-state="PENDING"] { color: #805512; border-color: #edddba; background: #fff8e9; }
.badge[data-state="ERROR"], .badge[data-state="FAILED"], .badge[data-state="CANCELLED"] { color: #9f3242; border-color: #edcdd3; background: #fff1f3; }
.muted { color: var(--muted); font-size: 12px; }
.notice { background: #eef7fd; color: #35596f; border: 1px solid #d0e7f5; border-left: 3px solid var(--blue); border-radius: 8px; padding: 13px 17px; font-size: 12px; margin: 20px 0; }
[role="alert"] { color: #962c3c; background: #fff1f3; border: 1px solid #ecc9d0; border-radius: 8px; padding: 12px 16px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 16px; }
.filter-tabs a { padding: 7px 13px; font-size: 11px; font-weight: 650; border: 1px solid var(--line); border-radius: 999px; background: white; color: #426379; }
.filter-tabs a:hover { background: #edf6fc; text-decoration: none; }
.filter-tabs a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; margin: 18px 0 22px; }
.filters .search-field { grid-column: span 2; }
.filters .advanced-filters { grid-column: 1 / -1; margin: 0; }
.advanced-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 14px; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid #e5edf3; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 14px; }
.result-summary p { margin: 0; font-size: 12px; font-weight: 650; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
table { border-collapse: collapse; width: 100%; background: white; font-size: 12px; }
th { background: #f7fafc; color: #49667b; font-size: 10px; font-weight: 700; letter-spacing: .4px; }
th, td { padding: 17px 16px; border-bottom: 1px solid #e5edf3; text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfd; }
.tender-table { min-width: 990px; }
.tender-table td:first-child { min-width: 250px; max-width: 380px; }
.tender-table td:first-child a { color: #214a65; font-weight: 650; line-height: 1.6; }
.tender-table .secondary-line { margin-top: 5px; color: var(--muted); font-size: 10px; }
.tender-table td:not(:first-child) { font-size: 10px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 20px; }
.pagination a { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 8px 14px; font-size: 11px; font-weight: 600; }
.pagination a:hover { background: var(--blue-soft); text-decoration: none; }
.pagination .page-label { color: var(--muted); margin-right: auto; font-size: 11px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 21px; }
.detail-heading h1 { font-size: clamp(22px, 2vw, 30px); max-width: 85ch; }
.detail-heading .badge { margin-bottom: 12px; }
dl:not(.counts) { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 22px; margin: 0; font-size: 12px; }
dt { color: var(--muted); font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
details { border: 1px solid #e0eaf1; border-radius: 8px; padding: 11px 14px; margin: 12px 0; background: #fbfdfe; overflow-wrap: anywhere; }
summary { cursor: pointer; font-size: 11px; font-weight: 650; color: #3e6077; }
details[open] summary { margin-bottom: 12px; }
section > form label { flex: 1 1 200px; }
section > form { margin-top: 18px; }
section > form button { flex-shrink: 0; }
section > form input[type="hidden"] { display: none; }
.sign-in-page { display: flex; flex-direction: column; min-height: 100vh; background: #f3f8fc; }
.sign-in-page .workspace-header { justify-content: space-between; padding-left: max(28px, calc((100vw - 1200px) / 2)); padding-right: max(28px, calc((100vw - 1200px) / 2)); }
.sign-in-page main { max-width: 470px; padding: 54px 24px; flex: 1; display: grid; align-content: center; }
.sign-in-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: 0 12px 42px #16354a08; }
.sign-in-card h1 { font-size: 26px; }
.sign-in-card .intro { font-size: 12px; color: var(--muted); margin-bottom: 27px; }
.login { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.login label { font-size: 12px; }
.login button { width: 100%; margin-top: 4px; }
.sign-in-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 24px; margin-bottom: 0; }
.sign-in-page footer { text-align: center; }
@media (max-width: 1150px) {
  .workspace { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding: 28px 16px; }
  .brand { font-size: 15px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 14px; }
  .sidebar .brand { margin-bottom: 16px; }
  .nav-caption, .sidebar-note { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sidebar nav a { padding: 8px 6px; font-size: 11px; justify-content: center; gap: 6px; }
  .nav-symbol { font-size: 17px; }
  .workspace-header { padding: 13px 20px; gap: 10px; flex-wrap: wrap; }
  .header-context { flex: 1 1 100%; }
  .account { margin-right: auto; }
  .account-name { max-width: 190px; }
  main { padding: 24px 20px 32px; }
  footer { padding: 18px 20px; }
  .page-heading { align-items: start; flex-direction: column; gap: 15px; }
  .cards { gap: 12px; }
  .cards section { padding: 18px 15px; }
  .card-accent { right: 12px; top: 12px; width: 23px; height: 23px; font-size: 13px; }
  .cards h2 { padding-right: 22px; min-height: 30px; }
  .metric { font-size: 30px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .filters .search-field { grid-column: 1 / -1; }
  .advanced-fields { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  section, .panel { padding: 20px; }
  dl:not(.counts) { grid-template-columns: 1fr; gap: 5px; }
  dl:not(.counts) dd { margin-bottom: 12px; }
  .detail-heading h1 { font-size: 23px; }
  .sign-in-page .workspace-header { padding: 20px; }
  .sign-in-page .workspace-header .badge { display: none; }
  .sign-in-card { padding: 27px; }
}
@media (max-width: 380px) { .sidebar .nav-symbol { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
